html {
    font-size: 100%;
}

h3 {
    font-size: 1.5rem;
}

/* ── OVERRIDES DE COLORES GLOBALES ───────────────────────────── */
.bg-primary {
    background-color: #A16C3A !important;
}

.bg-dark {
    background-color: #A16C3A !important;
}

a.bg-primary:hover, a.bg-primary:focus,
button.bg-primary:hover, button.bg-primary:focus {
    background-color: #0062cc !important;
}

a.bg-dark:hover, a.bg-dark:focus,
button.bg-dark:hover, button.bg-dark:focus {
    background-color: #1d2124 !important;
}
/* ────────────────────────────────────────────────────────────── */

/*#region SAG Custom Forms Styles */

/* ── Fieldset con leyenda sobre la línea del borde ───────────── */
fieldset.border {
    position: relative;
    padding-top: 1.5rem !important;
    margin-top: 0.75rem;
}

    fieldset.border > legend {
        position: absolute;
        top: -0.65em;
        left: 0.75rem;
        float: none;
        width: auto;
        padding: 0 0.35rem;
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.5;
        background-color: var(--bs-body-bg, #fff);
    }
/* ────────────────────────────────────────────────────────────── */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    right: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.nav-tabs > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus {
    border-color: #FB5012;
    border-bottom-color: transparent;
}

.nav-tabs {
    border-bottom: 1px solid #FB5012;
    border-bottom-width: medium;
}

input:focus:not([readonly]):not([type=checkbox]):not([type=radio]):not([type=range]){
    background-color: yellow !important;
    border: 1px solid orange;
}

input[type=number] {
    text-align: right;
}

input[readonly],
textarea[readonly],
select[readonly],
.form-control[readonly],
.readonlyspan {
    background-color: #e9ecef !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    opacity: 1;
}

.uppercase {
    text-transform: uppercase;
}

.card:has(.fuente-reporte-pequeno) * {
    font-size: 0.56rem !important;
}

/* ── Dashboard index tiles ───────────────────────────── */
.sag-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    text-align: center;
    margin-bottom: 1rem;
}

    .sag-tiles > a {
        flex: 0 0 100px;
        text-decoration: none;
    }

        .sag-tiles > a .card-body {
            height: 100%;
            min-height: 78px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 0.3rem;
        }

@media (max-width: 575px) {
    .sag-tiles > a {
        flex: 0 0 calc(33.33% - 3px);
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .sag-tiles > a {
        flex: 0 0 calc(25% - 3px);
    }
}
/* ──────────────────────────────────────────────────────── */

/* Logo pequeño — Left */
.card:has(.fuente-reporte-pequeno) .PrintHeaderLeft img {
    width: 70px !important;
    height: 60px !important;
}

/* Logo pequeño — Center */
.card:has(.fuente-reporte-pequeno) .PrintHeaderCenter img {
    width: 50px !important;
    height: 40px !important;
}

.fuente-reporte {
    font-size: 1.4rem;
}

.fuente-reporte-total {
    font-size: 1.2rem;
}

.fuente-reporte-text {
    font-size: 0.9rem;
}

label {
    font-weight: bold;
    margin: 0;
}

.readonlyspan {
    text-align: right;
}

.requerido {
    color: red;
}

.importante {
    color: red;
}

.right-icons {
    float: right;
    top: 0;
}

    .right-icons button:hover {
        background-color: var(--mainColor);
        color: white;
    }

.hr-border {
    border-top: 1px solid;
}

.legend {
    display: block;
    width: auto;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0px;
    font-size: 1.3rem;
    line-height: inherit;
    color: inherit;
    white-space: normal;
}

.color-lightblue {
    background-color: lightblue !important;
}
/*#endregion */

/*#region Login page */
.login-container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 40px;
    width: 100%;
    align-content: center;
}

.login-title {
    align-self: center;
    padding-bottom: 20px;
}

.login-subtitle {
    align-self: center;
    padding-bottom: 114px;
}

.login-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

    .form-signin .checkbox {
        font-weight: 400;
    }

    .form-signin .form-control {
        position: relative;
        box-sizing: border-box;
        height: auto;
        padding: 10px;
        font-size: 16px;
    }

        .form-signin .form-control:focus {
            z-index: 2;
        }

    .form-signin input {
        margin-bottom: 5px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

        .form-signin input[type="password"] {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
/*#endregion */

/*#region SAG Modal Dialog */
.sag-modal-shadow {
    z-index: 100;
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.sag-modal-body {
    width: 50%;
    background-color: white;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-self: center;
    margin: auto;
    overflow-y: auto;
}

.visible {
    opacity: 1;
    z-index: 2;
    animation: visibleAnim 0.5s;
}

.oculta {
    opacity: 0;
    z-index: -1;
    animation: ocultaAnim 0.5s;
}

@keyframes visibleAnim {
    from {
        transform: scale(0);
        opacity: 0;
        z-index: -1;
    }

    to {
        transform: scale(1);
        opacity: 1;
        z-index: 2;
    }
}

@keyframes ocultaAnim {
    from {
        transform: scale(1);
        opacity: 1;
        z-index: 2;
    }

    to {
        transform: scale(0);
        opacity: 0;
        z-index: -1;
    }
}

.textColorCocoa {
    color: #A16C3A;
}

.modal-position-fixed > .sag-modal-shadow {
    position: fixed
}
/*#endregion */

/*#region UI for Low Resolution Devices */
@media (max-width: 767px) {
    .container-fluid {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .no-display-movile {
        display: none !important;
    }

    .container {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/*#endregion */

/*#region Icons */
/* Magnifying glass */
.filter-column .col-options-button {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /> </svg>');
}

/* Caret up */
.oi-caret-right {
    display: inline-block;
    width: 1em;
    height: 1em;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23000' d='M2 0v8l4-4z'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Caret down */
.oi-caret-bottom {
    display: inline-block;
    width: 1em;
    height: 1em;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23000' d='m0 2l4 4l4-4z'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
/*#endregion */

/*#region Table */
.sticky-bottom {
    position: sticky;
    background: white;
    bottom: 0;
}

.sticky-top, .sticky-top-quickgrid > thead {
    position: sticky;
    background: white;
    z-index: 1 !important;
    top: 0 !important;
}

.table-height {
    font-size: calc(724px / 20);
    overflow-anchor: none;
}

    .table-height > table > tbody {
        height: 619px;
    }

.fit-column-table {
    width: 1px;
}

.border-bottom-tr {
    border-bottom: 2px solid black;
}
/*#endregion */

/*#region Table Selectable */
.item-selected {
    background-color: #6b92c5 !important;
    color: white !important;
}

button.item-selected {
    color: white;
    border-color: white;
}

    button.item-selected:hover {
        color: #6b92c5 !important;
        background-color: white !important;
    }

.highlightRow-border {
    border: 2px solid #FF8C00; /* Dark orange */
}
/*#endregion */

/*#region Borders */
.top-border {
    border-top: 3px solid #9f9f9f !important;
}

.bottom-border {
    border-bottom: 3px solid #9f9f9f !important;
}

.border-start-end {
    border-left: 3px solid #9f9f9f !important;
    border-right: 3px solid #9f9f9f !important;
}

.border-complete {
    border: 3px solid #9f9f9f !important;
}
/*#endregion */

/*#region Border Styles */
.border-solid {
    border: solid #b2b4b7;
}

.border-double {
    border: double #b2b4b7;
}

.border-dashed {
    border: dashed #b2b4b7;
}
/*#endregion */

/*#region Rounded */
/* Nota: Bootstrap 5 incluye .rounded-1 a .rounded-5 nativamente. 
   Se mantienen para no romper tu diseño, pero si notas algo extraño, prueba a comentarlas. */
.rounded-1 {
    border-radius: 0.25rem !important
}

.rounded-2 {
    border-radius: 0.50rem !important
}

.rounded-3 {
    border-radius: 0.75rem !important
}

.rounded-4 {
    border-radius: 1rem !important
}
/*#endregion */

/*#region Max Height */
.mvh-25 {
    max-height: 25vh
}

.mvh-50 {
    max-height: 50vh
}

.mvh-75 {
    max-height: 75vh
}

.mvh-100 {
    max-height: 100vh
}
/*#endregion */

/*#region Max Width */
.mvw-25 {
    max-width: 25vw
}

.mvw-50 {
    max-width: 50vw
}

.mvw-75 {
    max-width: 75vw
}

.mvw-100 {
    max-width: 100vw
}
/*#endregion */

/*#region Overflow */
.overflow-y-auto {
    overflow-y: auto !important;
}

.overflow-x-auto {
    overflow-x: auto !important;
}
/*#endregion */

.height-select > select, .height-input {
    height: calc(1.5em + 0.75rem + 6px) !important;
}

.textarea-size-content {
    field-sizing: content;
    resize: none;
}

.grid-scroll {
    width: 100%;
    height: 400px;
    overflow-x: auto;
}

.gap-15 {
    gap: 15px;
}

::deep .grid-width-300 {
    width: 300px;
}

/*#region LoadingPopUp */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
/*#endregion */

/*#region TreeView */
.tree-container ul {
    list-style: none;
    padding-left: 20px;
    position: relative;
}

    .tree-container ul::before {
        content: "";
        position: absolute;
        top: 0;
        left: 10px;
        bottom: 0;
        width: 1px;
        background: #ccc;
    }

.tree-container li {
    position: relative;
    padding: 3px 10px;
}

    .tree-container li::before {
        content: "";
        position: absolute;
        top: 15px;
        left: 0;
        width: 10px;
        height: 1px;
        background: #ccc;
    }

    .tree-container li span {
        cursor: pointer;
    }

    .tree-container li button {
        background: none;
        border: none;
        margin-right: 5px;
        color: #007bff;
    }

        .tree-container li button:hover {
            color: #0056b3;
        }

.account-name-container {
    position: relative;
    display: inline-block;
}

.action-buttons {
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
}
/*#endregion */

/*#region Excel-Button*/
.longer-hr {
    width: 300%;
    margin-left: -100%;
}

/* Solo aplicamos esto a .excel-button, no a la clase global .btn */
.excel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    background-color: #28a745; /* Color btn-success de Bootstrap */
    color: white;
    padding: 0.375rem 0.75rem; /* Padding de Bootstrap */
    font-size: 1rem; /* Tamaño de fuente de Bootstrap */
    border-radius: 0.25rem; /* Border-radius de Bootstrap */
    border: 1px solid transparent; /* Border de Bootstrap */
    position: relative;
    margin-bottom: 0; /* Asegúrate de que no haya espacio debajo */
}

    /* Solo aplicamos disabled a .excel-button */
    .excel-button:disabled {
        background-color: #6c757d; /* A more opaque green color */
        color: #ccc; /* Optional: Change text color when disabled */
        cursor: not-allowed; /* Optional: Change cursor to indicate disabled state */
    }

    .excel-button::before {
        content: url('/images/file-excel-solid.svg');
        display: inline-block;
        width: 1em; /* Ajusta el ancho del ícono */
        height: 1em; /* Ajusta la altura del ícono */
        margin-right: 0.5rem; /* Espacio entre el ícono y el texto */
        fill: currentColor; /* Hereda el color del texto del botón */
    }
/*#endregion*/

/*#region Fix-TypeAhead*/
.fix-typeahead__resultsContable > .blazored-typeahead > .blazored-typeahead__results {
    position: fixed !important;
    z-index: 10;
    max-width: 48vw;
    overflow-y: auto;
    min-height: 2rem;
    max-height: -webkit-fill-available;
}

.fix-typeahead__resultsGastos > .blazored-typeahead > .blazored-typeahead__results {
    position: fixed !important;
    z-index: 10;
    max-width: 23vw;
    overflow-y: auto;
    min-height: 2rem;
    max-height: -webkit-fill-available;
}
/*#endregion*/

/*#region Diferencias*/
.dif-label {
    font-weight: bold;
    color: red;
    position: relative;
}
/*#endregion*/

.cursor-pointer {
    cursor: pointer;
}

.table-compact th,
.table-compact td {
    padding: 4px 6px;
    font-size: 14px;
    max-width: 150px;
}

/*#region tabla inferior ReciboVentasDespachoOrganico */
.border-top-table {
    border-top: 1px solid #ACABAB;
}

.border-center {
    border-right: 1px solid #ACABAB;
}

.table-cell-style {
    padding: 8px;
}

.gap-5px {
    gap: 5px;
}

.w-40 {
    width: 40%;
}

.ecf-report body {
    font-size: 12pt !important;
}

.ecf-report h1 {
    font-size: 14pt !important;
}

.ecf-report h2 {
    font-size: 12pt !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ecf-report p {
    font-size: 10pt !important;
}
/*#endregion*/

.foto-productor {
    width: 231px;
    height: 173px;
    object-fit: cover;
    border-radius: 8px;
}

.sag-file-input-custom {
    color: transparent !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
    line-height: 0 !important;
}

    .sag-file-input-custom::-webkit-file-upload-button {
        background-color: #007bff;
        color: white !important;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px !important;
        font-weight: 400;
        transition: background-color 0.15s ease-in-out;
        margin: 0;
        line-height: normal;
    }

        .sag-file-input-custom::-webkit-file-upload-button:hover {
            background-color: #0056b3;
        }

    .sag-file-input-custom::file-selector-button {
        background-color: #007bff;
        color: white !important;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px !important;
        font-weight: 400;
        transition: background-color 0.15s ease-in-out;
        margin: 0;
        line-height: normal;
    }

        .sag-file-input-custom::file-selector-button:hover {
            background-color: #0056b3;
        }

    .sag-file-input-custom::-ms-browse {
        background-color: #007bff;
        color: white !important;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px !important;
        font-weight: 400;
        margin: 0;
        line-height: normal;
    }

        .sag-file-input-custom::-ms-browse:hover {
            background-color: #0056b3;
        }

.quickgrid[theme=Sticky-Header] th {
    position: sticky;
    background: white;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid #ccc;
    padding: 6px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.quickgrid[theme=Sticky-Header] table {
    width: 100%;
    background: white;
    border-collapse: collapse;
}

.quickgrid[theme=Sticky-Header] .col-title {
    font: bold !important;
    background: white;
    font-weight: bold;
}

.image-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .image-preview.show {
        display: flex;
    }

    .image-preview .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 24px;
        cursor: pointer;
        z-index: 10001;
    }

.preview-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.15s ease-out;
}

    .preview-image.image-zoom-in {
        cursor: crosshair;
        transform: scale(3);
    }

    .preview-image.image-zoom-out {
        cursor: zoom-in;
        transform: scale(1);
    }

/*#region Dashboard Tiles (Index) */
.card-group > a {
    flex: 1 0 0%;
    min-width: 80px;
    text-decoration: none;
}

    .card-group > a > .card-body {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 0.5rem;
    }

        .card-group > a > .card-body > span {
            display: block;
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .card-group > a > .card-body > p {
            margin-bottom: 0;
        }
/*#endregion */

.input-group-combo-sm {
    width: 150px;
    flex: 0 0 150px;
}

    .input-group-combo-sm select {
        width: 150px;
        border-color: #ced4da;
        border-left: none;
        border-radius: 0 0.25rem 0.25rem 0;
    }

/*#region ListacoContratoProductores */
.listado-contrato-productores-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.75rem;
}

    .listado-contrato-productores-table th,
    .listado-contrato-productores-table td {
        padding: 1px !important;
    }

    .listado-contrato-productores-table th {
        font-weight: bold;
    }

        .listado-contrato-productores-table th:nth-child(1),
        .listado-contrato-productores-table td:nth-child(1) {
            width: 9%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-table th:nth-child(2),
        .listado-contrato-productores-table td:nth-child(2) {
            width: 8%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-table th:nth-child(3),
        .listado-contrato-productores-table td:nth-child(3) {
            width: 12%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-table th:nth-child(4),
        .listado-contrato-productores-table td:nth-child(4) {
            width: 14%;
            white-space: normal;
            word-wrap: break-word;
        }

        .listado-contrato-productores-table th:nth-child(5),
        .listado-contrato-productores-table td:nth-child(5) {
            width: 11%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-table th:nth-child(6),
        .listado-contrato-productores-table td:nth-child(6) {
            width: 12%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-table th:nth-child(7),
        .listado-contrato-productores-table td:nth-child(7) {
            width: 12%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-table th:nth-child(8),
        .listado-contrato-productores-table td:nth-child(8) {
            width: 11%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-table th:nth-child(9),
        .listado-contrato-productores-table td:nth-child(9) {
            width: 12%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

.listado-contrato-productores-footer {
    border-top: 2px solid black;
    font-weight: bold;
}

.listado-contrato-productores-total {
    border-top: 2px solid black;
    font-weight: bold;
    background-color: #f8f9fa;
}

.listado-contrato-productores-header {
    background-color: #e9ecef;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    width: 100%;
}
/*#endregion ListacoContratoProductores */

.font-size-12 * {
    font-size: 12px;
}

.page-brake-before {
    break-before: page;
}

/*#region listado-contrato-productores-detallado */
.listado-contrato-productores-detallado-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.75rem;
}

    .listado-contrato-productores-detallado-table th,
    .listado-contrato-productores-detallado-table td {
        padding: 1px !important;
    }

    .listado-contrato-productores-detallado-table th {
        font-weight: bold;
    }

        .listado-contrato-productores-detallado-table th:nth-child(1),
        .listado-contrato-productores-detallado-table td:nth-child(1) {
            width: 9%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-detallado-table th:nth-child(2),
        .listado-contrato-productores-detallado-table td:nth-child(2) {
            width: 18%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-detallado-table th:nth-child(3),
        .listado-contrato-productores-detallado-table td:nth-child(3) {
            width: 12%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-detallado-table th:nth-child(4),
        .listado-contrato-productores-detallado-table td:nth-child(4) {
            width: 11%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-detallado-table th:nth-child(5),
        .listado-contrato-productores-detallado-table td:nth-child(5) {
            width: 12%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-detallado-table th:nth-child(6),
        .listado-contrato-productores-detallado-table td:nth-child(6) {
            width: 13%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-detallado-table th:nth-child(7),
        .listado-contrato-productores-detallado-table td:nth-child(7) {
            width: 12%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .listado-contrato-productores-detallado-table th:nth-child(8),
        .listado-contrato-productores-detallado-table td:nth-child(8) {
            width: 13%;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

.listado-contrato-productores-detallado-footer {
    border-top: 2px solid black;
    font-weight: bold;
}

.listado-contrato-productores-detallado-total {
    border-top: 2px solid black;
    font-weight: bold;
    background-color: #f8f9fa;
}

.listado-contrato-productores-detallado-header {
    background-color: #e9ecef;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    width: 100%;
}

/*#endregion listado-contrato-productores-detallado */

/*#region input-group fixes (Adaptado a BS5) */
.input-group:has(.btn + .modal-position-fixed) .btn {
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.input-group > .blazored-typeahead:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .blazored-typeahead {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}
/*#endregion */

/* ==========================================================================
   SB Admin Layout & Sidebar (Migrado a BS5)
   ========================================================================== */
#layoutAuthentication {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    #layoutAuthentication #layoutAuthentication_content {
        min-width: 0;
        flex-grow: 1;
    }

    #layoutAuthentication #layoutAuthentication_footer {
        min-width: 0;
    }

#layoutSidenav {
    display: flex;
}

    #layoutSidenav #layoutSidenav_nav {
        flex-basis: 225px;
        flex-shrink: 0;
        transition: transform 0.15s ease-in-out;
        z-index: 1038;
        transform: translateX(-225px);
    }

    #layoutSidenav #layoutSidenav_content {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        flex-grow: 1;
        min-height: calc(100vh - 56px);
        margin-left: -225px;
    }

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
    transform: translateX(0);
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_content:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1037;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

@media (min-width: 992px) {
    #layoutSidenav #layoutSidenav_nav {
        transform: translateX(0);
    }

    #layoutSidenav #layoutSidenav_content {
        margin-left: 0;
        transition: margin 0.15s ease-in-out;
    }

    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
        transform: translateX(-225px);
    }

    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content {
        margin-left: -225px;
    }

        .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content:before {
            display: none;
        }
}

.sb-nav-fixed .sb-topnav {
    z-index: 1039;
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
    width: 225px;
    height: 100vh;
    z-index: 1038;
}

    .sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav {
        padding-top: 56px;
    }

        .sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav .sb-sidenav-menu {
            overflow-y: auto;
        }

.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
    padding-left: 225px;
    top: 56px;
}

#layoutError {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    #layoutError #layoutError_content {
        min-width: 0;
        flex-grow: 1;
    }

    #layoutError #layoutError_footer {
        min-width: 0;
    }

.img-error {
    max-width: 20rem;
}

.nav .nav-link .sb-nav-link-icon,
.sb-sidenav-menu .nav-link .sb-nav-link-icon {
    margin-right: 0.5rem;
}

.sb-topnav {
    padding-left: 0;
    height: 56px;
    z-index: 1039;
}

    .sb-topnav .navbar-brand {
        width: 225px;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0;
    }

    .sb-topnav.navbar-dark #sidebarToggle {
        color: rgba(255, 255, 255, 0.5);
    }

    .sb-topnav.navbar-light #sidebarToggle {
        color: #212529;
    }

.sb-sidenav {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-wrap: nowrap;
}

    .sb-sidenav .sb-sidenav-menu {
        flex-grow: 1;
    }

        .sb-sidenav .sb-sidenav-menu .nav {
            flex-direction: column;
            flex-wrap: nowrap;
        }

            .sb-sidenav .sb-sidenav-menu .nav .sb-sidenav-menu-heading {
                padding-top: 1rem;
                padding-right: 0.5rem;
                padding-bottom: 0.75rem;
                padding-left: 0.5rem;
                font-size: 0.75rem;
                font-weight: bold;
                text-transform: uppercase;
            }

            .sb-sidenav .sb-sidenav-menu .nav .nav-link {
                display: flex;
                align-items: center;
                padding-top: 0.1rem;
                padding-bottom: 0.5rem;
                position: relative;
            }

                .sb-sidenav .sb-sidenav-menu .nav .nav-link .sb-nav-link-icon {
                    font-size: 0.9rem;
                }

                .sb-sidenav .sb-sidenav-menu .nav .nav-link .sb-sidenav-collapse-arrow {
                    display: inline-block;
                    margin-left: auto;
                    transition: transform 0.15s ease;
                }

                .sb-sidenav .sb-sidenav-menu .nav .nav-link.collapsed .sb-sidenav-collapse-arrow {
                    transform: rotate(-90deg);
                }

            .sb-sidenav .sb-sidenav-menu .nav .sb-sidenav-menu-nested {
                margin-left: 1.5rem;
                flex-direction: column;
            }

    .sb-sidenav .sb-sidenav-footer {
        padding: 0.75rem;
        flex-shrink: 0;
    }

.sb-sidenav-dark {
    background-color: #784200;
    color: rgba(255, 255, 255, 0.5);
}

    .sb-sidenav-dark .sb-sidenav-menu .sb-sidenav-menu-heading {
        color: rgba(255, 255, 255, 1);
    }

    .sb-sidenav-dark .sb-sidenav-menu .nav-link {
        color: rgba(255, 255, 255, 0.9);
    }

        .sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-nav-link-icon,
        .sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-sidenav-collapse-arrow {
            color: rgba(255, 255, 255, 0.5);
        }

        .sb-sidenav-dark .sb-sidenav-menu .nav-link:hover,
        .sb-sidenav-dark .sb-sidenav-menu .nav-link.active {
            color: #fff;
        }

            .sb-sidenav-dark .sb-sidenav-menu .nav-link.active .sb-nav-link-icon {
                color: #fff;
            }

    .sb-sidenav-dark .sb-sidenav-footer {
        background-color: #343a40;
    }

.sb-sidenav-light {
    background-color: #f8f9fa;
    color: #212529;
}

    .sb-sidenav-light .sb-sidenav-menu .sb-sidenav-menu-heading {
        color: #adb5bd;
    }

    .sb-sidenav-light .sb-sidenav-menu .nav-link {
        color: #212529;
    }

        .sb-sidenav-light .sb-sidenav-menu .nav-link .sb-nav-link-icon,
        .sb-sidenav-light .sb-sidenav-menu .nav-link .sb-sidenav-collapse-arrow {
            color: #adb5bd;
        }

        .sb-sidenav-light .sb-sidenav-menu .nav-link:hover,
        .sb-sidenav-light .sb-sidenav-menu .nav-link.active {
            color: #007bff;
        }

            .sb-sidenav-light .sb-sidenav-menu .nav-link.active .sb-nav-link-icon {
                color: #007bff;
            }

    .sb-sidenav-light .sb-sidenav-footer {
        background-color: #e9ecef;
    }

/* ==========================================================================
   ESTILOS DE APLICACIÓN (Blazor / SPA)
   ========================================================================== */
app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ==========================================================================
   RESTAURAR COLOR 'INFO' GLOBAL (Estilo clásico Bootstrap 4 / SB Admin)
   ========================================================================== */
.btn-info {
    color: #fff !important;
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

    .btn-info:hover,
    .btn-info:focus,
    .btn-info:active {
        color: #fff !important;
        background-color: #138496 !important;
        border-color: #117a8b !important;
    }

/* ==========================================================================
   FIX: Forzar CUALQUIER botón 'info' en combos (Normal Gris -> Hover Info Teal)
   ========================================================================== */
.input-group .btn-info {
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

    .input-group .btn-info:hover {
        background-color: #138496 !important;
        border-color: #117a8b !important;
        color: #fff !important;
        cursor: pointer;
    }

/* ==========================================================================
   EXCEPCIÓN: Restaurar color Teal nativo SOLO para el botón de Búsqueda
   (Requiere que el componente tenga ClassButton="btn btn-info btn-buscar")
   ========================================================================== */
.input-group .btn-buscar {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
}

    .input-group .btn-buscar:hover {
        background-color: #138496 !important;
        border-color: #117a8b !important;
        color: #fff !important;
    }