@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    overflow: hidden;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.btn-primary:hover {
    border-color: #167ec1 !important;
    background-color: #136ba4 !important;
}

.btn-primary:active {
    border-color: #167ec1 !important;
    background-color: #136ba4 !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

.table-secondary {
    --bs-table-bg: #e3e6e7 !important;
}

.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;
}

/*barra di scorrimento*/
::-webkit-scrollbar {
    width: 7px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary);
}
::-webkit-scrollbar-track {
    background-color: #dfe2eb;
}
::-webkit-scrollbar-button {
    display: none !important;
}

/*modali*/
.modal-backdrop {
    --bs-backdrop-zindex: 0;
}

.dxbl-modal-body {
    background-color: #f0f0f0;
}

/*generali*/
/*header pagina*/
.gruppo-intestazione-pagina {
    position: sticky;
    top: 0;
    background: white;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
    /*border-bottom: 2px solid #95a5a6;*/
    border-radius: 3px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.titolo-pagina {
    font-size: 24px;
    font-weight: bold;
    color: var(--bs-primary);
    /*margin: 10px 0;*/
    margin-bottom: 0;
}

.titolo-pagina-2 {
    font-size: 20px;
    color: var(--bs-primary);
    margin: 10px 0;
}

.btn-page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.icon {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem;
}
.icon-ricerca {
    background-image: url(../images/icons/magnifying-glass.svg);
}
.icon-duplica {
    background-image: url(../images/icons/copy-white.svg);
}
.icon-conferma {
    background-image: url(../images/icons/save.svg);
}
.icon-nuovo {
    background-image: url(../images/icons/new.svg);
}
.icon-annulla {
    background-image: url(../images/icons/undo.svg);
}
.icon-elimina {
    background-image: url(../images/icons/delete.svg);
}
.icon-stampa {
    background-image: url(../images/icons/print-white.svg);
}
.icon-note {
    background-image: url(../images/icons/note.svg);
}
.icon-immagine {
    background-image: url(../images/icons/immagine.svg);
}
.icon-fullscreen-enter {
    background-image: url(../images/icons/fullscreen-enter.svg);
}

.bottone-pagina-footer {
    width: 100px;
    height: 40px;
}

/*divisori pagina*/
.divisore {
    margin: 20px 0;
}

.divisore-titolo {
    font-size: 16px;
    font-weight: bold;
    color: var(--bs-primary);
}

.divisore-linea {
    border: none;
    height: 2px;
    background-color: var(--bs-primary);
    margin-top: 10px;
    border-radius: 5px;
}

/*testi*/
.testo-lg {
    font-size: 1.2rem;
}

.testo-md {
    font-size: 1rem;
}

.testo-sm {
    font-size: 0.8rem;
}

/*tabelle*/
.tabella {
    --bs-table-bg: #ff851b !important;
}

.tabella-md {
    font-size: 0.875rem;
}

/*altro*/
.alert {
    font-size: 1rem;
}

.bg-green {
    background-color: #c8e0a0;
}

.bg-yellow {
    background-color: #f6e8a6;
}

.bg-orange {
    background-color: #ffd2b2;
}

.txt-orange {
    color: #ff6a00;
}

.bg-red {
    background-color: #ffc0c0;
}

.dxbl-text-edit {
    --dxbl-text-edit-readonly-bg: #e8e8e8;
}

.dxbl-text-edit-disabilitato {
    --dxbl-text-edit-readonly-bg: var(--bs-danger);
    --dxbl-text-edit-readonly-color: white;
}

.dxbl-toast-portal .dxbl-toast .dxbl-toast-content .dxbl-toast-template {
    justify-content: start;
}

.dx-memo-note {
    background: linear-gradient(135deg, #fff2d1, #ffe0a3);
    border: 1px solid #f0c572;
    border-radius: 8px;
    font-size: 14px;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.dxFormLayoutGroup-headerCss {
    font-weight: bold !important;
    font-size: 1.25rem !important;
}

@media print {

    .no-print{
        display: none !important;
    }

    .dxbl-drawer-panel {
        display: none !important;
    }

}