.ui-dialog:not(.ui-dialog-off-canvas) {
    min-width: 80%;
}

.mezzo-tecnico-autocomplete .claro-autocomplete {
    width: auto;
}

.carico-fattura-ddt:hover {
    background: rgba(220, 220, 220, 0.3);
}

/* Remove padding and background to form for expanded content */
.fo-form-wrapper {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.fo-form-wrapper-padding {
    padding: 0 !important;
}

.fo-form-wrapper fieldset {
    background: white !important;
}

/* Set icons to custom menù */
.toolbar .toolbar-bar .toolbar-icon-menu-link-content933ad462-4e50-4924-a0aa-9f0d3b1ce6f6::before {
    -webkit-mask-image: url(./icons/svg/no-fill/buildings.svg);
    mask-image: url(./icons/svg/no-fill/buildings.svg);
}

.toolbar .toolbar-bar .toolbar-icon-menu-link-contentfa193e83-5f7f-427f-bcb6-3bf2f19f5f4f::before {
    -webkit-mask-image: url(./icons/svg/no-fill/leaf.svg);
    mask-image: url(./icons/svg/no-fill/leaf.svg);
}

.toolbar .toolbar-bar .toolbar-icon-menu-link-content26337730-022a-415e-a887-36affc8ddf3b::before {
    -webkit-mask-image: url(./icons/svg/no-fill/truck.svg);
    mask-image: url(./icons/svg/no-fill/truck.svg);
}

.toolbar .toolbar-bar .toolbar-icon-menu-link-content071e3501-577c-4966-9c95-a2e15b3fb105::before {
    -webkit-mask-image: url(./icons/svg/no-fill/archive.svg);
    mask-image: url(./icons/svg/no-fill/archive.svg);
}

.toolbar .toolbar-bar .toolbar-icon-menu-link-contenta86e0019-b668-417e-ad1c-ee81203aa4d3::before {
    -webkit-mask-image: url(./icons/svg/no-fill/diagram-3.svg);
    mask-image: url(./icons/svg/no-fill/diagram-3.svg);
}

/* Button class for PDF export functionality */
.button-export::after {
    margin-left: 0.5rem;
    font-weight: bold;
    content: "⤓";
}

/* Override CSS of Page loader Progress module  */
/* .page-load-progress-throbber {
    background: url('loader.gif') no-repeat center center;
    background-size: auto 100%;
    height: 100px;
    width: 100px;
    z-index: 9999;
} */

/* form style  */
.form-element--type-date {
    vertical-align: baseline;
}

.gin-back-to-admin {
    display: none;
}

/* chosen module style (override)  */
.chosen-container-multi .chosen-choices li.search-choice {
    background-color: var(--gin-color-primary);
    padding: 5px 28px 5px 8px;
    border: 1px solid var(--gin-color-primary);
    border-radius: 20px;
    max-width: 100%;
    color: #fff;
    line-height: 20px;
    display: block;
}

.chosen-container .search-choice-close {
    background: url( "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' class='bi bi-x-circle-fill' viewBox='0 0 16 16'><path d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293z'/></svg>") no-repeat right 0 top 50%;
    background-size: 15px 15px;
}

.chosen-container .search-choice-close:hover, .chosen-container .search-choice-close:active {
    background: url( "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='whitesmoke' class='bi bi-x-circle-fill' viewBox='0 0 16 16'><path d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293z'/></svg>") no-repeat right 0 top 50%;
    background-size: 15px 15px;
}

.chosen-container .search-choice-close {
    right: 8px;
}

.chosen-container-multi .chosen-drop .result-selected {
    color: var(--gin-color-primary);
}

.chosen-container-active .chosen-single, .chosen-container-active .chosen-choices, .chosen-container-active .chosen-drop {
    border-color: var(--gin-color-primary);
}

.gin--vertical-toolbar .toolbar-menu .toolbar-menu > .menu-item:nth-child(2) {
    display: none;
}

.composizione-terreno div {
    margin-top: 0;
    margin-bottom: 0;
}

.lista-dati-compatta tbody tr td, .lista-dati-compatta thead tr th {
    padding-left: 5px;
    padding-right: 5px;
}

.lista-campi-azienda tbody tr td input {
    font-size: 0.8rem;
}

.fase-fenologica-container div {
    display: inline-block;
    margin-top: 0;
}

.associazione-tabellare tbody tr td:first-child {
    width: 3rem;
}

.elemento-filtrato {
    display: none;
}

.elemento-non-filtrato {
    display: block;
}

/* CSS table for FO */
.table-report {
    font-size:0.9rem;
}

.table-report thead th {
    position:sticky;
    top: 0;
    z-index: 888;
}

.table-report thead th[scope=row]{
    position:sticky;
    left:0;
    z-index:1;
}

.table-applicazioni th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-applicazioni td {
    vertical-align: bottom;
    padding: 0.25rem;
}

.table-applicazioni td .claro-details, .table-applicazioni td input.button::after {
    margin-bottom: 0rem;
    content: 'x';
}

.table-applicazioni .giacenzaWarning div:first-child {
    color: maroon;
}

.table-applicazioni .giagenzaMessage div:first-child {
    color: green;
}

.table-applicazioni .doseWarning div:first-child div:first-child {
    color: maroon;
}

.container-applicazioni {
    margin-bottom: 1rem;
    border-bottom: 0.5px solid rgb(0 137 95 / 50%);
}

.container-applicazioni>div, .container-applicazioni>details, .container-applicazioni>input {
    display: inline-block;
}

.container-applicazioni>details {
    margin-left: 0.25rem;
}

.container-applicazioni details[open] {
    width: 100% !important;
}

.button.button-remove:not(:focus) {
    width: 16px;
    height: 16px;
    border: none !important;
    padding: 0 !important;
    background-position-y: center;
    background-position-x: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cc3d3d' class='bi bi-x' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
}

.button.button-remove:not(:focus):hover {
    background-color: var(--gin-color-danger);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-x' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
}

