.rb-page {
    min-height: calc(100vh - 70px);
    background: #f4f7fb;
    color: #1f2937;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.rb-topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf2;
}

.rb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rb-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0875be;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: .3px;
}

.rb-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
}

.rb-subtitle {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.rb-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rb-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 270px;
    gap: 16px;
    padding: 16px;
}

.rb-panel,
.rb-card,
.rb-summary-card {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.rb-sidebar,
.rb-options {
    min-height: calc(100vh - 110px);
    padding: 14px;
}

.rb-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.rb-search-box {
    border: 1px solid #e5eaf2;
    background: #f8fafc;
    color: #64748b;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 18px;
}

.rb-field-group-title {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rb-field-pill {
    position: relative;
    padding: 9px 12px 9px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    border: 1px solid transparent;
}

.rb-field-pill::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: #10b981;
}

.rb-field-pill.active {
    background: #eafaf3;
    color: #065f46;
}

.rb-main {
    min-width: 0;
}

.rb-summary-card {
    padding: 16px 18px;
    color: #475569;
    background: #ecfdf5;
    border-color: #bbf7d0;
    margin-bottom: 16px;
}

.rb-card {
    padding: 22px;
}

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

.rb-card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 750;
    color: #0f172a;
}

.rb-card-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.rb-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

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

.rb-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.rb-control,
.rb-form-group .form-control,
.rb-form-group .form-select {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background-color: #ffffff;
    font-size: 14px;
    box-shadow: none;
}

.rb-control:focus,
.rb-form-group .form-control:focus,
.rb-form-group .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.rb-drop-zone {
    margin-top: 20px;
    min-height: 94px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
}

.rb-drop-title {
    color: #0f172a;
    font-weight: 750;
    margin-bottom: 4px;
}

.rb-drop-text {
    color: #64748b;
    font-size: 13px;
}

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

.rb-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: .15s ease;
}

.rb-btn-success {
    background: #059669;
    color: #ffffff;
}

.rb-btn-success:hover {
    background: #047857;
}

.rb-btn-light {
    background: #ffffff;
    color: #334155;
    border-color: #dbe3ef;
}

.rb-btn-light:hover {
    background: #f8fafc;
}

.rb-option-card {
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #ffffff;
}

.rb-option-card.active {
    border-color: #93c5fd;
    background: #eff6ff;
}

.rb-option-card strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 4px;
}

.rb-option-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .rb-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .rb-options {
        display: none;
    }
}

@media (max-width: 800px) {
    .rb-layout {
        grid-template-columns: 1fr;
    }

    .rb-sidebar {
        min-height: auto;
    }

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

    .rb-card-header,
    .rb-topbar {
        align-items: flex-start;
        flex-direction: column;
        height: auto;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}
/* Use this when a report page does not need the left Data panel or right Options panel. */
.rb-layout-single {
    grid-template-columns: minmax(0, 1100px);
    justify-content: center;
    align-items: start;
}

    .rb-layout-single .rb-main {
        width: 100%;
    }

@media (max-width: 1200px) {
    .rb-layout-single {
        grid-template-columns: minmax(0, 1fr);
    }
}