/* Shared page chrome: tabs, breadcrumbs, record header. Loaded after buttons.css by Site.Master. */

/* ---- Tabs: dark text + 2px charcoal underline when active, gray when not, dark on hover ---- */
.nav-tabs { border-bottom: 1px solid #e5e7eb; }
.nav-tabs .nav-link,
.pm-tabs > button, .pm-tabs > a,
.btn.btn-tab {
    background: transparent !important; border: 0 !important; border-bottom: 2px solid transparent !important;
    border-radius: 0 !important; box-shadow: none !important; transform: none !important;
    color: #6b7280 !important; font-weight: 600; margin-bottom: -1px;
}
.nav-tabs .nav-link:hover, .pm-tabs > button:hover, .pm-tabs > a:hover, .btn.btn-tab:hover { color: #1f2937 !important; }
.nav-tabs .nav-link.active, .pm-tabs > button.active, .pm-tabs > a.active, .btn.btn-tab.btn-tab-active {
    color: #1f2937 !important; border-bottom-color: #1f2937 !important; background: transparent !important;
}
.pm-tabs { border-bottom: 1px solid #e5e7eb; }
/* Segmented .btn-tab groups (Tenants, Properties, PropertyDetails, ManageLists) become an underline strip */
.btn-group:has(> .btn-tab) { background: transparent !important; padding: 0 !important; border-radius: 0 !important; border-bottom: 1px solid #e5e7eb; gap: 0.25rem; }
.btn.btn-tab { font-size: 0.75rem; letter-spacing: 0.4px; text-transform: uppercase; padding: 0.45rem 0.75rem; }
.btn-tab .badge { font-size: 0.65rem; padding: 3px 6px; margin-left: 4px; }
@media (max-width: 575.98px) {
    .btn.btn-tab { padding: 0.4rem 0.45rem; font-size: 0.68rem; letter-spacing: 0; }
    .btn-tab .badge { padding: 2px 4px; font-size: 0.6rem; }
}

/* ---- Breadcrumbs: slim strip under the fixed top bar (Site.Master, SiteMaster.AddCrumb) ---- */
.pm-crumbs {
    display: flex; align-items: center; gap: 0.45rem; min-width: 0; white-space: nowrap;
    padding: 0.55rem 1.5rem; background: #fff; border-bottom: 1px solid #e5e7eb;
    font-size: 14px; line-height: 1.3; color: #6b7280;
}
.pm-crumbs .pm-crumb { color: #6b7280; text-decoration: none; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.pm-crumbs a.pm-crumb:hover { color: #1f2937; text-decoration: underline; }
.pm-crumbs .pm-crumb-cur { color: #1f2937; font-weight: 700; }
.pm-crumbs .pm-crumb-sep { color: #9ca3af; flex: 0 0 auto; }
/* Page link (SiteMaster.SetTopLink, e.g. tenant layout switch) right-aligned on the crumb line; crumbs ellipsize first */
.pm-crumbs .pm-tb-link { margin-left: auto; margin-right: 0; flex: 0 0 auto; }
.pm-crumbs + * .site-main, .pm-crumbs + div .site-main { padding-top: 1rem !important; }
@media (max-width: 767.98px) {
    .pm-crumbs { padding: 0.5rem 0.9rem; font-size: 13px; }
    /* One line: the first and last parts keep their room, the middle ones shrink to an ellipsis first */
    .pm-crumbs .pm-crumb:first-child { flex-shrink: 0; }
    .pm-crumbs .pm-crumb { flex-shrink: 100; }
    .pm-crumbs .pm-crumb-cur { flex-shrink: 1; }
}

/* ---- Record header (tenant): avatar tile, name + status pill, labeled meta row ---- */
.rh-top { display: flex; align-items: center; gap: 0.9rem; }
.rh-avatar {
    flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: #f3f4f6; color: #374151;
    display: flex; align-items: center; justify-content: center; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.5px;
}
.rh-avatar .bi { font-size: 1.8rem; color: #9ca3af; }
.rh-id { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
h1.rh-name { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1.2rem; font-weight: 700; color: #111827; line-height: 1.25; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rh-pill { display: inline-block; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.72rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.rh-pill-current { background: #1f2937; color: #fff; }
.rh-pill-former { background: #e5e7eb; color: #4b5563; }
.rh-top > .dropdown { align-self: flex-start; flex: 0 0 auto; }
.rh-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid #e5e7eb; }
.rh-item { min-width: 0; }
.rh-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: #6b7280; margin-bottom: 0.15rem; }
.rh-val { font-size: 0.9rem; color: #1f2937; font-weight: 500; }
.rh-val a { color: #1f2937; }
.rh-val a:hover { color: #000; text-decoration: underline !important; }
@media (max-width: 767.98px) {
    .rh-avatar { flex-basis: 52px; width: 52px; height: 52px; font-size: 1.1rem; border-radius: 10px; }
    h1.rh-name { font-size: 1.1rem; }
    .rh-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; }
    .rh-meta .rh-addr { grid-column: 1 / -1; }
}

/* Tenant photo tile (TenantPhoto.ashx / js/tenantphoto.js) */
.rh-ph-wrap{position:relative;display:inline-block;flex-shrink:0}
.rh-avatar.rh-ph{position:relative;overflow:visible;cursor:default}
.rh-ph-wrap[data-ph-can="1"] .rh-avatar.rh-ph{cursor:pointer}
.rh-ph-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;display:none}
.rh-ph.rh-ph-has .rh-ph-img{display:block}
.rh-ph.rh-ph-has .rh-ph-ini{visibility:hidden}
.rh-ph-badge{position:absolute;right:-4px;bottom:-4px;width:20px;height:20px;border-radius:50%;background:#fff;border:1px solid #d1d5db;display:flex;align-items:center;justify-content:center;line-height:1;pointer-events:none}
.rh-avatar .rh-ph-badge .bi{font-size:11px;color:#4b5563;line-height:1}
.rh-ph-spin{position:absolute;inset:0;border-radius:inherit;background:rgba(255,255,255,.7);display:none;align-items:center;justify-content:center;color:#333}
.rh-ph.rh-ph-busy .rh-ph-spin{display:flex}
.rh-ph-menu{position:absolute;left:0;top:calc(100% + 8px);z-index:1050;min-width:180px;background:#fff;border:1px solid #e4e7ec;border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.12);padding:6px}
.rh-ph-menu[hidden],.rh-ph-menu [hidden],.rh-ph-err[hidden]{display:none!important}
.rh-ph-act{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;padding:10px 10px;border-radius:6px;text-align:left;font-size:14px}
@media (hover: hover) and (pointer: fine) { .rh-ph-act:hover {background:#f2f4f7} }
.rh-ph-confirm{padding:6px}
.rh-ph-err{position:absolute;left:0;top:calc(100% + 6px);z-index:1040;width:220px;font-size:12px;color:#b42318;background:#fef3f2;border:1px solid #fecdca;border-radius:6px;padding:6px 8px}
.avatar-frame.avatar-ini{background:#f3f4f6;color:#374151;font-weight:700;font-size:.95rem;letter-spacing:.5px}
