:root {
    --nx-ink: #172033;
    --nx-muted: #667085;
    --nx-border: #e6eaf0;
    --nx-surface: #ffffff;
    --nx-surface-glass: rgba(255, 255, 255, 0.86);
    --nx-soft: #f6f8fb;
    --nx-app: #eef2f6;
    --nx-primary: #0f6b6e;
    --nx-primary-2: #134e5e;
    --nx-accent: #d9912b;
    --nx-danger: #b42318;
    --nx-success: #087443;
    --nx-radius: 8px;
    --nx-shadow: 0 10px 26px rgba(23, 32, 51, 0.08);
    --nx-shadow-soft: 0 6px 18px rgba(23, 32, 51, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at 18% 14%, rgba(217, 145, 43, 0.16), transparent 28vw),
        radial-gradient(circle at 92% 8%, rgba(15, 107, 110, 0.18), transparent 26vw),
        linear-gradient(180deg, rgba(15, 107, 110, 0.12), rgba(238, 242, 246, 0) 360px),
        var(--nx-app) !important;
    color: var(--nx-ink) !important;
    font-size: 0.95rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body::before {
    background:
        linear-gradient(120deg, rgba(238, 242, 246, 0.94), rgba(238, 242, 246, 0.78)),
        url("/static/img/logo.png") right 3vw top 86px / min(48vw, 620px) auto no-repeat;
    content: "";
    inset: 0;
    opacity: 0.52;
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

body::after {
    background-image:
        linear-gradient(rgba(15, 107, 110, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 107, 110, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.navbar {
    background: transparent !important;
    border-bottom: 0;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
    position: sticky;
    top: 10px;
    z-index: 1030;
    padding: 0.35rem 0;
}

.navbar .container-fluid,
.nexora-header .container-fluid,
main.container-fluid {
    width: min(100%, 1620px);
    max-width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
}

.navbar-collapse {
    min-width: 0;
}

.navbar > .container-fluid {
    background: var(--nx-surface-glass);
    border: 1px solid rgba(230, 234, 240, 0.96);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(23, 32, 51, 0.12);
    padding-bottom: 0.42rem;
    padding-top: 0.42rem;
}

.navbar-brand {
    color: var(--nx-ink) !important;
    min-width: max-content;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(15, 107, 110, 0.18);
}

.brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title strong {
    font-size: 0.98rem;
    letter-spacing: 0;
}

.brand-title span {
    color: var(--nx-muted);
    font-size: 0.76rem;
}

.navbar .nav-link {
    color: #334155 !important;
    border-radius: 8px;
    padding: 0.55rem 0.72rem !important;
    font-weight: 650 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar .nav-link i {
    color: #526174;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.show {
    color: var(--nx-primary) !important;
    background: #e9f4f4;
}

.navbar .nav-link:hover i,
.navbar .nav-link:focus i,
.navbar .nav-link.show i {
    color: var(--nx-primary);
}

.navbar-toggler {
    border: 1px solid var(--nx-border);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 107, 110, 0.16);
}

.navbar-toggler-icon {
    filter: invert(1);
    opacity: 0.75;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--nx-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.14) !important;
    overflow: hidden;
}

.dropdown-item {
    border-radius: 7px !important;
    font-weight: 600;
    color: #334155;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #e9f4f4 !important;
    color: var(--nx-primary);
}

.nexora-header {
    background: transparent !important;
    color: var(--nx-ink) !important;
    padding: 18px 0 8px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.nexora-header-inner {
    background:
        linear-gradient(135deg, rgba(19, 78, 94, 0.96), rgba(15, 107, 110, 0.88)),
        var(--nx-primary-2);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(23, 32, 51, 0.16);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    overflow: hidden;
    padding: 20px 22px;
    position: relative;
}

.nexora-header-inner::after {
    background: url("/static/img/logo1.png") right 24px center / 160px auto no-repeat;
    content: "";
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    position: absolute;
}

.nexora-brand-wrap {
    gap: 14px !important;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.nexora-logo {
    height: 58px !important;
    width: 58px !important;
    border-radius: 8px;
    object-fit: cover !important;
    filter: none !important;
}

.nexora-title {
    color: #ffffff;
    font-size: 1.35rem !important;
    letter-spacing: 0 !important;
}

.nexora-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem !important;
    max-width: 820px;
}

.nexora-action-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.nexora-action-dock a {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 750;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.38rem 0.78rem;
    text-decoration: none;
}

.nexora-action-dock a:hover,
.nexora-action-dock a:focus {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.nexora-header-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
    min-width: 220px;
    position: relative;
    z-index: 1;
}

.nexora-header-meta span {
    align-items: center;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.35rem;
    max-width: 100%;
    min-height: 32px;
    padding: 0.35rem 0.72rem;
}

main.container-fluid {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(230, 234, 240, 0.72);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
    margin-top: 14px !important;
    overflow-x: clip;
    padding-bottom: 1.1rem;
    padding-top: 1.1rem;
}

main.container-fluid > .container,
main.container-fluid > .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.card,
.dashboard-panel,
.modal-content,
.list-group-item,
.table-responsive,
.empty-box,
.mini-status-box,
.ia-stat-box,
.ia-card,
.hero-side-box,
.ops-alert-card,
.quick-link {
    border-radius: var(--nx-radius) !important;
}

.card,
.dashboard-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(230, 234, 240, 0.92) !important;
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.07) !important;
}

.card-header {
    background: rgba(248, 250, 252, 0.88);
    border-bottom: 1px solid var(--nx-border);
    font-weight: 750;
}

.dashboard-hero {
    background:
        linear-gradient(135deg, rgba(19, 78, 94, 0.96), rgba(15, 107, 110, 0.9)),
        url("/static/img/logo.png") right 4% center / 360px auto no-repeat,
        var(--nx-primary-2) !important;
    border-radius: var(--nx-radius) !important;
    box-shadow: var(--nx-shadow) !important;
    overflow: hidden;
    position: relative;
}

.dashboard-hero .card-body {
    position: relative;
    z-index: 1;
}

.dashboard-visual-layer {
    background:
        radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.2), transparent 18%),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.dashboard-command-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.dashboard-command-bar a {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 750;
    gap: 0.42rem;
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    text-decoration: none;
}

.dashboard-command-bar a:hover,
.dashboard-command-bar a:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.dashboard-home {
    background:
        radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.18), transparent 18%),
        linear-gradient(140deg, rgba(19, 78, 94, 0.97), rgba(10, 86, 82, 0.9)),
        var(--nx-primary-2) !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 56px rgba(23, 32, 51, 0.18) !important;
    min-height: 920px;
    overflow: hidden;
    position: relative;
}

.dashboard-home-bg {
    background:
        radial-gradient(circle at 50% 48%, rgba(68, 184, 111, 0.22), transparent 16%),
        radial-gradient(circle at 18% 22%, rgba(217, 145, 43, 0.26), transparent 18%),
        radial-gradient(circle at 85% 24%, rgba(66, 165, 179, 0.22), transparent 18%);
    inset: 0;
    opacity: 0.22;
    pointer-events: none;
    position: absolute;
}

.dashboard-home-inner {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 920px;
    padding: 2rem;
    place-items: center;
    position: relative;
    z-index: 1;
}

.dashboard-home-center {
    color: #ffffff;
    max-width: 680px;
    text-align: center;
    z-index: 3;
}

.dashboard-home-center img {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
    height: 112px;
    margin-bottom: 1rem;
    object-fit: cover;
    padding: 0.35rem;
    width: 112px;
}

.dashboard-home-center .hero-badge {
    display: inline-flex;
    margin-bottom: 0.7rem;
}

.dashboard-home-center h2 {
    font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 0.75rem;
}

.dashboard-home-center p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    margin: 0 auto;
    max-width: 620px;
}

.nexora-tree-menu {
    display: block;
    height: 800px;
    margin-top: 0;
    max-width: 1220px;
    position: relative;
    width: min(100%, 1220px);
}

.nexora-tree-menu::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    content: "";
    height: 480px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    z-index: 1;
}

.tree-lines {
    height: 100%;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.tree-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
    opacity: 0.46;
}

.tree-line-control {
    stroke: #d9912b;
}

.tree-line-larga {
    stroke: #42a5b3;
}

.tree-line-vacacional {
    stroke: #19a36b;
}

.tree-line-gestion {
    stroke: #8069f2;
}

.tree-hub {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.22),
        0 0 0 18px rgba(255, 255, 255, 0.05);
    color: var(--nx-primary-2);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    left: 50%;
    min-height: 450px;
    padding: 0.35rem;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    z-index: 6;
}

.tree-hub img {
    height: 445px;
    object-fit: contain;
    width: 445px;
}

.tree-branch {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13);
    min-height: 0;
    padding: 0.72rem;
    position: absolute;
    width: 280px;
    z-index: 9;
}

.tree-node-control {
    left: 2%;
    top: 92px;
}

.tree-node-gestion {
    right: 2%;
    top: 70px;
}

.tree-node-vacacional {
    bottom: 70px;
    left: 3%;
}

.tree-node-larga {
    right: 2%;
    top: 400px;
}

.tree-branch::before {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 12px;
    position: absolute;
    top: 50%;
    width: 12px;
}

.tree-node-control::before,
.tree-node-vacacional::before {
    right: -5px;
}

.tree-node-gestion::before,
.tree-node-larga::before {
    left: -5px;
}

.tree-branch-vacacional {
    color: #0d7a4f;
    background:
        linear-gradient(145deg, rgba(238, 255, 247, 0.98), rgba(184, 243, 211, 0.94));
}

.tree-branch-alquileres {
    color: #075f86;
    background: linear-gradient(145deg, rgba(233, 248, 252, 0.96), rgba(205, 237, 246, 0.92));
}

.tree-branch-control {
    color: #9a5707;
    background:
        linear-gradient(145deg, rgba(255, 249, 232, 0.98), rgba(250, 218, 151, 0.94));
}

.tree-branch-gestion {
    color: #4c39a4;
    background:
        linear-gradient(145deg, rgba(245, 242, 255, 0.98), rgba(215, 207, 255, 0.94));
}

.tree-branch-title {
    align-items: center;
    color: currentColor;
    display: flex;
    font-size: 0.9rem;
    font-weight: 850;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.tree-branch a {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    color: #243447;
    display: flex;
    font-weight: 750;
    justify-content: space-between;
    font-size: 0.86rem;
    min-height: 31px;
    padding: 0.32rem 0.56rem;
    text-decoration: none;
}

.tree-branch a + a {
    margin-top: 0.45rem;
}

.tree-branch a::after {
    content: ">";
    color: var(--nx-primary);
    font-weight: 900;
}

.tree-branch a:hover,
.tree-branch a:focus {
    background: #ffffff;
    color: var(--nx-primary);
    transform: translateY(-1px);
}

.dashboard-home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.dashboard-home-stats div {
    align-items: center;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    gap: 0.7rem;
    min-height: 42px;
    padding: 0.45rem 0.85rem;
}

.dashboard-home-stats span {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.dashboard-home-stats strong {
    font-size: 1.2rem;
}

.hero-title {
    letter-spacing: 0 !important;
}

.btn {
    border-radius: 8px !important;
    font-weight: 700;
}

.btn-primary {
    background: var(--nx-primary) !important;
    border-color: var(--nx-primary) !important;
}

.btn-primary:hover {
    background: #0b585a !important;
    border-color: #0b585a !important;
}

.btn-outline-primary {
    color: var(--nx-primary) !important;
    border-color: rgba(15, 107, 110, 0.38) !important;
}

.btn-outline-primary:hover {
    color: #ffffff !important;
    background: var(--nx-primary) !important;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 8px !important;
    border-color: #d9e0ea;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 107, 110, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(15, 107, 110, 0.12);
}

.table {
    --bs-table-striped-bg: #f8fafc;
    margin-bottom: 0;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th {
    color: #475467;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--nx-border);
}

.table td {
    vertical-align: middle;
}

.badge {
    border-radius: 999px;
    font-weight: 750;
    padding: 0.42rem 0.62rem;
}

.alert {
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    box-shadow: var(--nx-shadow-soft) !important;
}

.quick-link {
    min-height: 76px !important;
    border: 1px solid var(--nx-border);
    box-shadow: none !important;
}

.quick-link:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--nx-shadow-soft) !important;
}

.kpi-card {
    border-radius: 8px !important;
    box-shadow: var(--nx-shadow-soft) !important;
}

.kpi-card-primary { background: linear-gradient(135deg, #134e5e, #0f6b6e) !important; }
.kpi-card-success { background: linear-gradient(135deg, #087443, #19a36b) !important; }
.kpi-card-warning { background: linear-gradient(135deg, #d9912b, #f4c95d) !important; color: #1f2937 !important; }
.kpi-card-info { background: linear-gradient(135deg, #246b8f, #42a5b3) !important; }

.reservation-avatar,
.kpi-icon {
    border-radius: 8px !important;
}

.reservation-item {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

.reservation-item:hover {
    background: #f8fafc !important;
}

footer {
    background: transparent !important;
    border-top: 1px solid var(--nx-border) !important;
}

.property-page {
    min-width: 0;
}

.property-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    box-shadow: var(--nx-shadow-soft);
    padding: 1.2rem;
}

.property-hero h1 {
    margin: 0.25rem 0 0.35rem;
    font-size: clamp(1.55rem, 1.2rem + 0.8vw, 2.1rem);
    letter-spacing: 0;
}

.property-hero p {
    margin: 0;
    color: var(--nx-muted);
}

.property-eyebrow {
    color: var(--nx-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 750;
    text-transform: uppercase;
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #98a2b3;
    display: inline-block;
}

.status-dot.status-ok {
    background: var(--nx-success);
}

.property-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.property-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.property-kpi {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    box-shadow: var(--nx-shadow-soft);
    padding: 0.95rem;
    min-width: 0;
}

.property-kpi span {
    color: var(--nx-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.property-kpi strong {
    color: var(--nx-ink);
    display: block;
    font-size: 1.35rem;
    line-height: 1.15;
    margin-top: 0.35rem;
}

.property-contract h2 {
    font-size: 1.15rem;
    margin: 0;
}

.property-section-title {
    color: var(--nx-muted);
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.property-list-link,
.property-task {
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.72rem;
}

.property-list-link {
    color: var(--nx-ink);
    text-decoration: none;
}

.property-list-link + .property-list-link,
.property-task + .property-task {
    margin-top: 0.55rem;
}

.property-list-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 107, 110, 0.28);
}

.property-list-link span,
.property-task div {
    min-width: 0;
}

.property-list-link small,
.property-task p {
    color: var(--nx-muted);
    display: block;
    font-size: 0.82rem;
    margin: 0.12rem 0 0;
}

.property-list-link strong,
.property-task .badge {
    flex: 0 0 auto;
    white-space: nowrap;
}

.property-data-list {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.property-data-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.55rem;
}

.property-data-list dt {
    color: var(--nx-muted);
    font-weight: 750;
}

.property-data-list dd {
    margin: 0;
    text-align: right;
}

.empty-state {
    align-items: center;
    color: var(--nx-muted);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
    min-height: 180px;
    padding: 1.5rem;
    text-align: center;
}

.empty-state.compact {
    min-height: 120px;
    padding: 1rem;
}

.empty-state i {
    color: #98a2b3;
    font-size: 1.8rem;
}

@media (min-width: 1200px) {
    .navbar .container-fluid {
        gap: 0.75rem;
    }

    .navbar-collapse {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .navbar-nav {
        gap: 0.15rem;
        flex-wrap: wrap;
        min-width: 0;
    }

    .navbar .nav-link {
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {
    .property-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nexora-tree-menu {
        display: grid;
        gap: 0.85rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
    }

    .nexora-tree-menu::before,
    .nexora-tree-menu::after,
    .tree-lines,
    .tree-branch::before {
        display: none;
    }

    .tree-hub {
        grid-column: 1 / -1;
        left: auto;
        min-height: 220px;
        position: relative;
        top: auto;
        transform: none;
        width: min(100%, 360px);
        justify-self: center;
    }

    .tree-hub img {
        height: 170px;
        width: 240px;
    }

    .tree-branch {
        min-height: 0;
        position: relative;
        inset: auto;
        width: auto;
    }
}

@media (max-width: 1199px) {
    .navbar-collapse {
        margin-top: 0.85rem;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--nx-border);
        border-radius: 8px;
        box-shadow: var(--nx-shadow-soft);
        max-height: calc(100vh - 88px);
        overflow-y: auto;
    }

    .navbar .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-menu {
        box-shadow: none !important;
        border: 1px solid #edf2f7 !important;
        margin-top: 0.35rem !important;
    }

    .nexora-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nexora-header-meta {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.92rem;
    }

    main.container-fluid {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .nexora-header {
        padding-top: 14px !important;
    }

    .nexora-header-inner {
        padding: 14px;
    }

    .nexora-header-meta {
        gap: 0.35rem;
    }

    .nexora-header-meta span {
        font-size: 0.76rem;
        min-height: 30px;
    }

    .nexora-logo {
        height: 46px !important;
        width: 46px !important;
    }

    .nexora-title {
        font-size: 1.08rem !important;
    }

    .nexora-subtitle {
        font-size: 0.8rem !important;
    }

    .dashboard-hero .card-body {
        padding: 1.1rem !important;
    }

    .dashboard-home {
        min-height: auto;
    }

    .dashboard-home-inner {
        min-height: auto;
        padding: 1.2rem;
    }

    .dashboard-home-center img {
        height: 64px;
        width: 64px;
    }

    .nexora-tree-menu {
        grid-template-columns: 1fr;
    }

    .tree-hub img {
        height: 150px;
        width: 210px;
    }

    .tree-branch {
        min-height: 0;
    }

    .hero-title {
        font-size: 1.45rem !important;
    }

    .table-responsive {
        border: 1px solid var(--nx-border);
    }

    .table {
        min-width: 760px;
    }

    .btn {
        min-height: 38px;
    }

    .property-hero {
        flex-direction: column;
    }

    .property-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .property-actions .btn {
        flex: 1 1 148px;
    }

    .property-kpis {
        grid-template-columns: 1fr;
    }

    .property-data-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .property-data-list dd {
        text-align: left;
    }

    footer {
        padding-bottom: 1.5rem !important;
    }
}

@media print {
    .navbar,
    .nexora-header,
    footer,
    .no-print {
        display: none !important;
    }
}
