/* ============================================================================
   DogRegistry shared tab content
   Common headings, counters and loading/error/empty states used inside entity
   detail tabs. Entity-specific cards and editors stay in their local CSS.
   ============================================================================ */

.registry-tab-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.registry-tab-heading-bordered {
    padding-bottom: 18px;
    border-bottom: 1px solid #e6ddd0;
}

.registry-tab-eyebrow {
    margin-bottom: 4px;
    color: #a07d35;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.registry-tab-heading h2 {
    margin: 0;
    color: #3c281f;
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 23px;
    font-weight: 700;
}

.registry-tab-description {
    max-width: 420px;
    color: #82756c;
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
}

.registry-tab-counter {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    background: #faf6ed;
    border: 1px solid #e3d7bf;
    border-radius: 8px;
}

.registry-tab-counter-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.registry-tab-counter-item strong {
    color: var(--club-burgundy, #941328);
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 18px;
}

.registry-tab-counter-item span {
    color: #796c62;
    font-size: 9px;
    text-transform: uppercase;
}

.registry-tab-counter-divider {
    width: 1px;
    height: 22px;
    margin: 0 14px;
    background: #ddd0bc;
}

.registry-tab-loading {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #756a62;
    font-size: 11px;
    font-weight: 500;
}

.registry-tab-spinner {
    width: 2.15rem;
    height: 2.15rem;
    color: var(--club-burgundy, #941328);
    border-width: 0.2em;
}

.registry-tab-error {
    min-height: 145px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    color: #71313b;
    background: #fbf0f1;
    border: 1px solid #ead2d5;
    border-radius: 8px;
}

.registry-tab-error > i {
    flex-shrink: 0;
    color: var(--club-burgundy, #941328);
    font-size: 22px;
}

.registry-tab-error-content {
    min-width: 0;
    flex: 1;
}

.registry-tab-error-content strong {
    display: block;
    margin-bottom: 4px;
    color: #6b1b29;
    font-size: 12px;
}

.registry-tab-error-content span,
.registry-tab-error-content div {
    color: #8a5f66;
    font-size: 10px;
}

.registry-tab-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 20px;
    text-align: center;
    color: #887b72;
    background: linear-gradient(180deg, #fffdf9, #fbf7ef);
    border: 1px dashed #d9cbbb;
    border-radius: 9px;
}

.registry-tab-empty-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    color: #a8863d;
    background: #f6efe3;
    border: 1px solid #e6d5b9;
    border-radius: 50%;
    font-size: 19px;
}

.registry-tab-empty h4 {
    margin: 0 0 6px;
    color: #49362d;
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 17px;
}

.registry-tab-empty p {
    max-width: 470px;
    margin: 0;
    color: #897d74;
    font-size: 10px;
    line-height: 1.6;
}

.registry-entity-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.registry-entity-inline:hover,
.registry-entity-inline:focus,
.registry-entity-inline:visited,
.registry-entity-inline:active {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .registry-tab-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .registry-tab-description {
        max-width: none;
        text-align: left;
    }

    .registry-tab-error {
        align-items: flex-start;
        flex-direction: column;
    }

    .registry-tab-loading {
        min-height: 230px;
    }
}
