/* Ventas — limpio y compacto (estilo Odoo Cotizaciones) */
.sale-module-shell .sfe-module-shell__toolbar.sale-odo-toolbar,
.sale-odo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 0 0 8px;
    border-bottom: 0;
}

.sale-odo-toolbar__left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

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

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

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

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

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

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

.sale-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;
}

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

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

.sale-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);
}

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

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

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

.sfe-sale-invoice-wizard__dialog {
    max-width: 520px;
}

.sfe-sale-invoice-wizard__radio-hint {
    margin: 4px 0 0 28px;
    color: var(--gray-500, #6b7280);
    font-size: .82rem;
}

.sfe-sale-invoice-wizard__actions .btn-primary {
    background: var(--sfe-primary, #007BFF);
    border-color: var(--sfe-primary, #007BFF);
}

/* Barra selección Odoo (cotizaciones) */
.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-odo-selection-bar:not([hidden]) {
    display: flex;
}

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

.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-odo-selection-bar__clear:hover {
    background: rgba(0, 0, 0, .06);
}

.sfe-odo-selection-bar__count {
    color: var(--sfe-navy, #1e2b3c);
    font-size: .9rem;
    white-space: nowrap;
}

.sfe-odo-selection-bar__primary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

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

.sfe-odo-selection-bar__menu-wrap {
    position: relative;
    margin-left: auto;
}

.sfe-odo-selection-bar__gear .icon {
    width: 14px;
    height: 14px;
}

.sfe-odo-selection-bar__menu {
    min-width: 240px;
    max-height: 360px;
    overflow: auto;
}

.sfe-odo-selection-bar__menu-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sfe-odo-selection-bar__menu-item.is-danger {
    color: #b42318;
}

.sfe-doc-list-view.has-odo-selection .sale-odo-toolbar {
    opacity: .45;
    pointer-events: none;
}

.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);
}
