html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

body {
    background: #f3f6fb;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    color: white;
    background:
        linear-gradient(135deg, #082b4c, #116a8b);
    box-shadow: 0 18px 45px rgba(8, 43, 76, 0.18);
}

.dashboard-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
}

.eyebrow {
    margin-bottom: .4rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14rem;
    opacity: .75;
}

.subtitle {
    margin: .5rem 0 0;
    opacity: .85;
}

.refresh-button {
    border: 1px solid rgba(255,255,255,.45);
    border-radius: .75rem;
    padding: .8rem 1.1rem;
    color: white;
    background: rgba(255,255,255,.12);
}

.metric-grid,
.action-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    min-height: 145px;
    padding: 1.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.metric-attention {
    border-left: 5px solid #b42318;
}

.metric-title {
    color: #64748b;
    font-weight: 700;
}

.metric-value {
    margin: .7rem 0;
    color: #0f2942;
    font-size: 2rem;
}

.metric-description {
    color: #7c8798;
    font-size: .9rem;
}

.dashboard-section {
    margin-top: 2rem;
}

.section-heading h2 {
    margin-top: 0;
    color: #0f2942;
    font-weight: 800;
}

.action-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 120px;
    padding: 1.25rem;
    border: 1px solid #dce5ef;
    border-radius: 1rem;
    color: #0f2942;
    text-decoration: none;
    background: white;
    transition: transform .15s ease,
                box-shadow .15s ease;
}

.action-card:hover {
    color: #0f2942;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 41, 66, .10);
}

.action-card span {
    color: #64748b;
    font-size: .9rem;
}

.status-panel {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
}

@media (max-width: 700px) {
    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin: 0;
    color: #0f2942;
    font-weight: 800;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .8rem;
    padding: 1.25rem;
    border: 1px solid #dce5ef;
    border-radius: 1rem;
    background: white;
}

.results-summary {
    margin: 1.5rem 0 .8rem;
    color: #64748b;
    font-weight: 700;
}

.renter-grid {
    display: grid;
    gap: 1rem;
}

.renter-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid #dce5ef;
    border-radius: 1rem;
    color: inherit;
    text-decoration: none;
    background: white;
    box-shadow: 0 7px 20px rgba(15, 41, 66, .05);
}

.renter-card:hover {
    color: inherit;
    border-color: #166a8b;
    transform: translateY(-2px);
}

.renter-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    background: #116a8b;
}

.renter-information h3 {
    margin: 0 0 .3rem;
    color: #0f2942;
    font-size: 1.1rem;
    font-weight: 800;
}

.renter-information p,
.renter-details {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}

.renter-details {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: .4rem;
}

.renter-statistics {
    display: flex;
    gap: 1rem;
}

.renter-statistics span {
    min-width: 90px;
    padding: .6rem;
    border-radius: .7rem;
    color: #64748b;
    text-align: center;
    background: #f3f6fb;
}

.renter-statistics strong {
    display: block;
    color: #0f2942;
    font-size: 1.15rem;
}

.renter-statistics .warning-stat {
    color: #9f2d24;
    background: #fff0ef;
}

.empty-panel {
    margin-top: 1rem;
    padding: 2rem;
    border-radius: 1rem;
    color: #64748b;
    text-align: center;
    background: white;
}

@media (max-width: 760px) {
    .search-panel {
        grid-template-columns: 1fr;
    }

    .renter-card {
        grid-template-columns: 55px 1fr;
    }

    .renter-statistics {
        grid-column: 1 / -1;
    }
}

.profile-header {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1.6rem;
    border-radius: 1.2rem;
    color: white;
    background: linear-gradient(135deg, #082b4c, #116a8b);
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: #0f2942;
    font-size: 1.7rem;
    font-weight: 900;
    background: white;
}

.profile-name h1 {
    margin: 0;
    font-weight: 800;
}

.profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .7rem;
    opacity: .85;
}

.risk-panel {
    min-width: 135px;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    background: white;
}

.risk-panel span,
.risk-panel small {
    display: block;
}

.risk-panel strong {
    display: block;
    font-size: 2.3rem;
}

.risk-low {
    color: #157347;
}

.risk-moderate {
    color: #9a6700;
}

.risk-high {
    color: #b54708;
}

.risk-critical {
    color: #b42318;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.3rem;
}

.profile-section {
    margin-top: 2rem;
}

.risk-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid #dce5ef;
    border-radius: 1rem;
    background: white;
}

.risk-detail-card h3,
.risk-detail-card h4 {
    color: #0f2942;
    font-weight: 800;
}

.record-grid {
    display: grid;
    gap: .8rem;
}

.record-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: white;
}

.record-card p {
    margin: .3rem 0;
    color: #64748b;
}

.record-right {
    text-align: right;
}

.status-badge {
    display: inline-block;
    margin-top: .4rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    color: #334155;
    font-size: .8rem;
    font-weight: 700;
    background: #e8eef5;
}

.status-good {
    color: #157347;
    background: #dcfce7;
}

.status-warning {
    color: #9f2d24;
    background: #fee2e2;
}

.incident-record {
    border-left: 5px solid #b42318;
}

@media (max-width: 760px) {
    .profile-header {
        grid-template-columns: 70px 1fr;
    }

    .profile-avatar {
        width: 65px;
        height: 65px;
    }

    .risk-panel {
        grid-column: 1 / -1;
    }

    .risk-detail-card {
        grid-template-columns: 1fr;
    }

    .record-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .record-right {
        text-align: left;
    }
}

.form-card {
    padding: 1.5rem;
    border: 1px solid #dce5ef;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 8px 24px rgba(15, 41, 66, .06);
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.form-grid label {
    color: #334155;
    font-weight: 700;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-top: 2rem;
}

.form-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
}

.decision-panel {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #bfd7e6;
    border-radius: 1rem;
    background: #eef8fc;
}

.decision-panel div {
    display: flex;
    flex-direction: column;
}

.decision-panel span {
    color: #64748b;
    font-size: .85rem;
    font-weight: 700;
}

.decision-panel strong {
    color: #0f2942;
    font-size: 1.25rem;
}

.decision-panel p {
    grid-column: 1 / -1;
    margin: 0;
    color: #334155;
}

.return-summary {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.return-summary div {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: .8rem;
    background: #f3f6fb;
}

.return-summary span {
    color: #64748b;
    font-size: .85rem;
    font-weight: 700;
}

.return-summary strong {
    margin-top: .35rem;
    color: #0f2942;
    font-size: 1.25rem;
}

.rental-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    color: inherit;
    text-decoration: none;
    background: white;
}

.rental-list-card:hover {
    color: inherit;
    border-color: #116a8b;
    box-shadow: 0 8px 22px rgba(15, 41, 66, .08);
}

.rental-list-card p {
    margin: .35rem 0;
    color: #64748b;
}

.status-danger {
    color: #b42318;
    background: #fee2e2;
}

.incident-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #f0c7c3;
    border-left: 5px solid #b42318;
    border-radius: .9rem;
    color: inherit;
    text-decoration: none;
    background: white;
}

.incident-list-card:hover {
    color: inherit;
    box-shadow: 0 8px 22px rgba(15, 41, 66, .08);
}

.incident-list-card p {
    margin: .35rem 0;
    color: #64748b;
}

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

.search-result-section {
    margin-top: 2rem;
}

.search-result-section .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    color: inherit;
    text-decoration: none;
    background: white;
}

.global-result-card:hover {
    color: inherit;
    border-color: #116a8b;
    box-shadow: 0 8px 22px rgba(15, 41, 66, .08);
}

.global-result-card p {
    margin: .35rem 0 0;
    color: #64748b;
}

.company-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #dce5ef;
    border-left: 5px solid #116a8b;
    border-radius: .9rem;
    background: white;
}

.company-list-card p {
    margin: .35rem 0;
    color: #64748b;
}

.blacklist-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid #efc2be;
    border-left: 6px solid #9f1d20;
    border-radius: .9rem;
    color: inherit;
    text-decoration: none;
    background: white;
}

.blacklist-card:hover {
    color: inherit;
    box-shadow: 0 8px 22px rgba(15, 41, 66, .10);
}

.blacklist-card p {
    margin: .35rem 0;
    color: #64748b;
}

.blacklist-card .record-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .4rem;
}

.blacklist-warning-banner {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 1.25rem 0;
    padding: 1.25rem;
    border: 2px solid #991b1b;
    border-radius: .9rem;
    background: #fee2e2;
    color: #7f1d1d;
}

.blacklist-warning-banner strong {
    font-size: 1.1rem;
}

.blacklist-description {
    padding: 1.25rem;
    border: 1px solid #efc2be;
    border-left: 5px solid #991b1b;
    border-radius: .9rem;
    background: white;
    white-space: pre-wrap;
    line-height: 1.65;
}

.case-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid #dce5ef;
    border-left: 6px solid #334155;
    border-radius: .9rem;
    color: inherit;
    text-decoration: none;
    background: white;
}

.case-list-card:hover {
    color: inherit;
    border-color: #116a8b;
    box-shadow: 0 8px 22px rgba(15, 41, 66, .09);
}

.case-list-card h3 {
    margin: .25rem 0;
    font-size: 1.05rem;
}

.case-list-card p {
    margin: .25rem 0;
    color: #64748b;
}

.case-list-card .record-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .45rem;
}

.case-text-panel {
    padding: 1.2rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: white;
}

.case-text-panel p {
    margin: .5rem 0 0;
    white-space: pre-wrap;
    line-height: 1.65;
}

.case-task-list {
    display: grid;
    gap: 1rem;
}

.case-task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #dce5ef;
    border-left: 5px solid #f59e0b;
    border-radius: .9rem;
    background: white;
}

.case-task-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.case-task-card p {
    margin: .5rem 0;
    color: #475569;
}

.case-task-card small {
    color: #64748b;
}

.completed-task {
    opacity: .7;
    border-left-color: #16a34a;
}

.completed-task strong {
    text-decoration: line-through;
}

.task-actions {
    flex-shrink: 0;
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    align-items: start;
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e2e8f0;
    font-size: 1.15rem;
}

.timeline-content {
    padding: 1rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: white;
}

.timeline-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.timeline-heading span,
.timeline-content small {
    color: #64748b;
}

.timeline-content p {
    margin: .55rem 0;
    white-space: pre-wrap;
    line-height: 1.55;
}

.evidence-grid {
    display: grid;
    gap: 1rem;
}

.evidence-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border: 1px solid #dce5ef;
    border-left: 5px solid #475569;
    border-radius: .9rem;
    background: white;
}

.evidence-icon {
    font-size: 1.8rem;
    text-align: center;
}

.evidence-details {
    display: grid;
    gap: .4rem;
}

.evidence-details p {
    margin: 0;
    color: #475569;
}

.evidence-details small {
    color: #64748b;
}

.evidence-hash {
    overflow-wrap: anywhere;
    font-family: monospace;
}

.evidence-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

@media (max-width: 720px) {
    .evidence-card {
        grid-template-columns: 44px 1fr;
    }

    .evidence-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }
}

/* RentalVerify360 case tabs */

.case-tabs-wrapper {
    padding-top: 1rem;
}

.case-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #dce5ef;
}

.case-tab {
    padding: .7rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
}

.case-tab:hover {
    background: #e2e8f0;
}

.case-tab.active {
    border-color: #116a8b;
    background: #116a8b;
    color: white;
}

.case-tab-content {
    min-height: 260px;
}

.case-tab-content > .profile-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.tab-overview-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .case-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .case-tab {
        width: 100%;
    }
}

.intelligence-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.decision-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 260px;
    padding: 1.25rem;
    border-radius: .9rem;
}

.decision-panel strong {
    margin: .3rem 0;
    font-size: 1.4rem;
}

.decision-approve {
    background: #dcfce7;
    color: #166534;
}

.decision-review,
.decision-verify {
    background: #fef3c7;
    color: #92400e;
}

.decision-decline {
    background: #fee2e2;
    color: #991b1b;
}

.intelligence-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #dce5ef;
}

.intelligence-tab {
    padding: .7rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
}

.intelligence-tab.active {
    border-color: #116a8b;
    background: #116a8b;
    color: white;
}

.intelligence-tab-content {
    min-height: 280px;
    padding-top: 1rem;
}

.intelligence-overview-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.intelligence-summary-card {
    padding: 1.25rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: white;
}

.intelligence-summary-card h2 {
    margin: .35rem 0;
}

.intelligence-report-card,
.intelligence-list-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: white;
    color: inherit;
    text-decoration: none;
}

.intelligence-report-card:hover,
.intelligence-list-card:hover {
    border-color: #116a8b;
    color: inherit;
}

.intelligence-report-card p,
.intelligence-list-card p {
    margin: .4rem 0;
}

@media (max-width: 720px) {
    .intelligence-header {
        flex-direction: column;
    }

    .decision-panel {
        min-width: 0;
    }

    .intelligence-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RentalVerify360 global search */

.global-search-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: .8rem 1rem;
    border-bottom: 1px solid #dce5ef;
    background: rgba(248, 250, 252, .96);
    backdrop-filter: blur(8px);
}

.global-search-wrapper {
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto;
}

.global-search-input {
    width: 100%;
    padding: .8rem 3.2rem .8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: .75rem;
    background: white;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.global-search-input:focus {
    border-color: #116a8b;
    box-shadow: 0 0 0 3px rgba(17, 106, 139, .14);
}

.global-search-spinner {
    position: absolute;
    top: .85rem;
    right: 1rem;
    color: #64748b;
    font-size: .85rem;
}

.global-search-results {
    position: absolute;
    top: calc(100% + .45rem);
    right: 0;
    left: 0;
    z-index: 2000;
    max-height: 430px;
    overflow-y: auto;
    border: 1px solid #dce5ef;
    border-radius: .8rem;
    background: white;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.global-search-result {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: .75rem;
    align-items: center;
    width: 100%;
    padding: .8rem 1rem;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: white;
    text-align: left;
    cursor: pointer;
}

.global-search-result:last-child {
    border-bottom: 0;
}

.global-search-result:hover,
.global-search-result.selected {
    background: #eef8fb;
}

.global-search-type {
    font-size: 1.25rem;
    text-align: center;
}

.global-search-text {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.global-search-text strong,
.global-search-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-text small,
.global-search-category {
    color: #64748b;
}

.global-search-category {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.global-search-message {
    padding: 1rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 720px) {
    .global-search-result {
        grid-template-columns: 34px 1fr;
    }

    .global-search-category {
        display: none;
    }
}

.command-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.command-header h1 {
    margin: .2rem 0;
}

.command-updated {
    padding: .65rem .9rem;
    border: 1px solid #dce5ef;
    border-radius: .65rem;
    background: white;
    color: #64748b;
    font-size: .9rem;
}

.command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 1rem;
    margin-top: 1rem;
}

.command-panel {
    padding: 1.2rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: #f8fafc;
}

.command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.command-activity-list {
    display: grid;
    gap: .65rem;
}

.command-activity-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .8rem;
    border: 1px solid #dce5ef;
    border-radius: .75rem;
    background: white;
    color: inherit;
    text-decoration: none;
}

.command-activity-item:hover {
    border-color: #116a8b;
    color: inherit;
}

.command-activity-icon {
    font-size: 1.2rem;
    text-align: center;
}

.command-activity-content {
    display: grid;
    gap: .15rem;
}

.command-activity-content small {
    color: #64748b;
}

@media (max-width: 900px) {
    .command-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .command-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .command-actions {
        grid-template-columns: 1fr;
    }

    .command-activity-item {
        grid-template-columns: 34px 1fr;
    }

    .command-activity-item .status-badge {
        grid-column: 2;
        justify-self: start;
    }
}

.workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-bottom: .75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dce5ef;
}

.workspace-tab {
    padding: .7rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
}

.workspace-tab:hover {
    background: #e2e8f0;
}

.workspace-tab.active {
    border-color: #116a8b;
    background: #116a8b;
    color: white;
}

@media (max-width: 700px) {
    .workspace-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-tab {
        width: 100%;
    }
}

.decision-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: .9rem;
}

.decision-confidence {
    display: grid;
    text-align: center;
}

.decision-confidence strong {
    font-size: 2rem;
}

.decision-factor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.decision-factor-grid ul {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .decision-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .decision-factor-grid {
        grid-template-columns: 1fr;
    }
}

.evidence-case-block {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: #fff;
}

.evidence-case-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.evidence-case-header p {
    margin: .25rem 0 0;
    color: #64748b;
}

@media (max-width: 700px) {
    .evidence-case-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.timeline-case-block {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: white;
}

.timeline-case-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-case-header p {
    margin: .25rem 0 0;
    color: #64748b;
}

@media (max-width: 700px) {
    .timeline-case-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.workspace-content {
    min-height: 400px;
}

.decision-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: .9rem;
}

.decision-confidence {
    display: grid;
    text-align: center;
}

.decision-confidence strong {
    font-size: 2rem;
}

.decision-approve {
    background: #dcfce7;
    color: #166534;
}

.decision-review,
.decision-verify {
    background: #fef3c7;
    color: #92400e;
}

.decision-decline {
    background: #fee2e2;
    color: #991b1b;
}

.decision-factor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.factor-list {
    margin: 0;
    padding-left: 1.25rem;
}

.factor-list li {
    margin-bottom: .55rem;
}

.intelligence-list-card,
.intelligence-report-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: .7rem;
    border: 1px solid #dce5ef;
    border-radius: .8rem;
    background: white;
    color: inherit;
    text-decoration: none;
}

.intelligence-list-card:hover,
.intelligence-report-card:hover {
    border-color: #116a8b;
    color: inherit;
}

.record-right {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .workspace-header,
    .decision-summary,
    .intelligence-list-card,
    .intelligence-report-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .decision-factor-grid {
        grid-template-columns: 1fr;
    }
}

.gps-placeholder {
    padding: 1.25rem;
    border: 1px dashed #94a3b8;
    border-radius: .9rem;
    background: #f8fafc;
}

.gps-placeholder p {
    margin: .5rem 0 0;
    color: #64748b;
}

.management-notice {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: .8rem;
    background: #f8fafc;
}

.management-notice p {
    margin: .4rem 0 0;
    color: #64748b;
}

.rv-nav {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1rem .8rem;
    background: #0f172a;
    color: white;
}

.rv-brand {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .4rem .4rem 1.25rem;
}

.rv-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: .7rem;
    background: #0ea5a4;
    font-weight: 800;
}

.rv-brand strong,
.rv-brand small {
    display: block;
}

.rv-brand small {
    margin-top: .12rem;
    color: #94a3b8;
}

.rv-nav-links {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .22rem;
}

.rv-nav-heading {
    margin: 1rem .6rem .35rem;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.rv-nav-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: .55rem;
    align-items: center;
    padding: .7rem .75rem;
    border-radius: .65rem;
    color: #cbd5e1;
    text-decoration: none;
}

.rv-nav-item:hover {
    background: #1e293b;
    color: white;
}

.rv-nav-item.active {
    background: #0f766e;
    color: white;
}

.rv-nav-footer {
    display: grid;
    gap: .15rem;
    padding: 1rem .6rem .3rem;
    color: #64748b;
}


/* =========================================================
   RENTALVERIFY360 UI DESIGN SYSTEM V1
   ========================================================= */

.rv2-sidebar {
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #dfe5ec;
    color: #1e293b;
}

.rv2-brand {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e9ef;
}

.rv2-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #075985;
    color: white;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
}

.rv2-brand-text {
    min-width: 0;
}

.rv2-brand-text strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
}

.rv2-brand-text span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.rv2-menu {
    flex: 1;
    padding: 12px 10px 20px;
    overflow-y: auto;
}

.rv2-section {
    display: block;
    width: 100%;
    margin-top: 18px;
    margin-bottom: 6px;
    padding: 0 11px 7px;
    border-bottom: 1px solid #eef2f6;
    color: #8492a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.rv2-menu-item {
    position: relative;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 46px;
    margin: 3px 0;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.25;
}

.rv2-menu-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a !important;
}

.rv2-menu-item.active {
    background: #eaf4fb;
    border-color: #c5e1f2;
    color: #075985 !important;
    font-weight: 700;
}

.rv2-menu-item.active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 7px;
    bottom: 7px;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: #0284c7;
}

.rv2-icon {
    width: 26px;
    text-align: center;
    font-size: 17px;
}

.rv2-sidebar-footer {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 12px 16px;
    border-top: 1px solid #e5e9ef;
    background: #f8fafc;
}

.rv2-sidebar-footer strong {
    display: block;
    color: #1e293b;
    font-size: 12px;
}

.rv2-sidebar-footer span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
}

.rv2-user-circle {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
}


/* MAIN APPLICATION SURFACE */

body {
    background: #f4f7fa;
    color: #1e293b;
}

.page {
    background: #f4f7fa;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: #ffffff !important;
    box-shadow: 1px 0 4px rgba(15, 23, 42, .04);
}

main {
    background: #f4f7fa;
}

.content {
    padding: 24px 28px !important;
}


/* PAGE HEADERS */

.workspace-header {
    padding: 6px 0 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid #dfe5ec;
}

.workspace-header h1 {
    margin: 2px 0 5px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.workspace-header p {
    color: #64748b;
}

.eyebrow {
    color: #0284c7 !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}


/* PANELS */

.profile-section,
.command-panel,
.record-card,
.evidence-case-block,
.timeline-case-block {
    border: 1px solid #dfe5ec !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.035);
}

.profile-section {
    padding: 20px !important;
}

.profile-section h2 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}


/* TABS */

.workspace-tabs {
    display: flex !important;
    width: 100%;
    gap: 0 !important;
    padding: 0 !important;
    margin-bottom: 18px !important;
    overflow-x: auto;
    border: 1px solid #dfe5ec !important;
    border-radius: 8px !important;
    background: white;
}

.workspace-tab {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-right: 1px solid #e5e9ef !important;
    border-radius: 0 !important;
    background: white !important;
    color: #475569 !important;
    font-size: 13px;
}

.workspace-tab:hover {
    background: #f8fafc !important;
}

.workspace-tab.active {
    background: #eaf4fb !important;
    color: #0369a1 !important;
    box-shadow: inset 0 -3px 0 #0284c7;
}


/* METRIC CARDS */

.profile-stat-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}


/* LIST ITEMS */

.intelligence-list-card,
.intelligence-report-card {
    min-height: 72px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: white !important;
    transition: .15s ease;
}

.intelligence-list-card:hover,
.intelligence-report-card:hover {
    border-color: #7dd3fc !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}


/* BUTTONS */

.btn {
    border-radius: 6px !important;
    font-weight: 600;
}

.btn-primary {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
}

.btn-primary:hover {
    background: #075985 !important;
}


/* MOBILE */

@media (max-width: 900px) {

    .sidebar {
        width: 230px;
        min-width: 230px;
    }

    .content {
        padding: 18px !important;
    }
}

/* ===== COMMAND CENTER ===== */

.rv-command {
    max-width: 1500px;
}

.rv-command-heading {
    margin-bottom: 22px;
}

.rv-command-heading h1 {
    margin: 0;
    color: #101828;
    font-size: 34px;
    font-weight: 700;
}

.rv-breadcrumb {
    margin-top: 6px;
    color: #667085;
    font-size: 14px;
}

.rv-breadcrumb span {
    margin: 0 9px;
}

.rv-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.rv-dashboard-metric {
    min-height: 128px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16,24,40,.05);
}

.rv-dashboard-metric-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    border-radius: 50%;
    background: #eff6ff;
    font-size: 23px;
}

.rv-dashboard-metric-title {
    display: block;
    margin-bottom: 5px;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
}

.rv-dashboard-metric-value {
    display: block;
    color: #101828;
    font-size: 27px;
    line-height: 1.15;
}

.rv-blue .rv-dashboard-metric-value {
    color: #175cd3;
}

.rv-green .rv-dashboard-metric-value {
    color: #039855;
}

.rv-orange .rv-dashboard-metric-value {
    color: #f79009;
}

.rv-red .rv-dashboard-metric-value {
    color: #d92d20;
}

.rv-purple .rv-dashboard-metric-value {
    color: #6938ef;
}

.rv-pink .rv-dashboard-metric-value {
    color: #e31b54;
}

.rv-dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.rv-dashboard-panel {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.rv-panel-title {
    padding: 17px 20px;
    border-bottom: 1px solid #eaecf0;
    color: #175cd3;
    font-size: 14px;
    font-weight: 800;
}

.rv-activity-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 10px 18px;
    border-bottom: 1px solid #eaecf0;
    color: inherit;
    text-decoration: none;
}

.rv-activity-row:hover,
.rv-alert-row:hover {
    background: #f9fafb;
}

.rv-activity-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
}

.rv-activity-body strong,
.rv-activity-body span {
    display: block;
}

.rv-activity-body span {
    margin-top: 3px;
    color: #667085;
    font-size: 13px;
}

.rv-activity-time {
    color: #667085;
    font-size: 12px;
}

.rv-alert-row {
    display: grid;
    grid-template-columns: 36px 1fr 40px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 18px;
    border-bottom: 1px solid #eaecf0;
    color: #344054;
    text-decoration: none;
}

.rv-alert-row b {
    text-align: right;
    color: #d92d20;
}

.rv-quick-panel {
    margin-top: 18px;
}

.rv-quick-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.rv-quick-action {
    min-height: 64px;
    display: flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-decoration: none;
    font-weight: 600;
}

.rv-quick-action:hover {
    border-color: #84caff;
    background: #f5faff;
}

.rv-empty {
    padding: 25px;
    color: #667085;
}

@media (max-width: 1200px) {
    .rv-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rv-quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .rv-metric-grid,
    .rv-dashboard-columns {
        grid-template-columns: 1fr;
    }

    .rv-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== RentalVerify360 Login ===== */

.rv-login-page {
    min-height: 85vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.rv-login-card {
    width: 100%;
    max-width: 430px;
    padding: 2rem;
    border: 1px solid #dce5ef;
    border-radius: .9rem;
    background: white;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.rv-login-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.rv-login-heading h1 {
    margin-bottom: .25rem;
}

.rv-login-heading p {
    color: #64748b;
}

.company-application-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: .75rem;
    border: 1px solid #dce5ef;
    border-radius: .8rem;
    background: white;
}

.company-application-main {
    display: grid;
    gap: .25rem;
}

.company-application-main strong {
    font-size: 1.05rem;
}

.company-application-main span,
.company-application-main small {
    color: #64748b;
}

.company-application-actions {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.activation-link-box {
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #bae6fd;
    border-radius: .6rem;
    background: #f0f9ff;
    word-break: break-all;
    font-family: monospace;
}

@media (max-width: 700px) {
    .company-application-card {
        flex-direction: column;
    }
}
