.wbso-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.wbso-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wbso-summary-number {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #111827;
}

.wbso-summary-label {
    font-size: 13px;
    color: #6b7280;
}

.wbso-form-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 22px;
    background: #fafafa;
}

.wbso-form-section h5 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
}

.wbso-project-guidance {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef6ff;
    color: #1f3b5b;
    font-size: 13px;
    line-height: 1.5;
}

.wbso-subtitle {
    margin-top: 6px;
    margin-bottom: 0;
}

.wbso-checkbox-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
}

.wbso-project-card {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}

.wbso-project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.wbso-project-card-header h6 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.wbso-project-card-header p {
    margin: 0;
}

.wbso-repeaters-row {
    margin-top: 10px;
}

.wbso-repeater {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #f9fafb;
    margin-bottom: 15px;
}

.wbso-repeater-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wbso-repeater-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.wbso-repeater-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wbso-repeater-line {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.8fr auto;
    gap: 10px;
    align-items: start;
}

.wbso-repeater-line-inline {
    grid-template-columns: 1.6fr 0.8fr auto;
}

.wbso-repeater-line .form-control {
    width: 100%;
}

.wbso-repeater-line .btn-icon {
    min-width: 38px;
}

.wbso-input-danger {
    border-color: #dc2626 !important;
    box-shadow: inset 0 1px 1px rgba(220, 38, 38, 0.08), 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.wbso-live-checklist li {
    margin-bottom: 8px;
}

.wbso-live-checklist li.is-valid {
    color: #15803d;
}

.wbso-live-checklist li.is-invalid {
    color: #b91c1c;
}

.wbso-client-summary {
    display: grid;
    gap: 12px;
}

.wbso-client-summary div {
    display: grid;
    gap: 4px;
}

.wbso-client-summary dt {
    font-size: 12px;
    color: #6b7280;
}

.wbso-client-summary dd {
    margin: 0;
    color: #111827;
    font-weight: 600;
}

.wbso-toolbar,
.wbso-page-header,
.wbso-section-header,
.wbso-widget-header,
.wbso-actions,
.wbso-portal-application-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wbso-form-shell,
.wbso-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wbso-widget {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.wbso-portal-project-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
    background: #fff;
}

.wbso-portal-application {
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
    margin-top: 18px;
}

.wbso-portal-application:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.wbso-inline-issues {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 991px) {
    .wbso-repeater-line,
    .wbso-repeater-line-inline {
        grid-template-columns: 1fr;
    }

    .wbso-toolbar,
    .wbso-page-header,
    .wbso-section-header,
    .wbso-widget-header,
    .wbso-actions,
    .wbso-portal-application-header {
        flex-direction: column;
        align-items: stretch;
    }
}
