﻿/* Standard RDS: fonte condivisa per StandardUI.html e WorkDetails.aspx. */
/* Nome campo in alto e selezione sotto, all'interno dello stesso controllo. */
.work-floating-select.form-control{position:relative;padding:0;min-width:0;background:transparent;border:0}
.work-floating-select>label{position:absolute;top:.25rem;left:.95rem;right:2.75rem;width:auto;height:auto;padding:0;margin:0!important;border:0;font-size:.75rem;line-height:1.25;color:#526971;transform:none!important;opacity:1;z-index:2;background:transparent;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.work-floating-select>.select2-container{display:block;width:100%!important;min-width:0}
.work-floating-select .select2-container .select2-selection--single{height:52px!important;min-height:52px!important;padding:1.15rem .95rem .2rem!important;border:1px solid #adb5bd!important;border-radius:.5rem;background:#fff;color:#212529;align-items:center}
.work-floating-select .select2-container .select2-selection--single .select2-selection__rendered{line-height:1.5;padding-left:0;padding-right:2rem;color:#212529}
.work-floating-select .select2-container .select2-selection--single .select2-selection__arrow{border-left:0;background:transparent}
.work-floating-select>select.select-single:not(.select2-hidden-accessible),.work-floating-select>select.form-select:not(.select2-hidden-accessible){width:100%;height:52px!important;min-height:52px!important;padding:1.15rem 2.75rem .2rem .95rem!important;border:1px solid #adb5bd!important;border-radius:.5rem;line-height:1.5;background-color:#fff;color:#212529}
.work-floating-select:focus-within{border-color:#155567}
/* Stessa etichetta interna persistente per textbox e campi multilinea. */
.work-floating-text.form-control{position:relative;padding:0;min-width:0;background:transparent;border:0}
.work-floating-text>label{position:absolute;top:.25rem;left:.95rem;right:.95rem;width:auto;height:auto;padding:0;margin:0!important;border:0;font-size:.75rem;line-height:1.25;color:#526971;transform:none!important;opacity:1;z-index:2;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.work-floating-text>input,.work-floating-text>textarea{display:block;box-sizing:border-box;width:100%;min-height:52px!important;padding:1.15rem .95rem .2rem!important;border:1px solid #adb5bd!important;border-radius:.5rem;line-height:1.5;background-color:#fff;color:#212529}
.work-floating-text>input{height:52px!important}
.work-floating-text>textarea{height:auto;resize:vertical}
.work-floating-text>input:disabled{background-color:#f1f3f5;color:#495057;opacity:1}
.work-floating-text>input::placeholder,.work-floating-text>textarea::placeholder{color:transparent;opacity:0}
.work-floating-text:focus-within{border-color:#155567;box-shadow:0 0 0 .25rem rgba(21,85,103,.25)}
.work-floating-text>input:focus,.work-floating-text>textarea:focus,
.work-floating-select .select2-container--focus .select2-selection--single,
.work-floating-select .select2-container--open .select2-selection--single,
.work-floating-select>select:focus{border-color:#155567!important;outline:0;box-shadow:0 0 0 .25rem rgba(21,85,103,.25)}
.work-floating-text:focus-within{box-shadow:none}

/* Il nome del campo compare solo in alto; nessun secondo suggerimento sotto. */
.work-floating-select .select2-selection__placeholder{visibility:hidden}
.work-floating-select>select.select-single:disabled,.work-floating-select>select.form-select:disabled,.work-floating-select .select2-container--disabled .select2-selection--single{background-color:#f1f3f5!important;color:#495057!important;opacity:1}
/* Floating multiple selection: shared with StandardUI and WorkDetails. */
.work-floating-select .select2-container .select2-selection--multiple{min-height:52px!important;height:auto!important;padding:19px 10px 3px!important;border:1px solid #adb5bd!important;border-radius:.5rem;background:#fff!important;color:#212529}
.work-floating-select .select2-selection--multiple .select2-selection__rendered{display:flex!important;flex-wrap:wrap;align-items:center;gap:4px;margin:0!important;padding:0!important;white-space:normal!important}
.work-floating-select .select2-selection--multiple .select2-selection__choice{max-width:100%;margin:0!important;white-space:normal!important;overflow-wrap:anywhere;background:#edf4f7!important;color:#155567!important;border:1px solid #adb5bd!important;border-radius:5px!important}
.work-floating-select .select2-selection--multiple .select2-search--inline{float:none;max-width:100%;min-width:24px}
.work-floating-select .select2-selection--multiple .select2-search__field{min-height:24px!important;height:24px!important;margin:0!important;padding:0!important;max-width:100%;color:#212529;line-height:24px}
.work-floating-select .select2-container--disabled .select2-selection--multiple{background:#f1f3f5!important;color:#495057!important}
