/* DBC Business Directory — owner portal v1.4.2 */
.dbc-owner-portal {
    width: 100%;
    box-sizing: border-box;
}

.dbc-owner-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 22px;
}

.dbc-owner-portal-title {
    margin: 0;
}

.dbc-owner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid currentColor;
    border-radius: 5px;
    color: inherit;
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

.dbc-owner-button:hover,
.dbc-owner-button:focus-visible {
    text-decoration: none;
    background: rgba(0, 0, 0, 0.05);
}

.dbc-owner-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.dbc-owner-notice,
.dbc-owner-portal-login {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.025);
}

.dbc-owner-portal-login p:first-child {
    margin-top: 0;
}

.dbc-owner-portal-login p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .dbc-owner-portal-header {
        align-items: stretch;
    }

    .dbc-owner-portal-header .dbc-owner-button {
        width: 100%;
    }
}

/* Market Manager front-end portal — v1.4.2 */
.dbc-market-summary {
    margin: 6px 0 0;
    opacity: .72;
}

.dbc-owner-notice-success {
    border-color: #9fc8a6;
    background: #f3faf4;
}

.dbc-owner-notice-error {
    border-color: #d8a1a1;
    background: #fff6f6;
}

.dbc-manager-filters {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 7px;
    background: rgba(0, 0, 0, .02);
}

.dbc-manager-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
    flex: 1 1 220px;
}

.dbc-manager-filter-field label,
.dbc-manager-form-field label {
    font-weight: 600;
}

.dbc-manager-filter-field input,
.dbc-manager-filter-field select,
.dbc-manager-form-field input,
.dbc-manager-form-field select,
.dbc-manager-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(0, 0, 0, .22);
    border-radius: 5px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.dbc-manager-form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.dbc-manager-business-list {
    display: grid;
    gap: 12px;
}

.dbc-manager-business-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, .13);
    border-radius: 7px;
    background: #fff;
}

.dbc-manager-business-main {
    min-width: 0;
    flex: 1 1 auto;
}

.dbc-manager-business-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dbc-manager-business-title-row h3 {
    margin: 0;
    font-size: 1.05em;
}

.dbc-manager-business-location,
.dbc-manager-business-date {
    margin: 5px 0 0;
}

.dbc-manager-business-date {
    font-size: .9em;
    opacity: .68;
}

.dbc-manager-business-actions,
.dbc-manager-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dbc-manager-inline-form {
    margin: 0;
}

.dbc-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .82em;
    line-height: 1;
    font-weight: 700;
    background: rgba(0, 0, 0, .07);
}

.dbc-status-pending {
    background: #fff3cd;
}

.dbc-status-publish {
    background: #e8f6ec;
}

.dbc-status-draft {
    background: #eceff3;
}

.dbc-owner-button-primary {
    background: #222;
    border-color: #222;
    color: #fff;
}

.dbc-owner-button-approve {
    background: #1f6f43;
    border-color: #1f6f43;
    color: #fff;
}

.dbc-owner-button-primary:hover,
.dbc-owner-button-primary:focus-visible,
.dbc-owner-button-approve:hover,
.dbc-owner-button-approve:focus-visible {
    color: #fff;
    background: #111;
}

.dbc-owner-button-secondary {
    opacity: .86;
}

.dbc-manager-pagination {
    margin-top: 20px;
}

.dbc-manager-pagination ul {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dbc-manager-pagination a,
.dbc-manager-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 5px 10px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 5px;
    text-decoration: none;
}

.dbc-manager-pagination .current {
    font-weight: 700;
    background: rgba(0, 0, 0, .07);
}

.dbc-manager-back-link {
    display: inline-block;
    margin-bottom: 8px;
    text-decoration: none;
}

.dbc-manager-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dbc-manager-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dbc-manager-form-field-full {
    grid-column: 1 / -1;
}

.dbc-manager-section-heading {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.dbc-manager-section-heading h3,
.dbc-manager-section-heading p {
    margin: 0;
}

.dbc-manager-current-logo {
    margin-bottom: 5px;
}

.dbc-manager-current-logo img {
    display: block;
    max-width: 140px;
    height: auto;
    border-radius: 5px;
}

.dbc-manager-form-actions {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, .12);
}

@media (max-width: 767px) {
    .dbc-manager-business-card {
        align-items: stretch;
        flex-direction: column;
    }

    .dbc-manager-business-actions,
    .dbc-manager-form-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .dbc-manager-business-actions .dbc-owner-button,
    .dbc-manager-business-actions .dbc-manager-inline-form,
    .dbc-manager-business-actions .dbc-manager-inline-form .dbc-owner-button,
    .dbc-manager-form-actions .dbc-owner-button {
        width: 100%;
    }

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

    .dbc-manager-form-field-full {
        grid-column: auto;
    }
}


/* Business contact details shown on both owner APC listings and manager cards. */
.dbc-business-contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
    margin: 7px 0 0;
    font-size: .92em;
    line-height: 1.45;
}

.dbc-business-contact-item {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.dbc-business-contact-item a {
    overflow-wrap: anywhere;
    text-decoration: none;
}

.dbc-business-contact-item a:hover,
.dbc-business-contact-item a:focus {
    text-decoration: underline;
}

.dbc-owner-apc-contact-details {
    margin-top: 6px;
}

@media (max-width: 767px) {
    .dbc-business-contact-details {
        flex-direction: column;
        gap: 3px;
    }
}
