:root {
    --petrol: #102D35;
    --ice: #EBF7F5;
    --lime: #D9FA57;
    --lime-hover: #c8ec36;
}

html { background: var(--ice); }
body { background-color: var(--ice) !important; }
::selection { background: var(--lime); color: var(--petrol); }

.bg-slate-900 { background-color: var(--petrol) !important; }
.hover\:bg-slate-800:hover { background-color: #18414c !important; }
.bg-orange-500 { background-color: var(--lime) !important; color: var(--petrol) !important; }
.hover\:bg-orange-600:hover { background-color: var(--lime-hover) !important; }
.bg-orange-50 { background-color: var(--ice) !important; }
.border-orange-200, .border-orange-300 { border-color: #b7d933 !important; }
.text-orange-300, .text-orange-500, .text-orange-600, .text-orange-700, .text-orange-800, .text-orange-900 { color: var(--petrol) !important; }
.focus\:border-orange-500:focus { border-color: var(--lime-hover) !important; box-shadow: 0 0 0 3px rgb(217 250 87 / 35%); }
.focus\:ring-orange-500:focus { --tw-ring-color: var(--lime) !important; }
.text-orange-500, .accent-orange-500 { accent-color: var(--lime-hover); }

button, a, input, select, textarea { touch-action: manipulation; }
button, input, select, textarea { min-height: 44px; }
:focus-visible { outline: 3px solid var(--lime-hover); outline-offset: 2px; }

.portal-logout { display: block; }
.portal-logout button { min-height: 0; width: 100%; text-align: left; }

.reminder-setting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1.3fr);
    align-items: center;
    gap: 1.5rem;
}
.reminder-slider-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: center;
    gap: 1rem;
}
.reminder-slider {
    width: 100%;
    min-height: 44px;
    accent-color: var(--petrol);
}
.reminder-slider-value {
    min-width: 78px;
    text-align: right;
    font-size: .875rem;
    font-weight: 700;
    color: var(--petrol);
}

.property-page { width: 100%; max-width: 92rem; }
.property-hero { border-radius: 1.75rem; }
.property-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.property-stat-card {
    min-width: 0;
    border-radius: 1rem;
}
.property-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.property-notification-panel { border-radius: 1rem; }
.property-notification-header { padding: 1.25rem 1.5rem; }
.property-notification-header h2 { margin: 0; line-height: 1.35; }
.property-notification-header p { margin-top: .35rem; margin-bottom: 0; }
.property-notification-empty { min-height: 72px; margin: 0; padding: 1.5rem; display: flex; align-items: center; }

.property-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 1.75rem;
}
.property-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.property-hero__reference,
.property-hero__status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: .25rem .75rem;
}
.property-hero__reference,
.property-hero__note { color: var(--lime) !important; }
.property-hero__title {
    margin-top: 1rem;
    line-height: 1.15;
}
.property-hero__address {
    margin-top: .5rem;
    color: #d6e7e5 !important;
}
.property-hero__note { margin-top: .75rem; }
.property-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.property-hero__actions > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .625rem 1rem;
}

/* Property document groups use explicit layout rules so spacing remains stable
   even when a host serves an older or reduced Tailwind build. */
.property-category-link {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
}
.property-category-link__count {
    display: inline-flex;
    min-width: 2rem;
    min-height: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: .25rem .625rem;
}
.property-category-section { overflow: hidden; }
.property-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}
.property-category-header__count {
    display: inline-flex;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    min-height: 2.5rem;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
}
.property-category-empty { padding: 1.25rem 1.5rem; }
.property-document-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}
.property-document-card {
    display: flex;
    min-width: 0;
    min-height: 180px;
    flex-direction: column;
    padding: 1.25rem;
}
.property-document-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.property-document-sensitive {
    display: inline-flex;
    min-height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: .375rem .75rem;
    white-space: nowrap;
}
.property-document-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.25rem;
    row-gap: .5rem;
    margin-top: 1rem;
    line-height: 1.4;
}
.property-document-meta > span { display: inline-block; }
.property-document-action {
    margin-top: auto;
    padding-top: 1.25rem;
}
.property-document-action > a {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .625rem 1rem;
}

.account-step { display: flex; align-items: center; gap: 1rem; }
.account-step > span {
    display: inline-flex; width: 2.5rem; height: 2.5rem; flex: 0 0 auto;
    align-items: center; justify-content: center; border-radius: 999px;
    background: var(--lime); color: var(--navy); font-weight: 800;
}
.account-step h2 { margin: 0; font-size: 1.25rem; line-height: 1.5; font-weight: 700; }
.account-step p { margin: .2rem 0 0; color: #64748b; font-size: .875rem; }
.account-package-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.account-package-card { position: relative; display: block; cursor: pointer; }
.account-package-card > input { position: absolute; opacity: 0; pointer-events: none; }
.account-package-card__body {
    display: flex; min-height: 148px; flex-direction: column; gap: .65rem;
    border: 2px solid #dbe5e4; border-radius: 1rem; background: #fff;
    padding: 1.15rem; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.account-package-card:hover .account-package-card__body { border-color: #94a3b8; transform: translateY(-1px); }
.account-package-card > input:checked + .account-package-card__body { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(207, 255, 61, .28); }
.account-package-card > input:focus-visible + .account-package-card__body { outline: 3px solid #0f766e; outline-offset: 2px; }
.account-package-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.account-package-card__top strong { font-size: 1.05rem; color: var(--navy); }
.account-package-card__top em { border-radius: 999px; background: #ecfccb; padding: .3rem .55rem; color: #3f6212; font-size: .7rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.account-package-card__body > span:not(.account-package-card__top) { color: #64748b; font-size: .875rem; line-height: 1.45; }
.account-package-card__body > b { margin-top: auto; color: var(--navy); }
.account-package-card--disabled { cursor: not-allowed; opacity: .5; }

@media (min-width: 700px) {
    .account-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
    .property-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .property-hero__layout {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        padding: 2.5rem;
    }
    .property-hero__actions { justify-content: flex-end; }
    .property-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .property-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .property-document-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    aside nav {
        display: flex;
        gap: .5rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding-bottom: 1rem;
        scrollbar-width: thin;
    }
    aside nav > a, aside nav > form { flex: 0 0 auto; }
    .portal-logout button { white-space: nowrap; }
}

@media (max-width: 767px) {
    main { overflow-x: hidden; }
    .overflow-x-auto { overflow: visible !important; }
    table { min-width: 0 !important; width: 100%; }
    table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table tbody, table tr, table td { display: block; width: 100%; }
    table tr { padding: .35rem 0; border-bottom: 1px solid #d7e5e2; }
    table td { padding: .65rem 1rem !important; text-align: left !important; }
    table td:last-child > div { justify-content: flex-start !important; flex-wrap: wrap; }
    h1 { font-size: 1.75rem !important; line-height: 2.1rem !important; }
    .property-category-header,
    .property-category-empty,
    .property-document-grid { padding-left: 1rem; padding-right: 1rem; }
    .property-document-card { min-height: 0; padding: 1rem; }
    .property-document-heading { gap: .75rem; }
    .property-hero__layout { gap: 1.5rem; padding: 1.5rem; }
    .property-hero__actions > a { flex: 1 1 140px; }
    .property-stat-grid, .property-category-grid { grid-template-columns: minmax(0, 1fr); }
    .reminder-setting-row { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}

