/* SFE Module Shell — collection chrome base (paridad Compras, todos los módulos) */

.sfe-module-shell .sfe-module-shell__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 0 0 8px;
    border-bottom: 0;
}

.sfe-module-shell .sfe-module-shell__toolbar [class$="-toolbar__left"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sfe-module-shell .sfe-module-shell__toolbar .btn-primary {
    background: var(--sfe-primary, #007BFF);
    border-color: var(--sfe-primary, #007BFF);
    min-height: 32px;
    padding: 0 14px;
    font-size: .875rem;
}

.sfe-module-shell .sfe-module-shell__toolbar-title {
    margin: 0 0 0 6px;
    color: var(--sfe-navy, #1e2b3c);
    font-size: 1.05rem;
    font-weight: 650;
}

.sfe-module-shell .data-table {
    font-size: .875rem;
}

.sfe-module-shell .data-table th,
.sfe-module-shell .data-table td {
    padding: 6px 10px;
}

.sfe-module-shell .list-view-table-wrap,
.sfe-module-shell .table-responsive {
    border-radius: 8px;
}

/* Collection chrome: búsqueda → chips → vistas + columnas */
.sfe-module-shell .sfe-collection-chrome {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sfe-module-shell .sfe-collection-chrome > * {
    margin: 0;
}

.sfe-module-shell .sfe-collection-chrome__row--search,
.sfe-module-shell .web-list-search .sfe-collection-chrome__row--search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfe-module-shell .web-list-search-bar,
.sfe-module-shell .o_apps_search.web-list-search-bar {
    flex: 1 1 auto;
    min-width: 0;
}

.sfe-module-shell .sfe-collection-chrome__row--filters {
    margin: 0;
}

.sfe-module-shell .web-list-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sfe-module-shell .web-list-search-chip {
    min-height: 28px;
    padding: 2px 12px;
    font-size: .8rem;
}

.sfe-module-shell .sfe-collection-chrome__row--actions:empty,
.sfe-module-shell .web-list-search-toolbar-end:empty {
    display: none;
}

.sfe-module-shell .sfe-collection-chrome__row--actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sfe-module-shell .sfe-collection-chrome__row--actions .sfe-search-panel-toggle,
.sfe-module-shell .sfe-collection-chrome__row--actions .web-list-search-drawer {
    display: none;
}

.sfe-module-shell .sfe-collection-chrome__row--views {
    margin: 0;
}

.sfe-module-shell .kanban-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.sfe-module-shell .kanban-toolbar__actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sfe-module-shell .kanban-view-switch {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gray-200, #e5e7eb) 70%, white);
}

.sfe-module-shell .kanban-view-switch .kanban-switch {
    min-height: 28px;
    padding: 2px 12px;
    font-size: .8rem;
    border-radius: 999px;
}


.sfe-module-shell .sfe-doc-list-chrome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    min-height: 0;
}

.sfe-module-shell .sfe-doc-list-chrome:empty {
    display: none;
}

.sfe-module-shell .sfe-doc-cols__toggle,
.sfe-module-shell .sfe-split-toggle,
.sfe-module-shell [data-sfe-save-view] {
    min-height: 28px;
    padding: 2px 10px;
    font-size: .78rem;
}

.sfe-module-shell [data-sfe-last-view],
.sfe-module-shell .sfe-last-view-chip,
.sfe-module-shell .sfe-list-last-view {
    display: none !important;
}

.sfe-module-shell .sfe-odo-selection-bar {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
    margin: 0 0 10px;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--sfe-primary, #007BFF) 22%, #e5e7eb);
    border-radius: 8px;
    background: color-mix(in srgb, var(--sfe-primary, #007BFF) 6%, #fff);
}

.sfe-module-shell .sfe-collection-chrome > .sfe-odo-selection-bar {
    margin-bottom: 8px;
}

.sfe-module-shell .sfe-odo-selection-bar:not([hidden]) {
    display: flex;
}

.sfe-module-shell .sfe-odo-selection-bar[hidden] {
    display: none !important;
}

.sfe-module-shell .sfe-odo-selection-bar__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--gray-600, #4b5563);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.sfe-module-shell .sfe-odo-selection-bar__primary .btn-primary {
    background: var(--sfe-primary, #007BFF);
    border-color: var(--sfe-primary, #007BFF);
}

.sfe-module-shell .sfe-doc-list-view.has-odo-selection .sfe-module-shell__toolbar {
    opacity: .45;
    pointer-events: none;
}

.sfe-module-shell .sfe-doc-list-view.has-odo-selection tbody tr:has(input[type=checkbox]:checked) {
    background: color-mix(in srgb, var(--sfe-primary, #007BFF) 8%, white);
}

.sfe-module-shell .list-view-wrap {
    position: relative;
}

.sfe-module-shell .list-empty-banner {
    position: absolute;
    inset: 48px 12px 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    pointer-events: none;
}

.sfe-module-shell .list-empty-banner .sfe-empty-state,
.sfe-module-shell .list-empty-banner .sfe-doc-empty {
    pointer-events: auto;
    max-width: 520px;
    padding: 28px 24px;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.sfe-module-shell .list-view-table-wrap.is-empty {
    opacity: .22;
    filter: saturate(.7);
    min-height: 320px;
    pointer-events: none;
}

.sfe-module-shell .sfe-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sfe-primary, #007BFF) 14%, white);
    color: var(--sfe-primary, #007BFF);
}

.sfe-module-shell .sfe-empty-state__title {
    color: var(--sfe-navy, #1e2b3c);
    font-size: 1.15rem;
    font-weight: 700;
}

.sfe-module-shell .sfe-empty-state__hint {
    color: var(--gray-500, #6b7280);
    font-size: .9rem;
}

.sfe-module-shell .sfe-empty-state__actions .btn-primary {
    background: var(--sfe-primary, #007BFF);
    border-color: var(--sfe-primary, #007BFF);
}

.sfe-module-shell .sfe-split-layout:not(.is-split) .sfe-split-preview,
.sfe-module-shell .sfe-split-layout:not(.is-split) [data-sfe-split-pane] {
    display: none !important;
}

.sfe-module-shell .sfe-split-layout:not(.is-split) .sfe-split-layout__list {
    width: 100%;
    max-width: 100%;
}
