/* Services module */

.services-filter-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-table-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border-light);
}

.service-table-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info .service-name {
    font-weight: 600;
    color: var(--text);
}

.service-price-info .current-price {
    font-weight: 600;
    color: var(--text);
}

/* Mobile card view */
.services-card-view {
    display: none;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
}

.service-card-image {
    height: 120px;
    background: var(--border-light);
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.service-card-content {
    padding: 0.75rem;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.service-card-name {
    font-weight: 600;
}

.service-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.service-card-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.service-card-label {
    color: var(--text-muted);
}

.service-card-value.price {
    font-weight: 600;
}

.service-card-value.in-stock {
    color: var(--success);
}

.service-card-value.out-of-stock {
    color: var(--error);
}

.service-card-footer {
    display: flex;
    gap: 0.5rem;
}

.service-card-action {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: none;
    cursor: pointer;
    font-size: 0.8125rem;
}

.service-card-action.primary {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.service-card-action.danger {
    color: var(--error);
    border-color: var(--error);
}

@media (max-width: 768px) {
    .services-table-container {
        display: none;
    }

    .services-card-view {
        display: block;
    }
}
