.maintenance_stages_body {
    background: var(--gray-background);
    border: 1px solid #f3f3f3;
    padding: 20px 20px 2px 20px;
    margin-top: 16px;
    height: calc(100% - 40px);
}

.maintenance_stages_body-preload-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.maintenances_templates_stages-item {
    margin-top: 8px;
}

.maintenances_templates_stages-item:first-child {
    margin-top: 0px;
}

.maintenance_stages_body.maintenance_report_stages_body {
    background: #fff;
    border: none;
}.maintenances_templates_stages-item {
    padding: 8px 8px 0px 8px;
    background-color: var(--white);
}

/* .maintenance_stages_body > div > div {
    background: var(--white);
} */

.maintenances_templates_stages-item:last-child {
    padding-bottom: 8px;
}

.maintenances_templates_stages-item-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 32px;
}

.stage-button {
    cursor: pointer;
    margin-left: 8px;
}

.stage_number {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 171%;
    text-align: center;
    color: var(--gray-dark);
    width: 24px; height: 24px;
}

.stage_name {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 171%;
    color: var(--gray-dark);
    margin-left: 16px;
}

.stage_button_add_component {
    padding: 9px 9.5px;
}

.stage_button_add_component-icon {
    height: 18px;
}

.stage_button_add_component-label {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 117%;
    text-align: center;
    color: var(--green-dark);
    margin-left: 4px;
    white-space: nowrap;
}

.stage_button_copy,
.stage_button_remove {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenances_templates_stages-item-child {
    padding-left: 20px;
    border-top: 1px solid #f3f3f3;
    margin-top: 12px;
}

.maintenances_templates_stages-item-child .maintenances_templates_stages-item {
    padding-right: 0;
}

/* stage component group */
.stage_group_component-label {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 133%;
    color: var(--gray);
}

.stage_group_component-remove {
    margin-left: 12px;
    height: 40px;
    cursor: pointer;
}

.stage_group_component .select-field {
    max-width: 320px;
    width: 100%;
    margin-left: 12px;
}

.stage_group_component {
    margin-left: 70px;
    margin-top: 8px;
}
/* end stage component group */

/* stage name styles */
.stage_name input {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 171%;
    color: var(--gray-dark);
    border: 1px solid var(--gray-border);
    padding: 4px 8px;
    outline: none;
}


/* end stage name styles */

.maintenances_templates_stages-item-body {
    position: relative;
}

.stage_dnd_icon {
    position: absolute;
    left: 0;
    visibility: hidden;
    opacity: 0;
}

.maintenances_templates_stages-item:hover > .maintenances_templates_stages-item-body > .stages_item_left > .stage_dnd_icon {
    visibility: visible;
    opacity: 1;
}

.maintenances_templates_stages-item:hover {
    cursor: pointer;
}

.maintenances_templates_stages-item:active {
    cursor: grabbing;
    /* border: 1px solid var(--yellow-pressed);
    background: var(--gray-background); */
}
/* 
.maintenances_templates_stages-item {
    border: "1px solid transparent";
} */

.stages_item_left {
    flex: 1;
}

.stage_name,
.stage_name input {
    width: 100%;
}

.stage_name {
    padding: 4px 8px;
    border: 1px solid transparent;
}

.stage_name:hover {
    border: 1px solid var(--gray-border);
}

.stage_name input {
    border: none;
    padding: 0;
}

.stage_name.active:hover,
.stage_name.active:target,
.stage_name.active:active {
    border: 1px solid var(--yellow-main);
}

.maintenances_templates_stages-item {
    position: relative;
}

.maintenances_templates_stages-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border: 1px solid var(--yellow-main);
    visibility: hidden;
    opacity: 0;
}

.maintenances_templates_stages-item.active-drag::after {
    visibility: visible;
    opacity: 1;
}

.maintenance_stages_body > div {
    height: 100%;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.maintenance_stages_body > div::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.maintenances_templates_stages-item {
    
}

/* .maintenances_templates_stages-item-child .maintenances_templates_stages-item {
    height: 69px;
} */

.maintenances_templates_stages-item-parent,
.maintenances_templates_stages-item-substage {
    max-height: 40px;
    height: 100%;
    transition: max-height 1s ease-out;
}

.maintenances_templates_stages-item-child .maintenances_templates_stages-item-substage.groups_components_show,
.maintenances_templates_stages-item-parent.groups_components_show {
    max-height: 123px;
    height: 100%;
    transition: max-height 1s ease-out;
}/* .page_body {
    min-height: 790px;
} */

.single_page-data-top {
    position: relative;
}

.maintenance_report_comment p {
    margin-top: 8px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 171%;
    color: #484748;
}

.report_show_page_body.page_body {
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.report_show_page_body.page_body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.report_show_page_body.page_body .single_page-data-bottom {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
}
/* SinglePage content top (heading + action) */
.single_page_content_top { display: flex; align-items: center; justify-content: space-between; }
.single_page_content_top-right .green_button { white-space: nowrap; }
/* drag-over indicator for stage reordering */
.maintenances_templates_stages-item.drag-over { border-top: 2px solid var(--yellow-main); }
.maintenance_stages_body.maintenance_report_stages_body {
    padding-left: 0;
    padding-top: 0;
}

.maintenances_templates_report_stages-childs {
    padding-left: 28px;
}

.maintenances_templates_report_stages-item-wrap {
    /* border-bottom: 1px solid #f3f3f3; */
    padding-top: 8px;
}

.maintenances_templates_report_stages-childs {
    border-top: 1px solid #f3f3f3;
    margin-top: 8px;
}

.maintenances_templates_report_stages-childs .maintenances_templates_report_stages-item-wrap {
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f3f3;
}

.maintenance_stages_body.maintenance_report_stages_body > div {
    height: auto;
}

.maintenance_stages_body.maintenance_report_stages_body {
    height: auto;
}

.maintenance-report-body {
    height: calc(100% - 40px);
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.maintenance-report-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* .maintenances_templates_report_stages-childs .maintenances_templates_report_stages-item-wrap:last-child {
    border-bottom: none;
} */

.stage_name:hover {
    border: 1px solid transparent;
}

.single_page_content_top.single_page_content_top-report {
    margin-top: 24px;
}

/* media items */
.maintenance_template_report_media-item {
    max-width: 140px;
    width: 100%;
    height: 248px;
    position: relative;
    margin-right: 24px;
}

.maintenance_template_report_media-item:last-child {
    margin-right: 0;
}

.maintenance_template_report_media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maintenance_template_report_media-item-body {
    height: 248px;
}

.maintenance_template_report_media-item-delete {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(36, 36, 35, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* visibility: hidden;
    opacity: 0; */
    transition: all 0.3s ease 0s;
}

/* .maintenance_template_report_media-item:hover .maintenance_template_report_media-item-delete {
    visibility: visible;
    opacity: 1;
} */

.maintenance_template_report_media  {
    margin-top: 8px;
    display: flex;
    align-items: stretch;
}
/* end media items */

/* media create */
.maintenance_template_report_media-item.maintenance_template_report_media-create {
    background: var(--gray-background);
    cursor: pointer;
}

.maintenance_template_report_media-create .maintenance_template_report_media-item-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance_template_report_media-create:hover .maintenance_report_icon svg path {
    stroke: var(--yellow-hover);
}

.maintenance_template_report_media-create label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.maintenance_template_report_media-create input {
    display: none;
}
/* end media create */

.maintenance_template_report_media-item.maintenance_template_report_media-empty {
    border: 2px dashed var(--gray-light);
}

.maintenance_template_report_media-item-delete:hover svg path {
    stroke: var(--yellow-hover);
}

.stages_item_right {
    flex: 1;
}

.stages_item_right .stages_components {
    width: 100%;
}

.stage_status {
    margin-right: 8px;
    margin-bottom: 2px;
}

.maintenances_templates_report_stages-item-wrap .maintenances_templates_stages-item-body {
    padding-left: 5px;
}

.stage_number.stage_unchecked {
    color: #757573;
}

.maintenances_templates_report_stages-item-wrap .maintenances_templates_stages-item-body {
    flex-direction: column;
    align-items: flex-start;
}

.maintenances_templates_report_stages-item-wrap .stages_components .react-select__indicators {
    display: none;
}

.stages_report_components_label {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 133%;
    color: var(--gray);
    margin-right: 12px;
}

.maintenances_templates_report_stages-item-wrap .stages_components {
    padding-left: 60px;
    max-width: none;
    width: 100%;
}

.maintenances_templates_report_stages-item-wrap .stages_components div.react-select__value-container {
    padding: 8px 16px;
}

.maintenances_templates_report_stages-item-wrap .stages_components .select-field {
    max-width: 320px;
    width: 100%;
}

.stages_report_components_label.empty_components {
    color: var(--red-alert);
}