textarea{
    height: 3 em;
}
#agenda {
    white-space: nowrap;
    text-align: left;
    padding-bottom: 10px;
    padding-right: 10px;
    height: fit-content;
}

.columnar {
    display: inline-block;
    vertical-align: top;
    height: 100%;
    min-height: fit-content;
}

.barberHeader {
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    z-index: 10;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
}
.dark-mode .barberHeader {
    color: #fff!important;
    background-color: #343a40!important;

}
.barberHeader img {
    height: 2.1rem;
    width: 2.1rem;
}

.timeDiv {
    border: 1px white solid;
    border-radius: 5px;
    padding: 10px;
    max-width: 100vw;
    white-space: normal;
    overflow-wrap: break-word;
}

.hour-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 1;
}
.dark-mode .hour-marker {
    border-top-color: rgba(255,255,255,0.15);
}
.hour-marker-label {
    position: absolute;
    left: 2px;
    top: -1px;
    font-size: 10px;
    color: rgba(0,0,0,0.4);
    pointer-events: none;
    z-index: 2;
    line-height: 1;
    background: rgba(255,255,255,0.7);
    padding: 0 3px;
    border-radius: 2px;
}
.dark-mode .hour-marker-label {
    color: rgba(255,255,255,0.5);
    background: rgba(52,58,64,0.7);
}
.calendar-time-indicator {
    position: fixed;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    display: none;
}

.dayDiv {
    border-left: 2px #ccc dashed;
    display: inline-block;
    text-align: center;
    height: 100%;
}
.dark-mode .dayDiv {
    border-color: black;
}
.dayDiv:nth-of-type(1) {
    border: none;
}

.card.col-lg-12.barberDiv {
    padding: 0;
    border-radius: 5px;
}

img.card-img-top {
    border-radius: 5px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* Posizionamento del pulsante di scelta senza sovrapposizioni. */
.chooseBarberButton {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Assicurati che il contenitore dell'indirizzo abbia spazio sufficiente */
.addrSpan {
    display: block;
    word-wrap: break-word;
    padding: 1em;
    padding-bottom: 0;
}

.chooseBarberButton i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.extraMargin {
    width: 100%;
    margin: 3px;
}

.noteSpan {
    float: none !important;
}

.phoneIcon,
.messageIcon,
.waIcon,
.notificationIcon {
    line-height: inherit;
    padding-right: 5px;
    padding-left: 9px;
}

.custom-file-label::after {
    content: "Sfoglia";
}

#navigateDatesButtons {
    margin-bottom: 14px;
}

.slotDiv {
    border: 1px grey dashed;
    border-radius: 25px;
    padding: 15px;
}

.form-control-inline {
    min-width: 0;
    width: auto;
    display: inline;
}

.form-control-inline[name^=corsetMaxDogs] {
    width: 10ch;
}

label[for^=corset] {
    vertical-align: baseline;
}

.bigCheckbox {
    display: inline-block;
    width: 2rem;
    vertical-align: middle;
    margin-right: 3px;
}

.scrollAndFollow>* {
    position: sticky;
    left: 0;
    width: 100vw;
}

aside.main-sidebar.sidebar-dark-primary.elevation-4::-webkit-scrollbar {
    display: none;
}

aside.main-sidebar.sidebar-dark-primary.elevation-4 {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scrollBarFix::-webkit-scrollbar {
    -webkit-appearance: none;
}

.scrollBarFix::-webkit-scrollbar:vertical {
    width: 11px;
}

.scrollBarFix::-webkit-scrollbar:horizontal {
    height: 11px;
}

.scrollBarFix::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 2px solid white;
    background-color: rgba(0, 0, 0, .5);
}

.scrollBarFix::-webkit-scrollbar-track {
    background-color: #fff;
    border-radius: 8px;
}

.bookingChoiceHeader { width: 100%; box-sizing: border-box; }
.bookingChoiceHeader .pageTitle { overflow-wrap: anywhere; }

.stickyWithSidebar {
    position: sticky;
    max-width: 100vw;
    left: 0px;
}

.stickyFix{
    margin-left: -15.5px;
    padding-left: 7.5px;
    width: fit-content;
}

.sidebar-open:not(.layout-top-nav) .stickyWithSidebar {
    left: 250px;
    max-width: calc(100vw - 250px);
}

@media (min-width: 991.98px) {
    .sidebar-collapse .stickyWithSidebar {
        left: 4.6rem;
        max-width: calc(100vw - 4.6rem);
    }
}

.collapsibleArrow {
    display: inline-block;
    font-size: xx-large;
}

.orangeBorder {
    border: 2px solid orange;
    border-radius: 5px;
}


/* Azioni della pagina notifiche: l'indicatore di consegna e i bottoni di
   contatto convivono dentro .chatFunctions (float-right, sotto il corpo del
   messaggio). Una flex row compatta, allineata a destra, che non si sovrappone
   alle azioni di risposta e stato vista (quelle restano in
   .notification-user-actions). Solo layout, nessun colore, così resta
   leggibile in tema chiaro e scuro. */
.direct-chat-msg .chatFunctions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    line-height: 1;
}

/* Il .row restituito da printContactButtons perde i gutter Bootstrap: i bottoni
   restano su una sola riga con spaziatura compatta. */
.direct-chat-msg .chatFunctions .row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
}

.direct-chat-msg .chatFunctions .row > .col {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: .75rem;
}

.direct-chat-msg .chatFunctions .row > .col:last-child {
    padding-right: 0;
}

#startDatetime, #endDatetime {
    width: fit-content;
}
.content-wrapper{
    height:fit-content;
    padding-bottom: .5rem;
}
.btn-outline-light {
    color: #FFF;
    border-color: #FFF;
}
.direct-chat-text{
    border-color: #d2d6de !important;
}
#imgDialogContent {
    display: flex;
    flex-direction: column;
}

/* Change the appearence of the bakground colour surrounding the search input field */
body.dark-mode .select2-search {
    background-color: #343A40 !important;
}
/* Change the appearence of the search input field */
body.dark-mode .select2-search input {
    color: #ffffff !important;
    background-color: #343A40 !important;
}

/* Change the appearence of the search results container */
body.dark-mode .select2-results {
    background-color: #343A40 !important;
}

/* Change the appearence of the dropdown select container */
body.dark-mode .select2-selection {
    border-color: #6c757d !important;
    color: #ffffff !important;
    background-color: #343A40 !important;
}

/* Change the color of the default selected item i.e. the first option */
body.dark-mode .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}
.photoPreview {
    max-width: 100px;
    max-height: 100px;
}
.premium-shop {
    border: 2px solid gold;
    box-shadow: 0 0 10px gold;
}

.notification-message{
    word-wrap: break-word;
}
@media (min-width: 600px) {
    .chairDiv {
        width: 100%;
        transition: width .3s ease;
    }
    .chairDiv:has(.chairHeader.collapsed) {
        width: fit-content;
    }
}
.login-box-err-msg {
    color: red;
}
.unlockIcon.fas.fa-unlock {
    font-size: 1.1em;
}

.legalAlert small {
    line-height: 1.3;
}

.legalInfoBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(23,162,184,0.3);
}

[id^='legalDisclaimerModal'] hr {
    margin: 0.8rem 0;
    border-color: rgba(255,255,255,0.3);
}

/* Animazione per il pulsante info */
.legalInfoBtn {
    transition: all 0.2s ease;
}

.barberDiv .card-img-top {
    max-height: 60vh;
    width: auto;
    object-fit: contain;
}

/* Scheda sintetica dell'animale nella sezione "Animali del cliente" (adminBookings) */
.dogCardsGrid .dogDiv {
    border-left: 3px solid transparent;
    transition: box-shadow 0.15s ease-in-out;
}

.dogCardsGrid .dogDiv:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.dogCardsGrid .dogDiv.dogStatusApproved { border-left-color: #28a745; }
.dogCardsGrid .dogDiv.dogStatusPending { border-left-color: #ffc107; }
.dogCardsGrid .dogDiv.dogStatusInactive { border-left-color: #fd7e14; }
.dogCardsGrid .dogDiv.dogStatusRequestOnly { border-left-color: #6c757d; }

.dogDiv .card-body {
    padding: 1rem;
}

.dogDiv .dogAvatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .03);
    overflow: hidden;
    cursor: default;
}

.dogDiv .dogAvatar:focus {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}

.dogDiv .dogAvatar.dogAvatarHasPhoto {
    cursor: zoom-in;
}

.dogDiv .dogAvatarImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dogDiv .dogAvatarPlaceholder {
    color: #6c757d;
    font-size: 1.4rem;
    line-height: 1;
}

.dogDiv .dogCardMain {
    flex: 1 1 auto;
    min-width: 0;
}



.dogDiv .dogChips {
    display: flex;
    flex-wrap: wrap;
}

.dogDiv .dogChip {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    margin: 0 .35rem .35rem 0;
    padding: .1rem .55rem;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 1rem;
}

.dogDiv .dogChipLabel {
    color: #6c757d;
    margin-right: .3rem;
}

.dogDiv .dogAlerts .badge {
    margin: 0 .35rem .35rem 0;
}

.dogDiv .dogNotes,
.dogDiv .dogMeta {
    border-top: 1px solid rgba(0, 0, 0, .075);
    padding-top: .5rem;
}

body.dark-mode .dogDiv .dogAvatar {
    border-color: rgba(255, 255, 255, .2);
    background-color: rgba(255, 255, 255, .05);
}

body.dark-mode .dogDiv .dogAvatarPlaceholder {
    color: #adb5bd;
}

body.dark-mode .dogDiv .dogChip {
    border-color: rgba(255, 255, 255, .2);
}

body.dark-mode .dogDiv .dogChipLabel {
    color: #adb5bd;
}

body.dark-mode .dogDiv .dogNotes,
body.dark-mode .dogDiv .dogMeta {
    border-top-color: rgba(255, 255, 255, .1);
}

body.dark-mode .dogDiv .btn-outline-primary {
    color: #8ab4f8;
    border-color: #8ab4f8;
}

body.dark-mode .dogDiv .btn-outline-primary:hover,
body.dark-mode .dogDiv .btn-outline-primary:focus {
    color: #1f2d3d;
    background-color: #8ab4f8;
    border-color: #8ab4f8;
}

/* Annotazioni segrete: card con intestazione, testo leggibile, griglia di
   miniature e footer azioni. I colori passano dal tema: il testo secondario
   usa .text-muted e nessuna regola fissa un colore supponendo uno sfondo
   chiaro o scuro. */
.noteDiv .noteRelativeToLabel {
    margin-right: .25rem;
}

.noteDiv .noteRelativeToSpan {
    cursor: pointer;
}

.noteDiv .noteTextBlock {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

/* Griglia e miniature valgono sia nella card della nota sia nello storico
   versioni, che viene reso fuori da .noteDiv (dentro la modale): i selettori
   non sono quindi annidati sotto .noteDiv. */
.notePhotoGrid,
.noteMainPhotoDiv {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.notePhotoFigure {
    margin: 0;
    max-width: 8rem;
    /* Rimozione rapida delle foto aggiuntive: pulsante sopra la miniatura. */
    position: relative;
}

.notePhotoThumb {
    width: 8rem;
    max-width: 100%;
    height: 8rem;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    background-color: rgba(0, 0, 0, .03);
}

.notePhotoClickable {
    cursor: zoom-in;
}

.notePhotoCaption {
    overflow-wrap: anywhere;
    margin-top: .25rem;
}

.notePhotoRemoveBtn {
    position: absolute;
    top: .25rem;
    right: .25rem;
    padding: .1rem .35rem;
    line-height: 1;
    background-color: rgba(255, 255, 255, .9);
}

body.dark-mode .notePhotoRemoveBtn {
    background-color: rgba(52, 58, 64, .9);
}

.notePhotoDialogForm {
    min-width: min(24rem, 80vw);
}

.noteDiv .noteCreationDateSpan {
    white-space: nowrap;
}

/* Selezione multipla delle foto nella card di creazione nota. */
.notePhotoPickerGrid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}

.notePhotoPickerItem {
    width: 9rem;
}

.notePhotoPickerThumb {
    width: 100%;
    height: 7rem;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    background-color: rgba(0, 0, 0, .03);
}

.notePhotoPickerRemove {
    margin-top: .25rem;
}

.notePhotoPickerMainBadge {
    margin-top: .25rem;
}

/* Storico versioni della nota: sola lettura, piu' recente in alto. Il testo
   della versione riprende il colore del tema con .text-dark (che AdminLTE
   schiarisce in dark mode): la card della modale non eredita il bianco del
   contenitore colorato. */
.noteVersionsList {
    max-height: 60vh;
    overflow-y: auto;
}

.noteVersionText {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin-bottom: .5rem;
}

.noteVersionDate {
    white-space: nowrap;
}

body.dark-mode .notePhotoThumb,
body.dark-mode .notePhotoPickerThumb {
    border-color: rgba(255, 255, 255, .2);
    background-color: rgba(255, 255, 255, .05);
}

/* L'icona composta "cliente senza app" dei bottoni di contatto condivisi vive in
   css/contactButtons.css: compare anche in pagine che non caricano questo foglio. */

/* Scheda cliente compatta nella pagina "Informazioni" (adminBookings): avatar,
   nome, contatti cliccabili e flag a badge. Come per la scheda animale i bordi
   e gli sfondi sono neutri e passano dal tema chiaro a quello scuro. */
.customerSummary {
    min-width: 0;
}

.customerAvatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .03);
    overflow: hidden;
}

.customerAvatarImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customerAvatarPlaceholder {
    color: #6c757d;
    font-size: 1.4rem;
    line-height: 1;
}

.customerSummaryMain {
    flex: 1 1 auto;
    min-width: 0;
}

.customerReadOnlyName {
    overflow-wrap: anywhere;
}

.customerContacts a {
    display: inline-block;
    margin-right: .75rem;
}

.customerFlags .badge {
    margin: 0 .35rem .35rem 0;
}

#customerReadOnlyCard .list-group-item {
    overflow-wrap: anywhere;
}

.customerSecretNotesPanel {
    border-top: 1px solid rgba(0, 0, 0, .075);
    padding-top: .5rem;
    overflow-wrap: anywhere;
}

.customerSecretNotesPin[aria-expanded="true"] {
    background-color: rgba(0, 0, 0, .075);
}

body.dark-mode .customerAvatar {
    border-color: rgba(255, 255, 255, .2);
    background-color: rgba(255, 255, 255, .05);
}

body.dark-mode .customerAvatarPlaceholder {
    color: #adb5bd;
}

body.dark-mode .customerSecretNotesPanel {
    border-top-color: rgba(255, 255, 255, .1);
}

body.dark-mode .customerSecretNotesPin[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, .1);
}

/* Scheda cliente in sola lettura (dettaglio prenotazione): le coppie
   etichetta/valore stanno su due colonne sugli schermi grandi, come la scheda
   animale di adminDogsToConfirm, e si impilano su mobile. Etichetta e valore
   restano vicini: niente float, che sui monitor larghi spingeva il valore
   all'estremo opposto della card. Colori e superfici restano quelli del tema. */
.customerReadOnlyFields {
    row-gap: .25rem;
}

.customerReadOnlyField {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .35rem;
}


.customerReadOnlyFieldValue {
    overflow-wrap: anywhere;
}

/* Barra di azioni in fondo alla scheda cliente: bottoni della stessa famiglia,
   stessa altezza e spaziatura uniforme. Il vecchio .extraMargin li forzava a
   width: 100%, impilandoli a tutta larghezza. */
.customerCardActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.customerCardActions .btn {
    margin: 0;
}

/* Bottoni di contatto condivisi (printContactButtons) nella scheda cliente:
   riga compatta, senza i gutter Bootstrap che li distanzierebbero. */
.customerContactActions {
    width: fit-content;
    max-width: 100%;
}

.customerContactActions .row {
    margin-left: 0;
    margin-right: 0;
}

.customerContactActions .row > .col {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: .75rem;
}

/* Scheda prenotazione: stesso schema a due colonne della scheda cliente. I
   campi lunghi (note, pagamenti, pacchetto) occupano tutta la riga. */
.bookingHeader {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .5rem;
    margin-bottom: .75rem;
}


.bookingFields {
    row-gap: .25rem;
}

.bookingField {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .35rem;
}

.bookingCustomerField .clientContactActions {
    flex: 1 1 100%;
}


.bookingFieldValue {
    overflow-wrap: anywhere;
}

.bookingFieldActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
}

.bookingField .paymentsList {
    flex: 1 1 100%;
    min-width: 0;
}

/* Azioni della prenotazione: barra ordinata in fondo alla card, senza
   .extraMargin (width: 100%) che le impilava a tutta larghezza. */
.bookingActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.bookingActions .btn {
    margin: 0;
}

/* Storico stati: le tabelle usano il colore scuro di Bootstrap, illeggibile
   sulle superfici scure del tema. Regola mirata solo al tema scuro. */
body.dark-mode .statusChangesList .table,
body.dark-mode #statusViewHistory .table {
    color: #dee2e6;
}

/* La vista a tutto schermo dello stato ha uno sfondo bianco inline: in tema
   scuro va riportata sulle superfici del tema per rendere visibile la tabella. */
body.dark-mode #statusViewOverlay {
    color: #dee2e6;
    background-color: #343a40 !important;
}

