@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

html, body {
    height: 100%;
    overflow: hidden;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.ow-prazo-aceite 
{
    background-color:chartreuse;
}

.ow-prazo-por-aprovar {
    background-color: yellow;
}

.ow-prazo-rejeitado {
    background-color: orangered;
}

.grid-OW {

    height:96%;
}

.component-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    min-height: 240px;
    width: 100%;
    padding: 2rem;
}

.PageTitle {
    margin-bottom: 15px;
    border-radius: 12px;
}

.PageTitle .card-header {
    border-radius: 12px;
}

.section-component-area {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    width: 100%;
}

.myGrid {
    height: 100%;
    margin: 0px;
}

.myLoading {
    height: 90%;
    padding: 0px;
    margin-top: 5px;
}

.inputEtiquetas {

}

.manufGrid {
    height: 50%;
    padding: 0px;
}

.sizesGrid{
    width: 100%;
}

.largeContainer{
    padding: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}

.imgContainer{
    width: 300px;
    height: auto;
    border: 4px solid lightgray;
    border-radius: 10px;
    /* margin-left: 40px; */
}

.detailFabrico{
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.myGrid.dx-row-focused.dx-data-row > td:not(.dx-focused) {
  background-color: blue;
}

.dxbl-treeview .dxbl-treeview-empty-data {
    opacity: 0 !important;
}

.sidebar{
    min-width: 300px !important;
    overflow-x: hidden;
    overflow-y: auto;
    height: 600px;
    transition: all 0.5s !important;
    -webkit-transition: all 0.35s !important;
    transform-origin: left;
}

.sidebar.collapsed{
    height: 100%;
    position: absolute;
    transform: scaleX(0);
    z-index: 1;
}

.NewOrderForm{
    padding: 10px;
    width: 100%
}

@media screen and (min-width: 800px) {

    .fillDiv{
        margin-right: 400px;
    } 

    .modeloDetalheContent{
        padding: 50px 50px 0px 50px;
    }

    .modeloDetalheImagemThumb img{
        width: 100px !important;
    }

    .modeloDetalheImagem{
        object-fit: contain;
        width: 100%;
        height: 350px;
    }

    .classWithPad { margin:10px; padding:10px; }

    .longTextInput {
        width: 100%;
    }

    .longTextInput {
        width: 300px;
    }

    .shorterTextInput {
        width: 146px;
    }

    .mediumTextInput {
        width: 200px;
    }

    .mediumMinusTextInput {
        width: 196px;
    }

    .shortTextInput {
        width: 100px;
    }

    .shortestTextInput {
        width: 96px;
    }

    .separator {
        overflow: hidden;
        background-color: currentColor;
        opacity: 0.2;
        width: 100%;
        height: 1px;
        margin-top: 15px;
        padding: 0 !important;
    }

    .GridLayoutOrdFab{
        padding: 0px 0px 0px 40px !important;
        height: 600px !important;
    }

    .sizeGridOrdFab{
        width: 70% !important;
    }

    .imgOrdFabWrapper {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .imgOrdFab {
        display: block;
        width: 500px;
        height: 500px;
        object-fit: contain; /* mostra a imagem inteira, sem cortar */
        background-color: #fff; /* preenche espa�o vazio se a propor��o n�o bater certo */
        box-shadow: 10px 5px 5px darkgrey;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .LinkDocLabel{
        font-size: 14px;
        margin-right: 4px;
        margin-left: 50px;
    }

    .ExpedicaoDiv{
        max-width: 50vw;
    }
}

@media (max-width: 1000px){
    /*.EncoLista{
        height: 500px !important;
    }*/
    .sidebar{
        width: 100%;
        height: 500px;
        border: 1px solid gray;
        transition: all 0.5s;
    }

    .modeloDetalheContent{
        padding: 0;
    }

    .modeloDetalheImagemThumb img{
        width: 50px !important;
    }

    .modeloDetalheImagem{
        width:300px
    }

    .Toolbar{
        text-wrap: wrap !important;
    }

    .HideSmallHeader{
        display: none;
    }

    .imgOrdFabWrapper {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .imgOrdFab{
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 45vh;
        object-fit: contain;
        box-shadow: 10px 5px 5px darkgrey;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .GridLayoutOrdFab{
        height: auto !important;
    }

    .LinkDocLabel{
        font-size: 14px;
        margin-right: 4px;
        margin-left: 20px;
    }
}


/*---------*/
.product-card {
    width: 320px !important;
    position: relative;
    box-shadow: 0 2px 7px #dfdfdf;
    margin: 50px auto;
    background: #fafafa;
}

.badge {
    left: 0;
    top: 30px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    background: red;
    color: #fff;
    padding: 3px 10px;
    position: absolute;
}

.badgeVendas {
    position: absolute;
    left: 0;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    background: red;
    color: #fff;
    padding: 3px 10px;
}

.product-tumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f0f0f0;
    overflow: hidden;
    padding: 30px 0px;
}

.product-tumb img {
    width: 100%;
}

.product-details {
    padding: 20px;
}

.product-catagory {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 12px;
}

.product-details h4 a {
    font-weight: 500;
    display: block;
    text-transform: uppercase;
    color: #363636;
    text-decoration: none;
    transition: 0.3s;
}

.product-details h4 a:hover {
    color: #fbb72c;
}

.product-details p {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 18px;
    color: #999;
}

.product-bottom-details {
    overflow: hidden;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.product-bottom-details div {
    float: left;
    width: 50%;
}

.product-price {
    font-size: 18px;
    color: #fbb72c;
    font-weight: 600;
}

.product-price small {
    font-size: 80%;
    font-weight: 400;
    text-decoration: line-through;
    display: inline-block;
    margin-right: 5px;
}

.product-links {
    text-align: right;
}

.product-links a {
    display: inline-block;
    margin-left: 5px;
    color: #e1e1e1;
    transition: 0.3s;
    font-size: 17px;
}

.product-links a:hover {
    color: #fbb72c;
}

.modeloDetalheComboBoxDestaque{
    width: 240px;
    background-color: lightyellow !important;
    border: 1px solid black !important;
}

.modeloDetalheCombo{
    width: 100px;
}

.modeloDetalhePrecosGrid{
    width: 300px !important;
    /*margin-top: 20px;*/
}

.modeloDetalhePrecosGrid th {
    color: white;
    background-color: #333333 !important;
    border-color: #464646 !important;
}
.modeloDetalhePrecosGrid th span {
    color: white;
}

.disabledTextBox input{
    background: lightgray !important;
    border: 1px solid lightgray !important;
}

.combobox-item-template {
    display: flex;
    align-items: center;
    width: 200px;
}
.combobox-item-template > img {
    border-radius: 50%;
    width: 5rem;
}
img + .combobox-item-template-text {
    margin-left: 1rem;
}
.combobox-item-template-text {
    display: flex;
    flex-flow: column; 
}
.combobox-item-template-familia {
    opacity: 0.65;
}

.combobox-item-template-preco {
    opacity: 0.65;
    color: orangered;
}

.combobox-item-template-modelo {
    color: slateblue;
}

.hiddenRow {
    padding: 0 !important;
}

.modeloDetalhePrecosGridLinha{
    width: 50px !important;
}

.modeloDetalhePrecosGridLinha th {
    color: white;
    background-color: lightgray !important;
}
.modeloDetalhePrecosGridLinha th span {
    color: black;
}

.modeloDetalheComboBoxLinha{
    width: 150px;
}

.buttonAcoesEnco{
    margin-bottom: 10px;
    border: solid 1px rgba(0,0,0,0.2) !important;
}

.EncoLista{
    max-height: 80vh !important;
}

.searchToolbarInput{
    width: 100px;
}

.null-bg{
    background-color: #EEEEEE;
}

.gridlayout-item:before {
    content: " ";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.6;
}

.modeloDetalheCheckbox{
    box-sizing: border-box;
    padding: 0;
    -ms-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -o-transform: scale(1.5);
    /* padding: 10px; */
}

.ProducaoSpinEdit{
    width: 250px;
    display: inline-block !important;
}

.dxbs-uc > .dxuc-file-list-view .dxuc-file-view .dxbl-upload-file-view-icon-container > .dxbl-upload-file-view-icon-container-file-extension.badge {
    margin: 0.75rem .5rem .5rem !important;
}

#dropzone-external {
    background-color: rgba(183, 183, 183, 0.1);
    border-width: 2px;
    border-style: dashed;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#dropzone-external > * {
    pointer-events: none;
}
#dropzone-external.dropzone-hover {
    border-style: solid;
}
.upload-container > span {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 16px;
}
#dropzone-image {
    max-width: 100%;
    max-height: 100%;
}
#dropzone-text > span {
    font-weight: 100;
    opacity: 0.5;
}
.upload-progress {
    display: flex;
    margin-top: 10px;
}
.flex-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-container,
.upload-container > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.drop-file-icon {
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: #ADB5BD;
    width: 48px;
    height: 48px;
    -webkit-mask-image: url("../images/icons/drop-file.svg");
    mask-image: url("../images/icons/drop-file.svg");
}
.drop-file-label {
    font-weight: 500;
    font-size: 1rem;
}

.dxbl-fl .dxbl-fl-group>.dxbl-group{
    border: 1px solid lightgray !important;
}

.grid-full {
    height: 100%;
}

.flex-div {
    display: flex;
    flex-direction: row;
}

.sm-input {
    width: 150px;
}

.lg-input{
    width: 400px;
}

.full-input{
    width:100%;
}

/* Estilo para quando a quantidade � maior que o saldo */
.input-warning input {
    background-color: #fff3cd !important; /* Amarelo claro */
    color: #664d03 !important;
}

/* Estilo para quando a quantidade � igual ao saldo */
.input-success input {
    background-color: #d1e7dd !important; /* Verde claro */
    color: #0f5132 !important;
}

.prepArtigoCombobox {
    max-width: 300px;
}





/*---------*/
/* Novos estilos globais */
/* --- Universal Page Header --- */
.page-header-container {
    background-color: #f8f9fa; /* Added a very light background color */
    border: 1px solid #e9edf3;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
    overflow: hidden; /* Ensures child elements respect the border radius */
}

/* --- DevExpress Toolbar Customization --- */
.page-header-container .dxbl-toolbar {
    padding: 1rem 1.5rem; /* Adjusted padding for better vertical alignment */
    display: flex; /* Ensure flexbox is active for alignment */
    align-items: center; /* This will now work correctly */
    border-bottom: none; /* Remove default toolbar border */
}

.page-header-container .dxbl-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #182233;
    margin: 0; /* Reset any default margin that could interfere with alignment */
}

/* --- Toolbar Item Styling --- */
.page-header-container .dxbl-toolbar-item {
    margin: 0 4px;
}

/* Default/Plain button style */
.page-header-container .dxbl-toolbar-item .btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 6px 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Primary button style for key actions like "Novo" */
.page-header-container .dxbl-toolbar-item[name="btNovo"] .btn {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.page-header-container .dxbl-toolbar-item[name="btNovo"] .btn:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* --- Universal Modern Grid Style --- */
.modern-grid-container {
    height: calc(100vh - 220px); /* Adjusted height for larger header */
    width: 100%;
    border: 1px solid #e9edf3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.modern-grid-container .dxbs-grid {
    border: none;
}

/* Grid Header */
.modern-grid-container .dxbs-grid-header-row {
    background-color: #f8f9fa;
    color: #343a40;
    font-weight: 600;
}

/* Grid Rows */
.modern-grid-container .dxbs-grid-table .dxbs-grid-row {
    border-bottom: 1px solid #e9edf3;
    transition: background-color 0.2s ease-in-out;
}

.modern-grid-container .dxbs-grid-table .dxbs-grid-row:hover {
    background-color: #f1f5f9; /* Subtle hover effect */
}

/* Selected Row */
.modern-grid-container .dxbs-grid-table .dxbs-grid-row.dxbs-grid-row-selected {
    background-color: #cfe2ff;
    font-weight: 500;
}

.modern-grid-container .dxbs-grid-table .dxbs-grid-row.dxbs-grid-row-selected:hover {
    background-color: #b9d5ff;
}

/* Filter Row */
.modern-grid-container .dxbs-grid-filter-row td {
    background-color: #f8f9fa;
    padding: 8px 12px;
}

/* Loading Panel */
.modern-grid-container .myLoading {
    border-radius: 12px;
}




html {
    visibility: visible;
    opacity: 1;
}