/* =============================================================================
   PRECENLY — portfolio.css
   Modul „Tvorba a správa portfólia"
   ============================================================================= */

/* ─── PORTFOLIO PAYWALL ────────────────────────────────────────────────────── */
.portfolio-paywall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 48px 24px;
    text-align: center;
}

.portfolio-paywall-card {
    background: #fff;
    border: 1px solid #111;
    border-radius: 0;
    padding: 56px 48px;
    max-width: 580px;
    width: 100%;
    box-shadow: none;
    animation: pfSlideUp 0.4s ease-out;
}

@keyframes pfSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.portfolio-paywall-icon {
    width: 72px;
    height: 72px;
    background: #111;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: none;
}

.portfolio-paywall-icon svg {
    color: #fff;
    width: 32px;
    height: 32px;
}

.portfolio-paywall h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.portfolio-paywall-sub {
    font-size: 1rem;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.portfolio-features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.portfolio-features-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: #111;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-paywall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #111;
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: none;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.portfolio-paywall-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.portfolio-paywall-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #999;
}

/* ─── PORTFOLIO MAIN LAYOUT ─────────────────────────────────────────────────── */
#pf-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* ─── PORTFOLIO HEADER WITH TABS ─────────────────────────────────────────────── */
.pf-nav-wrap {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 40px;
}

.pf-nav-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.pf-nav-toggle-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pf-nav-toggle-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
    height: 14px;
    flex-shrink: 0;
}

.pf-nav-toggle-burger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #111;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.pf-nav-toggle.open .pf-nav-toggle-burger .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.pf-nav-toggle.open .pf-nav-toggle-burger .bar:nth-child(2) {
    opacity: 0;
}

.pf-nav-toggle.open .pf-nav-toggle-burger .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.pf-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    box-shadow: inset 0 -1px 0 #eaeaea;
    flex-shrink: 0;
}

.pf-nav-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 -3px 0 transparent;
    transition: all 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}

.pf-nav-tab:hover {
    color: #111;
}

.pf-nav-tab.active {
    color: #111;
    box-shadow: inset 0 -3px 0 #111;
}

.pf-nav-tab svg {
    width: 14px;
    height: 14px;
}

.pf-section {
    display: none;
}

.pf-section.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.25s ease;
}

/* ─── KPI STAT CARDS ─────────────────────────────────────────────────────────── */
.pf-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.pf-kpi-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pf-kpi-card:last-child {
    border-right: 1px solid #e8e8e8;
}

.pf-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-kpi-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pf-kpi-value-unit {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #111;
}

.pf-kpi-sub {
    font-size: 0.72rem;
    color: #888;
    font-weight: 600;
    margin-top: 8px;
    border-top: none;
    padding-top: 0;
}

.pf-kpi-positive, .pf-kpi-negative, .pf-kpi-neutral { color: #111; }
.pf-kpi-accent-bar { display: none; }

/* ─── CHART PANEL ─────────────────────────────────────────────────────────────── */
.pf-chart-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.pf-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.pf-chart-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
}

.pf-chart-legend {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
}

.pf-chart-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.pf-chart-canvas-wrap {
    position: relative;
    height: 220px;
}

/* ─── PROPERTY CARDS ──────────────────────────────────────────────────────────── */
.pf-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.pf-prop-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: none;
    cursor: pointer;
    position: relative;
}

.pf-prop-card:hover {
    box-shadow: none;
    transform: none;
    border-color: transparent;
}

/* Dlaždica s ikonou typu nehnuteľnosti — nahrádza fotografie */
.pf-type-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 8px;
    flex-shrink: 0;
}

.pf-type-tile--md {
    width: 48px;
    height: 48px;
}

.pf-type-tile--sm {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.pf-prop-body {
    padding: 24px 0 0 0;
}

.pf-prop-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    color: #111;
    border-radius: 0;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.badge-byt, .badge-dom, .badge-garaz, .badge-komercny { background: #fff; color: #111; }

.pf-prop-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    border-bottom: 1px solid #111;
    padding-bottom: 16px;
    gap: 16px;
}

.pf-prop-header-row > div:first-child {
    min-width: 0;
    flex: 1;
}

.pf-prop-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-prop-address {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-prop-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.pf-prop-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dotted #ccc;
}

.pf-prop-stat-row:last-child {
    border-bottom: none;
}

.pf-prop-stat-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pf-prop-stat-value {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111;
}

.pf-prop-stat-value.green, .pf-prop-stat-value.red { color: #111; }

.pf-prop-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.pf-prop-card:hover .pf-prop-actions {
    opacity: 1;
}

.pf-prop-action-btn {
    padding: 8px;
    border-radius: 0;
    border: none;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.pf-prop-action-btn:hover {
    background: #111;
    color: #fff;
}

.pf-prop-action-btn.danger:hover {
    background: #111;
    color: #fff;
}

/* ─── ADD PROPERTY BTN ────────────────────────────────────────────────────────── */
.pf-add-card {
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #bbb;
}

.pf-add-card:hover {
    border-color: #999;
    color: #555;
    background: #f5f5f5;
}

.pf-add-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pf-add-card:hover .pf-add-card-icon {
    background: #ddd;
}

.pf-add-card-text {
    font-size: 0.9rem;
    font-weight: 700;
}

/* ─── SECTION HEADER ──────────────────────────────────────────────────────────── */
.pf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pf-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
}

.pf-section-sub {
    font-size: 0.83rem;
    color: #888;
    font-weight: 500;
    margin-top: 2px;
}

.pf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.pf-btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.pf-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.pf-btn-secondary:hover {
    border-color: #111;
    background: #fafafa;
}

/* ─── MODAL OVERLAY ─────────────────────────────────────────────────────────── */
.pf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: pfFadeIn 0.2s ease;
}

@keyframes pfFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pf-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
    animation: pfModalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}

@keyframes pfModalIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.pf-modal-lg {
    max-width: 760px;
}

.pf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.pf-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
}

.pf-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f4f4f4;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: all 0.15s;
}

.pf-modal-close:hover {
    background: #eaeaea;
    color: #111;
}

.pf-modal-body {
    padding: 28px;
}

.pf-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 28px;
    border-top: 1px solid #eaeaea;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

/* ─── STEPPER ────────────────────────────────────────────────────────────────── */
.pf-stepper {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    position: relative;
}

.pf-stepper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #eaeaea;
    z-index: 0;
}

.pf-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.pf-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eaeaea;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    transition: all 0.3s;
}

.pf-step.active .pf-step-num {
    background: #111;
    color: #fff;
}

.pf-step.done .pf-step-num {
    background: #555;
    color: #fff;
}

.pf-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #aaa;
    text-align: center;
    white-space: nowrap;
}

.pf-step.active .pf-step-label,
.pf-step.done .pf-step-label {
    color: #111;
}

/* ─── FORM STYLES ────────────────────────────────────────────────────────────── */
.pf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.pf-form-grid.cols-1 {
    grid-template-columns: 1fr;
}

.pf-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-form-group.span-2 {
    grid-column: 1 / -1;
}

.pf-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-label-required::after {
    content: '*';
    color: #888;
    margin-left: 2px;
}

.pf-input, .pf-select, .pf-textarea {
    padding: 10px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    font-weight: 600;
    color: #111;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.pf-input:focus, .pf-select:focus, .pf-textarea:focus {
    border-color: #111;
    background: #fff;
}

.pf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pf-input-wrap .pf-input {
    padding-right: 48px;
    width: 100%;
}

.pf-input-suffix {
    position: absolute;
    right: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #aaa;
    pointer-events: none;
}

.pf-textarea {
    min-height: 80px;
    resize: vertical;
}

.pf-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ─── FINANCE SECTION ──────────────────────────────────────────────────────── */
.pf-finance-panel {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
}

.pf-finance-panel-header {
    padding: 18px 22px;
    background: #fafafa;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #333;
}

.pf-finance-panel-body {
    padding: 20px 22px;
}

.pf-calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 0.9rem;
}

.pf-calc-result-row:last-child {
    border-bottom: none;
}

.pf-calc-result-label {
    color: #666;
    font-weight: 600;
}

.pf-calc-result-value {
    font-weight: 800;
    color: #111;
    font-size: 1rem;
}

.pf-calc-result-value.green { color: #111; }
.pf-calc-result-value.red   { color: #555; }

.pf-calc-highlight {
    background: #111;
    color: #fff;
    border-radius: 0;
    padding: 16px 20px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-calc-highlight .label {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.7;
}

.pf-calc-highlight .value {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.pf-calc-highlight .value.green { color: #fff; }
.pf-calc-highlight .value.red   { color: #aaa; }

/* ─── TENANT SECTION ─────────────────────────────────────────────────────────── */
.pf-tenant-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pf-tenant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.pf-tenant-info {
    flex: 1;
    min-width: 0;
}

.pf-tenant-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 2px;
}

.pf-tenant-meta {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.pf-tenant-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── PAYMENT TRACKER ────────────────────────────────────────────────────────── */
.pf-payment-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pf-payment-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pf-payment-dot {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.pf-payment-dot.paid {
    background: #111;
    border-color: #111;
    color: #fff;
}

.pf-payment-dot.unpaid {
    background: #fff;
    border-color: #111;
    color: #111;
}

.pf-payment-dot.future {
    background: #f4f5f7;
    border-color: #e5e5e5;
    color: #ccc;
    cursor: default;
}

.pf-payment-dot.paid:hover {
    background: #333;
    border-color: #333;
}

.pf-payment-dot.unpaid:hover {
    background: #f4f5f7;
}

.pf-payment-month-label {
    font-size: 0.65rem;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
}

/* ─── MAINTENANCE TRACKER ────────────────────────────────────────────────────── */
.pf-maint-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f4f4f4;
}

.pf-maint-item:last-child {
    border-bottom: none;
}

.pf-maint-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.status-dokoncene   { background: #111; }
.status-v-procese   { background: #888; }
.status-planovane   { background: #ccc; }

.pf-maint-content {
    flex: 1;
    min-width: 0;
}

.pf-maint-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.pf-maint-meta {
    font-size: 0.78rem;
    color: #888;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pf-maint-cost {
    font-size: 0.95rem;
    font-weight: 800;
    color: #dc2626;
    white-space: nowrap;
}

.pf-maint-action-btn {
    padding: 6px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pf-maint-action-btn:hover {
    color: #111;
}

.pf-maint-action-btn.danger:hover {
    color: #dc2626;
}



/* ─── NOTIFICATIONS INLINE ───────────────────────────────────────────────────── */
.pf-alert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pf-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
}

.pf-alert.warning {
    background: #fafafa;
    border-left-color: #888;
    color: #333;
}

.pf-alert.danger {
    background: #fafafa;
    border-left-color: #111;
    color: #111;
}

.pf-alert.info {
    background: #fafafa;
    border-left-color: #ccc;
    color: #555;
}

.pf-alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pf-alert-icon svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.pf-alert-title {
    font-weight: 800;
    margin-bottom: 2px;
}

/* ─── REPORTS ─────────────────────────────────────────────────────────────────── */
.pf-report-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.pf-report-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 0.9rem;
}

.pf-report-row:last-child {
    border-bottom: none;
}

.pf-report-label { color: #666; font-weight: 600; }
.pf-report-value { font-weight: 800; color: #111; }
.pf-report-value.positive { color: #111; }
.pf-report-value.negative { color: #555; }

.pf-report-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin: 16px 0 8px;
}

.pf-report-total {
    margin-top: 12px;
    padding: 16px 20px;
    background: #f4f5f7;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 800;
}

.pf-export-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── NAVBADGE PRO ─────────────────────────────────────────────────────────── */
.nav-pro-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background: #111;
    color: #fff;
    padding: 2px 7px;
    border-radius: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── PROPERTY DETAIL DRAWER ──────────────────────────────────────────────── */
.pf-detail-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pf-detail-tab {
    padding: 8px 16px;
    font-size: 0.83rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
    white-space: nowrap;
}

.pf-detail-tab:hover { color: #333; }
.pf-detail-tab.active { color: #111; border-bottom-color: #111; }

/* ─── EMPTY STATES ──────────────────────────────────────────────────────────── */
.pf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: #bbb;
    gap: 12px;
}

.pf-empty-icon { font-size: 2.5rem; }
.pf-empty-icon svg { width: 44px; height: 44px; stroke-width: 1.5; }
.pf-empty-title { font-size: 0.95rem; font-weight: 700; color: #888; }
.pf-empty-sub { font-size: 0.82rem; color: #aaa; }

/* ─── PROPERTY SELECTOR ───────────────────────────────────────────────────── */
.pf-prop-select-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pf-prop-pill {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #eaeaea;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.pf-prop-pill.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.pf-prop-pill:hover:not(.active) {
    border-color: #999;
    color: #111;
}

/* ─── UTILITY GRIDS (zdieľané gridy pre inline-renderované panely) ───────────── */
.pf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pf-grid-3-tight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pf-grid-3-equal {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.pf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pf-grid-3-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.pf-grid-extra {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.pf-impact-grid-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pf-impact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    min-width: 560px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */

/* KPI karty — pri 5 stĺpcoch sa hodnoty na menších desktopoch/tabletoch zalamovali ── */
@media (max-width: 1300px) {
    .pf-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 950px) {
    .pf-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Panel „Rozloženie portfólia" — graf a tabuľka sa stacknú skôr, aby sa nestláčali ── */
@media (max-width: 1300px) {
    .pf-breakdown-body {
        flex-direction: column;
        align-items: stretch;
    }

    .pf-breakdown-chart-wrap {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }
}

/* Tabuľky v Portfóliu — wrap/card layout namiesto horizontálneho scrollu ──────
   Aplikuje sa pridaním triedy "pf-table-cards" na .pf-table-wrap. Tabuľky, kde
   posledný <td> je dátová hodnota (nie akcie), navyše potrebujú modifikátor
   "pf-table-cards--last-data". */
@media (max-width: 1300px) {
    .pf-table-cards {
        overflow-x: visible;
    }

    .pf-table-cards .pf-table thead {
        display: none;
    }

    .pf-table-cards .pf-table,
    .pf-table-cards .pf-table tbody,
    .pf-table-cards .pf-table tr {
        display: block;
        width: 100%;
    }

    .pf-table-cards .pf-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 24px;
        padding: 18px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .pf-table-cards .pf-table tbody tr:last-child {
        border-bottom: none;
    }

    .pf-table-cards .pf-table td {
        display: block;
        padding: 0;
        border: none;
    }

    .pf-table-cards .pf-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #aaa;
        margin-bottom: 4px;
    }

    .pf-table-cards .pf-table td:first-child {
        grid-column: 1 / -1;
        padding-bottom: 4px;
        border-bottom: 1px solid #f5f5f5;
    }

    .pf-table-cards .pf-table td:last-child {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .pf-table-cards--last-data .pf-table td:last-child {
        display: block;
        justify-content: normal;
    }

    /* Tabuľka "Zoznam" nehnuteľností — prvý <td> je foto, skryjeme ho a názov
       (druhý <td>) sa stane nadpisom na celú šírku */
    .pf-table-cards--has-photo .pf-table td:first-child {
        display: none;
    }

    .pf-table-cards--has-photo .pf-table td:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 1;
        padding-bottom: 4px;
        padding-right: 120px;
        border-bottom: 1px solid #f5f5f5;
    }

    /* Akčné ikonky (✎🗑📅) — presunuté hore, na rovnaký riadok ako nadpis karty */
    .pf-table-cards:not(.pf-table-cards--last-data) .pf-table td:first-child {
        grid-row: 1;
        padding-right: 120px;
    }

    .pf-table-cards:not(.pf-table-cards--last-data) .pf-table td:last-child {
        grid-row: 1;
        grid-column: 1 / -1;
        align-self: start;
        justify-content: flex-end;
    }

    /* Detail riadok nájomníka (colspan) — bez zbytočného deliaceho pruhu navrch */
    .pf-tenant-detail-row td:first-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Veľmi malé telefóny — metriky na celú šírku ───────────────────────────────── */
@media (max-width: 480px) {
    .pf-table-cards .pf-table tr {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pf-table-cards .pf-table td:first-child {
        padding-bottom: 8px;
    }

    .pf-table-cards .pf-table td:last-child {
        justify-content: flex-start;
        margin-top: -4px;
    }
}

/* Tablety a menšie — navigácia sekcií ako burger menu ──────────────────────── */
@media (max-width: 768px) {
    .pf-nav-toggle {
        display: flex;
    }

    .pf-nav-tabs {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 30;
        margin-top: 4px;
        background: #fff;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        gap: 0;
    }

    .pf-nav-tabs.pf-nav-open {
        display: flex;
    }

    .pf-nav-tab {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        padding: 14px 16px;
        box-shadow: none;
        border-bottom: 1px solid #f5f5f5;
    }

    .pf-nav-tab:last-child {
        border-bottom: none;
    }

    .pf-nav-tab.active {
        background: #f5f5f5;
        box-shadow: none;
    }

    .pf-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .pf-section-header .pf-btn-primary,
    .pf-section-header .pf-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .pf-prop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pf-prop-price {
        font-size: 1.4rem;
    }

    .pf-prop-header-row {
        flex-wrap: wrap;
    }

    .pf-form-grid {
        grid-template-columns: 1fr;
    }

    .pf-grid-3,
    .pf-grid-3-tight,
    .pf-grid-3-equal,
    .pf-grid-extra {
        grid-template-columns: 1fr;
    }

    .pf-grid-extra > *:last-child {
        width: 100%;
    }

    .portfolio-paywall-card {
        padding: 32px 24px;
    }

    .pf-modal {
        border-radius: 12px 12px 0 0;
        margin: auto 0 0;
        max-height: 92vh;
    }

    .pf-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .pf-input, .pf-select, .pf-textarea {
        padding: 12px 14px;
    }

    .pf-icon-btn {
        width: 36px;
        height: 36px;
    }

    .pf-chart-canvas-wrap {
        height: 180px;
    }

    .pf-table th,
    .pf-table td {
        padding: 10px 12px;
    }

    .pf-table {
        font-size: 0.8rem;
    }

    .pf-loan-card-header {
        flex-wrap: wrap;
    }

    .pf-rental-tabs {
        gap: 6px;
    }

    .pf-float-back {
        bottom: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .pf-breadcrumb-bar {
        flex-wrap: wrap;
    }
}

/* Malé tablety / veľké telefóny ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .pf-settings-grid {
        grid-template-columns: 1fr;
    }

    .pf-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Telefóny ──────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pf-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pf-kpi-card {
        padding: 16px;
    }

    .pf-kpi-value {
        font-size: 1.6rem;
    }

    .pf-kpi-label {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }

    .pf-grid-3-summary {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .pf-modal-header,
    .pf-modal-body,
    .pf-modal-footer {
        padding: 16px;
    }

    .pf-table th,
    .pf-table td {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .pf-loan-stat {
        min-width: 100px;
    }

    .pf-breakdown-chart-wrap {
        width: 130px;
        height: 130px;
    }

    .pf-breakdown-row {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .pf-breakdown-row-left {
        flex: 1 1 100%;
        min-width: 0;
    }

    .pf-breakdown-row-value {
        min-width: 0;
        flex: 1 1 auto;
    }

    .pf-breakdown-row-apprc {
        flex: 0 0 auto;
    }

    .pf-breakdown-row > .pf-breakdown-row-sep:first-of-type {
        display: none;
    }

    .pf-breadcrumb-bar {
        font-size: 0.72rem;
    }

    .pf-step-label {
        font-size: 0.62rem;
    }
}

/* Veľmi malé telefóny ───────────────────────────────────────────────────────── */
@media (max-width: 380px) {
    .pf-kpi-grid {
        grid-template-columns: 1fr;
    }

    .pf-kpi-value {
        font-size: 1.3rem;
    }

    .pf-step-label {
        display: none;
    }
}

/* ─── STEPPER VALIDÁCIA — chybový vstup ────────────────────────────────────── */
.pf-input-error {
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
    animation: pfShake 0.35s ease;
}

@keyframes pfShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    80%       { transform: translateX(-3px); }
}

/* ─── ČIASTOČNÉ PLATBY — dot stav ─────────────────────────────────────────── */
.pf-payment-dot.partial {
    background: #555;
    border: 2px solid #333;
    color: #fff;
}

/* Input pre zadané čiastky */
.pf-pay-amount-input {
    margin-top: 6px;
    width: 100%;
    font-size: 0.78rem !important;
    padding: 4px 8px !important;
    text-align: center;
}

/* ─── DEMO BANNER & MODAL ────────────────────────────────────────────────────── */

.pf-demo-banner {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #fde68a;
    padding: 12px 24px;
    margin-bottom: 16px;
}

.pf-demo-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #92400e;
    font-size: 0.9rem;
}

.pf-demo-banner-content svg {
    flex-shrink: 0;
}

.pf-demo-banner-btn {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.2s;
}

.pf-demo-banner-btn:hover {
    background: #333;
}

@media (max-width: 768px) {
    .pf-demo-banner-content {
        flex-wrap: wrap;
    }
    .pf-demo-banner-btn {
        margin-left: 0;
        width: 70%;
        margin-top: 4px;
    }
}

/* Loan Cards */
.pf-loan-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.pf-loan-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.pf-loan-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pf-loan-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111;
}

.pf-loan-badge {
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pf-loan-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.pf-loan-stat-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pf-loan-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

/* Settings Grid */
.pf-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.pf-settings-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.pf-settings-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── TABLES & LISTS ─────────────────────────────────────────────────────────── */

.pf-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.pf-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.pf-table th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    text-align: left;
    padding: 16px 24px;
    border-bottom: 1px solid #eaeaea;
}

.pf-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
    vertical-align: middle;
}

.pf-table tbody tr:last-child td {
    border-bottom: none;
}

.pf-table tbody tr:hover {
    background: #fafafa;
}

.pf-cell-main {
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.pf-cell-sub {
    color: #888;
    font-size: 0.75rem;
}

/* ─── STATUS BADGES ──────────────────────────────────────────────────────────── */

.pf-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pf-status-green {
    background: #dcfce7;
    color: #166534;
}

.pf-status-red {
    background: #fee2e2;
    color: #991b1b;
}

.pf-status-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.pf-status-blue {
    background: #eff6ff;
    color: #1d4ed8;
}

/* ─── PILLS & FILTERS ────────────────────────────────────────────────────────── */

.pf-rental-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.pf-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pf-pill:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.pf-pill.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.pf-pill-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.pf-pill.active .pf-pill-badge {
    background: #333;
    color: #fff;
}

/* ─── ICON BUTTONS (ACTIONS) ─────────────────────────────────────────────────── */

.pf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.pf-icon-btn:hover {
    background: #f3f4f6;
    color: #111;
}

.pf-icon-btn.danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ─── SETTINGS GRID & CARDS ──────────────────────────────────────────────────── */

.pf-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pf-settings-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pf-settings-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── CATEGORY PILLS (NEHNUTEĽNOSTI FILTER) ──────────────────────────────────── */

.pf-category-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pf-pill-expand {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.pf-pill-expand:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.pf-pill-expand svg {
    transition: transform 0.2s;
}

.pf-pill-expand.open svg {
    transform: rotate(180deg);
}

/* Tablet/mobil — bubliny narážajú do seba, zbalíme na "Všetky" + šípka ─────── */
@media (max-width: 975px) {
    .pf-category-pills .pf-pill[data-prop-type]:not([data-prop-type="all"]) {
        display: none;
    }

    .pf-category-pills.pf-pills-expanded .pf-pill[data-prop-type]:not([data-prop-type="all"]) {
        display: inline-flex;
    }

    .pf-pill-expand {
        display: inline-flex;
    }

    .pf-category-pills.pf-pills-expanded .pf-pills-break {
        flex-basis: 100%;
        height: 0;
    }
}

/* ─── LOAN CARD ───────────────────────────────────────────────────────────────── */

.pf-loan-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.pf-loan-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pf-loan-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.pf-loan-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
}

.pf-loan-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #555;
}

.pf-loan-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 16px;
}

.pf-loan-stat {
    min-width: 140px;
    flex: 1;
    padding: 8px 12px;
}

.pf-loan-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.pf-loan-stat-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.pf-loan-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 12px;
    margin-top: 4px;
}

/* ─── VALIDÁCIA FORMULÁROV ────────────────────────────────────────────────────── */

.pf-input-error {
    border-color: #dc2626 !important;
    animation: pfShake 0.35s ease;
}

@keyframes pfShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.pf-input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* ─── PREHĽAD — EMPTY STATE ──────────────────────────────────────────────────── */

.pf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #aaa;
    gap: 10px;
}

.pf-empty-icon {
    width: 52px;
    height: 52px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    color: #bbb;
}

.pf-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
}

.pf-empty-sub {
    font-size: 0.82rem;
    color: #aaa;
    font-weight: 500;
}

/* ─── CONTACT LIST ───────────────────────────────────────────────────────────── */
.pf-contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #4b5563;
    font-weight: 500;
}

.pf-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.pf-contact-item a:hover {
    color: #111;
}

.pf-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    width: 16px;
}
.pf-contact-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* ─── PORTFOLIO BREAKDOWN WIDGET ─────────────────────────────────────────────── */

.pf-breakdown-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
}

.pf-breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pf-breakdown-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
}

.pf-breakdown-body {
    display: flex;
    align-items: center;
    gap: 32px;
}

.pf-breakdown-chart-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.pf-breakdown-center-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pf-breakdown-center-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

.pf-breakdown-center-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.pf-breakdown-table {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pf-breakdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pf-breakdown-row:last-child {
    border-bottom: none;
}

.pf-breakdown-row-header {
    padding: 0 0 8px;
    border-bottom: 1px solid #e8e8e8;
}

.pf-breakdown-row-header .pf-breakdown-row-left,
.pf-breakdown-row-header .pf-breakdown-row-value,
.pf-breakdown-row-header .pf-breakdown-row-apprc {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
}

.pf-breakdown-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
}

.pf-breakdown-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pf-breakdown-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
}

.pf-breakdown-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.pf-breakdown-row-sep {
    width: 1px;
    height: 20px;
    background: #e8e8e8;
    flex-shrink: 0;
}

.pf-breakdown-row-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    min-width: 130px;
}

.pf-breakdown-row-apprc {
    font-size: 0.85rem;
    font-weight: 700;
}

.pf-prop-list-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e8e8e8;
}

@media (max-width: 768px) {
    .pf-breakdown-row-value {
        min-width: 100px;
    }
}

/* =============================================================================
   BREADCRUMB + BACK NAVIGATION
   ============================================================================= */

.pf-breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
}

.pf-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #555;
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
}

.pf-breadcrumb-item:hover {
    color: #111;
    text-decoration: underline;
}

.pf-breadcrumb-current {
    color: #111;
    font-weight: 800;
    cursor: default;
    text-decoration: none !important;
}

.pf-breadcrumb-sep {
    color: #ccc;
    font-size: 0.9rem;
}

.pf-float-back {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: background 0.15s, transform 0.15s;
}

.pf-float-back:hover {
    background: #333;
    transform: translateY(-1px);
}

/* =============================================================================
   TENANT DETAIL EXPAND ROW
   ============================================================================= */

.pf-tenant-detail-row td {
    background: #fafafa;
    border-top: none !important;
}

/* =============================================================================
   LOAN AMORTIZATION SECTION
   ============================================================================= */

.pf-loan-amort-wrap {
    padding: 12px 20px 16px;
    border-top: 1px dashed #eaeaea;
    margin-top: 8px;
}

/* =============================================================================
   STATUS BADGE — ORANGE VARIANT
   ============================================================================= */

.pf-status-orange {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* =============================================================================
   BANK PICKER — výber banky pomocou lôg
   ============================================================================= */

.bank-picker {
    width: 100%;
}

.bank-picker--error .bank-picker-grid {
    border: 1.5px solid #dc2626;
    border-radius: 12px;
    padding: 4px;
}

.bank-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}

.bank-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border-radius: 10px;
    border: 1.5px solid #e8e8e8;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.bank-card:hover {
    border-color: #bbb;
    background: #f8f8f8;
}

.bank-card--selected {
    border-color: #111;
    background: #f4f4f4;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.bank-card-logo {
    width: 44px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bank-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.bank-card-abbr {
    font-size: 0.62rem;
    font-weight: 800;
    color: #555;
    letter-spacing: 0.03em;
    text-align: center;
}

.bank-card-name {
    font-size: 0.66rem;
    font-weight: 600;
    color: #444;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
    max-width: 72px;
}

.bank-card--selected .bank-card-name {
    color: #111;
    font-weight: 700;
}

.bank-card--other .bank-card-logo {
    opacity: 0.6;
}

.bank-card--other.bank-card--selected .bank-card-logo {
    opacity: 1;
}

.bank-picker-custom {
    margin-top: 10px;
}

@media (max-width: 480px) {
    .bank-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }

    .bank-card {
        padding: 8px 4px 6px;
    }

    .bank-card-logo {
        width: 36px;
        height: 24px;
    }
}
