/* Shared styles for the Bulgarian home dashboards. */
.owner-home { --home-ink: #263244; --home-muted: #657386; --home-line: #e1e6ee; color: var(--home-ink); padding: 36px 24px 56px; }
.owner-home-inner { max-width: 1240px; margin: 0 auto; }
.owner-home a { color: inherit; }
.owner-home a:focus-visible { outline: 3px solid #c6414e; outline-offset: 4px; }
.owner-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.owner-home-eyebrow { display: block; color: #8a5961; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; margin-bottom: 10px; }
.owner-home h1 { color: var(--home-ink); font-size: 30px; line-height: 1.3; margin-bottom: 8px; }
.owner-home-heading p { color: var(--home-muted); font-size: 14px; line-height: 1.7; }
.owner-home .owner-home-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: #c6414e; color: #fff; border-radius: 8px; padding: 12px 18px; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.owner-home .owner-home-button:hover { background: #ad3043; }
.owner-home-event-reminder {
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid #e2a633;
    border-inline-start: 5px solid #c27500;
    border-radius: 10px;
    background: #ffedbd;
    color: #593800;
}
.owner-home-event-reminder h2 { color: inherit; font-size: 15px; }
.owner-home-event-reminder li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 6px;
}
.owner-home-event-reminder li + li { border-top: 1px solid #e5bd6b; padding-top: 6px; }
.owner-home-event-reminder li span { display: block; font-size: 13px; }
.owner-home .owner-home-event-reminder a {
    color: #875013;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.owner-home .owner-home-event-reminder a:hover { color: #593800; }
.owner-home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.owner-home .manager-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.owner-home-stat { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--home-line); border-radius: 14px; padding: 22px; min-width: 0; box-shadow: 0 3px 14px rgba(25,45,70,.035); transition: box-shadow .15s, border-color .15s; }
.owner-home-stat:hover { border-color: #d2b5bd; box-shadow: 0 5px 18px rgba(25,45,70,.08); }
.owner-home-stat-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #f9eef0; color: #b53a4b; margin-bottom: 14px; font-size: 17px; }
.owner-home-label { font-size: 13px; color: var(--home-muted); }
.owner-home-stat > strong { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.3; margin: 8px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.owner-home-note { font-size: 12px; color: var(--home-muted); line-height: 1.6; }
.owner-home-note i { font-size: 11px; margin-left: 4px; }
.owner-home-attention { border-top: 3px solid #c6414e; padding-top: 20px; }
.owner-home .owner-home-positive { color: #237b60; }
.owner-home .owner-home-due { color: #b33345; }
.owner-home-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.owner-home-columns > section { min-width: 0; }
.owner-home-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.owner-home h2 { color: var(--home-ink); font-size: 20px; line-height: 1.5; }
.owner-home-section-heading p { font-size: 13px; color: var(--home-muted); line-height: 1.7; margin-top: 4px; }
.owner-home-section-heading > a { color: #ad3043; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.owner-home-notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid #eadab3; border-radius: 10px; background: #fffaf0; margin-bottom: 16px; }
.owner-home-notice > i { color: #9b7428; }
.owner-home-notice p { font-size: 13px; line-height: 1.7; }
.owner-home-notice a { color: #805c1c; text-decoration: underline; }
.owner-home-properties { display: grid; gap: 16px; }
.owner-home-property, .owner-home-panel, .owner-home-empty { background: #fff; border: 1px solid var(--home-line); border-radius: 14px; padding: 22px; box-shadow: 0 3px 14px rgba(25,45,70,.035); }
.owner-home .manager-building-card { display: flex; flex-direction: column; gap: 16px; }
.owner-home .manager-building-card:is(:hover, :focus-visible) {
    border-color: #d2b5bd;
    box-shadow: 0 5px 18px rgba(25,45,70,.08);
}
.owner-home .manager-building-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 210px;
    margin-inline: auto;
    border-radius: 12px;
}
.owner-home .manager-building-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 14px;
}
.owner-home .manager-building-card.is-portrait {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    align-items: start;
}
.owner-home .is-portrait .manager-building-details { align-self: stretch; }
.owner-home .manager-building-card h2 { font-size: 17px; overflow-wrap: anywhere; }
.owner-home .manager-building-id {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin-top: 10px;
    padding: 5px 9px;
    border: 1px solid #d5e3f3;
    border-radius: 7px;
    background: #edf4fc;
    color: #244b71;
    font-size: 12px;
}
.owner-home .manager-building-id strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.owner-home-property-heading { display: flex; align-items: center; gap: 12px; }
.owner-home-property-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #f1f4f8; color: #78869b; font-size: 18px; }
.owner-home-property-heading > div { min-width: 0; flex: 1; }
.owner-home h3 { font-size: 17px; color: var(--home-ink); line-height: 1.5; }
.owner-home-property h3 a:hover { color: #ad3043; }
.owner-home-property-heading p { font-size: 13px; color: var(--home-muted); line-height: 1.7; margin-top: 3px; overflow-wrap: anywhere; }
.owner-home-badge { font-size: 11px; font-weight: 600; border-radius: 20px; background: #e9f5ef; color: #237b60; padding: 5px 9px; flex-shrink: 0; }
.owner-home-badge-neutral { background: #edf0f5; color: #657386; }
.owner-home-property-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: #f8fafc;
}
.owner-home-property-meta a { display: flex; flex-direction: column; gap: 5px; }
.owner-home-property-meta span { color: var(--home-muted); font-size: 12px; line-height: 1.5; }
.owner-home-property-meta strong { font-size: 18px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.owner-home-property-meta strong.badge { font-size: 13px; min-width: 24px; }
.owner-home-property-meta a:hover span { color: #ad3043; }
.owner-home-property-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-home-property-actions a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #526379; background: #f7f9fb; border: 1px solid #e4e9f1; border-radius: 7px; padding: 8px 10px; }
.owner-home-property-actions a:hover { color: #ad3043; background: #fcf1f3; border-color: #e8cbd1; }
.owner-home-moderator-badge { background: #f1ebfa; color: #5f4d8b; font-size: 10px; margin-bottom: 8px; }
.owner-home .owner-home-moderator { background: #faf7fd; border-color: #e8dff1; }
.owner-home-moderator h2 { margin-bottom: 4px; }
.owner-home-moderator p { color: var(--home-muted); font-size: 13px; line-height: 1.6; }
.owner-home-moderator-building { border-top: 1px solid var(--home-line); margin-top: 12px; padding-top: 12px; }
.owner-home-moderator-building h3 {
    display: inline-block;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 12px;
    background: #f1ebfa;
    font-size: 14px;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}
.owner-home-moderator .owner-home-moderator-context { font-weight: 600; margin-bottom: 3px; }
.owner-home-moderator .owner-home-moderator-id { margin-bottom: 10px; }
.owner-home-moderator-id strong { color: var(--home-ink); font-variant-numeric: tabular-nums; }
.owner-home-inactive { margin-top: 14px; color: var(--home-muted); font-size: 13px; line-height: 1.7; }
.owner-home-inactive a { text-decoration: underline; }
.owner-home-aside { display: grid; gap: 18px; }
.owner-home-dashboard {
    display: grid;
    gap: 24px;
}

.owner-home-dashboard > section { min-width: 0; }
.owner-home-condominiums {
    border-top: 1px solid var(--home-line);
    padding-top: 24px;
}
.owner-home-panel.owner-home-quick-access {
    display: grid;
    padding-block: 12px;
    margin-bottom: 24px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    column-gap: 20px;
}
.owner-home-panel.owner-home-quick-access h2 { grid-column: 1 / -1; margin-bottom: 4px; }
.owner-home-quick-access .owner-home-shortcut {
    border-bottom: 0;
    padding-block: 6px;
}
.owner-home-dashboard .owner-home-properties {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 410px), 1fr));
}
.owner-home-dashboard .owner-home-aside {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    align-items: start;
}

@media (min-width: 992px) {
    .owner-home-dashboard .owner-home-aside:has(.owner-home-moderator) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .owner-home-dashboard { gap: 20px; }
    .owner-home-dashboard .owner-home-aside { grid-template-columns: minmax(0, 1fr); }
}

.owner-home-panel h2 { font-size: 18px; margin-bottom: 12px; }
.owner-home-shortcut { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid #edf0f5; }
.owner-home-shortcut:last-child { padding-bottom: 0; border-bottom: 0; }
.owner-home-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.owner-home-shortcut-icon { color: #ad5360; width: 24px; flex-shrink: 0; font-size: 18px; }
.owner-home-shortcut strong { display: block; color: var(--home-ink); font-size: 14px; }
.owner-home-shortcut small { display: block; color: var(--home-muted); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.owner-home-shortcut > i { color: #8a97a9; font-size: 11px; }
.owner-home-shortcut:hover strong { color: #ad3043; }
.owner-home-help { background: #faf5f6; border-color: #eadce0; }
.owner-home-help .owner-home-eyebrow { font-size: 10px; letter-spacing: .8px; }
.owner-home-help p { font-size: 13px; line-height: 1.8; color: var(--home-muted); }
.owner-home-help > a { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; font-weight: 600; color: #ad3043; }
.owner-home-empty { text-align: center; padding: 36px 24px; }
.owner-home-empty > i { display: block; font-size: 32px; color: #ad7c85; margin-bottom: 16px; }
.owner-home-empty p { max-width: 470px; margin: 10px auto 20px; font-size: 14px; line-height: 1.8; color: var(--home-muted); }
@media (max-width: 991px) {
    .owner-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owner-home-columns { grid-template-columns: 1fr; }
    .owner-home-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .owner-home { padding: 24px 16px 36px; }
    .owner-home-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
    .owner-home h1 { font-size: 25px; }
    .owner-home-stats { gap: 10px; }
    .owner-home-stat { padding: 16px; }
    .owner-home-attention { padding-top: 14px; }
    .owner-home-stat > strong { font-size: 23px; }
    .owner-home-stat-icon { margin-bottom: 10px; }
    .owner-home-columns { gap: 20px; }
    .owner-home-section-heading { flex-wrap: wrap; gap: 8px; }
    .owner-home-aside { grid-template-columns: 1fr; }
    .owner-home-property, .owner-home-panel { padding: 18px; }
    .owner-home-property-heading { flex-wrap: wrap; }
    .owner-home-property-heading > div { flex-basis: calc(100% - 54px); }
    .owner-home-badge { margin-left: 54px; }
    .owner-home-property-actions a { flex: 1 1 135px; justify-content: center; }
}

/* Emphasize outstanding balances without changing the debt-free state. */
.owner-home .owner-home-debt { position: relative; background: #fff1f3; border-color: #df9ba6; border-top-color: #bf3045; box-shadow: 0 3px 14px rgba(174,45,65,.09); }
.owner-home .owner-home-debt:hover { background: #fde9ed; border-color: #c6414e; }
.owner-home .owner-home-debt > strong { color: #b02b40; }
.owner-home .owner-home-debt .owner-home-stat-icon { background: #f8dce2; color: #b02b40; }
.owner-home .owner-home-debt-badge { display: inline-flex; align-items: center; gap: 5px; color: #a92b3e; background: #f8dce2; border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }

.manager-home-building-status {
    margin-block: 16px;
    border: 1px solid var(--summary-status-border);
    border-radius: 8px;
    background: var(--summary-status-body);
    color: var(--summary-status-ink);
    overflow: hidden;
}
.manager-home-building-status summary {
    padding: 6px 10px;
    background: var(--summary-status-heading);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}
.manager-home-building-status-body { padding: 10px 12px; }
.manager-home-building-status.manager-summary-status-ready .manager-home-building-status-body {
    padding: 8px 10px;
}
.manager-home-building-status.manager-summary-status-ready .manager-home-building-status-body > section {
    gap: 8px !important;
}
.manager-home-building-status.manager-summary-status-ready .manager-home-building-status-body h2 {
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}
.manager-home-building-status.manager-summary-status-ready .manager-home-building-status-body p {
    font-size: 12px;
    line-height: 1.45;
}
.manager-home-building-status.manager-summary-status-ready .manager-home-building-status-body .fa-circle-check {
    font-size: 12px;
    line-height: 1;
}

.home-payment-actions {
    margin-block: 14px;
    padding: 12px;
    border: 1px solid #e0e8f1;
    border-radius: 12px;
    background: #f7f9fc;
    scroll-margin-top: 110px;
}
.home-payment-actions h4 {
    margin: 0 0 8px;
    color: #253850;
    font-size: 14px;
    font-weight: 700;
}
.home-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.home-payment-options > div {
    display: flex;
    flex-direction: column;
}
.home-payment-options p {
    margin: 5px 0 0;
    color: #526379;
    font-size: 12px;
}
.home-payment-button {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    min-height: 42px;
    border: 1px solid #94a9c2;
    border-radius: 8px;
    background: #fff;
    color: #304a69;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}
.home-payment-button:is(:hover, :focus-visible) { color: #253850; background: #eaf2fb; }
.home-payment-button.home-payment-primary {
    color: #244967;
    background: #dcebf8;
    border-color: #a6bfd5;
}
.home-payment-button.home-payment-primary:is(:hover, :focus-visible) {
    background: #ccdef0;
    border-color: #789ab8;
}
.home-payment-history {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #5f4d8b;
    font-size: 13px;
    font-weight: 600;
}
.home-payment-history:is(:hover, :focus-visible) {
    color: #493672;
    text-decoration: underline;
}
@media (max-width: 575px) {
    .home-payment-options { grid-template-columns: 1fr; }
}

.manager-home-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
    gap: 8px;
    margin-top: 14px;
}
.manager-home-overview-item {
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #e0e8f1;
    border-radius: 10px;
    background: #f7f9fc;
    color: #526379;
    font-size: 12px;
}
.manager-home-overview-item strong {
    color: #253850;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}
.manager-home-overview-item small { font-size: 11px; }
.manager-home-overview-item small a { color: inherit; text-decoration: underline; }
.manager-home-overview-item.has-debt { background: #fff6f7; border-color: #efcbd2; }
.manager-home-overview-item.has-debt strong { color: #9d2439; }
a.manager-home-overview-item:is(:hover, :focus-visible) { border-color: #91abc4; }
