.btn-xs{
    padding: 0.25rem 0.5rem !important; 
    font-size:var(--font-size-xs) !important;
}
.btn:focus{
    outline: none !important;
    box-shadow: none !important;
}

.dx-popup-title {
    border-bottom: none !important;
}
.dx-popup-bottom {
    border-top: none !important;
}
.breadcrumbs_container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.didattica-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.custom-content {
    margin-inline-start: var(--sidebar-width);
    margin-top: 5.5rem;
    /* padding: 1.5rem 2rem 0 2rem; */
    padding: var(--font-size-lg);
    background-color: var(--background-body);
    /* margin-right: var(--margin-default); */
    border-radius: var(--border-radius-left);
    border: var(--border-default);
}


.btn-light {
    border: 1px solid var(--text-200) !important;
    background: var(--text-100) !important;
    color: var(--text-700) !important;
}
.btn-light:hover {
    background: var(--text-200) !important;
    color: var(--text-800) !important;
}

.icon-tooltip {
    color: var(--icon-tooltip);
}

@media (max-width: 991px) {
    .custom-content.reduced {
        margin-inline-start: var(--sidebar-width-reduced);
        width: calc(100% - var(--sidebar-width-reduced));
    }

    .custom-content {
        padding: 1rem 1rem 0 1rem;
    }
}

@media (max-width: 575px) {
    .custom-content.reduced {
        margin-inline-start: var(--no-margin-mobile);
    }
    .custom-content {
        padding: 0 0 0 0;
    }

    .custom-content.minimized {
        margin-inline-start: var(--no-margin-mobile) !important;
    }
}

.custom-content.minimized {
    margin-inline-start: var(--sidebar-width-reduced);
}

.custom-navbar {
    background-color: var(--background-default);
    color: var(--colore-principale);
    z-index: 5;
    width: 100%;
    position: fixed !important;
    /* height: 5.25rem; */
}

body {
    /* overflow-x: hidden; */
    overflow-x: clip;
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-principale);
    font-size: var(--font-size-testo);
    /* background-color: var(--background-body); */
}

.title {
    color: var(--colore-principale);
    display: flex;
    align-items: center;
    padding: 14px;
    padding-left: 10px;
}

.subsection {
    padding: var(--margin-default);
}

.subsection-icon {
    margin-right: 10px;
}

.custom-container {
    background-color: var(--background-default);
    border-radius: var(--border-radius);
    border: var(--border-default);
    margin: 0px;
    margin-bottom: calc(var(--margin-default) * 2);
    padding-bottom: var(--margin-default);
}

.custom-container-blue{
    background-color: var(--info-100);
    border-radius: var(--border-radius);
    border:1px solid var(--info-200);
    margin: 0px;
    margin-bottom: calc(var(--margin-default) * 2);
    padding-bottom: var(--margin-default);
}

.dropdown-toggle-custom::after {
    position: absolute;
    right: calc(var(--margin-default) * 2);
    top: 14px;
}

.form-control:focus {
    border-color: var(--colore-principale);
    border-width: 2px;
    box-shadow: none;
}

.modal-content {
    border-radius: 0.5625rem !important;
}

.modal-body-scrollable {
    max-height: 400px;
    overflow-y: auto;
}

.modal-body-scrollable::-webkit-scrollbar {
    display: none;
}

.zooming-icon:hover {
    transform: scale(1.2);
}

.star {
    margin-right: calc(var(--margin-default) * 2);
    margin-bottom: var(--margin-default);
    cursor: pointer;
}

.star:hover {
    transform: scale(1.2);
}

.custom-pill-button {
    height: 40px;
    border: 1px solid var(--pill-button-sottomenu);
    background-color: var(--pill-button-sottomenu);
    color: var(--primary-500);
    padding-top: 7px;
    font-weight: 600;
    font-size: var(--font-size-card-title);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.custom-pill-button:hover {
    border: 1px solid var(--pill-button-sottomenu-hover);
    background-color: var(--pill-button-sottomenu-hover);
    color: var(--primary-500);
    transform: scale(1.02);
}

.custom-pill-button.active {
    background-color: var(--pill-button-sottomenu-active);
    border: 1px solid var(--pill-button-sottomenu-active);
    color: white;
}

.custom-favourite {
    color: var(--grey-700);
    cursor: pointer;
    font-size: var(--font-size-sm);
}

.summary {
    /* border-color: #f0f3f5;
  background-color: #f0f3f5;
  color: #000000;
  border-radius: 16px;
  font-size: 14px; */

    display: flex;
    min-height: 3.125rem;
    padding: 0.25rem 0.375rem 0.25rem 0.375rem;
    align-items: center;
    justify-content: space-between;
    /* gap: 1.125rem; */
    align-self: stretch;
    border-radius: var(--border-radius-list) !important;
    border: var(--border-default) !important;
    background: var(--background-list);
    cursor: pointer;
    font-size: var(--font-size-testo);
}

.sumNoFlex {
    height: 3.125rem;
    padding: 0.25rem 0.375rem 0.25rem 0.375rem;
    align-self: stretch;
    border-radius: var(--border-radius-list) !important;
    border: var(--border-default) !important;
    background: var(--background-list);
    cursor: pointer;
    font-size: var(--font-size-testo);
}

.summary:hover {
    /* border-color: #b7e1ff;
  background-color: #b7e1ff;*/
    cursor: pointer;
    border-radius: var(--border-radius-list) !important;
    border: var(--border-default-hover) !important;
    background: var(--background-list-hover);
    font-size: var(--font-size-testo);
    color: var(--text-600);
}

.summary.selected {
    background-color: #002b49;
    border-color: #002b49;
    color: #ffffff;
}

.summary-static {
    border-color: #f0f3f5;
    background-color: #f0f3f5;
    color: #000000;
    border-radius: 16px;

    font-size: 14px;
}

.listBg {
    border-radius: var(--border-radius-list) !important;
    border: var(--border-default) !important;
    background: var(--background-list);
    cursor: pointer;
}
.listBg:hover {
    background-color: var(--background-list-hover) !important;
    border: var(--border-default-hover) !important;
    cursor: pointer;
}

#linkBookmarks li{
    min-height: 3rem !important;
}

#linkBookmarks li:hover {
    background-color: var(--background-list-hover) !important;
    cursor: pointer;
}

.statusBadge {
    display: inline-flex;
    padding: 0.25rem 0.375rem 0.25rem 0.375rem;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    border-radius: 1.25rem;
    font-size: var(--font-size-testo);
    font-weight: 600;
    white-space: nowrap;

}

.statusBadgeExam{
    display: inline-flex;
    padding: 0.25rem 0.375rem 0.25rem 0.375rem;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    border-radius: 1.25rem;
    font-size: var(--font-size-testo);
    font-weight: 600;
    white-space: nowrap;
}

.statusBadgeExam-booked {
    /* border: 1px solid #16a34a; */
    background: #f0fdf4;
    color: var(--success-700);
}

.statusBadgeExam-available {
    /* border: 1px solid #0284c7; */
    background: #e0f2fe;
    color: var(--info-700);
}

/* azzurro */
.statusBadge-available {
    /* border: 1px solid #0284c7; */
    background: #e0f2fe;
    color: var(--info-700);
}
/* verde */
.statusBadge-booked {
    /* border: 1px solid #16a34a; */
    background: #f0fdf4;
    color: var(--success-700);
}

/* arancio */
.statusBadge-requested {
    /* border: 1px solid #ea580c; */
    background: #fff7ed;
    color: var(--warning-700);
}

/* rosso */
.statusBadge-rejected {
    /* border: 1px solid #e11d48; */
    background: #fff1f2;
    color: var(--danger-700);
}

/* grigio */
.statusBadge-unavailable {
    /* border: 1px solid #cbd5dc; */
    background: #e0e6eb;
    color: var(--text-700);
}

/* @media (max-width: 767px){
    
    .statusBadgeExam-booked {
        border: none;
        background: none;
        color: var(--success-700);
    }
} */

@media (max-width: 576px) {
    /* status badge tolgo lo sfondo e il border */
    .statusBadge {
        padding: 0.125rem 0.5rem;
        border-radius: 50%;
        font-weight: 800;
    }

    /* .statusBadgeExam-booked {
        border: none;
        background: none;
        color: var(--success-700);
    } */

    .statusBadge-available {
        border: none;
        background: none;
        color: var(--info-700);
    }

    .statusBadge-booked {
        border: none;
        background: none;
        color: var(--success-700);
    }

    .statusBadge-requested {
        border: none;
        background: none;
        color: var(--warning-700);
    }

    .statusBadge-rejected {
        border: none;
        background: none;
        color: var(--danger-700);
    }

    .statusBadge-unavailable {
        border: none;
        background: none;
        color: var(--text-700);
    }
    
}

.statusBadgeAppelli{
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    border-radius: 50%;
    font-size: var(--font-size-testo);
    font-weight: 800;
    border: 1px solid #0284c7;
    background: #e0f2fe;
    color: var(--info-700);
}

.statusBadgeMobile {
    padding: none;
    border-radius: none;
    font-weight: 800;
}

.statusBadgeMobile-available {
    border: none;
    background: none;
    color: var(--info-700);
}

.statusBadgeMobile-booked {
    border: none;
    background: none;
    color: var(--success-700);
}

.statusBadgeMobile-requested {
    border: none;
    background: none;
    color: var(--warning-700);
}

.statusBadgeMobile-rejected {
    border: none;
    background: none;
    color: var(--danger-700);
}

.statusBadgeMobile-unavailable {
    border: none;
    background: none;
    color: var(--text-700);
}

/* annotazione anagrafica */
.annotationBadge {
    display: inline-flex;
    padding: 0.25rem 0.375rem 0.25rem 0.375rem;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.25rem;
    font-size: var(--font-size-testo);
    font-weight: 600;
    cursor: pointer;
}

/* verde */
.annotationBadge-noNotes {
    color: var(--success-success-700, #0f8038);
    border: 1px solid #16a34a;
    background: #f0fdf4;
}
.annotationBadge-noNotes:hover {
    color: var(--success-success-800, #166534);
    border: 1px solid var(--success-success-600, #16a34a);
    background: var(--success-success-200, #bbf7d0);
}

/* arancio */
.annotationBadge-notes {
    color: var(--warning-warning-700, #c2410c);
    border: 1px solid #ea580c;
    background: #fff7ed;
}
.annotationBadge-notes:hover {
    color: var(--warning-warning-800, #9a3412);
    border: 1px solid var(--warning-warning-600, #ea580c);
    background: var(--warning-warning-200, #fed7aa);
}

/* rosso */
.annotationBadge-blocked {
    color: var(--danger-danger-700, #be123c);
    border: 1px solid #e11d48;
    background: #fff1f2;
}
.annotationBadge-blocked:hover {
    color: var(--danger-danger-800, #9f1239);
    border: 1px solid var(--danger-danger-600, #e11d48);
    background: var(--danger-danger-200, #fecdd3);
}

.annotationBadge-info {
    color: var(--info-info-700, #0c5ea5);
    border: 1px solid #0284c7;
    background: #e0f2fe;
    text-decoration: none;
}
.annotationBadge-info:hover {
    color: var(--info-info-800, #0c5ea5);
    border: 1px solid var(--info-info-600, #0284c7);
    background: var(--info-info-200, #bbe7fd);
    text-decoration: none;
}

#modalAnnotation {
    border-radius: 0.5625rem !important;
    border: 1px solid var(--text-400, #91a6b6) !important;
}

@keyframes pulse {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-pulse .summary {
    background: linear-gradient(
        90deg,
        rgba(240, 240, 240, 1) 25%,
        rgba(220, 220, 220, 1) 50%,
        rgba(240, 240, 240, 1) 75%
    );
    background-size: 200% 100%;
    animation: pulse 1.5s infinite;
}


.btn-outline-primary-polito {
    border-color: var(--colore-principale);
    color: var(--colore-principale);
    background-color: #ffffff;
}

.btn-outline-primary-polito:hover {
    border-color: var(--colore-principale);
    color: #ffffff;
    background-color: var(--colore-principale);
}

.btn-primary-polito {
    background-color: var(--colore-principale);
    color: #ffffff;
}
.btn-primary-polito:hover {
    background-color: var(--colore-principale);
    color: #ffffff;
}
.btn-primary-polito:active {
    background-color: var(--colore-principale);
    color: #ffffff;
}
.btn-primary-polito:focus {
    background-color: var(--colore-principale);
    color: #ffffff;
}

.alert-light-polito {
    background-color: #f0f3f5;
    color: var(--colore-principale);
    /* border-color: var(--colore-principale); */
}

.custom-tab .nav-link.active {
    font-weight: 700;
    font-size: 16px;
    color: #002b49;
}

.custom-tab .nav-link {
    font-weight: 400;
    font-size: 16px;
    color: #002b49;
}

.notice-container,
.virtualcr-container {
    background-color: #f0f3f5;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.alert-container {
    background-color: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
}
/* .avvisiBorder {
    border-left: 3px solid var(--secondary-600) !important;
} */

.virtualcr-container:hover {
    border-color: #b7e1ff;
    background-color: #b7e1ff;
}

.roundCard {
    /* border-radius: 1.5rem !important;
    border-radius: 2rem; */

    border-radius: var(--border-radius) !important;
    border: var(--border-default) !important;
    background: var(--background-default);
}
.roundCard > .card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}
.roundCard > .card-footer {
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
}

.portlet-container {
    margin-left: 0px;
    max-width: 1416px;
}

/* COLORI TAG AVVISI */
.default {
    border: 1px solid black;
    color: var(--colore-principale);
    background-color: white !important;
}
.course {
    background-color: #c7b4d6;
    color: var(--colore-principale);
    border: 1px solid #c7b4d6;
}
.personali {
    background-color: #bee0d0;
    color: var(--colore-principale);
    border: 1px solid #bee0d0;
}

.materiali {
    background-color: #b7e1ff;
    color: var(--colore-principale);
    border: 1px solid #b7e1ff;
}

.generale {
    background-color: #f9d4b7;
    color: var(--colore-principale);
    border: 1px solid #f9d4b7;
}

.survey {
    background-color: #f7daf1;
    color: var(--colore-principale);
    border: 1px solid #f7daf1;
}

.scroll-container {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 550px;
}

.scroll-container-materiale {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 800px;
}

.list-avvisi-control {
    cursor: pointer;
}

#backToTopBtn {
    display: inline-block;
    background-color: var(--primary-700);
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}
#backToTopBtn::after {
    content: "\f077";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 2.5rem;
    color: #fff;
}
#backToTopBtn:hover {
    cursor: pointer;
    background-color: var(--text-700);
}
#backToTopBtn:active {
    background-color: var(--text-400);
}
#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1200px) {
    #backToTopBtn {
        bottom: 0.625rem;
        right: 0.625rem;
        width: 1.875rem;
        height: 1.875rem;
    }
    #backToTopBtn::after {
        font-size: 1.5em;
        line-height: 1.875rem;
    }
}

/*scrollbar si vede solo se sopra brakpoint lg*/
@media (max-width: 991px) {
    ::-webkit-scrollbar {
        display: none;
    }
}

/*
-------------------------- NOTIFICHE --------------------------
*/
.btnSelectAlert{
    color: #fff;
    background-color:  var(--text-500);
    border-radius: 0.5rem;
    padding: 0.5rem;
    /* margin: 0.25rem  0.75rem 0.25rem 0.75rem; */
}
.btnSelectAlert:hover{
    color: #fff;
    background-color: var(--text-700);
    border-radius: 0.5rem;
    padding: 0.5rem;
    /* margin: 0.25rem  0.75rem 0.25rem 0.75rem; */
}


.alertTablist{
    border: 1px solid var(--text-200);
    border-radius: 0.5rem;
    background-color: var(--background-light);
    padding: 0.25rem;
    font-size: var(--font-size-md);
}
.navLinkAlert{
    color: var(--text-500);
    padding:0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.navLinkAlert:hover{
    color: var(--text-800);
    background-color: #fff;
    /* border-radius: 0.5rem; */
}

.navLinkAlert.active{
    color: var(--text-800) !important;
    background-color: #fff !important;
    /* border-radius: 0.5rem; */
}

.alertFormCheck{
    min-height: auto !important;
    margin-bottom: 0px !important;
}

.listRowHeader{
    background-color: #E0E6EB !important;
    font-weight: 500;
    color: var(--text-600);
    font-size: var(--font-size-sm);
}

.listRow:hover{
    background-color: var(--text-100);
    cursor: pointer;
}


/*------ sovrascrivo accordion boostrap -------*/
.accordion-item{
    border: var(--border-default) !important;
    border-radius: var(--border-radius-list) !important;
    background-color: var(--background-list);
}
.accordion-header{
    color: var(--text-500);
    padding: 0.25rem 1rem;
    font-size: var(--font-size-md);
    border-radius: var(--border-radius-list) !important;
    background: var(--background-list)
}

.accordion-header:hover{
    border-radius: var(--border-radius-list) !important;
    /* border: var(--border-default-hover) !important; */
    background: var(--background-list-hover);
    font-size: var(--font-size-testo);
    color: var(--text-600);

}

.accordion-button{
    background-color: transparent;
}

.accordion-button:hover{
    background-color: transparent;
}

.accordion-button:not(.collapsed){
    background-color: transparent;
    box-shadow: none;
    color: var(--text-800);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body{
    border-bottom-left-radius: var(--border-radius-list) !important;
    border-bottom-right-radius: var(--border-radius-list) !important;
}
/* .accordion-button::after{
    display: none;
} */


.accordion-body .list-group-item:last-child{
    border-bottom-left-radius: var(--border-radius-list) !important;
    border-bottom-right-radius: var(--border-radius-list) !important;
}

.accordion-button:not(.collapsed)::after{
    filter: invert(0%) sepia(99%) saturate(0%) hue-rotate(180deg) brightness(0%) contrast(100%);
}

/*/-------------------------- Agenda expanded --------------------------/*/

/* #toolbarExpand > .dx-texteditor.dx-editor-outlined,
#agendaExpand > .dx-scheduler-container > .dx-scheduler-header,
#agendaExpand > .dx-scheduler-container > .dx-scheduler-work-space {
    background-color: white !important;
} */



/* -------------------------- SCROLLBAR -------------------------- */

/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/* * {
  scrollbar-width: thin;
  scrollbar-color: #002B49 #D5D5EB;
} */
/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
*::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: #f3f5f7;
}

*::-webkit-scrollbar-track:hover {
    background-color: #f3f5f7;
    width: 13px !important;
}

*::-webkit-scrollbar-track:active {
    background-color: #f3f5f7;
}

*::-webkit-scrollbar-thumb {
    border-radius: 2px;
    /* background-color: #ef5400; */
    background-color: rgba(239, 84, 0, 0.61);
}

*::-webkit-scrollbar-thumb:hover {
    /* background-color: #ef5400; */
    background-color: rgba(239, 84, 0, 0.771);
    width: 13px !important;
}

*::-webkit-scrollbar-thumb:active {
    /* background-color: #ef5400; */
    background-color: rgba(239, 84, 0, 0.771);
}
