.rep-wrap {
    padding: 20px;
    background: linear-gradient(180deg, #f6f8fc 0%, #edf3fb 100%);
    min-height: 100vh;
}

.rep-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(36, 74, 124, 0.08);
}

.rep-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #355070;
    line-height: 1.1;
}

.rep-sub {
    color: #6b7a90;
    margin-top: 6px;
    font-size: 15px;
}

.rep-filtros {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.rep-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rep-field label {
    font-size: 12px;
    font-weight: 700;
    color: #5b6f8a;
}

.rep-input,
.rep-field input {
    height: 40px;
    border: 1px solid #cfdced;
    border-radius: 12px;
    padding: 0 14px;
    background: #ffffff;
    color: #43556f;
    box-shadow: inset 0 1px 2px rgba(20, 40, 70, 0.04);
}

.rep-input::placeholder,
.rep-field input::placeholder {
    color: #96a3b5;
}

.rep-input:focus,
.rep-field input:focus {
    outline: none;
    border-color: #7aa7ff;
    box-shadow: 0 0 0 4px rgba(122, 167, 255, 0.18);
}

.rep-btn {
    height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.rep-btn:hover {
    transform: translateY(-1px);
}

.rep-btn:active {
    transform: translateY(0);
    opacity: 0.96;
}

.rep-btn-primary {
    background: linear-gradient(135deg, #355cde 0%, #1d3b8f 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(41, 79, 179, 0.25);
}

.rep-main {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
}

.rep-panel {
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(36, 74, 124, 0.08);
}

.rep-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #e6eef8;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.rep-panel-title {
    font-size: 18px;
    font-weight: 800;
    color: #486581;
}

.rep-chip {
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #edf4ff 0%, #ddeaff 100%);
    color: #43618a;
    font-weight: 800;
    border: 1px solid #cfe0fb;
}

.rep-table-wrap {
    overflow: auto;
}

.rep-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.rep-table th,
.rep-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #edf2f8;
    text-align: left;
    white-space: nowrap;
}

.rep-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c7f99;
    background: #f8fbff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.rep-table td {
    color: #6d7f97;
    font-size: 14px;
}

.rep-row {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.rep-row:hover {
    background: #f3f8ff;
}

.rep-row.is-active {
    background: linear-gradient(180deg, #e9f2ff 0%, #dfeeff 100%);
}

.rep-row.is-active td {
    color: #405d86;
}

.rep-detalle {
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.rep-det-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.rep-det-item {
    min-width: 0;
    background: #f8fbff;
    border: 1px solid #e3edf9;
    border-radius: 14px;
    padding: 12px 14px;
}

.rep-det-label {
    font-size: 12px;
    font-weight: 800;
    color: #6280a3;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rep-det-value {
    font-size: 21px;
    font-weight: 800;
    color: #405d86;
    word-break: break-word;
    line-height: 1.2;
}

.rep-subtitle {
    font-size: 24px;
    font-weight: 800;
    color: #486581;
    margin: 18px 0 10px 0;
}

.t-right {
    text-align: right;
}

.t-muted {
    color: #8ea0b7;
}

.rep-table tbody tr:last-child td {
    border-bottom: 0;
}

.rep-table-wrap::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.rep-table-wrap::-webkit-scrollbar-track {
    background: #edf3fb;
    border-radius: 999px;
}

.rep-table-wrap::-webkit-scrollbar-thumb {
    background: #b9cbe4;
    border-radius: 999px;
}

.rep-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #9fb6d8;
}

@media (max-width: 1200px) {
    .rep-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rep-header {
        padding: 16px;
    }

    .rep-title {
        font-size: 26px;
    }

    .rep-det-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rep-det-value {
        font-size: 18px;
    }
}

@media (max-width: 560px) {
    .rep-wrap {
        padding: 14px;
    }

    .rep-header {
        border-radius: 16px;
        padding: 14px;
    }

    .rep-panel {
        border-radius: 16px;
    }

    .rep-panel-head {
        padding: 14px;
    }

    .rep-detalle {
        padding: 14px;
    }

    .rep-det-grid {
        grid-template-columns: 1fr;
    }

    .rep-subtitle {
        font-size: 20px;
    }

    .rep-table th,
    .rep-table td {
        padding: 12px 10px;
    }
}


.rep-extra-item {
    color: #000000 !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}


/* SOLO panel derecho */
.rep-detalle .rep-table td {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

/* nombres de producto y extras en el detalle */
.rep-detalle #tbodyDetalle td,
.rep-detalle #tbodyDetalle .rep-extra-item {
    color: #000000 !important;
    font-size: 16px;
    font-weight: 700;
}

/* si algún extra sigue heredando muted */
.rep-detalle #tbodyDetalle .t-muted {
    color: #000000 !important;
}

.rep-btn-light {
    background: #ffffff;
    color: #486581;
    border: 1px solid #dbe6f3;
    box-shadow: 0 8px 20px rgba(36, 74, 124, 0.08);
}

.rep-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.rep-modal-backdrop.is-hidden {
    display: none;
}

.rep-modal-card {
    width: min(100%, 520px);
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    position: relative;
    animation: repModalIn 0.18s ease;
}

.rep-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f3f7fd;
    color: #486581;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.rep-modal-close:hover {
    background: #e7f0fb;
}

.rep-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff4e5 0%, #ffe7bf 100%);
    color: #b96a00;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 16px;
}

.rep-modal-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 800;
    color: #355070;
    line-height: 1.2;
}

.rep-modal-text {
    margin: 0 0 18px 0;
    font-size: 15px;
    color: #6b7a90;
    line-height: 1.5;
}

.rep-modal-field {
    margin-bottom: 18px;
}

.rep-modal-textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid #cfdced;
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    color: #43556f;
    box-shadow: inset 0 1px 2px rgba(20, 40, 70, 0.04);
    font: inherit;
}

.rep-modal-textarea:focus {
    outline: none;
    border-color: #7aa7ff;
    box-shadow: 0 0 0 4px rgba(122, 167, 255, 0.18);
}

.rep-modal-error {
    min-height: 20px;
    margin-top: 8px;
    color: #d33c3c;
    font-size: 13px;
    font-weight: 700;
}

.rep-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@keyframes repModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

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


.rep-modal-card-sm {
    width: min(100%, 420px);
    text-align: center;
}

.rep-modal-icon-info {
    background: linear-gradient(180deg, #edf4ff 0%, #dce9ff 100%);
    color: #355cde;
    margin-left: auto;
    margin-right: auto;
}

.rep-modal-card-sm .rep-modal-actions {
    justify-content: center;
}


.rep-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.rep-edit-item {
    min-width: 0;
    background: #f8fbff;
    border: 1px solid #e3edf9;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
}

.rep-edit-label {
    font-size: 12px;
    font-weight: 800;
    color: #6280a3;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rep-edit-value {
    font-size: 19px;
    font-weight: 800;
    color: #405d86;
    word-break: break-word;
    line-height: 1.2;
}

@media (max-width: 560px) {
    .rep-edit-grid {
        grid-template-columns: 1fr;
    }
}


.rep-edit-pos-modal {
    width: min(96vw, 1380px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rep-edit-pos-head {
    margin-bottom: 14px;
}

.rep-edit-topdata {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.rep-edit-grid,
.rep-edit-topdata {
    width: 100%;
}

.rep-edit-item {
    min-width: 0;
    background: #f8fbff;
    border: 1px solid #e3edf9;
    border-radius: 14px;
    padding: 12px 14px;
}

.rep-edit-label {
    font-size: 12px;
    font-weight: 800;
    color: #6280a3;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rep-edit-value {
    font-size: 18px;
    font-weight: 800;
    color: #405d86;
    word-break: break-word;
    line-height: 1.2;
}

.rep-edit-pos-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 360px;
    gap: 14px;
    min-height: 0;
    flex: 1 1 auto;
}

.rep-edit-pos-side,
.rep-edit-pos-products,
.rep-edit-pos-order {
    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    padding: 14px;
    min-height: 0;
    overflow: auto;
}

.rep-edit-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #355070;
    margin-bottom: 12px;
}

.rep-edit-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rep-edit-cat-item {
    background: #35b8c7;
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    padding: 10px 12px;
}

.rep-edit-prod-section+.rep-edit-prod-section {
    margin-top: 18px;
}

.rep-edit-prod-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 900;
    color: #355070;
}

.rep-edit-prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.rep-edit-prod-card {
    border: 1px solid #dbe6f3;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
}

.rep-edit-prod-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.rep-edit-prod-price {
    font-size: 14px;
    font-weight: 800;
    color: #355cde;
}

.rep-edit-order-card,
.rep-edit-pay-card {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border: 1px solid #e3edf9;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
}

.rep-edit-order-card+.rep-edit-order-card,
.rep-edit-pay-card+.rep-edit-pay-card {
    margin-top: 10px;
}

.rep-edit-order-name,
.rep-edit-pay-name {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.rep-edit-order-name small,
.rep-edit-pay-ref {
    display: block;
    margin-top: 4px;
    color: #6b7a90;
    font-size: 12px;
    font-weight: 700;
}

.rep-edit-order-total,
.rep-edit-pay-amount {
    font-size: 14px;
    font-weight: 900;
    color: #355070;
    white-space: nowrap;
}

.rep-edit-empty {
    border: 1px dashed #cfdced;
    border-radius: 14px;
    padding: 12px;
    color: #8ea0b7;
    text-align: center;
    background: #f8fbff;
}

@media (max-width: 1200px) {
    .rep-edit-topdata {
        grid-template-columns: 1fr 1fr;
    }

    .rep-edit-pos-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .rep-edit-topdata {
        grid-template-columns: 1fr;
    }
}


.hidden {
    display: none !important;
}

#modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

#toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 4000;
}

.rep-btn-light {
    background: #ffffff;
    color: #486581;
    border: 1px solid #dbe6f3;
    box-shadow: 0 8px 20px rgba(36, 74, 124, 0.08);
}

.rep-filter {
    position: relative;
}

.rep-filter__trigger {
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rep-filter__menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 92vw);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    padding: 16px;
    z-index: 100;
}

.rep-filter__menu.is-open {
    display: block;
}

.rep-filter__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rep-filter__option {
    width: 100%;
    border: 1px solid #dbe4ee;
    background: #fff;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}

.rep-filter__option:hover,
.rep-filter__option.is-active {
    background: #f8fafc;
    border-color: #94a3b8;
}

.rep-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rep-filter-field--full {
    grid-column: 1 / -1;
}

.rep-filter__footer {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}
/* Mejoras: filtro por método de pago y cancelación con stock */
.rep-metodo-field {
    min-width: 210px;
}

.rep-field select.rep-input,
select.rep-input {
    height: 40px;
    border: 1px solid #cfdced;
    border-radius: 12px;
    padding: 0 14px;
    background: #ffffff;
    color: #43556f;
    box-shadow: inset 0 1px 2px rgba(20, 40, 70, 0.04);
}

.rep-sii-warning {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 16px 0;
}

.rep-sii-warning.is-hidden {
    display: none;
}

.rep-stock-choice {
    border: 1px solid #dbe6f3;
    background: #f8fbff;
    border-radius: 18px;
    padding: 14px;
    margin: 0 0 16px 0;
}

.rep-stock-title {
    font-weight: 800;
    color: #355070;
    margin-bottom: 10px;
}

.rep-stock-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    margin-bottom: 8px;
}

.rep-stock-option:last-child {
    margin-bottom: 0;
}

.rep-stock-option input {
    margin-top: 4px;
}

.rep-stock-option strong {
    display: block;
    color: #334155;
    font-size: 14px;
}

.rep-stock-option small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.35;
}

/* Ordenamiento de columnas */
.rep-sort-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 900;
}

.rep-sort-btn.is-right {
    justify-content: flex-end;
}

.rep-sort-btn:hover,
.rep-sort-btn.is-active {
    color: #244a7c;
}

.rep-sort-icon {
    min-width: 14px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #3b5b84;
    font-size: 12px;
    font-weight: 900;
}

.rep-sort-btn.is-active .rep-sort-icon {
    background: #e4efff;
    color: #1d4ed8;
}

.rep-folio-cliente {
    color: #244a7c;
    font-weight: 900;
}

/* Línea de tiempo del proceso del pedido */
.rep-proceso-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rep-proceso-title span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rep-proceso-title small {
    color: #718096;
    font-size: 12px;
    font-weight: 700;
}

.rep-pedido-proceso {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #dce6f2;
    border-radius: 18px;
    background: linear-gradient(135deg, #fbfdff, #f7f9fd);
}

.rep-proceso-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 76px;
    color: #718096;
    font-weight: 700;
}

.rep-proceso-empty i {
    font-size: 20px;
}

.rep-proceso-context {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

.rep-proceso-context span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid #d8e3f0;
    border-radius: 999px;
    background: #fff;
    color: #41566f;
    font-size: 12px;
}

.rep-proceso-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.rep-proceso-step {
    position: relative;
    min-height: 104px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid #dde6f1;
    border-radius: 15px;
    background: #fff;
    overflow: visible;
}

.rep-proceso-step.is-complete {
    border-color: #b7dfc2;
    background: linear-gradient(135deg, #f8fff9, #eefbf1);
}

.rep-proceso-step.is-pending {
    opacity: .68;
}

.rep-proceso-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #60708a;
    background: #edf2f8;
}

.rep-proceso-step.is-complete .rep-proceso-icon {
    color: #137a2c;
    background: #d8f5df;
}

.rep-proceso-copy strong,
.rep-proceso-copy span,
.rep-proceso-copy small {
    display: block;
}

.rep-proceso-copy strong {
    color: #23344d;
    font-size: 13px;
    line-height: 1.25;
}

.rep-proceso-copy span {
    margin-top: 5px;
    color: #17345b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.rep-proceso-copy small {
    margin-top: 4px;
    color: #7a8799;
    font-size: 11px;
}

.rep-proceso-line {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -13px;
    width: 14px;
    height: 3px;
    border-radius: 999px;
    background: #d5deea;
}

.rep-proceso-step.is-complete .rep-proceso-line {
    background: #62bc76;
}

.rep-proceso-durations {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 13px;
}

.rep-proceso-duration {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #e1e8f1;
    border-radius: 13px;
    background: #fff;
}

.rep-proceso-duration > i {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #5b3fd1;
    background: #eeeafd;
}

.rep-proceso-duration small,
.rep-proceso-duration strong {
    display: block;
}

.rep-proceso-duration small {
    color: #768399;
    font-size: 11px;
}

.rep-proceso-duration strong {
    margin-top: 2px;
    color: #22334c;
    font-size: 13px;
}

.rep-proceso-cancelled {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #f3b4b4;
    border-radius: 12px;
    color: #a61f1f;
    background: #fff5f5;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .rep-proceso-timeline,
    .rep-proceso-durations {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .rep-proceso-line {
        display: none;
    }
}

@media (max-width: 680px) {
    .rep-proceso-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .rep-proceso-timeline,
    .rep-proceso-durations {
        grid-template-columns: 1fr;
    }
}

/* Editor de venta/pedido: estados de carga claros al abrir desde /pedidos. */
.rep-edit-loading-dot{
    width:10px;
    height:10px;
    border-radius:999px;
    display:inline-block;
    background:var(--vase-module-accent, #17765f);
    margin-right:8px;
    box-shadow:0 0 0 6px color-mix(in srgb, var(--vase-module-accent, #17765f) 12%, transparent);
}
.rep-edit-load-error{
    min-height:160px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:8px;
    padding:24px;
    text-align:center;
    color:#b42318;
}
.rep-edit-load-error i{font-size:1.45rem;}
.rep-edit-load-error span{color:#667085;font-size:.9rem;max-width:460px;}

/* 2026-10-14 · Acciones operativas de Reportes unificadas con Pedidos. */
#repBtnConfirmarCancelarVenta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #b91c1c !important;
    color: #ffffff !important;
    border: 1px solid #991b1b !important;
    border-radius: 12px !important;
    padding: 11px 20px !important;
    min-height: 44px !important;
    font-weight: 800 !important;
}
#repBtnConfirmarCancelarVenta:hover,
#repBtnConfirmarCancelarVenta:focus-visible { background: #991b1b !important; color: white !important; }
#repBtnConfirmarCancelarVenta:disabled { opacity: .55 !important; cursor: wait !important; }
#repCorregirPagoModal .rep-pago-card { width: min(620px, 94vw); max-height: 92vh; overflow-y: auto; }
#repCorregirPagoModal .rep-pago-fila {
    display: grid; gap: 10px; margin-bottom: 13px; padding: 14px;
    background: #f8fbff; border: 1px solid #dbe7f3; border-radius: 14px;
}
#repCorregirPagoModal .rep-pago-fila label,
#repCorregirPagoModal .rep-pago-motivo {
    display: grid; gap: 6px; color: #334155; font-weight: 700; font-size: 13px;
}
#repCorregirPagoModal .rep-pago-motivo { margin: 14px 0; }
#repCorregirPagoModal .rep-input,
#repCorregirPagoModal .rep-modal-textarea { width: 100%; box-sizing: border-box; }
#repCorregirPagoModal .rep-modal-actions button { min-height: 44px; }
#repDetalleVentaActions .rep-action-btn[hidden] { display: none !important; }
#repBtnCorregirPago[hidden], #repBtnImprimirVenta[hidden] { display: none !important; }
@media (max-width: 640px) {
    #repDetalleVentaActions { justify-content: stretch !important; }
    #repDetalleVentaActions .rep-action-btn { flex: 1 1 calc(50% - 10px); white-space: normal !important; }
    #repCorregirPagoModal .rep-modal-actions { flex-wrap: wrap; }
}
