/*----------------------
-------2) Base----------
------------------------*/

/* Link */

a:link,
a:visited {
    text-decoration: none;
    transition: 0.2s;
}

/* tipografia */

.h5,
h5 {
    margin-bottom: 0;
}

.p {
    font-size: 14px !important;
}

/*---------------------------------
-------3) Layout generali----------
-----------------------------------*/

/* breadcrumb */

#workspace .breadcrumb-item a {
    text-decoration: none;
}

/* classe da togliere, sistemare html @xzy */

@media (max-width: 767px) {

    .px-mobile-card-home {
        padding: 0 24px 24px 24px;
    }

}

@media (min-width: 768px) {

    .card-registrazione-container {
        width: 75%;
    }

    form#register-form {
        padding: 32px;
    }

}

form#register-form {
    padding: 16px;
}


/*-------------------------------------
-------------4) COMPONENTI-------------
--------------------------------------*/

/*-------------- TABELLE (GENERALE & LAYOUT) ------------ */

/* Dimensioni e allineamenti base */
th,
tbody,
td,
tfoot,
thead,
tr {
    height: 40px;
}

tbody tr {
    transition: 0.2s;
}

/* input dentro una tabella - TODO: da rivedere */
table .form-control, /* Bootstrap Native */
table .form-select /* Bootstrap Native */ {
    margin-bottom: 0 !important;
}

/* Stati riga (Focus, Inactive, Child) */
tr.inactive {
    background-color: rgba(250, 251, 252, 1);
}

/* TODO: da rivedere */

tr:has(td[data-tr-focus]) {
    background-color: #F2F7F8;
}

tr:has(+ tr.child) td {
    border-style: dotted;
}

tr.child td {
    display: table-cell;
    padding-left: 20px;
}

tr.child td:first-child {
    display: table-cell;
    padding-left: 40px !important;
}

/* Gestione Toggle Child Rows */
label.child-rows-toggler:has(input:checked) .toggler-closed {
    display: none;
}

label.child-rows-toggler:has(input:not(:checked)) .toggler-open {
    display: none;
}

/* Nasconde le righe figlie a vari livelli di profondità se il toggle non è checkato */
tr:has(label.child-rows-toggler input:not(:checked))+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child,
tr:has(label.child-rows-toggler input:not(:checked))+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child+tr.child {
    display: none;
}

/* V-Table (Variante compatta) */
.v-table tr {
    height: 20px;
}

.v-table th {
    height: 20px;
    padding: 12px 8px 4px 8px !important;
}

.v-table td {
    height: 30px;
}

.v-table tr:has(td.d-none) {
    /* d-none: Bootstrap Native */
    display: none;
}

/*-------------- CHECKBOX, RADIO & SWITCHES ------------ */

/* Label Checkbox Style */
.label-checkbox {
    color: #889699 !important;
    font-family: "Hanken Grotesk", "League Spartan" !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

/*---DROPDOWN---*/

.dropdown {
    display: flex;
    
}

.dropdown-menu button {
    text-align: left;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-item {
    border-radius: 8px;
    padding: 6px 12px 6px 12px !important;
    font-size: 14px !important;
}

.dropdown-item.delete {
    color: var(--blade-red-700) !important;
}

.dropdown-menu.show {
    background-color: white;
    padding: 0.5rem;
    border-radius: 12px;
    margin-top: 4px !important;
    width: 98%;
    min-width: fit-content;
}

.dropdown-item.delete:focus,
.dropdown-item.delete:hover {
    color: var(--blade-red-700);
    background-color: var(--blade-red-50);
}

.dropdown-item.delete.active,
.dropdown-item.delete:active {
    color: var(--blade-red-700);
    background-color: var(--blade-red-50);
}

.dropdown-cerca {
    padding: 8px 16px !important;
}

.dropdown-action {
    display: flex;
    justify-content: space-between;
}

.dropdown-item.annulla {
    width: fit-content;
    color: var(--blade-grey-400);
}

.dropdown-item.salva {
    width: fit-content;
    color: var(--blade-primary-500);
}

.dropdown-item.salva:hover {
    background-color: var(--blade-primary-100);
}

a.dropdown-item {
    text-decoration: none !important;
    color: black !important;
}

.dropdown:not(.jqs-period):not(:has(ul *)) {
    display: none;
}

.dropdown-filtri {
    border: var(--blade-border-primary);
    padding: 24px 24px;
    border-radius: 6px;
    margin-top: 8px;
    max-width: 386px;
    width: fit-content;
}

/*---NAVBAR---*/

/* nav item */

.nav-item a {
    color: #222 !important;
    text-decoration: none !important;
}

/* tabs */

ul#pills-tab-table {
    border-radius: 5px;
    padding: 0;
    width: fit-content;
    font-size: 14px;
    margin-bottom: 0 !important;
}

.nav-pills-table .nav-link-table.active,
.nav-pills-table .show>.nav-link-table {
    color: var(--blade-primary-500);
    background-color: var(--blade-primary-100);
    border: 1px solid var(--blade-primary-300);
    padding: 6px 12px;
    font-weight: 500;
    transition: 0.4s;
    z-index: 2;
    position: relative;
}

.nav-link-table {
    padding: 6px 12px;
    background-color: var(--blade-primary-100);
    color: var(--blade-grey-800);
}

.nav-pills-table .nav-link-table {
    border: 1px solid var(--blade-grey-300);
    border-radius: 0;
}

.nav-item-table:first-child .nav-link-table {
    border-radius: 5px 0 0 5px;
}

.nav-item-table:last-child .nav-link-table {
    border-radius: 0 5px 5px 0;
}

.nav-item-table {
    margin-right: -1px;
}

.nav-pills,
.nav-pills * {
    --bs-nav-pills-link-active-bg: var(--blade-primary-100);
    transition: 0.4s;
}

ul#pills-tab {
    border-radius: 6px;
    border: 1px solid var(--blade-grey-400);
    padding: 8px;
    width: fit-content;
}

ul#pills-tab-small {
    border-radius: 6px;
    border: 1px solid var(--blade-grey-400);
    padding: 6px;
    width: fit-content;
    font-size: 12px;
}

.nav-pills .nav-link.active {
    color: var(--blade-primary-500);
}

/*---ALERT e BADGE---*/

/* alert */

.alert-dismissible {
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert.success {
    color: #222;
    background-color: #D0ECE0;
    border-left: 5px solid #44B282;
    --bs-alert-link-color: #44B282;
}

.alert.warning {
    color: #222;
    background-color: #FFF1DA;
    border-left: 5px solid #FFC86C;
    --bs-alert-link-color: #FFC86C;
}

.alert.error {
    color: #222;
    background-color: #fbd9d9;
    border-left: 5px solid #F0686A;
    --bs-alert-link-color: #F0686A;
}

/* warning in label */

.warning-in-label {
    display: inline-block;
    margin-top: -3px;
    margin-left: 5px;
    padding: 0 7px;
    font-size: 12px;
    color: #222;
    position: absolute;
}

.warning-in-label-menu {
    display: inline-block;
    margin-top: 0;
    margin-left: 6px;
    padding: 0 7px;
    font-size: 12px;
    color: #222;
    position: absolute;
}

/* badge */

.badge.rounded-pill {
    cursor: default;
}

.badge-notifications {
    position: absolute !important;
    top: -12px !important;
    right: -6px !important;
}

/*---ACCORDION---*/

.accordion-item-badge {
    background-color: #D0ECE0;
    padding: 4px 8px;
    border-left: 4px solid #44B282;
    color: #222;
    margin-left: 20px;
    font-weight: 500;
}

/*---CARD---*/

@media (max-width: 576px) {

}

.tab-content .card-big {
    margin: 0 0 48px 0 !important;
}

/* floating page title */

.floating-page-title {
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-top: 3rem;
    padding-right: 3rem;
    padding-left: 3rem;
}

.floating-page-subtitle {
    font-size: 14px;
    text-align: center;
    padding-right: 3rem;
    padding-left: 3rem;
}

/* text badge */

.disabled-text-normal {
    color: #889699 !important;
    font-family: "Hanken Grotesk";
    font-weight: 500;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disabled-text {
    color: #889699 !important;
    font-size: 10px;
    text-transform: uppercase;
    font-family: "Hanken Grotesk";
    font-weight: 500;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*---ICONE---*/

.icon-container {
    width: 14px;
    height: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-container-sm {
    width: 12px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-container-lg {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-container-btn-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-badge-container {
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-table-container {
    display: flex;
    justify-content: end;
    padding-right: 8px;
    position: relative;
}

.cta-table-container:has(> * ~ *) {
    gap: 10px;
}

.duo-icon {
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4px;
    width: 100%;
    height: 100%;
    transition: 0.3s;
    overflow: visible;
}

.duo-icon path.linea {
    fill: none;
    stroke: var(--blade-primary-500);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.duo-icon path.celeste-pieno {
    fill: var(--blade-primary-500);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.duo-icon path.bianco {
    fill: var(--blade-white);
}

.duo-icon path.celeste {
    fill: var(--blade-primary-150);
}

.icona-filtra {
    background-image: url(font-awesome-icons/filter-icon.svg) !important;
    background-size: 15px 11px !important;
}

.icona-cerca {
    background-image: url(font-awesome-icons/search-icon.svg) !important;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.white-icon {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5px;
    width: 11px;
    transition: 0.3s;
    overflow: visible;
}

.icone-blu .bi {
    margin-right: 5px;
}

/*---DASHBOARD---*/

.dashboard-counter {
    width: 150px;
    background: #fff;
}

.dashboard-counter-container {
    justify-content: space-around;
}

/*---CRONOMETRO---*/

.stopwatch-now-time {
    font-size: 20px;
    font-weight: 600;
}

.stopwatch-now-date {
    font-size: 15px;
    font-weight: 300;
    text-transform: none;
}

.stopwatch-button {
    font-size: 17px;
}

.stopwatch[data-running="true"] [data-stopwatch-button-start] {
    display: none;
}

.stopwatch[data-running="false"] [data-stopwatch-button-stop] {
    display: none;
}

.stopwatch-mini-display {
    color: var(--bs-danger-text);
    text-wrap: nowrap;
    margin-right: 0.6rem;
}

.stopwatch-display {
    font-size: 55px;
    font-weight: 800;
    border-radius: 10px;
    width: 80vw;
    max-width: 300px;
    text-align: center;
    margin: 30px;
}

/*----------------------
-------6) Altro---------
------------------------*/

/*---Animations---*/

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: 100px auto;
    width: 50%;
}

.loading-fade {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    background: black;
    opacity: 5%;
    z-index: 1030;
    left: 0;
}

.refreshable-loading-animation {
    position: absolute;
    display: none !important;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1030;
}

/*-------------- STELLE & RATING ------------ */

.counted-star {
    text-align: center;
    color: #FFC86C;
}

[data-star-empty] {
    display: none;
    cursor: pointer;
}

[data-star-fill] {
    display: inline-block;
    cursor: pointer;
}

label:has(input:checked)~label:not(:has(~label:hover)):not(:hover) [data-star-empty] {
    display: inline-block !important;
}

label:has(input:checked)~label:not(:has(~label:hover)):not(:hover) [data-star-fill] {
    display: none !important;
}

label:has([data-star-fill]):hover~label i,
label:has([data-star-fill]):has(input:checked)~label i {
    opacity: 50% !important;
}

[data-ajax-radio-url]:has([data-star-fill]) label {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

[data-ajax-radio-url]:has([data-star-fill]) label .radio-label-button {
    width: 0.75rem;
    height: 0.75rem;
    cursor: pointer;
    font-size: 0.5rem;
}


/* Serch elements */

.search-section {
    border: 1px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.search-section-title {
    margin-top: -14px;
}

.search-section-title span {
    background-color: var(--bs-tertiary-bg);
}
