* {
    touch-action: manipulation;
}

/*----------------------- FIX AFTER ANGULAR 15 MIGRATION --------------------------------------------------*/

.modal, .modal-backdrop {
    z-index: 9999 !important;
}

.modal-dialog {
    z-index: 10000 !important;
}

.modal-content {
    z-index: 10001 !important;
}

.visually-hidden {
    display: none;
}

ngb-accordion:not(:last-child) > .accordion-item {
    border-bottom: 1px solid #EBEDF3;
    border-bottom-right-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.accordion-item.mb-10 {
    border: 1px solid #EBEDF3;
    border-bottom-right-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.accordion-body {
    padding: 1rem;
}

.mat-mdc-header-row {
    background-color: #f1f1f166 !important;
    font-size: 0.875rem !important;
    min-height: 50px;
}

.mat-mdc-paginator-container {
    border-top: 1px solid #ebedf3;
}

.mdc-notched-outline {
    display: flex !important;
    position: absolute !important;
    width: 65% !important;
    height: 0px !important;
    bottom: 10px !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
}

.ngb-dp-weekday {
    color: var(--info) !important;
}

.ngb-dp-header, .ngb-dp-weekdays {
    background-color: #f3f6f9 !important;
}

ngb-datepicker-navigation-select > .form-select {
    border: 1px solid #E4E6EF !important;
    border-radius: 0.42rem !important;
}

/*-------------------------------------------------------------------------------------------------*/

html, body {
    overflow: auto;
    height: 100%;
}

button {
    color: inherit;
}

.ui-no-shadow {
    box-shadow: none !important;
}

.big {
    font-size: 20px;
}

.header-fixed {
    /* border-bottom: 1px solid #eff0f6; */
}

.page-item.active >a {
    background-color: #003A9E !important;
    border: 1px solid #003A9E !important;
}

.mat-cell, .mat-footer-cell {
    /* font-size: 17px !important; */
}

.mat-header-cell {
    /* font-size: 14px !important; */
    font-weight: 600 !important;
}

/*TEST PER LE ROW*/
.row {
    /* margin-right: 0 !important;
    margin-left: 0 !important; */
}

.table {
    white-space: nowrap;
}


.bottom-pagination {
/*     bottom: 25px;
    position: absolute; */
    left: 0;
    right: 0;
}

.ui-box {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: .0625rem solid rgba(231,234,243,.7) !important;
    border-radius: .25rem;/* 
    box-shadow: 0 0.375rem 0.75rem rgb(140 152 164 / 8%); */
}

.ui-box-header {
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid #EBEDF3;
    scroll-margin-top: 70px;
}

.ui-box-header > .card-title {
    margin: 0;
}

.card-title > h3 {
    margin-bottom: 0;
}

.ui-box-ordersender-header {
    padding: 1rem 1.25rem 0 1.25rem;
    margin-bottom: 0;
    border-bottom: 1px solid #EBEDF3;
    scroll-margin-top: 70px;
}

.ui-box-body {
    flex: 1 1 auto;
    padding: 1.3125rem 1.3125rem;
}

.ui-box-stats {
    padding: 5px 0 1px 0;
    border: .0625rem solid rgba(231,234,243,.7) !important;
    border-radius: .75rem;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
}

.stats-icon {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    font-size: 30px;
}

.ui-box-subtitle, .ui-box-subtitle-value {
    display: block;
    text-transform: uppercase;
    color: #B5B5C3;
    font-weight: 500;
    margin-bottom: .25rem;
}

.ui-box-subtitle-value {
    font-weight: 600;
    color: #3f4254;
}

.mat-header-row {
    background-color: #f1f1f166 !important;
    font-size: 0.875rem !important;
    min-height: 50px;
}

.table-toolbar {
    display: flex;
    align-items: center;
    margin: 0;
    flex-wrap: wrap;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    min-height: 70px;
    padding-top: 0;
    padding-bottom: 0;
    background-color: transparent;
    padding: 2rem 2.25rem;
    margin-bottom: 0;
    border-bottom: 1px solid #EBEDF3;
}

.table-title {
    display: flex;
    align-items: center;
    /* margin: 0.5rem; */
    margin-left: 0;
}

.table-title > h3 {
    margin-bottom: 0;
}

.searchBox {
    background-color: transparent;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    box-shadow: none;
    padding-right: 0 !important;
    padding-left: 25px !important;
    border-radius: 0 !important;
}

.input-icon{
    position: absolute !important;
    /* left: 3px; */
    top: calc(50% - 0.5em); /* Keep icon in center of input, regardless of the input height */
  }

.form-outline {
    position: relative;
}

.mat-table {
    overflow-x: auto;
    font-weight: 400;
    font-size: 13px !important;
    font-family: Poppins, Helvetica, "sans-serif" !important;
}

.mat-row,
.mat-header-row {
    min-width: 800px;
}

.ui-btn-empty {
    border: none;
    background: none;
}

.ui-btn-primary, .ui-btn-secondary, .ui-btn-danger, .ui-btn-warning, .ui-btn-success, .ui-btn-details, .ui-btn-cellar {
    display: inline-block;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: .0625rem solid transparent;
    padding: .6125rem 1rem;
    border-radius: .3125rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.ui-btn-primary {
    color: #fff;
    background-color: #003A9E;
    border-color: #003A9E;
}

.ui-btn-secondary {
    color: #3F4254 !important;
    background-color: #E4E6EF !important;
    border-color: #E4E6EF !important;
}

.ui-btn-secondary:focus, .ui-btn-secondary:hover, .ui-btn-secondary:active {
    text-decoration: none !important;
    color: #3F4254 !important;
    background-color: #c4c6d1 !important;
    border-color:#c4c6d1 !important;
}

.ui-btn-primary:focus, .ui-btn-primary:hover, .ui-btn-primary:active {
    background-color: #5577df;
    border-color: #5577df;
    color: #fff;
}

.ui-btn-primary:disabled:hover, .ui-btn-primary:disabled:focus, .ui-btn-primary:disabled {
    background-color: #83a2d9 !important;
    border-color: #83a2d9 !important;
}

.ui-btn-secondary:disabled:hover, .ui-btn-secondary:disabled:focus, .ui-btn-secondary:disabled {
    background-color: #f9f9f9 !important;
    border-color: #f9f9f9 !important;
}

/* Stato di base del pulsante: grigio chiaro con icona scura */
.ui-btn-danger-on-hover {
    background-color: #F3F6F9; /* Sfondo grigio chiaro */
    border-color: #F3F6F9;
    color: #7E8299; /* Colore icona scuro */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Stato hover/focus: sfondo rosso con icona bianca */
.ui-btn-danger-on-hover:hover,
.ui-btn-danger-on-hover:focus,
.ui-btn-danger-on-hover:active {
    background-color: #F64E60; /* Sfondo rosso */
    border-color: #F64E60;
    color: #ffffff; /* Icona bianca */
}

.ui-btn-danger {
    background-color: #F64E60;
    border-color: #F64E60;
    color: white;
}

.ui-btn-danger:focus, .ui-btn-danger:hover, .ui-btn-danger:active {
    background-color: #f53448;
    border-color: #f53448;
    color: white;
}

.ui-btn-success {
    color: #008a63 !important;
    background-color: #a1e7d4 !important;
    border-color: #a1e7d4 !important;
}

.ui-btn-success:hover, .ui-btn-success:focus, .ui-btn-success:active {
    color: #fff !important;
    background-color: #00B482 !important;
    border-color: #00B482 !important;
}

.ui-btn-warning {
    color: #ff792b !important;
    background-color: #ffd3b9 !important;
    border-color: #ffd3b9 !important;
}

.ui-btn-warning:focus, .ui-btn-warning:hover, .ui-btn-warning:active {
    color: #fff !important;
    background-color: #ff792b !important;
    border-color: #ff792b !important;
}

.ui-btn-cellar > i, .ui-btn-details > i {
    color: #7E8299;
}

.ui-btn-details, .ui-btn-cellar {
    background-color: #F3F6F9 !important;
    border-color: #F3F6F9 !important;
}

.ui-btn-details:hover, .ui-btn-details:focus, .ui-btn-details:active, .ui-btn-cellar:hover, .ui-btn-cellar:focus, .ui-btn-cellar:active {
    background-color:#003a9e !important;
    border-color: #003a9e !important;
    color: #fff !important;
} 

.ui-btn-details:hover > i,  .ui-btn-details:focus > i, .ui-btn-details:active > i, .ui-btn-cellar:hover > i, .ui-btn-cellar:focus, .ui-btn-cellar:active > i {
    color: #fff !important;
}

.header {
    border-bottom: .0625rem solid rgba(231,234,243,.7);
}

.custom-padding {
    padding: 0 12.5px !important;
}

.ui-border-radius {
    border-radius: .75rem;
}

.ui-modal-footer {
    display: block !important;
}

.ui-login-padding {
    padding-top: 50px !important;
}

.ui-login-box {
    max-width: 500px;
    margin: 0 auto 20px;
    border-radius: 8px;
    padding: 10px 40px 40px 40px;
    background-color: #fff;
    border: 1px solid transparent;
    -webkit-box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
    box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
}

.ui-login-form-control {
    border: 1px solid #cbcbd2;
    height: 44px;
    padding-left: 50px;
    display: block;
    width: 100%;
    padding: 6px 12px 6px 50px;
    line-height: 1.42857;
    background-image: none;
    border: 1px solid #cbcbd2;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

.ui-login-form-control:focus {
    /* border-color: #79589f; */
    box-shadow:  0 1px 2px rgb(203 203 210 / 20%), 0 0 4px rgb(121 88 159 / 30%);
    outline: 0;
}

.ui-login-icon {
    position: absolute;
    top: 14px;
    left: 15px;
}

.ui-login-icon::after {
    content: '';
    position: absolute;
    right: -13px;
    top: -10px;
    bottom: -10px;
    width: 1px;
    opacity: .5;
    background-color: rgba(212,212,212,0);
    background-image: -webkit-linear-gradient(bottom,rgba(212,212,212,0) 0,#d4d4d4 30%,#d4d4d4 70%,rgba(212,212,212,0) 100%);
    background-image: linear-gradient(to top,rgba(212,212,212,0) 0,#d4d4d4 30%,#d4d4d4 70%,rgba(212,212,212,0) 100%);
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active
 {
   -webkit-transition: "color 9999s ease-out, background-color 9999s ease-out";
   -webkit-transition-delay: 9999s;
   transition: color 9999s ease-out, background-color 9999s ease-out;
   transition-delay: 9999s;
}


.ui-warning-alert { 
    margin:20px auto;
    padding:15px;
    position:relative;
    border-radius:5px;
    background-color: #ffe2e5;
    border-left: 5px solid #ff5c5c;
}

.ui-warning-alert:hover {
    cursor: pointer;
}

.ui-warning-alert > h6 {
    margin-bottom: 0 !important;
}

.ui-warning-alert > h6 > i {
    color: #ff5c5c;
}

.ui-warning-alert-close {  
    position:absolute;
    width:30px;
    height:30px;
    opacity:0.5;
    border-width:1px;
    border-style:solid;
    border-radius:50%;
    right:15px;
    top:10px;
    text-align:center;
    font-size:1.6em;
    cursor:pointer;
    border-color: #ffe2e5;
    color: #ffe2e5;
}

.ui-red-order {
    background-color: #ffe2e5;
}

.ui-red {
    color: #ff2c2c;
}

.ui-green {
    color: #36af3c;
}

.ui-btn-deny {
    background-color: #ff2c2c !important;
}

.ui-btn-deny:hover {
    background-color: #ca1e1e !important;
}

.ui-btn-approve {
    background-color: #36af3c !important;
}

.ui-btn-approve:hover {
    background-color: #27802a !important;
}

.ui-label-danger {
    background-color: #b93354 !important;
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-label-primary {
    background-color: #406aafc7 !important;
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-label-warning {
    background-color: #ff9c62 !important;
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-label-success {
    background-color: #b26ac1 !important;
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-label-dark {
    background-color: #0000004d !important;
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-order-primary {
    background-color: #FFC107 !important;
    color: #FFFFFF !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-order-warning {
    background-color: #4CAF50 !important;
    color: #FFFFFF !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-order-success {
    background-color: #2196F3 !important;
    color: #FFFFFF !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-order-secondary {  
    background-color: #AAA9BC !important;
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-order-danger {
    background-color: #9C27B0 !important;
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-order-gray {
    background-color: #888888 !important;
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui-active-primary {
    background-color: #7c8cfe !important;
    color: #FFFFFF !important;
}

.ui-active-warning {
    background-color: #17f1fc !important;
    color: #FFFFFF !important;
}

.ui-active-success {
    background-color: #3cfcff !important;
    color: #FFFFFF !important;
}

.pulse.pulse-primary .pulse-ring {
    border-color: rgba(124, 140, 254, 0.75) !important;
}

.pulse.pulse-warning .pulse-ring {
    border-color: rgb(255, 156, 98, 0.75) !important;
}

.pulse.pulse-success .pulse-ring {
    border-color: rgb(0, 180, 130, 0.75) !important;
}


@media (max-width: 774px) {
    .order-buttons-box {
        margin-top: 25px !important;
        margin-left: 0 !important;
    }
}

@media (min-width: 775px) {
    .order-buttons-box {
         margin-left:auto !important;
    }
}

 @media (max-width: 564px) {
    .stats {
        flex-direction: column;
    }
}

.ui-min-height {
    min-height: 215px;
}

td {
    padding: 10px !important; 
}

.input-icon-agents {
    position: absolute !important;
    top: calc(50% - 0.7em); /* Keep icon in center of input, regardless of the input height */
}

button:disabled {
    cursor: not-allowed !important;
}

.symbol-label > img, .symbol.symbol-50.symbol-lg-120 > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform;
}

.symbol-label {
    background-color: transparent !important;
}

textarea {
    width: 100% !important;
    height: 80px !important;
    padding: 10px 10px;
    margin-top: 10px !important;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-size: 16px;
    resize: none !important;
}

.w-90 {
    width: 90%;
    max-width: 350px;
    min-width: 250px;
}

.text {
    margin: 0 auto;
    padding: 0 1.4rem;
}


.supplier-color {
    color: #ffffff !important;
    background-color: #125000;
    border-color: #125000;
}

.supplier-color:hover, .supplier-color:active , .supplier-color:focus:active, .supplier-color:focus {
    background-color: #125000b5 !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.supplier-color:disabled, .supplier-color:disabled:hover, .supplier-color:disabled:focus {
    background-color: #1250006e !important;
    border-color: transparent !important;
}


@media (max-width: 1199px) {  
    .w-90 {
        width: 40%;
        margin: 0 auto;
        padding-left: 0 !important;
    }
    .text {
        width: 55%;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: pre-wrap;
    }
}

@media (max-width: 585px) {  
    .text {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .custom-modal > .modal-dialog, .article-choice-modal > .modal-dialog {
        max-width: 690px !important;
    }
}

@media (max-width: 768px) {
    .custom-modal > .modal-dialog, .article-choice-modal > .modal-dialog {
        max-width: 100% !important;
    }
    .modal-dialog {
        margin: 0 !important;
    }
}