/* stylelint-disable comment-empty-line-before, color-function-notation, color-function-alias-notation, alpha-value-notation */

:root {
    --bp-card-radius: var(--bs-border-radius-xl, 1.25rem);
    --bp-surface-bg: var(--bs-card-bg, var(--bs-body-bg));
    --bp-border-color: var(--bs-border-color, rgb(222 226 230));
    --bp-surface-shadow-sm: var(--bs-box-shadow-sm, 0 0.75rem 1.5rem rgb(0 0 0 / 15%));
    --bp-surface-shadow-lg: var(--bs-box-shadow-lg, 0 1.5rem 3rem rgb(0 0 0 / 20%));
    --bp-muted-color: var(--bs-secondary-color);
    --bp-tertiary-bg: var(--bs-tertiary-bg, rgba(var(--bs-secondary-rgb), 0.08));
}

[data-bs-theme="dark"] {
    --bp-surface-bg: rgba(var(--bs-light-rgb), 0.06);
    --bp-border-color: rgba(var(--bs-light-rgb), 0.14);
    --bp-surface-shadow-sm: 0 0.75rem 1.5rem rgb(0 0 0 / 35%);
    --bp-surface-shadow-lg: 0 1.5rem 3rem rgb(0 0 0 / 45%);
    --bp-muted-color: rgba(var(--bs-light-rgb), 0.72);
}

/* Blueprint header */

.blueprint-header {
    background: linear-gradient(
        135deg,
        rgba(var(--bs-primary-rgb), 0.92) 0%,
        rgba(var(--bs-secondary-rgb, var(--bs-primary-rgb)), 0.85) 100%
    );
    border-radius: var(--bp-card-radius);
    color: var(--bs-light, #f8f9fa);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--bp-surface-shadow-lg);
    position: relative;
    overflow: hidden;
}

.blueprint-header .fa-scroll {
    font-size: 2.5rem;
    opacity: 0.85;
}

.blueprint-header .header-bg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 180px;
    opacity: 0.18;
    pointer-events: none;
}

[data-bs-theme="dark"] .blueprint-header {
    box-shadow: var(--bp-surface-shadow-lg);
}

[data-bs-theme="dark"] .blueprint-header .header-bg {
    opacity: 0.12;
}

.blueprint-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: calc(var(--bs-border-radius-lg, 1rem) - 0.25rem);
    background: var(--bp-tertiary-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--bp-border-color);
}

.blueprint-icon .fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
    font-size: 2rem;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-radius: inherit;
    z-index: 2;
    display: none;
}

.blueprint-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blueprint-icon .fallback--visible {
    display: flex;
}

[data-bs-theme="dark"] .blueprint-icon .fallback {
    background: rgba(var(--bs-light-rgb), 0.1);
    color: var(--bs-emphasis-color, #f8f9fa);
}

.bp-icon {
    --bp-icon-size: 64px;

    width: var(--bp-icon-size);
    height: var(--bp-icon-size);
    border-radius: calc(var(--bs-border-radius, 0.75rem));
    background: var(--bp-tertiary-bg);
    border: 1px solid var(--bp-border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--bp-muted-color);
}

.bp-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bp-icon--sm {
    --bp-icon-size: 32px;

    border-radius: calc(var(--bs-border-radius, 0.65rem));
}

.bp-icon--xs {
    --bp-icon-size: 28px;

    border-radius: calc(var(--bs-border-radius, 0.55rem));
}

.bp-icon--accent {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.25);
    color: var(--bs-primary-text-emphasis, var(--bs-primary));
}

/* Blueprint list content */
.blueprint-list-content {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.blueprint-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
}

.blueprint-list-item {
    background: var(--bp-surface-bg);
    border-radius: var(--bs-border-radius-lg, 1rem);
    border: 1px solid var(--bp-border-color);
    box-shadow: var(--bp-surface-shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    padding: 1rem 1.25rem;
}

.blueprint-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--bp-surface-shadow-lg);
}

/* Blueprint title */

.blueprint-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.1rem;
    word-break: break-word;
}

/* Blueprint meta */

.blueprint-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--bp-muted-color);
    margin-bottom: 0.1rem;
}

/* Style View Craft button in blueprint meta for coherence with badges */

.blueprint-meta .btn-outline-info.btn-sm {
    border-radius: var(--bs-border-radius, 0.65rem);
    padding: 0.4em 0.6em;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bs-info-text-emphasis, var(--bs-light));
    background: rgba(var(--bs-info-rgb), 0.18);
    border: 1px solid rgba(var(--bs-info-rgb), 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.blueprint-meta > .btn {
    margin-left: auto;
}

@media (max-width: 575px) {
    .blueprint-meta > .btn {
        margin-left: 0;
        width: 100%;
    }
}

[data-bs-theme="dark"] .blueprint-meta .btn-outline-info.btn-sm {
    color: var(--bs-emphasis-color, #f8f9fa);
    background: rgba(var(--bs-info-rgb), 0.35);
    border-color: rgba(var(--bs-info-rgb), 0.45);
}

[data-bs-theme="dark"] .btn.btn-outline-info.btn-sm {
    color: var(--bs-light, #f8f9fa);
    background: rgba(var(--bs-info-rgb), 0.35);
    border-color: rgba(var(--bs-info-rgb), 0.55);
}

[data-bs-theme="dark"] .btn.btn-outline-info.btn-sm:hover,
[data-bs-theme="dark"] .btn.btn-outline-info.btn-sm:focus {
    color: var(--bs-light, #f8f9fa);
    background: rgba(var(--bs-info-rgb), 0.45);
    border-color: rgba(var(--bs-info-rgb), 0.65);
}

/* Hover state: slightly darker gradient */

.blueprint-meta .btn-outline-info.btn-sm:hover {
    background: rgba(var(--bs-info-rgb), 0.28);
    transform: scale(1.03);
}

/* Ensure icon inside button matches text size */
.blueprint-meta .btn-outline-info.btn-sm .fa-tools {
    font-size: 1rem;
}

.character-tag,
.location-tag {
    --bp-tag-bg: var(--bs-primary-bg-subtle, rgba(var(--bs-primary-rgb), 0.18));
    --bp-tag-color: var(--bs-primary-text-emphasis, var(--bs-primary));
    --bp-tag-border: var(--bs-primary-border-subtle, rgba(var(--bs-primary-rgb), 0.35));

    border-radius: var(--bs-border-radius, 0.65rem);
    padding: 0.25em 0.65em;
    font-size: 0.9rem;
    margin-right: 0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: max-content;
    gap: 0.3em;
    line-height: 1.1;
    background: var(--bp-tag-bg);
    color: var(--bp-tag-color);
    border: 1px solid var(--bp-tag-border);
}

/* Blueprint badges */
.blueprint-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.1rem;
}

.type-badge {
    --bp-badge-bg: var(--bs-secondary-bg-subtle, rgba(var(--bs-secondary-rgb), 0.18));
    --bp-badge-color: var(--bs-secondary-text-emphasis, var(--bs-secondary));
    --bp-badge-border: var(--bs-secondary-border-subtle, rgba(var(--bs-secondary-rgb), 0.35));

    border-radius: var(--bs-border-radius-pill, 999px);
    padding: 0.2em 0.75em;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: max-content;
    gap: 0.35em;
    line-height: 1.1;
    background: var(--bp-badge-bg);
    color: var(--bp-badge-color);
    border: 1px solid var(--bp-badge-border);
}

.type-badge.original {
    --bp-badge-bg: var(--bs-primary-bg-subtle, rgba(var(--bs-primary-rgb), 0.2));
    --bp-badge-color: var(--bs-primary-text-emphasis, var(--bs-primary));
    --bp-badge-border: var(--bs-primary-border-subtle, rgba(var(--bs-primary-rgb), 0.35));
}

.type-badge.copy {
    --bp-badge-bg: var(--bs-success-bg-subtle, rgba(var(--bs-success-rgb), 0.2));
    --bp-badge-color: var(--bs-success-text-emphasis, var(--bs-success));
    --bp-badge-border: var(--bs-success-border-subtle, rgba(var(--bs-success-rgb), 0.35));
}

.type-badge.quantity {
    --bp-badge-bg: var(--bs-warning-bg-subtle, rgba(var(--bs-warning-rgb), 0.24));
    --bp-badge-color: var(--bs-warning-text-emphasis, var(--bs-warning));
    --bp-badge-border: var(--bs-warning-border-subtle, rgba(var(--bs-warning-rgb), 0.42));
}

/* Reaction badge styling */
.type-badge.reaction {
    --bp-badge-bg: var(--bs-info-bg-subtle, rgba(var(--bs-info-rgb), 0.2));
    --bp-badge-color: var(--bs-info-text-emphasis, var(--bs-info));
    --bp-badge-border: var(--bs-info-border-subtle, rgba(var(--bs-info-rgb), 0.35));
}

.runs-badge {
    --bp-badge-bg: var(--bs-tertiary-bg, rgba(var(--bs-secondary-rgb), 0.12));
    --bp-badge-color: var(--bp-muted-color);
    --bp-badge-border: var(--bp-border-color);

    border-radius: var(--bs-border-radius, 0.65rem);
    padding: 0.2em 0.75em;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: max-content;
    gap: 0.35em;
    line-height: 1.1;
    background: var(--bp-badge-bg);
    color: var(--bp-badge-color);
    border: 1px solid var(--bp-badge-border);
}

[data-bs-theme="dark"] .runs-badge {
    background: rgba(var(--bs-light-rgb), 0.88);
    color: #000;
    border-color: rgba(var(--bs-light-rgb), 0.75);
}

/* Efficiency grid and items */
.efficiency-grid {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.1rem;
}

.efficiency-item {
    min-width: 90px;
    flex: 1 1 90px;
}

.efficiency-value {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.1em;
}

.efficiency-label {
    font-size: 0.92em;
    color: var(--bp-muted-color);
    margin-bottom: 0.1em;
}

.efficiency-bar {
    background: var(--bp-tertiary-bg);
    border-radius: var(--bs-border-radius, 0.5rem);
    height: 8px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0.1em;
}

.efficiency-fill {
    height: 100%;
    border-radius: var(--bs-border-radius, 0.5rem);
    transition: width 1.1s cubic-bezier(0.77, 0, 0.18, 1);
    width: clamp(0%, calc(var(--efficiency-width, 0) * 1%), 100%);
}

.efficiency-fill.me {
    background: linear-gradient(
        90deg,
        rgba(var(--bs-danger-rgb), 1) 0%,
        rgba(var(--bs-warning-rgb), 1) 50%,
        rgba(var(--bs-success-rgb), 1) 100%
    );
}

.efficiency-fill.te {
    background: linear-gradient(
        90deg,
        rgba(var(--bs-indigo-rgb, var(--bs-primary-rgb)), 1) 0%,
        rgba(var(--bs-primary-rgb), 1) 50%,
        rgba(var(--bs-info-rgb), 1) 100%
    );
}
/* Update time */
.update-time {
    font-size: 0.92em;
    color: var(--bp-muted-color);
    background: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius, 0.65rem);
    padding: 0.18em 0.7em;
    display: inline-block;
    margin-top: 0.2em;
    border: 1px solid var(--bp-border-color);
}

/* Main page container with enhanced shadows */
.container-fluid.bg-body {
    background: var(--bp-surface-bg);
    border-radius: var(--bp-card-radius);
    box-shadow: var(--bp-surface-shadow-lg);
    padding: 2rem;
    border: 1px solid var(--bp-border-color);
}

/* Blueprint list container */
.blueprint-list-group {
    background: var(--bp-surface-bg);
    border-radius: var(--bp-card-radius);
    box-shadow: var(--bp-surface-shadow-sm);
    margin-bottom: 2rem;
    overflow: visible;
    border: 1px solid var(--bp-border-color);
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
}

/* Filter section enhancement */
.filter-section {
    background: var(--bp-surface-bg);
    border-radius: var(--bs-border-radius-xl, 1.25rem);
    box-shadow: var(--bp-surface-shadow-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--bp-border-color);
}

.stats-card {
    background: var(--bp-surface-bg);
    border-radius: var(--bp-card-radius);
    border: 1px solid var(--bp-border-color);
    box-shadow: var(--bp-surface-shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stats-card:hover {
    box-shadow: var(--bp-surface-shadow-lg);
    transform: translateY(-2px);
}


.bp-request-surface {
    background: var(--bs-tertiary-bg);
    min-height: 100vh;
}

.bp-request-hero {
    background: linear-gradient(
        135deg,
        rgba(var(--bs-primary-rgb), 0.92) 0%,
        rgba(var(--bs-secondary-rgb, var(--bs-primary-rgb)), 0.85) 100%
    );
    border-radius: var(--bp-card-radius);
    padding: 2.75rem 2.5rem;
    color: var(--bs-light);
    box-shadow: var(--bp-surface-shadow-lg);
}


.bp-metrics-row {
    background: var(--bp-surface-bg);
    border-radius: var(--bp-card-radius);
    padding: 1.5rem;
    box-shadow: var(--bp-surface-shadow-sm);
    border: 1px solid var(--bp-border-color);
}

.bp-metrics-row .col-md-3 {
    display: flex;
}

.bp-metrics-row .glass-panel {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bp-surface-bg);
    border: 1px solid var(--bp-border-color);
    border-radius: calc(var(--bp-card-radius) - 0.5rem);
    box-shadow: none;
}

.bp-metrics-row .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 44px;
    font-size: 1rem;
    border-radius: var(--bs-border-radius-pill);
    box-shadow: none;
}

.bp-metrics-row .badge i {
    margin-right: 0.4rem;
}

.bp-request-hero__content {
    position: relative;
    z-index: 1;
}

.bp-request-hero__icon {
    width: 64px;
    height: 64px;
    border-radius: calc(var(--bp-card-radius) - 0.5rem);
    background: rgba(var(--bs-light-rgb), 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(var(--bs-light-rgb), 0.35);
}

.bp-request-hero__eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: rgba(var(--bs-light-rgb), 0.7);
}

.bp-request-hero__subtitle {
    max-width: 38ch;
}


.bp-request-hero__metrics {
    background: rgba(var(--bs-light-rgb), 0.1);
    border-radius: calc(var(--bp-card-radius) - 0.35rem);
    padding: 1.25rem 1.5rem;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(var(--bs-light-rgb), 0.15);
}

[data-bs-theme="dark"] .bp-request-hero__metrics {
    background: rgba(var(--bs-light-rgb), 0.18);
    box-shadow: inset 0 0 0 1px rgba(var(--bs-light-rgb), 0.28);
}

.bp-request-hero__metric {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}


.bp-request-hero__metric-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: rgba(var(--bs-light-rgb), 0.7);
    letter-spacing: 0.12em;
}


.bp-request-hero__metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-light);
}

.bp-request-filters {
    background: var(--bp-surface-bg);
    border-radius: var(--bp-card-radius);
    padding: 1.75rem;
    border: 1px solid var(--bp-border-color);
    box-shadow: var(--bp-surface-shadow-sm);
}

.bp-request-filters .btn-link:hover {
    color: var(--bs-primary);
}


.bp-request-card {
    border-radius: var(--bp-card-radius);
    border: 1px solid var(--bp-border-color);
    background: var(--bp-surface-bg);
    box-shadow: var(--bp-surface-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-card .badge.bg-warning {
    background-color: rgba(var(--bs-warning-rgb), 0.2);
    color: var(--bs-warning-text-emphasis, var(--bs-warning));
    border: 1px solid rgba(var(--bs-warning-rgb), 0.35);
    box-shadow: none;
}

.request-card .badge.bg-warning.text-dark {
    color: var(--bs-warning-text-emphasis, var(--bs-warning));
}


.bp-request-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bp-surface-shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .bp-request-card,
    .bp-request-card:hover {
        transform: none;
        transition: box-shadow 0.2s ease;
    }
}

.bp-request-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: calc(var(--bp-card-radius) - 0.5rem);
    background: var(--bs-tertiary-bg, var(--bs-body-tertiary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--bp-border-color);
    box-shadow: none;
    flex: 0 0 64px;
    flex-shrink: 0;
}

.bp-request-card__avatar img {
    width: 64px;
    height: 64px;
    max-width: none;
    max-height: none;
    flex: 0 0 64px;
    object-fit: contain;
    image-rendering: auto;
    display: block;
}

.bp-request-card__title {
    color: var(--bs-body-color);
    font-weight: 600;
}

.bp-request-card__subtitle {
    letter-spacing: 0.08em;
}

.bp-request-card__badges .badge {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.bp-request-card .input-group-text {
    border-top-left-radius: var(--bs-border-radius, 0.75rem);
    border-bottom-left-radius: var(--bs-border-radius, 0.75rem);
}

.bp-request-card .form-control {
    border-top-right-radius: var(--bs-border-radius, 0.75rem);
    border-bottom-right-radius: var(--bs-border-radius, 0.75rem);
}

.bp-request-card .btn {
    border-radius: var(--bs-border-radius, 0.75rem);
    padding: 0.65rem 1.1rem;
}

.bp-request-card .btn-primary {
    box-shadow: 0 0.75rem 1.5rem rgba(var(--bs-primary-rgb), 0.35);
}

.bp-request-card .btn-primary:hover {
    box-shadow: 0 1rem 2rem rgba(var(--bs-primary-rgb), 0.45);
}


.bp-request-empty {
    width: 100%;
    background: var(--bp-surface-bg);
    border-radius: var(--bp-card-radius);
    padding: 2.5rem 2rem;
    border: 1px dashed var(--bp-border-color);
    box-shadow: var(--bp-surface-shadow-sm);
}

.bp-request-grid .col-empty {
    flex: 0 0 100%;
    max-width: 100%;
}


.bp-request-empty__icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    border-radius: calc(var(--bp-card-radius) - 0.35rem);
    background: rgba(var(--bs-primary-rgb), 0.12);
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

[data-bs-theme="dark"] .bp-request-empty__icon {
    background: rgba(var(--bs-primary-rgb), 0.32);
    color: var(--bs-emphasis-color, #f8f9fa);
    border-color: rgba(var(--bs-primary-rgb), 0.45);
}

.bp-request-empty .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.bp-request-pagination .page-link {
    border-radius: var(--bs-border-radius-pill, 999px);
    margin: 0 0.15rem;
}

.bp-request-pagination .page-item.active .page-link {
    box-shadow: 0 0.75rem 1.5rem rgba(var(--bs-primary-rgb), 0.35);
}

@media (max-width: 991px) {
    .bp-request-hero {
        padding: 2.25rem 1.75rem;
    }

    .bp-request-hero__metrics {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 575px) {
    .bp-request-card {
        border-radius: 14px;
    }

    .bp-request-card__controls .col-6 {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .blueprint-list-group {
        border-radius: 8px;
    }

    .blueprint-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
        padding: 1rem;
    }

    .blueprint-icon {
        margin-bottom: 0.5rem;
    }
}

/* Summary cards for simulations & dashboards */
.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bp-surface-bg);
    border: 1px solid var(--bp-border-color);
    border-radius: var(--bp-card-radius);
    box-shadow: var(--bp-surface-shadow-sm);
}

.summary-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--bs-border-radius, 0.75rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
}

[data-bs-theme="dark"] .summary-card__icon {
    background: rgba(var(--bs-primary-rgb), 0.32);
    color: var(--bs-emphasis-color, #f8f9fa);
    border-color: rgba(var(--bs-primary-rgb), 0.45);
}

.summary-card__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--bp-muted-color);
}

.summary-card__value {
    font-weight: 700;
    color: var(--bs-body-color);
}

/* Action rows on request cards */

.bp-card-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--bp-border-color);
}

.bp-card-toolbar__group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.bp-card-toolbar__group--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.bp-card-toolbar__group--push {
    margin-left: auto;
}

.bp-card-toolbar__form {
    margin: 0;
}

.bp-card-toolbar__collapse {
    width: 100%;
}

.bp-card-toolbar__collapse .input-group {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.18);
    background: rgba(var(--bs-primary-rgb), 0.06);
}

[data-bs-theme="dark"] .bp-card-toolbar__collapse .input-group {
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.25);
    background: rgba(var(--bs-primary-rgb), 0.12);
}

.bp-card-toolbar__meta {
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--bp-muted-color);
}

.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.3s ease, background-color 0.18s ease;
    border-width: 1px;
}

.bp-btn.btn-sm {
    padding: 0.38rem 0.95rem;
    font-size: 0.88rem;
}

.bp-btn i {
    font-size: 0.95rem;
}

.bp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.bp-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.bp-btn-soft-primary {
    background: rgba(var(--bs-primary-rgb), 0.16);
    border-color: rgba(var(--bs-primary-rgb), 0.32);
    color: var(--bs-primary-text-emphasis, var(--bs-primary));
}

.bp-btn-soft-primary:hover {
    background: rgba(var(--bs-primary-rgb), 0.24);
}

.bp-btn-soft-success {
    background: rgba(var(--bs-success-rgb), 0.16);
    border-color: rgba(var(--bs-success-rgb), 0.34);
    color: var(--bs-success-text-emphasis, var(--bs-success));
}

.bp-btn-soft-success:hover {
    background: rgba(var(--bs-success-rgb), 0.24);
}

.bp-btn-soft-danger {
    background: rgba(var(--bs-danger-rgb), 0.14);
    border-color: rgba(var(--bs-danger-rgb), 0.32);
    color: var(--bs-danger-text-emphasis, var(--bs-danger));
}

.bp-btn-soft-danger:hover {
    background: rgba(var(--bs-danger-rgb), 0.22);
}

.bp-btn-soft-info {
    background: rgba(var(--bs-info-rgb), 0.16);
    border-color: rgba(var(--bs-info-rgb), 0.32);
    color: var(--bs-info-text-emphasis, var(--bs-info));
}

.bp-btn-soft-info:hover {
    background: rgba(var(--bs-info-rgb), 0.24);
}

.bp-btn-soft-secondary {
    background: rgba(var(--bs-secondary-rgb, 99, 102, 241), 0.16);
    border-color: rgba(var(--bs-secondary-rgb, 99, 102, 241), 0.28);
    color: var(--bs-secondary-text-emphasis, #1f2937);
}

.bp-btn-soft-secondary:hover {
    background: rgba(var(--bs-secondary-rgb, 99, 102, 241), 0.24);
}

.bp-btn-soft-outline {
    background: transparent;
    border-color: rgba(var(--bs-body-color-rgb, 52, 64, 84), 0.22);
    color: var(--bs-body-color);
}

.bp-btn-soft-outline:hover {
    background: rgba(var(--bs-body-color-rgb, 52, 64, 84), 0.08);
}

.bp-chat-pill {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.18), rgba(var(--bs-primary-rgb), 0.3));
    border-color: rgba(var(--bs-primary-rgb), 0.38);
    color: var(--bs-primary-text-emphasis, var(--bs-primary));
    padding-right: 1.25rem;
}

.bp-chat-pill:hover {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.24), rgba(var(--bs-primary-rgb), 0.35));
}

.bp-card-toolbar__timestamp {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(var(--bs-primary-rgb), 0.7);
}

[data-bs-theme="dark"] .bp-card-toolbar__timestamp {
    color: rgba(var(--bs-primary-rgb), 0.6);
}

[data-bs-theme="dark"] .bp-btn-soft-primary,
[data-bs-theme="dark"] .bp-btn-soft-success,
[data-bs-theme="dark"] .bp-btn-soft-danger,
[data-bs-theme="dark"] .bp-btn-soft-info,
[data-bs-theme="dark"] .bp-btn-soft-secondary {
    color: var(--bs-light, #f8f9fa);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .bp-btn-soft-outline {
    color: var(--bs-light, #f8f9fa);
    border-color: rgba(var(--bs-light-rgb), 0.22);
}

[data-bs-theme="dark"] .bp-chat-pill {
    color: var(--bs-light, #f8f9fa);
}

@media (max-width: 575px) {
    .bp-card-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .bp-card-toolbar__group,
    .bp-card-toolbar__group--stacked {
        width: 100%;
    }

    .bp-card-toolbar__group--push {
        margin-left: 0;
    }

    .bp-card-toolbar__group {
        justify-content: center;
    }

    .bp-card-toolbar__group--stacked {
        align-items: center;
    }

    .bp-card-toolbar__meta,
    .bp-card-toolbar__timestamp {
        text-align: center;
        width: 100%;
    }
}
