/* =========================================================
   JalImmo — Application UI
   JALIMMO00010
========================================================= */

:root {
    --ji-sidebar: #162b49;
    --ji-sidebar-dark: #10213a;
    --ji-primary: #1976d2;
    --ji-primary-hover: #1265b7;
    --ji-accent: #35c6df;

    --ji-bg: #f4f7fb;
    --ji-card: #ffffff;
    --ji-border: #e2e8f0;

    --ji-text: #102342;
    --ji-muted: #64748b;

    --ji-success: #16a36a;
    --ji-warning: #d99716;
    --ji-danger: #dc3545;

    --ji-sidebar-width: 280px;
    --ji-header-height: 76px;

    --ji-radius: 12px;
    --ji-shadow: 0 4px 18px rgba(15, 35, 65, .06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Figtree", Arial, sans-serif;
    background: var(--ji-bg);
    color: var(--ji-text);
}

/* =========================================================
   APPLICATION
========================================================= */

.ji-app {
    min-height: 100vh;
}

.ji-main {
    min-height: 100vh;
    margin-left: var(--ji-sidebar-width);
}

.ji-content {
    padding: 28px 30px 40px;
}

/* =========================================================
   SIDEBAR
========================================================= */

.ji-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;

    width: var(--ji-sidebar-width);
    min-height: 100vh;

    background: linear-gradient(
        180deg,
        var(--ji-sidebar) 0%,
        var(--ji-sidebar-dark) 100%
    );

    color: #fff;
}

.ji-brand {
    height: var(--ji-header-height);
    padding: 0 24px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ji-brand-name {
    font-size: 29px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.6px;
    color: #fff;
}

.ji-brand-name span {
    color: var(--ji-accent);
}

.ji-brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,.72);
}

.ji-nav {
    height: calc(100vh - var(--ji-header-height));
    padding: 10px 12px 12px;
    overflow-y: auto;
    scrollbar-width: none;
}

.ji-nav::-webkit-scrollbar {
    display: none;
}

.ji-nav::-webkit-scrollbar-track {
    background: transparent;
}

.ji-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 10px;
}

.ji-nav-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.ji-nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ji-nav-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.ji-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 41px;
    margin-bottom: 1px;
    padding: 0 16px;

    border-radius: 8px;

    color: rgba(255,255,255,.82);
    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: background .15s ease, color .15s ease;
}

.ji-nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.ji-nav-link.active {
    background: var(--ji-primary);
    color: #fff;
}


/* =========================================================
   HEADER
========================================================= */

.ji-header {
    position: sticky;
    top: 0;
    z-index: 900;

    height: var(--ji-header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: #fff;
    border-bottom: 1px solid var(--ji-border);
}

.ji-header-left,
.ji-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ji-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.ji-organization {
    padding: 10px 16px;

    background: #fff;
    border: 1px solid var(--ji-border);
    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;
}

.ji-user {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--ji-text);
    text-decoration: none;
}

.ji-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8eef7;
    color: var(--ji-text);

    font-weight: 700;
}

/* =========================================================
   PAGE HEADER
========================================================= */

.ji-page-heading {
    margin-bottom: 26px;
}

.ji-page-heading h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.ji-page-heading p {
    margin: 7px 0 0;
    color: var(--ji-muted);
}

.ji-brand {
    height: var(--ji-header-height);
    padding: 0 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ji-brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--ji-accent);
}

.ji-brand-logo svg {
    width: 44px;
    height: 44px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   CARDS
========================================================= */

.ji-card {
    background: var(--ji-card);
    border: 1px solid var(--ji-border);
    border-radius: var(--ji-radius);
    box-shadow: var(--ji-shadow);
}

.ji-card-body {
    padding: 24px;
}

/* =========================================================
   BUTTONS
========================================================= */

.ji-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    box-sizing: border-box;
    line-height: 1.25;
    vertical-align: middle;
    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: var(--ji-primary);
    color: #fff;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.ji-button:hover {
    background: var(--ji-primary-hover);
}

.ji-header-icon {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--ji-text);
}

.ji-header-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .ji-sidebar {
        display: none;
    }

    .ji-main {
        margin-left: 0;
    }

    .ji-content {
        padding: 20px;
    }
}

/* =====================================================
   PAGE ACTIONS
===================================================== */

.ji-page-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ji-btn {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.ji-btn-primary {
    background: var(--ji-primary);
    color: #fff;
}

.ji-btn-primary:hover {
    background: var(--ji-primary-hover);
}

.ji-btn-plus {
    font-size: 21px;
    line-height: 1;
    font-weight: 400;
}

/* =====================================================
   EMPTY STATES
===================================================== */

.ji-empty-state {
    min-height: 350px;
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ji-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6fd;
    color: var(--ji-primary);
}

.ji-empty-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.ji-empty-state h2 {
    margin: 0 0 8px;
    color: var(--ji-text);
    font-size: 20px;
}

.ji-empty-state p {
    max-width: 480px;
    margin: 0 0 24px;
    color: var(--ji-muted);
    line-height: 1.6;
}

/* =====================================================
   TABLES
===================================================== */

.ji-table-wrap {
    overflow-x: auto;
}

.ji-table {
    width: 100%;
    border-collapse: collapse;
}

.ji-table th,
.ji-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--ji-border);
    text-align: left;
    vertical-align: middle;
}

.ji-table th {
    color: var(--ji-muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ji-table td {
    color: var(--ji-text);
    font-size: 14px;
}

.ji-table tbody tr:last-child td {
    border-bottom: 0;
}

.ji-table tbody tr:hover {
    background: #fbfdff;
}

.ji-property-name,
.ji-link {
    color: var(--ji-primary);
    font-weight: 600;
    text-decoration: none;
}

.ji-property-name:hover,
.ji-link:hover {
    text-decoration: underline;
}

.ji-table-muted {
    color: var(--ji-muted);
    font-size: 13px;
}

.ji-table-action {
    text-align: right !important;
}

.ji-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ji-badge-success {
    color: #08764b;
    background: #e8f8f1;
}

.ji-badge-muted {
    color: var(--ji-muted);
    background: #eef2f7;
}

.ji-alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.ji-alert-success {
    color: #08764b;
    background: #e8f8f1;
    border: 1px solid #c6ecdc;
}

@media (max-width: 700px) {
    .ji-page-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ji-page-heading-actions .ji-btn {
        width: 100%;
    }
}
/* =====================================================
   PUBLIC WEBSITE / LANDING PAGE
===================================================== */

.ji-public-body {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    color: var(--ji-text);
    font-family: "Figtree", Arial, sans-serif;
}

.ji-public-container {
    width: min(calc(100% - 48px), 1180px);
    margin-inline: auto;
}

/* Header */

.ji-public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--ji-border);
}

.ji-public-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.ji-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ji-text);
    text-decoration: none;
}

.ji-public-brand-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ji-primary);
}

.ji-public-brand-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ji-public-brand strong {
    display: block;
    font-size: 25px;
    line-height: 1;
}

.ji-public-brand strong span {
    color: var(--ji-primary);
}

.ji-public-brand small {
    display: block;
    margin-top: 4px;
    color: var(--ji-muted);
    font-size: 11px;
}

.ji-public-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ji-public-login {
    color: var(--ji-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.ji-public-login:hover {
    color: var(--ji-primary);
}

/* Hero */

.ji-public-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 100px;
    background:
        radial-gradient(circle at 88% 20%, rgba(53,198,223,.12), transparent 25%),
        linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%);
}

.ji-public-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -220px;
    bottom: -250px;
    border-radius: 50%;
    background: rgba(25,118,210,.06);
}

.ji-public-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
    align-items: center;
    gap: 80px;
}

.ji-public-eyebrow {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e7f2fd;
    color: var(--ji-primary);
    font-size: 13px;
    font-weight: 700;
}

.ji-public-hero h1 {
    max-width: 680px;
    margin: 0;
    color: var(--ji-text);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.ji-public-hero h1 span {
    color: var(--ji-primary);
}

.ji-public-hero-content > p {
    max-width: 650px;
    margin: 25px 0 0;
    color: var(--ji-muted);
    font-size: 19px;
    line-height: 1.7;
}

.ji-public-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.ji-public-primary {
    min-height: 50px;
    padding-inline: 24px;
}

.ji-public-secondary {
    min-height: 50px;
    padding-inline: 24px;
    color: var(--ji-text);
    background: #fff;
    border: 1px solid var(--ji-border);
}

.ji-public-secondary:hover {
    border-color: #b8c8da;
    background: #f8fafc;
}

/* Product preview */

.ji-public-preview {
    padding: 24px;
    border: 1px solid rgba(25,118,210,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 25px 60px rgba(15,35,65,.13);
}

.ji-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ji-border);
}

.ji-preview-top small {
    display: block;
    margin-bottom: 4px;
    color: var(--ji-muted);
    font-size: 12px;
}

.ji-preview-top strong {
    font-size: 18px;
}

.ji-preview-top > span {
    color: var(--ji-primary);
    font-size: 13px;
    font-weight: 700;
}

.ji-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.ji-preview-stats > div {
    padding: 17px 12px;
    border-radius: 10px;
    background: #f5f8fc;
}

.ji-preview-stats span {
    display: block;
    margin-bottom: 9px;
    color: var(--ji-muted);
    font-size: 11px;
}

.ji-preview-stats strong {
    color: var(--ji-primary);
    font-size: 22px;
}

.ji-preview-panel {
    min-height: 175px;
    padding: 20px;
    border-radius: 12px;
    background: var(--ji-sidebar);
    color: #fff;
}

.ji-preview-panel > span {
    font-size: 13px;
    font-weight: 600;
}

.ji-preview-lines {
    margin-top: 28px;
}

.ji-preview-lines i {
    display: block;
    height: 9px;
    margin-top: 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}

.ji-preview-lines i:nth-child(1) {
    width: 92%;
}

.ji-preview-lines i:nth-child(2) {
    width: 75%;
}

.ji-preview-lines i:nth-child(3) {
    width: 84%;
}

.ji-preview-lines i:nth-child(4) {
    width: 58%;
}

/* Features */

.ji-public-features {
    padding: 90px 0 100px;
    background: #fff;
}

.ji-public-section-title {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.ji-public-section-title > span {
    color: var(--ji-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ji-public-section-title h2 {
    margin: 10px 0 12px;
    color: var(--ji-text);
    font-size: 34px;
    line-height: 1.2;
}

.ji-public-section-title p {
    margin: 0;
    color: var(--ji-muted);
    font-size: 16px;
    line-height: 1.6;
}

.ji-public-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ji-public-feature {
    padding: 28px;
    border: 1px solid var(--ji-border);
    border-radius: 14px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ji-public-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--ji-shadow);
}

.ji-public-feature > svg {
    width: 29px;
    height: 29px;
    margin-bottom: 20px;
    fill: none;
    stroke: var(--ji-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ji-public-feature h3 {
    margin: 0 0 9px;
    color: var(--ji-text);
    font-size: 18px;
}

.ji-public-feature p {
    margin: 0;
    color: var(--ji-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Footer */

.ji-public-footer {
    padding: 14px 0;
    background: var(--ji-sidebar-dark);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.ji-public-footer .ji-public-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
    .ji-public-hero {
        padding: 65px 0 70px;
    }

    .ji-public-hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .ji-public-preview {
        max-width: 620px;
        width: 100%;
    }

    .ji-public-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ji-public-container {
        width: min(calc(100% - 32px), 1180px);
    }

    .ji-public-nav {
        min-height: 68px;
    }

    .ji-public-brand-icon {
        width: 36px;
        height: 36px;
    }

    .ji-public-brand-icon svg {
        width: 35px;
        height: 35px;
    }

    .ji-public-brand strong {
        font-size: 21px;
    }

    .ji-public-brand small {
        display: none;
    }

    .ji-public-actions {
        gap: 10px;
    }

    .ji-public-login {
        display: none;
    }

    .ji-public-actions .ji-btn {
        min-height: 39px;
        padding: 0 13px;
        font-size: 13px;
    }

    .ji-public-hero {
        padding: 52px 0 58px;
    }

    .ji-public-hero h1 {
        font-size: 41px;
        letter-spacing: -1px;
    }

    .ji-public-hero-content > p {
        font-size: 17px;
    }

    .ji-public-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ji-public-hero-actions .ji-btn {
        width: 100%;
    }

    .ji-preview-stats {
        grid-template-columns: 1fr;
    }

    .ji-public-features {
        padding: 65px 0 70px;
    }

    .ji-public-section-title h2 {
        font-size: 28px;
    }

    .ji-public-feature-grid {
        grid-template-columns: 1fr;
    }

    .ji-public-footer .ji-public-container {
        flex-direction: column;
        text-align: center;
    }
}
/* =====================================================
   PUBLIC LANDING — HERO REFINEMENT
===================================================== */

.ji-public-hero {
    padding-top: 70px;
    padding-bottom: 78px;
}

.ji-public-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr);
    gap: 65px;
}

.ji-public-hero h1 {
    font-size: clamp(42px, 4.3vw, 58px);
    line-height: 1.06;
}

.ji-public-hero-content > p {
    margin-top: 21px;
}

.ji-public-hero-actions {
    margin-top: 28px;
}

@media (max-width: 900px) {
    .ji-public-hero {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .ji-public-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ji-public-hero h1 {
        font-size: 39px;
    }
}
/* =====================================================
   APPLICATION FOOTER
===================================================== */

.ji-main {
    display: flex;
    flex-direction: column;
}

.ji-content {
    flex: 1;
}

.ji-app-footer {
    flex-shrink: 0;
    padding: 10px 24px;

    background: var(--ji-sidebar-dark);
    color: rgba(255, 255, 255, .72);

    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}
/* =====================================================
   SIDEBAR — VERTICAL FIT
===================================================== */

.ji-nav {
    padding-top: 8px;
    padding-bottom: 8px;
}

.ji-nav-link {
    min-height: 39px;
}

.ji-nav-section {
    margin-top: 6px;
    padding-top: 6px;
}
/* =====================================================
   HEADER — STABLE ALIGNMENT
===================================================== */

.ji-header {
    justify-content: flex-end;
}
/* =====================================================
   DETAILS / FORMS
===================================================== */

.ji-page-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ji-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--ji-border);
}

.ji-card-header h2 {
    margin: 0;
    color: var(--ji-text);
    font-size: 20px;
}

.ji-card-header p {
    margin: 5px 0 0;
    color: var(--ji-muted);
    font-size: 14px;
}

.ji-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 50px;
}

.ji-detail {
    min-width: 0;
}

.ji-detail span {
    display: block;
    margin-bottom: 7px;
    color: var(--ji-muted);
    font-size: 13px;
    font-weight: 500;
}

.ji-detail strong {
    display: block;
    color: var(--ji-text);
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Forms */

.ji-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

.ji-form-full {
    grid-column: 1 / -1;
}

.ji-form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--ji-text);
    font-size: 14px;
    font-weight: 600;
}

.ji-form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ji-form-group select,
.ji-form-group textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #fff;
    color: var(--ji-text);

    font: inherit;
    font-size: 14px;

    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ji-form-group input:focus,
.ji-form-group select:focus,
.ji-form-group textarea:focus {
    border-color: var(--ji-primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, .10);
}

.ji-form-error {
    margin-top: 6px;
    color: var(--ji-danger);
    font-size: 12px;
}

.ji-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid var(--ji-border);
}

.ji-btn-secondary {
    color: var(--ji-text);
    background: #fff;
    border: 1px solid var(--ji-border);
}

.ji-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ji-alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.ji-alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

@media (max-width: 700px) {
    .ji-page-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ji-page-heading-actions .ji-btn {
        width: 100%;
    }

    .ji-details-grid,
    .ji-form-grid {
        grid-template-columns: 1fr;
    }

    .ji-form-full {
        grid-column: auto;
    }

    .ji-card-header {
        padding: 20px;
    }
}
/* =====================================================
   SETTINGS
===================================================== */

.ji-settings-stack {
    display: grid;
    gap: 20px;
}

.ji-settings-stack .ji-card {
    max-width: 900px;
}

.ji-settings-section {
    max-width: 620px;
}

.ji-settings-section h2 {
    margin: 0;
    color: var(--ji-text);
    font-size: 20px;
    font-weight: 700;
}

.ji-settings-section > p {
    margin: 7px 0 24px;
    color: var(--ji-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ji-settings-form {
    display: grid;
    gap: 18px;
}

.ji-settings-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.ji-saved-message {
    color: var(--ji-success);
    font-size: 13px;
    font-weight: 600;
}

.ji-danger-card {
    border-color: #fecaca;
}

.ji-danger-card .ji-settings-section h2 {
    color: var(--ji-danger);
}
/* =====================================================
   SETTINGS — FORM REFINEMENT
===================================================== */

.ji-settings-section .ji-settings-form {
    max-width: 560px;
}

.ji-settings-section .ji-form-group {
    width: 100%;
}

.ji-settings-section .ji-form-group input {
    width: 100%;
}

.ji-verification-notice {
    margin-top: 9px;
    color: var(--ji-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ji-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ji-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ji-link-button:hover {
    text-decoration: underline;
}

.ji-form-success {
    margin-top: 8px;
    color: var(--ji-success);
    font-size: 13px;
    font-weight: 600;
}
/* =====================================================
   PROPERTY FORM
===================================================== */

.ji-property-form {
    max-width: 1000px;
}

.ji-form-section {
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--ji-border);
}

.ji-form-section:last-of-type {
    margin-bottom: 0;
}

.ji-form-section h2 {
    margin: 0 0 5px;
    color: var(--ji-text);
    font-size: 18px;
    font-weight: 700;
}

.ji-form-section > p {
    margin: 0 0 22px;
    color: var(--ji-muted);
    font-size: 14px;
}

.ji-form-section .ji-form-grid + .ji-form-group,
.ji-form-section .ji-form-group + .ji-form-group,
.ji-form-section .ji-form-group + .ji-form-grid {
    margin-top: 20px;
}

.ji-form-grid-address {
    margin-top: 20px;
}

.ji-form-small {
    max-width: 280px;
}

.ji-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 700px) {
    .ji-property-form {
        max-width: none;
    }

    .ji-form-small {
        max-width: none;
    }
}
/* =====================================================
   PROPERTY DETAILS
===================================================== */

.ji-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ji-property-summary {
    display: grid;
    gap: 20px;
}

.ji-property-notes {
    color: var(--ji-text);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ji-empty-state-compact {
    min-height: 220px;
    padding: 30px 20px;
}

.ji-empty-state-compact h3 {
    margin: 12px 0 6px;
    color: var(--ji-text);
    font-size: 17px;
}

@media (max-width: 700px) {
    .ji-page-heading-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .ji-page-actions {
        width: 100%;
    }
}
/* =====================================================
   FORM GRID ALIGNMENT
===================================================== */

.ji-form-grid {
    align-items: start;
}

.ji-form-grid > .ji-form-group {
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
}

.ji-form-grid > .ji-form-group label {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 8px;
}

.ji-form-grid > .ji-form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ji-form-grid > .ji-form-group select {
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

/* =====================================================
   PROPERTY MANAGERS
===================================================== */

.ji-manager-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.ji-manager-option {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;

    background: #fff;
    border: 1px solid var(--ji-border);
    border-radius: 10px;

    cursor: pointer;
    transition: border-color .15s ease,
                box-shadow .15s ease,
                background .15s ease;
}

.ji-manager-option:hover {
    border-color: #9fc5ee;
    background: #f8fbff;
}

.ji-manager-option:has(input:checked) {
    border-color: #2580d8;
    background: #f4f9ff;
    box-shadow: 0 0 0 1px rgba(37, 128, 216, .08);
}

.ji-manager-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.ji-manager-option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ji-manager-option-content strong {
    color: var(--ji-text);
    font-size: 15px;
    font-weight: 700;
}

.ji-manager-option-content span {
    color: var(--ji-muted);
    font-size: 13px;
}


/* Notifications globales JalImmo */

.ji-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    margin-bottom: 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.ji-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
}

.ji-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.ji-alert-success .ji-alert-icon {
    background: #059669;
    color: #ffffff;
}

.ji-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ji-alert-error .ji-alert-icon {
    background: #dc2626;
    color: #ffffff;
}


/* Organization selection: the preference form stays above the card's submit target. */
.ji-organization-notice { display: block; }
.ji-organization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 24px;
}
.ji-organization-card {
    position: relative;
    min-width: 0;
    padding: 28px;
    border: 2px solid var(--ji-border);
    border-radius: 18px;
    background: var(--ji-card);
    box-shadow: 0 8px 24px rgb(16 35 66 / 5%);
}
.ji-organization-card:has(.ji-organization-select:hover),
.ji-organization-card:has(.ji-organization-select:focus-visible),
.ji-organization-card.is-current {
    border-color: var(--ji-primary);
}
.ji-organization-card.is-unavailable { background: #f1f5f9; }
.ji-organization-card h2 { margin: 18px 0 6px; overflow-wrap: anywhere; font-size: 20px; }
.ji-organization-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #e7f2ff;
    color: var(--ji-primary);
    font-size: 22px;
    font-weight: 700;
}
.ji-organization-role, .ji-organization-hint { color: var(--ji-muted); }
.ji-organization-status { color: var(--ji-primary); font-weight: 600; }
.is-unavailable .ji-organization-status { color: var(--ji-danger); }
.ji-organization-default { color: var(--ji-success); font-weight: 600; }
.ji-organization-select { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.ji-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ji-organization-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ji-organization-actions form { margin: 0; }

.ji-organization-select::after { position: absolute; inset: 0; content: ''; border-radius: 16px; }
.ji-organization-select:focus-visible::after { outline: 3px solid var(--ji-accent); outline-offset: 3px; }
.ji-organization-preference {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--ji-border);
}
.ji-organization-preference label { display: block; cursor: pointer; }
.ji-organization-preference input { width: 18px; height: 18px; vertical-align: middle; accent-color: var(--ji-primary); }
.ji-organization-hint { display: block; margin-top: 6px; font-size: 12px; }

/* Native controls are not text fields. Keep confirmations and uploads usable. */
.ji-form-group input[type="checkbox"], .ji-form-group input[type="radio"] {
    width: 18px; height: 18px; min-height: 18px; padding: 0;
    flex: 0 0 18px; margin: 0; accent-color: var(--ji-primary);
}
.ji-form-group .ji-checkbox-label { display: flex; align-items: center; gap: 10px; }
.ji-form-group input[type="file"] { display: block; width: 100%; max-width: 100%; height: auto; min-height: 44px; padding: 8px 0; }
.ji-form-group input[type="file"]::file-selector-button { padding: 8px 12px; margin-right: 10px; cursor: pointer; }
.ji-logo-fieldset { min-width: 0; margin: 0 0 24px; padding: 20px; border: 1px solid var(--ji-border); border-radius: 10px; }
.ji-logo-fieldset legend { font-weight: 600; padding: 0 8px; }
.ji-logo-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.ji-mobile-users { display: none; }
@media (max-width: 900px) {
    .ji-mobile-users { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 20px; background: white; border-bottom: 1px solid var(--ji-border); }
}

.ji-btn:focus-visible { outline: 3px solid var(--ji-accent); outline-offset: 3px; }
.ji-btn:disabled { cursor: not-allowed; opacity: .6; }
@media (max-width: 900px) {
    details.ji-mobile-users { display: block; }
    .ji-mobile-users summary { cursor: pointer; font-weight: 600; }
    .ji-mobile-users div { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
}

/* Organization logo: bound the native control and its localized button independently. */
.ji-logo-fieldset { inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; }
.ji-logo-fieldset legend { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
.ji-logo-fieldset .ji-logo-upload {
    min-inline-size: 0; inline-size: 100%; max-inline-size: 100%;
    box-sizing: border-box; font: inherit; font-size: 14px;
}
.ji-logo-fieldset .ji-logo-upload::file-selector-button {
    box-sizing: border-box; max-inline-size: 100%; min-inline-size: 0;
    white-space: normal; overflow-wrap: anywhere; font: inherit;
}
.ji-organization-page-actions { display: flex; flex-wrap: wrap; gap: 10px; max-inline-size: 100%; }
@media (max-width: 700px) {
    .ji-organization-page-actions { inline-size: 100%; flex-direction: column; align-items: stretch; }
}

/* The native file input remains the keyboard and pointer target. */
.ji-logo-file-control { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 12px; min-inline-size: 0; }
.ji-logo-picker { position: relative; display: inline-flex; max-inline-size: 100%; min-inline-size: 0; }
.ji-logo-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 14px; border: 1px solid #0F4C81; border-radius: 8px;
    background: #0F4C81; color: #fff; font-size: 14px; font-weight: 600;
    overflow-wrap: anywhere;
}
.ji-logo-button svg { flex: 0 0 20px; }
.ji-logo-fieldset .ji-logo-picker input[type="file"].ji-logo-upload {
    position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
    min-height: 0; padding: 0; margin: 0; cursor: pointer;
}
.ji-logo-picker:hover .ji-logo-button { background: #0B3A63; border-color: #0B3A63; }
.ji-logo-picker:focus-within .ji-logo-button { outline: 3px solid #0F4C81; outline-offset: 3px; }
.ji-logo-filename { flex: 1 1 12rem; min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; font-size: 14px; }

/* Authenticated tenant shell: independent of the professional sidebar. */
.ji-tenant-portal { margin: 0; background: #f4f7fb; color: #172b49; font-family: Arial, sans-serif; }
.ji-tenant-portal *, .ji-tenant-portal *::before, .ji-tenant-portal *::after { box-sizing: border-box; }
.ji-tenant-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; background: white; border-bottom: 1px solid var(--ji-border); }
.ji-tenant-brand, .ji-tenant-account { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; }
.ji-tenant-brand { color: #0F4C81; font-weight: 700; text-decoration: none; }
.ji-tenant-brand img { width: 130px; height: auto; max-width: 100%; }
.ji-tenant-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1500px; margin: auto; }
.ji-tenant-nav { display: flex; flex-direction: column; gap: 12px; padding: 28px 20px; }
.ji-tenant-nav a { padding: 12px; border-radius: 8px; text-decoration: none; color: #0F4C81; font-weight: 600; }
.ji-tenant-nav a:hover, .ji-tenant-nav a[aria-current="page"] { background: #e7f2ff; }
.ji-tenant-nav a:focus-visible, .ji-tenant-skip:focus { outline: 3px solid #0F4C81; outline-offset: 3px; }
.ji-tenant-content { min-width: 0; padding: 28px; overflow-wrap: anywhere; }
.ji-tenant-content .ji-card { margin-bottom: 24px; }
.ji-tenant-stats, .ji-tenant-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.ji-tenant-count { font-size: 32px; font-weight: 700; color: #0F4C81; }
.ji-tenant-status { display: inline-block; background: #e7f2ff; color: #0F4C81; border-radius: 8px; padding: 6px 10px; font-weight: 600; }
.ji-tenant-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.ji-tenant-details dt { font-weight: 600; }.ji-tenant-details dd { margin: 8px 0; }
.ji-tenant-steps { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px 32px; background: #f4f7fb; border-radius: 8px; }
.ji-tenant-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ji-tenant-footer { text-align: center; padding: 24px; color: #526178; }
.ji-negotiation-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.ji-negotiation-check { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; }
[data-lease-action] input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
[data-lease-action] textarea { display: block; width: 100%; max-width: 100%; min-width: 0; margin: 12px 0; }
[data-lease-action] .ji-btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.ji-tenant-skip { position: absolute; top: -100px; left: 12px; background: white; padding: 12px; z-index: 10; }.ji-tenant-skip:focus { top: 12px; }
@media (max-width: 760px) {
    .ji-tenant-header { padding: 16px; }.ji-tenant-shell { grid-template-columns: minmax(0, 1fr); }
    .ji-tenant-nav { flex-direction: row; flex-wrap: wrap; padding: 16px; border-bottom: 1px solid var(--ji-border); }
    .ji-tenant-content { padding: 20px 16px; }.ji-tenant-account { width: 100%; justify-content: space-between; }
}
