.sysbar-product-modal {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: min(82vh, calc(100dvh - 5rem));
    max-height: calc(100dvh - 5rem);
    overflow: hidden;
}

/* Selector de ingreso para Nota de Crédito: misma altura estable que el catálogo. */
.fi-modal-window.salida-credit-note-origin-modal {
    display: flex;
    flex-direction: column;
    height: min(82vh, calc(100dvh - 5rem));
    max-height: calc(100dvh - 5rem);
    overflow: hidden;
}

.fi-modal-window.salida-credit-note-origin-modal .fi-modal-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: .7rem 1rem .55rem !important;
}

.salida-credit-note-origin-action {
    align-self: end;
}

.salida-credit-note-origin-action .fi-ac {
    justify-content: flex-end;
}

.credit-note-origin-picker {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #d8e3ed;
    background: #fff;
    color: #18354c;
}

.credit-note-origin-picker__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .7rem .85rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef5fa 100%);
}

.credit-note-origin-picker__search {
    position: relative;
    display: block;
}

.credit-note-origin-picker__search svg {
    position: absolute;
    top: 50%;
    left: .75rem;
    transform: translateY(-50%);
    color: #647b90;
    pointer-events: none;
}

.credit-note-origin-picker__search input {
    width: 100%;
    min-height: 38px;
    padding: .5rem .75rem .5rem 2.4rem;
    border: 1px solid #b8cad9;
    border-radius: 6px;
    background: #fff;
    color: #18354c;
    font-size: .82rem;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.credit-note-origin-picker__search input:focus {
    border-color: #0a6ed1;
    box-shadow: 0 0 0 3px rgba(10, 110, 209, .12);
}

.credit-note-origin-picker__summary {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    color: #365b78;
    font-size: .76rem;
    font-weight: 700;
}

.credit-note-origin-picker__summary-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}

.credit-note-origin-picker__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .4rem .85rem;
    border-bottom: 1px solid #e8eef4;
    background: #fbfdff;
    color: #60788d;
    font-size: .7rem;
    font-weight: 600;
}

.credit-note-origin-picker__table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: #fff;
}

.credit-note-origin-picker__table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
}

.credit-note-origin-picker__table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.credit-note-origin-picker__table th {
    padding: .55rem .65rem;
    border-right: 1px solid #dfe8f0;
    border-bottom: 1px solid #cad9e6;
    background: #edf4fa;
    color: #36516c;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-align: left;
    text-transform: uppercase;
}

.credit-note-origin-picker__table th:last-child,
.credit-note-origin-picker__table td:last-child {
    border-right: 0;
}

.credit-note-origin-picker__table td {
    padding: .62rem .65rem;
    border-right: 1px solid #e7edf3;
    border-bottom: 1px solid #e7edf3;
    background: #fff;
    color: #314c63;
    font-size: .78rem;
    vertical-align: middle;
}

.credit-note-origin-picker__table tbody tr {
    cursor: pointer;
    transition: background-color .12s ease, box-shadow .12s ease;
}

.credit-note-origin-picker__table tbody tr:hover td {
    background: #f4f9fd;
}

.credit-note-origin-picker__table tbody tr.is-selected td {
    background: #e8f3ff;
    box-shadow: inset 0 1px 0 rgba(10, 110, 209, .12), inset 0 -1px 0 rgba(10, 110, 209, .12);
}

.credit-note-origin-picker__table tbody tr.is-selected td:first-child {
    box-shadow: inset 3px 0 0 #0a6ed1, inset 0 1px 0 rgba(10, 110, 209, .12), inset 0 -1px 0 rgba(10, 110, 209, .12);
}

.credit-note-origin-picker__table td strong,
.credit-note-origin-picker__table td small {
    display: block;
}

.credit-note-origin-picker__table td strong {
    color: #193a55;
    font-weight: 750;
}

.credit-note-origin-picker__table td small {
    margin-top: .15rem;
    color: #73879a;
    font-size: .67rem;
}

.credit-note-origin-picker__radio-col {
    width: 62px;
    text-align: center !important;
}

.credit-note-origin-picker__radio-col input {
    width: 1rem;
    height: 1rem;
    accent-color: #0a6ed1;
    cursor: pointer;
}

.credit-note-origin-picker__date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.credit-note-origin-picker__number {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.credit-note-origin-picker__status {
    display: inline-flex;
    padding: .24rem .48rem;
    border: 1px solid #b8ddc4;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: .66rem;
    font-weight: 800;
}

.credit-note-origin-picker__available {
    color: #087443 !important;
}

.credit-note-origin-picker__selection {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem .85rem;
    border-top: 1px solid #b9dbca;
    background: #effcf5;
    color: #087443;
    font-size: .72rem;
    font-weight: 700;
}

.credit-note-origin-picker__error {
    padding: .45rem .85rem;
    border-top: 1px solid #fecaca;
    background: #fef2f2;
    color: #b42318;
    font-size: .74rem;
    font-weight: 700;
}

.credit-note-origin-picker__empty {
    height: 230px;
    color: #71869a !important;
    text-align: center;
}

.credit-note-origin-picker__empty svg {
    display: block;
    margin: 0 auto .5rem;
}

.credit-note-origin-picker__empty strong,
.credit-note-origin-picker__empty span {
    display: block;
}

.credit-note-origin-picker__empty span {
    margin-top: .25rem;
    font-size: .72rem;
}

@media (max-width: 767px) {
    .fi-modal-window.salida-credit-note-origin-modal {
        height: min(72vh, calc(100dvh - 4rem));
        max-height: calc(100dvh - 4rem);
    }

    .credit-note-origin-picker__toolbar {
        grid-template-columns: 1fr;
    }

    .credit-note-origin-picker__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }
}

.sysbar-product-modal__badges,
.sysbar-product-modal__filters,
.dynamic-module-preview__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sysbar-product-modal__badge,
.dynamic-module-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f172a;
}

.sysbar-product-modal__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    flex-shrink: 0;
    align-items: center;
    padding: 0.65rem 0.85rem;
}

.sysbar-product-modal__search {
    position: relative;
    display: block;
}

.sysbar-product-modal__search input {
    width: 100%;
    min-height: 34px;
    padding: 0.5rem 0.75rem 0.5rem 2.2rem;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 0;
    background: #ffffff;
    font-size: 0.82rem;
    color: #0f172a;
}

.sysbar-product-modal__search-icon {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    transform: translateY(-50%);
    color: #64748b;
}

.sysbar-product-modal__filter {
    min-height: 36px;
    padding: 0.5rem 0.72rem;
    border-radius: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
}

.sysbar-product-modal__filter.is-active {
    border-color: #c2410c;
    background: #fff7ed;
    color: #9a3412;
}

.sysbar-product-modal__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: #64748b;
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    background: #fafbfc;
}

.sysbar-product-modal__results,
.sysbar-product-modal__loading {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sysbar-product-modal__loading-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #f97316;
    animation: sysbarPulse 1s ease-in-out infinite;
}

.sysbar-product-modal__table-wrap,
.dynamic-module-preview__table-wrap {
    overflow: auto;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0;
    background: #ffffff;
    flex: 1 1 auto;
    min-height: 0;
}

.sysbar-product-modal__table,
.dynamic-module-preview__table {
    width: 100%;
    border-collapse: collapse;
}

.sysbar-product-modal__table thead th,
.dynamic-module-preview__table thead th {
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    font-size: 0.65rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
}

.sysbar-product-modal__table tbody td,
.dynamic-module-preview__table tbody td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.78rem;
    color: #0f172a;
    vertical-align: middle;
}

.sysbar-product-modal__table tbody tr:hover {
    background: #f8fafc;
}

.sysbar-product-modal__table tbody tr.is-annulled > td:not(.sysbar-product-modal__actions),
.sysbar-product-modal__table tbody tr.is-annulled > td:not(.sysbar-product-modal__actions) * {
    color: #9aa4af !important;
    text-decoration: line-through !important;
    text-decoration-color: #9aa4af !important;
}

.fi-ta-empty-state {
    display: flex;
    justify-content: center;
}

.sysbar-product-modal__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font: inherit;
    color: inherit;
}

.sysbar-product-modal__sort.is-active {
    color: #9a3412;
}

.sysbar-product-modal__price {
    font-weight: 700;
    color: #0f766e;
}

.sysbar-product-modal__actions,
.sysbar-product-modal__actions-col {
    text-align: right;
}

.sysbar-product-modal__select-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.4rem 0.7rem;
    border-radius: 0;
    background: linear-gradient(135deg, #dc6803 0%, #f97316 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.18);
}

.sysbar-product-modal__selected,
.dynamic-module-chip--selected {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.4rem 0.7rem;
    border-radius: 0;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.74rem;
    font-weight: 700;
}

.sysbar-product-modal__empty {
    padding: 1.4rem 0.85rem;
}

.sysbar-product-modal__empty div {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
}

.sysbar-product-modal__pagination {
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.sysbar-product-modal__module-badge-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 0.85rem 0.55rem;
    background: #fff;
}

.sysbar-product-modal__module-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 9.5px;
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace;
    font-weight: 500;
    color: #aab8c6;
    letter-spacing: 0.02em;
    line-height: 1.5;
    pointer-events: none;
    user-select: none;
}

.sysbar-product-modal__pagination nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.sysbar-product-modal__pagination nav > div:first-child {
    display: none;
}

.sysbar-product-modal__pagination nav > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.sysbar-product-modal__pagination nav > div:last-child > div:first-child {
    flex: 0 1 auto;
    min-width: 0;
}

.sysbar-product-modal__pagination nav > div:last-child > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
}

.sysbar-product-modal__pagination nav .relative.z-0.inline-flex {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.sysbar-product-modal__pagination nav p {
    margin: 0;
    font-size: 0.78rem;
    color: #52697f;
}

.sysbar-product-modal__pagination nav .relative.z-0.inline-flex > * {
    margin-left: 0 !important;
}

.sysbar-product-modal__pagination nav .relative.z-0.inline-flex span[aria-disabled="true"] > span,
.sysbar-product-modal__pagination nav .relative.z-0.inline-flex span[aria-current="page"] > span,
.sysbar-product-modal__pagination nav .relative.z-0.inline-flex a,
.sysbar-product-modal__pagination nav > div:first-child a,
.sysbar-product-modal__pagination nav > div:first-child span > span,
.sysbar-product-modal__pagination nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #36516c;
    background: #fff;
    border: 1px solid #cfdbe6;
    border-right: none;
    transition: background 120ms, color 120ms;
    cursor: pointer;
}

.sysbar-product-modal__pagination nav .relative.z-0.inline-flex > *:first-child > *:first-child,
.sysbar-product-modal__pagination nav > div:first-child > *:first-child {
    border-radius: 0.25rem 0 0 0.25rem;
}

.sysbar-product-modal__pagination nav .relative.z-0.inline-flex > *:last-child > *:first-child,
.sysbar-product-modal__pagination nav > div:first-child > *:last-child {
    border-right: 1px solid #cfdbe6;
    border-radius: 0 0.25rem 0.25rem 0;
}

.sysbar-product-modal__pagination nav .relative.z-0.inline-flex a:hover,
.sysbar-product-modal__pagination nav > div:first-child a:hover {
    background: #f0f4f8;
    color: #0a6ed1;
    border-color: #a8bfd5;
}

.sysbar-product-modal__pagination nav .relative.z-0.inline-flex span[aria-current="page"] > span {
    background: linear-gradient(180deg, #0a6ed1 0%, #085caf 100%) !important;
    border-color: #0854a6 !important;
    color: #fff !important;
    font-weight: 700;
    z-index: 1;
    position: relative;
}

.sysbar-product-modal__pagination nav .relative.z-0.inline-flex span[aria-disabled="true"] > span,
.sysbar-product-modal__pagination nav > div:first-child span[aria-disabled="true"] > span {
    color: #b0bec5;
    cursor: default;
    background: #f9fafb;
}

.sysbar-product-modal__pagination nav svg {
    width: 0.95rem;
    height: 0.95rem;
}

.fi-modal-window:has(.sysbar-product-modal) {
    height: min(46rem, calc(100dvh - 2rem));
    max-height: calc(100dvh - 2rem);
    width: min(90rem, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
}

/* Contrato técnico de dynamic_modules para modales consistentes.
   La ventana conserva altura fija; sólo el contenido central se desplaza. */
.fi-modal-window[data-sysbar-modal-standard],
.fi-modal-window:has([data-sysbar-modal-standard]) {
    height: min(46rem, calc(100dvh - 2rem));
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fi-modal-window[data-sysbar-modal-standard] .fi-modal-content,
.fi-modal-window[data-sysbar-modal-standard] .fi-modal-body,
.fi-modal-window:has([data-sysbar-modal-standard]) .fi-modal-content,
.fi-modal-window:has([data-sysbar-modal-standard]) .fi-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.fi-modal-window[data-sysbar-modal-standard] .fi-modal-footer,
.fi-modal-window:has([data-sysbar-modal-standard]) .fi-modal-footer {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.fi-modal-window[data-sysbar-modal-standard][data-sysbar-modal-footer="end"] .fi-modal-footer-actions,
.fi-modal-window:has([data-sysbar-modal-standard][data-sysbar-modal-footer="end"]) .fi-modal-footer-actions {
    justify-content: flex-end;
    margin-left: auto;
}

.fi-modal-content:has(.sysbar-product-modal),
.fi-modal-body:has(.sysbar-product-modal) {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0 !important;
}

html.sap-requerimientos-mode .fi-modal-window:has(.sysbar-product-modal) {
    max-height: calc(100dvh - 2rem);
}

.sysbar-product-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 24px 16px;
    overflow: hidden;
}

.sysbar-product-modal-dialog {
    width: min(82rem, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid #d0dce7;
    border-radius: 0;
    background: #ffffff;
    padding: 20px 24px 24px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.sysbar-product-modal-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.sysbar-product-modal-dialog__eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.15rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #edf3f8;
    color: #35506a;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sysbar-product-modal-dialog__title {
    margin: 0.15rem 0 0;
    color: #17324b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.sysbar-product-modal-dialog__body {
    margin-top: 0.5rem;
    overflow: hidden;
}

.sysbar-product-repeater-module .movement-products-table__frame {
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.dynamic-modules-page__hero {
    padding: 1.2rem 1.3rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 58%, #eff6ff 100%);
}

.dynamic-modules-page__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c2410c;
}

.dynamic-modules-page__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.dynamic-modules-page__lead {
    margin: 0.4rem 0 0;
    max-width: 58rem;
    color: #475569;
}

.dynamic-module-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.dynamic-module-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.dynamic-module-card__kicker {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c2410c;
}

.dynamic-module-card__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.dynamic-module-card__summary,
.dynamic-module-card__owner {
    margin: 0.35rem 0 0;
    color: #475569;
}

.dynamic-module-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dynamic-module-panel {
    padding: 1rem;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.dynamic-module-panel h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.dynamic-module-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1rem;
    color: #334155;
}

.dynamic-module-revisions,
.dynamic-module-applications {
    display: grid;
    gap: 0.75rem;
}

.dynamic-module-revision,
.dynamic-module-application {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.dynamic-module-revision strong,
.dynamic-module-application strong {
    display: block;
    color: #0f172a;
}

.dynamic-module-revision span,
.dynamic-module-revision p,
.dynamic-module-application p {
    color: #64748b;
}

@keyframes sysbarPulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 960px) {
    .sysbar-product-modal__hero,
    .sysbar-product-modal__toolbar,
    .dynamic-module-card__header,
    .dynamic-module-card__grid,
    .dynamic-module-revision,
    .dynamic-module-application {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
/**
 * SYSBAR MODERN DESIGN SYSTEM & RESET
 * A clean, premium foundation for the application.
 */

[x-cloak] {
    display: none !important;
}

/* 1. DESIGN TOKENS (CSS Variables) */
:root {
    /* Brand Colors - Sophisticated Blue Palette */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    /* Base Primary */
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Surface & Backgrounds */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-subtle: #e2e8f0;

    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* 2. MODERN CSS RESET (Based on Josh Comeau's Reset) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html,
body {
    height: 100%;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg-main);
    color: var(--text-main);
}

img,
picture,
video,
canvas {
    display: block;
    max-width: 100%;
}

svg {
    max-width: 100%;
}

/* Tailwind size utilities missing from Filament's CSS bundle */
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-full { width: 100%; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.pointer-events-none { pointer-events: none; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.whitespace-nowrap { white-space: nowrap; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.border { border-width: 1px; border-style: solid; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35); }
.overflow-x-auto { overflow-x: auto; }

.fi-icon,
.fi-icon svg,
.fi-input-wrp svg,
.fi-btn svg,
.fi-icon-btn svg,
.fi-ac-btn svg,
.fi-fo-field svg {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    max-width: none;
    flex-shrink: 0;
}

.fi-input-wrp {
    min-width: 0;
}

.similar-products-preview-empty svg {
    width: 1.25rem;
    height: 1.25rem;
    max-width: none;
    flex-shrink: 0;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[x-cloak] {
    display: none !important;
}

.navegacion_modal nav p {
    margin-right: 5px !important;
}

.icono_search,
.receipt-association-search-icon {
    left: 8px !important;
}

.fi-btn:not(.fi-outlined).fi-color:not(label) > .fi-icon {
    color: white;
}

.fi-modal>.fi-modal-window-ctn>.fi-modal-window .fi-modal-header {
    padding-inline: calc(var(--spacing) * 4);
    padding-top: calc(var(--spacing) * 3);
    padding-bottom: calc(var(--spacing) * 2);
    display: flex;
}

.fi-modal:not(.fi-modal-slide-over)>.fi-modal-window-ctn>.fi-modal-window .fi-modal-close-btn {
    inset-inline-end: calc(var(--spacing) * 4);
    top: calc(var(--spacing) * 1.5);
}

.fi-modal-window:has(.receipt-association-modal-shell) {
    max-height: calc(100dvh - 1rem);
    overflow: hidden !important;
}

.fi-modal-content:has(.receipt-association-modal-shell),
.fi-modal-body:has(.receipt-association-modal-shell) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100dvh - 4rem);
    overflow: hidden !important;
}

.receipt-association-modal {
    display: flex;
    flex-direction: column;
    color: #1f2937;
    min-height: 0;
    height: min(82vh, calc(100dvh - 5rem));
    max-height: calc(100dvh - 5rem);
}

.receipt-association-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    padding: 0.8rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.movement-party-fieldset,
.schema-section-general {
    border: 1px solid #818181;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 0.9rem 1rem 0.6rem;
}

.schema-component-form-recibos_cobros,
.schema-component-form-recibos {
    border: 1px solid #475569;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 1rem;
}

.receipt-linked-table__frame {
    border: 1px solid #d7e1ea;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.schema-component-form-recibos .receipt-linked-table__frame,
.schema-component-form-recibos_cobros .receipt-linked-table__frame {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
    padding: 0 !important;
}

.receipt-linked-table__table thead tr {
    background: #f8fafc;
}

.receipt-linked-table__table thead th {
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.receipt-linked-table__th,
.receipt-linked-table__index,
.receipt-linked-table__document,
.receipt-linked-table__amount-cell,
.receipt-linked-table__status,
.receipt-linked-table__actions {
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
}

.receipt-linked-table__th--amount,
.receipt-linked-table__amount-cell,
.receipt-linked-table__th--status,
.receipt-linked-table__status,
.receipt-linked-table__th--action,
.receipt-linked-table__actions {
    text-align: right;
}

.receipt-linked-table__th--status,
.receipt-linked-table__status,
.receipt-linked-table__th--action,
.receipt-linked-table__actions {
    text-align: center;
}

.receipt-linked-table__row {
    transition: background-color 0.18s ease;
}

.receipt-linked-table__row:hover {
    background: #f8fbff;
}

.receipt-linked-table__document {
    color: #223548;
}

.receipt-linked-table__document-stack {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.receipt-linked-table__document-title {
    color: #0a6ed1;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.receipt-linked-table__document-subtitle {
    color: #52697f;
    font-size: 0.78rem;
    line-height: 1.35;
}

.receipt-linked-table__amount {
    color: #17324b;
    font-weight: 700;
}

.receipt-linked-table__amount-secondary {
    display: block;
    margin-top: 0.1rem;
    color: #107e3e;
    font-size: 0.72rem;
    font-weight: 600;
}

.receipt-linked-table__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.3rem;
    padding: 0.18rem 0.6rem;
    padding-inline: 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.receipt-linked-table__actions .fi-btn {
    min-height: 2.2rem;
    min-width: 2.2rem;
    padding: 0.35rem !important;
    border-radius: 10px !important;
}

.receipt-linked-table__empty {
    color: #75879a;
    padding: 2rem 1rem;
    text-align: center;
}

.receipt-linked-table__empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.receipt-linked-table__empty-icon {
    width: 1.3rem;
    height: 1.3rem;
    opacity: 0.25;
}

.receipt-linked-table__empty-copy,
.receipt-linked-table__placeholder {
    color: #75879a;
    font-size: 0.78rem;
    font-style: italic;
}

.receipt-linked-table__table tbody tr + tr td {
    border-top: 1px solid #eef3f7;
}

.movement-party-fieldset legend {
    color: #111827;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schema-section-general legend {
    color: #111827;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.movement-party-fieldset .movement-party-grid {
    row-gap: 0.75rem;
}

.movement-party-fieldset .fi-fo-field-wrp,
.movement-party-fieldset .fi-fo-field-wrp-ctn {
    min-width: 0;
}

.movement-party-fieldset input,
.movement-party-fieldset select {
    min-height: 44px;
}

.movement-party-fieldset .fi-input-wrp,
.movement-party-fieldset .choices,
.movement-party-fieldset .choices__inner {
    border-radius: 12px !important;
}

.movement-party-fieldset .sales-client-field,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field {
    display: flex;
    align-items: center;
}

.movement-party-fieldset .sales-client-field.fi-input-wrp,
.movement-party-fieldset .sales-client-field .fi-input-wrp-content-ctn,
.movement-party-fieldset .sales-client-field .choices,
.movement-party-fieldset .sales-client-field .choices__inner,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field.fi-input-wrp,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .fi-input-wrp-content-ctn,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .choices,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .choices__inner {
    min-height: 44px !important;
    height: 44px;
}

.movement-party-fieldset .sales-client-field .fi-input,
.movement-party-fieldset .sales-client-field .fi-select-input,
.movement-party-fieldset .sales-client-field .choices__input,
.movement-party-fieldset .sales-client-field .choices__list--single,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .fi-input,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .fi-select-input,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .choices__input,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .choices__list--single {
    min-height: 44px !important;
    height: 44px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.movement-party-fieldset .sales-client-field .fi-input-wrp-content-ctn,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .fi-input-wrp-content-ctn {
    display: flex;
    align-items: center;
}

.movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__inner,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__inner {
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__list--single,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__list--single {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 2rem 0 0.75rem !important;
}

.movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__item,
html.sap-requerimientos-mode .sap-page-resource-form .fi-sc-form .movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__item,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__item {
    display: inline-flex;
    align-items: center;
    min-height: 100%;
    line-height: 1.2;
}

.movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__button,
html.sap-requerimientos-mode.sap-page-resource-form .fi-sc-form .movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__button,
html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset .sales-client-field .choices[data-type*='select-one'] .choices__button {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-top: 0 !important;
}

.movement-party-fieldset .fi-fo-field-wrp-label,
.movement-party-fieldset .fi-fo-field-wrp-label span {
    color: #334155;
    font-weight: 700;
}

@media (max-width: 768px) {
    .movement-party-fieldset {
        padding: 0.8rem;
    }
}

.receipt-association-banner {
    margin-bottom: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.receipt-association-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.receipt-association-banner-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.receipt-association-banner-title {
    margin: 0;
    color: #17324b;
    font-size: 0.88rem;
    font-weight: 800;
}

.receipt-association-banner-text {
    margin: 0;
    color: #4b6278;
    font-size: 0.83rem;
    line-height: 1.45;
}

.receipt-association-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.4rem;
    padding: 0.05rem 0.45rem;
    border: 1px solid #d3e0eb;
    border-radius: 9999px;
    background: #ffffff;
    color: #20405b;
    font-size: 0.72rem;
    font-weight: 800;
}

.receipt-association-chip--type {
    color: #986a08;
}

.sap-session-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem 0.85rem;
    align-items: start;
    margin-bottom: 0.7rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #d8e1e8;
    border-left: 4px solid #d39b09;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(255, 247, 205, 0.84) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.sap-session-banner__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0.08rem 0.5rem;
    border: 1px solid rgba(211, 155, 9, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: #8a6200;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sap-session-banner__copy {
    display: grid;
    gap: 0.12rem;
}

.sap-session-banner__title {
    color: #17324b;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.sap-session-banner__text {
    color: #52697f;
    font-size: 0.83rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .sap-session-banner {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .sap-session-banner__status {
        justify-self: start;
    }
}

.receipt-association-chip--branch {
    color: #1f5e8c;
}

.receipt-association-chip--concept {
    color: #25704c;
}

.receipt-association-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    margin-bottom: 0.4rem;
    align-items: end;
}

.receipt-association-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.receipt-association-search-shell {
    flex: 1 1 auto;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    padding: 0.45rem 0.55rem 0.5rem;
}

.receipt-association-search-label {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #5d7488;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.receipt-association-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.receipt-association-search-icon {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #64748b;
    z-index: 1;
}

.receipt-association-search-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.receipt-association-search-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin: 0.55rem 0 0;
    color: #556c81;
    font-size: 0.78rem;
    line-height: 1.45;
}

.receipt-association-search-input,
input[type="text"].receipt-association-search-input,
input[type="text"].bg-transparent {
    width: 100%;
    min-height: 40px;
    padding: 0.58rem 2.55rem 0.58rem 2.3rem !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    color: #1f2937 !important;
    font-size: 0.88rem;
    line-height: 1.35;
}

.receipt-association-search-input::placeholder,
input[type="text"].receipt-association-search-input::placeholder,
input[type="text"].bg-transparent::placeholder {
    color: #94a3b8 !important;
}

.receipt-association-search-input:focus,
input[type="text"].receipt-association-search-input:focus,
input[type="text"].bg-transparent:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14) !important;
    outline: none;
}

.receipt-association-clear-btn {
    color: #64748b !important;
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.receipt-association-clear-btn:hover {
    color: #0f172a !important;
}

.receipt-association-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.58rem 0.85rem;
    border-radius: 12px;
    background: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.receipt-association-filter-btn svg {
    flex: 0 0 auto;
}

.receipt-association-filter-btn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

.receipt-association-filter-btn.is-active,
.receipt-association-filter-btn--annulled.is-active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.receipt-association-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    min-height: 1.75rem;
    padding: 0 0.1rem;
    color: #475569;
}

.receipt-association-results {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
}

.receipt-association-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.receipt-association-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.05rem 0.45rem;
    border: 1px solid #d6e1ea;
    border-radius: 9999px;
    background: #f8fbfe;
    color: #567086;
    font-size: 0.72rem;
    font-weight: 700;
}

.receipt-association-loading {
    font-size: 0.78rem;
    color: #62788e;
}

.receipt-association-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.receipt-association-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    color: #1f2937;
}

.receipt-association-table thead tr {
    background: #f8fafc;
}

.receipt-association-table th {
    padding: 0.68rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.receipt-association-table td {
    padding: 0.65rem 0.85rem;
    font-size: 0.86rem;
    color: #1f2937;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.receipt-association-table__actions-head,
.receipt-association-cell--actions {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.receipt-association-cell--document {
    font-weight: 700;
}

.receipt-association-cell--amount {
    white-space: nowrap;
    font-weight: 700;
}

.receipt-association-cell--date {
    white-space: nowrap;
}

.receipt-association-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.45rem;
    padding: 0.08rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.receipt-association-table tbody tr:hover {
    background: #f8fafc !important;
}

.receipt-row-associated {
    background: #fffaf0;
}

.receipt-row-associated:hover {
    background: #fff7ed !important;
}

.receipt-row-anulado td {
    background: transparent !important;
    color: #4b5563 !important;
    text-decoration: line-through;
    text-decoration-color: #6b7280;
}

.receipt-row-anulado:hover td {
    background: transparent !important;
}

.receipt-anulado-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.45rem;
    padding: 0.08rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #4b5563;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: line-through;
    text-decoration-color: #6b7280;
}

.receipt-association-table .bg-amber-100 {
    background: #fef3c7 !important;
}

.receipt-association-table .bg-emerald-600 {
    background: #059669 !important;
}

.receipt-association-table .bg-gray-500 {
    background: #475569 !important;
}

.modalButtonSelect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.15rem;
    padding: 0.45rem 0.82rem;
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #111827 !important;
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.22);
}

.modalButtonSelect:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.modalButtonSelect:disabled {
    cursor: not-allowed;
}

.sunat-status-legend {
    display: grid;
    gap: 0.9rem;
}

.sunat-status-legend__intro {
    padding: 0.9rem 1rem;
    border: 1px solid #d6e1ea;
    border-radius: 0;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f6fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sunat-status-legend__eyebrow {
    color: #5f768b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sunat-status-legend__intro-text {
    margin: 0.35rem 0 0;
    color: #425c73;
    font-size: 0.88rem;
    line-height: 1.55;
}

.sunat-status-legend__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.sunat-status-legend__card {
    position: relative;
    padding: 0.95rem 1rem;
    border: 1px solid #d7e2eb;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 6px 14px rgba(24, 52, 77, 0.05);
    overflow: hidden;
}

.sunat-status-legend__card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #9db1c3;
}

.sunat-status-legend__card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.sunat-status-legend__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    border: 1px solid #d6e1ea;
    border-radius: 0;
    background: linear-gradient(180deg, #f9fbfd 0%, #eef3f7 100%);
    color: #35506a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.sunat-status-legend__icon-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.sunat-status-legend__body {
    min-width: 0;
}

.sunat-status-legend__label {
    color: #17324b;
    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1.2;
}

.sunat-status-legend__meaning {
    margin: 0.3rem 0 0;
    color: #52697f;
    font-size: 0.84rem;
    line-height: 1.55;
}

.sunat-status-legend__card--success::before {
    background: #2f7d31;
}

.sunat-status-legend__card--success .sunat-status-legend__icon {
    border-color: #c9dfcb;
    background: linear-gradient(180deg, #f4fbf5 0%, #e8f6ea 100%);
    color: #2f7d31;
}

.sunat-status-legend__card--warning::before {
    background: #b7791f;
}

.sunat-status-legend__card--warning .sunat-status-legend__icon {
    border-color: #ead7b0;
    background: linear-gradient(180deg, #fffaf1 0%, #fcefd6 100%);
    color: #b7791f;
}

.sunat-status-legend__card--danger::before {
    background: #b44343;
}

.sunat-status-legend__card--danger .sunat-status-legend__icon {
    border-color: #ebcbcb;
    background: linear-gradient(180deg, #fff7f7 0%, #fbe8e8 100%);
    color: #b44343;
}

.sunat-status-legend__card--info::before {
    background: #0a6ed1;
}

.sunat-status-legend__card--info .sunat-status-legend__icon {
    border-color: #c7dbef;
    background: linear-gradient(180deg, #f6fbff 0%, #e7f2fb 100%);
    color: #0a6ed1;
}

.sunat-status-legend__card--neutral::before {
    background: #70869c;
}

.sunat-status-legend__card--neutral .sunat-status-legend__icon {
    border-color: #d4dde6;
    background: linear-gradient(180deg, #fbfcfd 0%, #eef2f5 100%);
    color: #70869c;
}

.ventas-list-header-action,
.ventas-list-header-action .fi-btn,
.ventas-list-header-action button,
.ventas-list-header-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 10.5rem;
    min-width: 10.5rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.775rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.ventas-list-header-action .fi-btn-label,
.ventas-list-header-action .fi-btn span,
.ventas-list-header-action button span,
.ventas-list-header-action a span {
    font-size: inherit;
}

.ventas-list-header-action .fi-btn-icon,
.ventas-list-header-action .fi-btn svg,
.ventas-list-header-action button svg,
.ventas-list-header-action a svg {
    color: #fff !important;
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.ingreso-list-header-action .fi-btn-icon,
.ingreso-list-header-action .fi-btn svg,
.ingreso-list-header-action button svg,
.ingreso-list-header-action a svg,
.recibo-list-header-action .fi-btn-icon,
.recibo-list-header-action .fi-btn svg,
.recibo-list-header-action button svg,
.recibo-list-header-action a svg,
.ingreso-secondary-payment-action .fi-btn-icon,
.ingreso-secondary-payment-action .fi-btn svg,
.ingreso-secondary-payment-action button svg,
.ingreso-secondary-payment-action a svg {
    color: #fff !important;
    stroke: currentColor !important;
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

@media (max-width: 780px) {
    .ventas-list-header-action,
    .ventas-list-header-action .fi-btn,
    .ventas-list-header-action button,
    .ventas-list-header-action a {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .sunat-status-legend__grid {
        grid-template-columns: 1fr;
    }
}

.receipt-association-empty {
    padding: 2.5rem 1rem !important;
    text-align: center;
    color: #64748b;
}

.receipt-association-empty-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.receipt-association-pagination {
    flex: 0 0 auto;
    margin-top: 0.8rem;
    padding: 0.5rem 0.25rem;
}

.receipt-association-pagination nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: center;
}

.receipt-association-pagination nav > div:first-child {
    display: none;
}

.receipt-association-pagination nav > div:last-child {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.receipt-association-pagination nav > div:last-child > div:first-child p {
    margin: 0;
    color: #5f768b;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
}

.receipt-association-pagination nav > div:last-child > div:last-child {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.receipt-association-pagination nav .relative.z-0.inline-flex {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.22rem;
    border-radius: 0;
    box-shadow: none;
}

.receipt-association-pagination nav .relative.z-0.inline-flex > * {
    margin: 0 2px !important;
}

.receipt-association-pagination nav .relative.z-0.inline-flex a,
.receipt-association-pagination nav .relative.z-0.inline-flex button,
.receipt-association-pagination nav .relative.z-0.inline-flex span > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.32rem 0.52rem;
    border: 1px solid #cfdae5;
    border-radius: 6px;
    background: #ffffff;
    color: #35506a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.receipt-association-pagination nav .relative.z-0.inline-flex a:hover {
    background: #f8fbfe;
    border-color: #a8bfd5;
}

.receipt-association-pagination nav .relative.z-0.inline-flex span[aria-current='page'] > span {
    background: linear-gradient(180deg, #0a6ed1 0%, #085caf 100%);
    border-color: #0a5db2;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(10, 110, 209, 0.16);
}

.receipt-association-pagination nav .relative.z-0.inline-flex span[aria-disabled='true'] > span {
    background: #f6f9fc;
    color: #91a2b3;
    border-color: #d7e1ea;
    box-shadow: none;
}

.receipt-association-pagination nav .relative.z-0.inline-flex svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 768px) {
    .fi-modal-window:has(.receipt-association-modal-shell) {
        max-height: calc(100dvh - 1rem);
    }

    .fi-modal-content:has(.receipt-association-modal-shell),
    .fi-modal-body:has(.receipt-association-modal-shell) {
        max-height: calc(100dvh - 3rem);
    }

    .receipt-association-modal {
        height: min(72vh, calc(100dvh - 5rem));
        max-height: calc(100dvh - 5rem);
    }

    .receipt-association-panel {
        padding: 0.7rem;
    }

    .receipt-association-toolbar,
    .receipt-association-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .receipt-association-meta {
        gap: 0.5rem;
        min-height: auto;
    }

    .receipt-association-search-shell {
        padding: 0.45rem;
    }

    .receipt-association-filter-btn {
        width: 100%;
        justify-content: center;
    }

    .receipt-association-actions {
        width: 100%;
    }

    .receipt-association-pagination nav > div:first-child {
        display: flex;
        justify-content: space-between;
        gap: 0.55rem;
    }

    .receipt-association-pagination nav > div:first-child > * {
        flex: 1 1 0;
    }

    .receipt-association-pagination nav > div:first-child a,
    .receipt-association-pagination nav > div:first-child span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.05rem;
        padding: 0.4rem 0.6rem;
        border: 1px solid #cfdae5;
        border-radius: 10px;
        background: #ffffff;
        color: #35506a;
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
    }

    .receipt-association-pagination nav > div:last-child {
        display: none;
    }
}

html.sap-requerimientos-mode .receipt-association-search-context {
    color: #5a7186;
}

html.sap-requerimientos-mode .receipt-association-filter-btn {
    gap: 0.6rem;
}

html.sap-requerimientos-mode .receipt-association-pagination nav > div:last-child > div:first-child p {
    color: #60778d;
}

html.sap-requerimientos-mode .receipt-association-pagination nav .relative.z-0.inline-flex a,
html.sap-requerimientos-mode .receipt-association-pagination nav .relative.z-0.inline-flex span > span {
    border-radius: 0 !important;
    border-color: #bfd1df;
    background: linear-gradient(180deg, #ffffff 0%, #eef5fa 100%);
    color: #294965;
    box-shadow: none;
}

html.sap-requerimientos-mode .receipt-association-pagination nav .relative.z-0.inline-flex a:hover {
    background: linear-gradient(180deg, #f8fbff 0%, #e7f0f9 100%);
    border-color: #9fc0db;
}

html.sap-requerimientos-mode .receipt-association-pagination nav .relative.z-0.inline-flex span[aria-current='page'] > span {
    background: linear-gradient(180deg, #0a6ed1 0%, #085caf 100%);
    border-color: #0a5db2;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(10, 110, 209, 0.16);
}

html.sap-requerimientos-mode .receipt-association-pagination nav .relative.z-0.inline-flex span[aria-disabled='true'] > span,
html.sap-requerimientos-mode .receipt-association-pagination nav > div:first-child span {
    background: linear-gradient(180deg, #f5f8fb 0%, #edf3f7 100%);
    color: #8aa0b4;
    border-color: #d4e0ea;
}

html.sap-requerimientos-mode .receipt-association-pagination nav > div:first-child a {
    border-radius: 0 !important;
    border-color: #bfd1df;
    background: linear-gradient(180deg, #ffffff 0%, #eef5fa 100%);
    color: #294965;
}

/* 3. FILAMENT LAYOUT OVERRIDES */
.fi-sidebar {
    width: var(--sidebar-width) !important;
    max-width: none !important;
    background: #232323 !important;
    border-right: 0 !important;
}

@media (min-width: 1024px) {
    .fi-layout > [wire\:name="Filament\\Livewire\\Sidebar"] {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 20;
        width: var(--sidebar-width);
        flex: 0 0 var(--sidebar-width);
    }

    .fi-layout > .fi-main-ctn {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        min-width: 0;
    }

    .fi-sidebar {
        position: relative;
        top: 0;
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .fi-sidebar-header {
        position: sticky;
        top: 0;
        z-index: 2;
        flex-shrink: 0;
    }

    .fi-sidebar-nav {
        flex: 1 1 auto;
        min-height: 0 !important;
        overflow-y: auto !important;
    }
}

.fi-layout,
.fi-main-ctn {
    min-height: 100dvh;
}

.fi-sidebar-header,
.fi-sidebar-nav {
    background: #232323 !important;
}

.fi-sidebar-nav {
    min-height: 0 !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
    overflow-y: auto !important;
}

.fi-sidebar-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fi-topbar-ctn {
    position: sticky;
    top: 0;
    z-index: 40;
    overflow-x: clip;
}

.fi-topbar {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    min-height: 4rem;
    padding-inline: 1rem !important;
    gap: 1rem;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
}

.fi-topbar-start {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 41;
}

.fi-topbar-nav-groups {
    align-items: center;
    min-width: 0;
}

.fi-topbar-end {
    display: flex !important;
    align-items: center !important;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto !important;
    margin-inline-start: auto !important;
    justify-content: flex-end;
}

.fi-global-search-ctn {
    display: flex;
    align-items: center;
    min-width: 0;
}

.fi-topbar .fi-global-search-ctn,
.fi-topbar-end > .fi-global-search-ctn {
    display: none !important;
}

.fi-global-search {
    flex: 1 1 20rem;
    min-width: 0;
}

.fi-topbar .fi-user-menu-trigger,
.fi-topbar-database-notifications-btn {
    flex-shrink: 0;
}

ul.fi-sidebar-nav-groups {
    row-gap: 0.875rem;
    padding-top: 0.5rem;
}

a.fi-sidebar-item-button {
    display: flex;
    width: 100%;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.58rem;
    padding: 9px 10px 9px 8px;
    border-radius: inherit;
    color: #ffffff !important;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.fi-sidebar-item,
.fi-sidebar-item-btn,
.fi-sidebar-item-btn > a.fi-sidebar-item-button,
.fi-sidebar-group-items {
    width: 100%;
}



.fi-sidebar-group-items {
    display: grid;
    row-gap: 0.25rem;
}

/* Sangria visual para distinguir los enlaces hijos de cada grupo. */
.fi-sidebar-group[data-group-label]:not([data-group-label='']) > .fi-sidebar-group-items {
    box-sizing: border-box;
    padding-inline-start: 0.75rem;
}


.fi-sidebar-item-icon,
.fi-sidebar-group-icon {
    color: #ffffff !important;
    opacity: 0.9;
}

.fi-sidebar .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-group-label,
.fi-sidebar .fi-sidebar-item-button,
.fi-sidebar .fi-sidebar-item-button span,
.fi-sidebar .fi-icon-btn,
.fi-sidebar svg {
    color: #ffffff !important;
}

.fi-sidebar-item:hover > .fi-sidebar-item-btn,
.fi-sidebar-item:focus-within > .fi-sidebar-item-btn,
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover,
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:focus-visible, 
.fi-sidebar-item.fi-active>.fi-sidebar-item-btn {
    background-color: #3a3a3a !important;
}

.fi-sidebar-item:hover > .fi-sidebar-item-btn > a.fi-sidebar-item-button,
.fi-sidebar-item:focus-within > .fi-sidebar-item-btn > a.fi-sidebar-item-button,
a.fi-sidebar-item-button:hover {
    background-color: transparent !important;
    color: #ffffff !important;
}

.fi-sidebar-item-active > .fi-sidebar-item-btn,
.fi-sidebar-item-active a.fi-sidebar-item-button,
a.fi-sidebar-item-button[aria-current='page'],
a.fi-sidebar-item-button[aria-current='true'] {
    background-color: rgb(217, 119, 6);
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px #f59e0b;
}

.fi-sidebar-item-active .fi-sidebar-item-icon,
a.fi-sidebar-item-button[aria-current='page'] .fi-sidebar-item-icon,
a.fi-sidebar-item-button[aria-current='true'] .fi-sidebar-item-icon {
    color: #ffffff !important;
}

/* Sidebar label truncation */
.fi-sidebar-item-label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    padding-left: 0 !important;
}

/* Main content spacing */
.fi-main {
    padding-inline: 1.5rem !important;
}

@media (max-width: 768px) {
    .fi-main {
        padding-inline: 1rem !important;
    }
}

/* 4. GLOBAL FILAMENT COMPONENT TWEAKS */
.fi-ta-text-item-label.text-sm {
    font-size: 0.8rem !important;
    line-height: 1rem !important;
}

.fi-ta-text.grid {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.fi-ta-text:not(.fi-inline) {
    padding-inline: calc(var(--spacing) * 3);
    padding-block: calc(var(--spacing) * 2.5);
}

/* Repeater Spacing */
.fi-fo-field[data-state-path="detalles"] .fi-fo-repeater {
    gap: 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Form fields - readonly consistency */
.fi-body input[readonly="readonly"],
.fi-body textarea[readonly="readonly"],
.fi-body .fi-input[readonly="readonly"] {
    background-color: #f9fafb !important;
    color: #6b7280 !important;
    cursor: default !important;
    opacity: 1 !important;
}

/* Specialized input: Cantidad */
.fi-body .cantidad-cell input {
    text-align: center !important;
    width: 100px !important;
    color: #111827 !important;
    font-weight: 700 !important;
    background-color: #ffffff !important;
    border: 2px solid var(--primary-500) !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-sm) !important;
}

.dark .cantidad-cell input {
    color: #ffffff !important;
    background-color: #1f2937 !important;
}

/* Cross-browser spinner forcing */
.fi-body .cantidad-cell input::-webkit-outer-spin-button,
.fi-body .cantidad-cell input::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button !important;
    opacity: 1 !important;
}

.fi-body .cantidad-cell input {
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

.movement-products-table__frame {
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.movement-list-date {
    display: inline-flex;
    flex-direction: column;
    gap: 0.12rem;
    line-height: 1.02;
}

.movement-list-date__day {
    font-weight: 800;
}

.movement-list-date__time {
    color: #0f172a;
    font-size: 0.96rem;
}

.movement-products-table__table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.movement-products-table__table thead th {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25rem;
    vertical-align: middle;
}

.movement-products-table__th-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.movement-products-table__hint,
.movement-products-table__status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6a8095;
}

.movement-products-table__hint {
    cursor: help;
}

.movement-products-table__hint:hover,
.movement-products-table__status-icon:hover {
    color: #0a6ed1;
}

.movement-products-table--stock .movement-products-table__index-header,
.movement-products-table--stock .movement-products-table__index-cell {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding-left: 0.75rem !important;
    padding-right: 0.5rem !important;
    text-align: center;
}

.movement-products-table--stock .movement-products-table__index-cell > div {
    justify-content: center;
}

.movement-products-table__table tbody {
    background: #fff;
}

.movement-products-table__row {
    border-bottom: 1px solid #eef2f7;
    transition: background-color 0.2s ease;
}

.movement-products-table__row:hover {
    background: #fafcff;
}

.movement-products-table .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

.movement-products-table .grid {
    gap: 0 !important;
}

.movement-products-table .fi-fo-repeater-item-content {
    padding: 0 !important;
}

.movement-products-table .fi-fo-field-wrp-label,
.movement-products-table .fi-fo-field-wrp-helper-text,
.movement-products-table .fi-fo-field-wrp-error-message {
    display: none !important;
}

.movement-products-table .product-info-cell label,
.movement-products-table .cantidad-cell label,
.movement-products-table .precio-cell label,
.movement-products-table .repeater-distribution-status label {
    display: none !important;
}

.movement-products-table .fi-input-wrp {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.movement-products-table input {
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.1rem 0.25rem !important;
}

.movement-products-table .product-info-cell input,
.movement-products-table .product-info-cell .fi-input {
    width: 100% !important;
    font-weight: 500 !important;
    color: #334155 !important;
}

.movement-products-table__product-cell,
.movement-products-table__warehouse-cell {
    min-width: 0;
}

.movement-products-table__product-card {
    display: flex;
    align-items: center;
    min-height: 3.55rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid #dde7ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.movement-products-table__product-line {
    margin: 0;
    color: #17324b;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.38;
    white-space: normal;
    overflow-wrap: anywhere;
}

.movement-products-table .cantidad-cell .fi-input-wrp {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.movement-products-table .precio-cell .fi-input-wrp {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.movement-products-table .cantidad-cell input {
    text-align: center !important;
    width: 100px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

.movement-products-table .precio-cell input {
    min-width: 106px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.movement-products-table .cantidad-cell input[type="number"]::-webkit-inner-spin-button,
.movement-products-table .cantidad-cell input[type="number"]::-webkit-outer-spin-button {
    opacity: 1 !important;
    appearance: auto !important;
    display: block !important;
}

.movement-products-table .cantidad-cell input[type="number"] {
    appearance: auto !important;
    -moz-appearance: number-input !important;
}

.movement-products-table .repeater-almacen-cell,
.movement-products-table .repeater-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.movement-products-table .repeater-almacen-cell {
    align-items: flex-start;
}

.movement-products-table .repeater-actions-stack {
    align-items: center;
}

.movement-products-table .fi-ac {
    width: 100%;
}

.movement-products-table .fi-btn {
    white-space: normal;
    text-align: center;
}

.movement-products-table .repeater-distribution-status {
    width: 100%;
}

.movement-products-table__warehouse-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #4e657b;
    font-size: 0.82rem;
    font-weight: 700;
}

.movement-products-table__status-content {
    min-width: 0;
}

.movement-products-table .repeater-distribution-status .fi-fo-placeholder {
    margin-bottom: 0;
}

.movement-products-table .repeater-distribution-status .fi-fo-placeholder-content {
    width: auto;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.movement-products-table__empty-state {
    display: inline-flex;
    max-width: 42rem;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.movement-products-table__empty-title {
    margin: 0;
    color: #35506a;
    font-size: 1rem;
    font-weight: 800;
    font-style: normal;
}

.movement-products-table__empty-help {
    margin: 0;
    color: #6a7f93;
    font-size: 0.86rem;
    line-height: 1.45;
    font-style: normal;
}

.movement-products-table button[title="Borrar"] {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.movement-products-table .movement-products-table__row:hover button[title="Borrar"] {
    opacity: 1;
}

.pedido-form-shell {
    width: 100%;
    border: 1px solid #d5e0ea;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f9fc 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.pedido-form-shell,
.pedido-form-shell > .fi-section,
.pedido-form-shell > .fi-section > .fi-section-content-ctn,
.pedido-form-shell .fi-section-content {
    width: 100%;
}

.pedido-form-shell > .fi-section-content-ctn {
    padding: 1rem 1.1rem 1.15rem;
}

.pedido-form-shell .fi-section {
    height: 100%;
}

.pedido-form-panel {
    border: 1px solid #d7e3ed;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pedido-form-panel > .fi-section-content-ctn {
    padding: 1rem;
}

html.sap-requerimientos-mode.sap-page-resource-form .fi-sc-form .fi-section-content,
html.sap-requerimientos-mode .sap-object-tabs .fi-sc-form .fi-section-content {
    padding: 0.78rem 0.78rem !important;
}

html.sap-requerimientos-mode .sysbar-cancel-action {
    background: linear-gradient(180deg, #d76260 0%, #b94947 100%) !important;
    color: #ffffff !important;
    border-color: #a53f3d !important;
    box-shadow: 0 8px 18px rgba(185, 73, 71, 0.2) !important;
}

html.sap-requerimientos-mode .sysbar-cancel-action:hover {
    background: linear-gradient(180deg, #de7876 0%, #c75957 100%) !important;
}

.pedido-form-panel--main > .fi-section-content-ctn,
.pedido-form-panel--main .fi-section-content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pedido-form-header-grid {
    row-gap: 0.75rem !important;
    column-gap: 0.9rem !important;
    align-items: end;
}

.pedido-form-header-grid .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

.pedido-form-header-grid .fi-input-wrp,
.pedido-form-header-grid .choices,
.pedido-form-header-grid .choices__inner {
    min-height: 2.85rem;
}

.pedido-form-header-grid .fi-fo-field-wrp-label {
    margin-bottom: 0.38rem !important;
}

.pedido-form-status-field,
.pedido-form-status-field .fi-input-wrp,
.pedido-form-status-field .choices,
.pedido-form-status-field .choices__inner {
    width: 100%;
}

.pedido-form-panel--main {
    min-width: 0;
}

.pedido-form-panel--side {
    align-self: start;
    min-width: 0;
}

.pedido-form-panel--side .fi-section-content-ctn {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pedido-form-panel--side .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

.pedido-form-panel--side .fi-input-wrp,
.pedido-form-panel--side .choices,
.pedido-form-panel--side .choices__inner {
    min-height: 2.85rem;
}

.pedido-form-actions {
    margin-top: 0;
    margin-bottom: 0.1rem;
    width: 100%;
}

.pedido-form-actions .fi-ac {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.pedido-form-actions .fi-btn {
    min-height: 2.8rem;
    padding-inline: 1rem;
    min-width: 14rem;
    border-radius: 0.78rem;
    box-shadow: 0 10px 18px rgba(10, 110, 209, 0.14);
}

.movement-products-table--pedido .movement-products-table__frame {
    overflow-x: auto;
    margin-top: 0.3rem;
    border: 1px solid #d7e3ed;
    border-radius: 0.95rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.movement-products-table--pedido .movement-products-table__table {
    table-layout: auto;
}

.movement-products-table--pedido .movement-products-table__table th {
    white-space: nowrap;
}

.pedido-products-table__table th:first-child,
.pedido-products-table__table td:first-child {
    padding-left: 1.35rem;
}

.movement-products-table--pedido .movement-products-table__product-cell {
    width: auto;
}

.pedido-products-table__table .movement-products-table__product-line {
    line-height: 1.28;
}

.pedido-products-table__table tbody tr:first-child td {
    padding-top: 0.45rem;
}

.pedido-products-table__table tbody tr:last-child td {
    padding-bottom: 0.45rem;
}

.pedido-products-table__table tbody td {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.pedido-products-table__product-card {
    min-height: 2.5rem;
    min-width: 0;
    width: 100%;
    align-items: flex-start;
    padding: 0.38rem 0.62rem;
    border-color: #cad8e4;
    border-radius: 0 !important;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0 10px, rgba(239, 244, 248, 0.58) 10px 20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.pedido-products-table__product-card .movement-products-table__product-line {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.pedido-products-table__quantity-cell .fi-input-wrp {
    min-width: 5.2rem;
    max-width: 5.9rem;
    min-height: 2.2rem;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    overflow: visible;
}

.pedido-products-table__quantity-cell .fi-input,
.pedido-products-table__quantity-cell input[type='number'],
.pedido-products-table__quantity-cell input {
    border: 0 !important;
    border-color: transparent !important;
    border-width: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: auto;
}

.pedido-products-table__quantity-cell input {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 0.35rem 1rem !important;
}

.pedido-products-table__actions-stack {
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    min-width: 2.5rem;
}

.pedido-form-repeater,
.pedido-form-observaciones {
    margin-top: 0;
}

.pedido-form-repeater .fi-fo-field-wrp,
.pedido-form-observaciones .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

.pedido-form-repeater .fi-fo-field-wrp-label {
    margin-bottom: 0.45rem !important;
}

.pedido-form-observaciones textarea {
    min-height: 5.25rem;
}

.movement-products-table--pedido .fi-btn[title="Borrar"] {
    min-width: 2.25rem;
    min-height: 2.25rem;
}

.kizen-company-tab-panel__hero-stats article {
    display: grid;
    gap: 4.5px;
    min-height: 3.15rem;
    align-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-card);
    background: #ffffffe6;
    justify-content: center;
    text-align: center;
}

@media (max-width: 1024px) {
    .pedido-form-shell > .fi-section-content-ctn {
        padding: 0.85rem;
    }

    .pedido-form-panel > .fi-section-content-ctn {
        padding: 0.85rem;
    }

    .pedido-form-actions {
        margin-top: 0;
    }

    .pedido-form-header-grid {
        row-gap: 0.7rem !important;
        column-gap: 0.75rem !important;
    }

    .pedido-form-actions .fi-btn {
        min-width: 100%;
    }
}

.warehouse-distribution-stock {
    overflow-x: auto;
}

.warehouse-distribution-stock__table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.warehouse-distribution-stock__table thead {
    background: #f8fafc;
}

.warehouse-distribution-stock__table th,
.warehouse-distribution-stock__table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    font-size: 0.95rem;
    color: #1f2937;
}

.warehouse-distribution-stock__table th {
    font-weight: 700;
    color: #0f172a;
}

.warehouse-distribution-stock__table tbody tr:last-child td {
    border-bottom: 0;
}

.warehouse-distribution-stock__number {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.audit-log-table__frame {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.audit-log-table__table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    color: #475569;
}

.audit-log-table__table thead tr {
    background: #f8fafc;
}

.audit-log-table__table thead th {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    border-bottom: 1px solid #e5e7eb;
}

.audit-log-table__head-cell {
    padding: 0.62rem 0.8rem;
    white-space: nowrap;
    text-align: left;
}

.audit-log-table__row {
    background: #fff;
    transition: background-color 0.2s ease;
}

.audit-log-table__row:hover {
    background: #fafcff;
}

.audit-log-table__row td {
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.audit-log-table__cell {
    padding: 0.72rem 0.8rem;
}

.audit-log-table__cell--date,
.audit-log-table__cell--user,
.audit-log-table__cell--role,
.audit-log-table__cell--action {
    white-space: nowrap;
    vertical-align: middle;
}

.audit-log-table__cell--field {
    width: 16%;
}

.audit-log-table__cell--diff,
.audit-log-table__head-cell--diff {
    width: 18%;
}

.audit-log-table__cell--empty {
    text-align: center;
    font-style: italic;
}

.audit-log-table__row:last-child td {
    border-bottom: 0;
}

.audit-log-table__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.audit-log-table__badge--role {
    background: #dbeafe;
    color: #1d4ed8;
}

.audit-log-table__action {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    white-space: nowrap;
}

.audit-log-table__action--create {
    color: #15803d;
}

.audit-log-table__action--update {
    color: #b45309;
}

.audit-log-table__field {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: #64748b;
}

.audit-log-table__meta,
.audit-log-table__user {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
}

.audit-log-table__value {
    display: block;
    border-radius: 0;
    padding: 0.55rem 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.72rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.audit-log-table__value--old {
    background: #fef2f2;
    color: #b91c1c;
}

.audit-log-table__value--new {
    background: #f0fdf4;
    color: #15803d;
}

.audit-log-table__toggle {
    margin-left: 0.35rem;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 700;
}

.audit-log-table__toggle:hover {
    text-decoration: underline;
}

.audit-log-table__empty {
    color: #94a3b8;
}

.dark .movement-products-table__frame,
.dark .warehouse-distribution-stock__table {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
}

.dark .movement-products-table__table thead tr,
.dark .warehouse-distribution-stock__table thead {
    background: rgba(255, 255, 255, 0.06);
}

.dark .audit-log-table__frame {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
}

.dark .audit-log-table__table thead tr {
    background: rgba(255, 255, 255, 0.06);
}

.dark .movement-products-table__table thead th,
.dark .warehouse-distribution-stock__table th,
.dark .warehouse-distribution-stock__table td {
    color: #e5e7eb;
}

.dark .audit-log-table__table thead th,
.dark .audit-log-table__row td,
.dark .audit-log-table__empty {
    color: #e5e7eb;
}

.dark .audit-log-table__row {
    background: transparent;
}

.dark .audit-log-table__row td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .audit-log-table__field {
    color: #cbd5e1;
}

.dark .audit-log-table__badge--role {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.dark .audit-log-table__value--old {
    background: rgba(127, 29, 29, 0.28);
    color: #fecaca;
}

.dark .audit-log-table__value--new {
    background: rgba(20, 83, 45, 0.28);
    color: #bbf7d0;
}

.dark .movement-products-table .product-info-cell input,
.dark .movement-products-table .cantidad-cell input {
    color: #fff !important;
}

.dark .movement-products-table .cantidad-cell .fi-input-wrp {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(15, 23, 42, 0.6) !important;
}

html.sap-requerimientos-mode .receipt-association-panel,
html.sap-requerimientos-mode .movement-party-fieldset,
html.sap-requerimientos-mode .schema-section-general,
html.sap-requerimientos-mode .schema-component-form-recibos_cobros,
html.sap-requerimientos-mode .schema-component-form-recibos,
html.sap-requerimientos-mode .fi-fieldset,
html.sap-requerimientos-mode .fi-sc-tabs,
html.sap-requerimientos-mode .movement-products-table__frame,
html.sap-requerimientos-mode .warehouse-distribution-stock__table,
html.sap-requerimientos-mode .audit-log-table__frame {
    border: 1px solid #cfdbe6;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 10px 24px rgba(24, 52, 77, 0.08);
}

html.sap-requerimientos-mode .movement-party-fieldset legend,
html.sap-requerimientos-mode .schema-section-general legend,
html.sap-requerimientos-mode .fi-fieldset legend {
    color: #36516c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

html.sap-requerimientos-mode .fi-sc-tabs {
    overflow: hidden;
}

html.sap-requerimientos-mode .fi-sc-tabs > .fi-tabs {
    gap: 0.2rem;
    padding: 0.4rem 0.75rem 0;
    border-bottom: 1px solid #dbe5ee;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

html.sap-requerimientos-mode .fi-tabs-item {
    min-height: 1.95rem;
    padding: 0.34rem 0.72rem 0.28rem;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 0.28rem 0.28rem 0 0 !important;
    color: #5a6f84 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(241, 245, 248, 0.6) 100%) !important;
    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease,
        color 140ms ease;
}

html.sap-requerimientos-mode .fi-tabs-item-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: inherit !important;
}

html.sap-requerimientos-mode .fi-tabs-item.fi-active,
html.sap-requerimientos-mode .fi-tabs-item[aria-selected='true'] {
    color: #1c3951 !important;
    border-color: #cfdbe6;
    border-bottom-color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%) !important;
    box-shadow: inset 0 2px 0 #0a6ed1 !important;
}

html.sap-requerimientos-mode .fi-tabs-item:hover {
    color: #294965 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(246, 249, 252, 0.92) 100%) !important;
}

html.sap-requerimientos-mode .fi-sc-tabs-tab {
    padding: 0.85rem 0.95rem 0.95rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

html.sap-requerimientos-mode .fi-fieldset {
    padding: 0.95rem 1rem 0.7rem;
}

html.sap-requerimientos-mode .fi-fieldset > legend {
    padding-inline: 0.55rem;
}

html.sap-requerimientos-mode .fi-sc-tabs-tab .fi-fieldset,
html.sap-requerimientos-mode .fi-sc-tabs-tab .movement-party-fieldset,
html.sap-requerimientos-mode .fi-sc-tabs-tab .schema-section-general {
    box-shadow: 0 6px 16px rgba(24, 52, 77, 0.06);
}

html.sap-requerimientos-mode .movement-party-fieldset .fi-fo-field-wrp-label,
html.sap-requerimientos-mode .movement-party-fieldset .fi-fo-field-wrp-label span {
    color: #3d556d;
}

html.sap-requerimientos-mode .receipt-association-banner {
    padding: 0.62rem 0.72rem;
    border-radius: 0 !important;
    background: linear-gradient(90deg, rgba(10, 110, 209, 0.06) 0%, rgba(63, 89, 115, 0.04) 100%);
    border: 1px solid rgba(159, 192, 219, 0.42);
}

html.sap-requerimientos-mode .receipt-association-banner-title {
    color: #17324b;
    font-size: 0.84rem;
}

html.sap-requerimientos-mode .receipt-association-banner-text {
    color: #5a7186;
    font-size: 0.8rem;
}

html.sap-requerimientos-mode .receipt-association-chip {
    min-height: 1.3rem;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
    border-color: #c7d9e8;
    color: #315370;
}

html.sap-requerimientos-mode .receipt-association-search-shell,
html.sap-requerimientos-mode .receipt-association-table-wrap {
    border-color: #d2dde8 !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(24, 52, 77, 0.04);
}

html.sap-requerimientos-mode .receipt-association-search-input,
html.sap-requerimientos-mode input[type="text"].receipt-association-search-input,
html.sap-requerimientos-mode input[type="text"].bg-transparent {
    min-height: 2.2rem;
    border-color: #c5d7e6 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    border-radius: 0 !important;
    color: #223548 !important;
}

html.sap-requerimientos-mode .receipt-association-search-input::placeholder,
html.sap-requerimientos-mode input[type="text"].receipt-association-search-input::placeholder,
html.sap-requerimientos-mode input[type="text"].bg-transparent::placeholder {
    color: #7c93aa !important;
}

html.sap-requerimientos-mode .receipt-association-search-input:focus,
html.sap-requerimientos-mode input[type="text"].receipt-association-search-input:focus,
html.sap-requerimientos-mode input[type="text"].bg-transparent:focus {
    border-color: #0a6ed1 !important;
    box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.14) !important;
}

html.sap-requerimientos-mode .receipt-association-filter-btn {
    min-height: 2.2rem;
    padding: 0.48rem 0.72rem;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eff5fa 100%) !important;
    color: #294965 !important;
    border-color: #b9d2e7 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 3px rgba(24, 52, 77, 0.05);
}

html.sap-requerimientos-mode .receipt-association-pill {
    border-radius: 0 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fa 100%);
    border-color: #cad9e6;
    color: #5a7086;
}

html.sap-requerimientos-mode .receipt-association-filter-btn:hover {
    background: linear-gradient(180deg, #f8fbff 0%, #e7f0f9 100%) !important;
    border-color: #9fc0db !important;
}

html.sap-requerimientos-mode .receipt-association-filter-btn.is-active,
html.sap-requerimientos-mode .receipt-association-filter-btn--annulled.is-active,
html.sap-requerimientos-mode .modalButtonSelect {
    background: linear-gradient(180deg, #0a6ed1 0%, #085caf 100%) !important;
    color: #ffffff !important;
    border-color: #0a5db2 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 10px rgba(10, 110, 209, 0.16);
}

html.sap-requerimientos-mode .receipt-association-table-wrap {
    background: #ffffff;
}

html.sap-requerimientos-mode .fi-modal-window:has(.receipt-association-modal-shell) {
    max-height: calc(100dvh - 1.75rem);
}

html.sap-requerimientos-mode .fi-modal-content:has(.receipt-association-modal-shell),
html.sap-requerimientos-mode .fi-modal-body:has(.receipt-association-modal-shell) {
    max-height: calc(100dvh - 5.5rem);
    padding: 10px;
}

html.sap-requerimientos-mode .receipt-association-table {
    min-width: 900px;
}

html.sap-requerimientos-mode .receipt-association-table th {
    padding: 0.62rem 0.78rem;
    font-size: 0.7rem;
}

html.sap-requerimientos-mode .receipt-association-table td {
    padding: 0.6rem 0.78rem;
    font-size: 0.84rem;
}

html.sap-requerimientos-mode .receipt-association-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.38rem 0.68rem;
    border-radius: 0 !important;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

html.sap-requerimientos-mode .receipt-association-row-action--selected {
    background: linear-gradient(180deg, #2f7d31 0%, #266629 100%) !important;
    color: #ffffff !important;
    border-color: #225a25 !important;
    box-shadow: 0 4px 10px rgba(47, 125, 49, 0.16);
}

html.sap-requerimientos-mode .receipt-association-row-action--linked {
    background: linear-gradient(180deg, #fff7dd 0%, #f8edc0 100%) !important;
    color: #7b5d13 !important;
    border: 1px solid #eadb9c !important;
    box-shadow: none !important;
}

html.sap-requerimientos-mode .receipt-association-row-action--annulled {
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%) !important;
    color: #4b5563 !important;
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

html.sap-requerimientos-mode .receipt-anulado-badge {
    border-radius: 0 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-panel__intro .fi-fo-placeholder-content {
    padding: 0.7rem 0.8rem;
    border-radius: 0 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-panel__grid {
    gap: 0.55rem !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-tile {
    padding: 0.58rem 0.68rem;
    border-radius: 0 !important;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0 10px, rgba(239, 244, 248, 0.58) 10px 20px) !important;
    box-shadow: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-tile .fi-fo-placeholder-content {
    font-size: 0.9rem;
    line-height: 1.35;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-tile--timeline .fi-fo-placeholder-content {
    font-size: 0.84rem;
}

html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp.fi-disabled,
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(.fi-input[readonly]),
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(.fi-input:disabled),
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(.fi-select-input[disabled]),
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(textarea[readonly]),
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp.fi-disabled,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(.fi-input[readonly]),
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(.fi-input:disabled),
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(.fi-select-input[disabled]),
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(textarea[readonly]) {
    border-color: #cbd5df !important;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0 10px, rgba(239, 244, 248, 0.58) 10px 20px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html.sap-requerimientos-mode.sap-page-resource-form .sap-readonly-field,
html.sap-requerimientos-mode .sap-object-tabs .sap-readonly-field,
html.sap-requerimientos-mode .sap-object-tabs .sap-finance-kpi {
    padding: 0.58rem 0.68rem;
    border: 1px solid #d7e2eb;
    border-radius: 0 !important;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0 10px, rgba(239, 244, 248, 0.58) 10px 20px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp.fi-disabled .fi-input,
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp.fi-disabled .fi-select-input,
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp.fi-disabled textarea,
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(.fi-input[readonly]) .fi-input,
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(.fi-input:disabled) .fi-input,
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(.fi-select-input[disabled]) .fi-select-input,
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(textarea[readonly]) textarea,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp.fi-disabled .fi-input,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp.fi-disabled .fi-select-input,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp.fi-disabled textarea,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(.fi-input[readonly]) .fi-input,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(.fi-input:disabled) .fi-input,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(.fi-select-input[disabled]) .fi-select-input,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(textarea[readonly]) textarea {
    color: #54687c !important;
    font-weight: 600 !important;
}

html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp.fi-disabled .fi-input::placeholder,
html.sap-requerimientos-mode.sap-page-resource-form .fi-input-wrp:has(.fi-input[readonly]) .fi-input::placeholder,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp.fi-disabled .fi-input::placeholder,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp:has(.fi-input[readonly]) .fi-input::placeholder {
    color: #7f91a3 !important;
}

html.sap-requerimientos-mode .receipt-association-table thead tr,
html.sap-requerimientos-mode .movement-products-table__table thead tr,
html.sap-requerimientos-mode .warehouse-distribution-stock__table thead,
html.sap-requerimientos-mode .audit-log-table__table thead tr {
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

html.sap-requerimientos-mode .receipt-association-table th,
html.sap-requerimientos-mode .movement-products-table__table thead th,
html.sap-requerimientos-mode .warehouse-distribution-stock__table th,
html.sap-requerimientos-mode .audit-log-table__table thead th {
    color: #36516c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom-color: #dbe5ee;
}

html.sap-requerimientos-mode .audit-log-table__head-cell {
    padding: 0.56rem 0.72rem;
}

html.sap-requerimientos-mode .receipt-association-table td,
html.sap-requerimientos-mode .warehouse-distribution-stock__table td,
html.sap-requerimientos-mode .audit-log-table__row td {
    color: #223548;
    border-bottom-color: rgba(185, 210, 231, 0.28);
}

html.sap-requerimientos-mode .audit-log-table__cell {
    padding: 0.62rem 0.72rem;
}

html.sap-requerimientos-mode .receipt-association-table tbody tr:hover,
html.sap-requerimientos-mode .movement-products-table__row:hover,
html.sap-requerimientos-mode .audit-log-table__row:hover,
html.sap-requerimientos-mode .warehouse-distribution-stock__table tbody tr:hover {
    background: rgba(220, 236, 248, 0.52) !important;
}

html.sap-requerimientos-mode .receipt-row-associated {
    background: #fff9ee;
}

html.sap-requerimientos-mode .receipt-anulado-badge {
    background: #ffffff;
    color: #4b5563;
    border-color: #cfd4da;
}

html.sap-requerimientos-mode .movement-products-table .product-info-cell input,
html.sap-requerimientos-mode .movement-products-table .product-info-cell .fi-input,
html.sap-requerimientos-mode .movement-products-table .cantidad-cell input,
html.sap-requerimientos-mode .warehouse-distribution-stock__table th,
html.sap-requerimientos-mode .warehouse-distribution-stock__table td {
    color: #223548 !important;
}

html.sap-requerimientos-mode .movement-products-table .cantidad-cell .fi-input-wrp {
    border-color: #c5d7e6 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 1px 2px rgba(24, 52, 77, 0.04) !important;
}

html.sap-requerimientos-mode .audit-log-table__badge--role {
    background: #e7f0f9;
    color: #24557d;
}

html.sap-requerimientos-mode .audit-log-table__toggle {
    color: #0a6ed1;
}

html.sap-requerimientos-mode .audit-log-table__value--old {
    background: #fff5e8;
    color: #8a4f08;
}

html.sap-requerimientos-mode .audit-log-table__value--new {
    background: #edf8ef;
    color: #24613f;
}

html.sap-requerimientos-mode .audit-log-table__meta,
html.sap-requerimientos-mode .audit-log-table__user {
    color: #17324b;
}

html.sap-requerimientos-mode .sap-object-tabs.fi-sc-tabs {
    border-radius: 0 !important;
    border-color: #d4e0ea;
    background: linear-gradient(180deg, #fdfefe 0%, #f7fafc 100%);
    box-shadow:
        0 6px 16px rgba(24, 52, 77, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html.sap-requerimientos-mode .sap-object-tabs.fi-sc-tabs > .fi-tabs {
    gap: 0.18rem;
    align-items: stretch;
    padding: 0.24rem 0.75rem 0;
    overflow-x: auto;
    border-bottom: 1px solid #dde6ee;
    background: linear-gradient(180deg, #fbfcfd 0%, #f1f5f8 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item {
    position: relative;
    min-height: 1.92rem;
    margin-inline-end: 0.35rem;
    padding: 0.34rem 0.68rem 0.24rem;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 0.22rem 0.22rem 0 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(241, 245, 248, 0.58) 100%) !important;
    box-shadow: none !important;
    color: #677b8f !important;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item:last-child {
    margin-inline-end: 0;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
    color: inherit !important;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item.fi-active,
html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item[aria-selected='true'] {
    color: #1b374f !important;
    border-color: #d4e0ea;
    border-bottom-color: #fcfdff;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%) !important;
    box-shadow: inset 0 2px 0 #0a6ed1 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item.fi-active .fi-tabs-item-label,
html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item[aria-selected='true'] .fi-tabs-item-label {
    color: #1b374f !important;
    font-weight: 600;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item:hover {
    color: #2d465d !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(246, 249, 252, 0.92) 100%) !important;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-sc-tabs-tab.fi-active {
    margin-top: 0 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-sc-tabs-tab {
    padding: 0.68rem 0.8rem 0.82rem;
    background: linear-gradient(180deg, #fcfdff 0%, #f7fafc 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .fi-sc-tabs-tab > .fi-sc.fi-sc-has-gap {
    gap: 14px !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel {
    padding-top: 0.6rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-summary-grid {
    gap: 0.8rem !important;
    margin-bottom: 0.45rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel > .fi-sc.fi-sc-has-gap {
    gap: 0 20px !important;
}
html.sap-requerimientos-mode .sap-object-tabs .sap-finance-summary-grid .fi-fo-field-wrp {
    gap: 0.28rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-kpi {
    padding: 0.45rem 0.55rem 0.4rem;
    border: 1px solid #d7e2eb;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-kpi .fi-fo-placeholder-content {
    color: #17324b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-kpi--status .fi-fo-placeholder-content {
    font-size: 0.92rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .sap-related-docs-panel {
    margin-top: 0.55rem;
    border-color: #d7e2eb;
    box-shadow: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .sap-related-docs-panel .fi-section-header {
    padding: 0.72rem 0.78rem 0.3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .sap-related-docs-panel .fi-section-header-heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .sap-related-docs-panel .fi-section-header-description {
    font-size: 0.78rem;
    line-height: 1.35;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .sap-related-docs-panel .fi-section-content {
    gap: 0.55rem;
    padding: 0 0.78rem 0.78rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .sap-related-docs-panel .fi-ac .fi-btn {
    min-height: 2rem;
    padding-inline: 0.8rem !important;
    font-size: 0.88rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .schema-component-form-recibos_cobros,
html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .schema-component-form-recibos {
    margin-top: 0.6rem;
    padding: 0.35rem;
    border-radius: 0 !important;
    box-shadow: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .receipt-linked-table__frame {
    padding: 0.25rem !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .schema-component-form-recibos_cobros .receipt-linked-table__frame,
html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .schema-component-form-recibos .receipt-linked-table__frame {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
    padding: 0 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__hero {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__eyebrow {
    margin: 0 0 0.18rem;
    color: #0a6ed1;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__title {
    margin: 0;
    color: #17324b;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.18;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__intro,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__summary {
    margin: 0;
    color: #556b7f;
    line-height: 1.5;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__hero-main {
    max-width: 72rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__card,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__diagram-frame,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw {
    border: 1px solid #d4e0ea;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__sla,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__card-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 1.75rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid #bfd6e8;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #f4f9fe 0%, #e9f2fb 100%);
    color: #25506f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__grid {
    display: grid;
    gap: 0.8rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d4e0ea;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__search {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__search-label,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__results {
    color: #62788e;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__search-input {
    min-height: 2.45rem;
    padding: 0.55rem 0.72rem;
    border: 1px solid #c7d8e7;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    color: #17324b;
    font-size: 0.92rem;
    font-weight: 600;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__search-input::placeholder {
    color: #7b8ea1;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__search-input:focus {
    outline: none;
    border-color: #0a6ed1;
    box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.12);
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__toolbar-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__results {
    text-transform: none;
    letter-spacing: 0;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__clear-btn,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #bfd6e8;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
    color: #25506f;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__clear-btn:hover,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pager-btn:hover {
    border-color: #9fc0db;
    background: linear-gradient(180deg, #f9fcff 0%, #e6f0fa 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pager-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__header-badges {
    display: flex;
    flex: 0 1 24rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 0;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    overflow: hidden;
    padding: 0.85rem 0.9rem 0.95rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    min-width: 0;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__card-heading {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.24rem;
    min-width: 0;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__card-kicker {
    margin: 0 0 0.2rem;
    max-width: fit-content;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__card-title {
    margin: 0;
    color: #17324b;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid #d2dee8;
    border-radius: 0 !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pill--success {
    border-color: #bcd9bf;
    background: linear-gradient(180deg, #f2fbf3 0%, #e2f4e4 100%);
    color: #2f6a34;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pill--warning {
    border-color: #ead89b;
    background: linear-gradient(180deg, #fff9ea 0%, #f8edc8 100%);
    color: #7b5d13;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pill--info {
    border-color: #bfd6e8;
    background: linear-gradient(180deg, #f4f9fe 0%, #e6f0fa 100%);
    color: #25506f;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pill--muted {
    border-color: #d8e1e8;
    background: linear-gradient(180deg, #f7f9fb 0%, #edf2f6 100%);
    color: #667b8f;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    padding: 0.58rem 0.68rem;
    border: 1px solid #d8e4ee;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__meta-item--wide {
    grid-column: 1 / -1;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__meta-item span:not(.sales-processes-lab__meta-label) {
    color: #5b7186;
    line-height: 1.45;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__meta-item strong {
    color: #17324b;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__summary {
    line-height: 1.42;
    margin-top: -5px;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__meta-label,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw-title,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw-row dt {
    color: #62788e;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__notes,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-panel,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__empty {
    padding: 0.68rem 0.78rem;
    border: 1px solid #d4e0ea;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-panel--collapsible {
    padding: 0;
    overflow: hidden;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.68rem 0.78rem;
    cursor: pointer;
    list-style: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-summary::-webkit-details-marker {
    display: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.8rem;
    min-height: 1.6rem;
    padding: 0.08rem 0.48rem;
    border: 1px solid #c7d8e7;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef4f9 100%);
    color: #5f778c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-toggle::before {
    content: 'Expandir';
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-panel[open] .sales-processes-lab__history-toggle::before {
    content: 'Ocultar';
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-content {
    padding: 0 0.78rem 0.78rem;
    border-top: 1px solid rgba(191, 214, 232, 0.45);
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__empty {
    text-align: center;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__notes p,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__panel-body,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__timeline-body,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__empty {
    margin: 0.3rem 0 0;
    color: #54687c;
    line-height: 1.5;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw {
    padding: 0.68rem 0.78rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw-list {
    display: grid;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw-row {
    display: grid;
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    gap: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(191, 214, 232, 0.45);
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw-row:first-child {
    padding-top: 0;
    border-top: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw-row dd {
    margin: 0;
    color: #17324b;
    font-weight: 600;
    line-height: 1.45;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__diagram-frame {
    padding: 0.35rem 0.45rem;
    overflow-x: auto;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__diagram-frame .mermaid {
    min-width: 560px;
    width: fit-content;
    max-width: none;
    padding: 0.2rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__diagram-frame .mermaid svg {
    height: auto;
    max-width: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__panel-title {
    margin: 0;
    color: #17324b;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.45rem;
    color: #607487;
    font-size: 0.78rem;
    font-weight: 700;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__panel-foot,
html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__timeline-actor {
    display: block;
    margin-top: 0.45rem;
    color: #6a7f93;
    font-size: 0.78rem;
    font-weight: 700;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__timeline {
    display: grid;
    gap: 0.55rem;
    margin: 0.48rem 0 0;
    padding: 0;
    list-style: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__timeline-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__timeline-dot {
    width: 12px;
    height: 12px;
    margin-top: 0.28rem;
    border: 2px solid #0a6ed1;
    border-radius: 999px;
    background: #ffffff;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #607487;
    font-size: 0.78rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__timeline-meta strong {
    color: #17324b;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.15rem 0;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pager-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pager-btn--active {
    border-color: #0a6ed1;
    background: linear-gradient(180deg, #0a6ed1 0%, #085caf 100%);
    color: #ffffff;
}

@media (max-width: 1024px) {
    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__toolbar,
    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__meta-grid,
    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__raw-row,
    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__history-grid {
        grid-template-columns: 1fr;
    }

    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__card-header {
        flex-direction: column;
    }

    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__header-badges {
        justify-content: flex-start;
    }

    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__toolbar-meta,
    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pager {
        flex-direction: column;
        align-items: stretch;
    }

    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__pager-pages {
        justify-content: flex-start;
    }

    html.sap-requerimientos-mode .sap-object-tabs .sales-processes-lab__diagram-frame .mermaid {
        min-width: 520px;
    }
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .receipt-linked-table__table {
    table-layout: auto;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .receipt-linked-table__table thead th {
    padding: 0.5rem 0.45rem;
    font-size: 0.7rem;
    white-space: nowrap;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .receipt-linked-table__table tbody td {
    padding: 0.5rem 0.45rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-finance-panel .receipt-linked-table__empty {
    padding: 0.9rem 0.35rem !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset,
html.sap-requerimientos-mode .sap-object-tabs .schema-section-general,
html.sap-requerimientos-mode .sap-object-tabs .fi-fieldset {
    position: relative;
    overflow: hidden;
    border: 1px solid #d6e0ea;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    box-shadow: 0 2px 8px rgba(24, 52, 77, 0.03);
    padding: 0.72rem 0.78rem 0.68rem;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset::before,
html.sap-requerimientos-mode .sap-object-tabs .schema-section-general::before,
html.sap-requerimientos-mode .sap-object-tabs .fi-fieldset::before {
    display: none;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset legend,
html.sap-requerimientos-mode .sap-object-tabs .schema-section-general legend,
html.sap-requerimientos-mode .sap-object-tabs .fi-fieldset legend {
    padding: 0 5px;
    margin-bottom: 0.45rem;
    color: #314a62;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp,
html.sap-requerimientos-mode .sap-object-tabs .choices,
html.sap-requerimientos-mode .sap-object-tabs .choices__inner {
    min-height: 2.2rem;
    border-radius: 0 !important;
    border-color: #c7d8e7 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%) !important;
}

html.sap-requerimientos-mode .sap-object-tabs .fi-fo-field-wrp-label,
html.sap-requerimientos-mode .sap-object-tabs .fi-fo-field-wrp-label span,
html.sap-requerimientos-mode .sap-object-tabs .fi-input-wrp-label {
    color: #425b73 !important;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-panel__intro .fi-fo-placeholder-content {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(169, 192, 214, 0.45);
    border-radius: 0 !important;
    background: linear-gradient(90deg, rgba(10, 110, 209, 0.06) 0%, rgba(255, 255, 255, 0.96) 100%);
    color: #4a6279;
    line-height: 1.6;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-panel__intro .fi-fo-placeholder-content > * {
    color: inherit !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-panel__grid {
    gap: 0.55rem !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-tile {
    min-height: 100%;
    padding: 0.58rem 0.68rem;
    border: 1px solid #d7e2eb;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #f5f8fb 0%, #edf3f7 100%);
    box-shadow: none;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-tile .fi-fo-placeholder-content {
    color: #223548;
    font-size: 0.9rem;
    line-height: 1.35;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-tile .fi-fo-placeholder-content .text-slate-500 {
    color: #6f879d !important;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-tile--estado .fi-fo-placeholder-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-status-tile--timeline .fi-fo-placeholder-content {
    font-size: 0.84rem;
    color: #49627a;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-related-docs-panel .fi-section-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-related-docs-panel .fi-section-header-description {
    max-width: 68ch;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-related-docs-panel .fi-ac {
    align-self: flex-start;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-related-docs-panel .fi-ac .fi-btn {
    min-height: 2.45rem;
    padding-inline: 1rem !important;
}

html.sap-requerimientos-mode .sap-object-tabs .schema-component-form-recibos_cobros,
html.sap-requerimientos-mode .sap-object-tabs .schema-component-form-recibos {
    border-color: #d4e0ea;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 12px rgba(24, 52, 77, 0.04);
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__frame {
    border-color: #d6e1ea;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    box-shadow: none;
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__table thead tr {
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__table thead th {
    color: #476179;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__row {
    border-bottom-color: rgba(185, 210, 231, 0.24);
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__row:hover {
    background: rgba(220, 236, 248, 0.48);
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__document {
    color: #223548;
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__amount {
    color: #17324b;
    font-weight: 800;
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__badge {
    border: 1px solid rgba(162, 191, 214, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__actions .fi-btn {
    min-height: 2.25rem;
    min-width: 2.25rem;
    border-radius: 0 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .receipt-linked-table__empty {
    color: #748ba1;
}

html.sap-requerimientos-mode .sap-object-tabs .sap-product-header-panel {
    border-color: #cfdbe6;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 253, 0.98) 100%),
        linear-gradient(90deg, rgba(10, 110, 209, 0.04) 0%, rgba(86, 165, 245, 0.02) 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .sap-product-header-panel .fi-input-wrp {
    min-height: 2.7rem;
}

html.sap-requerimientos-mode .sap-product-totals-grid {
    gap: 0.65rem !important;
    margin-top: 0.2rem;
    padding: 0.78rem;
    border: 1px solid #cfdbe6;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 253, 0.98) 100%),
        linear-gradient(90deg, rgba(10, 110, 209, 0.04) 0%, rgba(86, 165, 245, 0.02) 100%);
    box-shadow: 0 3px 9px rgba(24, 52, 77, 0.045);
}

html.sap-requerimientos-mode .sap-product-totals-grid::before {
    content: 'Resumen comercial';
    grid-column: 1 / -1;
    padding-bottom: 0.15rem;
    color: #36516c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-product-totals-grid .fi-fo-field-wrp {
    gap: 0.28rem;
    min-width: 0;
    padding: 0.62rem 0.72rem 0.58rem;
    border: 1px solid #d7e2eb;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(24, 52, 77, 0.035);
}

html.sap-requerimientos-mode .sap-product-totals-grid .fi-fo-field-wrp-label,
html.sap-requerimientos-mode .sap-product-totals-grid .fi-fo-field-wrp-label span {
    color: #5b748b !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-product-totals-grid .fi-input-wrp {
    min-height: 2.05rem;
    display: flex;
    align-items: center;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

html.sap-requerimientos-mode .sap-product-totals-grid .fi-input-wrp-content-ctn {
    display: flex;
    align-items: center;
    min-height: 2rem;
}

html.sap-requerimientos-mode .sap-product-totals-grid input {
    padding: 0 !important;
    min-height: 2.05rem;
    background: transparent !important;
    color: #17324b !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

html.sap-requerimientos-mode .sap-product-totals-grid .fi-input-wrp-prefix {
    display: inline-flex;
    align-items: center;
    padding-inline-start: 0 !important;
    color: #6d8399 !important;
    font-weight: 700;
}

html.sap-requerimientos-mode .sap-product-totals-grid .sap-product-total--grand.fi-fo-field-wrp,
html.sap-requerimientos-mode .sap-product-totals-grid .sap-product-total--grand .fi-fo-field-wrp {
    border-color: #8ebfe7;
    background: linear-gradient(180deg, #f3f9ff 0%, #e8f4fe 100%);
    box-shadow:
        inset 3px 0 0 #0a6ed1,
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 1px 3px rgba(10, 110, 209, 0.08);
}

html.sap-requerimientos-mode .sap-product-totals-grid .sap-product-total--grand input {
    color: #075fae !important;
    font-size: 1.12rem !important;
}

html.sap-requerimientos-mode .sap-product-totals-grid .sap-product-total--grand .fi-input-wrp-prefix {
    color: #0a6ed1 !important;
}

@media (max-width: 1024px) {
    html.sap-requerimientos-mode .sap-product-totals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    html.sap-requerimientos-mode .sap-product-totals-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 0.65rem;
    }
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__frame {
    border-color: #cad8e4;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    box-shadow: 0 4px 10px rgba(24, 52, 77, 0.04);
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__table thead th {
    color: #476179;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__table thead th:first-child {
    padding-left: 0.9rem !important;
    padding-right: 0.55rem !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__table {
    border-collapse: separate;
    border-spacing: 0 5px;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__table tbody {
    background: transparent;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__row {
    border-bottom: 0;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__row > td {
    background: #fff;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__row > td:first-child {
    padding-left: 0.9rem !important;
    padding-right: 0.55rem !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__row > td:first-child > div {
    justify-content: flex-start;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--stock .movement-products-table__index-header,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--stock .movement-products-table__index-cell {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    padding-left: 0.55rem !important;
    padding-right: 0.45rem !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__row td {
    vertical-align: middle;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .product-info-cell input,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .product-info-cell .fi-input {
    padding: 0.15rem 0 !important;
    color: #223548 !important;
    font-size: 0.95rem;
    font-weight: 600 !important;
    line-height: 1.45;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__product-card {
    min-height: 2.5rem;
    padding: 0.3rem 0.5rem;
    border-color: #d3dfeb;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__product-line {
    color: #17324b;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .cantidad-cell .fi-input-wrp,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .precio-cell .fi-input-wrp {
    min-height: 2.5rem;
    border: 1px solid #c6d7e5 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 2px rgba(24, 52, 77, 0.03) !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .cantidad-cell .fi-input-wrp:focus-within,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .precio-cell .fi-input-wrp:focus-within {
    border-color: #c6d7e5 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 2px rgba(24, 52, 77, 0.03) !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .cantidad-cell input,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .precio-cell input {
    padding: 0 0.35rem !important;
    color: #17324b !important;
    font-weight: 700 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .cantidad-cell input {
    width: 76px !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .precio-cell input {
    text-align: left !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .precio-cell,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .importe-cell {
    vertical-align: middle !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .precio-cell .price-cell-input {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell > div,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell .fi-fo-field-wrp,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell .fi-fo-field,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell .fi-input-wrp,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .importe-cell,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__amount,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .movement-products-table__warehouse-summary {
    min-height: 2.5rem;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell .fi-fo-field {
    width: 100%;
    margin: 0 !important;
    height: 100%;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell .fi-fo-field-label-col {
    display: none !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .precio-cell .fi-fo-field-wrp,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .precio-cell .fi-fo-field,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .price-cell-input > * {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.5rem;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell .fi-input-wrp input,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .precio-cell .fi-input-wrp input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell input[type='number'] {
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell input[type='number']::-webkit-inner-spin-button,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .cantidad-cell input[type='number']::-webkit-outer-spin-button {
    appearance: none !important;
    margin: 0 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__amount {
    color: #17324b;
    font-size: 1rem;
    font-weight: 600;
    padding-left: 0.45rem;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__amount-currency,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__meta {
    color: #6c8398 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-almacen-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .repeater-almacen-cell .fi-ac {
    width: auto;
    flex: 0 0 auto;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .repeater-almacen-cell .fi-btn,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table--v2 .repeater-almacen-cell .fi-btn-label {
    white-space: nowrap !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-distribution-status .fi-fo-placeholder-content {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-distribution-status .fi-in-entry,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-distribution-status .fi-in-entry-label-col,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-distribution-status .fi-in-entry-content-col {
    row-gap: 2px !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-distribution-status {
    flex: 0 0 auto;
    min-width: 5.8rem;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-distribution-status .fi-in-entry-label,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-distribution-status .fi-in-entry-label-ctn,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-distribution-status .fi-in-entry-label-col {
    display: none !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__warehouse-summary {
    justify-content: flex-start;
    gap: 0;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__status-content {
    width: 100%;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18);
    flex: 0 0 auto;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill--neutral {
    color: #64748b;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill--neutral .movement-products-table__distribution-dot {
    background: #94a3b8;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill--warning,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill--progress {
    color: #a16207;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill--warning .movement-products-table__distribution-dot,
html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill--progress .movement-products-table__distribution-dot {
    background: #eab308;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.22);
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill--success {
    color: #15803d;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__distribution-pill--success .movement-products-table__distribution-dot {
    background: #16a34a;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-actions-stack {
    align-items: center;
    justify-content: center;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table .repeater-delete-action .fi-btn {
    min-height: 2.35rem;
    min-width: 2.35rem;
    padding: 0.45rem !important;
    border-radius: 0 !important;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__empty {
    color: #748ba1;
    background: linear-gradient(180deg, #fbfdfe 0%, #f4f8fb 100%);
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__empty-title {
    color: #2f4a63;
}

html.sap-requerimientos-mode .sap-object-tabs .movement-products-table__empty-help {
    color: #698195;
}

@media (max-width: 768px) {
    html.sap-requerimientos-mode .sap-object-tabs .fi-tabs-item {
        margin-inline-end: 0.7rem;
        min-height: 2.1rem;
    }

    html.sap-requerimientos-mode .sap-object-tabs .fi-sc-tabs-tab {
        padding: 0.7rem;
    }

    html.sap-requerimientos-mode .sap-object-tabs .movement-party-fieldset,
    html.sap-requerimientos-mode .sap-object-tabs .schema-section-general,
    html.sap-requerimientos-mode .sap-object-tabs .fi-fieldset {
        padding: 0.7rem 0.72rem 0.62rem;
    }

    html.sap-requerimientos-mode .sap-object-tabs .sap-product-totals-grid {
        gap: 0.5rem !important;
    }
}

/* 5. CONSULTA PRODUCTOS */
.fi-resource-consulta-productos .fi-ta-content {
    min-height: 400px;
}

.fi-resource-consulta-productos .fi-modal-window {
    overflow: visible !important;
}

.fi-resource-consulta-productos .fi-modal-content,
.fi-resource-consulta-productos .fi-modal-body {
    overflow: visible !important;
}

.fi-resource-consulta-productos .fi-modal-footer,
.fi-resource-consulta-productos [data-sticky-footer] {
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.fi-resource-consulta-productos .choices,
.fi-resource-consulta-productos .choices__inner,
.fi-resource-consulta-productos .choices__input,
.fi-resource-consulta-productos .choices__list,
.fi-resource-consulta-productos .choices__item,
.fi-resource-consulta-productos .choices__placeholder {
    text-align: left !important;
}

.fi-resource-consulta-productos .choices__list--dropdown,
.fi-resource-consulta-productos .choices__list[aria-expanded] {
    z-index: 20 !important;
}

.fi-resource-consulta-productos .choices__list--dropdown .choices__item--selectable {
    color: #111827 !important;
    background-color: #ffffff !important;
}

.fi-resource-consulta-productos .choices__list--dropdown .choices__item--selectable.is-highlighted,
.fi-resource-consulta-productos .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.fi-resource-consulta-productos .choices__list--dropdown .choices__item--selectable:hover {
    color: #111827 !important;
    background-color: rgb(235 235 235) !important;
}

.fi-resource-consulta-productos .choices__list--dropdown .choices__item--selectable .cm-option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] {
    position: relative;
}

.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] .fi-btn,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] button,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.8rem;
    padding-inline: 1rem !important;
    border-width: 1px;
    border-style: solid;
    border-radius: 0.95rem !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #334155 !important;
    border-color: #d6dee8 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] .fi-btn,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] button,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] a {
    min-height: 2.35rem;
    padding-inline: 0.9rem !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef5fa 100%) !important;
    color: #294965 !important;
    border-color: #bfd1df !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 1px 3px rgba(24, 52, 77, 0.05) !important;
    font-size: 0.83rem;
    font-weight: 700;
}

.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] .fi-btn::after,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] button::after,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] a::after {
    content: '';
    width: 0.7rem;
    height: 0.7rem;
    margin-left: auto;
    border-radius: 9999px;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
    flex-shrink: 0;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] .fi-btn::after,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] button::after,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] a::after {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 0 !important;
    background: #8ba1b5;
    box-shadow: 0 0 0 3px rgba(173, 190, 205, 0.18);
}

.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"][data-filter-active="true"] .fi-btn::after,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"][data-filter-active="true"] button::after,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"][data-filter-active="true"] a::after {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"][data-filter-active="true"] .fi-btn::after,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"][data-filter-active="true"] button::after,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"][data-filter-active="true"] a::after {
    background: #2f7d31;
    box-shadow: 0 0 0 3px rgba(47, 125, 49, 0.16);
}

.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] .fi-btn:hover,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] button:hover,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] a:hover {
    background: rgba(241, 245, 249, 0.95) !important;
    border-color: #b9c4d0 !important;
    transform: translateY(-1px);
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] .fi-btn:hover,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] button:hover,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-action"] a:hover {
    background: linear-gradient(180deg, #f8fbff 0%, #e7f0f9 100%) !important;
    border-color: #9fc0db !important;
    transform: none;
}

/* ============================================================================
   FILTER CHIPS - Nuevo estilo para filtros de ProductoConsultaResource
   ============================================================================ */

/* Estilos base para todos los filtros chip */
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-chip"] .fi-btn,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-chip"] button,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-chip"] a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    min-height: 2.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 9999px !important;
    border: 1px solid !important;
    transition: all 150ms ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Categoría Maestra - Estilo info */
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--category .fi-btn,
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--category button {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
}

.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--category .fi-btn:hover,
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--category button:hover {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-color: #60a5fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15) !important;
}

/* Solo Stock Positivo - Estilo success */
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--stock .fi-btn,
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--stock button {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--stock .fi-btn:hover,
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--stock button:hover {
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border-color: #4ade80 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.15) !important;
}

/* Quitar Productos Anulados - Estilo warning */
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--annulled .fi-btn,
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--annulled button {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: #fcd34d !important;
    color: #92400e !important;
}

.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--annulled .fi-btn:hover,
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--annulled button:hover {
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%) !important;
    border-color: #fbbf24 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.15) !important;
}

/* Estado activo para todos los chips */
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--active .fi-btn,
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--active button {
    font-weight: 600 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Indicador de activo (punto verde) */
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-chip"] .fi-btn::before,
.fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-chip"] button::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    flex-shrink: 0;
    transition: background 150ms ease;
}

.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--active .fi-btn::before,
.fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--active button::before {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

/* Modo SAP específico */
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-chip"] .fi-btn,
html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header [class*="pc-filter-chip"] button {
    min-height: 2rem;
    padding: 0.375rem 0.875rem !important;
    font-size: 0.75rem;
    border-radius: 9999px !important;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--category .fi-btn {
    background: linear-gradient(180deg, #e8f4fd 0%, #d0e8f9 100%) !important;
    border-color: #7dc3e8 !important;
    color: #0066b3 !important;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--stock .fi-btn {
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    border-color: #81c784 !important;
    color: #2e7d32 !important;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .fi-ta-header .pc-filter-chip--annulled .fi-btn {
    background: linear-gradient(180deg, #fff8e1 0%, #ffecb3 100%) !important;
    border-color: #ffd54f !important;
    color: #ff8f00 !important;
}

.fi-resource-consulta-productos .fi-ta-cell-stock-total {
    vertical-align: middle;
}

.fi-resource-consulta-productos .fi-ta-cell-stock-total .fi-ta-col-wrp {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 100%;
}

.stock-detail-cell {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.stock-detail-cell__content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    min-width: 0;
}

.stock-detail-cell__toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stock-detail-cell__button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    line-height: 1.1;
    white-space: nowrap;
}

.stock-detail-cell__panel {
    position: fixed;
    z-index: 80;
    overflow: hidden;
    border-width: 1px;
    border-radius: 0.75rem;
    background: #ffffff !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__button {
    gap: 0.28rem;
    color: #0a6ed1;
    font-size: 0.78rem;
    font-weight: 700;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__panel {
    border-color: #cfdbe6;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%) !important;
    box-shadow: 0 10px 24px rgba(24, 52, 77, 0.1);
}

.stock-detail-cell__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__panel-header {
    padding: 0.62rem 0.78rem;
    border-bottom: 1px solid #d6e1ea;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.stock-detail-cell__panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__panel-title {
    color: #294965;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stock-detail-cell__panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 9999px;
    color: inherit;
    background: transparent;
    transition: background-color 0.15s ease;
}

.stock-detail-cell__panel-close:hover {
    background: rgba(148, 163, 184, 0.18);
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__panel-close {
    border-radius: 0 !important;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__panel-close:hover {
    background: rgba(191, 214, 232, 0.38);
}

.stock-detail-cell__panel-body {
    max-height: min(18rem, calc(100vh - 5rem));
    overflow: auto;
}

.stock-detail-cell__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__table thead {
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.stock-detail-cell__th,
.stock-detail-cell__td {
    font-size: 0.75rem;
    line-height: 1.2;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__th,
html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__td {
    color: #294965;
    border-bottom: 1px solid rgba(185, 210, 231, 0.32);
}

.stock-detail-cell__th {
    padding: 0.5rem 0.7rem;
    font-weight: 700;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__th {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stock-detail-cell__td {
    padding: 0.45rem 0.7rem;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__td {
    color: #4c6278;
    font-size: 0.8rem;
}

html.sap-requerimientos-mode .fi-resource-consulta-productos .stock-detail-cell__table tbody tr:hover {
    background: rgba(220, 236, 248, 0.42);
}

.stock-detail-cell__td--qty {
    text-align: right;
    font-weight: 700;
}

/* Resource search alignment */
.fi-ta-search-field,
.fi-ta-search-field .fi-input-wrp,
.fi-ta-search-field input,
.fi-ta-search-field [type="search"],
.fi-resource [type="search"],
.fi-resource .fi-input[type="search"] {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* 6. GLOBAL BRANDING */
.sysbar-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.1;
}

.sysbar-brand__name {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.sysbar-brand__version {
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Identidad compacta de Kizen Ops: nunca modifica la altura exterior de la top bar. */
.kizen-topbar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: min(9.75rem, 32vw);
    height: 2rem;
    min-height: 0;
    gap: 0.35rem;
    overflow: hidden;
}

.kizen-topbar-brand__client-logo {
    display: block;
    width: auto;
    max-width: 6.4rem;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
}

.fi-topbar .kizen-topbar-brand__client-logo {
    border: var(--kizen-client-logo-border, 0 solid transparent);
    background-color: var(--kizen-client-logo-background, transparent);
}

.kizen-topbar-brand__product {
    flex: 0 0 auto;
    max-width: none;
    overflow: hidden;
    color: #20364a;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.035em;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.kizen-global-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #163250;
}

.kizen-global-settings__hero,
.kizen-global-settings__form,
.kizen-global-settings__recommendation {
    border: 1px solid #d5e5f2;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(24, 52, 77, 0.06);
}

.kizen-global-settings__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.kizen-global-settings__hero > div:first-child > span {
    color: #0a6ed1;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kizen-global-settings__hero h2 {
    margin-top: 0.15rem;
    color: #0b2239;
    font-size: 1.25rem;
    font-weight: 800;
}

.kizen-global-settings__hero p,
.kizen-global-settings__recommendation p {
    margin-top: 0.2rem;
    color: #5b738b;
    font-size: 0.82rem;
}

.kizen-global-settings__preview {
    flex: 0 0 14rem;
}

.kizen-global-settings__preview small {
    display: block;
    margin-bottom: 0.3rem;
    color: #5b738b;
    font-size: 0.68rem;
    font-weight: 700;
}

.kizen-global-settings__preview > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 2.45rem;
    padding: 0.18rem 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(126, 150, 174, 0.42);
    border-radius: 0.28rem;
    background: linear-gradient(180deg, #fbfdff 0%, #e6edf4 100%);
}

.kizen-global-settings__preview img {
    width: auto;
    max-width: 12rem;
    height: 1.25rem;
    object-fit: contain;
}

.kizen-global-settings__preview span {
    color: #20364a;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kizen-global-settings__form {
    padding: 1rem;
}

.kizen-global-settings__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
}

.kizen-global-settings__recommendation {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
}

.kizen-global-settings__recommendation > svg {
    flex: 0 0 auto;
    color: #0a6ed1;
}

.kizen-global-settings__recommendation strong {
    color: #0b2239;
    font-size: 0.8rem;
}

@media (max-width: 720px) {
    .kizen-global-settings__hero {
        align-items: stretch;
        flex-direction: column;
    }

    .kizen-global-settings__preview {
        flex-basis: auto;
    }
}

@media (min-width: 1024px) {
    .fi-topbar {
        gap: 1.25rem;
    }

    .fi-topbar-start {
        min-width: 15rem;
        max-width: 15rem;
        background: #ffffff;
    }

    .fi-topbar-start > a,
    .fi-topbar-start .fi-logo {
        display: block;
        min-width: 0;
    }

    .fi-topbar-end {
        padding-left: 0.5rem;
    }
}

/* 7. KARDEX GENERAL */
.kardex-general-page {
    width: 100%;
}

.kardex-general-card,
.kardex-general-stat-card,
.kardex-general-report-card,
.kardex-general-empty {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

.kardex-general-filters {
    padding: 1.1rem 1.25rem !important;
    border-color: #d9e1ea !important;
    background: linear-gradient(180deg, #fcfdff 0%, #f6f8fb 100%) !important;
}

.kardex-general-filters .fi-input-wrp,
.kardex-general-filters .fi-select-input,
.kardex-general-filters .fi-fo-field-wrp > div {
    background: #ffffff;
}

.kardex-general-filters .fi-fo-field-wrp-label {
    color: #334155 !important;
    font-size: 0.83rem !important;
    font-weight: 700 !important;
}

.kardex-general-stats-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kardex-general-stat-card {
    border-radius: 1rem;
    padding: 1rem 1rem 0.95rem;
    border-color: #dbe4ee !important;
}

.kardex-general-stat-label {
    color: #64748b !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kardex-general-stat-value {
    margin-top: 0.35rem;
    color: #0f172a !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.15;
}

.kardex-general-stat-value--positive {
    color: #047857 !important;
}

.kardex-general-stat-value--negative {
    color: #be123c !important;
}

.kardex-general-adjustments {
    display: grid;
    gap: 0.45rem;
}

.kardex-general-adjustments__label {
    color: #64748b !important;
}

.kardex-general-adjustments__value {
    color: #b45309 !important;
    font-weight: 700 !important;
}

.kardex-general-report-header {
    padding: 1rem 1.25rem !important;
    background: #f8fafc !important;
    border-color: #dde5ef !important;
}

.kardex-general-report-title {
    color: #0f172a !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

.kardex-general-report-period,
.kardex-general-report-meta {
    color: #475569 !important;
}

.kardex-general-report-meta {
    row-gap: 0.35rem !important;
}

.kardex-general-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.kardex-general-table thead {
    background: #eef2f7 !important;
}

.kardex-general-table th {
    color: #334155 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

.kardex-general-table td {
    color: #334155;
    padding-top: 0.72rem !important;
    padding-bottom: 0.72rem !important;
    vertical-align: middle;
}

.kardex-general-table__row:hover {
    background: #f8fafc !important;
}

.kardex-general-table tfoot {
    background: #f8fafc !important;
}

.kardex-general-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #ffffff;
}

.kardex-general-pagination__summary {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.kardex-general-empty__title {
    color: #0f172a !important;
}

.kardex-general-empty__body {
    color: #64748b !important;
    max-width: 42rem;
}

@media (max-width: 1280px) {
    .kardex-general-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .kardex-general-stats-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .kardex-general-card,
    .kardex-general-report-header {
        padding: 1rem !important;
    }

    .kardex-general-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .fi-resource-producto-cargas .section-sheet-hero,
    .fi-resource-producto-cargas .section-sheet-panel,
    .fi-resource-producto-cargas .section-sheet-grid-panel {
        padding: 1rem;
    }

    .fi-resource-producto-cargas .section-sheet-hero__actions,
    .fi-resource-producto-cargas .section-sheet-hero__corner,
    .fi-resource-producto-cargas .section-sheet-grid-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 1280px) {
    .fi-resource-producto-cargas .section-sheet-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .fi-resource-producto-cargas .section-sheet-hero,
    .fi-resource-producto-cargas .section-sheet-panel,
    .fi-resource-producto-cargas .section-sheet-grid-panel {
        padding: 1rem;
    }

    .fi-resource-producto-cargas .section-sheet-hero__actions,
    .fi-resource-producto-cargas .section-sheet-hero__corner,
    .fi-resource-producto-cargas .section-sheet-grid-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.fi-resource-consulta-productos .choices__list--dropdown .choices__item--selectable .cm-option-main {
    font-weight: 700;
    white-space: nowrap;
}

.fi-resource-consulta-productos .choices__list--dropdown .choices__item--selectable .cm-option-meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
}

.fi-resource-producto-cargas .fi-header-heading {
    white-space: normal;
}

.fi-resource-producto-cargas .importar-productos-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fi-resource-producto-cargas .importar-productos-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fi-resource-producto-cargas .importar-productos-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid #dbe4ee;
    border-radius: 0;
    background: #f5f7f9;
}

.fi-resource-producto-cargas .importar-productos-eyebrow,
.fi-resource-producto-cargas .importar-productos-card-kicker {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.fi-resource-producto-cargas .importar-productos-heading {
    margin: 0.35rem 0 0;
    max-width: 40rem;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.fi-resource-producto-cargas .importar-productos-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
}

.fi-resource-producto-cargas .importar-productos-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border: 1px solid #40566b;
    background: #354a5f;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
    transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.fi-resource-producto-cargas .importar-productos-link:hover,
.fi-resource-producto-cargas .importar-productos-link:focus-visible {
    border-color: #314557;
    background: #2f4254;
    color: #ffffff;
    transform: none;
}

.fi-resource-producto-cargas .importar-productos-link--soft {
    border-color: #0a6ed1;
    background: #0a6ed1;
    color: #ffffff;
}

.fi-resource-producto-cargas .importar-productos-grid {
    display: grid;
    gap: 1.25rem;
}

.fi-resource-producto-cargas .importar-productos-context-card,
.fi-resource-producto-cargas .importar-productos-upload-card {
    padding: 1.4rem 1.5rem;
    border: 1px solid #dbe4ee;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.fi-resource-producto-cargas .importar-productos-context-card__header h3,
.fi-resource-producto-cargas .importar-productos-upload-card__header h3 {
    margin: 0.35rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.fi-resource-producto-cargas .importar-productos-upload-card__header p {
    margin: 0.55rem 0 0;
    color: #475569;
    line-height: 1.55;
}

.fi-resource-producto-cargas .section-sheet-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fi-resource-producto-cargas .section-sheet-hero {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    border: 1px solid #dbe4ee;
    border-radius: 0;
    background: #f5f7f9;
    box-shadow: none;
}

.fi-resource-producto-cargas .section-sheet-eyebrow,
.fi-resource-producto-cargas .section-sheet-panel__kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.fi-resource-producto-cargas .section-sheet-heading {
    margin: 0.28rem 0 0;
    font-size: clamp(1.45rem, 1.05rem + 0.9vw, 2.05rem);
    font-weight: 900;
    line-height: 1.05;
    color: #0f172a;
}

.fi-resource-producto-cargas .section-sheet-copy {
    max-width: 54rem;
    margin: 0.65rem 0 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-copy--compact {
    max-width: 38rem;
    margin-top: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.fi-resource-producto-cargas .section-sheet-location-flow {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.fi-resource-producto-cargas .section-sheet-location-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 13.5rem;
    min-height: 3.25rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cfdbe6;
    border-radius: 0.35rem;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-location-card span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.25rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #edf3f8;
    color: #35506a;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-sheet-location-card strong {
    overflow: hidden;
    color: #17324b;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fi-resource-producto-cargas .section-sheet-location-flow__arrow {
    align-self: center;
    width: 1.05rem;
    height: 1.05rem;
    color: #5f768b;
}

.fi-resource-producto-cargas .section-sheet-hero__toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: flex-start;
    width: 100%;
}

.fi-resource-producto-cargas .section-sheet-hero__content {
    min-width: 0;
    flex: 1 1 32rem;
}

.fi-resource-producto-cargas .section-sheet-hero__corner {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: flex-end;
    align-self: flex-start;
    flex: 0 0 auto;
}

.fi-resource-producto-cargas .section-sheet-hero__footer {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid #dbe5ee;
}

.fi-resource-producto-cargas .section-sheet-button__icon,
.fi-resource-producto-cargas .importar-productos-button__icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.fi-resource-producto-cargas .section-sheet-link,
.fi-resource-producto-cargas .section-sheet-save,
.fi-resource-producto-cargas .section-sheet-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0;
    font-weight: 800;
    text-decoration: none;
    opacity: 1;
    transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.fi-resource-producto-cargas .section-sheet-link:hover,
.fi-resource-producto-cargas .section-sheet-save:hover,
.fi-resource-producto-cargas .section-sheet-remove:hover {
    opacity: 0.8;
    transform: none;
}

.fi-resource-producto-cargas .section-sheet-link {
    border: 1px solid #40566b;
    background: #354a5f;
    color: #ffffff;
    box-shadow: none;
}

.fi-resource-producto-cargas .section-sheet-link--soft {
    border-color: #0a6ed1;
    background: #0a6ed1;
    color: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-link--back {
    min-height: 2.35rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.fi-resource-producto-cargas .section-sheet-save {
    border: 1px solid #0f766e;
    background: #0f766e;
    color: #ffffff;
    box-shadow: none;
}

.fi-resource-producto-cargas .section-sheet-save--compact {
    min-height: 2.65rem;
    padding-inline: 0.95rem;
}

.fi-resource-producto-cargas .section-sheet-link--danger {
    border-color: #b91c1c;
    background: #dc2626;
    color: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-link--danger:hover {
    border-color: #991b1b;
    background: #b91c1c;
}

.fi-resource-producto-cargas .section-sheet-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
    margin-top: 10px;
}

.fi-resource-producto-cargas .section-sheet-action-stack {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.4rem;
    min-width: 0;
}

.fi-resource-producto-cargas .section-sheet-action-stack .section-sheet-save {
    width: 100%;
}

.fi-resource-producto-cargas .section-sheet-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    min-width: 2.3rem;
    min-height: 2.85rem;
    padding: 0;
    border: 1px solid #c7d5e0;
    border-radius: 0;
    background: #f3f6f9;
    color: #35506a;
}

.fi-resource-producto-cargas .section-sheet-info-trigger__icon {
    width: 1rem;
    height: 1rem;
}

.fi-resource-producto-cargas .section-sheet-info-popover {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 20;
    width: min(20rem, calc(100vw - 2rem));
    padding: 0.85rem 0.95rem;
    border: 1px solid #cfdbe6;
    border-radius: 0;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-info-popover strong {
    display: block;
    color: #17324b;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-sheet-info-popover p {
    margin: 0.45rem 0 0;
    color: #52697f;
    font-size: 0.8rem;
    line-height: 1.45;
}

.fi-resource-producto-cargas .section-sheet-save--secondary {
    width: 100%;
    justify-content: center;
    background: #1e293b;
    border-color: #0f172a;
    box-shadow: none;
}

.fi-resource-producto-cargas .section-sheet-actions--sap-row {
    gap: 0.35rem;
}

.fi-resource-producto-cargas .section-sheet-actions--sap-row .section-sheet-link {
    width: auto;
    min-width: 11.75rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.fi-resource-producto-cargas .section-sheet-actions--sap-row .section-sheet-link:hover {
    transform: none;
    opacity: 0.8;
}

.fi-resource-producto-cargas .section-sheet-actions--sap-row .section-sheet-link:active {
    transform: none;
}

.fi-resource-producto-cargas .section-sheet-save--success {
    width: 100%;
    max-width: none;
    justify-content: center;
    background: #107e3e;
    border-color: #107e3e;
    box-shadow: none;
}

.fi-resource-producto-cargas .section-sheet-save--primary {
    width: 100%;
    max-width: none;
    justify-content: center;
    background: #0a6ed1;
    border-color: #0a6ed1;
    color: #ffffff;
    box-shadow: none;
}

.fi-resource-producto-cargas .section-sheet-save--primary:hover {
    background: #085caf;
    border-color: #085caf;
}

.fi-resource-producto-cargas .section-sheet-actions .section-sheet-save--secondary,
.fi-resource-producto-cargas .section-sheet-actions .section-sheet-save--primary,
.fi-resource-producto-cargas .section-sheet-actions .section-sheet-save--success {
    width: 100%;
    min-width: 0;
}

.fi-resource-producto-cargas .section-sheet-modal__actions .section-sheet-save--secondary {
    width: auto;
    max-width: none;
}

.fi-resource-producto-cargas .section-sheet-hero--sap {
    position: sticky;
    top: 0;
    z-index: 50;
    border-radius: 0;
    border-color: #cfdbe6;
    background: #f5f7f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fi-resource-producto-cargas .section-sheet-hero--sap::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, transparent 100%);
    pointer-events: none;
}

.fi-resource-producto-cargas .section-sheet-hero__corner .section-sheet-save,
.fi-resource-producto-cargas .section-sheet-hero__corner .section-sheet-link {
    width: auto;
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.fi-resource-producto-cargas .section-sheet-hero__corner .section-sheet-save:hover,
.fi-resource-producto-cargas .section-sheet-hero__corner .section-sheet-link:hover {
    transform: none;
    opacity: 0.8;
}

.fi-resource-producto-cargas .section-sheet-hero__corner .section-sheet-save:active,
.fi-resource-producto-cargas .section-sheet-hero__corner .section-sheet-link:active {
    transform: none;
}

.fi-resource-producto-cargas .section-sheet-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.fi-resource-producto-cargas .section-sheet-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid #cfdbe6;
    border-radius: 0;
    background: #f3f6f9;
    color: #294965;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-sheet-meta-pill--open {
    border-color: #c7e2ce;
    color: #1d6d2c;
    background: #eef6ef;
}

.fi-resource-producto-cargas .section-sheet-meta-pill--locked {
    border-color: #ead7b0;
    color: #9a6700;
    background: #fbf2d9;
}

.fi-resource-producto-cargas .section-sheet-tabs-shell {
    margin-top: 0;
    padding: 0;
    border: 1px solid #c9d7e2;
    border-radius: 0.5rem !important;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.fi-resource-producto-cargas .section-sheet-tabs-shell .fi-tabs:not(.fi-contained) {
    border-radius: 0 !important;
}

.fi-resource-producto-cargas .section-sheet-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding: 0.25rem 0.55rem 0;
    border-bottom: 1px solid #cbd9e4;
    background: #eef3f7;
}

.fi-resource-producto-cargas .section-sheet-tab-content {
    padding: 0.85rem 1.25rem;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-tabs--with-dynamic {
    padding-right: 0;
}

.fi-resource-producto-cargas .section-sheet-tab--document {
    background: #f8fafc;
    border-color: #e2e8f0;
    max-width: 200px;
    position: relative;
    padding-right: 1.8rem;
}

.fi-resource-producto-cargas .section-sheet-tab--document.is-active {
    background: #ffffff;
    border-color: #9db9d2 #9db9d2 #ffffff;
}

.fi-resource-producto-cargas .section-sheet-tab__close {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 2px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 120ms ease;
}

.fi-resource-producto-cargas .section-sheet-tab__close:hover {
    background: #e2e8f0;
    color: #64748b;
}

.fi-resource-producto-cargas .section-sheet-doc-tab-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 280px);
    min-height: 400px;
}

.fi-resource-producto-cargas .section-sheet-doc-tab-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.fi-resource-producto-cargas .section-sheet-doc-tab-header h3 {
    margin: 0.25rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.fi-resource-producto-cargas .section-sheet-doc-tab-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.fi-resource-producto-cargas .section-sheet-doc-tab-frame {
    flex: 1 1 auto;
    border: 1px solid #d0dce7;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.fi-resource-producto-cargas .section-sheet-doc-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.fi-resource-producto-cargas .section-sheet-tab-content {
    padding: 0.85rem;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.05rem;
    margin: 0.25rem 0.18rem 0 0;
    padding: 0.38rem 0.7rem 0.34rem;
    border: 1px solid #d6e0e8;
    border-bottom: 1px solid transparent;
    border-radius: 0.4rem 0.4rem 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3d5870 !important;
    white-space: nowrap;
    appearance: none;
}

.fi-resource-producto-cargas .section-sheet-tab:last-child {
    margin-inline-end: 0;
}

.fi-resource-producto-cargas .section-sheet-tab .fi-tabs-item-label {
    color: inherit !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
}

.fi-resource-producto-cargas .section-sheet-tab.is-active,
.fi-resource-producto-cargas .section-sheet-tab.fi-active,
.fi-resource-producto-cargas .section-sheet-tab[aria-selected='true'] {
    color: #18354c !important;
    border-color: #9db9d2 #9db9d2 #ffffff;
    border-bottom-color: #ffffff;
    background: #ffffff !important;
    box-shadow: none !important;
}

.fi-resource-producto-cargas .section-sheet-tab.is-active .fi-tabs-item-label,
.fi-resource-producto-cargas .section-sheet-tab.fi-active .fi-tabs-item-label,
.fi-resource-producto-cargas .section-sheet-tab[aria-selected='true'] .fi-tabs-item-label {
    color: #18354c !important;
    font-weight: 600;
}

.fi-resource-producto-cargas .section-sheet-tab:hover {
    color: #2b455d !important;
    background: transparent !important;
}

.fi-resource-producto-cargas .section-sheet-panel--sap {
    border-radius: 0.35rem;
    border-color: #d2dee8;
    background: #ffffff;
    box-shadow: none;
    margin-top: 1rem;
}

.fi-resource-producto-cargas .section-sheet-panel--sap:first-child,
.fi-resource-producto-cargas .section-sheet-tab-content > div > .section-sheet-panel--sap:first-child {
    margin-top: 0;
}

.fi-resource-producto-cargas .section-sheet-tab-content > div > .section-sheet-panel,
.fi-resource-producto-cargas .section-sheet-tab-content > div > .section-sheet-grid-panel {
    border-radius: 0.35rem;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-tab-content > div > .section-sheet-panel:first-child,
.fi-resource-producto-cargas .section-sheet-tab-content > div > .section-sheet-grid-panel:first-child {
    border-color: transparent;
    padding: 0;
}

.fi-resource-producto-cargas .section-sheet-panel--warning {
    border-color: #ead7b0;
    background: #fbf7ea;
}

.fi-resource-producto-cargas .section-sheet-kpi-grid {
    display: grid;
    gap: 0.6rem;
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fi-resource-producto-cargas .section-sheet-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d7e2eb;
    border-radius: 0;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-kpi span {
    color: #5f768b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-sheet-kpi strong {
    color: #17324b;
    font-size: 1.05rem;
    font-weight: 900;
}

.fi-resource-producto-cargas .section-sheet-kpi small {
    color: #64748b;
    font-size: 0.78rem;
}

.fi-resource-producto-cargas .section-sheet-process-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fi-resource-producto-cargas .section-sheet-process-card {
    padding: 1rem;
    border: 1px solid #d7e2eb;
    border-radius: 0;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-process-card h4 {
    margin: 0.45rem 0 0;
    color: #17324b;
    font-size: 0.96rem;
    font-weight: 900;
}

.fi-resource-producto-cargas .section-sheet-process-card p {
    margin: 0.55rem 0 0;
    color: #52697f;
    font-size: 0.86rem;
    line-height: 1.55;
}

.fi-resource-producto-cargas .section-sheet-search-results--catalog {
    gap: 0.75rem;
}

.fi-resource-producto-cargas .section-sheet-result {
    border-radius: 0;
    border-color: #d2dee8;
    background: #ffffff;
    box-shadow: none;
}

.fi-resource-producto-cargas .section-sheet-result--annulled {
    border-color: #d7dee5;
    background: #f5f7f9;
}

.fi-resource-producto-cargas .section-sheet-result__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.fi-resource-producto-cargas .section-sheet-result__headline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.fi-resource-producto-cargas .section-sheet-stock-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 1.85rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid #cddbe6;
    border-radius: 0;
    background: #f3f6f9;
    color: #35506a;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.fi-resource-producto-cargas .section-sheet-annulled-text,
.fi-resource-producto-cargas .section-sheet-table__row--annulled td {
    color: #9aa4af !important;
    text-decoration: line-through;
    text-decoration-color: #9aa4af;
}

.fi-resource-producto-cargas .section-sheet-product-cell__meta {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
}

.fi-resource-producto-cargas .section-sheet-field-help {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.62rem;
    line-height: 1.35;
    max-width: 8rem;
}

.fi-resource-producto-cargas .section-sheet-preview-card {
    border: 1px solid #d7e2eb;
    border-radius: 0;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-preview-card--blue {
    border-color: #c7dbef;
    background: #f4f8fb;
}

.fi-resource-producto-cargas .section-sheet-preview-card--amber {
    border-color: #ead7b0;
    background: #fbf7ea;
}

.fi-resource-producto-cargas .section-sheet-preview-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1rem 0;
}

.fi-resource-producto-cargas .section-sheet-preview-card__header h4 {
    margin: 0.35rem 0 0;
    color: #17324b;
    font-size: 0.98rem;
    font-weight: 900;
}

.fi-resource-producto-cargas .section-sheet-preview-card__count {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid #d3dee8;
    border-radius: 0;
    background: #f3f6f9;
    color: #35506a;
    font-size: 0.74rem;
    font-weight: 800;
}

.fi-resource-producto-cargas .section-sheet-preview-card__body {
    padding: 1rem;
}

.fi-resource-producto-cargas .section-sheet-preview-item {
    padding: 0.95rem;
    border: 1px solid #d7e2eb;
    border-radius: 0;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-preview-item + .section-sheet-preview-item {
    margin-top: 0.75rem;
}

.fi-resource-producto-cargas .section-sheet-preview-item__head {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
}

.fi-resource-producto-cargas .section-sheet-preview-item__head strong {
    color: #17324b;
    font-size: 0.92rem;
    font-weight: 900;
}

.fi-resource-producto-cargas .section-sheet-preview-item__head p,
.fi-resource-producto-cargas .section-sheet-preview-line__meta {
    margin: 0.35rem 0 0;
    color: #5f768b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-preview-item__totals {
    color: #52697f;
    font-size: 0.78rem;
    text-align: right;
}

.fi-resource-producto-cargas .section-sheet-preview-item__totals .is-emphasis {
    color: #17324b;
    font-weight: 900;
}

.fi-resource-producto-cargas .section-sheet-preview-lines {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fi-resource-producto-cargas .section-sheet-preview-line {
    padding: 0.75rem 0.8rem;
    border: 1px solid #dbe4ee;
    border-radius: 0;
    background: #f6f8fa;
}

.fi-resource-producto-cargas .section-sheet-preview-line__title {
    color: #17324b;
    font-size: 0.86rem;
    font-weight: 800;
}

.fi-resource-producto-cargas .section-sheet-link--document {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.9rem 1rem;
    border-radius: 0;
}

.fi-resource-producto-cargas .section-sheet-document-card__title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.35;
}

.fi-resource-producto-cargas .section-sheet-document-card__meta {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
}

.fi-resource-producto-cargas .section-sheet-document-card__description {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.75rem;
    line-height: 1.45;
}

.fi-resource-producto-cargas .section-sheet-empty--documentos {
    min-height: 7rem;
}

.fi-resource-producto-cargas .section-sheet-link:hover,
.fi-resource-producto-cargas .section-sheet-save:hover,
.fi-resource-producto-cargas .section-sheet-remove:hover {
    transform: none;
}

.fi-resource-producto-cargas .section-sheet-panel,
.fi-resource-producto-cargas .section-sheet-grid-panel {
    border: 1px solid #dbe4ee;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.fi-resource-producto-cargas .section-sheet-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.fi-resource-producto-cargas .section-sheet-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fi-resource-producto-cargas .section-sheet-panel,
.fi-resource-producto-cargas .section-sheet-grid-panel {
    padding: 1rem 1.15rem;
}

.fi-resource-producto-cargas .section-sheet-panel__header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.8rem;
}

.fi-resource-producto-cargas .section-sheet-panel__header h3,
.fi-resource-producto-cargas .section-sheet-grid-header h3 {
    margin: 0.25rem 0 0;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
}

.fi-resource-producto-cargas .section-sheet-panel__header p {
    margin: 0.45rem 0 0;
    max-width: 72ch;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.fi-resource-producto-cargas .section-sheet-search {
    display: block;
    margin-top: 1rem;
}

.fi-resource-producto-cargas .section-sheet-search input,
.fi-resource-producto-cargas .section-sheet-field input,
.fi-resource-producto-cargas .section-sheet-paste,
.fi-resource-producto-cargas .section-sheet-qty {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    color: #0f172a;
}

.fi-resource-producto-cargas .section-sheet-search input {
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
}

.fi-resource-producto-cargas .section-sheet-search {
    position: relative;
}

.fi-resource-producto-cargas .section-sheet-search-loading {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
}

.fi-resource-producto-cargas .section-sheet-search-loading__dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #0a6ed1;
    animation: sectionSheetSearchPulse 1.2s ease-in-out infinite;
}

.fi-resource-producto-cargas .section-sheet-search-loading__dot:nth-child(2) {
    animation-delay: 0.2s;
}

.fi-resource-producto-cargas .section-sheet-search-loading__dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes sectionSheetSearchPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.fi-resource-producto-cargas .section-sheet-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.fi-resource-producto-cargas .section-sheet-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fi-resource-producto-cargas .section-sheet-field--full {
    grid-column: 1 / -1;
}

.fi-resource-producto-cargas .section-sheet-field span {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-sheet-field input,
.fi-resource-producto-cargas .section-sheet-paste {
    min-height: 2.85rem;
    padding: 0.8rem 0.95rem;
}

.fi-resource-producto-cargas .section-sheet-paste {
    min-height: 10rem;
    resize: vertical;
    font-family: "Consolas", "Courier New", monospace;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-paste-hint {
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0;
    background: #f6f8fa;
    color: #475569;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.fi-resource-producto-cargas .section-sheet-helper {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-result {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #dbe4ee;
    border-radius: 0;
    background: #ffffff;
    text-align: left;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.fi-resource-producto-cargas .section-sheet-result:hover {
    background: #f5f7fa;
    border-color: #b8c5d4;
    cursor: pointer;
}

.fi-resource-producto-cargas .section-sheet-result__sap-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    line-height: 1.3;
}

.fi-resource-producto-cargas .section-sheet-result__cat {
    color: #5f768b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fi-resource-producto-cargas .section-sheet-result__code {
    color: #17324b;
    font-weight: 800;
    font-size: 0.8rem;
}

.fi-resource-producto-cargas .section-sheet-result__measure {
    color: #475569;
    font-weight: 500;
}

.fi-resource-producto-cargas .section-sheet-result__brand {
    color: #35506a;
    font-weight: 600;
}

.fi-resource-producto-cargas .section-sheet-result__machine {
    color: #64748b;
    font-weight: 500;
}

.fi-resource-producto-cargas .section-sheet-result__sep {
    color: #a0aec0;
    font-weight: 400;
    padding: 0 0.1rem;
}

.fi-resource-producto-cargas .section-sheet-result .section-sheet-stock-pill {
    margin-left: auto;
    font-size: 0.7rem;
    min-height: 1.4rem;
    padding: 0.15rem 0.4rem;
}

.fi-resource-producto-cargas .section-sheet-search-results--catalog .section-sheet-result__top {
    align-items: center;
    flex-direction: row;
}

.fi-resource-producto-cargas .section-sheet-search-results--catalog .section-sheet-result__headline {
    flex: 1 1 auto;
    min-width: 0;
}

.fi-resource-producto-cargas .section-sheet-result__nomenclature {
    display: block;
    overflow: hidden;
    color: #17324b;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fi-resource-producto-cargas .section-sheet-result span,
.fi-resource-producto-cargas .section-sheet-result small,
.fi-resource-producto-cargas .section-sheet-notes li {
    color: #64748b;
}

.fi-resource-producto-cargas .section-sheet-notes {
    margin: 0.55rem 0 0;
    padding-left: 1.25rem;
    list-style: disc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-notes li {
    display: list-item;
    margin: 0.22rem 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-grid-header {
    display: block;
    gap: 1rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.fi-resource-producto-cargas .section-sheet-grid-header__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.fi-resource-producto-cargas .section-sheet-grid-header__title h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0.25rem 0 0;
}

.fi-resource-producto-cargas .section-sheet-row-count {
    margin: 0.1rem 0 0;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 800;
    color: #294965;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .fi-resource-producto-cargas .section-sheet-grid-header__title {
        flex-direction: column;
        gap: 0.35rem;
    }

    .fi-resource-producto-cargas .section-sheet-row-count {
        white-space: normal;
    }
}

.fi-resource-producto-cargas .section-sheet-product-cell__nomenclature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    line-height: 1.3;
}

.fi-resource-producto-cargas .section-sheet-product-cell__cat {
    color: #5f768b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.fi-resource-producto-cargas .section-sheet-product-cell__sep {
    color: #a0aec0;
    font-weight: 400;
    padding: 0 0.1rem;
}

.fi-resource-producto-cargas .section-sheet-product-cell__brand {
    color: #35506a;
    font-weight: 600;
}

.fi-resource-producto-cargas .section-sheet-table th {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
}

.fi-resource-producto-cargas .section-sheet-table td {
    font-size: 0.78rem;
}

.fi-resource-producto-cargas .section-sheet-qty {
    font-size: 0.8rem;
    min-height: 2rem;
    padding: 0.35rem 0.5rem;
}

.fi-resource-producto-cargas .section-sheet-grid-wrap {
    overflow: auto;
    border-radius: 0;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-sheet-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-sheet-column-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.fi-resource-producto-cargas .section-sheet-column-label {
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-sheet-column-help {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.fi-resource-producto-cargas .section-sheet-table th,
.fi-resource-producto-cargas .section-sheet-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.fi-resource-producto-cargas .section-sheet-table tbody tr:hover {
    background: #f8fbff;
}

.fi-resource-producto-cargas .section-sheet-product-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fi-resource-producto-cargas .section-sheet-product-cell strong,
.fi-resource-producto-cargas .section-sheet-total-cell,
.fi-resource-producto-cargas .section-sheet-table__index {
    color: #0f172a;
    font-weight: 800;
}

.fi-resource-producto-cargas .section-sheet-product-cell span {
    color: #64748b;
}

.fi-resource-producto-cargas .section-sheet-qty {
    max-width: 8rem;
    min-height: 2.7rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: right;
}

.fi-resource-producto-cargas .section-sheet-qty--bartrading {
    border-color: #bfdbfe;
    background: #eef5fd;
}

.fi-resource-producto-cargas .section-sheet-qty--erba {
    border-color: #bbf7d0;
    background: #eef8f0;
}

.fi-resource-producto-cargas .section-sheet-remove {
    min-height: 2.5rem;
    padding-inline: 0.9rem;
    border: 1px solid #fecaca;
    border-radius: 0;
    background: #fef2f2;
    color: #b91c1c;
}

.fi-resource-producto-cargas .section-sheet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 10rem;
    color: #64748b;
    text-align: center;
}

.fi-resource-producto-cargas .section-sheet-modal-shell,
.fi-resource-producto-cargas.section-sheet-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 24px 16px;
    overflow: hidden;
}

.fi-resource-producto-cargas .section-sheet-modal {
    width: min(82rem, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid #d0dce7;
    border-radius: 0;
    background: #ffffff;
    padding: 20px 24px 24px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.fi-resource-producto-cargas .section-sheet-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0;
    border-bottom: none;
}

.fi-resource-producto-cargas .section-sheet-modal__header--compact {
    margin-bottom: 0.5rem;
}

.fi-resource-producto-cargas .section-sheet-modal__kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.15rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #edf3f8;
    color: #35506a;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-sheet-modal__title {
    margin: 0.15rem 0 0;
    color: #17324b;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.fi-resource-producto-cargas .section-sheet-modal__header--compact .section-sheet-modal__title {
    font-size: 0.95rem;
    font-weight: 700;
}

.fi-resource-producto-cargas .section-sheet-modal__copy {
    margin: 0.35rem 0 0;
    color: #52697f;
    font-size: 0.8rem;
    line-height: 1.4;
}

.fi-resource-producto-cargas .section-sheet-link--compact {
    min-height: 1.9rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
}

.fi-resource-producto-cargas .section-sheet-modal__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.fi-resource-producto-cargas .section-sheet-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fi-resource-producto-cargas .section-sheet-modal__field--full {
    grid-column: 1 / -1;
}

.fi-resource-producto-cargas .section-sheet-modal__field span {
    color: #35506a;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fi-resource-producto-cargas .section-sheet-modal__field input {
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    color: #0f172a;
}

.fi-resource-producto-cargas .section-sheet-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.fi-resource-producto-cargas .section-sheet-modal__body {
    margin-top: 0.5rem;
    overflow: hidden;
}

.fi-resource-producto-cargas .section-sheet-modal {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sysbar-product-modal__select-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
}

.sysbar-product-modal__select-btn--disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.fi-resource-producto-cargas .section-sheet-modal .sysbar-product-modal {
    min-height: auto;
}

.fi-resource-producto-cargas .section-sheet-modal .sysbar-product-modal__table-wrap {
    max-height: min(54vh, 540px);
}

.fi-resource-producto-cargas.section-sheet-modal-shell[x-cloak],
.fi-resource-producto-cargas .section-sheet-modal-shell[x-cloak] {
    display: none !important;
}

/* Document Conflict Modal */
.fi-resource-producto-cargas .section-sheet-doc-conflict-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fi-resource-producto-cargas .section-sheet-doc-conflict-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.fi-resource-producto-cargas .section-sheet-doc-conflict-modal__window {
    position: relative;
    width: min(28rem, calc(100vw - 2rem));
    background: #ffffff;
    border: 1px solid #d0dce7;
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.fi-resource-producto-cargas .section-sheet-doc-conflict-modal__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.fi-resource-producto-cargas .section-sheet-doc-conflict-modal__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.fi-resource-producto-cargas .section-sheet-doc-conflict-modal__body {
    margin-bottom: 1.25rem;
}

.fi-resource-producto-cargas .section-sheet-doc-conflict-modal__body p {
    margin: 0 0 0.5rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-doc-conflict-modal__options-title {
    font-weight: 600;
    color: #0f172a;
    margin-top: 0.75rem !important;
}

.fi-resource-producto-cargas .section-sheet-doc-conflict-modal__actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Exit Confirm Modal */
.fi-resource-producto-cargas .section-sheet-exit-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fi-resource-producto-cargas .section-sheet-exit-confirm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.fi-resource-producto-cargas .section-sheet-exit-confirm-modal__window {
    position: relative;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow: auto;
}

.fi-resource-producto-cargas .section-sheet-exit-confirm-modal__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.fi-resource-producto-cargas .section-sheet-exit-confirm-modal__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.fi-resource-producto-cargas .section-sheet-exit-confirm-modal__body {
    padding: 1.25rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-exit-confirm-modal__body p {
    margin: 0;
}

.fi-resource-producto-cargas .section-sheet-exit-confirm-modal__actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.fi-resource-producto-cargas .section-sheet-link--danger {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.fi-resource-producto-cargas .section-sheet-link--danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Document card hint */
.fi-resource-producto-cargas .section-sheet-document-card__hint {
    display: block;
    font-size: 0.7rem;
    color: #0a6ed1;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Mermaid diagram */
.fi-resource-producto-cargas .section-sheet-mermaid {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.fi-resource-producto-cargas .section-sheet-mermaid pre {
    margin: 0;
    font-family: "SF Mono", "Consolas", monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #334155;
}

/* Config panel */
.fi-resource-producto-cargas .section-sheet-panel--highlight {
    border-left: 3px solid #0a6ed1;
}

.fi-resource-producto-cargas .section-sheet-config-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fi-resource-producto-cargas .section-sheet-config-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease;
}

.fi-resource-producto-cargas .section-sheet-config-item:hover {
    border-color: #0a6ed1;
    background: #f8fafc;
}

.fi-resource-producto-cargas .section-sheet-config-item--highlight {
    border-color: #0a6ed1;
    background: #f0f7ff;
}

.fi-resource-producto-cargas .section-sheet-config-checkbox {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    accent-color: #0a6ed1;
}

.fi-resource-producto-cargas .section-sheet-config-content strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.fi-resource-producto-cargas .section-sheet-config-content p {
    margin: 0;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-config-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.fi-resource-producto-cargas .section-sheet-config-info__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fi-resource-producto-cargas .section-sheet-config-info__item span {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fi-resource-producto-cargas .section-sheet-config-info__item strong {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 600;
}

/* Process explanation */
.fi-resource-producto-cargas .section-sheet-process-explanation {
    padding: 0.75rem 0;
}

.fi-resource-producto-cargas .section-sheet-process-explanation > p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

.fi-resource-producto-cargas .section-sheet-process-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0;
    color: #92400e;
    font-size: 0.78rem;
}

/* Meta pill date variant */
.fi-resource-producto-cargas .section-sheet-meta-pill--date {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

/* Stock column in table */
.fi-resource-producto-cargas .section-sheet-stock-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fi-resource-producto-cargas .section-sheet-stock-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 2px;
    transition: all 120ms ease;
}

.fi-resource-producto-cargas .section-sheet-stock-info-btn:hover {
    background: #e2e8f0;
    color: #0a6ed1;
}

.fi-resource-producto-cargas .section-sheet-table__stock {
    font-size: 0.8rem;
}

.fi-resource-producto-cargas .section-sheet-stock-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fi-resource-producto-cargas .section-sheet-stock-total {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.85rem;
}

.fi-resource-producto-cargas .section-sheet-stock-breakdown {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.fi-resource-producto-cargas .section-sheet-stock-tag {
    display: inline-flex;
    padding: 0.1rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 2px;
}

.fi-resource-producto-cargas .section-sheet-stock-tag--bartrading {
    background: #e0f2fe;
    color: #0369a1;
}

.fi-resource-producto-cargas .section-sheet-stock-tag--erba {
    background: #f0fdf4;
    color: #166534;
}

@media (max-width: 640px) {
    .fi-resource-producto-cargas .section-sheet-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fi-resource-producto-cargas .importacion-secciones-action--v2 {
    background: linear-gradient(135deg, #0f766e 0%, #0f9f8f 100%) !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}

.fi-resource-producto-cargas .importar-productos-context-list {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0 0;
}

.fi-resource-producto-cargas .importar-productos-context-pills {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.fi-resource-producto-cargas .importar-productos-context-pill {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
}

.fi-resource-producto-cargas .importar-productos-context-pill--soft {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.fi-resource-producto-cargas .importar-productos-context-pill span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.fi-resource-producto-cargas .importar-productos-context-pill strong {
    font-size: 1rem;
    line-height: 1.45;
    color: #0f172a;
}

.fi-resource-producto-cargas .importar-productos-context-list dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.fi-resource-producto-cargas .importar-productos-context-list dd {
    margin: 0.2rem 0 0;
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 600;
}

.fi-resource-producto-cargas .importar-productos-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.fi-resource-producto-cargas .importar-productos-dropzone {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    cursor: pointer;
}

.fi-resource-producto-cargas .importar-productos-dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.fi-resource-producto-cargas .importar-productos-dropzone__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.fi-resource-producto-cargas .importar-productos-dropzone__content strong {
    color: #0f172a;
    font-size: 1rem;
}

.fi-resource-producto-cargas .importar-productos-dropzone__content span {
    color: #64748b;
    line-height: 1.5;
}

.fi-resource-producto-cargas .importar-productos-file-input {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    background: #ffffff;
    color: #0f172a;
}

.fi-resource-producto-cargas .importar-productos-file-input::file-selector-button {
    margin-right: 0.85rem;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-radius: 0.7rem;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
}

.fi-resource-producto-cargas .importar-productos-meta-row {
    display: grid;
    gap: 0.8rem;
}

.fi-resource-producto-cargas .importar-productos-meta-pill {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.fi-resource-producto-cargas .importar-productos-meta-pill--muted {
    background: #fff7ed;
    border-color: #fed7aa;
}

.fi-resource-producto-cargas .importar-productos-meta-pill__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.fi-resource-producto-cargas .importar-productos-meta-pill__value {
    color: #0f172a;
    font-weight: 700;
}

.fi-resource-producto-cargas .importar-productos-actions {
    display: flex;
    justify-content: flex-end;
}

.fi-resource-producto-cargas .importar-productos-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: #1e293b;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.fi-resource-producto-cargas .importar-productos-submit:hover,
.fi-resource-producto-cargas .importar-productos-submit:focus-visible {
    transform: none;
    box-shadow: none;
}

.fi-resource-producto-cargas .importar-productos-alert {
    padding: 1rem 1.1rem;
    border-radius: 0;
    border: 1px solid transparent;
}

.fi-resource-producto-cargas .importar-productos-alert--success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.fi-resource-producto-cargas .importar-productos-alert--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.fi-resource-producto-cargas .importar-productos-errors {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #fecaca;
    background: #ffffff;
}

.fi-resource-producto-cargas .fi-ta-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
}

.fi-resource-producto-cargas .importacion-secciones-description {
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.fi-resource-producto-cargas .importacion-secciones-action {
    position: relative;
    display: inline-flex !important;
    min-width: 8.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 0;
    border-width: 1px;
    padding: 0.75rem 0.95rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    box-shadow: none;
}

.fi-resource-producto-cargas .importacion-secciones-action::after {
    content: attr(data-scope);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
    opacity: 0.82;
}

.fi-resource-producto-cargas .importacion-secciones-action:not([data-scope])::after {
    content: none;
}

.fi-resource-producto-cargas .importacion-secciones-action .fi-btn-label {
    white-space: normal;
}

.fi-resource-producto-cargas .importacion-secciones-action .fi-btn-icon {
    width: 1rem;
    height: 1rem;
    color: currentColor !important;
    flex: 0 0 auto;
}

.fi-resource-producto-cargas .fi-ta-header-ctn {
    display: grid;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn {
    margin-bottom: 0;
}

.sysbar-module-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 0.8rem;
    border: 1px solid #cfdbe8;
    border-radius: 0;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
    box-shadow: none;
    overflow: clip;
}

.sysbar-module-shell__bar {
    display: flex;
    align-items: end;
    min-height: 2.15rem;
    border-bottom: 1px solid #d5e5f2;
    background: linear-gradient(180deg, #eef4f8 0%, #e3ebf2 100%);
    padding: 0 0.45rem;
}

.sysbar-module-shell__tablist {
    display: flex;
    align-items: stretch;
    gap: 0.12rem;
    width: 100%;
    overflow-x: auto;
    padding: 0.08rem 0;
    scrollbar-width: thin;
}

.sysbar-module-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: 1.72rem;
    padding: 0.12rem 0.3rem 0.14rem 0.3rem;
    border: 1px solid transparent;
    border-bottom-width: 2px;
    border-radius: 0.42rem 0.42rem 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(226, 235, 243, 0.94) 100%);
    color: #4a6177;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.sysbar-module-tab:hover {
    border-color: #c2d5e6;
    color: #24405b;
    background: linear-gradient(180deg, #ffffff 0%, #edf3f8 100%);
    opacity: 0.92;
}

.sysbar-module-tab.is-active {
    border-color: #0a6ed1 #c2d5e6 #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    color: #16324a;
    box-shadow: inset 0 2px 0 #0a6ed1;
}

.sysbar-module-tab__label {
    display: inline-flex;
    align-items: center;
}

.sysbar-module-tab__trigger {
    display: inline-flex;
    align-items: center;
    min-height: 1.44rem;
    padding: 0.08rem 0.3rem 0.08rem 0.4rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
    transition: opacity 0.18s ease;
}

.sysbar-module-tab__trigger:hover {
    opacity: 0.9;
}

.sysbar-module-tab__trigger:focus-visible,
.sysbar-module-tab__close:focus-visible {
    outline: 2px solid #0a6ed1;
    outline-offset: 1px;
}

.sysbar-module-tab__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(67, 87, 105, 0.08);
    color: #5d7083;
    cursor: pointer;
    font-size: 0.76rem;
    line-height: 1;
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.sysbar-module-tab__close:hover {
    background: rgba(10, 110, 209, 0.14);
    color: #0a5faf;
    opacity: 0.88;
}

.sysbar-module-shell__workspace {
    position: relative;
    min-height: 70vh;
    background: #f5f7f9;
}

.sysbar-module-pane {
    display: none;
    width: 100%;
}

.sysbar-module-pane.is-active {
    display: block;
}

.sysbar-module-pane--native {
    padding-top: 0.1rem;
}

.sysbar-workspace {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sysbar-workspace__hero,
.sysbar-workspace__actions-section,
.sysbar-workspace__assistant,
.sysbar-workspace__board-section,
.sysbar-workspace__guide-section {
    border: 1px solid #cbd8e5;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #fcfdfe 0%, #f4f8fb 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.sysbar-workspace__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(18rem, 1fr);
    gap: 1rem;
    padding: 1rem 1.1rem 1.05rem;
}

.sysbar-workspace__hero-main,
.sysbar-workspace__hero-side,
.sysbar-workspace__section-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sysbar-workspace__hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.sysbar-workspace__eyebrow,
.sysbar-workspace__action-eyebrow,
.sysbar-workspace__lane-kicker,
.sysbar-workspace__task-type {
    color: #58728a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sysbar-workspace__title {
    margin: 0;
    color: #16324a;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sysbar-workspace__copy,
.sysbar-workspace__section-header p,
.sysbar-workspace__lane-header p,
.sysbar-workspace__action span,
.sysbar-workspace__guide-card p,
.sysbar-workspace__task-body p,
.sysbar-workspace__lane-empty span,
.sysbar-workspace__user-card span {
    margin: 0;
    color: #5a7085;
    font-size: 0.86rem;
    line-height: 1.55;
}

.sysbar-workspace__user-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 6rem;
    padding: 0.9rem 1rem;
    border: 1px solid #cbd9e6;
    border-radius: 0.48rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.sysbar-workspace__user-card strong,
.sysbar-workspace__section-header h3,
.sysbar-workspace__lane-header h4,
.sysbar-workspace__action strong,
.sysbar-workspace__guide-card h4,
.sysbar-workspace__task-head h5,
.sysbar-workspace__metric strong {
    margin: 0;
    color: #18324a;
}

.sysbar-workspace__user-card strong {
    font-size: 1rem;
    font-weight: 800;
}

.sysbar-workspace__user-card--muted {
    background: linear-gradient(180deg, #f1f7fb 0%, #e7f0f7 100%);
}

.sysbar-workspace__user-label {
    font-size: 0.68rem !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sysbar-workspace__actions-section,
.sysbar-workspace__assistant,
.sysbar-workspace__board-section,
.sysbar-workspace__guide-section {
    padding: 1rem 1.05rem 1.1rem;
}

.sysbar-workspace__assistant-panel {
    display: grid;
    grid-template-columns: minmax(17rem, 0.9fr) minmax(18rem, 1.1fr);
    gap: 0.85rem;
    align-items: center;
}

.sysbar-workspace__assistant-heading {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sysbar-workspace__assistant-heading h3 {
    margin: 0;
    color: #18324a;
    font-size: 1rem;
    font-weight: 800;
}

.sysbar-workspace__assistant-form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.sysbar-workspace__assistant-form input {
    flex: 1;
    min-width: 0;
    min-height: 2.7rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #b9cede;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #18324a;
    font-size: 0.86rem;
    font-weight: 600;
    outline: none;
}

.sysbar-workspace__assistant-form input:focus {
    border-color: #0a6ed1;
    box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.12);
}

.sysbar-workspace__assistant-form button,
.sysbar-workspace__assistant-answer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid #0854a0;
    border-radius: 0.45rem;
    background: linear-gradient(135deg, #0a6ed1 0%, #0854a0 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.sysbar-workspace__assistant-bubbles {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sysbar-workspace__assistant-bubble {
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #c4d7e7;
    border-radius: 999px;
    background: #ffffff;
    color: #31516c;
    font-size: 0.78rem;
    font-weight: 800;
}

.sysbar-workspace__assistant-bubble:hover {
    border-color: #98b8d4;
    background: #eef6fc;
}

.sysbar-workspace__assistant-answer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid #c4d7e7;
    border-radius: 0.5rem;
    background: #f7fbff;
}

.sysbar-workspace__assistant-answer span {
    color: #58728a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sysbar-workspace__assistant-answer p {
    margin: 0;
    color: #27435c;
    font-size: 0.82rem;
    font-weight: 600;
}

.sysbar-workspace__actions-grid,
.sysbar-workspace__guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.sysbar-workspace__action,
.sysbar-workspace__guide-card,
.sysbar-workspace__lane,
.sysbar-workspace__metric,
.sysbar-workspace__task {
    border: 1px solid #c5d5e3;
    border-radius: 0.48rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.sysbar-workspace__action {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-height: 8.4rem;
    padding: 0.9rem 0.95rem;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sysbar-workspace__action:hover {
    transform: translateY(-1px);
    border-color: #98b8d4;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.sysbar-workspace__action--blue {
    box-shadow: inset 0 3px 0 #0a6ed1;
}

.sysbar-workspace__action--amber {
    box-shadow: inset 0 3px 0 #d97706;
}

.sysbar-workspace__action--green {
    box-shadow: inset 0 3px 0 #107e3e;
}

.sysbar-workspace__action--slate {
    box-shadow: inset 0 3px 0 #576b80;
}

.sysbar-workspace__metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
}

.sysbar-workspace__metric {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-height: 7.4rem;
    padding: 0.85rem 0.95rem;
}

.sysbar-workspace__metric span,
.sysbar-workspace__metric small {
    color: #61798f;
}

.sysbar-workspace__metric span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sysbar-workspace__metric strong {
    font-size: 1.8rem;
    font-weight: 800;
}

.sysbar-workspace__metric small {
    font-size: 0.79rem;
    line-height: 1.45;
}

.sysbar-workspace__metric--amber {
    box-shadow: inset 0 3px 0 #d97706;
}

.sysbar-workspace__metric--blue {
    box-shadow: inset 0 3px 0 #0a6ed1;
}

.sysbar-workspace__metric--green {
    box-shadow: inset 0 3px 0 #107e3e;
}

.sysbar-workspace__metric--slate {
    box-shadow: inset 0 3px 0 #4b5f74;
}

.sysbar-workspace__metric--soft-green {
    box-shadow: inset 0 3px 0 #52a36a;
}

.sysbar-workspace__metric--soft-red {
    box-shadow: inset 0 3px 0 #b42318;
}

.sysbar-workspace__board-scroll {
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.sysbar-workspace__board-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(21rem, 21rem);
    gap: 0.85rem;
    min-width: max-content;
}

.sysbar-workspace__lane {
    display: flex;
    flex-direction: column;
    min-height: 22rem;
    overflow: hidden;
}

.sysbar-workspace__lane-header {
    padding: 0.85rem 0.9rem 0.78rem;
    border-bottom: 1px solid #d7e4ef;
    background: linear-gradient(180deg, #eef4f8 0%, #e6eef4 100%);
}

.sysbar-workspace__lane--amber {
    box-shadow: inset 0 3px 0 #d97706;
}

.sysbar-workspace__lane--blue {
    box-shadow: inset 0 3px 0 #0a6ed1;
}

.sysbar-workspace__lane--green {
    box-shadow: inset 0 3px 0 #107e3e;
}

.sysbar-workspace__lane-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem;
}

.sysbar-workspace__task {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.8rem 0.85rem 0.85rem;
}

.sysbar-workspace__task--solicitado,
.sysbar-workspace__task--borrador {
    border-color: #e9c891;
}

.sysbar-workspace__task--recibido,
.sysbar-workspace__task--devuelto {
    border-color: #9dc4ea;
}

.sysbar-workspace__task--enproceso {
    border-color: #a7d2b3;
}

.sysbar-workspace__task-head,
.sysbar-workspace__task-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sysbar-workspace__task-head h5 {
    font-size: 0.95rem;
    font-weight: 800;
}

.sysbar-workspace__task-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid #c1d2e0;
    border-radius: 999px;
    color: #49627b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sysbar-workspace__task-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    color: #678095;
    font-size: 0.73rem;
    font-weight: 700;
}

.sysbar-workspace__task-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sysbar-workspace__task-link {
    align-self: flex-start;
    color: #0a6ed1;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.sysbar-workspace__task-link:hover {
    text-decoration: underline;
}

.sysbar-workspace__lane-empty {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.9rem;
    border: 1px dashed #bfd0df;
    border-radius: 0.45rem;
    background: #f7fafc;
}

.sysbar-workspace__lane-empty strong {
    color: #27435c;
    font-size: 0.84rem;
}

.sysbar-workspace__guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 11rem;
    padding: 0.9rem 0.95rem;
}

.sysbar-workspace__guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sysbar-workspace__guide-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.08rem 0.5rem;
    border: 1px solid #c7d8e5;
    border-radius: 999px;
    background: #eef4f8;
    color: #4f677d;
    font-size: 0.69rem;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .sysbar-workspace__hero,
    .sysbar-workspace__actions-grid,
    .sysbar-workspace__guide-grid,
    .sysbar-workspace__metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sysbar-workspace__hero-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sysbar-workspace__hero,
    .sysbar-workspace__actions-grid,
    .sysbar-workspace__guide-grid,
    .sysbar-workspace__metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Kanban funcional - max height y scroll */
.sysbar-workspace__lane-body {
    max-height: calc(70vh - 8rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.sysbar-workspace__lane-body::-webkit-scrollbar {
    width: 6px;
}

.sysbar-workspace__lane-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sysbar-workspace__lane-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sysbar-workspace__lane-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Botón gestionar tareas */
.sysbar-workspace__manage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #0a6ed1 0%, #0854a0 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.4rem;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(10, 110, 209, 0.25);
}

.sysbar-workspace__manage-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 110, 209, 0.35);
    color: #ffffff;
}

@media (min-width: 1024px) {
    .sysbar-workspace {
        gap: 0.75rem;
    }

    .sysbar-workspace__board-section,
    .sysbar-workspace__assistant,
    .sysbar-workspace__guide-section {
        padding: 0.85rem 0.9rem 0.95rem;
    }

    .sysbar-workspace__metrics-grid {
        gap: 0.7rem;
    }

    .sysbar-workspace__metric {
        min-height: 6.55rem;
        padding: 0.7rem 0.8rem 0.78rem;
    }

    .sysbar-workspace__metric strong {
        font-size: 1.65rem;
        line-height: 1;
    }

    .sysbar-workspace__metric small {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .sysbar-workspace__section-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.9rem;
        margin-bottom: 0.45rem;
    }

    .sysbar-workspace__section-header > div:first-child {
        min-width: 0;
        max-width: 72rem;
    }

    .sysbar-workspace__section-header h3 {
        font-size: 1rem;
        line-height: 1.25;
    }

    .sysbar-workspace__section-header p {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .sysbar-workspace__assistant-panel {
        grid-template-columns: minmax(15rem, 0.8fr) minmax(18rem, 1.2fr);
    }

    .sysbar-workspace__manage-btn {
        flex-shrink: 0;
        min-height: 2.9rem;
        padding: 0.55rem 1rem;
    }

    .sysbar-workspace__board-scroll {
        padding-bottom: 0.15rem;
    }

    .sysbar-workspace__board-grid {
        grid-auto-columns: minmax(19rem, 19rem);
        gap: 0.75rem;
    }

    .sysbar-workspace__lane {
        min-height: 20.25rem;
    }

    .sysbar-workspace__lane-header {
        padding: 0.72rem 0.82rem 0.68rem;
    }

    .sysbar-workspace__lane-header h4 {
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .sysbar-workspace__lane-header p {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .sysbar-workspace__lane-body {
        gap: 0.6rem;
        padding: 0.72rem;
        max-height: calc(70vh - 9.5rem);
    }

    .sysbar-workspace__task {
        gap: 0.45rem;
        padding: 0.72rem 0.78rem 0.76rem;
    }

    .sysbar-workspace__task-head,
    .sysbar-workspace__task-meta {
        gap: 0.6rem;
    }

    .sysbar-workspace__task-head h5 {
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .sysbar-workspace__task-meta {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .sysbar-workspace__task-body p,
    .sysbar-workspace__lane-empty span {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .sysbar-workspace__task-link {
        font-size: 0.74rem;
    }

    .sysbar-workspace__lane-empty {
        padding: 0.78rem;
    }
}

@media (max-width: 900px) {
    .sysbar-workspace__assistant-panel,
    .sysbar-workspace__assistant-answer {
        grid-template-columns: 1fr;
    }

    .sysbar-workspace__assistant-form {
        flex-direction: column;
        align-items: stretch;
    }

    .sysbar-workspace__assistant-form button,
    .sysbar-workspace__assistant-answer a {
        width: 100%;
    }
}

/* Drag and drop estilos */
.sysbar-workspace__task--dragging {
    opacity: 0.7;
    transform: rotate(2deg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.sysbar-workspace__lane-body--drag-over {
    background: #f0f9ff;
    border: 2px dashed #0a6ed1;
}

/* Prioridades en tareas */
.sysbar-workspace__task-status--baja {
    background: #f1f5f9;
    color: #64748b;
}

.sysbar-workspace__task-status--media {
    background: #e0f2fe;
    color: #0369a1;
}

.sysbar-workspace__task-status--alta {
    background: #fef3c7;
    color: #b45309;
}

.sysbar-workspace__task-status--urgente {
    background: #fee2e2;
    color: #b91c1c;
}

/* Completados - soft green lane */
.sysbar-workspace__lane--soft-green {
    box-shadow: inset 0 3px 0 #52a36a;
}

.sysbar-workspace__section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.sysbar-module-pane__frame {
    display: block;
    width: 100%;
    min-height: calc(100dvh - 5.3rem);
    border: 0;
    background: #f5f7f9;
}

.sysbar-module-pane__frame[hidden] {
    display: none;
}

.sysbar-module-pane__loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: auto;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #d5e5f2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 243, 248, 0.96) 100%);
    color: #50667d;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: none;
}

.sysbar-module-pane__loading-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: #0a6ed1;
    animation: sysbarPulse 1s ease-in-out infinite;
}

html.sysbar-module-embedded-preload .fi-topbar-ctn,
html.sysbar-module-embedded-preload .fi-sidebar,
html.sysbar-module-embedded-preload .fi-main-sidebar,
html.sysbar-module-embedded-preload .fi-sidebar-header-ctn,
html.sysbar-module-embedded-preload [data-sysbar-module-tabs-root] {
    display: none !important;
}

html.sysbar-module-embedded-preload .fi-main-ctn,
body.sysbar-module-embedded-preload .fi-main-ctn {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    padding-top: 0 !important;
    margin: 0 !important;
}

html.sysbar-module-embedded-preload .fi-main,
body.sysbar-module-embedded-preload .fi-main {
    max-width: none !important;
    padding-inline: 0.85rem !important;
    padding-bottom: 0 !important;
}

html.sysbar-module-embedded-preload .fi-page,
body.sysbar-module-embedded-preload .fi-page {
    padding-top: 0.85rem;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

html.sysbar-module-embedded .fi-topbar-ctn,
html.sysbar-module-embedded .fi-sidebar,
html.sysbar-module-embedded .fi-main-sidebar,
html.sysbar-module-embedded .fi-sidebar-header-ctn,
html.sysbar-module-embedded [data-sysbar-module-tabs-root] {
    display: none !important;
}

html.sysbar-module-embedded .fi-main-ctn,
body.sysbar-module-embedded .fi-main-ctn {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    padding-top: 0 !important;
    margin: 0 !important;
}

html.sysbar-module-embedded .fi-main,
body.sysbar-module-embedded .fi-main {
    max-width: none !important;
    padding-inline: 0.85rem !important;
    padding-bottom: 0 !important;
}

html.sysbar-module-embedded .fi-page,
body.sysbar-module-embedded .fi-page {
    padding-top: 0.85rem;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

html.sysbar-module-embedded-preload [class*='lw-'][class*='-global-search'].field,
body.sysbar-module-embedded-preload [class*='lw-'][class*='-global-search'].field,
html.sysbar-module-embedded [class*='lw-'][class*='-global-search'].field,
body.sysbar-module-embedded [class*='lw-'][class*='-global-search'].field {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

html.sysbar-module-embedded-preload [wire\:name='Filament\\Livewire\\Sidebar'],
body.sysbar-module-embedded-preload [wire\:name='Filament\\Livewire\\Sidebar'],
html.sysbar-module-embedded [wire\:name='Filament\\Livewire\\Sidebar'],
body.sysbar-module-embedded [wire\:name='Filament\\Livewire\\Sidebar'],
html.sysbar-module-embedded-preload div[wire\:id]:has(> aside.fi-sidebar),
body.sysbar-module-embedded-preload div[wire\:id]:has(> aside.fi-sidebar),
html.sysbar-module-embedded div[wire\:id]:has(> aside.fi-sidebar),
body.sysbar-module-embedded div[wire\:id]:has(> aside.fi-sidebar) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.prestamo-process-sap {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #c8d8e6;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #fbfcfd 0%, #f1f5f8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 26px rgba(19, 43, 67, 0.05);
}

.prestamo-process-sap--empty {
    padding: 0.95rem 1rem;
    color: #5b738b;
    font-size: 0.86rem;
}

.prestamo-process-sap__hero,
.prestamo-process-sap__note-card,
.prestamo-process-sap__diagram-card,
.prestamo-process-sap__fact-card {
    border: 1px solid #bccfdf;
    border-radius: 0.45rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.prestamo-process-sap__hero {
    padding: 0.85rem 1rem 0.95rem;
}

.prestamo-process-sap__eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.prestamo-process-sap__eyebrow,
.prestamo-process-sap__record {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.1rem 0.55rem;
    border: 1px solid #bfd1e0;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prestamo-process-sap__eyebrow {
    background: #edf4f9;
    color: #43627d;
}

.prestamo-process-sap__record {
    background: #edf8ef;
    border-color: #b9d9c0;
    color: #2b6a39;
}

.prestamo-process-sap__title {
    margin: 0;
    color: #16324a;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.prestamo-process-sap__summary {
    margin: 0.35rem 0 0;
    color: #4d6479;
    font-size: 0.86rem;
    line-height: 1.58;
}

.prestamo-process-sap__facts {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prestamo-process-sap__fact-card {
    padding: 0.75rem 0.85rem 0.85rem;
}

.prestamo-process-sap__fact-label,
.prestamo-process-sap__note-label {
    margin-bottom: 0.35rem;
    color: #58718a;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prestamo-process-sap__fact-value,
.prestamo-process-sap__note-value {
    color: #223548;
    font-size: 0.84rem;
    line-height: 1.55;
}

.prestamo-process-sap__note-card {
    padding: 0.75rem 0.85rem 0.85rem;
    background: linear-gradient(180deg, #fdfefe 0%, #f2f7fb 100%);
}

.prestamo-process-sap__diagram-card {
    overflow: hidden;
}

.prestamo-process-sap__diagram-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem 0.72rem;
    border-bottom: 1px solid #d6e4f0;
    background: linear-gradient(180deg, #edf4f8 0%, #e6eef5 100%);
}

.prestamo-process-sap__zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 4px 11px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 2px;
}

.prestamo-process-sap__zoom-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.prestamo-process-sap__diagram-title {
    color: #17324a;
    font-size: 0.86rem;
    font-weight: 800;
}

.prestamo-process-sap__diagram-copy {
    margin: 0.25rem 0 0;
    color: #60788f;
    font-size: 0.78rem;
    line-height: 1.45;
}

.prestamo-process-sap__diagram-frame {
    padding: 0.95rem;
    overflow-x: auto;
    background: linear-gradient(180deg, #fdfefe 0%, #f7fafc 100%);
}

.prestamo-process-sap__diagram-frame svg {
    min-width: 680px;
}

@media (max-width: 960px) {
    .prestamo-process-sap__facts {
        grid-template-columns: 1fr;
    }
}

.fi-resource-producto-cargas .fi-ta-filters-above-content {
    padding: 0.9rem 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%);
}

.fi-resource-producto-cargas .fi-ta-filters-above-content form {
    width: 100%;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content .grid {
    align-items: end;
    column-gap: 1rem;
    row-gap: 0.75rem;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-fo-field-wrp {
    margin-bottom: 0;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label {
    color: #334155 !important;
    font-size: 0.79rem !important;
    font-weight: 700 !important;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input-wrp,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-select-input,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-fo-field-wrp > div {
    background: #ffffff;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input-wrp,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-select-input {
    width: 100%;
    min-width: 12rem;
    border-radius: 0.85rem;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-fo-field-wrp > div,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-fo-field-wrp .fi-input-wrp,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-fo-field-wrp .fi-select-input {
    width: 100%;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input-wrp-content-ctn {
    display: flex;
    align-items: center;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn select,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .choices__inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input-wrp-prefix,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input-wrp-suffix,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-select-input svg,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .choices[data-type*='select-one']::after {
    align-self: center;
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input-wrp:focus-within,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-select-input:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgb(148 163 184 / 0.16);
}

.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input-wrp-prefix,
.fi-resource-producto-cargas .fi-ta-filters-above-content-ctn .fi-input-wrp-suffix {
    color: #64748b;
}

.fi-resource-producto-cargas .fi-dropdown-panel .fi-select-input-option {
    transition: background-color 120ms ease, color 120ms ease;
}

.fi-resource-producto-cargas .fi-dropdown-panel .fi-select-input-option:hover,
.fi-resource-producto-cargas .fi-dropdown-panel .fi-select-input-option:focus,
.fi-resource-producto-cargas .fi-dropdown-panel .fi-select-input-option:focus-visible {
    background: #f8fafc;
    color: #0f172a;
}

.fi-resource-producto-cargas .fi-dropdown-panel .fi-select-input-option.fi-selected {
    background: #eef2ff;
    color: #1e3a8a;
}

.fi-resource-producto-cargas .fi-dropdown-panel .fi-select-input-option.fi-selected:hover,
.fi-resource-producto-cargas .fi-dropdown-panel .fi-select-input-option.fi-selected:focus,
.fi-resource-producto-cargas .fi-dropdown-panel .fi-select-input-option.fi-selected:focus-visible {
    background: #e0e7ff;
}

.fi-resource-producto-cargas .fi-ta-header-toolbar {
    justify-content: flex-start;
    padding-block: 16px;
}

.fi-resource-producto-cargas .fi-ta-header-toolbar > div:last-child {
    margin-left: 0 !important;
}

.fi-resource-producto-cargas .importacion-secciones-action--bartrading {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.fi-resource-producto-cargas .importacion-secciones-action--erba {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.fi-resource-producto-cargas .importacion-secciones-action--todos {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.fi-resource-producto-cargas .importacion-secciones-action--importar {
    border-color: #facc15;
    background: #fef3c7;
    color: #a16207;
}

.fi-resource-producto-cargas .importacion-secciones-action--list {
    border-color: #40566b;
    background: #354a5f;
    color: #ffffff !important;
}

.fi-resource-producto-cargas .importacion-secciones-action--new {
    border-color: #0a6ed1;
    background: #0a6ed1;
    color: #ffffff !important;
}

.fi-resource-producto-cargas .section-import-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fi-resource-producto-cargas .section-import-card {
    border: 1px solid #d7e2eb;
    border-radius: 0;
    background: #ffffff;
    padding: 1rem;
}

.fi-resource-producto-cargas .section-import-card--closed {
    border-color: #d7dee5;
}

.fi-resource-producto-cargas .section-import-card--open {
    border-color: #c7dbef;
}

.fi-resource-producto-cargas .section-import-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.fi-resource-producto-cargas .section-import-card__code {
    color: #17324b;
    font-size: 1rem;
    font-weight: 900;
}

.fi-resource-producto-cargas .section-import-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    margin-top: 0.4rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid #d7e2eb;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-import-card__status.is-open {
    border-color: #c7e2ce;
    background: #eef6ef;
    color: #1d6d2c;
}

.fi-resource-producto-cargas .section-import-card__status.is-closed {
    border-color: #ead7b0;
    background: #fbf2d9;
    color: #9a6700;
}

.fi-resource-producto-cargas .section-import-card__grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0.95rem;
}

.fi-resource-producto-cargas .section-import-card__grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border: 1px solid #d7e2eb;
    border-radius: 0;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-import-card__grid span {
    color: #5f768b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fi-resource-producto-cargas .section-import-card__grid strong {
    color: #17324b;
    font-size: 1.05rem;
    font-weight: 900;
}

.fi-resource-producto-cargas .section-import-card__grid small {
    color: #64748b;
    font-size: 0.78rem;
}

.fi-resource-producto-cargas .section-import-pagination nav {
    margin-top: 0.35rem;
}

/* Eyebrow row with inline pill */
.fi-resource-producto-cargas .section-sheet-hero__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.fi-resource-producto-cargas .section-sheet-hero__eyebrow-row .section-sheet-meta-pill {
    margin-top: 0;
}

/* Panel compacto */
.fi-resource-producto-cargas .section-sheet-panel--compact {
    padding: 0.75rem;
}

.fi-resource-producto-cargas .section-sheet-panel__header--compact {
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.fi-resource-producto-cargas .section-sheet-panel__header--compact h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0.2rem 0 0;
}

/* Tabla de importaciones estilo SAP */
.fi-resource-producto-cargas .section-import-table-wrap {
    overflow-x: auto;
    border: 1px solid #d0dce7;
    background: #ffffff;
}

.fi-resource-producto-cargas .section-import-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.fi-resource-producto-cargas .section-import-table thead th {
    padding: 0.55rem 0.75rem;
    background: #f5f7f9;
    border-bottom: 1px solid #d0dce7;
    font-size: 0.65rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    white-space: nowrap;
}

.fi-resource-producto-cargas .section-import-table tbody td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e8eef3;
    vertical-align: middle;
}

.fi-resource-producto-cargas .section-import-table tbody tr:last-child td {
    border-bottom: none;
}

.fi-resource-producto-cargas .section-import-table tbody tr:hover {
    background: #f8fafc;
}

.fi-resource-producto-cargas .section-import-table__code {
    font-family: "SF Mono", "Consolas", monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.fi-resource-producto-cargas .section-import-table__date {
    font-size: 0.76rem;
    color: #334155;
    white-space: nowrap;
}

.fi-resource-producto-cargas .section-import-table__number {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
}

.fi-resource-producto-cargas .section-import-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.fi-resource-producto-cargas .section-import-status-pill--open {
    background: #eef6ef;
    color: #1d6d2c;
    border: 1px solid #c7e2ce;
}

.fi-resource-producto-cargas .section-import-status-pill--closed {
    background: #fbf2d9;
    color: #9a6700;
    border: 1px solid #ead7b0;
}

.fi-resource-producto-cargas .section-import-table__actions-col {
    text-align: right;
    width: 100px;
}

.fi-resource-producto-cargas .section-import-table__actions {
    text-align: right;
}

.fi-resource-producto-cargas .section-import-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.9rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #0a6ed1;
    background: #0a6ed1;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.fi-resource-producto-cargas .section-import-action-btn:hover {
    background: #0854a1;
    border-color: #0854a1;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(10, 110, 209, 0.25);
}

.fi-resource-producto-cargas .section-import-table__empty {
    padding: 1.5rem;
    text-align: center;
}

.fi-resource-producto-cargas .section-import-table tr.is-closed td {
    color: #64748b;
}

.fi-resource-producto-cargas .section-import-table tr.is-open td {
    color: #0f172a;
}

@media (max-width: 1024px) {
    .fi-resource-producto-cargas .section-sheet-kpi-grid,
    .fi-resource-producto-cargas .section-sheet-process-grid,
    .fi-resource-producto-cargas .section-import-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .fi-resource-producto-cargas .section-sheet-actions {
        grid-template-columns: 1fr;
    }

    .fi-resource-producto-cargas .section-sheet-result__top,
    .fi-resource-producto-cargas .section-sheet-preview-item__head,
    .fi-resource-producto-cargas .section-import-card__head,
    .fi-resource-producto-cargas .section-sheet-modal__header {
        flex-direction: column;
    }

    .fi-resource-producto-cargas .section-sheet-modal__form-grid,
    .fi-resource-producto-cargas .section-sheet-kpi-grid,
    .fi-resource-producto-cargas .section-sheet-process-grid,
    .fi-resource-producto-cargas .section-import-card__grid {
        grid-template-columns: 1fr;
    }

    .sysbar-product-modal__pagination nav > div:first-child {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        flex: 1 1 auto;
    }

    .sysbar-product-modal__pagination nav > div:last-child {
        display: none;
    }
}

.fi-ta-header-toolbar {
    justify-content: flex-start;
    padding: 10px 5px;
}

.fi-ta-header-toolbar > div:last-child {
    margin-left: 0 !important;
}

.fi-ta-header-toolbar .fi-ta-search-field {
    margin-left: 0 !important;
}

.fi-resource-producto-cargas .fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp {
    border-radius: 0.85rem;
}

.fi-resource-producto-cargas .fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp-content-ctn {
    min-height: 36px;
    border-radius: 0.85rem;
}

.fi-resource-producto-cargas .fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgb(148 163 184 / 0.16);
}

.fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp {
    justify-content: flex-start !important;
}

html.sysbar-module-embedded .fi-ta-header-toolbar,
body.sysbar-module-embedded .fi-ta-header-toolbar,
html.sysbar-module-embedded-preload .fi-ta-header-toolbar,
body.sysbar-module-embedded-preload .fi-ta-header-toolbar {
    padding-left: 0 !important;
}

html.sysbar-module-embedded .fi-ta-header-toolbar .fi-ta-search-field,
body.sysbar-module-embedded .fi-ta-header-toolbar .fi-ta-search-field,
html.sysbar-module-embedded-preload .fi-ta-header-toolbar .fi-ta-search-field,
body.sysbar-module-embedded-preload .fi-ta-header-toolbar .fi-ta-search-field {
    margin-left: -0.35rem !important;
}

.validacion-importaciones-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.validacion-importaciones-summary {
    align-items: stretch;
}

.validacion-importaciones-table-shell {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 4.75rem);
    box-shadow: 0 20px 45px -34px rgba(15, 23, 42, 0.4);
}

.validacion-importaciones-page .fi-ta {
    border: 0;
    background: transparent;
}

.validacion-importaciones-page .fi-ta-ctn {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.validacion-importaciones-page .fi-ta-header-ctn {
    padding: 1.15rem 1.25rem 0.35rem;
}

.validacion-importaciones-page .fi-ta-header-toolbar {
    align-items: center;
    gap: 1rem;
}

.validacion-importaciones-page .fi-ta-header-toolbar .fi-ta-search-field {
    min-width: min(100%, 22rem);
}

.validacion-importaciones-page .fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp {
    min-height: 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.28);
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.validacion-importaciones-page .fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16), 0 18px 32px -26px rgba(14, 116, 144, 0.42);
    transform: translateY(-1px);
}

.validacion-importaciones-page .fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp-content-ctn {
    min-height: 3rem;
}

.validacion-importaciones-page .fi-ta-header-toolbar .fi-ta-search-field input {
    font-weight: 700;
    color: #0f172a;
}

.validacion-importaciones-page .fi-ta-header-toolbar .fi-ta-search-field input::placeholder {
    color: #94a3b8;
}

.validacion-importaciones-page .fi-ta-content-ctn {
    padding: 0 0.9rem 0.75rem;
}

.validacion-importaciones-page .fi-ta-table {
    border-collapse: separate;
    border-spacing: 0 0.7rem;
}

.validacion-importaciones-page .fi-ta-table thead th {
    padding-top: 0.35rem;
    padding-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 0;
}

.validacion-importaciones-page .fi-ta-row {
    background: #ffffff;
    box-shadow: 0 18px 36px -34px rgba(15, 23, 42, 0.45);
}

.validacion-importaciones-page .fi-ta-row td {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: middle;
}

.validacion-importaciones-page .fi-ta-row td:first-child {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.validacion-importaciones-page .fi-ta-row td:last-child {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.validacion-importaciones-page .fi-ta-row:hover td {
    background: #f8fbff;
}

.validacion-importaciones-page .fi-ta-text-description {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.validacion-importaciones-page .fi-badge {
    border-radius: 999px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.validacion-importaciones-page .fi-ta-actions {
    justify-content: flex-end;
    gap: 0.55rem;
}

.validacion-importaciones-page .fi-ta-actions .fi-link,
.validacion-importaciones-page .fi-ta-actions .fi-ac-link-action,
.validacion-importaciones-page .fi-ta-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #d6dee8;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 22px -24px rgba(15, 23, 42, 0.45);
}

.validacion-importaciones-page .fi-ta-actions .fi-color-primary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.validacion-importaciones-page .fi-ta-actions .fi-link:hover,
.validacion-importaciones-page .fi-ta-actions .fi-ac-link-action:hover,
.validacion-importaciones-page .fi-ta-actions button:hover {
    transform: translateY(-1px);
    border-color: #94a3b8;
    background: #f8fafc;
}

.validacion-importaciones-page .fi-pagination {
    padding: 0.35rem 1.25rem 1.15rem;
}

.validacion-importaciones-page .fi-pagination-overview {
    color: #64748b;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .fi-resource-producto-cargas .importar-productos-grid {
        grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
        align-items: start;
    }

    .fi-resource-producto-cargas .importar-productos-meta-row {
        grid-template-columns: minmax(0, 14rem);
    }

    .fi-resource-producto-cargas .fi-ta-header-ctn {
        grid-template-columns: minmax(30rem, 36rem) minmax(20rem, 1fr);
        align-items: end;
    }

    .fi-resource-producto-cargas .fi-ta-header,
    .fi-resource-producto-cargas .fi-ta-filters-above-content-ctn,
    .fi-resource-producto-cargas .fi-ta-header-toolbar {
        min-width: 0;
    }

    .fi-resource-producto-cargas .fi-ta-header {
        grid-column: 1 / -1;
    }

    .fi-resource-producto-cargas .fi-ta-filters-above-content-ctn {
        grid-column: 1;
        align-self: stretch;
    }

    .fi-resource-producto-cargas .fi-ta-header-toolbar {
        grid-column: 2;
        align-self: end;
    }

    .fi-resource-producto-cargas .fi-ta-filters-above-content {
        padding: 1rem 1.1rem;
    }

    .fi-resource-producto-cargas .fi-ta-filters-above-content .grid {
        grid-template-columns: repeat(2, minmax(14rem, 1fr)) !important;
    }

    .fi-resource-producto-cargas .fi-ta-header-toolbar .fi-ta-search-field {
        min-width: 18rem;
    }

    .validacion-importaciones-page .fi-ta-header-ctn {
        grid-template-columns: minmax(20rem, 24rem) minmax(0, 1fr);
        align-items: center;
    }
}

@media (max-width: 768px) {
    .fi-resource-producto-cargas .importar-productos-hero,
    .fi-resource-producto-cargas .importar-productos-context-card,
    .fi-resource-producto-cargas .importar-productos-upload-card {
        padding: 1rem;
    }

    .fi-resource-producto-cargas .importar-productos-dropzone {
        align-items: flex-start;
    }

    .fi-resource-producto-cargas .importar-productos-actions,
    .fi-resource-producto-cargas .importar-productos-submit {
        width: 100%;
    }

    .fi-resource-producto-cargas .fi-ta-actions {
        flex-wrap: wrap;
    }

    .fi-resource-producto-cargas .importacion-secciones-action {
        width: 100%;
        min-width: 0;
    }

    .validacion-importaciones-page .fi-ta-content-ctn {
        padding-inline: 0;
    }

    .validacion-importaciones-page .fi-ta-table {
        border-spacing: 0;
    }

    .validacion-importaciones-page .fi-ta-row {
        box-shadow: none;
    }

    .validacion-importaciones-page .fi-ta-row td,
    .validacion-importaciones-page .fi-ta-row td:first-child,
    .validacion-importaciones-page .fi-ta-row td:last-child {
        border-radius: 0;
        border-left-width: 0;
        border-right-width: 0;
    }
}
/* ===========================================================
   Celda fecha/hora apilada reutilizable (tablas Filament)
   =========================================================== */
.sysbar-cell-datetime {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    row-gap: 0.25rem;
}

.sysbar-cell-datetime__date {
    font-weight: 700;
}

.sysbar-cell-datetime__time {
    font-size: 0.78rem;
    color: #4e6278;
}

/* Hereda color cuando va dentro de un span de estado (anulado, etc.) */
span.text-gray-400 > .sysbar-cell-datetime .sysbar-cell-datetime__time,
span.text-gray-400 > .sysbar-cell-datetime .sysbar-cell-datetime__date {
    color: inherit;
}

.sysbar-cell-payment-status {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.08rem;
    line-height: 1.05;
}

.sysbar-cell-payment-status__label {
    font-weight: 600;
}

.sysbar-cell-payment-status__detail {
    font-size: 0.72rem;
    line-height: 1.05;
    white-space: nowrap;
}

.sysbar-cell-payment-status--warning {
    color: #d97706;
}

.sysbar-cell-payment-status--info {
    color: #2563eb;
}

.sysbar-cell-payment-status--success {
    color: #059669;
}

/* ============================================================================
   SYSBAR STOCK PANEL - Diseño SAP consistente
   Panel de distribución de stock para productos
   ============================================================================ */

.sysbar-stock-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    border: 1px solid #d4e0ea;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 4px 12px rgba(24, 52, 77, 0.06);
}

.sysbar-stock-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #e1eaf2;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.sysbar-stock-panel__title {
    color: #294965;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sysbar-stock-panel__product-id {
    color: #6b8aab;
    font-size: 0.72rem;
    font-weight: 600;
}

.sysbar-stock-panel__locations {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0 0.75rem;
}

.sysbar-stock-panel__location {
    border: 1px solid #e1eaf2;
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
}

.sysbar-stock-panel__location-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #e1eaf2;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.sysbar-stock-panel__location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: #0a6ed1;
}

.sysbar-stock-panel__location-name {
    color: #294965;
    font-size: 0.8rem;
    font-weight: 700;
}

.sysbar-stock-panel__sections {
    display: flex;
    flex-direction: column;
}

.sysbar-stock-panel__section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid rgba(225, 234, 242, 0.6);
    transition: background-color 0.15s ease;
}

.sysbar-stock-panel__section:hover {
    background: rgba(220, 236, 248, 0.35);
}

.sysbar-stock-panel__section:last-child {
    border-bottom: none;
}

.sysbar-stock-panel__section-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sysbar-stock-panel__section-name {
    color: #294965;
    font-size: 0.78rem;
    font-weight: 600;
}

.sysbar-stock-panel__section-name--empty {
    color: #8ba3c4;
    font-style: italic;
}

.sysbar-stock-panel__section-sucursal {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    background: rgba(10, 110, 209, 0.08);
    color: #0a6ed1;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sysbar-stock-panel__section-qty {
    color: #107e3e;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: right;
}

.sysbar-stock-panel__location-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    border-top: 1px solid #e1eaf2;
    background: rgba(247, 249, 251, 0.5);
}

.sysbar-stock-panel__location-total-label {
    color: #6b8aab;
    font-size: 0.72rem;
    font-weight: 600;
}

.sysbar-stock-panel__location-total-value {
    color: #294965;
    font-size: 0.8rem;
    font-weight: 800;
}

.sysbar-stock-panel__footer {
    padding: 0.75rem;
    border-top: 1px solid #e1eaf2;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.sysbar-stock-panel__grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border: 1px solid #0a6ed1;
    border-radius: 0;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
}

.sysbar-stock-panel__grand-total-label {
    color: #294965;
    font-size: 0.78rem;
    font-weight: 700;
}

.sysbar-stock-panel__grand-total-value {
    color: #0a6ed1;
    font-size: 1rem;
    font-weight: 800;
}

/* Estados vacíos y placeholder */
.sysbar-stock-panel__empty,
.sysbar-stock-panel__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.sysbar-stock-panel__empty-icon,
.sysbar-stock-panel__placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 0;
    background: rgba(10, 110, 209, 0.06);
    color: #8ba3c4;
}

.sysbar-stock-panel__placeholder-icon {
    background: rgba(10, 110, 209, 0.08);
    color: #0a6ed1;
}

.sysbar-stock-panel__empty-text,
.sysbar-stock-panel__placeholder-text {
    margin: 0 0 0.25rem;
    color: #294965;
    font-size: 0.9rem;
    font-weight: 700;
}

.sysbar-stock-panel__empty-hint,
.sysbar-stock-panel__placeholder-hint {
    margin: 0;
    color: #6b8aab;
    font-size: 0.75rem;
    max-width: 16rem;
}

/* Modo SAP (cuando se usa en contexto SAP) */
html.sap-requerimientos-mode .sysbar-stock-panel {
    border-color: #cfdbe6;
    box-shadow: 0 4px 14px rgba(24, 52, 77, 0.08);
}

html.sap-requerimientos-mode .sysbar-stock-panel__header {
    padding: 0.72rem 0.85rem;
    border-bottom-color: #d6e1ea;
}

html.sap-requerimientos-mode .sysbar-stock-panel__location {
    border-color: #d6e1ea;
}

html.sap-requerimientos-mode .sysbar-stock-panel__location-header {
    padding: 0.52rem 0.68rem;
}

html.sap-requerimientos-mode .sysbar-stock-panel__section {
    padding: 0.52rem 0.68rem;
}

html.sap-requerimientos-mode .sysbar-stock-panel__grand-total {
    border-width: 1.5px;
}

/* ============================================================================
   SYSBAR STOCK CELL - Diseño SAP consistente
   Celda de stock para tablas de consulta de productos
   ============================================================================ */

.sysbar-stock-cell {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.sysbar-stock-cell__main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
    padding: 2px 0;
}

.sysbar-stock-cell__value {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.sysbar-stock-cell__value--positive {
    color: #107e3e;
}

.sysbar-stock-cell__value--zero {
    color: #64748b;
}

.sysbar-stock-cell__value--negative,
.sysbar-stock-cell__td--negative,
.sysbar-stock-cell__panel-total-value--negative {
    color: #dc2626 !important;
    font-weight: 800 !important;
}

.sysbar-stock-cell__value--annulled {
    color: #94a3b8;
    text-decoration: line-through;
}

.sysbar-stock-cell__popover-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sysbar-stock-cell__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #0a6ed1;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.sysbar-stock-cell__trigger:hover {
    color: #0854a0;
}

.sysbar-stock-cell__panel {
    position: fixed;
    z-index: 80;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d4e0ea;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    transform-origin: var(--stock-detail-origin, top) right;
}

.sysbar-stock-cell__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.62rem 0.78rem;
    border-bottom: 1px solid #d6e1ea;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.sysbar-stock-cell__panel-title {
    color: #294965;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sysbar-stock-cell__panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sysbar-stock-cell__panel-close:hover {
    background: rgba(191, 214, 232, 0.38);
    color: #294965;
}

.sysbar-stock-cell__panel-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 0.5rem 0;
}

.sysbar-stock-cell__panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.78rem;
    border-top: 1px solid #d6e1ea;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.sysbar-stock-cell__panel-total-label {
    color: #6b8aab;
    font-size: 0.72rem;
    font-weight: 700;
}

.sysbar-stock-cell__panel-total-value {
    color: #107e3e;
    font-size: 0.86rem;
    font-weight: 800;
}

.sysbar-stock-cell__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sysbar-stock-cell__th,
.sysbar-stock-cell__td {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: left;
}

.sysbar-stock-cell__th {
    color: #294965;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
    border-bottom: 1px solid #d6e1ea;
}

.sysbar-stock-cell__th--numeric,
.sysbar-stock-cell__td--numeric {
    text-align: right;
}

.sysbar-stock-cell__th--compact,
.sysbar-stock-cell__td--compact {
    width: 1%;
    padding-right: 0.4rem;
    white-space: nowrap;
}

.sysbar-stock-cell__td {
    color: #4c6278;
    border-bottom: 1px solid rgba(185, 210, 231, 0.32);
    transition: background-color 0.15s ease;
}

.sysbar-stock-cell__tr:hover .sysbar-stock-cell__td {
    background: rgba(220, 236, 248, 0.42);
}

.sysbar-stock-cell__td--numeric {
    font-weight: 700;
    color: #107e3e;
}

/* Modo SAP */
html.sap-requerimientos-mode .sysbar-stock-cell__trigger {
    font-size: 0.74rem;
}

html.sap-requerimientos-mode .sysbar-stock-cell__panel {
    border-color: #cfdbe6;
    box-shadow: 0 10px 24px rgba(24, 52, 77, 0.1);
}

html.sap-requerimientos-mode .sysbar-stock-cell__th,
html.sap-requerimientos-mode .sysbar-stock-cell__td {
    font-size: 0.76rem;
}

/* ============================================================================
   REPEATER TABLE SAP STYLE - SysBar Product Repeater
   ============================================================================ */

.sysbar-repeater-sap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sysbar-repeater-sap__container {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sysbar-repeater-sap__module-badge-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 2px;
    margin-top: -1px;
}

.sysbar-repeater-sap__module-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 9.5px;
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace;
    font-weight: 500;
    color: #aab8c6;
    letter-spacing: 0.02em;
    line-height: 1.5;
    pointer-events: none;
    user-select: none;
}

.sysbar-repeater-sap__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sysbar-repeater-sap__readonly-cell {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(0, 0, 0, 0.028) 4px,
        rgba(0, 0, 0, 0.028) 8px
    );
    background-color: #f9fafb;
    height: 100%;
}

/* Header SAP Style */
.sysbar-repeater-sap__table thead tr {
    background: linear-gradient(to bottom, #f7f7f7 0%, #e6e6e6 100%);
    border-bottom: 1px solid #d9d9d9;
}

.sysbar-repeater-sap__th {
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-right: 1px solid #d9d9d9;
    white-space: nowrap;
}

.sysbar-repeater-sap__th:last-child {
    border-right: none;
}

.sysbar-repeater-sap__th .flex {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sysbar-repeater-sap__th .flex.items-center.justify-center {
    justify-content: center;
}

/* Body Rows */
.sysbar-repeater-sap__row {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.15s ease;
}

.sysbar-repeater-sap__row:hover {
    background: #f5f5f5;
}

.sysbar-repeater-sap__row:last-child {
    border-bottom: none;
}

/* Cells */
.sysbar-repeater-sap__cell {
    padding: 8px;
    border-right: 1px solid #e8e8e8;
    vertical-align: middle;
}

.sysbar-repeater-sap__cell:last-child {
    border-right: none;
}

/* Centrado vertical de contenido */
.sysbar-repeater-sap__cell > div {
    display: flex;
    align-items: center;
}

.sysbar-repeater-sap__cell > div.flex-col {
    flex-direction: column;
}

/* Inputs centrados */
.sysbar-repeater-sap__cell input,
.sysbar-repeater-sap__cell .fi-input {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* Forzar alineación izquierda en información de producto */
.sysbar-repeater-sap__cell--product-info input,
.sysbar-repeater-sap__cell--product-info .fi-input {
    text-align: left !important;
}

/* Botón Gestionar Almacén */
.sysbar-repeater-sap__action-btn {
    width: auto;
}

.sysbar-repeater-sap__action-btn button,
.sysbar-repeater-sap__action-btn .fi-btn {
    width: auto;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #007cc0 0%, #006aa8 100%);
    border: 1px solid #005a8c;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
}

.sysbar-repeater-sap__action-btn button:hover,
.sysbar-repeater-sap__action-btn .fi-btn:hover {
    background: linear-gradient(to bottom, #0088d4 0%, #0074b0 100%);
    border-color: #006396;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Status de distribución */
.sysbar-repeater-sap__status {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.sysbar-repeater-sap__status .fi-badge,
.sysbar-repeater-sap__status .inline-flex {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
}

/* Botón eliminar */
.sysbar-repeater-sap__delete button,
.sysbar-repeater-sap__delete .fi-btn {
    color: #d32f2f;
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.sysbar-repeater-sap__delete button:hover,
.sysbar-repeater-sap__delete .fi-btn:hover {
    background: #ffebee;
    color: #c62828;
}

/* Estado vacío */
.sysbar-repeater-sap__empty {
    padding: 32px 16px;
    text-align: center;
}

.sysbar-repeater-sap__empty .flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Celdas de cantidad y precio: ancho fijo irrompible */
.sysbar-repeater-sap__cell--qty,
.sysbar-repeater-sap__cell--price {
    width: 120px;
    max-width: 120px;
    min-width: 0;
    overflow: hidden;
}

.sysbar-repeater-sap__cell--qty > div,
.sysbar-repeater-sap__cell--price > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.sysbar-repeater-sap__cell--qty .fi-fo-field-wrp,
.sysbar-repeater-sap__cell--qty .fi-fo-component-ctn,
.sysbar-repeater-sap__cell--qty .fi-input-wrp,
.sysbar-repeater-sap__cell--qty .fi-fo-wrp,
.sysbar-repeater-sap__cell--price .fi-fo-field-wrp,
.sysbar-repeater-sap__cell--price .fi-fo-component-ctn,
.sysbar-repeater-sap__cell--price .fi-input-wrp,
.sysbar-repeater-sap__cell--price .fi-fo-wrp {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
}

.sysbar-repeater-sap__cell--qty input,
.sysbar-repeater-sap__cell--price input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Inputs compactos */
.sysbar-repeater-sap .fi-input-wrp {
    min-height: 32px;
}

.sysbar-repeater-sap input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.sysbar-repeater-sap input[type="number"]::-webkit-outer-spin-button,
.sysbar-repeater-sap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .sysbar-repeater-sap__th,
    .sysbar-repeater-sap__cell {
        padding: 6px 4px;
        font-size: 12px;
    }

    .sysbar-repeater-sap__th {
        font-size: 10px;
    }
}

/* ============================================================================
   WAREHOUSE DISTRIBUTION MODAL — Modal sizing (altura máxima)
   ============================================================================ */

.fi-modal-window:has(#wdm-tabs-root) {
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
}

.fi-modal-content:has(#wdm-tabs-root),
.fi-modal-body:has(#wdm-tabs-root) {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.wdm-tabs__body {
    max-height: calc(100dvh - 280px);
    overflow-y: auto;
}

/* ============================================================================
   WAREHOUSE DISTRIBUTION MODAL — Header inline (wdm-header)
   ============================================================================ */

.wdm-header {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.wdm-header__notif {
    flex: 1;
    min-width: 0;
}

.wdm-header__qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 90px;
    padding: 6px 14px;
    background: linear-gradient(to bottom, #f7f9fa, #eef2f5);
    border: 1px solid #d1dce5;
    border-radius: 5px;
    text-align: center;
}

.wdm-header__qty-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    line-height: 1;
}

.wdm-header__qty-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   WAREHOUSE DISTRIBUTION MODAL — Notificación de contexto (wdm-notif)
   ============================================================================ */

.wdm-notif {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 5px;
    border: 1px solid;
    font-size: 12px;
    line-height: 1.4;
    height: 100%;
    box-sizing: border-box;
}

.wdm-notif--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a5f;
}

.wdm-notif--warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}

.wdm-notif__icon {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.wdm-notif__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wdm-notif__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 3px;
    padding: 1px 6px;
    line-height: 1.6;
    width: fit-content;
}

.wdm-notif--warn .wdm-notif__badge {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.wdm-notif__text {
    color: inherit;
    font-size: 11.5px;
    opacity: 0.85;
}

/* ============================================================================
   WAREHOUSE DISTRIBUTION MODAL — Semáforo (wdm-state)
   ============================================================================ */

.wdm-state {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 13px;
}

.wdm-state__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wdm-state__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.wdm-state__dot--green  { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.wdm-state__dot--amber  { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.18); }
.wdm-state__dot--gray   { background: #9ca3af; box-shadow: 0 0 0 3px rgba(156,163,175,0.18); }

.wdm-state__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.wdm-state__detail {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.4;
    margin-top: 1px;
}

.wdm-state__bar-track {
    height: 5px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
}

.wdm-state__bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.35s ease, background 0.35s ease;
}

/* ============================================================================
   WAREHOUSE DISTRIBUTION MODAL — Tabs (wdm-tabs)
   ============================================================================ */

.wdm-tabs {
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.wdm-tabs__bar {
    display: flex;
    gap: 0;
    background: linear-gradient(to bottom, #f3f4f6, #e9eaec);
    border-bottom: 1px solid #d1d5db;
}

.wdm-tabs__tab {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    border: none;
    border-right: 1px solid #d1d5db;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.wdm-tabs__tab:last-child { border-right: none; }

.wdm-tabs__tab:hover:not([disabled]) {
    background: rgba(255,255,255,0.6);
    color: #374151;
}

.wdm-tabs__tab--active {
    background: #fff !important;
    color: #1d4ed8 !important;
    border-bottom: 2px solid #1d4ed8;
    margin-bottom: -1px;
}

.wdm-tabs__tab[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.wdm-tabs__body {
    padding: 14px;
    min-height: 100px;
}

.wdm-tabs__hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.wdm-tabs__distribution-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wdm-tabs__subhint {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* ============================================================================
   WAREHOUSE DISTRIBUTION MODAL — Panel stock actual (wdm-stock-panel)
   ============================================================================ */

.wdm-stock-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wdm-stock-panel__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.wdm-stock-panel__table thead tr {
    background: linear-gradient(to bottom, #f7f7f7, #eeeeee);
    border-bottom: 1px solid #d9d9d9;
}

.wdm-stock-panel__table th {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    border-right: 1px solid #e5e7eb;
}

.wdm-stock-panel__table th:last-child { border-right: none; }

.wdm-stock-panel__table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    color: #374151;
}

.wdm-stock-panel__table td:last-child { border-right: none; }

.wdm-stock-panel__table tbody tr:last-child td { border-bottom: none; }

.wdm-stock-panel__table tbody tr:hover { background: #fafafa; }

.wdm-stock-panel__row--pending td {
    background: #fef2f2;
    color: #991b1b;
    font-weight: 600;
}

.wdm-stock-panel__num { text-align: right; font-variant-numeric: tabular-nums; }

/* Banderas de situación */
.wdm-stock-panel__flag {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    border: 1px solid;
}

.wdm-stock-panel__flag--ideal {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.wdm-stock-panel__flag--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.wdm-stock-panel__flag--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.wdm-stock-panel__flag-icon {
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1.3;
}

.wdm-stock-panel__flag-body { flex: 1; }

.wdm-stock-panel__flag-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.wdm-stock-panel__btn {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.15s;
}

.wdm-stock-panel__btn--primary {
    background: #16a34a;
    border-color: #15803d;
    color: #fff;
}

.wdm-stock-panel__btn--primary:hover {
    background: #15803d;
}

.wdm-stock-panel__btn--secondary {
    background: #fff;
    border-color: #9ca3af;
    color: #374151;
}

.wdm-stock-panel__btn--secondary:hover {
    background: #f3f4f6;
}

/* ============================================================================
   WAREHOUSE DISTRIBUTION MODAL — Tab movimientos (wdm-movimientos-tab)
   ============================================================================ */

.wdm-movimientos-tab__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.wdm-movimientos-tab__table thead tr {
    background: linear-gradient(to bottom, #f7f7f7, #eeeeee);
    border-bottom: 1px solid #d9d9d9;
}

.wdm-movimientos-tab__table th {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    border-right: 1px solid #e5e7eb;
}

.wdm-movimientos-tab__table th:last-child { border-right: none; }

.wdm-movimientos-tab__table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    color: #374151;
    vertical-align: middle;
}

.wdm-movimientos-tab__table td:last-child { border-right: none; }

.wdm-movimientos-tab__table tbody tr:hover { background: #fafafa; }

.wdm-movimientos-tab__doc  { font-family: monospace; font-size: 11px; color: #6b7280; }
.wdm-movimientos-tab__date { font-size: 11px; color: #6b7280; white-space: nowrap; }
.wdm-movimientos-tab__num  { text-align: right; font-variant-numeric: tabular-nums; }

.wdm-movimientos-tab__route {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.wdm-movimientos-tab__from { color: #dc2626; font-weight: 500; }
.wdm-movimientos-tab__arrow { color: #9ca3af; font-size: 11px; }
.wdm-movimientos-tab__to   { color: #16a34a; font-weight: 500; }

.wdm-movimientos-tab__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.wdm-movimientos-tab__empty-icon {
    font-size: 26px;
    opacity: 0.4;
}

/* ============================================================================
   WAREHOUSE DISTRIBUTION MODAL — Tab procesos (wdm-procesos)
   ============================================================================ */

.wdm-procesos {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wdm-procesos__section {
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    overflow: hidden;
}

.wdm-procesos__title {
    font-size: 12px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #eff6ff, #dbeafe);
    border-bottom: 1px solid #bfdbfe;
    margin: 0;
}

.wdm-procesos__desc {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.6;
    padding: 8px 12px 4px;
    margin: 0;
}

.wdm-procesos__diagram {
    padding: 12px 16px;
    overflow-x: auto;
    background: #fafafa;
    font-size: 11px !important;
}

.wdm-procesos__diagram svg {
    max-width: 100%;
    height: auto;
}

/* Separadores entre secciones del modal */
.wdm-sep {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0 8px;
}

.wdm-sep__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin: 0 0 8px;
}

/* Modo SAP específico */
html.sap-requerimientos-mode .sysbar-repeater-sap__container {
    border-color: #cfdbe6;
    box-shadow: 0 1px 3px rgba(24, 52, 77, 0.08);
}

html.sap-requerimientos-mode .sysbar-repeater-sap__table thead tr {
    background: linear-gradient(to bottom, #f7f9fa 0%, #eff3f6 100%);
    border-bottom-color: #b9d2e7;
}

html.sap-requerimientos-mode .sysbar-repeater-sap__th {
    color: #2c3e50;
    border-right-color: #d1e0ed;
}

html.sap-requerimientos-mode .sysbar-repeater-sap__row {
    border-bottom-color: #e5ecf2;
}

html.sap-requerimientos-mode .sysbar-repeater-sap__row:hover {
    background: #f0f6fa;
}

html.sap-requerimientos-mode .sysbar-repeater-sap__cell {
    border-right-color: #eef4f8;
}

html.sap-requerimientos-mode .sysbar-repeater-sap__action-btn button,
html.sap-requerimientos-mode .sysbar-repeater-sap__action-btn .fi-btn {
    background: linear-gradient(to bottom, #007cc0 0%, #0067a3 100%);
    border-color: #005c94;
    font-size: 10px;
    padding: 5px 10px;
}

html.sap-requerimientos-mode .sysbar-repeater-sap__status {
    font-size: 10px;
}

/* ============================================================
   CLIENT SELECTION MODAL - SAP STYLE
   ============================================================ */

.sysbar-client-modal {
    display: flex;
    flex-direction: column;
    color: #1f2937;
    min-height: 0;
    height: min(75vh, calc(100dvh - 6rem));
    max-height: calc(100dvh - 6rem);
}

/* Toolbar */
.sysbar-client-modal__toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
    border-bottom: 1px solid #dbe5ee;
    flex-shrink: 0;
}

/* Search */
.sysbar-client-modal__search {
    position: relative;
    display: flex;
    align-items: center;
}

.sysbar-client-modal__search-icon {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    pointer-events: none;
    z-index: 10;
}

.sysbar-client-modal__search input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #223548;
    background: #ffffff;
    border: 1px solid #cfdbe6;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 150ms ease;
}

.sysbar-client-modal__search input:focus {
    outline: none;
    border-color: #0a6ed1;
    box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.1);
}

.sysbar-client-modal__search input::placeholder {
    color: #8a9aad;
}

/* Filters */
.sysbar-client-modal__filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sysbar-client-modal__filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #36516c;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
    border: 1px solid #cfdbe6;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 150ms ease;
}

.sysbar-client-modal__filter:hover {
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
    border-color: #a8bfd5;
}

.sysbar-client-modal__filter.is-active {
    background: linear-gradient(180deg, #0a6ed1 0%, #085caf 100%);
    border-color: #0854a6;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(10, 110, 209, 0.2);
}

/* Meta bar */
.sysbar-client-modal__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.sysbar-client-modal__results {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #4e6278;
}

.sysbar-client-modal__loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #0a6ed1;
}

.sysbar-client-modal__loading-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #0a6ed1;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Table wrap */
.sysbar-client-modal__table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dbe5ee;
    border-radius: 0.5rem;
}

/* Table */
.sysbar-client-modal__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}

.sysbar-client-modal__table thead {
    position: sticky;
    top: 0;
    z-index: 20;
}

.sysbar-client-modal__table th {
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
    border-bottom: 1px solid #dbe5ee;
    border-right: 1px solid #e5edf4;
    padding: 0.625rem 0.875rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #476179;
    text-align: left;
    white-space: nowrap;
}

.sysbar-client-modal__table th:last-child {
    border-right: none;
}

.sysbar-client-modal__sort {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.sysbar-client-modal__sort:hover {
    color: #0a6ed1;
}

.sysbar-client-modal__sort.is-active {
    color: #0a6ed1;
}

/* Table cells */
.sysbar-client-modal__table td {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #f3f6f9;
    vertical-align: top;
}

.sysbar-client-modal__table td:last-child {
    border-right: none;
}

.sysbar-client-modal__th--accion,
.sysbar-client-modal__cell--accion {
    width: 1%;
    min-width: 10.5rem;
    white-space: nowrap;
}

.sysbar-client-modal__cell--accion {
    text-align: right;
    vertical-align: middle;
}

.sysbar-client-modal__row:hover {
    background: #f9fafb;
}

.sysbar-client-modal__row.is-selected {
    background: #eff6ff;
}

.sysbar-client-modal__row.is-inactive {
    opacity: 0.7;
    background: #f9fafb;
}

/* Cell content */
.sysbar-client-modal__client-name {
    font-weight: 600;
    color: #223548;
    line-height: 1.25;
}

.sysbar-client-modal__client-address {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.25;
}

.sysbar-client-modal__doc {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.sysbar-client-modal__doc-label {
    color: #8a9aad;
    font-weight: 500;
}

.sysbar-client-modal__doc-value {
    color: #223548;
    font-family: ui-monospace, monospace;
    font-weight: 600;
}

.sysbar-client-modal__contact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #4e6278;
    line-height: 1.4;
    min-width: 0;
}

.sysbar-client-modal__contact span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sysbar-client-modal__contact svg {
    color: #8a9aad;
    flex-shrink: 0;
}

/* Status badges */
.sysbar-client-modal__status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 0.25rem;
}

.sysbar-client-modal__status--active {
    background: #dcfce7;
    color: #166534;
}

.sysbar-client-modal__status--inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* Action buttons */
.sysbar-client-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 9.5rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.sysbar-client-modal__btn svg,
.sysbar-client-modal__sort svg,
.sysbar-client-modal__search-icon svg,
.sysbar-client-modal__results svg {
    flex-shrink: 0;
}

.sysbar-client-modal__btn--select {
    color: #ffffff;
    background: linear-gradient(180deg, #0a6ed1 0%, #085caf 100%);
    border: 1px solid #0854a6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sysbar-client-modal__btn--select:hover {
    background: linear-gradient(180deg, #085caf 0%, #074a8f 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.sysbar-client-modal__btn--selected {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
    cursor: default;
}

/* Empty state */
.sysbar-client-modal__empty {
    padding: 3rem 1rem;
    text-align: center;
}

.sysbar-client-modal__empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
}

.sysbar-client-modal__empty-hint {
    font-size: 0.75rem;
    color: #8a9aad;
    margin: 0;
}

/* Pagination */
.sysbar-client-modal__pagination {
    flex-shrink: 0;
    padding: 0.75rem 0.25rem 0;
    background: #ffffff;
}

.sysbar-client-modal__pagination nav {
    width: 100%;
}

/* Modal sizing */
.fi-modal-window:has(.sysbar-client-modal) {
    max-height: calc(100dvh - 2rem);
    width: min(90rem, calc(100vw - 2rem));
    max-width: 90rem;
}

.fi-modal-content:has(.sysbar-client-modal),
.fi-modal-body:has(.sysbar-client-modal) {
    padding: 0;
    overflow: hidden;
}

/* SAP Mode adjustments */
html.sap-requerimientos-mode .sysbar-client-modal {
    height: min(78vh, calc(100dvh - 5rem));
}

html.sap-requerimientos-mode .sysbar-client-modal__toolbar {
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
    border-color: #d2dde8;
}

html.sap-requerimientos-mode .sysbar-client-modal__table th {
    border-radius: 0;
}

html.sap-requerimientos-mode .sysbar-client-modal__pagination nav .relative.z-0.inline-flex a,
html.sap-requerimientos-mode .sysbar-client-modal__pagination nav .relative.z-0.inline-flex span > span {
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sysbar-client-modal {
        height: calc(100dvh - 4rem);
    }

    .sysbar-client-modal__toolbar {
        padding: 0.5rem;
    }

    .sysbar-client-modal__table th,
    .sysbar-client-modal__table td {
        padding: 0.5rem;
    }

    .sysbar-client-modal__th--contacto,
    .sysbar-client-modal__cell--contacto {
        display: none;
    }

    .fi-modal-window:has(.sysbar-client-modal) {
        width: calc(100vw - 1rem);
        max-width: none;
    }
}

/* ==================== Kardex Individual (SAP Theme) ==================== */

.purchase-history-page {
    max-width: 100%;
    overflow-x: hidden;
}

.purchase-history-filters,
.purchase-history-card,
.purchase-history-empty {
    border-radius: 8px;
}

.purchase-history-header {
    background: #f8fafc;
}

.purchase-history-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
}

.purchase-history-product {
    margin-top: 0.25rem;
    color: #475569;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.purchase-history-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.75rem;
    border: 1px solid #dbe4ef;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

.purchase-history-table-wrap {
    max-height: 64vh;
}

.purchase-history-table {
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.purchase-history-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eef3f8;
}

.purchase-history-table th {
    border-bottom: 1px solid #cbd5e1;
    color: #1f3f63;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.purchase-history-table td {
    border-bottom: 1px solid #e5edf5;
    color: #1e293b;
    vertical-align: middle;
}

.purchase-history-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.purchase-history-table tbody tr:hover {
    background: #edf5ff;
}

.purchase-history-table tfoot {
    background: #f1f5f9;
    border-top: 1px solid #cbd5e1;
}

.fi-resource-productos .fi-section,
.fi-resource-productos .fi-fo-fieldset,
.fi-resource-productos .fi-fo-component-ctn {
    min-width: 0;
}

.fi-resource-productos .fi-input-wrp,
.fi-resource-productos .fi-select-input,
.fi-resource-productos .fi-fo-field-wrp,
.fi-resource-productos textarea {
    max-width: 100%;
}

.fi-resource-productos .fi-fo-field-wrp-label label {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.fi-resource-productos .fi-fo-fieldset {
    border-radius: 8px;
}

.kardex-page {
    --kardex-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.kardex-filters-card {
    transition: var(--kardex-transition);
}

.kardex-filters-card:hover {
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

.kardex-report-card {
    transition: var(--kardex-transition);
}

.kardex-report-card:hover {
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
}

.kardex-report-header {
    display: flex;
    align-items: stretch;
    background: #f8fafc;
}

.kardex-report-title {
    letter-spacing: 0.025em;
}

.kardex-report-product {
    max-width: 100%;
    overflow-wrap: break-word;
}

.kardex-report-meta {
    flex-wrap: wrap;
}

.kardex-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.kardex-summary-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.65rem 0.75rem;
}

.kardex-summary-stat:first-child {
    border-left: 2px solid #10b981;
}

.kardex-table {
    border-collapse: separate;
    border-spacing: 0;
}

.kardex-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #eef3f8;
    color: #1f3f63;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.kardex-table tbody td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5edf5;
    vertical-align: middle;
}

.kardex-table tbody tr:nth-child(even) {
    background-color: #fbfdff;
}

.kardex-table tbody tr:hover {
    background-color: #edf5ff !important;
}

.kardex-table tbody tr:last-child td {
    border-bottom: 2px solid #d1d5db;
}

.kardex-table tfoot tr {
    background-color: #f3f4f6 !important;
    border-top: 2px solid #d1d5db;
    font-weight: 600;
}

.kardex-table tfoot td {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
}

/* Responsive table adjustments */
@media (max-width: 1024px) {
    .kardex-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .kardex-report-header {
        flex-direction: column;
        gap: 1rem;
    }

    .kardex-report-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .kardex-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kardex-table thead th {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }

    .kardex-table tbody td {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .kardex-table tfoot td {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Efecto hover con opacidad para todos los botones */
button,
.fi-btn,
.fi-icon-btn {
    transition: opacity 0.2s ease-in-out, transform 0.1s ease-in-out !important;
}

button:hover:not(:disabled),
.fi-btn:hover:not(:disabled),
.fi-icon-btn:hover:not(:disabled) {
    opacity: 0.85 !important;
}

button:active:not(:disabled),
.fi-btn:active:not(:disabled),
.fi-icon-btn:active:not(:disabled) {
    opacity: 0.75 !important;
    transform: scale(0.98) !important;
}

/* Tachado completo y plomo para resultados de búsqueda anulados */
.fi-resource-producto-cargas .section-sheet-result--annulled {
    color: #9aa4af !important;
    text-decoration: line-through !important;
    text-decoration-color: #9aa4af !important;
    opacity: 0.6 !important;
}
.fi-resource-producto-cargas .section-sheet-result--annulled * {
    color: #9aa4af !important;
    text-decoration: line-through !important;
    text-decoration-color: #9aa4af !important;
}

/* Colores de Stock Pill (Resultados del Buscador) */
.fi-resource-producto-cargas .section-sheet-stock-pill.stock-zero {
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
}
.fi-resource-producto-cargas .section-sheet-stock-pill.stock-positive {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
}
.fi-resource-producto-cargas .section-sheet-stock-pill.stock-negative {
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

/* Colores de Stock Total (Hoja Editable) */
.fi-resource-producto-cargas .section-sheet-stock-total.stock-zero,
.fi-resource-producto-cargas .section-sheet-product-cell__meta.stock-zero {
    color: #64748b !important;
}
.fi-resource-producto-cargas .section-sheet-stock-total.stock-positive,
.fi-resource-producto-cargas .section-sheet-product-cell__meta.stock-positive {
    color: #16a34a !important;
}
.fi-resource-producto-cargas .section-sheet-stock-total.stock-negative,
.fi-resource-producto-cargas .section-sheet-product-cell__meta.stock-negative {
    color: #dc2626 !important;
}

/* Detalle de stock general */
.sysbar-stock-cell__value--zero {
    color: #64748b !important;
}
.sysbar-stock-cell__value--negative {
    color: #dc2626 !important;
}
.sysbar-stock-cell__value--positive {
    color: #107e3e !important;
}
.sysbar-stock-cell__td--numeric {
    color: #374151 !important;
}
.sysbar-stock-cell__td--negative,
.sysbar-stock-cell__panel-total-value--negative {
    color: #dc2626 !important;
    font-weight: 800 !important;
}

/* Visual para botones deshabilitados en Importación por Secciones */
.importacion-secciones-action.fi-btn[disabled],
.importacion-secciones-action.fi-btn--disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
}

/* Salvaguarda para evitar saltos de línea y desbordamiento en selectores Choices.js */
.fi-fo-field-wrp .choices__list--single .choices__item,
.choices__list--single .choices__item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* Keep icon sizes aligned by context without overriding the whole modal */
.sysbar-client-modal .sysbar-client-modal__search-icon svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.sysbar-client-modal .sysbar-client-modal__results svg,
.sysbar-client-modal .sysbar-client-modal__sort svg,
.sysbar-client-modal .sysbar-client-modal__btn svg {
    width: 1rem !important;
    height: 1rem !important;
}

.sysbar-client-modal .sysbar-client-modal__contact svg {
    width: 0.875rem !important;
    height: 0.875rem !important;
}

.sysbar-client-modal .sysbar-client-modal__empty-inner svg {
    width: 2rem !important;
    height: 2rem !important;
}

.fi-resource-producto-cargas .section-sheet-search-results--catalog .section-sheet-result__top {
    align-items: center;
    flex-direction: row;
}

.fi-resource-producto-cargas .section-sheet-search-results--catalog .section-sheet-stock-pill {
    flex: 0 0 auto;
}

/* Sidebar SAP Mode — botones de ítem */
html.sap-requerimientos-mode .fi-sidebar-item-btn {
    min-height: 2.22rem;
    border-radius: 0 !important;
    padding-inline: 1.06rem 0.48rem;
    color: rgba(255, 255, 255, 0.95);
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, color 160ms ease;
}
REPLACE

/* Compacta las descripciones de texto de las tablas Filament. */
:is(.fi-ta-text.fi-ta-text-has-descriptions, .fi-ta-text.fi-ta-text-list-limited):not(.fi-ta-text-has-badges) {
    row-gap: calc(var(--spacing) * 1 / 7) !important;
}

.fi-ta-text-has-descriptions > p {
    line-height: 1.15em !important;
}

.fi-ta-header-cell {
    padding-inline: calc(var(--spacing) * 3);
    padding-block: calc(var(--spacing) * 0.5);
    text-align: start;
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-950);
}

html.sap-requerimientos-mode .fi-ta table thead th,
html.sap-requerimientos-mode .fi-ta table thead th span,
html.sap-requerimientos-mode .fi-ta table thead th button {
    color: #36516c !important;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Stock en tránsito: mismo mostaza operativo usado en el resto del panel. */
.sysbar-stock-cell__transit {
    display: block;
    margin-top: 0.1rem;
    color: #d97706 !important;
    font-size: 0.70rem !important;
    font-weight: 800 !important;
    line-height: 1.15;
}

/* Semántica de cantidades dentro de Detalle de stock por ubicación. */
.sysbar-stock-cell__td--physical {
    color: #107e3e !important;
    font-weight: 800 !important;
}

.sysbar-stock-cell__td--transit {
    color: #d97706 !important;
    font-weight: 800 !important;
}

.sysbar-stock-cell__td--outbound {
    color: #dc2626 !important;
    font-weight: 800 !important;
}

/* Un producto anulado nunca puede conservar estilos activos en una tabla. */
.fi-ta-table tbody tr.sysbar-product-row--annulled > td,
.fi-ta-table tbody tr.sysbar-product-row--annulled > td * {
    color: #9aa4af !important;
    text-decoration: line-through !important;
    text-decoration-color: #9aa4af !important;
}

/* Compatibilidad con los selectores de producto heredados que siguen activos. */
.fi-ta-table tbody tr.warehouse-validation-row--recent > td {
    background: #eff6ff !important;
    border-top-color: #93c5fd !important;
    border-bottom-color: #93c5fd !important;
}
.fi-ta-table tbody tr.warehouse-validation-row--recent:hover > td {
    background: #dbeafe !important;
}
.fi-ta-table tbody tr.warehouse-validation-row--recent > td:first-child {
    box-shadow: inset 4px 0 #2563eb;
}
.fi-ta-table tbody tr.warehouse-validation-row--mismatch > td:first-child {
    box-shadow: inset 4px 0 #d97706;
}
.fi-ta-table tbody tr.warehouse-validation-row--blocked > td:first-child {
    box-shadow: inset 4px 0 #dc2626;
}
.fi-ta-table tbody tr.warehouse-validation-row--completed > td:first-child,
.fi-ta-table tbody tr.warehouse-validation-row--observed > td:first-child,
.fi-ta-table tbody tr.warehouse-validation-row--forced > td:first-child {
    box-shadow: inset 4px 0 #16a34a;
}

.sysbar-product-legacy-row--annulled > td:not(:last-child),
.sysbar-product-legacy-row--annulled > td:not(:last-child) * {
    color: #9aa4af !important;
    text-decoration: line-through !important;
    text-decoration-color: #9aa4af !important;
}

/* El detalle de stock se teletransporta fuera de la fila: conserva el estado anulado. */
.sysbar-stock-cell__panel--annulled,
.sysbar-stock-cell__panel--annulled * {
    color: #9aa4af !important;
    text-decoration: line-through !important;
    text-decoration-color: #9aa4af !important;
}

/* Distintivo del acceso rápido al POS: sólo la estrella, sin estilo de badge. */
.sysbar-pos-navigation-item .fi-sidebar-item-badge-ctn .fi-badge {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

/* Jerarquía visual para los ingresos hijos de una regularización de compra. */
.fi-ta-table tbody tr.ingreso-regularization-child-row > td {
    background-color: rgba(245, 158, 11, 0.055) !important;
}

.fi-ta-table tbody tr.ingreso-regularization-child-row:hover > td {
    background-color: rgba(245, 158, 11, 0.12) !important;
}

.fi-ta-table tbody tr.ingreso-regularization-child-row > td:first-child {
    box-shadow: inset 3px 0 #f59e0b;
}

.ingreso-regularization-reference {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    padding-inline-start: 1.1rem;
}

.ingreso-regularization-reference__branch {
    position: absolute;
    top: -0.6rem;
    bottom: -0.6rem;
    left: 0.25rem;
    width: 1px;
    background: #fbbf24;
}

.ingreso-regularization-reference__branch::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0.65rem;
    height: 1px;
    background: #fbbf24;
    content: '';
}

.ingreso-regularization-reference__meta {
    color: #92400e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Gestor de archivos privados dentro del flujo de Ingresos. */
.ingreso-archivos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #1f2937;
    font-family: inherit;
}

.ingreso-archivos__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #dbe5ed;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f8fbfd 0%, #eef5f9 100%);
}

.ingreso-archivos__eyebrow {
    margin: 0 0 0.2rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ingreso-archivos__title {
    margin: 0;
    color: #18324a;
    font-size: 1rem;
    font-weight: 800;
}

.ingreso-archivos__description {
    max-width: 52rem;
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.ingreso-archivos__count {
    flex: 0 0 auto;
    padding: 0.35rem 0.65rem;
    border: 1px solid #fbbf24;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.ingreso-archivos__table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe5ed;
    border-radius: 0.75rem;
    background: #ffffff;
}

.ingreso-archivos__table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

.ingreso-archivos__table th {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #dbe5ed;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ingreso-archivos__table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.78rem;
    vertical-align: middle;
}

.ingreso-archivos__table tbody tr:last-child td {
    border-bottom: 0;
}

.ingreso-archivos__table tbody tr:hover td {
    background: #fffdf5;
}

.ingreso-archivos__file {
    display: flex;
    align-items: center;
    min-width: 18rem;
    gap: 0.65rem;
}

.ingreso-archivos__file-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    background: #f1f5f9;
    color: #475569;
}

.ingreso-archivos__file-icon--image {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.ingreso-archivos__file-icon svg,
.ingreso-archivos__action svg,
.ingreso-archivos__empty-icon svg {
    width: 1rem;
    height: 1rem;
}

.ingreso-archivos__file-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15rem;
}

.ingreso-archivos__file-name {
    overflow: hidden;
    color: #18324a;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ingreso-archivos__file-meta,
.ingreso-archivos__muted {
    color: #64748b;
    font-size: 0.7rem;
}

.ingreso-archivos__file-meta {
    display: flex;
    gap: 0.35rem;
}

.ingreso-archivos__actions-heading {
    text-align: right;
}

.ingreso-archivos__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    white-space: nowrap;
}

.ingreso-archivos__action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ingreso-archivos__action--download {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.ingreso-archivos__action--download:hover,
.ingreso-archivos__action--download:focus-visible {
    border-color: #93c5fd;
    background: #dbeafe;
}

.ingreso-archivos__action--delete {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.ingreso-archivos__action--delete:hover,
.ingreso-archivos__action--delete:focus-visible {
    border-color: #fca5a5;
    background: #fee2e2;
}

.ingreso-archivos__action:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.ingreso-archivos__empty {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: #475569;
}

.ingreso-archivos__empty strong {
    color: #334155;
    font-size: 0.82rem;
}

.ingreso-archivos__empty p {
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
    line-height: 1.45;
}

.ingreso-archivos__empty-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: #e0f2fe;
    color: #0369a1;
}

@media (max-width: 768px) {
    .ingreso-archivos__header {
        flex-direction: column;
    }

    .ingreso-archivos__count {
        align-self: flex-start;
    }
}
