.standard-list-page {
    --list-surface: #ffffff;
    --list-surface-muted: #f7faff;
    --list-border: #dbe4f0;
    --list-border-strong: #c6d3e2;
    --list-text: #1f2937;
    --list-text-muted: #64748b;
    --list-accent: #2563eb;
    --list-accent-soft: #dbeafe;
    --list-success: #15803d;
    --list-success-soft: #dcfce7;
    --list-warning: #b45309;
    --list-warning-soft: #fef3c7;
    --list-danger: #b91c1c;
    --list-danger-soft: #fee2e2;
    --list-info: #0f766e;
    --list-info-soft: #ccfbf1;
    --list-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.standard-list-page .summary-card,
.standard-list-page .search-filter-section,
.standard-list-page .table-container,
.standard-list-page .table-card {
    border: 1px solid var(--list-border);
    border-radius: 16px;
    box-shadow: var(--list-shadow);
}

.standard-list-page .summary-card,
.standard-list-page .search-filter-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.standard-list-page .table-container,
.standard-list-page .table-card {
    background: var(--list-surface);
    overflow-x: auto;
    overflow-y: hidden;
}

.standard-list-page .admin-selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 16px;
    border: 1px solid var(--list-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.standard-list-page .admin-selection-toolbar[hidden] {
    display: none;
}

.standard-list-page .admin-selection-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--list-text);
    font-size: 13px;
    font-weight: 600;
}

.standard-list-page .admin-selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--list-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.standard-list-page .admin-selection-caption {
    color: var(--list-text-muted);
    font-weight: 500;
}

.standard-list-page .admin-selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.standard-list-page .page-header {
    align-items: center;
    gap: 16px;
}

.standard-list-page .page-header .header-actions {
    flex-wrap: wrap;
}

.standard-list-page .page-header .btn,
.standard-list-page .search-box .btn,
.standard-list-page .modal-footer .btn {
    width: auto;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.standard-list-page .btn,
.standard-list-page .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.standard-list-page .btn:hover,
.standard-list-page .btn-action:hover {
    transform: translateY(-1px);
}

.standard-list-page .btn.btn-primary {
    background: var(--list-accent);
    color: #ffffff;
    border-color: var(--list-accent);
}

.standard-list-page .btn.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.standard-list-page .btn.btn-secondary,
.standard-list-page .btn-action.is-secondary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.standard-list-page .btn.btn-secondary:hover,
.standard-list-page .btn-action.is-secondary:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.standard-list-page .btn.btn-info,
.standard-list-page .btn-action.is-info {
    background: var(--list-info-soft);
    color: var(--list-info);
    border-color: #99f6e4;
}

.standard-list-page .btn.btn-info:hover,
.standard-list-page .btn-action.is-info:hover {
    background: #99f6e4;
    border-color: #5eead4;
}

.standard-list-page .btn.btn-success,
.standard-list-page .btn-action.is-success {
    background: var(--list-success-soft);
    color: var(--list-success);
    border-color: #86efac;
}

.standard-list-page .btn.btn-success:hover,
.standard-list-page .btn-action.is-success:hover {
    background: #bbf7d0;
    border-color: #4ade80;
}

.standard-list-page .btn.btn-warning,
.standard-list-page .btn-action.is-warning {
    background: var(--list-warning-soft);
    color: var(--list-warning);
    border-color: #fcd34d;
}

.standard-list-page .btn.btn-warning:hover,
.standard-list-page .btn-action.is-warning:hover {
    background: #fde68a;
    border-color: #fbbf24;
}

.standard-list-page .btn.btn-danger,
.standard-list-page .btn-action.is-danger,
.standard-list-page .btn-action.danger {
    background: var(--list-danger-soft);
    color: var(--list-danger);
    border-color: #fecaca;
}

.standard-list-page .btn.btn-danger:hover,
.standard-list-page .btn-action.is-danger:hover,
.standard-list-page .btn-action.danger:hover {
    background: #fecaca;
    border-color: #fca5a5;
}

.standard-list-page .btn.btn-link {
    color: var(--list-accent);
}

.standard-list-page .btn.btn-small,
.standard-list-page .btn-action {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.standard-list-page .action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.standard-list-page .search-input,
.standard-list-page .filter-select,
.standard-list-page .form-group input,
.standard-list-page .form-group select,
.standard-list-page .form-group textarea {
    border-color: var(--list-border-strong);
    border-radius: 10px;
}

.standard-list-page .table-container table,
.standard-list-page .table-card table,
.standard-list-page .standard-data-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.standard-list-page .table-container thead,
.standard-list-page .table-card thead,
.standard-list-page .standard-data-table thead {
    background: #f8fbff;
}

.standard-list-page .table-container th,
.standard-list-page .table-container td,
.standard-list-page .table-card th,
.standard-list-page .table-card td,
.standard-list-page .standard-data-table th,
.standard-list-page .standard-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e6edf5;
    vertical-align: middle;
    color: var(--list-text);
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.standard-list-page .table-container th,
.standard-list-page .table-card th,
.standard-list-page .standard-data-table th {
    color: #334155;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.standard-list-page .table-container table[data-admin-table-selectable="true"] tbody tr,
.standard-list-page .table-card table[data-admin-table-selectable="true"] tbody tr,
.standard-list-page .standard-data-table[data-admin-table-selectable="true"] tbody tr {
    cursor: pointer;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.standard-list-page .table-container tbody tr:hover,
.standard-list-page .table-card tbody tr:hover,
.standard-list-page .standard-data-table tbody tr:hover {
    background: var(--list-surface-muted);
}

.standard-list-page .table-container table[data-admin-table-selectable="true"] tbody tr.is-selected,
.standard-list-page .table-card table[data-admin-table-selectable="true"] tbody tr.is-selected,
.standard-list-page .standard-data-table[data-admin-table-selectable="true"] tbody tr.is-selected {
    background: #eef4ff;
    box-shadow: inset 3px 0 0 var(--list-accent);
}

.standard-list-page .table-container table[data-admin-table-selectable="true"] tbody tr.is-selected:hover,
.standard-list-page .table-card table[data-admin-table-selectable="true"] tbody tr.is-selected:hover,
.standard-list-page .standard-data-table[data-admin-table-selectable="true"] tbody tr.is-selected:hover {
    background: #e5efff;
}

.standard-list-page .table-container tbody tr :is(button, a, input, select, textarea, label),
.standard-list-page .table-card tbody tr :is(button, a, input, select, textarea, label),
.standard-list-page .standard-data-table tbody tr :is(button, a, input, select, textarea, label) {
    cursor: auto;
}

.standard-list-page .table-container table[data-admin-table-selectable="true"] th:first-child,
.standard-list-page .table-container table[data-admin-table-selectable="true"] td:first-child,
.standard-list-page .table-card table[data-admin-table-selectable="true"] th:first-child,
.standard-list-page .table-card table[data-admin-table-selectable="true"] td:first-child,
.standard-list-page .standard-data-table[data-admin-table-selectable="true"] th:first-child,
.standard-list-page .standard-data-table[data-admin-table-selectable="true"] td:first-child {
    text-align: center;
}

.standard-list-page .table-container input[type="checkbox"],
.standard-list-page .table-card input[type="checkbox"],
.standard-list-page .standard-data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--list-accent);
}

.standard-list-page .status-badge,
.standard-list-page .role-badge,
.standard-list-page .method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.standard-list-page .status-badge.active {
    background: var(--list-success-soft);
    color: var(--list-success);
}

.standard-list-page .status-badge.inactive {
    background: var(--list-danger-soft);
    color: var(--list-danger);
}

.standard-list-page .role-badge {
    background: #eef2ff;
    color: #4338ca;
}

.standard-list-page .logical-key-cell {
    min-width: 0;
}

.standard-list-page .logical-key-value {
    display: block;
    color: var(--list-text);
    font-size: 12px;
    word-break: break-all;
}

.standard-list-page .logical-key-reason {
    color: var(--list-text-muted);
}

.standard-list-page col.table-col-checkbox {
    width: 52px;
}

.standard-list-page col.table-col-id {
    width: 140px;
}

.standard-list-page col.table-col-name {
    width: 180px;
}

.standard-list-page col.table-col-email {
    width: 240px;
}

.standard-list-page col.table-col-role,
.standard-list-page col.table-col-method,
.standard-list-page col.table-col-status,
.standard-list-page col.table-col-measure {
    width: 110px;
}

.standard-list-page col.table-col-country {
    width: 120px;
}

.standard-list-page col.table-col-api-id {
    width: 96px;
}

.standard-list-page col.table-col-api-category {
    width: 144px;
}

.standard-list-page col.table-col-date {
    width: 132px;
}

.standard-list-page col.table-col-category {
    width: 220px;
}

.standard-list-page col.table-col-url {
    width: 280px;
}

.standard-list-page col.table-col-program {
    width: 120px;
}

.standard-list-page col.table-col-actions {
    width: 230px;
}

@media (max-width: 1100px) {
    .standard-list-page .page-header {
        align-items: flex-start;
    }

    .standard-list-page .page-header .header-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .standard-list-page .admin-selection-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .standard-list-page .admin-selection-actions .btn {
        width: 100%;
    }

    .standard-list-page .search-box {
        flex-wrap: wrap;
    }

    .standard-list-page .search-box .search-input,
    .standard-list-page .search-box .btn {
        width: 100%;
    }
}
