/* Shared component classes reused across every /backoffice/* page (Dashboard, Tenants list,
   New Tenant wizard, Tenant view/edit). Kept as one global stylesheet rather than duplicated
   per-page scoped CSS, since these are genuinely shared, not page-specific. The layout shell
   itself (sidebar/topbar) stays in BackOfficeLayout.razor.css since only that component uses it.
   Palette referenced from ChurchTec's back office: espresso-brown + gold/amber, warm cream
   canvas — scoped to .bo-* classes only, so it never affects the main tenant app or public site. */

.bo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.bo-page-header h2 {
    margin: 0;
    font-weight: 800;
    color: #2d1206;
}

.bo-page-header p {
    margin: 2px 0 0;
    color: #78716c;
    font-size: 14px;
}

.bo-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(45, 18, 6, 0.08);
    margin-bottom: 20px;
}

.bo-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e7e5e4;
    background: #fff;
    color: #5c2d0e;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.bo-btn:hover {
    background: #f5f0eb;
    color: #5c2d0e;
}

.bo-btn-primary {
    background: linear-gradient(135deg, #3b1a08 0%, #7a3b12 60%, #9c4e1a 100%);
    border-color: transparent;
    color: #fff;
}

.bo-btn-primary:hover {
    filter: brightness(1.08);
    color: #fff;
}

.bo-btn-danger {
    border-color: #fecaca;
    color: #b3261e;
}

.bo-btn-danger:hover {
    background: #fdecea;
    color: #b3261e;
}

.bo-btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.bo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bo-wizard-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bo-step {
    font-size: 13px;
    font-weight: 600;
    color: #a8a29e;
}

.bo-step.active {
    color: #9c4e1a;
}

.bo-step-sep {
    width: 24px;
    height: 1px;
    background: #e7e5e4;
}

.bo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
}

.bo-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bo-field-wide {
    grid-column: 1 / -1;
}

.bo-field label {
    font-size: 12px;
    font-weight: 600;
    color: #57534e;
}

.bo-field-hint {
    font-weight: 400;
    font-style: italic;
    color: #a8a29e;
    text-transform: none;
    letter-spacing: normal;
}

.bo-input {
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.bo-input:focus {
    outline: none;
    border-color: #9c4e1a;
    box-shadow: 0 0 0 3px rgba(156, 78, 26, 0.15);
}

.bo-checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
}

.bo-section-title {
    margin: 22px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #2d1206;
}

.bo-validation-summary {
    color: #b3261e;
    font-size: 13px;
    margin-top: 10px;
}

.bo-wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.bo-field-otp {
    max-width: 260px;
}

.bo-otp-intro {
    color: #57534e;
    font-size: 14px;
}

.bo-alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 14px;
}

.bo-alert-error {
    background: #fdecea;
    color: #b3261e;
}

.bo-alert-success {
    background: #e8f5e9;
    color: #1b5e20;
}

.bo-checklist {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bo-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.bo-checklist li.ok i { color: #1b5e20; }
.bo-checklist li.fail i { color: #b3261e; }

.bo-checklist li small {
    color: #a8a29e;
    margin-left: 4px;
}

.bo-empty {
    color: #a8a29e;
    margin: 0;
}

.bo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bo-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #a8a29e;
    padding: 0 10px 10px;
    border-bottom: 1px solid #e7e5e4;
}

.bo-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0ebe4;
    color: #2d1206;
    vertical-align: middle;
}

.bo-table td.text-end, .bo-table th.text-end {
    text-align: right;
}

.bo-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.bo-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.bo-badge-active {
    background: #e8f5e9;
    color: #1b5e20;
}

.bo-badge-inactive {
    background: #f0ebe4;
    color: #78716c;
}

.bo-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 28px;
}

.bo-detail-item label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #a8a29e;
    margin-bottom: 3px;
}

.bo-detail-item span {
    font-size: 14px;
    color: #2d1206;
}

.bo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.bo-kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(45, 18, 6, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
}

.bo-kpi-card strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #2d1206;
    line-height: 1.1;
}

.bo-kpi-card span {
    font-size: 13px;
    color: #78716c;
}

.bo-kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b1a08, #9c4e1a);
    color: #fff;
}

.bo-kpi-icon-active {
    background: linear-gradient(135deg, #0d5c30, #16a34a);
}

.bo-kpi-icon-inactive {
    background: linear-gradient(135deg, #78716c, #a8a29e);
}

.bo-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e7e5e4;
    margin-bottom: 18px;
}

.bo-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #78716c;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.bo-tab:hover {
    color: #5c2d0e;
}

.bo-tab.active {
    color: #9c4e1a;
    border-bottom-color: #9c4e1a;
}

@media (max-width: 700px) {
    .bo-form-grid { grid-template-columns: 1fr; }
    .bo-detail-grid { grid-template-columns: 1fr; }
    .bo-kpi-grid { grid-template-columns: 1fr; }
}
