html {
    font-size: 100%;
}
/*#region SAG Custom Forms Styles */
#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]) {
    background-color: yellow !important;
    border: 1px solid orange;
}

input[type=number] {
    text-align: right;
}

.uppercase {
    text-transform: uppercase;
}

.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 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 */
.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 */


.highlightRow-border {
    border: 2px solid #FF8C00; /* Dark orange */
}
}
/*#endregion*/

/*#region Excel-Button*/
.longer-hr {
    width: 300%;
    margin-left: -100%;
}

.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 */
}
.btn:disabled,
.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*/


.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;
}
/*#region Diferencias*/
.dif-label {
    font-weight: bold;
    color: red;
    position: relative; 
}

.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;
}
/*#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; /* Oculta completamente el texto */
    line-height: 0 !important; /* Elimina el espacio de línea */
}

.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; /* Restaura el tamaño del botón */
    font-weight: 400;
    transition: background-color 0.15s ease-in-out;
    margin: 0;
    line-height: normal; /* Restaura line-height del botón */
}

.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;
}