.sr-search {
    margin-top: 8px;
}

.sr-search-row {
    display: flex;
    gap: 10px;
}

.sr-search-row .form-control {
    flex: 1;
}

.sr-tip {
    margin: 8px 0 12px;
    color: #9ca3af;
    font-size: 12px;
}

.sr-search-list {
    display: grid;
    gap: 12px;
}

.sr-search-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #2f3136;
    border-radius: 12px;
    background: #111317;
}

.sr-search-item img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #272b31;
}

.sr-search-main h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #f3f4f6;
}

.sr-search-main p {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.55;
}

.sr-list {
    display: grid;
    gap: 12px;
}

.sr-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid #2f3136;
    border-radius: 14px;
    padding: 12px;
    background: #111317;
}

.sr-cover img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #272b31;
}

.sr-item-top {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
}

.sr-top-main {
    min-width: 0;
}

.sr-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sr-title-line h3 {
    margin: 0;
    font-size: 16px;
    color: #f3f4f6;
}

.sr-sub {
    margin: 4px 0 10px;
    color: #9ca3af;
    font-size: 12px;
}

.sr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 64px;
    white-space: nowrap;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.sr-badge.on {
    color: #d1fae5;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.16));
    border-color: rgba(52, 211, 153, 0.45);
}

.sr-badge.off {
    color: #d1d5db;
    background: rgba(75, 85, 99, 0.18);
    border-color: rgba(107, 114, 128, 0.38);
}

.sr-badge.locked {
    color: #fde68a;
    background: rgba(180, 83, 9, 0.22);
    border-color: rgba(245, 158, 11, 0.42);
}

.sr-form-grid {
    display: grid;
    grid-template-columns: 88px minmax(0, 220px) 112px minmax(0, 220px);
    gap: 8px 10px;
    align-items: center;
}

.sr-form-grid label {
    margin: 0;
    color: #d1d5db;
    font-size: 12px;
}

.sr-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sr-action-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.sr-btn-save {
    color: #0f172a;
    background: linear-gradient(180deg, #f5d97a, #d4af37);
    border-color: rgba(212, 175, 55, 0.8);
}

.sr-btn-save:hover {
    filter: brightness(1.05);
}

.sr-btn-sale {
    color: #e5e7eb;
    background: #1f2937;
    border-color: #374151;
}

.sr-btn-sale:hover {
    border-color: #6b7280;
    color: #f9fafb;
}

.sr-btn-add {
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(34, 197, 94, 0.45);
}

.sr-btn-add:hover {
    background: rgba(22, 163, 74, 0.28);
}

.sr-btn-locate {
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.16);
    border-color: rgba(245, 158, 11, 0.45);
}

.sr-btn-locate:hover {
    background: rgba(217, 119, 6, 0.26);
}

.sr-btn-delete {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.25);
    border-color: rgba(220, 38, 38, 0.45);
}

.sr-btn-delete:hover {
    background: rgba(127, 29, 29, 0.4);
    color: #fee2e2;
}

.sr-loading,
.sr-empty {
    border: 1px dashed #2f3136;
    border-radius: 8px;
    color: #9ca3af;
    padding: 14px;
    text-align: center;
}

.sr-item-active {
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.28), 0 16px 30px rgba(0, 0, 0, 0.28);
}

.sr-item-locked {
    border-color: rgba(245, 158, 11, 0.45);
}

.sr-confirm-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.sr-confirm-mask.show {
    display: flex;
}

.sr-confirm-dialog {
    width: min(420px, 100%);
    background: #111317;
    border: 1px solid #2f3136;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 18px;
}

.sr-confirm-title {
    margin: 0;
    font-size: 18px;
    color: #f3f4f6;
}

.sr-confirm-text {
    margin: 10px 0 16px;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
}

.sr-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sr-confirm-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #1f2937;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sr-confirm-btn:hover {
    border-color: #6b7280;
}

.sr-confirm-btn.danger {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(220, 38, 38, 0.45);
    color: #fecaca;
}

.sr-confirm-btn.danger:hover {
    background: rgba(127, 29, 29, 0.5);
}

@media (max-width: 767px) {
    .sr-search-row {
        flex-direction: column;
    }

    .sr-search-row .edit-btn {
        width: 100%;
        justify-content: center;
    }

    .sr-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .sr-item-top {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 0.75rem;
        margin-bottom: 0.65rem;
    }

    .sr-cover img {
        width: 64px;
        height: 64px;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }

    .sr-main,
    .sr-top-main {
        min-width: 0;
    }

    .sr-title-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        margin-bottom: 0.25rem;
    }

    .sr-title-line h3 {
        font-size: 14px;
        line-height: 1.4;
    }

    .sr-sub {
        margin: 0;
        line-height: 1.5;
    }

    .sr-form-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .sr-form-grid label {
        font-size: 11px;
    }

    .sr-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .sr-actions .sr-action-btn {
        width: 100%;
        min-width: 0;
        padding: 0 0.4rem;
        justify-content: center;
        font-size: 12px;
    }

    .sr-search-item {
        grid-template-columns: 48px 1fr;
        align-items: start;
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
    }

    .sr-search-item .sr-action-btn {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .sr-search-main h4 {
        font-size: 14px;
        line-height: 1.4;
    }

    .sr-search-main p {
        font-size: 12px;
        line-height: 1.5;
    }

    .sr-confirm-actions {
        flex-direction: column;
    }

    .sr-confirm-btn {
        width: 100%;
    }
}
