Files
media-parser/static/css/console.css
T

3499 lines
68 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ==========================================================================
Media Parser Console - Enterprise Big-Tech Design System
Modern, Minimalist, Mainstream SaaS Design (Linear / Stripe / Vercel Aesthetic)
========================================================================== */
:root {
color-scheme: light;
/* Brand Accent Colors (Refined Indigo & Electric Blue) */
--brand: #4f46e5;
--brand-hover: #4338ca;
--brand-active: #3730a3;
--brand-light: #eef2ff;
--brand-light-hover: #e0e7ff;
--brand-border: #c7d2fe;
/* Neutral / Slate Palette */
--bg-app: #f8fafc;
--bg-card: #ffffff;
--bg-subtle: #f1f5f9;
--bg-muted: #e2e8f0;
--ink: #0f172a;
--ink-secondary: #334155;
--ink-muted: #64748b;
--ink-subtle: #94a3b8;
--line: #e2e8f0;
--line-subtle: #f1f5f9;
/* Status Colors */
--success: #059669;
--success-bg: #ecfdf5;
--success-border: #a7f3d0;
--success-text: #065f46;
--danger: #dc2626;
--danger-hover: #b91c1c;
--danger-bg: #fef2f2;
--danger-border: #fecaca;
--danger-text: #991b1b;
--warning: #d97706;
--warning-bg: #fffbeb;
--warning-border: #fde68a;
--warning-text: #92400e;
--info: #0284c7;
--info-bg: #f0f9ff;
--info-border: #bae6fd;
--info-text: #075985;
/* Layout Dimensions & Typography */
--sidebar-width: 240px;
--topbar-height: 56px;
--radius-xs: 4px;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-2xl: 20px;
/* Shadows */
--shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
--shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
--shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
--shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
--shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
/* Transitions */
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after {
box-sizing: border-box;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: var(--ink);
background-color: var(--bg-app);
font-size: 14px;
line-height: 1.5;
}
a {
color: inherit;
text-decoration: none;
transition: color 0.15s ease;
}
/* Base App Layout */
.console-app {
display: flex;
min-height: 100vh;
}
/* ==========================================================================
Sidebar Navigation (Left Rail)
========================================================================== */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-card);
border-right: 1px solid var(--line);
display: flex;
flex-direction: column;
justify-content: space-between;
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 20;
user-select: none;
}
.sidebar-head {
padding: 16px 16px 14px;
border-bottom: 1px solid var(--line);
display: flex;
flex-direction: column;
gap: 8px;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 750;
font-size: 15px;
color: var(--ink);
letter-spacing: -0.02em;
}
.brand img {
width: 28px;
height: 28px;
border-radius: var(--radius-md);
box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}
.role-badge {
align-self: flex-start;
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: 9999px;
background: var(--brand-light);
color: var(--brand);
border: 1px solid var(--brand-border);
}
.sidebar-nav {
padding: 14px 10px;
flex: 1;
overflow-y: auto;
}
.sidebar-nav::-webkit-scrollbar {
width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
.nav-group-title {
font-size: 11px;
font-weight: 700;
color: var(--ink-subtle);
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 10px 10px 4px;
}
.nav-group-title:not(:first-child) {
margin-top: 14px;
}
.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-radius: var(--radius-md);
font-size: 13.5px;
font-weight: 500;
color: var(--ink-secondary);
transition: all 0.15s ease;
margin-bottom: 2px;
position: relative;
}
.nav-item:hover {
background: var(--bg-subtle);
color: var(--ink);
}
.nav-item.active {
background: var(--brand-light);
color: var(--brand);
font-weight: 600;
}
.nav-icon {
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.app-icon {
width: 1em;
height: 1em;
display: block;
fill: none;
stroke: currentColor;
stroke-width: 1.9;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-icon .app-icon {
width: 18px;
height: 18px;
}
.sidebar-foot {
padding: 12px 14px;
border-top: 1px solid var(--line);
background: #fafafa;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.user-card-inner {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
min-width: 0;
}
.user-avatar {
width: 32px;
height: 32px;
border-radius: var(--radius-md);
background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
color: var(--brand);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 13.5px;
border: 1px solid var(--brand-border);
flex-shrink: 0;
}
.user-meta {
flex: 1;
min-width: 0;
}
.user-name {
font-size: 13px;
font-weight: 650;
color: var(--ink);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-role {
font-size: 11px;
color: var(--ink-muted);
margin-top: 1px;
}
.sidebar-action-btn, .logout-icon-btn {
background: transparent;
border: none;
color: var(--ink-muted);
width: 32px;
height: 32px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.15s ease;
flex-shrink: 0;
padding: 0;
}
.sidebar-action-btn:hover {
background: var(--brand-light);
color: var(--brand);
}
.logout-icon-btn:hover {
background: var(--danger-bg);
color: var(--danger);
}
/* ==========================================================================
Main Content Area & Topbar
========================================================================== */
.main-wrapper {
flex: 1;
margin-left: var(--sidebar-width);
min-width: 0;
display: flex;
flex-direction: column;
}
.main-topbar {
height: var(--topbar-height);
padding: 0 20px;
background: rgba(255, 255, 255, 0.88);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--line);
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 10;
}
.topbar-left {
display: flex;
align-items: center;
gap: 12px;
}
.topbar-breadcrumb {
display: flex;
align-items: center;
gap: 6px;
font-size: 12.5px;
color: var(--ink-subtle);
}
.topbar-breadcrumb a:hover {
color: var(--ink);
}
.topbar-separator {
color: #cbd5e1;
}
.page-title {
font-size: 16px;
font-weight: 700;
color: var(--ink);
margin: 0;
letter-spacing: -0.01em;
}
.topbar-right {
display: flex;
align-items: center;
gap: 10px;
}
.topbar-link {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12.5px;
font-weight: 550;
color: var(--ink-secondary);
padding: 5px 12px;
border-radius: var(--radius-md);
border: 1px solid var(--line);
background: var(--bg-card);
transition: all 0.15s ease;
}
.topbar-link:hover {
background: var(--bg-subtle);
border-color: #cbd5e1;
color: var(--ink);
}
.status-pill {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 550;
padding: 4px 10px;
border-radius: 9999px;
background: var(--bg-subtle);
color: var(--ink-secondary);
border: 1px solid var(--line);
}
.status-pill.online {
background: var(--success-bg);
color: var(--success-text);
border-color: var(--success-border);
}
.status-pill.offline {
background: var(--danger-bg);
color: var(--danger-text);
border-color: var(--danger-border);
}
.status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
}
.status-dot.pulse {
animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
0% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(0.85); }
100% { opacity: 1; transform: scale(1); }
}
.container {
width: 100%;
max-width: 100%;
padding: 16px 20px 36px;
margin: 0;
}
/* ==========================================================================
Page Headers & Metric KPI Cards
========================================================================== */
.page-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
margin-bottom: 24px;
}
.page-head h1 {
margin: 0 0 6px;
font-size: 22px;
font-weight: 800;
letter-spacing: -0.03em;
color: var(--ink);
}
.card {
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius-xl);
padding: 22px 24px;
box-shadow: var(--shadow-xs);
transition: box-shadow 0.2s ease, border-color 0.2s ease;
scroll-margin-top: 80px;
}
.card + .card {
margin-top: 20px;
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
gap: 12px;
flex-wrap: wrap;
}
.card h2 {
margin: 0 0 4px;
font-size: 15px;
font-weight: 700;
color: var(--ink);
letter-spacing: -0.01em;
}
.title {
margin: 0 0 8px;
font-size: 24px;
font-weight: 800;
letter-spacing: -0.03em;
color: var(--ink);
}
.subtitle, .muted {
color: var(--ink-muted);
}
.subtitle {
margin: 0 0 24px;
font-size: 13.5px;
line-height: 1.6;
}
/* KPI Statistics Grid */
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 24px;
align-items: stretch;
}
.stats > .card, .grid-2 > .card, .dashboard-charts-grid > .card {
margin-top: 0;
}
.stat {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 18px 20px;
border-radius: var(--radius-lg);
background: var(--bg-card);
border: 1px solid var(--line);
box-shadow: var(--shadow-xs);
transition: all 0.2s ease;
position: relative;
overflow: hidden;
height: 100%;
}
.stat:hover {
border-color: #cbd5e1;
box-shadow: var(--shadow-sm);
transform: translateY(-1px);
}
.stat-head {
display: flex;
align-items: center;
justify-content: space-between;
}
.stat-label {
font-size: 12.5px;
font-weight: 550;
color: var(--ink-muted);
}
.stat-icon {
width: 28px;
height: 28px;
border-radius: var(--radius-sm);
background: var(--bg-subtle);
color: var(--ink-secondary);
display: flex;
align-items: center;
justify-content: center;
}
.stat strong {
display: block;
font-size: 26px;
font-weight: 800;
letter-spacing: -0.03em;
color: var(--ink);
margin-top: 10px;
font-variant-numeric: tabular-nums;
line-height: 1.15;
}
.stat-foot {
margin-top: 8px;
font-size: 11.5px;
color: var(--ink-subtle);
}
/* Two-column responsive grid */
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
align-items: stretch;
}
.grid-2 > .card {
display: flex;
flex-direction: column;
justify-content: flex-start;
height: 100%;
}
.row {
display: flex;
align-items: center;
gap: 10px;
}
.between {
justify-content: space-between;
}
.stack {
display: flex;
flex-direction: column;
gap: 10px;
}
/* ==========================================================================
Interactive Controls & Forms
========================================================================== */
.field {
margin: 16px 0;
}
.field label {
display: block;
font-size: 13px;
font-weight: 600;
color: var(--ink-secondary);
margin-bottom: 6px;
}
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
width: 100%;
height: 42px;
border: 1px solid #cbd5e1;
border-radius: var(--radius-md);
padding: 0 14px;
background: var(--bg-card);
color: var(--ink);
font-size: 14px;
font-family: inherit;
transition: all 0.15s ease;
}
select {
appearance: none;
-webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 32px !important;
cursor: pointer;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
outline: none;
border-color: var(--brand);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
input:not([type="checkbox"]):not([type="radio"])::placeholder {
color: #64748b;
}
input[type="checkbox"], input[type="radio"] {
width: 16px !important;
height: 16px !important;
min-width: 16px !important;
max-width: 16px !important;
margin: 0 !important;
padding: 0 !important;
border-radius: 4px;
cursor: pointer;
accent-color: var(--brand);
vertical-align: middle;
}
.table-select-all, .row-checkbox {
width: 16px !important;
height: 16px !important;
margin: 0 auto !important;
cursor: pointer;
accent-color: var(--brand);
}
/* Table Header Batch Selection Dropdown (Matching Reference Design) */
.batch-select-dropdown {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
vertical-align: middle;
}
.batch-select-dropdown .table-select-all {
margin: 0 !important;
flex-shrink: 0;
}
.batch-dropdown-trigger {
position: absolute;
left: 100%;
top: 50%;
transform: translateY(-50%);
margin-left: 2px;
background: transparent;
border: none;
padding: 2px;
display: inline-flex;
align-items: center;
justify-content: center;
color: #64748b;
cursor: pointer;
border-radius: 4px;
line-height: 1;
transition: all 0.15s ease;
}
.batch-dropdown-trigger:hover {
background: #e2e8f0;
color: #1e293b;
}
.batch-chevron-icon {
width: 12px;
height: 12px;
stroke: currentColor;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.batch-select-dropdown.open .batch-chevron-icon {
transform: rotate(180deg);
}
.batch-dropdown-menu {
position: absolute;
top: calc(100% + 8px);
left: -4px;
background: #ffffff;
border: 1px solid rgba(226, 232, 240, 0.9);
border-radius: 8px;
box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
padding: 6px 0;
min-width: 110px;
display: none;
flex-direction: column;
z-index: 1000;
text-align: left;
user-select: none;
}
.batch-select-dropdown.open .batch-dropdown-menu {
display: flex;
animation: batchDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes batchDropdownFadeIn {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.batch-dropdown-item {
display: flex;
align-items: center;
width: 100%;
padding: 8px 14px;
font-size: 13.5px;
font-weight: 500;
color: #1e293b;
background: transparent;
border: none;
cursor: pointer;
white-space: nowrap;
text-align: left;
transition: background 0.12s ease, color 0.12s ease;
}
.batch-dropdown-item:hover {
background: #f1f5f9;
color: var(--brand);
}
/* Row Action Dropdown */
.action-dropdown {
position: relative;
display: inline-flex;
}
.action-dropdown-trigger {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
border-radius: var(--radius-sm);
border: 1px solid var(--line);
background: var(--bg-card);
color: var(--ink-secondary);
cursor: pointer;
transition: all 0.15s ease;
}
.action-dropdown-trigger:hover,
.action-dropdown.open .action-dropdown-trigger {
background: var(--bg-subtle);
color: var(--ink);
border-color: #cbd5e1;
}
.action-dropdown-menu {
position: absolute;
top: calc(100% + 4px);
right: 0;
z-index: 50;
min-width: 130px;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
padding: 4px;
display: none;
flex-direction: column;
gap: 2px;
text-align: left;
}
.action-dropdown.open .action-dropdown-menu {
display: flex;
}
.action-dropdown-item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 6px 10px;
font-size: 13px;
font-weight: 500;
color: var(--ink-secondary);
background: transparent;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
text-align: left;
transition: all 0.12s ease;
white-space: nowrap;
}
.action-dropdown-item:hover {
background: var(--bg-subtle);
color: var(--brand);
}
.action-dropdown-item.danger {
color: var(--danger);
}
.action-dropdown-item.danger:hover {
background: var(--danger-bg);
color: var(--danger-hover);
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 36px;
border: 1px solid transparent;
border-radius: var(--radius-md);
padding: 0 14px;
font-size: 13px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
background: var(--bg-subtle);
color: var(--ink-secondary);
transition: all 0.15s ease;
user-select: none;
white-space: nowrap;
}
.btn:hover {
background: #e2e8f0;
color: var(--ink);
}
.btn-primary {
background: var(--brand);
color: #ffffff;
border-color: var(--brand);
box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
}
.btn-primary:hover {
background: var(--brand-hover);
border-color: var(--brand-hover);
color: #ffffff;
box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}
.btn-secondary {
background: var(--bg-card);
border: 1px solid #cbd5e1;
color: var(--ink-secondary);
box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
background: var(--bg-subtle);
border-color: #94a3b8;
color: var(--ink);
}
.btn-danger {
background: var(--danger-bg);
border-color: var(--danger-border);
color: var(--danger);
}
.btn-danger:hover {
background: #fee2e2;
border-color: #fca5a5;
color: var(--danger-hover);
}
.btn-small {
height: 28px;
padding: 0 9px;
font-size: 12px;
border-radius: var(--radius-sm);
}
.btn-block {
width: 100%;
}
/* Badges & Tags */
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 9999px;
font-size: 11.5px;
font-weight: 600;
background: var(--success-bg);
color: var(--success-text);
border: 1px solid var(--success-border);
}
.badge.off,
.badge.danger {
background: var(--danger-bg);
color: var(--danger-text);
border-color: var(--danger-border);
}
.badge.warning {
background: var(--warning-bg);
color: var(--warning-text);
border-color: var(--warning-border);
}
.badge.info {
background: var(--info-bg);
color: var(--info-text);
border-color: var(--info-border);
}
.badge.brand {
background: var(--brand-light);
color: var(--brand);
border-color: var(--brand-border);
}
.badge.neutral {
background: var(--bg-subtle);
color: var(--ink-secondary);
border-color: var(--line);
}
.key {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
background: var(--bg-subtle);
border: 1px solid var(--line);
border-radius: var(--radius-sm);
padding: 3px 8px;
font-size: 12px;
color: var(--ink-secondary);
display: inline-block;
letter-spacing: 0.02em;
}
.secret {
background: #0f172a;
color: #f8fafc;
padding: 16px;
border-radius: var(--radius-lg);
overflow-wrap: anywhere;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 13px;
line-height: 1.6;
border: 1px solid #1e293b;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.notice {
padding: 14px 18px;
border: 1px solid var(--warning-border);
background: var(--warning-bg);
color: var(--warning-text);
border-radius: var(--radius-lg);
margin-bottom: 20px;
font-size: 13.5px;
display: flex;
align-items: center;
gap: 10px;
}
.code {
margin: 12px 0 0;
background: #0f172a;
color: #e2e8f0;
padding: 16px 18px;
border-radius: var(--radius-lg);
overflow: auto;
font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
border: 1px solid #1e293b;
}
/* ==========================================================================
Modern Enterprise Data Tables
========================================================================== */
.table-wrap {
width: 100%;
overflow-x: auto;
border: 1px solid var(--line);
border-radius: var(--radius-lg);
background: var(--bg-card);
box-shadow: var(--shadow-xs);
}
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
text-align: left;
}
thead {
background: var(--bg-subtle);
border-bottom: 1px solid var(--line);
}
th {
color: var(--ink-secondary);
font-weight: 650;
font-size: 12px;
padding: 11px 16px;
letter-spacing: 0.01em;
white-space: nowrap;
}
td {
padding: 12px 16px;
border-bottom: 1px solid var(--line-subtle);
color: var(--ink);
vertical-align: middle;
}
tbody tr {
transition: background-color 0.12s ease;
}
tbody tr:hover {
background-color: #f8fafc;
}
tbody tr:last-child td {
border-bottom: none;
}
/* Sticky Action Column (固定右侧操作列) */
.th-action,
.td-action {
position: sticky !important;
right: 0 !important;
z-index: 2;
background: var(--bg-card);
text-align: right;
white-space: nowrap;
}
/* 操作菜单展开时提升当前操作列层级,防止被下方行的 sticky 单元格背景遮挡 */
.td-action:has(.action-dropdown.open),
.td-action.dropdown-active {
z-index: 50 !important;
}
thead .th-action {
z-index: 4;
background: var(--bg-subtle);
}
tbody tr:hover .td-action {
background: #f8fafc;
}
.th-action::before,
.td-action::before {
content: '';
position: absolute;
top: 0;
left: -8px;
bottom: 0;
width: 8px;
pointer-events: none;
background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(15, 23, 42, 0.05));
}
/* Table Inline Controls */
table input[type="date"],
table input[type="number"],
table select {
height: 30px;
padding: 0 8px;
font-size: 12.5px;
border-radius: var(--radius-sm);
border: 1px solid #cbd5e1;
background: #ffffff;
}
table input[type="number"] {
text-align: right;
}
/* iOS Style Smooth Toggle Switch */
.switch {
position: relative;
display: inline-block;
width: 42px;
height: 22px;
flex-shrink: 0;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
margin: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #cbd5e1;
transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
border-radius: 9999px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 3px;
bottom: 3px;
background-color: #ffffff;
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.switch input:checked + .slider {
background-color: var(--brand);
}
.switch input:focus-visible + .slider {
box-shadow: 0 0 0 2px var(--brand-light), 0 0 0 4px var(--brand);
}
.switch input:checked + .slider:before {
transform: translateX(20px);
}
.switch-sm {
width: 36px;
height: 19px;
}
.switch-sm .slider:before {
height: 13px;
width: 13px;
left: 3px;
bottom: 3px;
}
.switch-sm input:checked + .slider:before {
transform: translateX(17px);
}
/* ==========================================================================
Segmented Controls & Modern Charts
========================================================================== */
.period-tabs {
display: inline-flex;
background: var(--bg-subtle);
border-radius: var(--radius-md);
padding: 3px;
gap: 2px;
border: 1px solid var(--line);
}
.period-tab {
padding: 5px 12px;
font-size: 12.5px;
font-weight: 550;
color: var(--ink-muted);
border-radius: var(--radius-sm);
text-decoration: none;
transition: all 0.15s ease;
cursor: pointer;
border: none;
background: transparent;
user-select: none;
}
.period-tab:hover {
color: var(--ink);
}
.period-tab.active {
background: #ffffff;
color: var(--brand);
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
font-weight: 650;
}
.dashboard-charts-grid {
display: grid;
grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
gap: 20px;
margin-top: 20px;
align-items: start;
}
.chart-container {
position: relative;
width: 100%;
}
.chart-tooltip {
position: absolute;
display: none;
pointer-events: none;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: var(--ink);
padding: 10px 14px;
border-radius: var(--radius-lg);
font-size: 12px;
line-height: 1.5;
border: 1px solid var(--line);
box-shadow: var(--shadow-lg);
z-index: 20;
white-space: nowrap;
transition: left 0.06s ease, top 0.06s ease, opacity 0.15s ease, transform 0.15s ease;
opacity: 0;
transform: translateY(4px);
}
.chart-tooltip.active {
display: block;
opacity: 1;
transform: translateY(0);
}
.chart-tooltip .tt-title {
font-weight: 700;
margin-bottom: 6px;
color: var(--ink-secondary);
border-bottom: 1px solid var(--line-subtle);
padding-bottom: 4px;
font-size: 12px;
}
.chart-tooltip .tt-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-top: 3px;
color: var(--ink-secondary);
}
.chart-tooltip .tt-row strong {
color: var(--ink);
font-variant-numeric: tabular-nums;
}
.chart-tooltip .tt-dot {
width: 7px;
height: 7px;
border-radius: 50%;
display: inline-block;
}
.chart-hover-dot {
transition: cx 0.06s ease, cy 0.06s ease;
filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.22));
}
/* Donut & Ranking Components */
.pie-wrapper {
display: flex;
flex-direction: column;
gap: 8px;
align-items: center;
justify-content: center;
padding: 4px 0;
}
.pie-svg-box {
position: relative;
width: 236px;
height: 236px;
flex-shrink: 0;
}
.pie-center-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
pointer-events: none;
width: 140px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
}
.pie-center-lbl {
font-size: 11.5px;
color: var(--ink-muted);
white-space: nowrap;
line-height: 1;
transition: all 0.15s ease;
}
.pie-center-val {
font-size: 20px;
font-weight: 700;
color: var(--ink);
line-height: 1.15;
font-variant-numeric: tabular-nums;
letter-spacing: -0.02em;
word-break: keep-all;
white-space: nowrap;
transition: all 0.15s ease;
}
.pie-slice {
transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
cursor: pointer;
transform-origin: 100px 100px;
}
.pie-slice:hover, .pie-slice.active {
opacity: 0.95;
transform: scale(1.05);
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
/* 50+ 平台紧凑居中图例 (完全对齐图片设计:圆点 + 平台名称) */
.pie-pill-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 3px 8px;
margin-top: 8px;
width: 100%;
max-height: 220px;
overflow-y: auto;
padding: 2px 4px;
}
.pie-pill-grid::-webkit-scrollbar {
width: 4px;
}
.pie-pill-grid::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
.pie-pill-item {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11.5px;
color: var(--ink-secondary);
cursor: pointer;
background: transparent;
border: none;
padding: 1.5px 4px;
border-radius: var(--radius-sm);
transition: all 0.15s ease;
user-select: none;
}
.pie-pill-item:hover, .pie-pill-item.active {
color: var(--ink);
background: var(--bg-subtle);
transform: translateY(-1px);
}
.pie-pill-dot {
width: 7.5px;
height: 7.5px;
border-radius: 50%;
flex-shrink: 0;
}
.pie-pill-name {
font-weight: 500;
color: inherit;
white-space: nowrap;
}
/* Ranking Bars */
.ranking-list {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 8px;
}
.ranking-item {
display: flex;
flex-direction: column;
gap: 5px;
font-size: 12.5px;
}
.ranking-head {
display: flex;
justify-content: space-between;
align-items: center;
}
.ranking-name {
font-weight: 600;
color: var(--ink-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 220px;
display: flex;
align-items: center;
gap: 6px;
}
.ranking-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 4px;
font-size: 10.5px;
font-weight: 700;
background: var(--bg-subtle);
color: var(--ink-muted);
}
.ranking-item:nth-child(1) .ranking-badge {
background: #fef3c7;
color: #b45309;
}
.ranking-item:nth-child(2) .ranking-badge {
background: #f1f5f9;
color: #475569;
}
.ranking-item:nth-child(3) .ranking-badge {
background: #ffedd5;
color: #c2410c;
}
.ranking-val {
font-weight: 700;
color: var(--brand);
font-variant-numeric: tabular-nums;
font-size: 12px;
}
.ranking-bar-bg {
width: 100%;
height: 8px;
background: var(--bg-subtle);
border-radius: 9999px;
overflow: hidden;
position: relative;
}
.ranking-bar-fill {
height: 100%;
background: linear-gradient(90deg, #6366f1, #4f46e5);
border-radius: 9999px;
transition: width 0.4s ease;
}
/* ==========================================================================
Settings Page Specifics
========================================================================== */
.settings-list {
display: flex;
flex-direction: column;
}
.setting-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 0;
border-bottom: 1px solid var(--line-subtle);
gap: 20px;
}
.setting-item:last-child {
border-bottom: none;
}
.setting-info {
display: flex;
flex-direction: column;
gap: 3px;
flex: 1;
}
.setting-title {
font-size: 14px;
font-weight: 600;
color: var(--ink);
}
.setting-desc {
font-size: 12.5px;
color: var(--ink-muted);
line-height: 1.45;
}
.setting-control {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
/* API Tip / Response Watermark Subcard */
.api-tip-subcard {
margin-top: 14px;
padding: 16px 18px;
background: var(--bg-subtle);
border: 1px solid var(--line);
border-radius: var(--radius-lg);
animation: subcardFadeIn 0.22s var(--ease-out);
}
@keyframes subcardFadeIn {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.api-tip-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
margin-bottom: 12px;
}
@media (max-width: 640px) {
.api-tip-grid {
grid-template-columns: 1fr;
gap: 10px;
}
}
.api-tip-field {
display: flex;
flex-direction: column;
gap: 6px;
}
.api-tip-field label {
font-size: 12.5px;
font-weight: 600;
color: var(--ink-secondary);
}
.api-tip-field input {
height: 38px !important;
font-size: 13.5px !important;
padding: 0 12px !important;
border: 1px solid var(--line) !important;
border-radius: var(--radius-md) !important;
background: #ffffff !important;
color: var(--ink) !important;
box-shadow: var(--shadow-xs);
text-align: left !important;
transition: all 0.15s ease;
}
.api-tip-field input:focus {
border-color: var(--brand) !important;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}
.api-tip-preview-box {
margin-top: 14px;
padding-top: 12px;
border-top: 1px dashed var(--line);
}
.api-tip-preview-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
list-style: none;
cursor: pointer;
user-select: none;
}
.api-tip-preview-header::-webkit-details-marker {
display: none;
}
details.api-tip-preview-box:not([open]) .api-tip-preview-header {
margin-bottom: 0;
}
.api-tip-preview-title {
font-size: 11.5px;
font-weight: 700;
color: var(--ink-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
display: inline-flex;
align-items: center;
gap: 6px;
}
.api-tip-preview-badge {
font-size: 11px;
font-weight: 600;
color: var(--brand);
background: var(--brand-light);
padding: 1px 8px;
border-radius: 9999px;
border: 1px solid var(--brand-border);
}
.api-tip-code {
margin: 0;
padding: 12px 14px;
background: #0f172a;
border-radius: var(--radius-md);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 12px;
line-height: 1.55;
overflow-x: auto;
border: 1px solid #1e293b;
}
.api-tip-code code {
color: #38bdf8;
font-family: inherit;
}
/* ==========================================================================
Toasts & Modal Windows
========================================================================== */
.toast-container {
position: fixed;
top: 20px;
left: calc(50% + var(--sidebar-width) / 2);
transform: translateX(-50%);
z-index: 11000;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
pointer-events: none;
width: auto;
max-width: min(520px, calc(100vw - 32px));
}
.toast-bubble {
pointer-events: auto;
display: flex;
align-items: center;
gap: 12px;
min-width: 280px;
max-width: 100%;
padding: 12px 18px;
border-radius: var(--radius-lg);
font-size: 13.5px;
font-weight: 550;
line-height: 1.45;
background: #ffffff;
box-shadow: var(--shadow-xl);
border: 1px solid var(--line);
transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
animation: toastSlideIn 0.3s var(--ease-out) forwards;
}
.toast-bubble.toast-hiding {
opacity: 0;
transform: translateY(-16px) scale(0.95);
pointer-events: none;
}
@keyframes toastSlideIn {
0% { opacity: 0; transform: translateY(-20px) scale(0.96); }
100% { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-bubble.toast-success {
background: #ffffff;
border-color: var(--success-border);
color: var(--success-text);
}
.toast-bubble.toast-success .toast-icon { color: var(--success); }
.toast-bubble.toast-error {
background: #ffffff;
border-color: var(--danger-border);
color: var(--danger-text);
}
.toast-bubble.toast-error .toast-icon { color: var(--danger); }
.toast-bubble.toast-warning {
background: #ffffff;
border-color: var(--warning-border);
color: var(--warning-text);
}
.toast-bubble.toast-warning .toast-icon { color: var(--warning); }
.toast-bubble.toast-info {
background: #ffffff;
border-color: var(--brand-border);
color: var(--brand-active);
}
.toast-bubble.toast-info .toast-icon { color: var(--brand); }
.toast-icon {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.toast-content {
flex: 1;
word-break: break-word;
}
.toast-close {
flex-shrink: 0;
background: transparent;
border: none;
font-size: 18px;
line-height: 1;
width: 22px;
height: 22px;
cursor: pointer;
color: currentColor;
opacity: 0.5;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.15s, background 0.15s;
}
.toast-close:hover {
opacity: 1;
background: rgba(0, 0, 0, 0.05);
}
/* Modals */
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.45);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
opacity: 0;
transition: opacity 0.2s ease;
}
.modal-backdrop.modal-open {
opacity: 1;
}
.modal-card {
background: #ffffff;
border-radius: var(--radius-xl);
border: 1px solid var(--line);
box-shadow: var(--shadow-xl);
width: 100%;
max-width: 460px;
padding: 24px;
transform: scale(0.96) translateY(6px);
transition: transform 0.22s var(--ease-out);
}
.modal-backdrop.modal-open .modal-card {
transform: scale(1) translateY(0);
}
.modal-header {
display: flex;
align-items: flex-start;
gap: 16px;
}
.modal-icon-wrap {
width: 42px;
height: 42px;
border-radius: var(--radius-lg);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.modal-icon-wrap.danger {
background: var(--danger-bg);
color: var(--danger);
border: 1px solid var(--danger-border);
}
.modal-icon-wrap.warning {
background: var(--warning-bg);
color: var(--warning);
border: 1px solid var(--warning-border);
}
.modal-icon-wrap.primary {
background: var(--brand-light);
color: var(--brand);
border: 1px solid var(--brand-border);
}
.modal-title {
margin: 0 0 4px;
font-size: 16px;
font-weight: 700;
color: var(--ink);
}
.modal-desc {
margin: 0;
font-size: 13.5px;
line-height: 1.5;
color: var(--ink-muted);
}
.modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
margin-top: 24px;
}
/* ==========================================================================
Auth Pages (Login / Register / Setup)
========================================================================== */
.auth-wrap {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 32px 16px;
background: radial-gradient(circle at 50% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 70%), var(--bg-app);
}
.auth-card {
width: min(420px, 100%);
}
.auth-brand {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 24px;
text-align: center;
}
.auth-brand img {
width: 48px;
height: 48px;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
border: 1px solid rgba(226, 232, 240, 0.8);
background: #ffffff;
margin-bottom: 12px;
object-fit: contain;
}
.auth-brand h2 {
margin: 0;
font-size: 18px;
font-weight: 800;
color: var(--ink);
}
/* Password Input Group with Toggle Button */
.password-group {
position: relative;
display: flex;
align-items: center;
width: 100%;
}
.password-group input {
padding-right: 42px !important;
}
.password-toggle-btn {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
cursor: pointer;
padding: 6px;
display: flex;
align-items: center;
justify-content: center;
color: #64748b;
border-radius: var(--radius-sm);
transition: color 0.15s ease, background 0.15s ease;
line-height: 1;
user-select: none;
}
.password-toggle-btn:hover {
color: var(--ink);
background: rgba(0, 0, 0, 0.05);
}
.password-toggle-btn:focus-visible {
outline: 2px solid var(--brand);
outline-offset: 1px;
}
.password-toggle-btn svg {
width: 16px;
height: 16px;
display: block;
}
.flash {
margin-bottom: 16px;
border-radius: var(--radius-md);
padding: 10px 14px;
font-size: 13px;
background: var(--success-bg);
color: var(--success-text);
border: 1px solid var(--success-border);
display: flex;
align-items: center;
gap: 8px;
}
.flash.error {
background: var(--danger-bg);
color: var(--danger-text);
border-color: var(--danger-border);
}
/* ==========================================================================
Responsive Breakpoints
========================================================================== */
@media (max-width: 860px) {
.console-app {
flex-direction: column;
}
.sidebar {
width: 100%;
position: relative;
height: auto;
border-right: none;
border-bottom: 1px solid var(--line);
}
.main-wrapper {
margin-left: 0;
}
.main-topbar {
padding: 0 16px;
}
.toast-container {
left: 50%;
}
.stats, .grid-2, .dashboard-charts-grid {
grid-template-columns: 1fr;
}
.container {
padding: 20px 16px;
}
}
/* ==========================================================================
Table Capabilities Enhancement (Sorting, Filtering, Selection & Pagination)
========================================================================== */
.table-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
flex-wrap: wrap;
}
.table-filter-form {
display: flex;
align-items: center;
justify-content: flex-start !important;
gap: 8px;
flex-wrap: wrap;
}
.table-filter-form input:not([type="checkbox"]):not([type="radio"]),
.table-filter-form select {
width: auto !important;
height: 34px !important;
font-size: 13px !important;
padding: 0 10px !important;
border-radius: var(--radius-md) !important;
border: 1px solid #cbd5e1 !important;
background: var(--bg-card) !important;
color: var(--ink) !important;
box-sizing: border-box !important;
}
.table-filter-form .filter-input-text {
width: 260px !important;
min-width: 180px !important;
max-width: 340px !important;
}
.table-filter-form select {
min-width: 110px !important;
background-position: right 8px center !important;
padding-right: 26px !important;
}
.th-sortable {
cursor: pointer;
user-select: none;
transition: background 0.15s ease, color 0.15s ease;
}
.th-sortable:hover {
background: var(--bg-subtle);
color: var(--brand);
}
.sort-icon {
display: inline-block;
margin-left: 4px;
font-size: 11px;
color: #94a3b8;
vertical-align: middle;
}
.sort-icon.active {
color: var(--brand);
font-weight: bold;
}
.error-code-badge {
display: inline-block;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 11.5px;
font-weight: 500;
color: var(--ink-secondary);
background: var(--bg-subtle);
border: 1px solid var(--line);
padding: 1.5px 6px;
border-radius: var(--radius-xs);
letter-spacing: -0.2px;
}
.table-selection-banner {
display: none;
align-items: center;
justify-content: space-between;
background: #eff6ff;
border: 1px solid #bfdbfe;
color: #1e40af;
padding: 8px 14px;
border-radius: var(--radius-md);
margin-bottom: 12px;
font-size: 13px;
}
.table-selection-banner.all-filtered-active {
background: #f0fdf4;
border-color: #bbf7d0;
color: #166534;
}
.pagination-bar {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 16px;
gap: 12px;
flex-wrap: wrap;
}
.pagination-info {
display: flex;
align-items: center;
gap: 16px;
font-size: 13px;
color: var(--ink-secondary);
white-space: nowrap;
}
.pagination-info label {
display: inline-flex !important;
align-items: center !important;
gap: 6px !important;
margin: 0 !important;
font-size: 13px !important;
font-weight: 500 !important;
color: var(--ink-secondary) !important;
white-space: nowrap !important;
cursor: pointer;
}
.pagination-info select,
.page-size-select {
width: auto !important;
height: 30px !important;
min-width: 86px !important;
padding: 0 24px 0 8px !important;
background-position: right 6px center !important;
font-size: 12px !important;
border-radius: var(--radius-sm) !important;
border: 1px solid #cbd5e1 !important;
background-color: var(--bg-card) !important;
color: var(--ink) !important;
cursor: pointer;
}
.pagination-pages {
display: flex;
align-items: center;
gap: 4px;
}
.page-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 28px;
padding: 0 8px;
font-size: 12.5px;
border-radius: var(--radius-sm);
border: 1px solid #cbd5e1;
background: var(--bg-card);
color: var(--ink-secondary);
text-decoration: none;
transition: all 0.15s ease;
}
.page-btn:hover {
border-color: var(--brand);
color: var(--brand);
}
.page-btn.active {
background: var(--brand);
color: #ffffff;
border-color: var(--brand);
font-weight: 600;
}
.page-btn.disabled {
opacity: 0.4;
pointer-events: none;
cursor: not-allowed;
}
/* Floating Capsule Batch Action Toolbar (Light Modern SaaS Style) */
.batch-floating-toolbar {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%) translateY(32px) scale(0.95);
opacity: 0;
pointer-events: none;
visibility: hidden;
z-index: 90;
display: flex;
align-items: center;
gap: 10px;
padding: 8px 16px;
background: rgba(255, 255, 255, 0.94);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(203, 213, 225, 0.85);
border-radius: 9999px;
box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 6px 16px -3px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
visibility 0.2s ease;
white-space: nowrap;
max-width: calc(100vw - 32px);
overflow-x: auto;
}
@media (min-width: 1024px) {
.batch-floating-toolbar {
left: calc(50% + 120px);
}
}
.batch-floating-toolbar.show {
opacity: 1;
pointer-events: auto;
visibility: visible;
transform: translateX(-50%) translateY(0) scale(1);
}
.batch-toolbar-summary {
display: flex;
align-items: center;
gap: 6px;
color: #334155;
font-size: 13px;
font-weight: 600;
padding-right: 4px;
}
.batch-toolbar-summary svg {
stroke: #4f46e5;
}
.batch-toolbar-summary strong {
color: #4f46e5;
font-weight: 700;
}
.batch-toolbar-divider {
width: 1px;
height: 20px;
background: #e2e8f0;
flex-shrink: 0;
}
.batch-btn {
display: inline-flex;
align-items: center;
gap: 6px;
height: 30px;
padding: 0 12px;
font-size: 12.5px;
font-weight: 600;
border-radius: 9999px;
border: 1px solid #e2e8f0;
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
background: #f8fafc;
color: #334155;
}
.batch-btn:hover {
background: #e2e8f0;
color: #0f172a;
border-color: #cbd5e1;
}
.batch-btn:active {
transform: scale(0.98);
}
.batch-btn-primary {
background: #4f46e5;
color: #ffffff;
border-color: #4f46e5;
box-shadow: 0 1px 2px rgba(79, 70, 229, 0.25);
}
.batch-btn-primary:hover {
background: #4338ca;
border-color: #4338ca;
color: #ffffff;
}
.batch-btn-danger {
background: #fee2e2;
color: #dc2626;
border-color: #fca5a5;
}
.batch-btn-danger:hover {
background: #dc2626;
color: #ffffff;
border-color: #dc2626;
}
.batch-btn-clear {
color: #64748b;
background: transparent;
border-color: transparent;
padding: 0 8px;
}
.batch-btn-clear:hover {
color: #0f172a;
background: #f1f5f9;
}
/* ==========================================================================
API Documentation & Slide-over Playground Drawer (Stripe / OpenAPI Style)
========================================================================== */
.api-docs-container {
display: flex;
flex-direction: column;
width: 100%;
margin: 0;
padding: 0;
}
/* 统一独立纯白技术文档大画布卡片 (Whitepaper Document Card Canvas) - 与全站 .card 间距完全一致 */
.api-docs-canvas {
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius-xl);
padding: 22px 24px;
box-shadow: var(--shadow-xs);
transition: box-shadow 0.2s ease, border-color 0.2s ease;
overflow: visible;
}
/* 顶部强化 Endpoint Hero Header */
.api-endpoint-hero {
padding: 0 0 20px;
background: transparent;
border-bottom: 1px solid var(--line);
margin-bottom: 24px;
}
.api-hero-main-row {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
}
.api-hero-endpoint {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.api-hero-method {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 750;
padding: 4px 12px;
border-radius: var(--radius-sm);
background: #059669;
color: #ffffff;
letter-spacing: 0.5px;
}
.api-hero-path {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 18px;
font-weight: 700;
color: var(--ink);
letter-spacing: -0.01em;
}
.api-hero-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.api-hero-meta-row {
display: flex;
align-items: center;
gap: 10px;
margin-top: 12px;
flex-wrap: wrap;
}
.api-meta-pill {
font-size: 12px;
padding: 2px 8px;
border-radius: 9999px;
background: var(--bg-subtle);
border: 1px solid var(--line);
color: var(--ink-secondary);
font-weight: 500;
}
/* 正文与固定目录布局 (Layout: Article + Sticky TOC) */
.api-doc-layout {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 36px;
position: relative;
}
/* 左侧流式正文区 (Article Flow) */
.api-doc-article {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 36px;
}
.api-doc-section {
scroll-margin-top: calc(var(--topbar-height) + 28px);
}
/* 右侧粘性固定目录 (On this page) */
.api-doc-toc-wrap {
width: 190px;
flex-shrink: 0;
position: sticky;
top: calc(var(--topbar-height) + 24px);
align-self: flex-start;
}
.api-doc-toc {
padding-left: 2px;
}
.toc-title {
font-size: 13px;
font-weight: 700;
color: var(--ink);
margin-bottom: 12px;
letter-spacing: -0.01em;
}
.toc-list {
display: flex;
flex-direction: column;
border-left: 2px solid var(--line);
}
.toc-item {
display: block;
font-size: 13px;
color: var(--ink-secondary);
text-decoration: none;
padding: 6px 0 6px 14px;
margin-left: -2px;
border-left: 2px solid transparent;
transition: all 0.15s ease;
line-height: 1.45;
}
.toc-item:hover {
color: var(--brand);
}
.toc-item.active {
color: var(--brand);
font-weight: 600;
border-left-color: var(--brand);
}
@media (max-width: 1080px) {
.api-doc-toc-wrap {
display: none !important;
}
}
.doc-section-title {
font-size: 17px;
font-weight: 700;
color: var(--ink);
margin: 0 0 12px;
display: flex;
align-items: center;
gap: 8px;
letter-spacing: -0.02em;
}
.doc-subtitle {
font-size: 14px;
font-weight: 650;
color: var(--ink);
margin: 20px 0 8px;
}
.doc-p {
color: var(--ink-secondary);
font-size: 13.5px;
line-height: 1.65;
margin: 0 0 14px;
}
/* 纯净文档排版数据表格 (Technical Documentation Table) */
.doc-flat-table-wrap {
overflow-x: auto;
margin: 14px 0 20px;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.doc-flat-table {
width: 100%;
border-collapse: collapse;
font-size: 13.5px;
text-align: left;
}
.doc-flat-table th {
background: #f8fafc;
color: var(--ink-secondary);
font-weight: 650;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.04em;
padding: 10px 14px;
border-bottom: 1px solid var(--line);
white-space: nowrap;
}
.doc-flat-table td {
padding: 12px 14px;
border-bottom: 1px solid var(--line-subtle);
color: var(--ink);
vertical-align: top;
line-height: 1.6;
}
.doc-flat-table tr:last-child td {
border-bottom: none;
}
.doc-flat-table td:nth-child(1),
.doc-flat-table td:nth-child(2) {
white-space: nowrap;
}
/* 纯净文档排版:彻底移除表格行悬浮变色(强制覆盖全局 tbody tr:hover) */
.doc-flat-table tbody tr,
.doc-flat-table tbody tr:hover,
.doc-flat-table tr,
.doc-flat-table tr:hover,
.doc-flat-table td,
.doc-flat-table tr:hover td {
background: transparent !important;
background-color: transparent !important;
transition: none !important;
}
.api-doc-article :not(pre) > code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 12.5px;
background: var(--bg-subtle);
color: var(--ink);
padding: 1.5px 5.5px;
border-radius: var(--radius-xs);
border: 1px solid var(--line);
}
.param-req {
font-size: 11px;
font-weight: 600;
color: #dc2626;
background: #fef2f2;
padding: 1px 6px;
border-radius: 4px;
white-space: nowrap;
display: inline-block;
vertical-align: middle;
}
.param-opt {
font-size: 11px;
font-weight: 500;
color: var(--ink-muted);
background: var(--bg-subtle);
padding: 1px 6px;
border-radius: 4px;
white-space: nowrap;
display: inline-block;
vertical-align: middle;
}
.param-rec {
font-size: 11px;
font-weight: 600;
color: #059669;
background: #ecfdf5;
padding: 1px 6px;
border-radius: 4px;
white-space: nowrap;
display: inline-block;
vertical-align: middle;
}
/* 多语言代码块卡片(深邃星空质感 + Mac 终端质感) */
.doc-code-card {
border-radius: var(--radius-lg);
overflow: hidden;
background: #0b0f19;
border: 1px solid #1e293b;
box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.05);
margin-top: 12px;
}
.doc-code-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 14px;
background: #151c2c;
border-bottom: 1px solid #1e293b;
gap: 12px;
flex-wrap: wrap;
}
.doc-code-header-left {
display: flex;
align-items: center;
gap: 14px;
}
.terminal-dots {
display: inline-flex;
align-items: center;
gap: 6px;
padding-left: 2px;
}
.terminal-dots .dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}
.terminal-dots .dot.red { background: #ef4444; }
.terminal-dots .dot.yellow { background: #f59e0b; }
.terminal-dots .dot.green { background: #10b981; }
.doc-code-tabs {
display: flex;
align-items: center;
gap: 3px;
overflow-x: auto;
}
.doc-code-tab {
background: transparent;
border: 1px solid transparent;
color: #94a3b8;
font-size: 12px;
font-weight: 500;
padding: 5px 11px;
cursor: pointer;
border-radius: 6px;
transition: all 0.15s ease;
white-space: nowrap;
}
.doc-code-tab:hover {
color: #f1f5f9;
background: rgba(255, 255, 255, 0.06);
}
.doc-code-tab.active {
color: #ffffff;
background: #242e42;
border-color: rgba(255, 255, 255, 0.12);
font-weight: 600;
}
.doc-code-copy-btn {
display: inline-flex;
align-items: center;
gap: 5px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.14);
color: #cbd5e1;
font-size: 11.5px;
font-weight: 500;
padding: 5px 12px;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
line-height: 1;
}
.doc-code-copy-btn:hover {
color: #ffffff;
border-color: rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.14);
}
.doc-code-pre {
margin: 0;
padding: 18px 20px;
font-size: 13px;
line-height: 1.65;
color: #e2e8f0;
background: #0b0f19;
max-height: 360px;
overflow: auto;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
/* Syntax Highlighting Colors */
.hl-kw { color: #c084fc; font-weight: 600; }
.hl-str { color: #34d399; }
.hl-type { color: #38bdf8; font-weight: 500; }
.hl-fn { color: #60a5fa; }
.hl-num { color: #f472b6; }
.hl-cmt { color: #64748b; font-style: italic; }
.hl-cmd { color: #fb7185; font-weight: 600; }
/* ==========================================================================
Slide-over Drawer 侧滑调试抽屉
========================================================================== */
.api-drawer-backdrop {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.45);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
z-index: 999;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.api-drawer-backdrop.open {
opacity: 1;
pointer-events: auto;
}
.api-drawer {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 520px;
max-width: 92vw;
background: var(--bg-card);
z-index: 1000;
box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
display: flex;
flex-direction: column;
transform: translateX(100%);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.api-drawer.open {
transform: translateX(0);
}
.api-drawer-header {
padding: 16px 20px;
background: #fafafa;
border-bottom: 1px solid var(--line);
display: flex;
align-items: center;
justify-content: space-between;
}
.api-drawer-title {
font-size: 15px;
font-weight: 700;
color: var(--ink);
margin: 0;
display: flex;
align-items: center;
gap: 8px;
}
.api-drawer-close {
background: transparent;
border: none;
font-size: 20px;
line-height: 1;
color: var(--ink-muted);
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: all 0.15s ease;
}
.api-drawer-close:hover {
background: var(--bg-subtle);
color: var(--ink);
}
.api-drawer-body {
padding: 20px;
overflow-y: auto;
flex: 1;
}
.api-drawer-body::-webkit-scrollbar {
width: 5px;
}
.api-drawer-body::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
/* Drawer 内表单控件与结果 */
.pg-section-label {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12.5px;
font-weight: 600;
color: var(--ink);
margin-bottom: 6px;
}
.pg-quick-chips {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 8px;
}
.pg-quick-chips .example-link-chip {
font-size: 11.5px;
padding: 2px 7px;
border-radius: 4px;
background: var(--bg-subtle);
border: 1px solid var(--line);
color: var(--ink-secondary);
cursor: pointer;
transition: all 0.15s ease;
}
.pg-quick-chips .example-link-chip:hover {
background: var(--brand-light);
color: var(--brand);
border-color: var(--brand-border);
}
.pg-input {
width: 100%;
padding: 8px 12px;
border-radius: var(--radius-md);
border: 1px solid var(--line);
background: var(--bg-card);
color: var(--ink);
font-size: 13px;
outline: none;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pg-input:focus {
border-color: var(--brand);
box-shadow: 0 0 0 3px var(--brand-light);
}
textarea.pg-input {
height: auto;
min-height: 72px;
line-height: 1.5;
resize: vertical;
}
.pg-key-input-wrap {
position: relative;
width: 100%;
}
.pg-key-input-box {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
min-height: 38px;
padding: 4px 170px 4px 8px;
border-radius: var(--radius-md);
border: 1px solid var(--line);
background: var(--bg-card);
transition: border-color 0.15s ease, box-shadow 0.15s ease;
cursor: text;
box-sizing: border-box;
}
.pg-key-input-box:focus-within {
border-color: var(--brand);
box-shadow: 0 0 0 3px var(--brand-light);
}
.pg-selected-key-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 8px;
background: var(--brand-light);
border: 1px solid var(--brand-border);
border-radius: var(--radius-sm);
font-size: 12px;
color: var(--brand);
user-select: none;
max-width: calc(100% - 10px);
white-space: nowrap;
flex-shrink: 0;
}
.pg-selected-key-chip .key-chip-name {
font-weight: 600;
color: var(--ink);
}
.pg-selected-key-chip .key-chip-prefix {
font-size: 11px;
color: var(--ink-secondary);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.pg-selected-key-chip .key-chip-remove {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
background: transparent;
border: none;
color: var(--ink-muted);
border-radius: 50%;
cursor: pointer;
font-size: 14px;
line-height: 1;
padding: 0;
transition: all 0.15s ease;
}
.pg-selected-key-chip .key-chip-remove:hover {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.pg-input-field {
flex: 1;
border: none !important;
background: transparent !important;
color: var(--ink);
font-size: 13px;
outline: none !important;
box-shadow: none !important;
padding: 0 4px !important;
min-width: 80px;
height: 28px !important;
}
.pg-input-field:focus {
outline: none !important;
box-shadow: none !important;
border: none !important;
}
/* Playground Key Selector Custom Dropdown */
.pg-key-dropdown-wrap {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
z-index: 25;
}
.pg-key-dropdown-trigger {
display: inline-flex;
align-items: center;
gap: 5px;
height: 28px;
padding: 0 9px;
font-size: 11.5px;
font-weight: 500;
color: var(--ink-secondary);
background: var(--bg-subtle);
border: 1px solid var(--line);
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.15s ease;
user-select: none;
max-width: 160px;
}
.pg-key-dropdown-trigger:hover,
.pg-key-dropdown-wrap.open .pg-key-dropdown-trigger {
border-color: var(--brand-border);
color: var(--brand);
background: var(--brand-light);
}
.pg-key-dropdown-chevron {
flex-shrink: 0;
color: var(--ink-muted);
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}
.pg-key-dropdown-wrap.open .pg-key-dropdown-chevron {
transform: rotate(180deg);
color: var(--brand);
}
.pg-key-dropdown-menu {
position: absolute;
top: calc(100% + 5px);
right: 0;
min-width: 175px;
width: max-content;
max-width: 240px;
max-height: 280px;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius-md);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
padding: 4px;
z-index: 1000;
display: none;
overflow-y: auto;
box-sizing: border-box;
}
.pg-key-dropdown-wrap.open .pg-key-dropdown-menu {
display: block;
animation: pgKeyMenuFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pgKeyMenuFadeIn {
from {
opacity: 0;
transform: translateY(-4px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.pg-key-menu-divider {
height: 1px;
background: var(--line);
margin: 4px 0;
}
.pg-key-menu-item {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 9px;
border-radius: var(--radius-sm);
background: transparent;
border: none;
text-align: left;
cursor: pointer;
transition: background 0.12s ease;
box-sizing: border-box;
font-size: 12.5px;
color: var(--ink);
}
.pg-key-menu-item:hover {
background: var(--bg-subtle);
}
.pg-key-menu-item.active {
background: var(--brand-light);
color: var(--brand);
}
.pg-key-menu-item .pg-key-item-title {
font-size: 12.5px;
font-weight: 400;
color: inherit;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
.pg-key-menu-item.active .pg-key-item-title {
font-weight: 600;
color: var(--brand);
}
.pg-key-item-check {
color: var(--brand);
flex-shrink: 0;
opacity: 0;
}
.pg-key-menu-item.active .pg-key-item-check {
opacity: 1;
}
.pg-key-menu-item.action-create {
display: flex;
align-items: center;
color: var(--brand);
font-size: 12px;
font-weight: 500;
padding: 6px 9px;
}
.pg-key-menu-item.action-create:hover {
background: var(--brand-light);
}
.pg-mode-toggle {
display: inline-flex;
align-items: center;
background: var(--bg-subtle);
padding: 2px;
border-radius: var(--radius-md);
border: 1px solid var(--line);
gap: 2px;
}
.pg-mode-toggle label {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 9px;
font-size: 12px;
font-weight: 500;
color: var(--ink-muted);
cursor: pointer;
border-radius: var(--radius-sm);
transition: all 0.15s ease;
user-select: none;
}
.pg-mode-toggle input[type="radio"] {
display: none;
}
.pg-mode-toggle label.active {
background: var(--bg-card);
color: var(--brand);
font-weight: 600;
box-shadow: var(--shadow-xs);
}
.pg-result-wrapper {
margin-top: 16px;
padding-top: 14px;
border-top: 1px solid var(--line);
}
.pg-result-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 10px;
}
.pg-context-alert {
padding: 10px 12px;
border-radius: var(--radius-md);
font-size: 12.5px;
line-height: 1.5;
margin-bottom: 10px;
display: flex;
align-items: flex-start;
gap: 8px;
}
.pg-context-alert.warning {
background: #fffbeb;
border: 1px solid #fde68a;
color: #92400e;
}
.pg-context-alert.danger {
background: #fef2f2;
border: 1px solid #fecaca;
color: #991b1b;
}
.pg-context-alert svg {
flex-shrink: 0;
margin-top: 2px;
}
.pg-media-box {
background: var(--bg-subtle);
border: 1px solid var(--line);
border-radius: var(--radius-lg);
padding: 12px;
margin-bottom: 10px;
}
.pg-code-preview {
margin: 0;
border-radius: var(--radius-md);
font-size: 12.5px;
line-height: 1.6;
background: #0b0f19;
color: #e2e8f0;
border: 1px solid #1e293b;
padding: 14px 16px;
max-height: 380px;
overflow: auto;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
.pg-code-preview::-webkit-scrollbar {
width: 5px;
height: 5px;
}
.pg-code-preview::-webkit-scrollbar-thumb {
background: #334155;
border-radius: 4px;
}
/* ==========================================================================
Clean Minimalist Custom Select Dropdown (Universal Web Dropdown)
========================================================================== */
.custom-select-wrap {
position: relative;
display: inline-flex;
align-items: center;
vertical-align: middle;
box-sizing: border-box;
}
.custom-select-btn {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 6px;
height: 34px;
padding: 0 10px;
background: var(--bg-card);
border: 1px solid #cbd5e1;
border-radius: var(--radius-md);
color: var(--ink);
font-size: 13px;
font-weight: 400;
cursor: pointer;
user-select: none;
transition: all 0.15s ease;
white-space: nowrap;
box-sizing: border-box;
text-align: left;
}
.custom-select-btn:hover {
border-color: var(--brand-border);
background: var(--bg-subtle);
}
.custom-select-wrap.open .custom-select-btn {
border-color: var(--brand);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
background: var(--bg-card);
}
.custom-select-btn-text {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.custom-select-chevron {
color: #94a3b8;
flex-shrink: 0;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}
.custom-select-wrap.open .custom-select-chevron {
transform: rotate(180deg);
color: var(--brand);
}
.custom-select-popover {
position: absolute;
top: calc(100% + 4px);
left: 0;
min-width: 100%;
width: max-content;
max-width: 320px;
max-height: 240px;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: var(--radius-md);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
padding: 4px;
z-index: 1000;
display: none;
overflow-y: auto;
box-sizing: border-box;
}
.custom-select-wrap.open .custom-select-popover {
display: block;
animation: csFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-select-wrap.drop-up .custom-select-popover {
top: auto;
bottom: calc(100% + 4px);
}
@keyframes csFadeIn {
from {
opacity: 0;
transform: translateY(-3px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.custom-select-group-header {
padding: 6px 10px 2px;
font-size: 11px;
font-weight: 700;
color: var(--ink-muted);
user-select: none;
}
.custom-select-item {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 6px 10px;
border-radius: var(--radius-sm);
background: transparent;
border: none;
text-align: left;
cursor: pointer;
transition: background 0.12s ease;
box-sizing: border-box;
font-size: 13px;
color: var(--ink);
white-space: nowrap;
}
.custom-select-item:hover {
background: var(--bg-subtle);
}
.custom-select-item.active {
background: var(--brand-light);
color: var(--brand);
font-weight: 500;
}
.custom-select-item-text {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.custom-select-item-check {
color: var(--brand);
flex-shrink: 0;
opacity: 0;
}
.custom-select-item.active .custom-select-item-check {
opacity: 1;
}
/* Modifiers for pagination and form sizes */
.pagination-info .custom-select-btn,
.page-size-selector .custom-select-btn {
height: 28px !important;
padding: 0 8px !important;
font-size: 12px !important;
border-radius: var(--radius-sm) !important;
background: var(--bg-card);
}
.pagination-info .custom-select-item,
.page-size-selector .custom-select-item {
padding: 5px 8px !important;
font-size: 12px !important;
}
.table-filter-form .custom-select-wrap {
min-width: 105px;
}
.field .custom-select-wrap {
width: 100%;
}
.field .custom-select-btn {
width: 100%;
height: 38px;
}
.modal-card .custom-select-popover {
z-index: 1200;
}