﻿:root {
    --border-color-select: rgb(51, 51, 51, 0.45);
    --hilight-day-color: rgba(255,255,255,.7);
    --border-color-line: rgb(213, 213, 213);
}

.kyDarkMode {
    --border-color-select: rgba(255, 255, 255, .7);
    --hilight-day-color: rgba(0,0,0,.7);
    --border-color-line: rgb(76, 76, 76);
}

.ky-schedule-container {
    width: 100%;
    height: 100%;
    grid-template-columns: 0.1fr 99fr;
    grid-template-rows: 100fr;
    display: grid;
    border: 1px solid var(--border-color-popup);
    border-top-left-radius: .5rem;
    font-family: var(--font-family);
    background-color: var(--color-background-header);
}

.ky-schedule-grid-header {
    background-color: var(--color-background-header);
    display: inline-block;
    position: relative;
    float: left;
    width: 100%;
    border-bottom: 1px solid var(--border-color-popup);
    /*height: 100px;*/
    border-top-left-radius: .5rem;
    height: 100%;
}

.ky-schedule-grid-body {
    /*background-color: rgba(160, 160, 160, 0.1);*/
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-width: 32rem;
    /*width: 100%;*/
}

.ky-schedule-calendar {
    background-color: var(--background-menu-bar, rgba(255,255,255,.7));
    /*overflow-x: scroll;*/
    text-wrap: nowrap;
    overflow-y: clip;
    background-color: transparent;
    /*height: 100px;*/
}

.ky-schedule-calendar-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
}

.ky-schedule-gantt {
    background-color: transparent;
    overflow-x: hidden;
    /*overflow-x: clip;*/
    text-wrap: nowrap;
    overflow-y: clip;
    height: 100%;
}

.ky-schedule-gantt-day-element {
    display: inline-block;
    height: 100%;
    background-color: transparent;
    color: var(--color-text);
    border-left: 1px solid var(--color-text);
    border-right: 0px solid var(--color-text);
}

.ky-schedule-calendar-day-element {
    display: inline-block;
    height: 100%;
    /*background-color: transparent;*/
    color: var(--color-text);
    border-left: 1px solid var(--border-color-popup);
    border-top: 1px solid var(--border-color-popup);
    border-right: 0px solid var(--border-color-popup);
    border-bottom: 1px solid var(--border-color-popup);
    cursor: pointer;
    padding-top: .15rem;
    text-align: center;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    /* NUOVI STILI DI TEST */
    text-align: center;
    padding: 0;
    height: 100%;
    width: 100%;
    display: block;
    float:left;
}

ky-schedule-calendar-day-element > span {
    display: inline-block;
    /*margin-top: .2rem;*/
    width: 1.25rem;
    height: 1.25rem;
    padding-top: .25rem;
}

.ky-schedule-calendar-day-element-weekend {
    background: rgba(210, 179, 83, 0.1);
}

.ky-schedule-calendar-day-element-highlight {
    /*background-color: transparent;*/
    /*background: linear-gradient(0deg, var(--primary-color) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 100%);*/
    /*border-top: 1px solid var(--border-color-popup);*/
    align-content: center;
}

.ky-schedule-calendar-day-element-selected {
    /*background-color: transparent;*/
    /*background: linear-gradient(0deg, var(--color-yellow) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 100%);*/
    /*border-top: 1px solid var(--border-color-popup);*/
    align-content: center;
}

    .ky-schedule-calendar-day-element-selected > span,
    .ky-schedule-calendar-day-element-highlight > span {
        /*-webkit-transition: background-color .5s ease-out;
        -moz-transition: background-color .5s ease-out;
        -o-transition: background-color .5s ease-out;
        transition: background-color .5s ease-out;*/
        background-color: var(--primary-color);
        border-radius: .7rem;
        /*padding: .2rem 0rem;*/
        color: var(--hilight-day-color);
        display: inline-block;
        width: 1.2rem;
        height: 1.2rem;
        text-align: center;
        padding-top: .2rem;
        /*font-weight: bold;*/
        opacity: .7;
        /* NUOVI STILI DI TEST */
        width: 1.1rem;
        height: 1.1rem;
        display: block;
        padding: 0;
        margin: auto;
        font-weight: normal;
        
    }

    .ky-schedule-calendar-day-element-selected > span {
        /*background: var(--color-red);*/
        opacity: 1;
        font-weight: bold;
    }

.ky-schedule-calendar-day-element-span {
    font-size: .8rem;
    /*display: inline-block;*/
    /* NUOVI STILI DI TEST */
    text-align: center;
    width: 100%;
    height: 100%;
    align-content: start;
    /* font-size: xx-small; */
    line-height: normal;
    display: block;
    align-content: center;
}

.ky-schedule-calendar-week-element {
    /*display: inline-block;*/
    height: 100%;
    background-color: transparent;
    color: var(--color-text);
    border-left: 1px solid var(--border-color-popup);
    border-right: 0px solid var(--border-color-popup);
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    float: left;
    line-height: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 0.25rem;
    padding-right: 0.25rem;

    /** NUOVI STILI DI TEST */
    display: block;
    line-height: revert;
    align-content: baseline;
}

.ky-schedule-calendar-week-element-span {
    font-size: .8rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    /* NUOVI STILI DI TEST */
    align-content: start;
    display: block;
    height: 100%;
    /*margin-top: .5rem;*/
    line-height: normal;
    align-content: center;
}

.ky-schedule-calendar-month-element {
    display: inline-block;
    height: 100%;
    background-color: transparent;
    color: var(--color-text);
    border-left: 1px solid var(--color-text);
    border-right: 0px solid var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    /*padding-top: .25rem;*/
    padding-left: .25rem;
    padding-right: .25rem;
}

.ky-schedule-calendar-month-element-span {
    font-size: .8rem;
    text-overflow: ellipsis;
    /*height: -webkit-min-content;*/
    /*display: inline-block;*/
    /* margin-top: .5rem; */
    overflow: hidden;
    white-space: nowrap;
    /* NUOVI STILI DI TEST */
    line-height: normal;
    height: calc(100% / 3);
    font-size: small;
    text-overflow: ellipsis;
    /* height: -webkit-min-content; */
    display: block;
    /* margin-top: .5rem; */
    overflow: hidden;
    white-space: nowrap;
    /*line-height: inherit;*/
    align-content: start;
    align-content: center;
}

.ky-schedule-gantt-day-element-span {
    font-size: .8rem;
}

.ky-schedule-gantt-current-day-line {
    display: inline-block;
    position: absolute;
}

.ky-schedule-gantt-horizontal-line {
    display: inline-block;
    position: absolute;
    width: 100%;
    background-color: var(--border-color-line);
    left: 0;
    /*height: 1px;*/
}

.ky-schedule-gantt-horizontal-bg-row {
    display: inline-block;
    position: absolute;
    width: 100%;
    left: 0;
    
}

.ky-schedule-grid-header-cell-resize {
    /*width: .3rem;*/
    width: .2rem;
    height: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    top: 0;
    cursor: col-resize;
    background-color: var(--border-color-popup);
    z-index: 9999;
}

.ky-schedule-grid-header-cell-resize-sing {
    width: 1px;
    background-color: var(--border-color-popup);
    background-color: red;
}

.ky-schedule-calendar-months {
    display: inline-block;
    float: left;
    background-color: transparent;
    text-align: center;
    height: calc(100%/3);
    clear: both;
}

.ky-schedule-calendar-weeks {
    display: inline-block;
    float: left;
    background-color: var(--background-menu-bar, rgba(255,255,255,.7));
    text-align: center;
    height: calc(100%/3);
    clear: both;
}

.ky-schedule-calendar-days {
    display: inline-block;
    float: left;
    background-color: var(--background-menu-bar, rgba(255,255,255,.7));
    /*text-align: center;*/
    height: calc(100%/3);
    clear: both;
}

.ky-schedule-calendar-separator {
    height: 100%;
    min-width: 1px;
    vertical-align: bottom;
    /*float: left;*/
}

.ky-schedule-gantt-row {
    /*height: 15rem;*/
    height: 100%;
    background-color: transparent;
    overflow-x: hidden;
    text-wrap: nowrap;
    overflow-y: clip;
    position: relative;
}

.ky-schedule-grid-row {
    border-bottom: 1px solid var(--border-color-popup);
}

.ky-schedule-grid-container {
    /*position: relative;*/
    position: sticky;
    /*background-color: rgba(160, 160, 160, 0.1);*/
    /*overflow-x: scroll;*/
    border-top-left-radius: .5rem;
}

.ky-schedule-gantt-container {
    background-color: var(--color-content, white);
    overflow: scroll;
}

.ky-schedule-grid-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
}

.ky-schedule-grid-body-wrapper {
    /*height: calc(100% - 100px);*/
    overflow: scroll;
    width: 100%;
    /*background-color: rgba(160, 160, 160, 0.1);*/
}

.ky-schedule-gantt-block {
    border-radius: 10px;
    vertical-align: middle;
    /* imposto dimensione minima in altezza per uniformare il blocchetto rispetto la griglia */
    min-height: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(0,0,0,.2);
    z-index: 3;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    text-align:center;
}

.ky-schedule-grid-row-cell {
    border-bottom: 1px solid var(--border-color-popup);
    /*padding: 5px;*/
    padding: 0px;
    font-size: 12px;
    cursor: pointer;
    background-color: rgba(160, 160, 160, 0.1);
    text-wrap: nowrap;
    white-space: nowrap;
    font-weight: bold;
    /* imposto dimensione minima in altezza per uniformare il blocchetto rispetto la griglia */
    min-height: 1rem;
    /*line-height: 0px;*/
    overflow-y: hidden;
}

.ky-schedule-gantt-block-text {
    display: block;
    text-overflow: ellipsis;
    position: absolute;
    left: 0;
    top: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    white-space: nowrap;
    vertical-align: middle;
    font-size: 12px;
    /*padding-right: 20%;
    padding-left: 20%;*/
}

.ky-schedule-gantt-block-tag-info {
    display:inline-block; 
    position:absolute; 
    max-width: 6rem;
    padding-left: .5rem;
    padding-right: .5rem;
    z-index:9999;
}

.ky-schedule-gantt-block-selected {
    /*-webkit-box-shadow: 0px 0px 1px 1px var(--color-red);
    box-shadow: 0px 0px 1px 1px var(--color-red);*/
    border: 2px solid var(--border-color-select);
}

.ky-schedule-gantt-block-tag-info-text {
    white-space: nowrap;
}

.ky-schedule-grid-row-container {
    display: grid;
    grid-template-columns: auto 1fr;
}

.ky-schedule-grid-row-grouped-container {
    width: 6rem;
    overflow: hidden;
    white-space: nowrap;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    border-bottom: 1px solid var(--border-color-popup);
    border-right: 1px solid var(--border-color-popup);
    text-align: center;
    /*background-color: rgba(90, 244, 255, 0.15);*/
}

.ky-schedule-grid-row-grouped-container-contenent {
    height: 100%;
    /*-webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);*/
    overflow: hidden;
    white-space: nowrap;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    /*padding: .15rem;*/
    font-size: .75rem;
    margin: auto;
    margin-left:0;
    font-weight:500;
    cursor: pointer;
}

.ky-schedule-grid-row-grouped-container-contenent-inner {
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    padding: 0.15rem;
    font-size: .75rem;
    margin: auto;
    margin-left: 0;
    /*font-weight: bold;*/
}

.ky-schedule-grid-row-grouped-container-expanded {
    grid-column: span 2;
    width: 100%;
}

.ky-schedule-gantt-loader {
    position: absolute;
    height: 5px;
    bottom: 0px;
    overflow: hidden;
}

.ky-schedule-grid-row-grouped-container-contenent > .ky-grid-expander {
    width: 1rem;
    height: calc(100% + 0.8rem);
    margin-top: -0.4rem;
    float: left;
    margin-right: 0.35rem;
    margin-left: 0.15rem;
    cursor: pointer;
}

.ky-schedule-gantt-element {
    position: absolute;
    vertical-align: middle;
    /*min-height: 15px;*/
    z-index:2;
}

.ky-schedule-ball {
    border-radius: 50%;
    
}

.ky-schedule-line {
    width: 3px;
}

.ky-schedule-hline {
    min-height: 1px;
}

.ky-schedule-grid-rows-detail-container {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}


/********************** NUOVI STILI **********************/
.ky-schedule-grid-body {
    position: relative;
}

.ky-schedule-grid-row-grouped-container {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
}

.ky-group-name {
    margin-left: 10px;
}

.ky-grid-expander {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.ky-datagrid-expander-closed::after {
    content: '+';
}

.ky-datagrid-expander-open::after {
    content: '-';
}

/*.ky-schedule-grid-rows-detail-container {
    position: relative;
    margin-left: 20px;
}

.ky-schedule-grid-row-cell {
    position: absolute;
    width: 100%;
    display: flex;
}*/

.ky-cell {
    padding: 5px;
    border: 1px solid #ccc;
    flex: 1;
    text-align: center;
}

.ky-schedule-gantt-block-text:hover {
    cursor: pointer;
}

/******************** NUOVI STILI PER BLOCCHETTI  *************/

.ky-schedule-gantt-block-header {
    width: 10px;
    height: 100%;
}

.ky-schedule-gantt-block {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    font-weight: bold;
}

.ky-schedule-gantt-block-header {
    height: 100%;
    border-right: 1px solid rgba(0, 0 ,0 , .4);
}

.ky-schedule-gantt-block-data {
    display: flex;
    flex-direction: column;
}

.ky-schedule-gantt-block-qty-completion {
    height: 50%;
    background-color: rgba(0, 0, 0, .2);
}

.ky-schedule-gantt-block-qty-completion-error {
    border-top: 2px dashed rgba(255, 0, 0, .8);
}

.ky-schedule-gantt-block-time-completion {
    height: 50%;
    background-color: rgba(0, 0, 0, .2);
}

.ky-schedule-gantt-block-time-completion-error {
    border-bottom: 2px dashed rgba(255, 0, 0, .8);
}

.ky-schedule-gantt-block-current-day-line {
    display: inline-block;
    position: absolute;
}

.ky-schedule-row-selected {
    border-top-color: var(--color-orange);
    border-top-width: 1px;
    border-top-style: solid;
    border-bottom-color: var(--color-orange);
    background-color: rgba(255, 165, 0, 0.5);
}

.ky-schedule-gantt-block-selected {
    border-color: var(--color-orange);
}

.ky-schedule-gantt-block-bgrow-selected {
    border-color: var(--color-orange);
    border-width: 1px;
    border-style: solid;
    background-color: rgba(255, 165, 0, 0.5) !important;
}

.ky-scheduler-block-animate {
    opacity: 0.5;
}

/****************** COLLEGAMENTI TRA I BLOCCHI ************************/

.ky-schedule-gantt-link {
    position: absolute;
    z-index: 4;
}

.ky-schedule-gantt-link-vertical {
    position: absolute;
    z-index: 4;
}

.ky-schedule-gantt-link {
    height: 2px;
}

.ky-schedule-gantt-link-vertical {
    width: 2px;
}

.ky-schedule-gantt-block-linked {
    border: 2px solid var(--color-red);
}

.ky-schedule-gantt-link-color-red {
    background-color: var(--color-red);
}

.ky-schedule-gantt-link-color-orange {
    background-color: var(--color-orange);
}

.ky-schedule-gantt-link-color-purple {
    background-color: var(--color-purple);
}

/****** FINE - COLLEGAMENTI TRA I BLOCCHI ************/

/****** POPUP **********************/

#ky-schedule-gantt-popup {
    position: absolute;
    background: var(--color-background);
    border: 1px solid var(--border-color-popup);
    border-radius: .5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
    display: none;
    padding: .5rem;
    background-color: var(--color-content, white);
}

.ky-schedule-gantt-container-popup-wrapper {
    background-color: transparent;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

.ky-schedule-gantt-popup-hidden {
    display: none;
}

.ky-schedule-gantt-popup-header {
    font-weight: bold;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--border-color-popup);
    padding: .5rem;
    max-width: 13.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2rem;
}

.ky-schedule-gantt-popup-content {
    display: flex;
    justify-content: space-between;
}

.ky-schedule-gantt-popup-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: .5rem;
}

.ky-schedule-gantt-popup-section label {
    margin-bottom: .3rem;
    font-weight: bold;
}

.ky-schedule-gantt-popup-info {
    right: .3rem;
    position: absolute;
}

.ky-schedule-gantt-popup-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.ky-schedule-gantt-sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ky-schedule-gantt-sidebar-content-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ky-schedule-gantt-info-button {
    border: none;
    outline: none;
    background: var(--border-color-popup);
    color: white;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    line-height: .3rem;
    font-weight: bold;
    margin-left: .5rem;
    margin-right: .3rem;
}

.ky-schedule-gantt-info-button:active,
.ky-schedule-gantt-info-button:focus,
.ky-schedule-gantt-info-button:hover {
    border: none;
    outline: none;
}

.ky-schedule-gantt-sidebar-arrows button {
    border: 1px solid var(--border-color-popup);
    background: white;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    margin: .3rem 0;
}

.ky-schedule-gantt-popup-footer {
    margin-top: .5rem;
    padding: .5rem 0;
    border-top: 1px solid var(--border-color-popup);
    flex-direction: column;
}

.ky-schedule-gantt-footer-item {
    font-size: 12px;
}

.ky-schedule-gantt-footer-progress {
    margin-top: .3rem;
    height: .3rem;
    background: #ddd;
    position: relative;
}

.ky-schedule-gantt-progress-bar {
    height: 100%;
    background: blue;
}

.ky-schedule-gantt-popup-image {
    width: 9rem;
    height: 9rem;
    border: 1px solid var(--border-color-popup);
    border-radius: .3rem;
    background-color: rgba(0, 0, 0, .05);
    
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.ky-schedule-gantt-popup-footer {
    display: flex;
    flex-wrap: wrap;
    padding: .5rem;
    border-top: 1px solid var(--border-color-popup);
    background-color: var(--color-background);
}

.ky-schedule-gantt-footer-block {
    display: flex;
    align-items: center;
    padding: 5px;
    margin: 5px;
    border: 1px solid var(--border-color-popup);
    background-color: var(--color-background);
    ;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: .65rem;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: 1.2rem;
    flex-grow: 1;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.ky-schedule-gantt-footer-arrow-left,
.ky-schedule-gantt-footer-arrow-right {
    width: .65rem;
    height: .65rem;
    height: 60%;
    background-color: var(--color-text);
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polygon points="0,5 10,0 10,10" /></svg>');
    mask-repeat: no-repeat;
    -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polygon points="0,5 10,0 10,10" /></svg>');
    -webkit-mask-repeat: no-repeat;
    display: block;
    cursor: pointer;
}

.ky-schedule-gantt-footer-arrow-right {
    transform: rotate(180deg);
}

.ky-schedule-gantt-current-block {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*padding: .3rem .5rem;*/
    position: relative;
}

.ky-schedule-gantt-current-left-color {
    width: .75rem;
    height: 100%;
}

.ky-schedule-gantt-current-right-color {
    width: .75rem;
    height: 100%;
}

.ky-schedule-gantt-block-popup-left {
    width: .75rem;
    height: 100%;
    align-content: center;
}

.ky-schedule-gantt-block-popup-right {
    width: .75rem;
    height: 100%;
    align-content: center;
}

.ky-schedule-popup-overlay-container {
    animation: fadeInSchedulePopupOverlay 0.3s ease-in-out;
}

@keyframes fadeInSchedulePopupOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ky-schedule-popup-overlay-close:hover {
    color: var(--color-red);
}

.ky-schedule-popup-overlay-image {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

/***** FINE - POPUP ********/

/******* INIZIO NAVIGATION BAR *******/
.ky-schedule-navbar-container.wrap {
    flex-direction: row;
    justify-items: flex-end;
    float: right;
    max-height: 3rem;
    min-height: 3rem;
    height: 3rem;
    margin-right: 12%;
}

.ky-schedule-navbar-scroll-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 50rem;
    margin-top: .25rem;
    max-height: 3rem;
    min-height: 3rem;
    height: 3rem;
}

.ky-schedule-navbar-button-container {
    overflow-x: scroll;
    flex: 1;
    display: flex;
}

.ky-schedule-navbar-arrow {
    cursor: pointer;
    max-height: 1.5rem;
    height: 1.5rem;
    width: 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 0;
    margin: .25rem;
    font-size: larger;
    font-weight: bold;
    background: none; 
    padding: 0; 
    box-sizing: border-box;
    align-self: flex-start;
}

.ky-schedule-navbar-button-container > button {
    width: 5rem;
    max-width: 5rem;
    min-width: 5rem;
    text-overflow: ellipsis;
    text-wrap: unset;
    text-wrap-mode: nowrap;
    padding: 1rem;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: .5rem .5rem;
    background-color: var(--button-color);
    cursor: pointer;
    border: 1px solid var(--color-placeholder);
    /*border-radius: .4rem;*/
    border-radius: 0;
}

.ky-schedule-navbar-button-container > button.ky-schedule-navbar-sub-button {
    border: 1px solid var(--color-placeholder);
    background-color: transparent;
}

.ky-schedule-navbar-button-container > button.ky-schedule-nav-button-open {
    border: 1px solid var(--primary-color);
    background-color: var(--color-green);
}

.ky-schedule-navbar-button-container > button.ky-schedule-nav-button-active {
    background-color: var(--primary-color);
    color: var(--color-content);
}

.ky-schedule-navbar-main-button:first-child {
    border-top-left-radius: .9rem;
    border-bottom-left-radius: .9rem;
}

.ky-schedule-navbar-main-button:last-child {
    border-top-right-radius: .9rem;
    border-bottom-right-radius: .9rem;
}

.ky-schedule-navbar-sub-button:last-child {
    border-top-right-radius: .9rem;
    border-bottom-right-radius: .9rem;
}

/******* FINE NAVIGATION BAR *******/

/******** GESTIONE GRIGLIA DYNAMIC, GRIGLIA STANDARD DBOH - Aggiustamenti grafici per Schedulatore ***********/
.ky-schedule-container .ky-datagrid-row-selected {
    border-color: var(--color-orange);
    border-width: 1px;
    border-style: solid;
    background-color: rgba(255, 165, 0, 0.5) !important; /* Nel Css base c'è important, quindi va replicato qui... **/
}

.ky-schedule-container .ky-datagrid-data {
    top: 1px;
}

.ky-schedule-container .ky-datagrid-header-wrapper {
    top: 0;
}

.ky-schedule-container .ky-datagrid {
    border-left: 1px solid var(--border-color-popup);
    border-top: 1px solid var(--border-color-popup);
    border-bottom: 1px solid var(--border-color-popup);
}

.ky-schedule-datagrid-dynamic .ky-schedule-gantt-container {
    border-right: 1px solid var(--border-color-popup);
    border-top: 1px solid var(--border-color-popup);
    border-bottom: 1px solid var(--border-color-popup);
}

.ky-schedule-datagrid-dynamic .ky-datagrid-header-cell {
    width: 100%;
    padding-top: .2rem;
}

.ky-schedule-container .ky-datagrid .ky-datagrid-header-rows {
    /*padding-top: .2rem;*/
}

.ky-schedule-container .ky-datagrid-data-wrap {
    top: -1px;
}

.ky-scheduler-readonly {
    border: 2px solid red;
}

.ky-schedule-gantt-container.ky-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    background: var(--color-scrollbar);
    border: .6rem solid rgba(0, 0, 0, .15) !important;
}

.ky-schedule-gantt-container.ky-scrollbar::-webkit-scrollbar {
    width: .4rem;
    height: .6rem !important;
    background: var(--color-background-header);
    border-radius: .5rem;
}

.ky-schedule-gantt-container.ky-scrollbar:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,.4);
    background: var(--color-scrollbar-hover);
    border: 4px solid transparent;
    cursor: pointer;
}

/******** FINE GESTIONE GRIGLIA DYNAMIC ***********/

/******* INIZIO GROUPING BAR *******/
.ky-schedule-grouping-container.wrap {
    flex-direction: row;
    justify-items: flex-end;
    float: left;
    max-height: 3rem;
    min-height: 3rem;
    height: 3rem;
    /*margin-left: 12%;*/
}

.ky-schedule-grouping-scroll-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 50rem;
    margin-top: .25rem;
    max-height: 3rem;
    min-height: 3rem;
    height: 3rem;
}

.ky-schedule-grouping-button-container {
    overflow-x: scroll;
    flex: 1;
    display: flex;
}

.ky-schedule-grouping-arrow {
    cursor: pointer;
    max-height: 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    margin: .25rem;
    font-size: larger;
    font-weight: bold;
    background: none;
    padding: 0;
    box-sizing: border-box;
    align-self: flex-start;
}

.ky-schedule-grouping-button-container > button {
    width: 5rem;
    max-width: 5rem;
    min-width: 5rem;
    text-overflow: ellipsis;
    text-wrap: unset;
    text-wrap-mode: nowrap;
    padding: 1rem;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: .5rem .5rem;
    background-color: var(--button-color);
    cursor: pointer;
    border: 1px solid var(--color-placeholder);
    /*border-radius: .4rem;*/
    border-radius: 0;
}

    .ky-schedule-grouping-button-container > button.ky-schedule-grouping-button-active {
        background-color: var(--primary-color);
        color: var(--color-content);
    }

.ky-schedule-grouping-main-button:last-child {
    border-top-right-radius: .9rem;
    border-bottom-right-radius: .9rem;
}

.ky-schedule-grouping-main-button:first-child {
    border-top-left-radius: .9rem;
    border-bottom-left-radius: .9rem;
}

/******* FINE GROUPING BAR *******/

/******* INIZIO STATUS BAR *******/
.ky-schedule-action-bottom-container.wrap {
    flex-direction: row;
    justify-items: flex-start;
    float: left;
    max-height: 3rem;
    min-height: 3rem;
    height: 3rem;
    width:100%;
    justify-content: space-between;
}
/******* FINE STATUS BAR *******/
.ky-schedule-grid-container .ky-pivot-column-text {
    padding-top: 1.5rem;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 3rem;
}

.ky-schedule-gantt-popup-custom-section {
    margin-left: .5rem;
}


.ky-schedule-gantt-loading-blocking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.5);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
}

/* Spinner circolare per lo scheduler */
.ky-schedule-spinner {
    width: 3rem; /* diametro */
    height: 3rem;
    border: .5rem solid rgba(0, 0, 0, 0.1); /* colore dello sfondo del cerchio */
    border-top-color: var(--primary-color); /*#3498db;  colore del segmento animato */
    border-radius: 50%;
    animation: ky-spinner-rotate 1s linear infinite;
}

/* Animazione rotazione */
@keyframes ky-spinner-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ky-schedule-spinner-text {
    background: var(--background-menu-bar-over);
    border-radius: .7rem;
    font-size: 1rem;
    padding: .2rem .8rem;
    margin-left: 1rem;
    margin-right: .5rem;
    position: relative;
    float: right;
    right: .3rem;
    margin-top: .3rem;
    min-height: 1rem;
}


.ky-schedule-reorder-btn-container {
    margin: 0.2rem;
    position: fixed;
    left: 1rem;
}

.ky-schedule-reorder-btn {
    border-radius: .9rem;
    width: 8rem;
    text-overflow: ellipsis;
    text-wrap: unset;
    text-wrap-mode: nowrap;
    padding: 1rem;
    overflow: hidden;
    line-height: 0;
    margin-top: .25rem;
    margin-left: .25rem;
    padding: .5rem .5rem;
    background-color: var(--button-color);
    cursor: pointer;
    border: 1px solid var(--color-placeholder);
}

.ky-schedule-gantt-popup-commands > .ky-commands-element-row {
    margin-left: .5rem;
    margin-right: .3rem;
    line-height: 1.3rem;
    margin-top: 0;
}