/* Админ-панель плагина магазинов */

.shp-admin-wrap {
    margin: 20px;
}

.shp-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.shp-box-head {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    font-size: 16px;
}

.shp-box-head i {
    margin-right: 8px;
    color: #3498db;
}

.shp-box-inside {
    padding: 20px;
}

/* Формы */
.shp-form-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.shp-form-label {
    width: 180px;
    padding-top: 8px;
    font-weight: 600;
}

.shp-form-field {
    flex: 1;
}

.shp-form-field input[type="text"],
.shp-form-field input[type="number"],
.shp-form-field select,
.shp-form-field textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

.shp-desc {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Статистика */
.shp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.shp-stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.shp-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
}

.shp-stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* Таблицы */
.shp-table-wrap {
    overflow-x: auto;
}

.shp-table {
    width: 100%;
    border-collapse: collapse;
}

.shp-table th,
.shp-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.shp-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.shp-table tr:hover {
    background: #fafafa;
}

.shp-actions {
    white-space: nowrap;
}

/* Кнопки */
.shp-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.shp-btn-primary {
    background: #3498db;
    color: #fff;
}
.shp-btn-primary:hover {
    background: #2980b9;
}

.shp-btn-success {
    background: #27ae60;
    color: #fff;
}

.shp-btn-danger {
    background: #e74c3c;
    color: #fff;
}

.shp-btn-warning {
    background: #f39c12;
    color: #fff;
}

.shp-btn-small {
    padding: 4px 10px;
    font-size: 11px;
    margin: 0 2px;
}

/* Фильтры */
.shp-filters {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.shp-filters form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.shp-filters select,
.shp-filters input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Пустое сообщение */
.shp-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Статусы */
.shp-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.shp-status-pending {
    background: #fff3e0;
    color: #e65100;
}

.shp-status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.shp-status-rejected {
    background: #ffebee;
    color: #c62828;
}

.shp-status-blocked {
    background: #ffebee;
    color: #c62828;
}

.shp-status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Пагинация */
.shp-pagination {
    text-align: center;
    margin-top: 20px;
}

.shp-pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
    background: #fff;
}

.shp-pagination .shp-active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* Хинт */
.shp-hint {
    font-size: 11px;
    color: #999;
}