/* ABC3 / T3 starter business detail view layout patch. */

.abc3-humhub-shell {
    background: var(--bs-body-bg, #f5f5f5);
}

.abc3-layout-container {
    margin-top: 24px;
    margin-bottom: 32px;
}

.abc3-layout-row {
    align-items: flex-start;
}

.abc3-layout-nav-container {
    margin-bottom: 16px;
}

.abc3-layout-content-container {
    min-width: 0;
}

.abc3-biz-page {
    width: 100%;
}

.abc3-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 8px;
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #ddd);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.abc3-page-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
}

.abc3-page-header p {
    margin: 0;
    color: var(--bs-secondary-color, #667085);
}

.abc3-page-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 45%;
}

.abc3-page-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--bs-secondary-bg, #eef1f5);
    color: var(--bs-body-color, #344054);
    font-size: 12px;
    white-space: nowrap;
}

.abc3-top-grid,
.abc3-two-col-grid,
.abc3-fullwidth-stack {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.abc3-top-grid {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.abc3-top-grid > * {
    min-width: 0;
}

.abc3-two-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.abc3-fullwidth-stack {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}

.abc3-card {
    min-width: 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #ddd);
    border-radius: 8px;
    background: var(--bs-card-bg, #fff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Compatibility for the older t3-info-* class names still used by some starter views. */
.t3-info-top {
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.t3-info-top .t3-info-card {
    min-height: auto !important;
    height: auto !important;
}

.abc3-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.abc3-card-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.abc3-card-body {
    padding: 16px;
}

.abc3-map-card .abc3-card-body {
    padding: 0;
}

.abc3-map-frame,
.abc3-map-empty {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
    background: #eef1f5;
}

.abc3-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color, #667085);
}

.abc3-map-card .abc3-actions,
.abc3-map-card .abc3-address {
    padding: 16px;
}

.abc3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--bs-border-color, #e5e7eb);
}

.abc3-address {
    border-top: 1px solid var(--bs-border-color, #e5e7eb);
}

.abc3-address h3,
.abc3-legal-block h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.abc3-address address {
    margin: 0;
    line-height: 1.55;
}

.abc3-definition-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.abc3-field {
    display: grid;
    grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
}

.abc3-field dt {
    margin: 0;
    color: var(--bs-secondary-color, #667085);
    font-weight: 600;
}

.abc3-field dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abc3-field-value {
    flex: 1 1 auto;
    min-width: 0;
}

.abc3-copy-btn {
    flex: 0 0 auto;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
}

.abc3-copy-btn.abc3-copy-done {
    opacity: 0.85;
}

.abc3-muted {
    color: var(--bs-secondary-color, #667085);
}

.abc3-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.abc3-link-list a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bs-secondary-bg, #eef1f5);
    text-decoration: none;
}

.abc3-richtext {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.abc3-richtext > :first-child {
    margin-top: 0;
}

.abc3-richtext > :last-child {
    margin-bottom: 0;
}

.abc3-legal-block h3:not(:first-child) {
    margin-top: 20px;
}

.abc3-left-menu {
    overflow: hidden;
}

.abc3-fallback-topbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.abc3-fallback-topbar .topbar-brand a {
    display: inline-block;
    padding: 12px 0;
    font-weight: 700;
    text-decoration: none;
}

.abc3-fallback-topbar-second .container {
    display: flex;
    align-items: center;
}

.abc3-fallback-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

@media (max-width: 991.98px) {
    .abc3-layout-container {
        margin-top: 12px;
    }

    .abc3-page-header {
        display: block;
    }

    .abc3-page-badges {
        justify-content: flex-start;
        max-width: none;
        margin-top: 12px;
    }

    .abc3-top-grid,
    .abc3-two-col-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .abc3-top-grid,
    .t3-info-top {
        gap: 20px;
        margin-bottom: 20px;
    }

    .abc3-map-frame,
    .abc3-map-empty {
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .abc3-page-header {
        padding: 14px;
    }

    .abc3-page-header h1 {
        font-size: 23px;
    }

    .abc3-card-body,
    .abc3-map-card .abc3-actions,
    .abc3-map-card .abc3-address {
        padding: 14px;
    }

    .abc3-field {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .abc3-field dd {
        align-items: flex-start;
    }
}
