/*@media only screen and (min-width : 768px) {
    .is-table-row {
        display: table;
        width:100%;
    }
    .is-table-row [class*="col-"] {
        float: none;
        display: table-cell;
        vertical-align: middle;
    }
}*/

:root {
    --color-primary: #28AFB0;
    --color-secondary: #8B8A89;
    --color-contrast: #ffffff;
    --color-pie-fondo: #28AFB0;
    --color-pie-contrast: #000000;
}

html {
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    background-color: #F0F0F0;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* Scrollbar de página: siempre la misma cuando hay overflow (no depende del hover ni de otro monitor) */
html {
    scrollbar-gutter: stable;
}

html,
body {
    scrollbar-width: thin; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: rgba(120, 120, 120, 0.7);
    border-radius: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.08);
}

form#FormPrincipal,
form[id$='FormPrincipal'] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
}

form#FormPrincipal > .app-shell,
form[id$='FormPrincipal'] > .app-shell {
    flex: 1 1 auto;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.app-main-wrap {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* UpdatePanel en modo Inline renderiza un <span>; lo convertimos en contenedor flex (junto al sidebar). */
.app-layout [id$='updPnlMaster'],
.app-main-wrap [id$='updPnlMaster'] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.app-main-wrap .app-layout {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
    align-items: stretch;
}

.app-main-wrap .app-sidebar {
    align-self: stretch;
}

    body::after {
        content: none;
        display: none;
        height: 0;
        background-color: transparent;
    }

footer {
    position: static;
    width: 100%;
    min-height: 45px;
    height: auto;
    color: var(--color-pie-contrast);
    background-color: var(--color-pie-fondo);
    margin-top: auto;
    margin-bottom: 0;
}

#footer-content {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 12px;
    line-height: 1.2;
}

#footer-content a.footer-empresa-sa-link {
    color: #ffffff !important;
    text-decoration: none !important;
}

#footer-content a.footer-empresa-sa-link:hover,
#footer-content a.footer-empresa-sa-link:visited,
#footer-content a.footer-empresa-sa-link:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

#footer-content img,
#footer-content image {
    height: 25px !important;
    width: auto !important;
}

/* Cierre de hueco residual bajo footer por cascada legacy/Bootstrap */
html,
body,
form#FormPrincipal,
form[id$='FormPrincipal'],
form#FormPrincipal > .app-shell,
form[id$='FormPrincipal'] > .app-shell {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Forzado contra el DOM final de WebForms: asegura sticky-footer real. */
body > form {
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

body > form > .app-shell {
    flex: 1 1 auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body > form > .app-shell > .app-main-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

body > form > .app-shell > footer {
    margin-top: auto !important;
}

/* Fallback: ensure modal container does not occupy layout space */
#ModalGeneral {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
}

#ModalGeneral.show {
    display: block;
}

/* These overlays exist after footer in markup; keep them out of normal layout flow */
#light,
#fade,
#spinnerOverlay {
    position: fixed !important;
    inset: 0;
    margin: 0 !important;
}

a#olvido_pass.linkSub {
 text-decoration: underline;
}

h5.tituloColumnLeft, p.tituloColumnLeft{
    color: white;
    text-align: right;
    
}
p.tituloColumnLeft{
    margin-bottom:0px;
    background-color: var(--color-contrast);
    padding-right: 3px;
    font-weight:bold;
}
/*.columnaPersonalizada {
    height:27px;
    background-color:#8b8a89;
}*/

div.personalizarColumnRight {
     padding-left: 0px;
     padding-right: 0px;
}

.columnaCentral {
    background-color: white;    
}

img.img-responsive-personalizado{
    width:100%;
}

@media only screen and (min-width : 768px) {
    .personalizarFilaContentMain {
        overflow: hidden;
    }

    .row.personalizarFilaContentMain [class*="col-"] {
        margin-bottom: -99999px;
        padding-bottom: 99999px;
    }
     .row.vertical-align{
         display: flex;
        align-items: center;
    }
}

span.lblDescripcionMaster {
  display:block;
  margin-bottom:10px;
}

a.tooltip, a.tooltip > img.tooltip{
    position:relative;
    opacity:1;
}

.tooltip {
    display:inline;
}
/*
.datagrid_view_scrollBar{
    overflow-x: auto;

}*/

 a.link:last-child{
    border-right:none;
}

.vcenter {
text-align:right;
}

.chracterA {
    border-bottom: 5px solid #E6E6E6;
    border-left: 5px solid #E6E6E6;
    border-right: 5px solid #E6E6E6;
    border-top: 30px solid #E6E6E6;
}

.chracter {
    /*border:5px solid #E6E6E6;*/
    border: 5px solid #0000FF;
    /*background-color: #E6E6E6;*/
}

.DFCell {
    padding-right: 5px;
}

.btn-info{
    color:white;
    background-color: var(--color-primary);
}
.btn-info:hover {
    color: white;
    background-color: var(--color-secondary);
}

.btn-info:focus {
    color: white;
    background-color: var(--color-secondary);
}

.btn-info:active {
    color: white;
    background-color: red;
}

/* 
.btn {
    color: white;
    background-color: #00BCD4; 
}

    .btn:hover {
        color: white;
        background-color: dodgerblue;
    }
    .btn:focus {
        color: white;
        background-color: #00ACC4;
    }
    .btn:active {
        color: white;
        background-color: red;
    }
.button:active {
    background-color: rgb(200, 255, 0);
}

.btn-danger{
    color: white;
    background-color: red;
}
    */

.navbar.navbar-inverse .navbar-brand {
    font-weight: normal;
    font-size: 1rem;
    color: var(--color-primary);
}

.navbar.navbar-inverse .navbar-nav > li {
    font-weight: normal;
    font-size: 1rem;
    color: var(--color-primary);
}
.logo {
    padding: 1px 1px 1px 1px;
    height: 40px;
}

.altoFila {
    margin: 5px;
}

.notice {
    padding: 8px;
    background-color: #fafafa;
    border-left: 6px solid #7f7f84;
    -webkit-box-shadow: 0 5px 8px -6px rgba(0,0,0,.2);
    -moz-box-shadow: 0 5px 8px -6px rgba(0,0,0,.2);
    box-shadow: 0 5px 8px -6px rgba(0,0,0,.2);
}

.notice-success {
    border-color: #80D651;    
}

    .notice-success > strong {
        color: #80D651;
    }

.notice-info {
    border-color: #45ABCD;
}

    .notice-info > strong {
        color: #45ABCD;
    }

.notice-warning {
    border-color: #FEAF20;
}

    .notice-warning > strong {
        color: #FEAF20;
    }

.notice-danger {
    border-color: #d73814;
}

    .notice-danger > strong {
        color: #d73814;
    }

.estado {
    border-style: solid;
    border-width: 2px;
}
.estado-pagado {
    border-color: green;
}
.estado-procesando {
    border-color: green;
}
.estado-enpago {
    border-color: orange;
}
.estado-vencido {
    border-color: red;
}
.estado-avencer {
    border-color: yellowgreen;
}
.estado-enfecha {
    border-color: yellowgreen;
}

.li{
    max-width:100px;
}

.CheckboxList1 {
    font-size: 14px;
}

.CheckboxList1 tr{
    display: inline-block;
    margin-right: 20px;
}

.CheckboxList1 label{
    align-items: flex-start;
    text-align: start;
    display: inline-block;
}

.CheckboxList1 input {
        float: left;
        clear: both;
    }


.modal2 {
    position: fixed;
    z-index: 999;
    height: 100%;
    width: 100%;
    top: 0;
    background-color: Black;
   opacity: 0.6;
   filter: opacity(60);
}

.modal2-center {
    z-index: 1000;
    margin: 300px auto;
    padding: 10px;
    width: 200px;
    background-color: black;
    border-radius: 10px;
    opacity: 0.6;
    filter: opacity(60);
  
}

    .center img {
        height: 250px;
        width: 250px;
    }
#progressBackgroundFilter {
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    overflow: hidden;
    padding: 0px;
    margin: 0px;
    background-color: blue;
    filter: opacity(50);
    opacity: 0.5;
    z-index: 1000;
    height: 100%;
    width: 100%;
}

#processMessage {
    position: fixed;
    /* top: 30%; */
    left: 43%;
    padding: 10px;
    width: 14%;
    z-index: 1001;
    background-color: black;
    border: solid 1px #000;
    top: 30%;
    filter: opacity(50);
    opacity: 0.5;
}

.datagrid_view_scrollBar {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

/* Asegura que la tabla tenga un ancho mínimo para evitar cortes */
.datagrid_view_scrollBar table {
    min-width: 1000px; /* Ajustalo según tus columnas */
    border-collapse: collapse;
}

/* Estilo para columnas */
.datagrid_view_scrollBar td,
.datagrid_view_scrollBar th {
    padding: 8px;
    min-width: 120px;
    /* text-align: left; */
}

/* Evita que los TextBox se achiquen demasiado */
.datagrid_view_scrollBar input[type="text"] {
    min-width: 100px;
    max-width: 100%;
    box-sizing: border-box;
}

.bg-info-custom {
    background-color: var(--color-primary) !important;
    color: #fff !important; /* texto blanco */
}

.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

.bg-secondary-custom {
    background-color: var(--color-secondary) !important;
    color: var(--color-contrast) !important;
}

.bg-secondary-custom td,
.bg-secondary-custom a,
.bg-secondary-custom span {
    color: var(--color-contrast) !important;
}

.text-primary-custom {
    color: var(--color-primary) !important;
}

.text-contrast-custom {
    color: var(--color-contrast) !important;
}

.border-contrast-custom {
    border-color: var(--color-contrast) !important;
}

/* Títulos de sección de las grillas: alineados con el inicio de la tabla */
.titulo-seccion-grilla {
    text-align: left !important;
    font-weight: bold;
    margin: 0.3rem 0 0.2rem 0;
}

/* Columnas de acciones de la grilla de productos (íconos compactos) */
.col-icono-accion {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    white-space: nowrap !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
    text-align: center !important;
}

.datagrid_view_scrollBar td.col-icono-accion,
.datagrid_view_scrollBar th.col-icono-accion {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
}

/* Columna de acciones unificada de dgrProducto (eliminar + ingreso + check). */
.datagrid_view_scrollBar td.col-acciones-producto,
.datagrid_view_scrollBar th.col-acciones-producto {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    text-align: right !important;
}

/* Columna de acciones de una sola acción (+ / eliminar). */
.datagrid_view_scrollBar td.col-acciones-grilla,
.datagrid_view_scrollBar th.col-acciones-grilla {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* DataGrid headers: primary color + contrast text (overrides inline BackColor from .aspx) */
table.table-hover th,
table.table-hover tr th {
    background-color: var(--color-primary) !important;
    color: var(--color-contrast) !important;
}

/* ------------------------------------------------------------
   Skin visual reutilizable para grillas (primera adopcion: Sus Pagos)
   Uso futuro: aplicar contenedor .sus-pagos-modern o equivalente
   + clases .sp-table-shell y .sp-table sobre la DataGrid.
------------------------------------------------------------- */
.sus-pagos-modern .sp-title {
    color: #2f3d57;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: left !important;
    margin-bottom: 0.15rem;
}

.sus-pagos-modern .sp-subtitle {
    display: block;
    margin: 0;
    color: #5f6f89;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.sus-pagos-modern .accordion-button.bg-secondary-custom {
    background-color: #a7b8c4 !important;
    border-radius: 10px !important;
    border: 1px solid #d9e0e7;
    font-weight: 600;
}

.sus-pagos-modern .accordion-button:not(.collapsed) {
    box-shadow: none;
}

.sus-pagos-modern .input-group-text {
    border-color: #d8dde5;
    background-color: #f8fafc;
    color: #50607a;
}

.sus-pagos-modern .select,
.sus-pagos-modern .form-control {
    border-color: #d8dde5;
    color: #4b5872;
    box-shadow: none;
}

.sus-pagos-modern .sp-table-shell {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(39, 62, 96, 0.07);
    padding: 0;
    overflow: hidden;
}

/* Tabla Sus Pagos: anula scroll global (.datagrid_view_scrollBar min-width 1000px, nowrap) */
.sus-pagos-modern .datagrid_view_scrollBar {
    overflow-x: auto;
    white-space: normal;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.sus-pagos-modern .datagrid_view_scrollBar table.sp-table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100%;
    table-layout: auto;
}

.sus-pagos-modern .datagrid_view_scrollBar td,
.sus-pagos-modern .datagrid_view_scrollBar th {
    min-width: 0 !important;
    white-space: nowrap !important;
    word-break: normal;
    overflow-wrap: normal;
}

.sus-pagos-modern .datagrid_view_scrollBar td:has(input[type="image"]),
.sus-pagos-modern .datagrid_view_scrollBar th:has(input[type="image"]),
.sus-pagos-modern .datagrid_view_scrollBar td.sp-col-export,
.sus-pagos-modern .datagrid_view_scrollBar th.sp-col-export {
    white-space: nowrap;
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    padding-left: 4px !important;
    padding-right: 4px !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.sus-pagos-modern .datagrid_view_scrollBar td.sp-col-export input[type="image"] {
    width: 18px !important;
    height: auto;
    padding: 0;
    margin: 0 1px;
}

.sus-pagos-modern .datagrid_view_scrollBar td.sp-col-select,
.sus-pagos-modern .datagrid_view_scrollBar th.sp-col-select {
    width: 40px;
    min-width: 40px !important;
    max-width: 40px;
    padding: 8px 6px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.sus-pagos-modern .datagrid_view_scrollBar td.sp-col-select .grillaCheckbox {
    margin: 0;
    transform: scale(1);
}

.sus-pagos-modern .datagrid_view_scrollBar tr td.bg-secondary-custom {
    white-space: normal !important;
    word-break: break-word;
}

.sus-pagos-modern .sp-table {
    margin-bottom: 0;
    border-collapse: separate !important;
    border-spacing: 0;
    background-color: transparent;
}

.sus-pagos-modern .sp-table > thead > tr > th,
.sus-pagos-modern .sp-table tr th.bg-primary-custom,
.sus-pagos-modern .sp-table tr td.bg-primary-custom {
    background-color: var(--color-primary) !important;
    color: var(--color-contrast) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    white-space: nowrap;
}

.sus-pagos-modern .sp-table tr th.bg-primary-custom *,
.sus-pagos-modern .sp-table tr td.bg-primary-custom * {
    color: var(--color-contrast) !important;
}

/* DataGrid puede aplicar la clase de header sobre el <tr>; cubrir ese caso tambien */
.sus-pagos-modern .sp-table tr.bg-primary-custom > th,
.sus-pagos-modern .sp-table tr.bg-primary-custom > td,
.sus-pagos-modern .sp-table tr.altoFila > th,
.sus-pagos-modern .sp-table tr.altoFila > td {
    background-color: var(--color-primary) !important;
    color: var(--color-contrast) !important;
}

.sus-pagos-modern .sp-table tr.bg-primary-custom > th *,
.sus-pagos-modern .sp-table tr.bg-primary-custom > td *,
.sus-pagos-modern .sp-table tr.altoFila > th *,
.sus-pagos-modern .sp-table tr.altoFila > td * {
    color: var(--color-contrast) !important;
}

.sus-pagos-modern .sp-table > tbody > tr > td {
    color: var(--color-primary);
    border-top: 1px solid #edf1f6 !important;
    vertical-align: middle !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    background-color: #ffffff;
    white-space: nowrap;
}

.sus-pagos-modern .sp-table > tbody > tr:hover > td {
    background-color: #f9fbff !important;
}

.sus-pagos-modern .sp-table > tbody > tr > td.sp-col-codi {
    padding-left: 12px !important;
    font-weight: 700;
    color: var(--color-primary);
}

.sus-pagos-modern .sp-table > thead > tr > th.sp-col-codi {
    padding-left: 12px !important;
}

.sus-pagos-modern .sp-table > thead > tr > th.sp-col-estado,
.sus-pagos-modern .sp-table > tbody > tr > td.sp-col-estado {
    width: 76px;
    max-width: 76px;
    white-space: nowrap;
}

.sus-pagos-modern .sp-table > thead > tr > th.sp-col-fecha-libe,
.sus-pagos-modern .sp-table > tbody > tr > td.sp-col-fecha-libe {
    width: 94px;
    max-width: 94px;
    white-space: nowrap;
}

.sus-pagos-modern .sp-table > thead > tr > th.sp-col-total,
.sus-pagos-modern .sp-table > tbody > tr > td.sp-col-total {
    width: 86px;
    max-width: 86px;
    white-space: nowrap;
}

.sus-pagos-modern .sp-table img {
    opacity: 0.92;
}

.sus-pagos-modern .sp-table img:hover {
    opacity: 1;
}

.sus-pagos-modern .sp-table .bg-secondary-custom,
.sus-pagos-modern .sp-table .bg-secondary-custom a,
.sus-pagos-modern .sp-table .bg-secondary-custom span {
    background-color: var(--color-contrast) !important;
    color: #ffffff !important;
    border-color: var(--color-contrast) !important;
    font-weight: 600;
}

.sus-pagos-modern .sp-table td a,
.sus-pagos-modern .sp-table td span {
    color: inherit;
}

.sus-pagos-modern .sp-filter-toggle {
    border: 1px solid #d8e0ea;
    background-color: #f7f9fc;
    color: #3f5478;
    font-weight: 600;
    border-radius: 10px;
    min-width: 105px;
}

.sus-pagos-modern .sp-filter-toggle:hover,
.sus-pagos-modern .sp-filter-toggle:focus {
    background-color: #eef3f9;
    color: #334a70;
    box-shadow: none;
}

.sus-pagos-modern .sp-top-filters-row {
    flex-wrap: nowrap;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.sus-pagos-modern .sp-leyenda-wrap {
    margin-top: 0.15rem;
    margin-bottom: 0.2rem;
}

.sus-pagos-modern .sp-company-group {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
}

.sus-pagos-modern .sp-company-group .input-group-text {
    white-space: nowrap;
    flex: 0 0 auto;
}

.sus-pagos-modern .sp-company-select {
    width: 100% !important;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
}

.sus-pagos-modern .sp-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.45rem;
    min-height: 42px;
}

.sus-pagos-modern .sp-export-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.sus-pagos-modern .sp-export-btn {
    padding: 4px;
    border-radius: 8px;
    vertical-align: middle;
    opacity: 0.92;
}

.sus-pagos-modern .sp-export-btn:hover {
    opacity: 1;
    background-color: rgba(58, 86, 135, 0.08);
}

.sus-pagos-modern .sp-filters-dropdown {
    display: inline-block;
    flex-shrink: 0;
}

.sus-pagos-modern .sp-filters-menu {
    min-width: 520px;
    max-width: 92vw;
    padding: 0.55rem;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(39, 62, 96, 0.12);
}

.sus-pagos-modern .sp-filters-body {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
}

.sus-pagos-modern .sp-filters-collapse {
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(39, 62, 96, 0.08);
    background: #ffffff;
    margin-bottom: 0.55rem;
}

.sus-pagos-modern .sp-search-button-wrap {
    text-align: right;
}

.sus-pagos-modern .sp-filters-menu .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.sus-pagos-modern .sp-filters-menu .input-group {
    width: 100%;
}

.sus-pagos-modern .sp-filters-menu .sp-search-button-wrap {
    text-align: right;
    padding-top: 0.2rem;
    padding-bottom: 0.1rem;
}

@media (max-width: 767px) {
    .sus-pagos-modern .sp-top-filters-row {
        align-items: center;
    }

    .sus-pagos-modern .sp-filter-toggle {
        width: auto;
        min-width: 92px;
        margin-top: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .sus-pagos-modern .sp-filters-menu {
        min-width: 280px;
        max-width: calc(100vw - 28px);
    }

    .sus-pagos-modern .sp-search-button-wrap {
        text-align: left;
        padding-top: 0.3rem;
    }

    .sus-pagos-modern .sp-table-shell {
        border-radius: 10px;
    }

    .sus-pagos-modern .datagrid_view_scrollBar td,
    .sus-pagos-modern .datagrid_view_scrollBar th {
        padding: 10px 6px !important;
        font-size: 12.5px;
    }

    .sus-pagos-modern .datagrid_view_scrollBar th.bg-primary-custom,
    .sus-pagos-modern .sp-table > thead > tr > th {
        font-size: 10px;
        letter-spacing: 0.12px;
    }
}

.panel-control-modern,
.panel-section {
    max-width: 1240px;
    margin: 0 auto;
}

.panel-section {
    max-width: none;
    margin: 0;
}

.pc-title {
    color: #2f3d57;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
}

.pc-subtitle {
    color: #5f6f89;
    font-size: 15px;
    font-weight: 500;
}

.pc-date-pill {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 10px;
    color: #5f6f89;
    font-weight: 600;
    padding: 9px 14px;
}

.pc-kpi-card {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(39, 62, 96, 0.07);
    padding: 18px 20px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.pc-kpi-label {
    color: #6e7f99;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.pc-kpi-value {
    color: #1d2738;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 700;
}

.pc-kpi-card-danger .pc-kpi-value {
    color: #d9534f;
}

.pc-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.pc-module-link {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(39, 62, 96, 0.07);
    text-decoration: none;
    padding: 14px 38px 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    position: relative;
    min-height: 96px;
}

.pc-module-link:hover {
    border-color: var(--color-secondary);
}

.pc-module-link:after {
    content: "\2192";
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: #6e7f99;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.pc-module-title {
    font-weight: 700;
    color: #2f3d57;
}

.pc-module-desc {
    color: #6e7f99;
    font-size: 13px;
}

.pc-back-link {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #2f3d57;
}

.panel-filters {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(39, 62, 96, 0.07);
    padding: 14px;
}

.panel-table-wrap {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(39, 62, 96, 0.07);
    overflow: hidden;
}

.panel-table > thead > tr > th {
    color: #6e7f99;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-bottom: 1px solid #edf1f6;
    white-space: nowrap;
}

.panel-table > tbody > tr > td {
    color: #3f4f67;
    border-bottom: 1px solid #edf1f6;
}

.sus-pagos-modern .sp-filters-body .form-label {
    display: block;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #2f3d57;
}

.sus-pagos-modern .sp-filters-body .row > [class*="col-"] {
    text-align: left;
}

@media (max-width: 991px) {
    .pc-title {
        font-size: 32px;
    }

    .pc-kpi-value {
        font-size: 36px;
    }
}

/* ============================================================
   Títulos de página: alineados a la izquierda
   ============================================================ */

[id$="divTitulo"] {
    text-align: left !important;
    margin-bottom: 0 !important;
}

/* Fila de barra de título: título + empresa + filtros en la misma línea */
.app-barra-titulo {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
    /* neutralizar los márgenes negativos del .row de Bootstrap */
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Misma sangría horizontal que .container-fluid (p. ej. Administración) */
.columnaCentral > .app-barra-titulo,
[id$='contenidoP'] > .app-barra-titulo {
    padding-left: 15px;
    padding-right: 15px;
}

/* Bootstrap 5 aplica width:100% a todos los hijos de .row — lo anulamos */
.app-barra-titulo > * {
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0;
}

/* El col del título: ocupa solo el ancho natural del texto */
.app-barra-titulo > .col-titulo {
    flex: 0 0 auto;
    padding-bottom: 0 !important;
    padding-right: 0 !important;
}

/* Combo de empresa: puede encogerse para no pisar acciones / filtros */
.app-barra-titulo > .app-empresa-inline {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: min(380px, 50vw) !important;
}

/* Bloque derecho: razón social + acciones masivas + Filtros (armado en Site.Master) */
.app-barra-titulo > .app-barra-titulo-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: auto !important;
}

.app-empresa-inline .input-group {
    margin: 0 !important;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
}

.app-empresa-inline .input-group-text {
    flex-shrink: 0;
}

.app-empresa-inline select.select,
.app-empresa-inline select.form-select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ver / descarga masiva — entre Razón Social y Filtros (Filtros se agrega al final vía Site.Master) */
.app-barra-titulo > .app-barra-acciones-masivas {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.app-barra-acciones-masivas .btn,
.app-barra-acciones-masivas input[type="image"] {
    vertical-align: middle;
}

/* Botón Filtros — pegado al bloque derecho (empresa / acciones masivas) */
.app-barra-titulo > .app-filtros-btn-wrapper {
    flex: 0 0 auto;
}

/* Mobile */
@media (max-width: 767px) {
    .app-barra-titulo {
        flex-wrap: wrap !important;
    }
    .app-barra-titulo > .app-empresa-inline {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .app-empresa-inline {
        flex: 0 0 100%;
    }
    .app-empresa-inline .input-group {
        max-width: 100%;
    }
    .app-barra-titulo > .app-barra-titulo-toolbar {
        margin-left: auto !important;
    }
}

.app-filtros-btn {
    background-color: var(--color-primary) !important;
    color: var(--color-contrast) !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0.3rem 0.75rem;
    transition: opacity 0.15s ease;
}

.app-filtros-btn:hover,
.app-filtros-btn:focus {
    opacity: 0.82;
    color: var(--color-contrast) !important;
    outline: none;
    box-shadow: none;
}

a.app-filtros-btn,
a.app-filtros-btn:visited {
    text-decoration: none !important;
}

a.app-filtros-btn:hover span,
a.app-filtros-btn:focus span {
    text-decoration: none;
}

/* Variante inactiva (p. ej. pestañas Composición / Resumen en cuenta corriente) */
.app-filtros-btn.app-filtros-btn--inactive {
    background-color: #fff !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;
    opacity: 1;
}

.app-filtros-btn.app-filtros-btn--inactive:hover,
.app-filtros-btn.app-filtros-btn--inactive:focus {
    opacity: 0.82;
    color: var(--color-primary) !important;
}

/* Ocultar el header del acordeón original cuando se usa el botón de filtros */
.accordion-header.app-filtros-hidden {
    display: none !important;
}

/*
 * FOUC: las páginas de listado usan #accordionFlushExample con cabecera celeste (inline o Bootstrap).
 * Site.Master solo añade .app-filtros-hidden en DOMContentLoaded, así que antes se veía un parpadeo.
 * Ocultar la cabecera desde el CSS del primer paint; el botón "Filtros" en la barra sigue usando .accordion-button en el DOM.
 */
#accordionFlushExample > .accordion-item > .accordion-header {
    display: none !important;
}

/* Bloque título + subtítulos (fechas debajo del h1, texto descriptivo al final) */
.app-page-titulo-stack {
    display: block;
    flex: 1 1 auto !important;
    min-width: 0;
    max-width: 100%;
}

/*
 * Listados con título apilado (cartera, cobranzas, ventas):
 * h1 y barra de acciones (Filtros) en la misma fila; subtítulos debajo a ancho completo.
 * display:contents evita que el texto largo del subtítulo empuje el botón a otra línea.
 */
.app-page-header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
    flex-wrap: nowrap !important;
}

.app-page-header-row > .app-page-titulo-stack {
    display: contents;
}

.app-page-header-row > .app-page-titulo-stack > [id$="divTitulo"],
.app-page-header-row > .app-page-titulo-stack > h1,
.app-page-header-row > .app-page-titulo-stack > h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    margin-bottom: 0 !important;
}

.app-page-header-row > #barraAcciones,
.app-page-header-row > .app-page-header-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    flex-shrink: 0;
    width: auto !important;
    max-width: none !important;
}

.app-page-header-row .app-page-subtitle,
.app-page-header-row .app-page-desc-static,
.app-page-header-row .app-page-listado-desc,
.app-page-header-row > .app-page-titulo-stack > p {
    grid-column: 1 / -1;
    width: 100%;
}

.app-page-header-row > .col,
.app-page-header-row > .col-auto {
    width: auto !important;
    max-width: none !important;
}

/* Subtítulo dinámico (fechas) y texto descriptivo estático: mismo estilo */
.app-page-subtitle,
.app-page-listado-desc {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: #5f6f89;
    margin: 0.1rem 0 0.35rem 0;
    text-align: left;
}

.app-page-subtitle + .app-page-desc-static,
.app-page-subtitle + .app-page-listado-desc {
    margin-top: 0.15rem;
}

.app-page-desc-static {
    margin-bottom: 0.75rem;
}

/* ============================================================
   Diseño redondeado global: tablas, botones, filtros
   ============================================================ */

/* Contenedor de tabla DataGrid */
.datagrid_view_scrollBar {
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    overflow-x: auto;
    /* Sin position/z-index para no crear contexto de apilamiento que tape el calendario */
}

/* Esquinas redondeadas en la propia tabla (sin overflow:hidden en el wrapper) */
.datagrid_view_scrollBar table.table-hover {
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0;
}
.datagrid_view_scrollBar table.table-hover tr:first-child th:first-child,
.datagrid_view_scrollBar table.table-hover tr:first-child td:first-child {
    border-top-left-radius: 12px;
}
.datagrid_view_scrollBar table.table-hover tr:first-child th:last-child,
.datagrid_view_scrollBar table.table-hover tr:first-child td:last-child {
    border-top-right-radius: 12px;
}
.datagrid_view_scrollBar table.table-hover tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.datagrid_view_scrollBar table.table-hover tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Calendario Ajax Control Toolkit
   Mantener tamaños/coords del Calendar.css oficial; si cambian height/padding del grid,
   el borde azul (.ajax__calendar_active) queda corrido. Se amplía todo con scale. */
.ajax__calendar {
    z-index: 99999 !important;
    overflow: visible !important;
}

.ajax__calendar,
.ajax__calendar * {
    box-sizing: content-box !important;
}

.ajax__calendar .ajax__calendar_container {
    width: 170px !important;
    max-width: none !important;
    padding: 4px !important;
    overflow: visible !important;
    font-size: 11px !important;
    transform-origin: left top !important;
    transform: scale(1.16) !important;
}

.ajax__calendar .ajax__calendar_body {
    height: 139px !important;
    width: 170px !important;
    min-width: 0 !important;
    margin: auto !important;
    overflow: hidden !important;
    position: relative !important;
}

.ajax__calendar .ajax__calendar_days,
.ajax__calendar .ajax__calendar_months,
.ajax__calendar .ajax__calendar_years {
    height: 139px !important;
    width: 170px !important;
    max-width: none !important;
    left: 0 !important;
    top: 0 !important;
    margin: auto !important;
}

.ajax__calendar .ajax__calendar_days table {
    width: auto !important;
    font-size: 11px !important;
}

.ajax__calendar .ajax__calendar_container table,
.ajax__calendar .ajax__calendar_container td {
    font-size: 11px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ajax__calendar .ajax__calendar_header {
    height: 20px !important;
    padding: 0 !important;
    font-size: 11px !important;
}

.ajax__calendar .ajax__calendar_title {
    font-size: inherit !important;
}

.ajax__calendar .ajax__calendar_footer {
    overflow: visible !important;
    margin-top: 2px !important;
    padding-bottom: 2px !important;
}

.ajax__calendar .ajax__calendar_today {
    font-size: 11px !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
    line-height: 1.35 !important;
}

.ajax__calendar .ajax__calendar_dayname {
    height: 17px !important;
    padding: 0 2px !important;
    text-align: right !important;
    width: 17px !important;
    font-size: 11px !important;
}

.ajax__calendar .ajax__calendar_day,
.ajax__calendar .ajax__calendar_month,
.ajax__calendar .ajax__calendar_year {
    font-size: 11px !important;
}

.ajax__calendar .ajax__calendar_day {
    cursor: pointer !important;
    height: 17px !important;
    padding: 0 2px !important;
    text-align: right !important;
    width: 18px !important;
}

.ajax__calendar .ajax__calendar_active .ajax__calendar_day {
    background-color: #edf9ff !important;
    border-color: #0066cc !important;
    color: #0066cc !important;
}

/* Sección de filtros: sobre la tabla pero sin crear contexto que tape el calendario */
.accordion {
    position: relative;
    z-index: 5;
}

/* Botones */
.btn {
    border-radius: 8px !important;
}

/* Inputs de texto y selects */
.form-control,
select.select,
select.form-control,
input[type="text"].form-control,
input[type="password"].form-control,
input[type="search"].form-control,
textarea.form-control {
    border-radius: 8px !important;
}

/* Input groups (label + input juntos): redondear extremos */
.input-group {
    border-radius: 8px !important;
}

.input-group > .input-group-text:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group > .form-control:last-child,
.input-group > select:last-child,
.input-group > .input-group-text:last-child,
.input-group > .dc-combo-search:last-child .dc-combo-search-input {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Listados (cartera, cobranzas): una fila; combos no estiran al máximo */
.consulta-cartera-filtros,
.consulta-cobranzas-filtros {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.consulta-cartera-filtros .input-group,
.consulta-cobranzas-filtros .input-group {
    flex-wrap: nowrap;
}

/* Misma letra que el resto del formulario; padding uniforme y un poco más ajustado en la fila */
.consulta-cartera-filtros .input-group .input-group-text,
.consulta-cobranzas-filtros .input-group .input-group-text {
    padding: 0.375rem 0.65rem;
    white-space: nowrap;
}

.consulta-cartera-filtros .input-group > select.select,
.consulta-cobranzas-filtros .input-group > select.select {
    flex: 0 1 auto !important;
    width: auto !important;
}

/* Fechas: menos ancho (valor corto), sin cambiar font-size; ch escala con la fuente del sitio */
.consulta-cartera-fecha-input.form-control,
.consulta-cobranzas-fecha-input.form-control {
    min-width: 11ch !important;
    flex: 0 0 auto !important;
    width: auto !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Acordeón de búsqueda (caja de filtros) */
.accordion-item {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.accordion-button {
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.accordion-collapse.show {
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

/* Grilla con columnas ajustadas al contenido */
.datagrid-autofit table {
    table-layout: auto !important;
    width: max-content !important;
    min-width: 100% !important;
}
.datagrid-autofit td,
.datagrid-autofit th {
    white-space: nowrap;
    min-width: unset !important;
    padding: 6px 10px;
}

.datagrid-autofit-saldo table {
    table-layout: auto !important;
    width: 100% !important;
}


/* Botón primario usando el color dinámico de la empresa */
.btn-primary-custom {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-contrast) !important;
}
.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-primary-custom:active {
    filter: brightness(0.88);
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-contrast) !important;
}

/* Perfil: etiquetas flotantes y foco con color primario */
.perfil-form .form-floating > label {
    color: var(--color-primary) !important;
}
.perfil-form .form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-primary) 25%, transparent) !important;
}

/* Contacto (Sugerencias): brillo/foco con color secundario (empresa).
   Bootstrap 5 define .form-floating > .form-control:focus después de esta hoja;
   hay que igualar o superar esa especificidad o el foco sigue azul del CDN. */
.sugerencias-contacto-form .form-floating > .form-control:focus,
.sugerencias-contacto-form .form-floating textarea.form-control:focus,
.sugerencias-contacto-form .input-group.form-floating > .form-control:focus,
.sugerencias-contacto-form .form-floating > .form-control:focus-visible,
.sugerencias-contacto-form .form-floating textarea.form-control:focus-visible,
.sugerencias-contacto-form .input-group.form-floating > .form-control:focus-visible {
    border-color: var(--color-secondary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-secondary) 32%, transparent) !important;
}
.sugerencias-contacto-form.needs-validation.bg-white.shadow,
.sugerencias-contacto-form form.needs-validation.bg-white.shadow,
.sugerencias-contacto-form div.bg-white.shadow {
    box-shadow: 0 0.25rem 0.5rem color-mix(in srgb, var(--color-secondary) 18%, transparent),
        0 0.5rem 1.25rem color-mix(in srgb, var(--color-secondary) 12%, transparent) !important;
}

/* Detalle comprobante: columnas equitativas; íconos/validación forman parte del ancho del grupo */
.detalle-comprobante-form .row.d-flex > [class*="col-"] {
    min-width: 0;
}

.detalle-comprobante-form .input-group {
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

.detalle-comprobante-form .input-group > .form-control,
.detalle-comprobante-form .input-group > select.form-select,
.detalle-comprobante-form .input-group > select.form-control {
    min-width: 0;
    flex: 1 1 auto;
}

.detalle-comprobante-form .input-group > .input-group-text {
    flex-shrink: 0;
}

.detalle-comprobante-form .input-group > .btn,
.detalle-comprobante-form .input-group > span.btn,
.detalle-comprobante-form .input-group > a.btn {
    flex-shrink: 0;
}

/* Detalle comprobante: brillo/foco de campos con color secundario (empresa) */
.detalle-comprobante-page .detalle-comprobante-form .form-control:focus,
.detalle-comprobante-page .detalle-comprobante-form select:focus,
.detalle-comprobante-page .detalle-comprobante-form textarea:focus {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-secondary) 32%, transparent) !important;
}

/* Filas con columnas que ASP.NET puede no renderizar (Visible=false): reparto equitativo del 100 % */
.detalle-comprobante-form .row.dc-form-row-equal {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.detalle-comprobante-form .row.dc-form-row-equal > [class*="col-"] {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
}

/* Detalle comprobante: tabs — Bootstrap solo aplica display:none a .tab-content > .tab-pane.
   Conceptos e Impuestos quedan dentro de wrappers server (wrapTabPane*), así que esos .tab-pane
   dejan de ser hijos directos y no se ocultaban: ocupaban espacio encima de la pestaña Productos. */
.detalle-comprobante-page #dcDetalleTabContent .tab-pane:not(.show) {
    display: none !important;
}

.detalle-comprobante-page #dcDetalleTabContent .tab-pane.show {
    display: block !important;
}

/* Detalle comprobante: cabecera 8+4 con PDF acotado; grillas col-12 a ancho completo */
.detalle-comprobante-page .dc-detalle-top {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-left: -15px;
    margin-right: -15px;
}

.detalle-comprobante-page .dc-detalle-top > [class*="col-"] {
    float: none;
    padding-left: 15px;
    padding-right: 15px;
}

.detalle-comprobante-page .dc-detalle-form-col {
    min-width: 0;
}

.detalle-comprobante-page .dc-detalle-pdf-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.detalle-comprobante-page .dc-detalle-header-titulo-row {
    width: 100%;
}

.detalle-comprobante-page .dc-detalle-header-text h1 {
    margin-bottom: 0.15rem;
}

.detalle-comprobante-page .dc-detalle-header-subtitulo {
    margin-bottom: 0;
}

.detalle-comprobante-page .dc-detalle-header-toolbar {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.35rem;
}

.detalle-comprobante-page .dc-detalle-header-toolbar .dc-save-status {
    white-space: nowrap;
}

.detalle-comprobante-page .dc-detalle-header-toolbar .dc-btn-back {
    flex-shrink: 0;
    white-space: nowrap;
}

.detalle-comprobante-page .dc-remitos-accordion-host {
    margin-bottom: 0.25rem;
}

.detalle-comprobante-page .dc-remitos-collapse-inner {
    margin-top: 0.15rem;
}

.detalle-comprobante-page .dc-sin-remitos-msg {
    background-color: #ffffff;
    color: #333;
}

.detalle-comprobante-page .dc-detalle-pdf-visor {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 400px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.detalle-comprobante-page .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.detalle-comprobante-page .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.detalle-comprobante-page .dc-detalle-pdf-visor object,
.detalle-comprobante-page .dc-detalle-pdf-visor iframe {
    flex: 1 1 auto;
    display: block;
    width: calc(100% + 20px) !important;
    max-width: none;
    min-height: 0;
    max-height: 100%;
    margin-right: -20px;
    border: 0;
    box-sizing: border-box;
}

.detalle-comprobante-page .dc-detalle-grids-row {
    margin-top: 0.5rem;
}

.detalle-comprobante-page .dc-detalle-grids-row > [class*="col-"] {
    min-width: 0;
}

/* Tablas DataGrid en detalle comprobante: esquinas redondeadas (incluye grillas sin .datagrid_view_scrollBar) */
.detalle-comprobante-page table.table,
.detalle-comprobante-page table.table-hover {
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}

.detalle-comprobante-page table.table tr:first-child th:first-child,
.detalle-comprobante-page table.table tr:first-child td:first-child,
.detalle-comprobante-page table.table-hover tr:first-child th:first-child,
.detalle-comprobante-page table.table-hover tr:first-child td:first-child {
    border-top-left-radius: 12px;
}

.detalle-comprobante-page table.table tr:first-child th:last-child,
.detalle-comprobante-page table.table tr:first-child td:last-child,
.detalle-comprobante-page table.table-hover tr:first-child th:last-child,
.detalle-comprobante-page table.table-hover tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.detalle-comprobante-page table.table tr:last-child td:first-child,
.detalle-comprobante-page table.table-hover tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.detalle-comprobante-page table.table tr:last-child td:last-child,
.detalle-comprobante-page table.table-hover tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Grilla productos (detalle comprobante): tabla a ancho del contenedor, sin scroll horizontal */
.detalle-comprobante-page .dc-dgr-productos-shell {
    overflow-x: hidden;
    white-space: normal;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
}

.detalle-comprobante-page .dc-dgr-productos-shell::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.detalle-comprobante-page .dc-dgr-productos-shell table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.detalle-comprobante-page .dc-dgr-productos-shell td:not(.col-expand-producto),
.detalle-comprobante-page .dc-dgr-productos-shell th:not(.col-expand-producto) {
    min-width: 0 !important;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.detalle-comprobante-page .dc-dgr-productos-shell td.col-acciones-producto,
.detalle-comprobante-page .dc-dgr-productos-shell th.col-acciones-producto {
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
}

.detalle-comprobante-page .dc-dgr-productos-shell input[type="text"],
.detalle-comprobante-page .dc-dgr-productos-shell select,
.detalle-comprobante-page .dc-dgr-productos-shell .form-select {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Productos + ingresos: acordeón por fila */
.detalle-comprobante-page .dc-productos-accordion {
    min-width: 0;
    width: 100%;
}

/* Anula datagrid-autofit global en la grilla de productos (permite descripción ancha y alineación) */
.detalle-comprobante-page .dc-dgr-productos-shell.datagrid-autofit table.dc-productos-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 100% !important;
}

.detalle-comprobante-page .dc-dgr-productos-shell.datagrid-autofit .dc-productos-table td:not(.col-expand-producto),
.detalle-comprobante-page .dc-dgr-productos-shell.datagrid-autofit .dc-productos-table th:not(.col-expand-producto) {
    white-space: normal;
    min-width: 0 !important;
}

.detalle-comprobante-page .dc-dgr-productos-shell.datagrid-autofit .dc-productos-table .col-expand-producto,
.detalle-comprobante-page .dc-dgr-productos-shell.datagrid-autofit .dc-productos-table .col-codigo-producto,
.detalle-comprobante-page .dc-dgr-productos-shell.datagrid-autofit .dc-productos-table .col-cantidad-producto,
.detalle-comprobante-page .dc-dgr-productos-shell.datagrid-autofit .dc-productos-table .col-precio-producto,
.detalle-comprobante-page .dc-dgr-productos-shell.datagrid-autofit .dc-productos-table .col-acciones-producto {
    white-space: nowrap !important;
}

.detalle-comprobante-page .dc-dgr-productos-shell.datagrid_view_scrollBar table.dc-productos-table td:not(.col-expand-producto),
.detalle-comprobante-page .dc-dgr-productos-shell.datagrid_view_scrollBar table.dc-productos-table th:not(.col-expand-producto) {
    min-width: 0 !important;
}

.detalle-comprobante-page .dc-producto-ingresos-panel-body table.dc-ingresos-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 42rem !important;
}

/* Tabla principal de productos */
.detalle-comprobante-page .dc-dgr-productos-shell table.dc-productos-table {
    border-radius: 0;
    border: none;
    background: #FFFFF0;
    border-collapse: collapse !important;
    --bs-table-bg: #FFFFF0;
    --bs-table-hover-bg: #FFF8E7;
    --bs-table-active-bg: #FFF8E7;
    --bs-table-striped-bg: #FFFFF0;
}

.detalle-comprobante-page .dc-dgr-productos-shell table.dc-productos-table.table > tr.dc-producto-row > td,
.detalle-comprobante-page .dc-dgr-productos-shell table.dc-productos-table.table > tr.dc-producto-row > th,
.detalle-comprobante-page .dc-productos-table tr.dc-producto-row > td {
    background-color: #FFFFF0 !important;
}

.detalle-comprobante-page .dc-productos-table tr.dc-producto-row > td:not(.col-expand-producto):not(:last-child) {
    border-right: 1px solid #e8ecf1;
}

.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-th:not(.col-expand-producto):not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.detalle-comprobante-page .dc-productos-table thead .dc-productos-th,
.detalle-comprobante-page .dc-productos-table tr:first-child > td,
.detalle-comprobante-page .dc-productos-table tr:first-child > th,
.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-th:not(.col-expand-producto),
.detalle-comprobante-page .dc-productos-table tr:first-child td.dc-productos-th.col-acciones-producto {
    background: var(--color-primary) !important;
    color: var(--color-contrast, #fff) !important;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding: .6rem .75rem !important;
    vertical-align: middle;
    white-space: nowrap;
}

.detalle-comprobante-page .dc-productos-table thead .dc-productos-th *,
.detalle-comprobante-page .dc-productos-table tr:first-child > td *,
.detalle-comprobante-page .dc-productos-table tr:first-child > th *,
.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-th * {
    color: var(--color-contrast, #fff) !important;
}

.detalle-comprobante-page .dc-productos-table tr:first-child td.dc-productos-th.col-expand-producto {
    background: var(--color-primary) !important;
    color: var(--color-contrast, #fff) !important;
    padding: 0 !important;
    width: 15px !important;
    min-width: 0 !important;
    max-width: 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-th.col-descripcion-producto {
    white-space: nowrap;
}

/* Encabezado: misma línea en todas las columnas (anula vertical-align:top de celdas de datos) */
.detalle-comprobante-page .dc-productos-table tr:first-child > td,
.detalle-comprobante-page .dc-productos-table tr:first-child > th,
.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-th.col-descripcion-producto,
.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-th.col-producto-ame,
.detalle-comprobante-page .dc-productos-table tr:first-child td.dc-productos-th.col-descripcion-producto,
.detalle-comprobante-page .dc-productos-table tr:first-child td.dc-productos-th.col-producto-ame,
.detalle-comprobante-page .dc-productos-table tr:first-child td.dc-productos-th.col-codigo-producto,
.detalle-comprobante-page .dc-productos-table tr:first-child td.dc-productos-th.col-cantidad-producto,
.detalle-comprobante-page .dc-productos-table tr:first-child td.dc-productos-th.col-precio-producto,
.detalle-comprobante-page .dc-productos-table tr:first-child td.dc-productos-th.col-acciones-producto {
    vertical-align: middle !important;
}

/* Botón + del encabezado: visible en negro sobre fondo claro */
.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-add-btn {
    color: #212529 !important;
    background-color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.28) !important;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0 0.3rem !important;
    box-shadow: none !important;
}

.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-add-btn:hover,
.detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-add-btn:focus {
    color: #000 !important;
    background-color: #f8f9fa !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
}

.detalle-comprobante-page .dc-productos-table tr.dc-producto-row > td:not(.col-expand-producto) {
    padding: .5rem .45rem !important;
    vertical-align: middle !important;
    background: #FFFFF0 !important;
    border-bottom: 1px solid #e8ecf1;
    overflow: hidden;
    box-sizing: border-box;
}

.detalle-comprobante-page .dc-productos-table tr.dc-producto-row > td.col-expand-producto {
    padding: 0 !important;
    width: 15px !important;
    min-width: 0 !important;
    max-width: 15px !important;
    background: #FFFFF0 !important;
    border-bottom: 1px solid #e8ecf1;
    vertical-align: middle !important;
}

.detalle-comprobante-page .dc-productos-table thead .dc-productos-th {
    vertical-align: middle !important;
}

.detalle-comprobante-page .dc-producto-cell-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.25rem;
    gap: .25rem;
    overflow: hidden;
    box-sizing: border-box;
}

.detalle-comprobante-page .dc-producto-cell-inner--end {
    justify-content: flex-end;
}

.detalle-comprobante-page .dc-producto-cell-inner--center {
    justify-content: center;
}

.detalle-comprobante-page .dc-producto-acciones {
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.detalle-comprobante-page .dc-producto-acciones .dc-ingreso-estado-check.dc-ingreso-estado-hidden {
    display: none !important;
}

.detalle-comprobante-page .dc-producto-acciones .dc-ingreso-estado-check:not(.dc-ingreso-estado-hidden) {
    display: inline-flex !important;
}

.detalle-comprobante-page .dc-productos-table tr.dc-producto-row {
    cursor: pointer;
    transition: background-color .12s ease;
}

.detalle-comprobante-page .dc-productos-table tr.dc-producto-row-expanded > td {
    background: #FFF8E7 !important;
    border-bottom-color: #e8ecf1;
    font-weight: normal;
}

/* Columnas productos: colgroup + celdas (DataGrid usa td, no thead/th) */
.detalle-comprobante-page table.dc-productos-table col.dc-col-expand {
    width: 15px !important;
    max-width: 15px !important;
}

.detalle-comprobante-page table.dc-productos-table col.dc-col-codigo {
    width: 7% !important;
}

.detalle-comprobante-page table.dc-productos-table col.dc-col-descripcion {
    width: 28% !important;
}

.detalle-comprobante-page table.dc-productos-table col.dc-col-cantidad {
    width: 11% !important;
}

.detalle-comprobante-page table.dc-productos-table col.dc-col-precio {
    width: 12% !important;
}

.detalle-comprobante-page table.dc-productos-table col.dc-col-producto-ame {
    width: 26% !important;
}

.detalle-comprobante-page table.dc-productos-table col.dc-col-acciones {
    width: 7% !important;
}

.detalle-comprobante-page .dc-productos-table .col-expand-producto,
.detalle-comprobante-page .dc-productos-table td.dc-productos-th.col-expand-producto,
.detalle-comprobante-page .dc-dgr-productos-shell table.dc-productos-table.table > :not(caption) > * > .col-expand-producto {
    width: 15px !important;
    min-width: 0 !important;
    max-width: 15px !important;
    white-space: nowrap !important;
    padding: 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: visible;
}

.detalle-comprobante-page .dc-productos-table .col-expand-producto .dc-producto-expand-btn {
    display: inline-flex !important;
    width: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    height: 15px !important;
    overflow: visible;
}

.detalle-comprobante-page .dc-producto-expand-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: 15px !important;
    height: auto;
    margin: 0;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1;
    text-decoration: none !important;
}

.detalle-comprobante-page .dc-productos-table .col-codigo-producto,
.detalle-comprobante-page .dc-productos-table td.dc-productos-th.col-codigo-producto {
    width: 7% !important;
    min-width: 0 !important;
    max-width: 7% !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: hidden;
}

.detalle-comprobante-page .dc-producto-expand-btn .dc-producto-chevron {
    display: block;
    font-size: 15px;
    line-height: 15px;
    width: 15px;
    height: 15px;
    font-weight: 700;
    color: inherit;
    letter-spacing: 0;
    text-align: center;
    transition: transform .15s ease, color .12s ease;
}

.detalle-comprobante-page .dc-productos-table tr.dc-producto-row-expanded .dc-producto-chevron {
    transform: rotate(90deg);
}

.detalle-comprobante-page .dc-productos-table .col-cantidad-producto,
.detalle-comprobante-page .dc-productos-table td.dc-productos-th.col-cantidad-producto {
    min-width: 0 !important;
    width: 11% !important;
    max-width: 11% !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    text-align: right !important;
    overflow: hidden;
}

.detalle-comprobante-page .dc-productos-table .col-precio-producto,
.detalle-comprobante-page .dc-productos-table td.dc-productos-th.col-precio-producto {
    min-width: 0 !important;
    width: 12% !important;
    max-width: 12% !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    text-align: right !important;
    overflow: hidden;
}

.detalle-comprobante-page .dc-productos-table .col-descripcion-producto,
.detalle-comprobante-page .dc-productos-table td.dc-productos-th.col-descripcion-producto {
    text-align: left !important;
    vertical-align: top !important;
    width: 28% !important;
    max-width: 28% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.detalle-comprobante-page .dc-productos-table .col-descripcion-producto .dc-producto-cell-inner {
    align-items: flex-start;
    overflow: visible;
}

.detalle-comprobante-page .dc-productos-table .col-producto-ame,
.detalle-comprobante-page .dc-productos-table td.dc-productos-th.col-producto-ame {
    text-align: left !important;
    vertical-align: top !important;
    width: 26% !important;
    max-width: 26% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow: hidden;
}

.detalle-comprobante-page .dc-productos-table .col-producto-ame .dc-producto-cell-inner {
    align-items: flex-start;
}

.detalle-comprobante-page .dc-productos-table .col-acciones-producto,
.detalle-comprobante-page .dc-productos-table td.dc-productos-th.col-acciones-producto {
    vertical-align: middle !important;
    width: 7% !important;
    max-width: 7% !important;
    min-width: 0 !important;
    overflow: hidden;
}

.detalle-comprobante-page .dc-producto-input,
.detalle-comprobante-page .dc-producto-input-num {
    width: 100%;
    min-width: 0;
}

.detalle-comprobante-page .dc-producto-input-num {
    text-align: right !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
    font-size: .84rem;
}

.detalle-comprobante-page .dc-dgr-productos-shell.datagrid_view_scrollBar .dc-productos-table input.dc-producto-input-num {
    min-width: 0 !important;
}

.detalle-comprobante-page .dc-dgr-productos-shell .dc-productos-table input,
.detalle-comprobante-page .dc-dgr-productos-shell .dc-productos-table select,
.detalle-comprobante-page .dc-dgr-productos-shell .dc-productos-table textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.detalle-comprobante-page .dc-producto-desc-input,
.detalle-comprobante-page .dc-producto-combo-select {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.detalle-comprobante-page .dc-producto-desc-input {
    display: block;
    min-height: 2.25rem;
    max-height: none;
    resize: vertical !important;
    text-align: left !important;
    line-height: 1.35;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: .84rem;
}

.detalle-comprobante-page .dc-producto-combo-select {
    min-height: 2.1rem;
    max-height: 5.5rem;
    height: auto !important;
    line-height: 1.35;
    padding-top: .35rem;
    padding-bottom: .35rem;
    font-size: .84rem;
    overflow: hidden;
}

/* ==========================================================================
   Combo con búsqueda para "Producto América" (dc-producto-combo-search.js)
   ========================================================================== */
.dc-combo-search {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Dentro de input-group (p.ej. Proveedor en AdjuntarComprobante) */
.input-group > .dc-combo-search {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/* Ancho al texto más largo (tope: pantalla). No estira a todo el grupo. */
.input-group > .dc-combo-search.dc-combo-search--fit {
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100vw - 1rem);
}

.input-group > .dc-combo-search .dc-combo-search-input,
.input-group > .dc-combo-search.dc-combo-search--fit .dc-combo-search-input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    height: 100%;
}

.input-group > .dc-combo-search:last-child .dc-combo-search-input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* El <select> original se conserva en el DOM (para el postback) pero oculto. */
.dc-combo-search .dc-combo-search-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden !important;
    white-space: nowrap !important;
    pointer-events: none;
}

.dc-combo-search .dc-combo-search-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: .35rem 1.6rem .35rem .5rem;
    font-size: .84rem;
    line-height: 1.35;
    cursor: text;
}

.dc-combo-search .dc-combo-search-caret {
    position: absolute;
    top: 50%;
    right: .5rem;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6c757d;
    pointer-events: auto;
    cursor: pointer;
}

.dc-combo-search.dc-combo-search-open .dc-combo-search-caret {
    border-top: 0;
    border-bottom: 5px solid #6c757d;
    margin-top: -3px;
}

.dc-combo-search.dc-combo-search-disabled .dc-combo-search-input {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Panel flotante (se agrega al body para no ser recortado por el scroll de la grilla). */
.dc-combo-search-panel {
    position: fixed;
    z-index: 20000;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dc-combo-search-list {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: inherit;
}

.dc-combo-search-option {
    padding: .4rem .6rem;
    font-size: .84rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    cursor: pointer;
    color: #212529;
}

.dc-combo-search-option:hover,
.dc-combo-search-option.dc-combo-search-option-active {
    background-color: #0d6efd;
    color: #fff;
}

.dc-combo-search-option.dc-combo-search-option-selected {
    font-weight: 600;
}

.dc-combo-search-option.dc-combo-search-option-selected.dc-combo-search-option-active {
    color: #fff;
}

.dc-combo-search-empty {
    padding: .5rem .6rem;
    font-size: .82rem;
    color: #6c757d;
    font-style: italic;
}

.detalle-comprobante-page .dc-dgr-productos-shell input[type="text"]:not(.dc-producto-desc-input),
.detalle-comprobante-page .dc-dgr-productos-shell .dc-ingreso-cantidad-input {
    padding: .4rem .5rem;
}

/* Zona expandida del acordeón */
.detalle-comprobante-page .dc-producto-ingresos-holder {
    display: none;
}

.detalle-comprobante-page .dc-producto-ingresos-row {
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, .08);
}

.detalle-comprobante-page .dc-producto-ingresos-row td.dc-producto-ingresos-cell {
    padding: 0 !important;
    border-top: none !important;
    background: #FFFFF0 !important;
    vertical-align: top;
}

.detalle-comprobante-page .dc-producto-ingresos-cell-inner {
    padding: .65rem .75rem .85rem 0;
    background: transparent;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.detalle-comprobante-page .dc-producto-ingresos-panel {
    display: none;
    width: 100%;
    min-width: 0;
    background: transparent;
}

.detalle-comprobante-page .dc-producto-ingresos-panel.dc-producto-ingresos-panel--open {
    display: block;
}

.detalle-comprobante-page .dc-ingresos-card {
    margin-left: 1.75rem;
    margin-right: .35rem;
    padding: .85rem 1rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, .06);
}

.detalle-comprobante-page .dc-producto-ingresos-panel-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sub-tabla ingresos: sin bordes redondeados en la tabla */
.detalle-comprobante-page .dc-producto-ingresos-panel table.dc-ingresos-table {
    border-radius: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;
}

.detalle-comprobante-page .dc-producto-ingresos-panel table.dc-ingresos-table tr:first-child th:first-child,
.detalle-comprobante-page .dc-producto-ingresos-panel table.dc-ingresos-table tr:first-child th:last-child,
.detalle-comprobante-page .dc-producto-ingresos-panel table.dc-ingresos-table tr:last-child td:first-child,
.detalle-comprobante-page .dc-producto-ingresos-panel table.dc-ingresos-table tr:last-child td:last-child {
    border-radius: 0 !important;
}

.detalle-comprobante-page .dc-ingresos-table thead .dc-ingresos-th,
.detalle-comprobante-page .dc-ingresos-table tr:first-child > td,
.detalle-comprobante-page .dc-ingresos-table tr:first-child > th,
.detalle-comprobante-page .dc-ingresos-table tr:first-child .dc-ingresos-th,
.detalle-comprobante-page .dc-ingresos-table tr:first-child td[class*="col-ingreso"],
.detalle-comprobante-page .dc-ingresos-table tr:first-child th[class*="col-ingreso"],
.detalle-comprobante-page .dc-ingresos-table tr:first-child .col-acciones-grilla {
    background: var(--color-primary) !important;
    color: var(--color-contrast, #fff) !important;
    font-size: .78rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: .01em;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, .08) !important;
    padding: .6rem .65rem !important;
    white-space: normal;
    vertical-align: middle;
}

.detalle-comprobante-page .dc-ingresos-table thead .dc-ingresos-th *,
.detalle-comprobante-page .dc-ingresos-table tr:first-child > td *,
.detalle-comprobante-page .dc-ingresos-table tr:first-child > th *,
.detalle-comprobante-page .dc-ingresos-table tr:first-child .dc-ingresos-th * {
    color: var(--color-contrast, #fff) !important;
}

.detalle-comprobante-page .dc-ingresos-table tr:first-child .col-acciones-grilla input[type="submit"],
.detalle-comprobante-page .dc-ingresos-table tr:first-child .col-acciones-grilla button {
    background-color: rgba(255, 255, 255, .2) !important;
    border: 1px solid rgba(255, 255, 255, .55) !important;
    color: var(--color-contrast, #fff) !important;
    font-weight: 700;
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0 .35rem;
    line-height: 1;
}

.detalle-comprobante-page .dc-ingresos-table > tbody > tr > td {
    padding: .55rem .65rem !important;
    vertical-align: top;
    background: transparent !important;
    border-bottom: 1px solid #eef0f2;
    color: #374151;
    font-size: .84rem;
}

.detalle-comprobante-page .dc-ingresos-table > tbody > tr:last-child > td {
    border-bottom: none;
}

/* No usar display:block en <td>: rompe table-layout y apila/desalinea columnas (ej. fecha bajo remito). */
.detalle-comprobante-page .dc-ingreso-valor {
    color: #374151;
    font-size: .84rem;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.detalle-comprobante-page .dc-ingresos-table > tbody > tr > td.dc-ingreso-valor {
    display: table-cell;
    vertical-align: middle;
}

.detalle-comprobante-page .dc-ingreso-valor-block {
    display: block;
    width: 100%;
}

.detalle-comprobante-page .dc-ingreso-valor-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.detalle-comprobante-page .dc-ingresos-table .col-ingreso-comprobante,
.detalle-comprobante-page .dc-ingresos-table th.col-ingreso-comprobante,
.detalle-comprobante-page .dc-ingresos-table td.col-ingreso-comprobante {
    width: 22% !important;
    min-width: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detalle-comprobante-page .dc-ingresos-table .col-ingreso-remito,
.detalle-comprobante-page .dc-ingresos-table th.col-ingreso-remito,
.detalle-comprobante-page .dc-ingresos-table td.col-ingreso-remito {
    width: 14% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detalle-comprobante-page .dc-ingresos-table td.col-ingreso-remito[title] {
    cursor: help;
}

.detalle-comprobante-page .dc-ingresos-table .col-ingreso-fecha,
.detalle-comprobante-page .dc-ingresos-table th.col-ingreso-fecha,
.detalle-comprobante-page .dc-ingresos-table td.col-ingreso-fecha {
    width: 11% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detalle-comprobante-page .dc-ingresos-table .col-ingreso-produc,
.detalle-comprobante-page .dc-ingresos-table th.col-ingreso-produc,
.detalle-comprobante-page .dc-ingresos-table td.col-ingreso-produc {
    width: 18% !important;
    min-width: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detalle-comprobante-page .dc-ingresos-table .col-ingreso-canti-pend,
.detalle-comprobante-page .dc-ingresos-table th.col-ingreso-canti-pend,
.detalle-comprobante-page .dc-ingresos-table td.col-ingreso-canti-pend {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    white-space: nowrap !important;
    text-align: right !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detalle-comprobante-page .dc-ingresos-table tr:first-child .col-ingreso-canti-pend {
    white-space: normal !important;
    line-height: 1.15;
    text-align: center !important;
    overflow: hidden;
}

.detalle-comprobante-page .dc-ingresos-table .col-ingreso-cantidad,
.detalle-comprobante-page .dc-ingresos-table th.col-ingreso-cantidad,
.detalle-comprobante-page .dc-ingresos-table td.col-ingreso-cantidad {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    white-space: nowrap !important;
    text-align: right !important;
    overflow: hidden;
}

.detalle-comprobante-page .dc-ingresos-table .col-acciones-grilla,
.detalle-comprobante-page .dc-ingresos-table th.col-acciones-grilla,
.detalle-comprobante-page .dc-ingresos-table td.col-acciones-grilla {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
}

.detalle-comprobante-page .dc-ingreso-comprobante-select,
.detalle-comprobante-page .dc-ingreso-produc-select {
    white-space: nowrap !important;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    text-overflow: ellipsis !important;
    min-height: 2rem;
    height: auto !important;
    line-height: 1.35;
    padding: .35rem .5rem;
    font-size: .84rem;
    border-color: #d1d5db;
    background-color: #fff;
    width: 100% !important;
    max-width: none !important;
}

.detalle-comprobante-page .dc-ingreso-cantidad-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-left: 0;
    padding: .35rem .5rem;
    font-size: .84rem;
    box-sizing: border-box !important;
}

.detalle-comprobante-page .dc-ingresos-modo-readonly .dc-ingreso-comprobante-select,
.detalle-comprobante-page .dc-ingresos-modo-readonly .dc-ingreso-produc-select,
.detalle-comprobante-page .dc-ingresos-modo-readonly .dc-ingreso-cantidad-input {
    display: none !important;
}

.detalle-comprobante-page .dc-ingresos-modo-readonly .dc-ingreso-valor-block {
    display: block !important;
}

.detalle-comprobante-page .dc-producto-ingresos-footer {
    margin-top: .5rem;
    padding-top: .5rem;
    text-align: right;
    font-size: .875rem;
    color: #374151;
    border-top: 1px solid #e5e7eb;
}

.detalle-comprobante-page .dc-ingresos-stock-total {
    display: block;
    width: 100%;
    text-align: right;
    font-weight: 700 !important;
    margin: 0;
}

/* Oculta restos del título flotante si quedaron en caché del acordeón */
.detalle-comprobante-page .dc-producto-ingresos-panel-head,
.detalle-comprobante-page .dc-producto-ingresos-panel-title {
    display: none !important;
}

@media (max-width: 767.98px) {
    .detalle-comprobante-page .dc-dgr-productos-shell .dc-productos-table {
        font-size: .84rem;
    }

    .detalle-comprobante-page .dc-productos-table tr.dc-producto-row > td:not(.col-expand-producto),
    .detalle-comprobante-page .dc-productos-table thead .dc-productos-th:not(.col-expand-producto),
    .detalle-comprobante-page .dc-productos-table tr:first-child .dc-productos-th:not(.col-expand-producto) {
        padding: .5rem .55rem !important;
    }

    .detalle-comprobante-page .dc-producto-ingresos-cell-inner {
        padding: .55rem .5rem .7rem 0;
    }

    .detalle-comprobante-page .dc-ingresos-card {
        margin-left: 1rem;
        padding: .65rem .75rem .85rem;
    }
}

/* Grilla impuestos (detalle comprobante): ancho del panel sin scroll horizontal */
.detalle-comprobante-page .dc-dgr-impuestos-shell {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    white-space: normal;
    padding-bottom: 0;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell table.dc-impuestos-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell table.dc-impuestos-table td,
.detalle-comprobante-page .dc-dgr-impuestos-shell table.dc-impuestos-table th {
    min-width: 0 !important;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    vertical-align: middle !important;
    padding: .45rem .5rem !important;
    box-sizing: border-box;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell .col-imp-tipo {
    width: 24% !important;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell .col-imp-codigo {
    width: 14% !important;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell .col-imp-provincia {
    width: 28% !important;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell .col-imp-importe {
    width: 17% !important;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell .col-imp-porcentaje {
    width: 12% !important;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell td.col-acciones-grilla,
.detalle-comprobante-page .dc-dgr-impuestos-shell th.col-acciones-grilla {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    white-space: nowrap !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
    text-align: right !important;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell input[type="text"],
.detalle-comprobante-page .dc-dgr-impuestos-shell select,
.detalle-comprobante-page .dc-dgr-impuestos-shell .form-select {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.detalle-comprobante-page .dc-dgr-impuestos-shell .col-imp-importe input[type="text"],
.detalle-comprobante-page .dc-dgr-impuestos-shell .col-imp-porcentaje input[type="text"] {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

/* Adjuntar factura: visor PDF a la misma altura que la columna del formulario (desktop) */
.adjuntar-comprobante-page .adj-adjuntar-main-row {
    align-items: stretch;
}

.adjuntar-comprobante-page .adj-adjuntar-form-col {
    min-width: 0;
}

.adjuntar-comprobante-page .adj-adjuntar-acciones-guardar .adj-adjuntar-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

@media (min-width: 992px) {
    .adjuntar-comprobante-page .adj-adjuntar-pdf-col {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        align-self: stretch;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-col > div {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
        max-height: 100%;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-visor-shell {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        box-sizing: border-box;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-visor-root {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-object-wrap {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        width: 100%;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        background: #f8f9fa;
        overflow: auto;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-object-wrap object {
        flex: 1 1 auto;
        display: block;
        width: 100% !important;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        border: 0;
    }
}

@media (max-width: 991.98px) {
    .adjuntar-comprobante-page .adj-adjuntar-pdf-col {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 280px;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-col > div {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-visor-shell {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 220px;
        box-sizing: border-box;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-visor-root {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        text-align: center;
        box-sizing: border-box;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-object-wrap {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 200px;
        width: 100%;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        background: #f8f9fa;
        overflow: auto;
    }

    .adjuntar-comprobante-page .adj-adjuntar-pdf-object-wrap object {
        flex: 1 1 auto;
        display: block;
        width: 100% !important;
        min-height: 200px;
        border: 0;
    }
}

/* Detalle comprobante: scroll global de página (sin contenedores con overflow bloqueado) */
.app-main-wrap .app-layout:has(.dc-split-page) {
    align-items: flex-start;
}

.app-main:has(.dc-split-page),
.app-main .columnaCentral:has(.dc-split-page),
.app-main #contenidoP:has(.dc-split-page) {
    overflow: visible;
}

/* Detalle comprobante: split horizontal 60% pestañas | 40% PDF */
.detalle-comprobante-page.dc-split-page {
    --dc-warning-accent: #f59e0b;
    --dc-warning-bg: #fff9eb;
    --dc-warning-border: #fde68a;
    --dc-warning-text: #78350f;
    --dc-success-accent: #198754;
    --dc-success-bg: #d1e7dd;
    --dc-success-border: #a3cfbb;
    --dc-success-text: #0f5132;
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
}

/* Íconos de advertencia en Datos (mismo ámbar que el cartel de Comentarios) */
.detalle-comprobante-page.dc-split-page .dc-icon-warning {
    color: var(--dc-warning-accent) !important;
}

.detalle-comprobante-page.dc-split-page .dc-icon-warning svg {
    fill: currentColor;
}

.detalle-comprobante-page .dc-save-status {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.detalle-comprobante-page .dc-save-status--idle {
    color: #6c757d;
    background-color: transparent;
}

.detalle-comprobante-page .dc-save-status--pendiente,
.detalle-comprobante-page .dc-save-status--guardando {
    color: #856404;
    background-color: #fff3cd;
}

.detalle-comprobante-page .dc-save-status--guardado {
    color: #155724;
    background-color: #d4edda;
}

.detalle-comprobante-page .dc-save-status--error {
    color: #721c24;
    background-color: #f8d7da;
}

.detalle-comprobante-page.dc-split-page .dc-split-shell > [id$='updpnlRefresh'] {
    overflow: visible;
    flex: 0 0 60%;
    width: 60%;
    max-width: 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e9ecef;
    box-sizing: border-box;
    min-height: calc(100dvh - var(--dc-split-chrome, 12.5rem));
}

.detalle-comprobante-page.dc-split-page .dc-page-header {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem 0.35rem;
    border-bottom: 1px solid #e9ecef;
}

.detalle-comprobante-page.dc-split-page .dc-split-shell {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
    overflow: visible;
}

.detalle-comprobante-page.dc-split-page .dc-panel-left {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
}

.detalle-comprobante-page.dc-split-page .dc-panel-right {
    flex: 0 0 40%;
    width: 40%;
    max-width: 40%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
    align-self: stretch;
}

/* Wrapper del UpdatePanelPDF: debe participar en la cadena flex hasta el object */
.detalle-comprobante-page.dc-split-page .dc-panel-right > [id$='UpdatePanelPDF'] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.detalle-comprobante-page.dc-split-page .dc-tabs {
    flex: 0 0 auto;
    border-bottom: 1px solid #dee2e6;
    padding: 0 0.5rem;
    flex-wrap: wrap;
    overflow: visible;
}

.detalle-comprobante-page.dc-split-page .dc-tabs .nav-link {
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border: none;
    border-bottom: 2px solid transparent;
    white-space: normal;
}

.detalle-comprobante-page.dc-split-page .dc-tabs .nav-link.active {
    color: var(--color-primary, #28AFB0);
    border-bottom-color: var(--color-primary, #28AFB0);
    background: transparent;
}

.detalle-comprobante-page.dc-split-page .dc-tab-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 0.75rem;
}

.detalle-comprobante-page.dc-split-page .dc-page-footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0.65rem 0.75rem 0.85rem;
    background: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
}

.detalle-comprobante-page.dc-split-page .dc-totals-summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
    width: 100%;
}

.detalle-comprobante-page.dc-split-page .dc-totals-line {
    display: grid;
    grid-template-columns: minmax(10.75rem, 12rem) minmax(5rem, 1fr);
    column-gap: 0.65rem;
    align-items: baseline;
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.45;
}

.detalle-comprobante-page.dc-split-page .dc-totals-label {
    font-weight: 600;
    color: #212529;
    text-align: left;
    justify-self: start;
}

.detalle-comprobante-page.dc-split-page .dc-totals-value {
    display: block;
    font-weight: 600;
    color: #212529;
    text-align: right;
    min-width: 0;
}

.detalle-comprobante-page.dc-split-page .dc-totals-line-documento .dc-totals-input {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: right;
    font-weight: 600;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    height: auto;
    color: #212529;
}

.detalle-comprobante-page.dc-split-page .dc-totals-line-documento .dc-totals-input:focus {
    border: 1px solid #dee2e6;
    background: #fff;
    box-shadow: 0 0 0 0.15rem rgba(40, 175, 176, 0.15);
    padding: 0.15rem 0.35rem;
}

.detalle-comprobante-page.dc-split-page .dc-page-footer .dc-actions-bar {
    padding-top: 0.75rem;
    margin-top: 0;
    border-top: 1px solid #e9ecef;
}

.detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Visor PDF embebido (Chrome/Edge): recorte lateral para ocultar la barra del plugin */
.detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap object,
.detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap iframe {
    flex: 1 1 auto;
    display: block;
    min-height: 0;
    height: 100%;
    width: calc(100% + 20px) !important;
    max-width: none;
    margin-right: -20px;
    border: 0;
    box-sizing: border-box;
}

/* Desktop: panel PDF hasta el borde inferior de la pantalla (--dc-split-chrome lo define JS) */
@media (min-width: 992px) {
    .detalle-comprobante-page.dc-split-page .dc-panel-right {
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - var(--dc-split-chrome, 12.5rem));
        overflow: hidden;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right > [id$='UpdatePanelPDF'] {
        flex: 1 1 auto;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap object,
    .detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap iframe {
        height: 100% !important;
        min-height: 100%;
    }
}

.detalle-comprobante-page.dc-split-page .dc-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin: 0.75rem 0 0.35rem;
}

.detalle-comprobante-page.dc-split-page .dc-tab-footer {
    flex: 0 0 auto;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

/* --- Validación y Cierre --- */
.detalle-comprobante-page.dc-split-page .dc-cierre-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
}

.detalle-comprobante-page.dc-split-page .dc-cierre-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.detalle-comprobante-page.dc-split-page .dc-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem 0.75rem 0.7rem;
    border-radius: 0 6px 6px 0;
    border: 1px solid transparent;
    border-left-width: 5px;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.detalle-comprobante-page.dc-split-page .dc-alert-icon {
    flex: 0 0 auto;
    font-size: 1.1rem;
    line-height: 1.35;
    margin-top: 0.05rem;
}

.detalle-comprobante-page.dc-split-page .dc-alert-icon-info {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dc-success-accent);
}

.detalle-comprobante-page.dc-split-page .dc-alert-body {
    flex: 1 1 auto;
    min-width: 0;
}

.detalle-comprobante-page.dc-split-page .dc-alert-title {
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.detalle-comprobante-page.dc-split-page .dc-alert-text {
    display: block;
    width: 100%;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
    resize: none;
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.detalle-comprobante-page.dc-split-page .dc-alert-warning {
    background: var(--dc-warning-bg);
    border-color: var(--dc-warning-border);
    border-left-color: var(--dc-warning-accent);
    color: var(--dc-warning-text);
}

.detalle-comprobante-page.dc-split-page .dc-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #dc2626;
    color: #7f1d1d;
}

.detalle-comprobante-page.dc-split-page .dc-alert-info {
    background: var(--dc-success-bg);
    border-color: var(--dc-success-border);
    border-left-color: var(--dc-success-accent);
    color: var(--dc-success-text);
}

.detalle-comprobante-page.dc-split-page .dc-cierre-comments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detalle-comprobante-page.dc-split-page .dc-field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: calc(0.8125rem + 2pt);
    font-weight: 500;
    color: #495057;
    letter-spacing: 0.01em;
    text-align: left;
}

.detalle-comprobante-page.dc-split-page .dc-field-textarea {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #212529;
    padding: 0.5rem 0.65rem !important;
    resize: vertical;
    min-height: 4.5rem;
}

.detalle-comprobante-page.dc-split-page .dc-field-textarea::placeholder {
    color: #adb5bd;
    font-style: normal;
}

.detalle-comprobante-page.dc-split-page .dc-field-textarea:focus {
    border-color: var(--color-primary, #28AFB0) !important;
    box-shadow: 0 0 0 0.15rem rgba(40, 175, 176, 0.2) !important;
}

.detalle-comprobante-page.dc-split-page .dc-actions-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
}

.detalle-comprobante-page.dc-split-page .dc-actions-left,
.detalle-comprobante-page.dc-split-page .dc-actions-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.detalle-comprobante-page.dc-split-page .dc-actions-right {
    margin-left: auto;
    justify-content: flex-end;
}

.detalle-comprobante-page.dc-split-page .dc-btn-cta {
    background-color: var(--color-primary, #28AFB0) !important;
    border: 1px solid var(--color-primary, #28AFB0) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    box-shadow: none !important;
}

.detalle-comprobante-page.dc-split-page .dc-btn-cta:hover:not(:disabled),
.detalle-comprobante-page.dc-split-page .dc-btn-cta:focus:not(:disabled),
.detalle-comprobante-page.dc-split-page .dc-btn-cta:active:not(:disabled) {
    background-color: var(--color-primary, #28AFB0) !important;
    border-color: var(--color-primary, #28AFB0) !important;
    color: #fff !important;
}

.detalle-comprobante-page.dc-split-page .dc-btn-danger-outline {
    color: #b02a37 !important;
    background-color: transparent !important;
    border: 1px solid #dc3545 !important;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    box-shadow: none !important;
}

.detalle-comprobante-page.dc-split-page .dc-btn-danger-outline:hover:not(:disabled),
.detalle-comprobante-page.dc-split-page .dc-btn-danger-outline:focus:not(:disabled) {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.detalle-comprobante-page.dc-split-page .dc-btn-neutral {
    color: #495057 !important;
    background-color: transparent !important;
    border: 1px solid #ced4da !important;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    box-shadow: none !important;
}

.detalle-comprobante-page.dc-split-page .dc-btn-neutral:hover:not(:disabled),
.detalle-comprobante-page.dc-split-page .dc-btn-neutral:focus:not(:disabled) {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
}

.detalle-comprobante-page.dc-split-page .dc-btn-ghost {
    color: #6c757d !important;
    background: transparent !important;
    border: none !important;
    font-weight: 500;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    box-shadow: none !important;
    text-decoration: none;
}

.detalle-comprobante-page.dc-split-page .dc-btn-ghost:hover:not(:disabled),
.detalle-comprobante-page.dc-split-page .dc-btn-ghost:focus:not(:disabled) {
    color: #212529 !important;
    background-color: #f1f3f5 !important;
}

.detalle-comprobante-page.dc-split-page .dc-btn-back {
    padding-left: 0.25rem;
}

/* Botones bloqueados: gris claro uniforme (sin colores de acción) */
.detalle-comprobante-page.dc-split-page .dc-actions-bar .dc-btn-disabled,
.detalle-comprobante-page.dc-split-page .dc-actions-bar .btn.dc-btn-disabled,
.detalle-comprobante-page.dc-split-page .dc-actions-bar input.btn[disabled].dc-btn-disabled {
    background-color: #eceff1 !important;
    border: 1px solid #dee2e6 !important;
    color: #adb5bd !important;
    opacity: 1 !important;
    pointer-events: none;
    cursor: not-allowed !important;
    box-shadow: none !important;
    filter: none !important;
    text-decoration: none !important;
}

.detalle-comprobante-page.dc-split-page .dc-actions-bar .dc-btn-disabled:hover,
.detalle-comprobante-page.dc-split-page .dc-actions-bar .dc-btn-disabled:focus,
.detalle-comprobante-page.dc-split-page .dc-actions-bar .dc-btn-disabled:active {
    background-color: #eceff1 !important;
    border-color: #dee2e6 !important;
    color: #adb5bd !important;
}

.detalle-comprobante-page.dc-split-page table.table .altoFila,
.detalle-comprobante-page.dc-split-page table.table-hover .altoFila {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

@media (max-width: 991.98px) {
    .detalle-comprobante-page.dc-split-page .dc-split-shell {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .detalle-comprobante-page.dc-split-page .dc-split-shell > [id$='updpnlRefresh'],
    .detalle-comprobante-page.dc-split-page .dc-panel-left,
    .detalle-comprobante-page.dc-split-page .dc-panel-right {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .detalle-comprobante-page.dc-split-page .dc-split-shell > [id$='updpnlRefresh'],
    .detalle-comprobante-page.dc-split-page .dc-panel-left {
        min-height: 0;
        border-right: none;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right {
        min-height: 45vh;
        border-right: none;
        border-top: 1px solid #e9ecef;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right > [id$='UpdatePanelPDF'] {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap {
        min-height: 200px;
    }

    .detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap object,
    .detalle-comprobante-page.dc-split-page .dc-panel-right .dc-detalle-pdf-visor .dc-detalle-pdf-object-wrap iframe {
        min-height: 200px;
    }
}

.administracion-usuarios .administracion-usuarios-filtros-btn {
    justify-content: flex-end;
    text-align: right;
}

.administracion-usuarios .administracion-usuarios-filtros-btn::after {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

@media (max-width: 767px) {
    .detalle-comprobante-page .dc-detalle-top {
        flex-wrap: wrap;
    }
}