/*
LBPS_Web v0.19.54
WordPress / Enfold integration shell.

Validated target:
- Real Enfold header and menus.
- Header height 66px.
- LBPS logo rendered at 100x45.
- Permanent 320px left reserve so the lateral menu never covers the module.
*/

#header_main,
#header_main .container {
    min-height: 66px !important;
    height: 66px !important;
}

#header_main .main_menu > ul > li > a {
    line-height: 66px !important;
    height: 66px !important;
}

#top #header #header_main .logo {
    height: 66px !important;
    display: block !important;
}

#top #header #header_main .logo a {
    height: 66px !important;
    line-height: normal !important;
    display: block !important;
}

#top #header #header_main .logo img,
#top #header #header_main .logo a img {
    width: 100px !important;
    height: 45px !important;
    min-width: 100px !important;
    min-height: 45px !important;
    max-width: 100px !important;
    max-height: 45px !important;
    object-fit: contain !important;
    margin-top: 0 !important;
    top: 0 !important;
}

/* Enfold opens #main from header.php. Use it; never create a second #main. */
#main {
    background: #eef1f5 !important;
    padding-top: 66px !important;
    box-sizing: border-box !important;
}

.lbps-dinamic-stage {
    margin-left: 320px;
    width: calc(100% - 320px);
    min-height: 500px;
    background: #eef1f5;
    color: #111827;
    box-sizing: border-box;
    padding: 18px 22px 28px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    overflow: hidden;
}

.lbps-dinamic-stage .history-page-shell {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1100px) {
    .lbps-dinamic-stage {
        margin-left: 0;
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }
}


/*
 * Enfold table isolation — common to every embedded LBPS module.
 * Enfold adds full cell borders; LBPS_Web uses only subtle row separators.
 */
.lbps-dinamic-stage table,
.lbps-dinamic-stage thead,
.lbps-dinamic-stage tbody,
.lbps-dinamic-stage tfoot,
.lbps-dinamic-stage tr,
.lbps-dinamic-stage th,
.lbps-dinamic-stage td {
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
}

.lbps-dinamic-stage th,
.lbps-dinamic-stage td {
    border-bottom: 1px solid #edf0f4 !important;
}

.lbps-dinamic-stage tbody tr:last-child td {
    border-bottom: 0 !important;
}
