

:root {
    --bs-body-font-size: 0.9rem !important;
    --bg-login: #343a40 !important;
    --fbb-card-border: #e2e8f0;
    --fbb-card-bg: #ffffff;
}

body {
    margin: 0;
    background-color: #f8f9fa; 
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    text-align: var(--bs-body-text-align);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.fbb-logo {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.login {
    background-color: var(--bg-login);
    border-radius: 8px !important;
}

.btn-lg {
    background-color: #d3cec5 !important;
}

.bg_fbb {
    background-color: var(--bg-login);
}

.navbar {
    min-height: 80px;
    position: relative !important;
    z-index: 10500 !important;
}

.navbar-nav {
    position: relative;
    z-index: 10501 !important;
}

.nav-item {
    font-size: 1.05rem !important;
}

.dropdown-menu,
.dropdown-menu-dark,
.navbar .dropdown-menu {
    position: absolute !important;
    z-index: 10600 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.navbar-brand { 
    font-weight: bold; 
    color: #ffffff !important; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-edit-pink {
    background-color: #d63384;
    border-color: #d63384;
    color: #ffffff;
}

.btn-edit-pink:hover,
.btn-edit-pink:focus {
    background-color: #b8226c;
    border-color: #a81c60;
    color: #ffffff;
}

.img-container-bem {
    max-height: 250px;
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

@page {
    size: A4 portrait;
    margin: 0;
}

.ficha-container {
    background: #fff;
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ficha-body {
    flex-grow: 1;
}

.logo-header {
    max-height: 115px;
    width: auto;
    object-fit: contain;
}

.ficha-page-break {
    page-break-after: always;
    break-after: page;
}

@media print {
    .no-print, nav, .navbar, footer {
        display: none !important;
    }
    
    html, body {
        background-color: #ffffff !important;
        font-size: 8pt;
        color: #000000;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ficha-container {
        box-shadow: none !important;
        border: none !important;
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        padding: 15mm 15mm !important;
        margin: 0 auto !important;
    }

    .page-break {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .ficha-page-break {
        page-break-after: always !important;
        break-after: page !important;
    }
}

/* ========================================================================= */
/* ESTILIZAÇÃO RESPONSIVA E CARTÕES MOBILE                                 */
/* ========================================================================= */

.d-mobile-cards {
    display: none;
}

.d-desktop-only {
    display: block;
}

@media (max-width: 991.98px) {
    nav.navbar {
        position: relative !important;
        z-index: 10500 !important;
    }

    .navbar-collapse {
        background-color: #212529 !important;
        padding: 1.25rem !important;
        border-radius: 0.5rem !important;
        margin-top: 0.5rem !important;
        position: relative !important;
        z-index: 10550 !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6) !important;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.35rem 0;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .dropdown-menu {
        background-color: #2c3034 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        position: static !important;
        float: none !important;
        z-index: 10600 !important;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .fbb-logo {
        max-height: 40px;
    }
}

@media (max-width: 767.98px) {
    .d-desktop-only {
        display: none !important;
    }

    .d-mobile-cards {
        display: block !important;
    }

    .fbb-mobile-card {
        background: var(--fbb-card-bg);
        border: 1px solid var(--fbb-card-border);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        padding: 14px;
        margin-bottom: 14px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .fbb-mobile-card:active {
        transform: scale(0.99);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .fbb-mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .fbb-mobile-card-img {
        width: 68px;
        height: 68px;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
        border: 1px solid #dee2e6;
    }

    .fbb-mobile-card-img-placeholder {
        width: 68px;
        height: 68px;
        border-radius: 8px;
        background-color: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        border: 1px solid #dee2e6;
        flex-shrink: 0;
    }

    .fbb-mobile-card-body {
        margin-bottom: 10px;
    }

    .fbb-mobile-card-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .fbb-mobile-card-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        padding: 3px 0;
        border-bottom: 1px dashed #f1f5f9;
    }

    .fbb-mobile-card-row:last-child {
        border-bottom: none;
    }

    .fbb-mobile-card-footer {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
    }

    .fbb-mobile-card-footer .btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.88rem;
        border-radius: 8px;
    }
}

/* FBB_MANAGED_THEME_START */
/* Consulta de imóveis */
:where(body:not(.imovel-preview-body)) .imovel-ficha {
    color:#263238;
    max-width:1200px;
    margin:0 auto
}
:where(body:not(.imovel-preview-body)) .imovel-title {
    font-size:1.55rem;
    margin:0 0 1.2rem;
    overflow-wrap:anywhere
}
:where(body:not(.imovel-preview-body)) .imovel-relations {
    margin-bottom:1rem
}
:where(body:not(.imovel-preview-body)) .imovel-top {
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(0,1fr);
    gap:1rem;
    align-items:start
}
:where(body:not(.imovel-preview-body)) .imovel-section {
    background:white;
    border:1px solid #d9e0e4;
    border-radius:6px;
    padding:1rem;
    margin-bottom:1rem;
    min-width:0
}
:where(body:not(.imovel-preview-body)) .imovel-section h2 {
    font-size:1.1rem;
    color:#31556a;
    border-bottom:1px solid #d9e0e4;
    padding-bottom:.5rem;
    margin:0 0 .7rem
}
:where(body:not(.imovel-preview-body)) .imovel-section-heading {
    display:flex;
    gap:.5rem;
    justify-content:space-between;
    align-items:start
}
:where(body:not(.imovel-preview-body)) .imovel-section-heading h2 {
    flex:1
}
:where(body:not(.imovel-preview-body)) .imovel-field {
    display:grid;
    grid-template-columns:minmax(130px,35%) minmax(0,1fr);
    gap:.6rem;
    border-bottom:1px solid #edf0f2;
    padding:.35rem 0
}
:where(body:not(.imovel-preview-body)) .imovel-field dt {
    font-weight:600;
    font-size:.9rem
}
:where(body:not(.imovel-preview-body)) .imovel-field dd {
    margin:0;
    overflow-wrap:anywhere
}
:where(body:not(.imovel-preview-body)) .imovel-ficha dl {
    margin:0
}
:where(body:not(.imovel-preview-body)) .imovel-photos img {
    width:100%;
    height:190px;
    object-fit:contain
}
:where(body:not(.imovel-preview-body)) .imovel-photo-grid {
    display:grid;
    gap:.8rem;
    grid-template-columns:repeat(2,minmax(0,1fr))
}
:where(body:not(.imovel-preview-body)) .imovel-photo-grid figure:first-child {
    grid-column:1/-1
}
:where(body:not(.imovel-preview-body)) .imovel-photo-grid figure {
    margin:0
}
:where(body:not(.imovel-preview-body)) .imovel-no-photo {
    padding:3rem 1rem;
    background:#f4f6f8;
    color:#69757e;
    text-align:center
}
:where(body:not(.imovel-preview-body)) .imovel-fiscal {
    background:#f5f8fa;
    padding:.7rem;
    margin-top:1rem
}
:where(body:not(.imovel-preview-body)) .imovel-table {
    width:100%;
    border-collapse:collapse
}
:where(body:not(.imovel-preview-body)) .imovel-table td,:where(body:not(.imovel-preview-body)) .imovel-table th {
    vertical-align:top;
    overflow-wrap:anywhere;
    padding:.5rem;
    text-align:left;
    border-bottom:1px solid #ddd
}
:where(body:not(.imovel-preview-body)) .imovel-ficha p {
    overflow-wrap:anywhere
}
:where(body:not(.imovel-preview-body)) .imovel-ficha small {
    display:inline-block;
    color:#59656e
}
:where(body:not(.imovel-preview-body)) .imovel-print-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:2px solid #31556a;
    margin-bottom:1rem;
    padding-bottom:.5rem
}
:where(body:not(.imovel-preview-body)) .imovel-print-header img {
    max-height:48px;
    max-width:150px
}
@media (max-width:767px) {
    :where(body:not(.imovel-preview-body)) .imovel-top {
        grid-template-columns:1fr
    }
    :where(body:not(.imovel-preview-body)) .imovel-field {
        grid-template-columns:1fr;
        gap:.1rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-section {
        padding:.8rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-title {
        font-size:1.25rem
    }
}
@page fbb-consulta {
    size:A4;
    margin:12mm
}
@media print {
    :where(body:not(.imovel-preview-body)) html,:where(body:not(.imovel-preview-body)) body {
        background:white!important;
        font-size:10pt
    }
    :where(body:not(.imovel-preview-body)) .no-print,:where(body:not(.imovel-preview-body)) nav,:where(body:not(.imovel-preview-body)) footer,:where(body:not(.imovel-preview-body)) .sidebar,:where(body:not(.imovel-preview-body)) .modal,:where(body:not(.imovel-preview-body)) .navbar,:where(body:not(.imovel-preview-body)) .app-header {
        display:none!important
    }
    :where(body:not(.imovel-preview-body)) main,:where(body:not(.imovel-preview-body)) .main-content,:where(body:not(.imovel-preview-body)) .content-wrapper,:where(body:not(.imovel-preview-body)) .container,:where(body:not(.imovel-preview-body)) .container-fluid {
        margin:0!important;
        padding:0!important;
        width:100%!important;
        max-width:none!important
    }
    :where(body:not(.imovel-preview-body)) .imovel-ficha {
        max-width:none
    }
    :where(body:not(.imovel-preview-body)) .imovel-top {
        grid-template-columns:minmax(0,2fr) minmax(0,1fr)
    }
    :where(body:not(.imovel-preview-body)) .imovel-field {
        grid-template-columns:35% minmax(0,1fr)
    }
    :where(body:not(.imovel-preview-body)) .imovel-section {
        border:0;
        border-radius:0;
        padding:.2rem 0;
        margin-bottom:.8rem;
        box-shadow:none!important
    }
    :where(body:not(.imovel-preview-body)) .imovel-section h2 {
        break-after:avoid;
        page-break-after:avoid
    }
    :where(body:not(.imovel-preview-body)) .imovel-field,:where(body:not(.imovel-preview-body)) figure,:where(body:not(.imovel-preview-body)) .imovel-table tr {
        break-inside:avoid;
        page-break-inside:avoid
    }
    :where(body:not(.imovel-preview-body)) .imovel-table thead {
        display:table-header-group
    }
    :where(body:not(.imovel-preview-body)) .table-responsive {
        overflow:visible!important
    }
    :where(body:not(.imovel-preview-body)) .imovel-table {
        table-layout:fixed
    }
    :where(body:not(.imovel-preview-body)) .imovel-photos img {
        height:140px
    }
    :where(body:not(.imovel-preview-body)) .imovel-print-item+.imovel-print-item {
        break-before:page;
        page-break-before:always
    }
    :where(body:not(.imovel-preview-body)) .imovel-ficha a {
        color:inherit!important;
        text-decoration:none!important
    }
    :where(body:not(.imovel-preview-body)) .imovel-ficha a[href]:after {
        content:none!important
    }
}
@media screen {
    :where(body:not(.imovel-preview-body)) .imovel-view-brand {
        float:right;
        margin-left:1rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-view-brand img {
        height:9mm;
        width:auto;
        max-width:40vw;
        object-fit:contain
    }
    :where(body:not(.imovel-preview-body)) .imovel-title {
        min-height:9mm
    }
    :where(body:not(.imovel-preview-body)) .imovel-ficha {
        max-width:none
    }
    :where(body:not(.imovel-preview-body)) .imovel-title {
        font-size:1.7rem;
        font-weight:700;
        padding-bottom:1rem;
        border-bottom:1px solid #dee2e6
    }
    :where(body:not(.imovel-preview-body)) .imovel-screen-grid {
        display:grid;
        grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
        gap:1.5rem;
        align-items:start
    }
    :where(body:not(.imovel-preview-body)) .imovel-main,:where(body:not(.imovel-preview-body)) .imovel-sidebar {
        min-width:0
    }
    :where(body:not(.imovel-preview-body)) .imovel-section {
        padding:0;
        border:0;
        border-radius:7px;
        box-shadow:0 .125rem .25rem rgba(0,0,0,.075);
        overflow:hidden;
        margin-bottom:1.5rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-section h2 {
        background:#f8f9fa;
        border-bottom:1px solid #dee2e6;
        padding:.8rem 1.25rem;
        margin:0;
        font-size:.95rem;
        font-weight:700;
        color:#212529
    }
    :where(body:not(.imovel-preview-body)) .imovel-section h2::before {
        content:"\f431";
        font-family:bootstrap-icons;
        color:#0d6efd;
        margin-right:.5rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-section-heading {
        background:#f8f9fa;
        border-bottom:1px solid #dee2e6;
        align-items:center;
        padding-right:1rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-section-heading h2 {
        border:0
    }
    :where(body:not(.imovel-preview-body)) .imovel-section dl {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:1.1rem 1.4rem;
        padding:1.3rem 1.5rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-field {
        display:block;
        padding:0;
        border:0
    }
    :where(body:not(.imovel-preview-body)) .imovel-field dt {
        font-size:.8rem;
        color:#6c757d;
        text-transform:uppercase;
        letter-spacing:.5px;
        line-height:1.4;
        margin-bottom:.3rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-field dd {
        font-size:.95rem;
        color:#212529
    }
    :where(body:not(.imovel-preview-body)) .imovel-field:has(dd br) {
        grid-column:1/-1
    }
    :where(body:not(.imovel-preview-body)) .imovel-main>section:nth-of-type(2) .imovel-field:first-child {
        grid-column:1/-1
    }
    :where(body:not(.imovel-preview-body)) .imovel-main>section:nth-of-type(3) dl {
        grid-template-columns:repeat(3,minmax(0,1fr))
    }
    :where(body:not(.imovel-preview-body)) .imovel-section p {
        padding:.6rem 1.5rem;
        margin:0
    }
    :where(body:not(.imovel-preview-body)) .imovel-fiscal {
        margin:.3rem 1.5rem 1.3rem!important;
        padding:.8rem!important;
        border-radius:5px
    }
    :where(body:not(.imovel-preview-body)) .imovel-photo-grid {
        padding:1rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-photo-grid figure:first-child img {
        height:240px
    }
    :where(body:not(.imovel-preview-body)) .imovel-no-photo {
        margin:1rem;
        border-radius:5px
    }
    :where(body:not(.imovel-preview-body)) .imovel-map-body {
        padding:1rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-map-body p {
        padding:.4rem 0
    }
    :where(body:not(.imovel-preview-body)) .imovel-map {
        width:100%;
        height:240px;
        z-index:0
    }
    :where(body:not(.imovel-preview-body)) .imovel-table {
        margin:0
    }
    :where(body:not(.imovel-preview-body)) .imovel-table th {
        background:#f8f9fa;
        font-size:.8rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-table td {
        font-size:.9rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-section>.table-responsive {
        padding:.5rem
    }
}
@media screen and (max-width:991px) {
    :where(body:not(.imovel-preview-body)) .imovel-screen-grid {
        grid-template-columns:1fr
    }
    :where(body:not(.imovel-preview-body)) .imovel-sidebar {
        grid-row:2
    }
    :where(body:not(.imovel-preview-body)) .imovel-section dl {
        padding:1rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-map {
        height:280px
    }
}
@media screen and (max-width:575px) {
    :where(body:not(.imovel-preview-body)) .imovel-main>section:nth-of-type(3) dl {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    :where(body:not(.imovel-preview-body)) .imovel-section dl {
        grid-template-columns:1fr
    }
    :where(body:not(.imovel-preview-body)) .imovel-title {
        font-size:1.3rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-section h2 {
        padding:.8rem 1rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-section-heading {
        flex-wrap:wrap
    }
    :where(body:not(.imovel-preview-body)) .imovel-section-heading button {
        margin:.4rem 1rem
    }
    :where(body:not(.imovel-preview-body)) .imovel-photo-grid figure:first-child img {
        height:210px
    }
}

/* Componentes partilhados das fichas e tabelas */
.fbb-break-inside-auto-overflow-wrap-anywhere { break-inside: auto; overflow-wrap: anywhere; }
.fbb-width-35 { width: 35%; }
.fbb-display-none { display: none; }
.fbb-max-height-400px-overflow-y-auto { max-height: 400px; overflow-y: auto; }
.fbb-min-height-280px-max-height-350px { min-height: 280px; max-height: 350px; }
.fbb-max-height-320px-max-width-100-object-fit-contain { max-height: 320px; max-width: 100%; object-fit: contain; }
.fbb-width-15 { width: 15%; }
.fbb-width-50px { width: 50px; }
.fbb-width-12 { width:12%; }
.fbb-width-22 { width:22%; }
.fbb-width-18 { width:18%; }
.fbb-width-36 { width:36%; }
.fbb-width-40px { width: 40px; }
.fbb-width-70px { width: 70px; }
.fbb-width-90px { width: 90px; }
.fbb-width-50px-height-50px-border-1px-solid-dee2e6 { width: 50px; height: 50px; border: 1px solid #dee2e6; }
.fbb-parent-search-dropdown { z-index: 1050; max-height: 250px; overflow-y: auto; width: calc(100% - 15px); }
.fbb-font-size-0-72rem { font-size: 0.72rem; }
.fbb-font-size-0-68rem { font-size: 0.68rem; }
.fbb-height-140px-width-100 { height: 140px; width: 100%; }
.fbb-font-size-0-70rem { font-size: 0.70rem; }
.fbb-width-125px { width: 125px; }
.fbb-width-46px-height-46px-border-1px-solid-dee2e6 { width: 46px; height: 46px; border: 1px solid #dee2e6; }
.fbb-font-size-0-68rem-width-fit-content { font-size: 0.68rem; width: fit-content; }
.fbb-height-min-55vh-440px-min-height-280px-width-100-z-index-0 { height:min(55vh,440px);min-height:280px;width:100%;z-index:0 }
.fbb-max-height-250px-overflow-y-auto { max-height: 250px; overflow-y: auto; }
.fbb-width-25 { width: 25%; }
.fbb-width-30 { width: 30%; }
.fbb-width-10 { width: 10%; }
.fbb-width-32 { width: 32%; }
.fbb-width-33 { width: 33%; }
.fbb-font-size-0-85rem { font-size: 0.85rem; }
.fbb-min-width-140px { min-width: 140px; }
.fbb-height-140px-width-130px-margin-0-auto { height: 140px; width: 130px; margin: 0 auto; }
.fbb-width-100px { width: 100px; }
.fbb-max-width-260px { max-width: 260px; }
.fbb-width-80px { width: 80px; }
.fbb-width-130px { width: 130px; }
.fbb-width-160px { width: 160px; }
.fbb-width-110px { width: 110px; }
.fbb-position-relative-z-index-10500 { position: relative; z-index: 10500; }
.fbb-max-height-90px-object-fit-contain { max-height: 90px; object-fit: contain; }
.fbb-font-size-0-75rem { font-size: 0.75rem; }
.fbb-width-22-47 { width: 22%; }
.fbb-width-38 { width: 38%; }
.fbb-width-120px { width: 120px; }
.fbb-cursor-pointer { cursor: pointer; }
.fbb-width-200px { width: 200px; }
.fbb-width-180px { width: 180px; }
.fbb-z-index-1050-max-height-220px-overflow-y-auto-width-220px { z-index: 1050; max-height: 220px; overflow-y: auto; width: 220px; }
.fbb-width-35px { width: 35px; }
.fbb-width-75px { width: 75px; }
.fbb-width-60px { width: 60px; }
.fbb-width-85px { width: 85px; }

/* Edição de bens móveis */

    /* Estilização para aplicar a cor a todos os nomes dos campos (labels) */
    .fbb-mobile-edit .form-label,
    .fbb-mobile-edit .form-check-label,
    .fbb-mobile-edit label.fw-bold,
    .fbb-mobile-edit label {
        color: #0aa2c0 !important;
        font-weight: 600 !important;
    }
    .fbb-mobile-edit .form-label .text-danger,
    .fbb-mobile-edit label .text-danger {
        color: #dc3545 !important;
    }


/* FBB_PAGED_CSS_START */
:where(.imovel-preview-body) { page: fbb-ficha; }
@page fbb-ficha {
    size: A4; margin: 12mm 14mm 16mm;
    @bottom-left { content: string(inventory); font-size: 8pt; color: #59656e; }
    @bottom-right { content: counter(page) " / " counter(pages); font-size: 8pt; color: #59656e; }
}
:where(.imovel-preview-body) * { box-sizing: border-box; }
:where(.imovel-preview-body) .imovel-print-item { break-before:page; color:#212529; font-family:var(--fbb-print-font, var(--bs-body-font-family, system-ui, sans-serif)); font-size:9pt; line-height:1.35; }
:where(.imovel-preview-body) .imovel-print-item:first-child { break-before:auto; }
:where(.imovel-preview-body) .imovel-document-title { display:flex; align-items:center; justify-content:space-between; gap:5mm; padding-bottom:4mm; border-bottom:1px solid #cdd5dc; margin-bottom:4mm; break-inside:avoid; }
:where(.imovel-preview-body) .imovel-document-title strong { font-size:14pt; }
:where(.imovel-preview-body) .imovel-document-title small { font-size:8pt; color:#59656e; }
:where(.imovel-preview-body) .imovel-document-title img { height:9mm; width:auto; max-width:65mm; object-fit:contain; }
:where(.imovel-preview-body) .imovel-title { font-size:11pt; color:#123674; margin:0 0 3mm; string-set:inventory attr(data-inventory); }
:where(.imovel-preview-body) .imovel-relations { margin-bottom:3mm; font-size:8pt; }
:where(.imovel-preview-body) .imovel-top { display:table; width:100%; table-layout:fixed; margin-bottom:4mm; }
:where(.imovel-preview-body) .imovel-top > .imovel-section { display:table-cell; width:66%; vertical-align:top; padding-right:4mm; }
:where(.imovel-preview-body) .imovel-print-sidebar { display:table-cell; width:34%; vertical-align:top; }
:where(.imovel-preview-body) .imovel-section { margin:0 0 4mm; padding:0; border:0; background:white; }
:where(.imovel-preview-body) .imovel-section h2 { font-size:10pt!important; color:#212529!important; font-weight:700; margin:0 0 2mm; padding-bottom:1mm; border-bottom:1px solid #cdd5dc; break-after:avoid; }
:where(.imovel-preview-body) .imovel-section-heading { display:block; }
:where(.imovel-preview-body) .imovel-section dl { display:table; table-layout:fixed; width:100%; border-collapse:collapse; margin:0; }
:where(.imovel-preview-body) .imovel-field { display:table-row; }
:where(.imovel-preview-body) .imovel-field dt, :where(.imovel-preview-body) .imovel-field dd { display:table-cell; border:1px solid #d9e0e4; padding:1.3mm; margin:0; vertical-align:top; overflow-wrap:anywhere; }
:where(.imovel-preview-body) .imovel-field dt { width:34%; font-weight:700; }
:where(.imovel-preview-body) .imovel-field dd { width:66%; }
:where(.imovel-preview-body) .imovel-section p { margin:2mm 0; overflow-wrap:anywhere; orphans:3; widows:3; }
:where(.imovel-preview-body) .imovel-fiscal { padding:2mm; background:#f8f9fa; }
:where(.imovel-preview-body) .imovel-photo-grid { display:block; }
:where(.imovel-preview-body) .imovel-photo-grid figure { margin:0 0 2mm; break-inside:avoid; }
:where(.imovel-preview-body) .imovel-photos img { max-width:100%; height:auto; max-height:55mm; object-fit:contain; }
:where(.imovel-preview-body) .imovel-no-photo { min-height:35mm; padding:12mm 2mm; border:1px solid #d9e0e4; text-align:center; color:#59656e; }
:where(.imovel-preview-body) .imovel-print-gps { break-inside:avoid; }
:where(.imovel-preview-body) .imovel-print-map { height:45mm; width:100%; position:relative; overflow:hidden; background:#f4f6f8; }
:where(.imovel-preview-body) .imovel-print-map .leaflet-control-container { font-size:6pt; }
:where(.imovel-preview-body) .imovel-print-map .leaflet-control-attribution { margin:0!important; }
:where(.imovel-preview-body) .gps-coordinates { font-size:7pt; }
:where(.imovel-preview-body) .imovel-table { width:100%; border-collapse:collapse; table-layout:fixed; }
:where(.imovel-preview-body) .imovel-table td, :where(.imovel-preview-body) .imovel-table th { border:1px solid #d9e0e4; text-align:left; padding:1.3mm; vertical-align:top; overflow-wrap:anywhere; }
:where(.imovel-preview-body) .imovel-table th { font-weight:700; background:#f8f9fa; }
:where(.imovel-preview-body) .imovel-table thead { display:table-header-group; }
:where(.imovel-preview-body) .imovel-table tr { break-inside:avoid; }
:where(.imovel-preview-body) .table-responsive { overflow:visible; }
:where(.imovel-preview-body) .imovel-print-item a { color:inherit; text-decoration:none; }
:where(.imovel-preview-body) .imovel-print-item small { font-size:8pt; }
:where(.imovel-preview-body) .imovel-print-item .no-print, :where(.imovel-preview-body) .imovel-print-item .modal { display:none!important; }
:where(.imovel-preview-body) .pagedjs_margin-content[data-footer-text]::after { content:attr(data-footer-text)!important; }
:where(.imovel-preview-body) .imovel-area-table { font-size:8pt; }
:where(.imovel-preview-body) .imovel-area-table th, :where(.imovel-preview-body) .imovel-area-table td { text-align:center; }
:where(.imovel-preview-body) .mobile-print-information { border:1px solid #d9e0e4; padding:2mm; margin-bottom:2mm; overflow-wrap:anywhere; }

:where(.imovel-preview-body) .mobile-print-information > strong { display:block; break-after:avoid; }
:where(.imovel-preview-body) .mobile-print-locations th:nth-child(1), :where(.imovel-preview-body) .mobile-print-locations th:nth-child(2) { width:12%; }
:where(.imovel-preview-body) .mobile-print-locations th:nth-child(3) { width:22%; }
:where(.imovel-preview-body) .mobile-print-locations th:nth-child(4) { width:18%; }
:where(.imovel-preview-body) .mobile-print-locations th:nth-child(5) { width:36%; }
/* FBB_PAGED_CSS_END */

/* Pré-visualização A4 */
.imovel-preview-body { margin:0; background:#e9ecef; }
.print-toolbar { padding:1rem; background:white; position:sticky; top:0; z-index:2000; box-shadow:0 2px 5px #0002; }
.print-toolbar p { margin:.6rem 0 .2rem; }
#print-source { position:absolute; left:-10000px; top:0; width:182mm; }
#print-pages { padding:8mm 0; overflow:auto; }
.pagedjs_pages { width:max-content; margin:auto; }
.pagedjs_page { background:white; margin:0 auto 8mm; box-shadow:0 2px 8px #0003; }
@media print {
    @page fbb-preview { size:A4; margin:0; }
    .imovel-preview-body { page:fbb-preview; }
    html,body { margin:0!important; padding:0!important; background:white!important; }
    .print-toolbar,#print-source { display:none!important; }
    #print-pages { padding:0; overflow:visible; }
    .pagedjs_pages { margin:0; }
    .pagedjs_page { margin:0!important; box-shadow:none; break-after:page; }
    .pagedjs_page:last-child { break-after:auto; }
}


/* files/preview.php */
.fbb-file-preview *{box-sizing:border-box}body.fbb-file-preview{margin:0;font-family:system-ui,sans-serif;background:#e9ecef;color:#212529}.fbb-file-preview header{position:sticky;top:0;display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;padding:1rem;background:#212529;color:white}.fbb-file-preview h1{flex:1 1 14rem;font-size:1rem;margin:0;overflow-wrap:anywhere}.fbb-file-preview a{display:inline-block;padding:.65rem .9rem;border-radius:.4rem;text-decoration:none;background:white;color:#212529}.fbb-file-preview .download{background:#0d6efd;color:white}.fbb-file-preview nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1rem;margin:1rem}.fbb-file-preview main{margin:1rem auto;padding:0 1rem;max-width:100rem;text-align:center}.fbb-file-preview img{max-width:100%;height:auto;box-shadow:0 2px 8px #0003}.fbb-file-preview .message{padding:2rem;background:white;border-radius:.5rem;max-width:40rem;margin:2rem auto}

/* errors/access_denied.php */
body.fbb-access-denied{margin:0;background:#f8f9fa;color:#212529;font-family:system-ui,sans-serif}.fbb-access-denied main{max-width:36rem;margin:10vh auto;padding:2rem}.fbb-access-denied h1{color:#b02a37;font-size:1.6rem}.fbb-access-denied p{line-height:1.6}.fbb-access-denied a{display:inline-block;margin-top:1rem;padding:.8rem 1rem;background:#0d6efd;color:white;border-radius:.4rem;text-decoration:none}

/* reports/management.php */
.fbb-management{page:fbb-management}
.report-nav{display:flex;gap:.4rem;flex-wrap:wrap}.report-nav a{padding:.5rem .7rem;border:1px solid #d7dce0;border-radius:.35rem;text-decoration:none}.report-nav a.active{background:#24323c;color:white}.report-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.7rem}.report-metric{padding:1rem;border:1px solid #d7dce0;border-radius:.5rem;background:white}.report-metric strong{display:block;font-size:1.35rem}.report-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:1rem}.report-chart{padding:1rem;border:1px solid #ddd;background:white;border-radius:.5rem}.report-bar-row{display:grid;grid-template-columns:minmax(100px,40%) 1fr minmax(55px,auto);gap:.5rem;align-items:center;margin:.55rem 0;font-size:.85rem}.report-bar-row{text-decoration:none;color:inherit;border-radius:4px;padding:3px}.report-bar-row:hover,.report-bar-row:focus-visible{background:#edf2f5;outline:2px solid #34748c}.report-bar-track{background:#eef1f3;border-radius:3px;overflow:hidden}.report-bar{height:18px;background:#34748c}.report-table{width:100%;border-collapse:collapse;font-size:.85rem}.report-table th,.report-table td{padding:.5rem;border-bottom:1px solid #ddd;vertical-align:top}.report-table th{background:#e9eef1}.report-meta{font-size:.85rem;color:#45535d}.report-notes{font-size:.85rem}.report-table-wrap{overflow:auto}.report-chart svg{max-width:100%;height:auto}.report-empty{padding:2rem;text-align:center;background:#f4f6f7}
@media print{@page fbb-management{size:A4 landscape;margin:12mm}.fbb-management{font:10px Arial;color:#111}.no-print,nav,footer{display:none!important}.report-table-wrap{overflow:visible}.report-table{font-size:9px;table-layout:fixed}.report-table td,.report-table th{overflow-wrap:anywhere;padding:4px}.report-table thead{display:table-header-group}.report-table tr{break-inside:avoid}.report-chart{break-inside:avoid}.report-charts{display:block}.report-chart{margin:10px 0}.report-metrics{grid-template-columns:repeat(4,1fr)}.fbb-management a{color:inherit;text-decoration:none}.report-metric strong{font-size:13px}}

.fbb-width-50px-height-50px-object-fit-cover { width: 50px; height: 50px; object-fit: cover; }
.fbb-aspect-ratio-1-object-fit-contain-width-100 { aspect-ratio: 1; object-fit: contain; width: 100%; }
.fbb-height-100px-object-fit-contain-cursor-pointer { height: 100px; object-fit: contain; cursor: pointer; }
.fbb-width-46px-height-46px-object-fit-cover { width: 46px; height: 46px; object-fit: cover; }
.fbb-width-auto { width: auto; }
.fbb-max-width-250px { max-width: 250px; }
.fbb-import-photo { max-height: 130px; max-width: 120px; object-fit: contain; transition: transform 0.3s ease; }

/* Valores variáveis são fornecidos pelos dados; apresentação definida no tema. */
.fbb-hierarchy-indent { padding-inline-start:calc(var(--fbb-level, 0) * 1.25rem); }
.fbb-profile-column { width:calc(40% / var(--fbb-profile-count, 1)); }
.report-bar { width:var(--fbb-bar-width); background:var(--fbb-bar-color, #34748c); }
[data-fbb-row="fracao"] { background-color:#fcfdfe!important; border-left:4px solid #0d6efd; }
[data-fbb-row="principal"] { background-color:#f8fafc; }
.fbb-fracao-card { border-left:4px solid #0d6efd; margin-left:12px; }
.fbb-placeholder-46 { width:46px; height:46px; border:1px solid #dee2e6; }
.fbb-placeholder-50 { width:50px; height:50px; border:1px solid #dee2e6; }

/* Cores das TAGs BUPi */
.fbb-tag-verde { background-color:#198754; }
.fbb-tag-laranja { background-color:#b45309; }
.fbb-tag-vermelho { background-color:#dc3545; }
.fbb-tag-none { background-color:#6c757d; }
/* FBB_MANAGED_THEME_END */
