:root {
    --app-bg: #f3efe8;
    --app-surface: rgba(255, 252, 246, 0.86);
    --app-surface-solid: #fffcf6;
    --app-dark: #172033;
    --app-dark-soft: #26324b;
    --app-primary: #3d5f93;
    --app-primary-dark: #2b456d;
    --app-primary-soft: #e8eef8;
    --app-gold: #c9963e;
    --app-border: rgba(83, 67, 43, 0.14);
    --app-muted: #738077;
    --app-shadow: 0 18px 48px rgba(23, 32, 51, 0.09);
    --app-shadow-hover: 0 24px 70px rgba(23, 32, 51, 0.14);
    --app-radius: 1.35rem;
}

* {
    scrollbar-color: rgba(61, 95, 147, 0.42) rgba(255, 255, 255, 0.45);
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(201, 150, 62, 0.16), transparent 25rem),
        radial-gradient(circle at 88% 4%, rgba(61, 95, 147, 0.16), transparent 28rem),
        linear-gradient(135deg, #fbf6ed 0%, var(--app-bg) 48%, #eef2f8 100%);
    color: var(--app-dark);
    font-family: Tahoma, Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

a,
button,
.btn,
.card,
.metric-card,
.alert-widget,
.quick-start-item,
.sidebar-link,
.property-card,
.alert-item {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(61, 95, 147, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #4b70aa, var(--app-primary-dark));
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(61, 95, 147, 0.24);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--app-primary);
    border-color: rgba(61, 95, 147, 0.36);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--app-primary);
    border-color: var(--app-primary);
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border-color: var(--app-border);
    border-radius: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(61, 95, 147, 0.52);
    box-shadow: 0 0 0 0.25rem rgba(61, 95, 147, 0.12);
}

.card {
    border-radius: var(--app-radius);
    background: var(--app-surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--app-shadow) !important;
}

.guest-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(circle at top right, rgba(61, 95, 147, 0.2), transparent 28rem),
        radial-gradient(circle at bottom left, rgba(201, 150, 62, 0.18), transparent 22rem),
        linear-gradient(135deg, #fbf7ef 0%, #eef2f8 100%);
}

.login-panel {
    width: min(100%, 440px);
}

.login-card {
    width: min(100%, 440px);
    border-radius: 1.7rem;
    overflow: hidden;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--app-dark);
    direction: ltr;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.login-logo,
.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 14px 34px rgba(61, 95, 147, 0.24);
}

.login-logo img,
.brand-mark img {
    display: block;
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background:
        radial-gradient(circle at top right, rgba(201, 150, 62, 0.18), transparent 16rem),
        linear-gradient(180deg, #182542 0%, #111827 100%);
    color: #fff;
    padding: 1.25rem;
    box-shadow: -18px 0 50px rgba(23, 32, 51, 0.12);
}

.app-sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 28%);
}

.sidebar-scrim {
    display: none;
}

.brand-box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-box .brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #fff, rgba(255, 255, 255, 0.82));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.brand-copy {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.brand-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    direction: ltr;
    letter-spacing: 0.01em;
}

.login-page-footer {
    color: var(--app-muted);
    font-size: 0.86rem;
    text-align: center;
}

.login-page-footer p {
    margin: 0;
}

.brand-subtitle {
    width: max-content;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.sidebar-nav {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.5rem;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    isolation: isolate;
}

.sidebar-link::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 0 rgba(201, 150, 62, 0);
}

.sidebar-link.active,
.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    transform: translateX(-3px);
}

.sidebar-link.active::before,
.sidebar-link:hover::before {
    background: var(--app-gold);
    box-shadow: 0 0 0 0.35rem rgba(201, 150, 62, 0.15);
}

.sidebar-link.disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.app-main {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 88px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 252, 246, 0.82);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(18px);
}

.topbar-title {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.85rem;
}

.topbar-title .page-kicker,
.topbar-title .page-title {
    grid-column: 2;
}

.nav-toggle {
    grid-row: 1 / span 2;
    width: 2.75rem;
    height: 2.75rem;
    display: none;
    place-items: center;
    gap: 0.25rem;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
}

.nav-toggle span {
    width: 1.1rem;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--app-dark);
    transition: transform 180ms ease, opacity 180ms ease;
}

body.sidebar-open {
    overflow: hidden;
}

body.sidebar-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.sidebar-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.sidebar-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.page-kicker,
.section-label {
    color: var(--app-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.page-title {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 800;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    white-space: nowrap;
}

.notification-button {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    color: var(--app-primary);
    text-decoration: none;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.07);
}

.notification-button:hover,
.notification-button:focus {
    color: #fff;
    background: var(--app-primary);
    border-color: var(--app-primary);
    transform: translateY(-1px);
}

.notification-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.notification-button span {
    position: absolute;
    top: -0.35rem;
    left: -0.35rem;
    min-width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    padding: 0 0.3rem;
    border: 2px solid #fffcf6;
    border-radius: 999px;
    color: #fff;
    background: #c04b3a;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.notification-button.has-alerts::after {
    content: '';
    position: absolute;
    inset: 0.25rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(192, 75, 58, 0.18);
    animation: softPulse 1.8s ease-in-out infinite;
}

.notification-menu {
    position: relative;
}

.notification-popover {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    z-index: 40;
    width: min(92vw, 360px);
    max-height: min(70vh, 520px);
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 1.25rem;
    background: rgba(255, 252, 246, 0.96);
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.18);
    backdrop-filter: blur(18px);
    transform-origin: top left;
    animation: popoverIn 160ms ease both;
}

.notification-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--app-border);
}

.notification-popover-header a {
    color: var(--app-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.notification-list {
    max-height: 390px;
    overflow-y: auto;
    padding: 0.65rem;
}

.notification-item {
    display: block;
    padding: 0.85rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    color: var(--app-dark);
    text-decoration: none;
    white-space: normal;
}

.notification-item:hover,
.notification-item:focus {
    color: var(--app-dark);
    background: #f3eee5;
    border-color: var(--app-border);
    transform: translateX(-2px);
}

.notification-item strong,
.notification-item span {
    display: block;
}

.notification-item strong {
    margin-bottom: 0.2rem;
    font-size: 0.92rem;
}

.notification-item span,
.notification-empty {
    color: var(--app-muted);
    font-size: 0.86rem;
}

.notification-item.danger strong {
    color: #9b2f25;
}

.notification-item.warning strong {
    color: #8b5d12;
}

.notification-item.info strong {
    color: #2b4f7c;
}

.notification-empty {
    padding: 1.25rem;
    text-align: center;
}

.content-area {
    padding: 1.75rem;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: end;
    padding: 2rem;
    border-radius: 1.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.2), transparent 9rem),
        radial-gradient(circle at 85% 15%, rgba(201, 150, 62, 0.36), transparent 12rem),
        linear-gradient(135deg, rgba(24, 37, 66, 0.96), rgba(61, 95, 147, 0.84)),
        linear-gradient(45deg, #3d5f93, #c9963e);
    box-shadow: var(--app-shadow);
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -36% 45%;
    height: 70%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(3px);
}

.dashboard-hero h2 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-hero p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.78);
}

.metric-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(14px);
}

.metric-card:hover,
.property-card:hover,
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--app-shadow-hover) !important;
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--app-muted);
}

.metric-card strong {
    display: block;
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: var(--app-primary);
    letter-spacing: -0.02em;
}

.quick-start-card {
    position: relative;
    overflow: hidden;
}

.quick-start-card::before {
    content: '';
    position: absolute;
    top: -5rem;
    left: -3rem;
    width: 13rem;
    height: 13rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(61, 95, 147, 0.14), transparent 68%);
    pointer-events: none;
}

.quick-start-heading {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.85rem;
    align-items: center;
}

.quick-start-heading p {
    grid-column: 2;
}

.quick-start-title-icon {
    grid-row: 1 / span 2;
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary), var(--app-gold));
    box-shadow: 0 14px 28px rgba(61, 95, 147, 0.22);
}

.quick-start-title-icon svg,
.quick-start-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.quick-start-list {
    position: relative;
    display: grid;
    gap: 0.85rem;
}

.quick-start-item {
    --quick-accent: var(--app-primary);
    --quick-tint: rgba(61, 95, 147, 0.08);
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(251, 248, 242, 0.92)),
        radial-gradient(circle at 8% 30%, var(--quick-tint), transparent 12rem);
    border: 1px solid rgba(83, 67, 43, 0.12);
    isolation: isolate;
    overflow: hidden;
}

.quick-start-item::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 0.32rem;
    background: var(--quick-accent);
    opacity: 0.9;
}

.quick-start-properties {
    --quick-accent: #3d5f93;
    --quick-tint: rgba(61, 95, 147, 0.12);
}

.quick-start-tenants {
    --quick-accent: #4d7c62;
    --quick-tint: rgba(77, 124, 98, 0.12);
}

.quick-start-contracts {
    --quick-accent: #c9963e;
    --quick-tint: rgba(201, 150, 62, 0.14);
}

.quick-start-invoices {
    --quick-accent: #8d5bb8;
    --quick-tint: rgba(141, 91, 184, 0.12);
}

.quick-start-item:hover,
.quick-start-item:focus {
    border-color: color-mix(in srgb, var(--quick-accent), transparent 62%);
    box-shadow: 0 16px 38px rgba(23, 32, 51, 0.12);
    transform: translateY(-2px);
}

.quick-start-number,
.quick-start-icon {
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.quick-start-number {
    width: 2.15rem;
    height: 2.15rem;
    color: var(--quick-accent);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--quick-accent), transparent 72%);
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.08);
}

.quick-start-icon {
    width: 3rem;
    height: 3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--quick-accent), color-mix(in srgb, var(--quick-accent), #111827 20%));
    box-shadow: 0 14px 26px color-mix(in srgb, var(--quick-accent), transparent 78%);
}

.quick-start-copy strong,
.quick-start-copy small {
    display: block;
}

.quick-start-copy strong {
    margin-bottom: 0.15rem;
    color: var(--app-dark);
    font-size: 1.02rem;
}

.quick-start-copy small {
    color: var(--app-muted);
}

.quick-start-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: var(--quick-accent);
    background: var(--quick-tint);
    font-weight: 700;
}

.quick-start-item:hover .quick-start-action,
.quick-start-item:focus .quick-start-action {
    color: #fff;
    background: var(--quick-accent);
}

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

.empty-state {
    border-radius: 1.25rem;
}

.property-card {
    overflow: hidden;
    border-radius: var(--app-radius);
}

.property-thumb {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #eee3d3;
    transition: transform 420ms ease;
}

.property-card:hover .property-thumb {
    transform: scale(1.035);
}

.property-thumb-empty,
.property-gallery-empty {
    display: grid;
    place-items: center;
    color: var(--app-muted);
    font-weight: 700;
}

.property-price {
    font-weight: 800;
    color: var(--app-primary);
    font-size: 1.3rem;
}

.property-price span {
    color: var(--app-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.status-available {
    color: #2b4f7c;
    background: #e4edf8;
}

.status-rented {
    color: #7a4a05;
    background: #fff1cf;
}

.status-maintenance {
    color: #8a1c1c;
    background: #ffe2e2;
}

.contract-active {
    color: #2b4f7c;
    background: #e4edf8;
}

.contract-expired {
    color: #6b5d12;
    background: #fff6c7;
}

.contract-cancelled {
    color: #8a1c1c;
    background: #ffe2e2;
}

.invoice-paid {
    color: #2b4f7c;
    background: #e4edf8;
}

.invoice-unpaid {
    color: #6f4b10;
    background: #fff1cf;
}

.invoice-partial {
    color: #155b79;
    background: #dff3ff;
}

.invoice-overdue {
    color: #8a1c1c;
    background: #ffe2e2;
}

.maintenance-pending {
    color: #7a4a05;
    background: #fff1cf;
}

.maintenance-in_progress {
    color: #155b79;
    background: #dff3ff;
}

.maintenance-completed {
    color: #2b4f7c;
    background: #e4edf8;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.image-preview {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid var(--app-border);
}

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

.property-gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(21, 37, 31, 0.09);
}

.property-gallery img:first-child {
    grid-column: 1 / -1;
    height: 360px;
}

.property-gallery-empty {
    min-height: 360px;
    border: 1px dashed var(--app-border);
    border-radius: 1rem;
    background: #fbf7ef;
}

.details-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.details-list div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
}

.details-list dt {
    color: var(--app-muted);
    font-weight: 400;
}

.details-list dd {
    margin: 0;
    font-weight: 700;
}

.pre-line {
    white-space: pre-line;
}

.danger-zone {
    border: 1px solid #ffd6d6 !important;
}

.app-table th {
    color: var(--app-muted);
    font-weight: 700;
    background: rgba(251, 247, 239, 0.88);
}

.app-table th,
.app-table td {
    padding: 1rem;
}

.app-table tbody tr {
    transition: background-color 180ms ease, transform 180ms ease;
}

.app-table tbody tr:hover {
    background: rgba(61, 95, 147, 0.055);
}

.profile-card {
    border-radius: 1.25rem;
}

.tenant-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary), var(--app-gold));
    font-size: 1.8rem;
    font-weight: 800;
}

.placeholder-panel {
    padding: 1.25rem;
    border: 1px dashed var(--app-border);
    border-radius: 1rem;
    background: rgba(251, 247, 239, 0.72);
    color: var(--app-muted);
}

.alert-widget {
    display: block;
    height: 100%;
    padding: 1.25rem;
    border-radius: var(--app-radius);
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-dark);
    text-decoration: none;
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(14px);
}

.alert-widget:hover {
    color: var(--app-dark);
    transform: translateY(-3px);
    box-shadow: var(--app-shadow-hover);
}

.alert-widget span,
.alert-widget small {
    display: block;
    color: var(--app-muted);
}

.alert-widget strong {
    display: block;
    margin: 0.4rem 0;
    font-size: 2rem;
    line-height: 1;
}

.alert-widget.due strong {
    color: #7a4a05;
}

.alert-widget.overdue strong {
    color: #8a1c1c;
}

.alert-widget.ending strong {
    color: #155b79;
}

.alert-widget.upcoming strong {
    color: var(--app-primary);
}

.alert-list {
    display: grid;
    gap: 0.75rem;
}

.alert-item {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--app-border);
    background: rgba(251, 247, 239, 0.76);
    color: var(--app-dark);
    text-decoration: none;
}

.alert-item:hover {
    color: var(--app-dark);
    background: #f7efe1;
    transform: translateX(-2px);
}

.alert-item strong,
.alert-item span {
    display: block;
}

.alert-item span {
    margin-top: 0.25rem;
    color: var(--app-muted);
    font-size: 0.9rem;
}

.alert-item.danger {
    border-color: #ffd6d6;
    background: #fff5f5;
}

.alert-item.warning {
    border-color: #ffe4ad;
    background: #fff9ec;
}

.alert-item.info {
    border-color: #caedff;
    background: #f2fbff;
}

.alert-list.detailed .alert-item {
    padding: 1rem;
}

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

.timeline-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    background: rgba(251, 247, 239, 0.76);
}

.timeline-list span {
    color: var(--app-muted);
}

.report-chart {
    display: grid;
    gap: 1rem;
}

.chart-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    align-items: center;
}

.chart-label {
    color: var(--app-muted);
    font-weight: 700;
}

.chart-bars {
    display: grid;
    gap: 0.35rem;
}

.chart-bar {
    min-width: 64px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(21, 37, 31, 0.1);
    animation: chartGrow 700ms ease both;
}

.chart-bar.income {
    background: linear-gradient(90deg, var(--app-primary-dark), var(--app-primary));
}

.chart-bar.expense {
    background: linear-gradient(90deg, #8f352b, #bd6042);
}

.party-box {
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: rgba(251, 247, 239, 0.76);
}

.contract-paragraph {
    line-height: 2;
    font-size: 1.05rem;
}

.print-contract {
    border-radius: 1.25rem;
}

.print-table th {
    width: 20%;
    background: #fbf7ef;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.signature-grid span {
    display: block;
    height: 70px;
    border-bottom: 1px solid var(--app-dark);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--reveal-delay, 0ms);
}

@keyframes chartGrow {
    from {
        transform: scaleX(0.72);
        transform-origin: right center;
        opacity: 0.55;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes popoverIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes softPulse {

    0%,
    100% {
        opacity: 0.28;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

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

    .app-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 50;
        width: min(86vw, 320px);
        transform: translateX(105%);
        transition: transform 260ms ease;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 45;
        display: block;
        pointer-events: none;
        background: rgba(15, 23, 42, 0.46);
        opacity: 0;
        backdrop-filter: blur(4px);
        transition: opacity 220ms ease;
    }

    body.sidebar-open .sidebar-scrim {
        pointer-events: auto;
        opacity: 1;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: grid;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: row;
    }

    .user-menu {
        width: auto;
        justify-content: space-between;
    }

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

    .quick-start-item {
        grid-template-columns: auto auto 1fr;
    }

    .quick-start-action {
        grid-column: 3;
        width: max-content;
    }

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

    .property-gallery img,
    .property-gallery img:first-child {
        height: 240px;
    }
}

@media (max-width: 576px) {

    .content-area,
    .topbar,
    .app-sidebar {
        padding: 1rem;
    }

    .dashboard-hero {
        padding: 1.25rem;
        min-height: 190px;
        border-radius: 1.1rem;
    }

    .topbar {
        flex-direction: column;
    }

    .topbar-title,
    .user-menu {
        width: 100%;
    }

    .user-menu .btn {
        white-space: nowrap;
    }

    .notification-popover {
        right: 0;
        left: auto;
        width: calc(100vw - 2rem);
    }

    .details-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .signature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media print {
    body {
        background: #fff;
    }

    .app-shell {
        display: block;
    }

    .app-sidebar,
    .topbar,
    .print-actions,
    .alert,
    .btn {
        display: none !important;
    }

    .content-area {
        padding: 0;
    }

    .card,
    .print-contract {
        border: 0 !important;
        box-shadow: none !important;
    }
}
