/* #region vx-employee-card */

.vx-employee-card {
  .shift-employee-container-wrapper {
    container-type: inline-size;
  }

  .shift-employee-container {
    user-select: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    width: 100%;
    border: 1px solid #E5EAEE;
    background-color: #fff;
    margin-bottom: 4px;
    /* padding: 8px; */
  }

  .shift-employee-container-content {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 6px;
    gap: 6px;
  }

  .shift-employee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
  }

  .shift-employee-avatar-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }

  .shift-employee-info {
    display: block;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .shift-employee-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
  }

  .shift-employee-job {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 8px;
    color: #80808F;
  }

  .shift-employee-container-wrapper:not(.ui-draggable-dragging) .shift-employee-container.selected {
    border-color: rgba(54, 150, 242, 0.30);
    background-color: rgba(54, 150, 242, 0.30);
  }

  .shift-employee-container-wrapper:not(.ui-draggable-dragging) .shift-employee-container:hover.selected {
    border-color: rgba(54, 150, 242, 0.50);
    background-color: rgba(54, 150, 242, 0.50);
  }

  .shift-employee-container-wrapper:not(.ui-draggable-dragging) .shift-employee-container:hover {
    border-color: #F3F6F9;
    background-color: #F3F6F9;
  }
}

/* #endregion vx-employee-card */
/* #region vx-shift-calendar */
.vx-shift-calendar {
  .shift-grid,
  .shift-grid-header,
  .shift-grid-header-employees-filter,
  .shift-grid-header-days-panel,
  .shift-grid-header-days,
  .shift-grid-header-day,
  .shift-grid-content,
  .shift-grid-content-employees-filter,
  .shift-grid-content-view-panel,
  .shift-grid-content-view-panel-job,
  .shift-grid-content-view-panel-days,
  .shift-grid-content-view-panel-day,
  .shift-grid-header-day-number,
  .shift-grid-header-day-name,
  .shift-grid-content-view-panel-footer {
    margin: 0 !important;
    padding: 0 !important;
  }

  .shift-grid-wrapper {
    /* position: relative; */
  }

  .shift-grid {
    /* margin: 10px !important; */
    background-color: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
    position: relative;
  }

  .shift-grid-footer {
    height: 42px;
    width: 100%;
    background-color: #eeeeef;
    bottom: 0;
    position: sticky;
    z-index: 2;
  }

  .shift-grid-footer-inner {
    border-top: 1px solid #E5EAEE;
    background-color: #fff;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    cursor: default;
  }


  .shift-grid-header {
    /* position: sticky; */
    /* top: 45px; */
    /* z-index: 2; */
    background-color: #fff;
    align-items: stretch;
    border-bottom: 1px solid #E5EAEE;
    height: 46px !important;
  }

  .shift-grid-header-days {
    height: 100%;
  }

  .shift-grid-header-employees-filter {
    padding: 8px 12px 8px 12px !important;
  }

  .shift-grid-header-employees-filter input {
    border-radius: 8px !important;
  }

  .shift-grid-header-day {
    padding: 4px 12px 4px 12px !important;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    align-content: center;
  }

  .shift-grid-header-day-number {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
  }

  .shift-grid-header-day-name {
    font-size: 10px;
    font-weight: 400;
    text-align: center;
  }

  .shift-grid-content {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-grow: 1;
    background-color: #fff;
  }

  .shift-grid-content-view-panel {
    flex: 1;
  }

  .shift-grid-content-view-panel-container {
    width: 100%;
  }

  .shift-grid-content-view-wrapper {
    border-bottom: 1px solid #E5EAEE;
  }

  .shift-grid-content-employees-filter {
    border-right: 1px solid #E5EAEE;
    padding: 6px !important;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 200, 220, .5) #f0f0fa;
  }

  .shift-grid-content-view-panel-day {
    padding: 0 0 40px 0 !important;
    border-right: 1px solid #E5EAEE;
  }

  .shift-grid-content-view-panel-days .shift-grid-content-view-panel-day:last-child {
    border-right: none;
  }

  .ui-droppable-hover.shift-grid-content-view-panel-day {
    background-color: #F3F6F9;
  }

  .shift-grid-content-view-panel-job {
    padding: 4px 4px 4px 4px !important;
  }

  .shift-grid-content-view-panel-job-icon {
    padding-right: 6px;
    align-content: center;
  }

  .shift-grid-content-view-panel-job[aria-expanded=false] .shift-grid-content-view-panel-job-icon .chevron-down {
    display: none;
  }

  .shift-grid-content-view-panel-job[aria-expanded=true] .shift-grid-content-view-panel-job-icon .chevron-right {
    display: none;
  }

  .shift-grid-content-view-panel-job-name {
    font-size: 12px;
    align-content: center;
  }

  .shift-grid-content-view-panel-plus-icon {
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0 10px 0;
  }

  .shift-grid-content-view-panel-plus-icon:hover {
    background-color: #F3F6F9;
  }

  #publishBtn {
    border-radius: 8px;
  }

  .btn-light-custom {
    color: #464E5F;
    border-color: #D6DBE0;
    background-color: white;
    border-radius: 8px;
  }

  #job.active,
  #shiftGroup.active,
  #status.active {
    border-color: #b3b3b3;
    background-color: white;
  }

  .icon-with-line {
    position: relative;
    display: inline-block;
  }

  .icon-with-line::after {
    content: "";
    position: absolute;
    top: 40%;
    left: -3px;
    width: 100%;
    height: 2px;
    background-color: #6993FF;
    transform: rotate(45deg);
    transform-origin: center;
  }

  .dropdown-item {
    background-color: transparent !important;
  }

  .active-job {
    color: #6993FF !important;
  }

  .active-group-status {
    background-color: #f0f0fa !important;
  }

  .shift-grid-content-view-panel-footer {
    padding: 12px !important;
    cursor: pointer;
  }

  .shift-grid-content-view-panel-footer:hover {
    background-color: #F3F6F9;
  }

  .shift-grid-content-view-panel-footer-icon {
    font-size: 12px;
    align-content: center;
    padding-right: 8px;
    color: #1B82E3;
  }

  .shift-grid-content-view-panel-footer-text {
    font-size: 12px;
    align-content: center;
    color: #1B82E3;
  }

  .dropdown-menu-left {
    left: auto !important;
    right: 0 !important;
  }

  .shift-grid .switch input[type=checkbox]~span::before {
    top: 4px;
    height: 21px;
    width: 36px;
  }

  .shift-grid .switch input[type=checkbox]:checked~span::after {
    margin-left: 20px;
  }

  .vx-view-mode-button-group .btn.vx-view-mode-button {
    background-color: inherit;
    border-color: #0000001A;
  }

  .vx-view-mode-button-group .btn.vx-view-mode-button.active,
  .vx-view-mode-button-group .btn.vx-view-mode-button.focus:not(.btn-text),
  .vx-view-mode-button-group .btn.vx-view-mode-button:focus:not(.btn-text),
  .vx-view-mode-button-group .btn.vx-view-mode-button:hover:not(.btn-text):not(:disabled):not(.disabled) {
    background-color: #3696F24D;
    border-color: #338CDB;
  }

  .vx-view-mode-button-group .btn.vx-view-mode-button:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
  }

  .vx-view-mode-button-group .btn.vx-view-mode-button:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
  }

  form[name="vxCalendarConfirmModal"] .modal-footer button {
    width: 120px;
    height: 36px;
    border-radius: 8px;
    transition: none !important;
  }

  #btnDefault:hover,
  #btnDefault:focus,
  #btnDefault:active {
    background-color: inherit !important;
    color: inherit !important;
  }

  #btnLightPrimary:hover,
  #btnLightPrimary:focus,
  #btnLightPrimary:active {
    background-color: #e1e9ff;
    color: #6993ff;
  }

  #btnLightDanger:hover,
  #btnLightDanger:focus,
  #btnLightDanger:active {
    background-color: #ffe2e5;
    color: #f64e60;
  }

  .open-shift-container-wrapper {
    container-type: inline-size;
  }

  .open-shift-container {
    user-select: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    width: 100%;
    border: 1px solid #E5EAEE;
    background-color: #fff;
    margin-bottom: 4px;
  }

  .open-shift-container-content {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 6px;
    gap: 6px;
  }

  .open-shift-container-wrapper:not(.ui-draggable-dragging) .open-shift-container.selected {
    border-color: rgba(54, 150, 242, 0.30);
    background-color: rgba(54, 150, 242, 0.30);
  }

  .open-shift-container-wrapper:not(.ui-draggable-dragging) .open-shift-container:hover.selected {
    border-color: rgba(54, 150, 242, 0.50);
    background-color: rgba(54, 150, 242, 0.50);
  }

  .open-shift-container-wrapper:not(.ui-draggable-dragging) .open-shift-container:hover {
    border-color: #F3F6F9;
    background-color: #F3F6F9;
  }

  .open-shift-avatar {
    width: 32px;
    height: 32px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
  }

  .open-shift-name {
    color: #0D8F89;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
  }

  .open-shift-info {
    display: block;
    flex: 1 1 auto;
    overflow: hidden;
  }

}

/* #endregion vx-shift-calendar */
/* #region vx-shift-card */
.vx-shift-card {
    .shift-wrapper {
        container-type: inline-size;
    }

    .shift-container-wrapper {
        background-color: rgba(255, 255, 255, 1);
        border-radius: 6px !important;
        margin: 6px 6px 0 6px;
        position: relative;
    }

    .shift-wrapper.ui-droppable-hover .shift-container {
        background-color: rgba(0, 123, 255, 0.1) !important;
    }

    .shift-wrapper.ui-droppable-hover .shift-container-border {
        display: block !important;
        box-shadow: inset 0 0 0 1px #007BFF !important;
    }

    /* Shift Container */
    .shift-container {
        /* opacity: 0.3 !important; */
        user-select: none;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        border-radius: 6px;
        width: 100%;
    }

    .shift-container-border {
        display: none;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 1;
        border-radius: 6px;
    }

    .vx-draggable-dragging .shift-container-wrapper * {
        visibility: hidden;
    }

    .vx-draggable-dragging .shift-container-wrapper-content {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        visibility: visible;
        border-radius: 6px;
    }

    /* Status Indicators */
    .shift-status-indicator {
        width: 20px;
        height: 20px;
        bottom: -10px;
        right: -10px;
        position: absolute;
        transform: rotate(45deg);
    }

    /* Shift Border */
    .shift-left-badge {
        width: 6px;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .shift-content {
        padding: 4px 4px 4px 10px;
        height: 47px;
    }

    /* Shift Header */
    .shift-header {
        display: flex;
        align-items: center;
        gap: 4px;
        overflow: hidden;
    }

    /* Shift Name */
    .shift-name {
        color: inherit !important;
        min-width: 0;
        font-size: 10px;
        font-family: Open Sans;
        font-weight: 600;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        flex: 1 1 auto;
    }

    /* Shift Time */
    .shift-time {
        white-space: nowrap;
        color: inherit !important;
        font-size: 10px;
        font-family: Open Sans;
        font-weight: 400;
        display: flex;
        flex: 0 0 auto;
        text-align: right;
        /* word-wrap: break-word; */
    }

    .shift-begin-time {
        white-space: nowrap;
        color: inherit !important;
        font-size: 10px;
        font-family: Open Sans;
        font-weight: 400;
        word-wrap: break-word;
    }

    .shift-end-time {
        white-space: nowrap;
        color: inherit !important;
        font-size: 10px;
        font-family: Open Sans;
        font-weight: 400;
        word-wrap: break-word;
    }

    /* Shift User Info */
    .shift-user-info {
        display: flex;
        margin-top: 4px;
    }

    /* User Avatar */
    .shift-user-avatar {
        width: 20px;
        height: 20px;
    }

    .shift-avatar-image {
        width: 20px;
        height: 20px;
        border-radius: 20px;
    }

    /* User Name */
    .shift-user-name {
        color: inherit !important;
        font-size: 10px;
        font-family: Open Sans;
        font-weight: 400;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        padding-left: 4px;
        align-content: center;
    }

    @container (max-width: 110px) {
        .shift-content {
            padding: 4px 4px 4px 10px;
            height: 62px;
        }

        .shift-header {
            all: unset;
        }

        .shift-name {
            flex: unset;
        }

        .shift-time {
            text-overflow: clip;
            white-space: nowrap;
            padding-top: 4px;
            flex: unset;
            text-align: left;
        }

        .shift-user-info {
            display: inherit;
        }

        .shift-user-avatar {
            display: none;
        }

        .shift-user-name {
            padding-left: 0px;
        }
    }

    @container (max-width: 70px) {
        .shift-container-wrapper {
            margin: 6px 2px 0 2px;
        }

        .shift-content {
            padding: 4px 2px 4px 6px;
            height: 38px;
        }

        .shift-left-badge {
            width: 4px;
        }

        .shift-status-indicator {
            width: 14px;
            height: 14px;
            bottom: -7px;
            right: -7px;
        }

        .shift-header {
            all: unset;
        }

        .shift-time {
            all: unset;
        }

        .shift-name {
            display: none;
        }

        .shift-time-separator {
            display: none;
        }

        .shift-user-info {
            display: none;
        }
    }

}

/* #endregion vx-shift-card */
/* #region vx-shift-modal */
.vx-shift-modal {
  #vxShiftModal ~ .modal-backdrop {
    background-color: transparent !important;
  }

  form[name="vxConfirmModal"] .modal-backdrop{
    z-index: 1051 !important;
  }

  .employee-dropdown {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
    top: 70px !important;
    left: 19px !important;
    transform: none !important;
    padding: 0;
  }

  .employee-list {
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
  }


  #vxShiftModal .modal-footer button {
    height: 36px;
    padding: 0px 16px 0px 16px;
    border-radius: 8px;
    transition: none !important;
  }

  #vxConfirmModal .modal-footer button {
    width: 120px;
    height: 36px;
    border-radius: 8px;
    transition: none !important;
  }

  .b-input .hint-body {
    max-height: 90px;
    overflow-x: hidden;
  }

  #btnDefault:hover,
  #btnDefault:focus,
  #btnDefault:active,
  #btnDefault i {
    background-color: inherit !important;
    color: inherit !important;
  }

  #btnLightDanger:hover,
  #btnLightDanger:focus,
  #btnLightDanger:active,
  #btnLightDanger i {
    background-color: #ffe2e5;
    color: #f64e60;
  }

  #btnLightPrimary:hover,
  #btnLightPrimary:focus,
  #btnLightPrimary:active,
  #btnLightPrimary i {
    background-color: #e1e9ff;
    color: #6993ff;
  }

  #btnPrimary:hover,
  #btnPrimary:focus,
  #btnPrimary:active {
    background-color: #6993ff;
    border-color: #6993ff;
  }
}

/* #endregion vx-shift-modal */
