/* Shared list styling for Blueprint Copy pages (modeled after material exchange lists) */

.metric-tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.metric-tile-link:hover .metric-tile {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.metric-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    padding: 0.65rem 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.metric-tile .label {
    letter-spacing: 0.02em;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    opacity: 0.8;
}

.metric-tile .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

/* Tabs (My Requests) */
.bp-request-tabs {
    border-bottom: none;
    background: rgba(var(--bs-secondary-rgb), 0.08);
    padding: 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    box-shadow: inset 0 1px 0 rgba(var(--bs-light-rgb), 0.4);
}

.bp-request-tabs .nav-link {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    color: var(--bs-secondary-color);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bp-request-tabs .nav-link:hover,
.bp-request-tabs .nav-link:focus-visible {
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
}

.bp-request-tabs .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.18);
    color: var(--bs-primary);
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.35);
}

html[data-theme="darkly"] .bp-request-tabs {
    background: rgba(var(--bs-body-bg-rgb, 15, 23, 42), 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="darkly"] .bp-request-tabs .nav-link {
    color: rgba(var(--bs-light-rgb), 0.72);
}

html[data-theme="darkly"] .bp-request-tabs .nav-link:hover,
html[data-theme="darkly"] .bp-request-tabs .nav-link:focus-visible {
    background: rgba(var(--bs-primary-rgb), 0.24);
    color: rgba(var(--bs-light-rgb), 0.95);
}

html[data-theme="darkly"] .bp-request-tabs .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.32);
    color: rgba(var(--bs-light-rgb), 0.98);
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.55);
}

/* Tabs (My Requests) */
.bp-request-tabs {
    border-bottom: none;
    background: rgba(var(--bs-secondary-rgb), 0.08);
    padding: 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    box-shadow: inset 0 1px 0 rgba(var(--bs-light-rgb), 0.4);
}

.bp-request-tabs .nav-link {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    color: var(--bs-secondary-color);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bp-request-tabs .nav-link:hover,
.bp-request-tabs .nav-link:focus-visible {
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
}

.bp-request-tabs .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.18);
    color: var(--bs-primary);
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.35);
}

html[data-theme="darkly"] .bp-request-tabs {
    background: rgba(var(--bs-body-bg-rgb, 15, 23, 42), 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="darkly"] .bp-request-tabs .nav-link {
    color: rgba(var(--bs-light-rgb), 0.72);
}

html[data-theme="darkly"] .bp-request-tabs .nav-link:hover,
html[data-theme="darkly"] .bp-request-tabs .nav-link:focus-visible {
    background: rgba(var(--bs-primary-rgb), 0.24);
    color: rgba(var(--bs-light-rgb), 0.95);
}

html[data-theme="darkly"] .bp-request-tabs .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.32);
    color: rgba(var(--bs-light-rgb), 0.98);
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.55);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.bg-gradient-success {
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb), 0.14) 0%, rgba(var(--bs-success-rgb), 0.05) 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb), 0.14) 0%, rgba(var(--bs-info-rgb), 0.05) 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, rgba(var(--bs-warning-rgb), 0.14) 0%, rgba(var(--bs-warning-rgb), 0.05) 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.14) 0%, rgba(var(--bs-primary-rgb), 0.05) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, rgba(var(--bs-secondary-rgb), 0.14) 0%, rgba(var(--bs-secondary-rgb), 0.05) 100%);
}

.requests-panel {
    background: var(--bs-body-bg);
    border-radius: 16px;
    border: 1px solid var(--bs-border-color);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.requests-head {
    display: grid;
    gap: 0.5rem;
    padding: 0.95rem 1.25rem;
    background: rgba(var(--bs-secondary-rgb), 0.08);
    color: var(--bs-secondary-color);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-align: center;
}

.request-row {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    align-items: start;
    border-bottom: 1px solid var(--bs-border-color);
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Avoid overflow/overlap in CSS grid cells when content is long */
.request-row > * {
    min-width: 0;
}

.request-row:last-child { border-bottom: none; }

.request-row:hover {
    background: rgba(var(--bs-secondary-rgb), 0.05);
    transform: translateY(-1px);
}

/* Column layouts (match templates via modifier classes) */
.requests-panel--fulfill .requests-head,
.requests-panel--fulfill .request-row {
    grid-template-columns: 1.8fr 1.1fr 1fr 1.1fr minmax(180px, 220px);
}

.requests-panel--fulfill .requests-head > *,
.requests-panel--fulfill .request-row > * {
    text-align: center;
}

.requests-panel--fulfill .request-actions,
.requests-panel--fulfill .request-actions * {
    text-align: right;
}

.requests-panel--my-active .requests-head,
.requests-panel--my-active .request-row {
    grid-template-columns: 1.9fr 1fr 1.2fr 0.7fr minmax(200px, 240px);
}

.requests-panel--request .requests-head,
.requests-panel--request .request-row {
    grid-template-columns: 1.8fr 1.4fr 0.8fr;
}
@media (max-width: 1199.98px) {
    .requests-panel--request .requests-head,
    .requests-panel--request .request-row {
        grid-template-columns: 1fr;
    }
}
.request-blueprint__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(var(--bs-secondary-rgb), 0.25);
    background: rgba(var(--bs-secondary-rgb), 0.08);
}

.fw-600 { font-weight: 600; }

/* Status chips (reuse material-exchange semantics) */
.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    border: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
}

/* When the view gives Bootstrap badge classes (bg-* and text-*), keep them */
.status-chip.bg-success { background: rgba(var(--bs-success-rgb), 0.12) !important; border-color: rgba(var(--bs-success-rgb), 0.35) !important; color: var(--bs-success) !important; }
.status-chip.bg-warning { background: rgba(var(--bs-warning-rgb), 0.12) !important; border-color: rgba(var(--bs-warning-rgb), 0.35) !important; color: var(--bs-warning) !important; }
.status-chip.bg-danger { background: rgba(var(--bs-danger-rgb), 0.12) !important; border-color: rgba(var(--bs-danger-rgb), 0.35) !important; color: var(--bs-danger) !important; }
.status-chip.bg-info { background: rgba(var(--bs-info-rgb), 0.12) !important; border-color: rgba(var(--bs-info-rgb), 0.35) !important; color: var(--bs-info) !important; }
.status-chip.bg-secondary { background: rgba(var(--bs-secondary-rgb), 0.12) !important; border-color: rgba(var(--bs-secondary-rgb), 0.35) !important; color: var(--bs-secondary) !important; }

/* Spec badges */
.request-specs {
    display: grid;
    gap: 0.45rem;
}

.spec-block {
    display: grid;
    gap: 0.25rem;
}

.spec-caption {
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    font-weight: 700;
}

.spec-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    border: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
    white-space: nowrap;
}

.spec-badge--compact {
    padding: 0.18rem 0.45rem;
    font-size: 0.78rem;
}

.bp-params {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.bp-owner {
    margin-top: 0.15rem;
}

.bp-owner-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.bp-owner-label {
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.bp-owner-badge {
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-color: rgba(var(--bs-primary-rgb), 0.28);
    color: var(--bs-primary);
    font-size: 0.75rem;
}

.request-requester,
.request-status {
    min-width: 0;
}

.request-requester {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.request-status,
.request-status small {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

/* Fulfill page: show owner badge as light blue */
.requests-panel--fulfill .bp-owner-badge {
    background: rgba(var(--bs-info-rgb), 0.12);
    border-color: rgba(var(--bs-info-rgb), 0.25);
    color: var(--bs-info);
}

.bp-action--request {
    background: rgba(var(--bs-success-rgb), 0.12);
    border-color: rgba(var(--bs-success-rgb), 0.36) !important;
    color: var(--bs-success) !important;
}

.bp-action--request:hover {
    background: rgba(var(--bs-success-rgb), 0.18);
    border-color: rgba(var(--bs-success-rgb), 0.50) !important;
    transform: translateY(-1px);
}

.spec-badge--blue {
    background: rgba(var(--bs-info-rgb), 0.12);
    border-color: rgba(var(--bs-info-rgb), 0.25);
    color: var(--bs-info);
}

.spec-badge--green {
    background: rgba(var(--bs-success-rgb), 0.12);
    border-color: rgba(var(--bs-success-rgb), 0.25);
    color: var(--bs-success);
}

.spec-badge--purple {
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-color: rgba(var(--bs-primary-rgb), 0.25);
    color: var(--bs-primary);
}

/* Action buttons */
.request-actions .btn {
    min-width: 96px;
}

.request-actions {
    display: flex;
    justify-content: flex-end;
    align-items: start;
}

.request-actions .btn-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 50%;
    gap: 0.35rem;
}

/* Bootstrap's .btn-group often contains <form> wrappers; ensure everything stretches */
.request-actions .btn-group > * {
    width: 100%;
}

.request-actions .btn-group > form {
    display: block;
}

.request-actions .btn-group .btn {
    width: 100%;
    min-height: 34px;
}

.request-actions form {
    width: 100%;
}

.request-actions .btn {
    width: 100%;
}

/* Action button refinements */
.bp-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 34px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    border-width: 1px;
}

.bp-action--accept-free {
    background: linear-gradient(
        135deg,
        rgba(var(--bs-success-rgb), 0.18) 0%,
        rgba(var(--bs-success-rgb), 0.08) 100%
    );
    border-color: rgba(var(--bs-success-rgb), 0.42) !important;
    color: var(--bs-success) !important;
}

.bp-action--accept-free:hover {
    background: linear-gradient(
        135deg,
        rgba(var(--bs-success-rgb), 0.24) 0%,
        rgba(var(--bs-success-rgb), 0.12) 100%
    );
    border-color: rgba(var(--bs-success-rgb), 0.55) !important;
    transform: translateY(-1px);
}

.bp-action--decline {
    background: rgba(var(--bs-danger-rgb), 0.10);
    border-color: rgba(var(--bs-danger-rgb), 0.42) !important;
    color: var(--bs-danger) !important;
}

.bp-action--decline:hover {
    background: rgba(var(--bs-danger-rgb), 0.16);
    border-color: rgba(var(--bs-danger-rgb), 0.55) !important;
    transform: translateY(-1px);
}

.bp-action--chat {
    background: rgba(var(--bs-info-rgb), 0.08);
    border-color: rgba(var(--bs-info-rgb), 0.30) !important;
    color: var(--bs-info) !important;
}

.bp-action--chat:hover {
    background: rgba(var(--bs-info-rgb), 0.14);
    border-color: rgba(var(--bs-info-rgb), 0.45) !important;
    transform: translateY(-1px);
}

.bp-action--conditions {
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.36) !important;
    color: var(--bs-primary) !important;
}

.bp-action--conditions:hover {
    background: rgba(var(--bs-primary-rgb), 0.14);
    border-color: rgba(var(--bs-primary-rgb), 0.45) !important;
    transform: translateY(-1px);
}

.bp-action:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Switch to stacked layout earlier to avoid overlap between lg and xl widths */
@media (max-width: 1199.98px) {
    .requests-head { display: none !important; }

    .request-row {
        grid-template-columns: 1fr !important;
        gap: 0.65rem;
        border-left: 4px solid transparent;
    }

    .request-row:hover { border-left-color: var(--bs-primary); }

    .request-actions {
        text-align: left !important;
        justify-content: flex-start;
    }

    .request-actions .btn {
        min-width: 0;
    }
}

/* Empty state */
.empty-state {
    padding: 2.75rem 1.25rem;
    text-align: center;
    border-radius: 16px;
    background: rgba(var(--bs-secondary-rgb), 0.06);
    border: 1px dashed rgba(var(--bs-secondary-rgb), 0.25);
}

.empty-state i {
    font-size: 2.25rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.75rem;
}

/* Dark mode refinement */
html[data-theme="darkly"] .requests-panel {
    background: rgba(var(--bs-secondary-rgb), 0.12);
    border-color: rgba(var(--bs-border-color-rgb, 200,200,200), 0.35);
}

/* Request page specific styles */
.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
    background: rgba(var(--bs-success-rgb), 0.08);
    border-color: rgba(var(--bs-success-rgb), 0.25);
    color: var(--bs-success);
}

.spec-badge--green {
    background: rgba(var(--bs-success-rgb), 0.08);
    border-color: rgba(var(--bs-success-rgb), 0.25);
    color: var(--bs-success);
}

.spec-badge--compact {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.bp-params {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0 0;
}

.spec-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.spec-caption {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.request-blueprint__icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Blueprint Request Grid Layout */
.bp-request-grid {
    display: block;
}

.bp-request-counter {
    font-size: 1rem;
}

.bp-request-counter strong {
    color: var(--bs-primary);
    font-size: 1.25rem;
}

.bp-request-sort {
    display: flex;
    align-items: center;
}

.bp-request-sort__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-request-sort .btn {
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.bp-request-sort .btn.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.bp-request-sort .btn:not(.active):hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-color: var(--bs-primary);
}

/* Filters Panel */
.bp-request-filters {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-secondary-rgb), 0.05));
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bp-request-filters__form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.bp-request-filters__inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.bp-request-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
    flex: 1;
}

.bp-request-filters__field:first-child {
    flex: 2;
    min-width: 200px;
}

.bp-request-filters__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-secondary-color);
    margin: 0;
}

.bp-request-filters__label i {
    opacity: 0.7;
}

.bp-request-filters__actions {
    display: flex;
    gap: 0.75rem;
}

.bp-request-filters__actions .btn {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.bp-request-filters__actions .btn-primary {
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.3);
}

.bp-request-filters__actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.4);
    transform: translateY(-1px);
}


.bp-request-grid__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.bp-request-card {
    background: rgba(var(--bs-secondary-rgb), 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.bp-request-card:hover {
    background: rgba(var(--bs-secondary-rgb), 0.15);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(var(--bs-primary-rgb), 0.2);
}

.bp-request-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bp-request-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.bp-request-card__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bp-request-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.bp-request-card__specs {
    font-size: 0.75rem;
}

.bp-request-card__inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bp-request-card__inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.bp-request-card__input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bp-request-card__input-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.7;
    margin: 0;
}

.bp-request-card__input-group .form-control-sm {
    padding: 0.45rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Filters */
@media (max-width: 991.98px) {
    .bp-request-filters__inputs {
        width: 100%;
    }

    .bp-request-filters__field:first-child {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .bp-request-filters__actions {
        width: 100%;
    }

    .bp-request-filters__actions .btn {
        flex: 1;
    }
}

@media (max-width: 575.98px) {
    .bp-request-filters {
        padding: 1rem;
    }

    .bp-request-filters__form {
        gap: 1rem;
    }

    .bp-request-filters__inputs {
        gap: 0.75rem;
    }

    .bp-request-filters__field {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

.bp-request-empty {
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 12px;
    background: rgba(var(--bs-secondary-rgb), 0.08);
    border: 1px dashed rgba(var(--bs-secondary-rgb), 0.25);
}

.bp-request-empty i {
    font-size: 2rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.75rem;
}

.bp-request-empty h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.bp-request-empty p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin: 0;
}

/* ====================================================================
    Fulfill list: Horizontal compact card layout
    ==================================================================== */

.fulfill-requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fulfill-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.fulfill-card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Icon */
.fulfill-card__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.fulfill-card__icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Info section */
.fulfill-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.fulfill-card__main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fulfill-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.fulfill-card__specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fulfill-spec {
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(var(--bs-secondary-rgb), 0.1);
    color: var(--bs-secondary-color);
}

.fulfill-spec--me { background: rgba(var(--bs-success-rgb), 0.12); color: var(--bs-success); }
.fulfill-spec--te { background: rgba(var(--bs-info-rgb), 0.12); color: var(--bs-info); }
.fulfill-spec--copies { background: rgba(var(--bs-primary-rgb), 0.12); color: var(--bs-primary); }

/* Meta section */
.fulfill-card__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.fulfill-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--bs-secondary-color);
}

.fulfill-meta-item i {
    width: 14px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.fulfill-meta-item span {
    color: var(--bs-body-color);
}

.fulfill-copy-btn {
    padding: 0.15rem 0.38rem;
    line-height: 1;
}

.fulfill-copy-btn i {
    font-size: 0.72rem;
}

.fulfill-corp {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(var(--bs-secondary-rgb), 0.1);
    font-size: 0.75rem;
    font-weight: 600;
}

.fulfill-owner {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(var(--bs-info-rgb), 0.12);
    color: var(--bs-info);
    font-size: 0.75rem;
    font-weight: 600;
}

.fulfill-owner--corp {
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
}

.fulfill-meta-item--owners {
    gap: 0.35rem;
}

.fulfill-meta-item--time {
    opacity: 0.8;
}

.fulfill-card__time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
    opacity: 0.8;
}

.fulfill-card__time i {
    font-size: 0.76rem;
}

/* Actions section */
.fulfill-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.fulfill-card__status {
    min-width: 110px;
    text-align: right;
}

.fulfill-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: transparent !important;
    border: none !important;
    line-height: 1.1;
}

.fulfill-status::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: currentcolor;
    opacity: 0.85;
}

.fulfill-status.bg-success { color: var(--bs-success) !important; }
.fulfill-status.bg-warning { color: var(--bs-warning) !important; }
.fulfill-status.bg-danger { color: var(--bs-danger) !important; }
.fulfill-status.bg-info { color: var(--bs-info) !important; }
.fulfill-status.bg-secondary { color: var(--bs-secondary) !important; }

.fulfill-card__buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fulfill-card__buttons form {
    margin: 0;
}

.fulfill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.68rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.fulfill-btn i {
    font-size: 0.72rem;
}

.fulfill-btn--accept {
    background: rgba(var(--bs-success-rgb), 0.1);
    border-color: rgba(var(--bs-success-rgb), 0.35);
    color: var(--bs-success);
}

.fulfill-btn--accept:hover {
    background: rgba(var(--bs-success-rgb), 0.18);
    border-color: rgba(var(--bs-success-rgb), 0.5);
    color: var(--bs-success);
}

.fulfill-btn--condition {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    color: var(--bs-primary);
}

.fulfill-btn--condition:hover {
    background: rgba(var(--bs-primary-rgb), 0.18);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    color: var(--bs-primary);
}

.fulfill-btn--decline {
    background: rgba(var(--bs-danger-rgb), 0.1);
    border-color: rgba(var(--bs-danger-rgb), 0.35);
    color: var(--bs-danger);
}

.fulfill-btn--decline:hover {
    background: rgba(var(--bs-danger-rgb), 0.18);
    border-color: rgba(var(--bs-danger-rgb), 0.5);
    color: var(--bs-danger);
}

.fulfill-btn--deliver {
    background: rgba(var(--bs-info-rgb), 0.1);
    border-color: rgba(var(--bs-info-rgb), 0.35);
    color: var(--bs-info);
}

.fulfill-btn--deliver:hover {
    background: rgba(var(--bs-info-rgb), 0.18);
    border-color: rgba(var(--bs-info-rgb), 0.5);
    color: var(--bs-info);
}

.fulfill-btn--chat {
    background: rgba(var(--bs-secondary-rgb), 0.1);
    border-color: rgba(var(--bs-secondary-rgb), 0.35);
    color: var(--bs-body-color);
}

.fulfill-btn--chat:hover {
    background: rgba(var(--bs-secondary-rgb), 0.18);
    border-color: rgba(var(--bs-secondary-rgb), 0.5);
}

/* Responsive: stack vertically */
@media (max-width: 991.98px) {
    .fulfill-card {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .fulfill-card__icon {
        width: 48px;
        height: 48px;
    }

    .fulfill-card__actions {
        align-items: flex-start;
        gap: 0.6rem;
    }

    .fulfill-card__status {
        text-align: left;
    }

    .fulfill-card__buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .fulfill-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .bp-request-grid__container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .bp-request-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .bp-request-card__icon {
        width: 32px;
        height: 32px;
    }

    .bp-request-card__title {
        font-size: 0.85rem;
    }

    .bp-request-card__inputs-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .bp-request-grid__container {
        grid-template-columns: 1fr;
    }

    .bp-request-card {
        padding: 1rem;
    }

    .bp-request-card__header {
        gap: 1rem;
    }

    .bp-request-counter {
        font-size: 0.9rem;
    }

    .bp-request-sort {
        width: 100%;
    }

    .bp-request-sort .btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
}
