.holder_constructPlanta .holder_main_grid {
    background: #f8fbfd;
    position: relative;
    overflow: hidden;
    float: left;
    width: calc(100% - 350px);
    height: 100vh;
    padding: 25px;
    margin-top: 40px;
}

.holder_constructPlanta .holder_main_grid .holder_grelha {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 20px;
}

.holder_side_singleRegisto .holder_constructPlanta .holder_main_grid .ps__rail-x {
    position: fixed;
    left: 25px !important;
    bottom: 10px !important;
    opacity: 1 !important;
}

.holder_side_singleRegisto .holder_constructPlanta .holder_main_grid .ps__rail-y {
    position: fixed;
    top: 60px !important;
    right: 350px !important;
    opacity: 1 !important;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha {
    position: absolute;
    left: 15px;
    right: 15px;
    margin: auto;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 20px;
    left: 0;
    right: 20px;
    box-shadow: 0 0 10px 5px #ddd;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_outer_squares {
    position: relative;
    display: flex;
    width: 100%;
    height: 40px;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_outer_squares .holder_background_squares {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_outer_squares .holder_background_squares .backSquare {
    background: #fff;
    position: relative;
    display: inline-table;
    width: 40px;
    height: 40px;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    cursor: default;
    z-index: 1;
    
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: grab;
    pointer-events: all;

    transition: transform 0.2s;
    -webkit-transition: transform 0.2s;
    -moz-transition: transform 0.2s;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.selected {
    outline: 3px solid #0066cc;
    outline-offset: -3px;
    z-index: 101;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.ui-draggable-dragging,
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object:active {
    cursor: grabbing !important;
    z-index: 1000;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_background_squares .backSquare.placed {
    cursor: default;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha.inserting .holder_background_squares .backSquare {
    cursor: copy;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha.inserting .holder_background_squares .backSquare.placed {
    cursor: no-drop;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_background_squares .backSquare.selected {
    background: #b3edff;
}

/* Disable hover effects during drag */
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha.is-dragging .holder_background_squares .backSquare:hover,
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha.is-dragging .holder_background_squares .backSquare.placed:hover {
    background: transparent !important;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha.inserting .holder_background_squares .backSquare:not(.placed):hover {
    background: #7fff7f;
}

/* Disable inserting hover effect during drag */
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha.is-dragging.inserting .holder_background_squares .backSquare:not(.placed):hover {
    background: transparent !important;
}

/* Ensure grabbing cursor persists over all elements during drag */
.holder_inner_grelha.is-dragging,
.holder_inner_grelha.is-dragging *,
.ui-draggable-dragging,
.ui-draggable-dragging * {
    cursor: grabbing !important;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.r90 { transform: rotate(90deg); }
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.r180 { transform: rotate(180deg); }
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.r270 { transform: rotate(270deg); }
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.r360 { transform: rotate(360deg); }

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.wall::before {
    content: '';
    position: absolute;
    background: #d0ccc9;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 10px;
    height: 100%;
    margin: auto;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.corner::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    bottom: 0;
    right: 0;
    border-left: 10px solid #d0ccc9;
    border-top: 10px solid #d0ccc9;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.junction::before {
    content: '';
    position: absolute;
    background: #d0ccc9;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 10px;
    height: 100%;
    margin: auto;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.junction::after {
    content: '';
    position: absolute;
    background: #d0ccc9;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 10px;
    margin: auto;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.divider::before {
    content: '';
    position: absolute;
    background: transparent;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 5px;
    height: 100%;
    margin: auto;
    border-left: 2px solid #abebff;
    border-right: 2px solid #abebff;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.window::before {
    content: '';
    position: absolute;
    background: #c9e1e8;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 6px;
    height: 100%;
    margin: auto;
    border: 1px solid #797f86;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.door::before {
    content: '';
    position: absolute;
    background: #6e7375;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 6px;
    height: 100%;
    margin: auto;
    border: 1px solid #797f86;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.door::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: unset;
    height: 100%;
    margin: auto;
    padding-left: 100%;
    border: 1px solid #6e7375;
    border-top-right-radius: 100%;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.door.inversed::after {
    border-top-right-radius: unset;
    border-bottom-right-radius: 100%;
}


.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.desk::after {
    content: '';
    background: #d7b78e;
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    border: 1px solid #333;
    border-radius: 3px;

    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.desk::before {
    content: '';
    background: #424242;
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    bottom: 0;
    right: 20%;
    margin: auto;
    border: 1px solid #333;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;

    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.desk.inactive::after,
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_inner_grelha .holder_objects .object.desk.inactive::before {
    background: #bdc7ca;
    border: 1px solid #959595;
}

.holder_constructPlanta .holder_objects .object.desk .desk_initials {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    z-index: 1;
}

.holder_constructPlanta .holder_objects .object.desk.r90 .desk_initials {
    transform: translate(-50%, -50%) rotate(-90deg);
}
.holder_constructPlanta .holder_objects .object.desk.r180 .desk_initials {
    transform: translate(-50%, -50%) rotate(-180deg);
}
.holder_constructPlanta .holder_objects .object.desk.r270 .desk_initials {
    transform: translate(-50%, -50%) rotate(-270deg);
}

.holder_constructPlanta .holder_objects .object.desk.desk_assigned::after {
    background: #b07840;
    border-color: #7a5228;
}

.holder_constructPlanta .holder_inlineObjectActions {
    background: #dbdbdb;
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    width: 174px;
    height: 50px;
    margin: auto;
    padding: 5px 2px;
    border-radius: 40px;
    box-shadow: 0 0 10px #606060;
    z-index: 9999;
}

.holder_constructPlanta .holder_inlineObjectActions button {
    background: #333;
    width: 40px;
    height: 40px;
    margin: 0 7px;
    border: 0;
    color: #f9f9f9;
    font-size: 19px;
    border-radius: 100%;
    vertical-align: top;

    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}

.holder_constructPlanta .holder_inlineObjectActions button.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.holder_constructPlanta .holder_inlineObjectActions button:hover {
    background: #4a4a4a;
}


.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo {
    position: absolute;
    width: 270px;
    padding-bottom: 25px;
    border-radius: 10px;
    z-index: 1000;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .holder_inner {
    background: #fff;
    position: relative;
    overflow: hidden;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 0 10px 5px #b8b9b9;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .close_objectInfo {
    background: #fff;
    position: absolute;
    top: 5px;
    right: 7px;
    width: 14px;
    height: 14px;
    line-height: 0;
    cursor: pointer;
    border-radius: 100%;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_banner {
    background: #cedde6 no-repeat bottom center / cover;
    width: 100%;
    height: 130px;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info {
    position: relative;
    padding: 10px 15px 15px;
    color: #333;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .objectType {
    margin-top: 5px;
    color: #000;
    font-size: 11px;
    line-height: 5px;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .description {
    color: #343d4a;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -1px;
    font-family: 'Montserrat', sans-serif;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .objectStatus {
    position: absolute;
    top: 12px;
    right: 10px;
    padding: 1px 10px;
    font-size: 11px;
    font-weight: 500;
    line-height: 13px;
    font-family: 'Montserrat', sans-serif;
    border-radius: 10px;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .objectStatus.active {
    background: #4cb352;
    color: #fff;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .objectStatus.inactive {
    background: #737373;
    color: #fff;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados {
    position: relative;
    display: flex;
    margin: 10px 0 15px;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados .desk_used {
    position: relative;
    width: 50%;
    border-right: 1px solid #ccc;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados .desk_acessorios {
    position: relative;
    width: 100%;
    padding-left: 10px;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados .desk_used i,
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados .desk_acessorios i {
    display: block;
    color: #4b6f95;
    font-size: 22px;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados .desk_used span,
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados .desk_acessorios span {
    color: #343d4a;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', sans-serif;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados .desk_used p,
.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_dados .desk_acessorios p {
    margin: 0;
    color: #222;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', sans-serif;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_objectActions {
    position: relative;
    margin-top: 10px;
    text-align: center;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_objectActions button {
    background: #333;
    width: 30px;
    height: 30px;
    margin: 0 2px;
    border: 0;
    color: #fff;
    border-radius: 100%;

    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}

.holder_constructPlanta .holder_main_grid .holder_grelha .holder_objectInfo .object_holder_info .holder_objectActions button:hover {
    background: #000;
}



.holder_constructPlanta .holder_actions {
    position: relative;
    float: left;
    width: 350px;
    height: 100vh;
    padding: 15px;
    padding-top: 60px;
    box-shadow: 0 0 10px 5px #eaeef0;
}

.holder_constructPlanta .holder_actions label {
    display: block;
    font-size: 11px;
    font-weight: 300;
}

.holder_constructPlanta .holder_actions #grid_x_size,
.holder_constructPlanta .holder_actions #grid_y_size {
    width: 30px;
    height: 30px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #eeeff0;
}

.holder_constructPlanta .holder_objetos {
    position: relative;
    display: flex;
}

.holder_constructPlanta .holder_objetos .single_objeto {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 15px;
    border: 1px solid #fff;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;

    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}

.holder_constructPlanta .holder_objetos .single_objeto:hover {
    background: #dcedf7;
    border: 1px solid #619bbd;
}

.holder_constructPlanta .holder_objetos .single_objeto.selected {
    background: #e0ecdd;
    border: 1px solid #68bd61;
}

.holder_constructPlanta .holder_objetos .single_objeto .holder_imagem {
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 50px;
    margin: auto;
}

.holder_constructPlanta .holder_objetos .single_objeto .holder_imagem img {
    width: 100%;
}

.holder_constructPlanta .holder_objetos .single_objeto.selected .holder_imagem {
    border-color: #68bd61;
}

.holder_constructPlanta .holder_objetos .single_objeto .holder_descricao {
    margin: 10px 0 0;
    color: #343d4a;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', sans-serif;
}

.holder_constructPlanta .holder_actions .holder_buttons {
    position: absolute;
    left: 15px;
    bottom: 65px; /* Increased from 15px to clear the 50px fixed footer */
}
