Files
WeFlow/src/pages/ExportPage.scss

2023 lines
36 KiB
SCSS

.export-board-page {
min-height: calc(100% + 48px);
height: auto;
margin: -24px;
padding: 20px;
background: var(--bg-primary);
display: flex;
flex-direction: column;
gap: 16px;
overflow-x: hidden;
overflow-y: visible;
.spin {
animation: exportSpin 1s linear infinite;
}
}
.export-top-panel {
display: block;
flex-shrink: 0;
}
.global-export-controls {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 12px;
display: grid;
grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
gap: 10px;
align-items: stretch;
.control-label {
font-size: 11px;
color: var(--text-secondary);
font-weight: 600;
letter-spacing: 0.2px;
}
.path-control {
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.path-inline-row {
min-width: 0;
display: flex;
align-items: center;
gap: 6px;
flex-wrap: nowrap;
}
.path-value {
border: 1px dashed var(--border-color);
border-radius: 8px;
background: var(--bg-secondary);
display: flex;
align-items: stretch;
min-width: 0;
flex: 1;
overflow: hidden;
}
.path-link {
border: none;
background: transparent;
font-size: 12px;
color: var(--text-primary);
text-align: left;
padding: 8px 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
flex: 1;
cursor: pointer;
&:hover {
color: var(--primary);
}
&:focus-visible {
outline: none;
}
}
.path-change-btn {
border: none;
border-left: 1px dashed var(--border-color);
background: transparent;
color: var(--text-secondary);
font-size: 11px;
font-weight: 600;
padding: 0 9px;
cursor: pointer;
flex-shrink: 0;
&:hover {
border-color: var(--primary);
color: var(--primary);
}
}
.write-layout-control {
position: relative;
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
width: fit-content;
max-width: 100%;
justify-self: start;
z-index: 40;
}
.layout-trigger {
width: auto;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--border-color);
background: var(--bg-secondary);
color: var(--text-primary);
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: left;
cursor: pointer;
transition: border-color 0.12s ease;
&:hover {
border-color: var(--primary);
}
&.active {
border-color: var(--primary);
}
}
.layout-dropdown {
position: absolute;
top: calc(100% + 6px);
left: 0;
right: auto;
width: clamp(300px, 36vw, 420px);
max-width: calc(100vw - 40px);
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 12px;
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
padding: 6px;
z-index: 3000;
max-height: 260px;
overflow-y: auto;
opacity: 0;
transform: translateY(-4px);
pointer-events: none;
visibility: hidden;
transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s step-end;
backdrop-filter: none;
will-change: opacity, transform;
&.open {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
visibility: visible;
transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s step-start;
}
}
.layout-option {
width: 100%;
border: none;
background: transparent;
text-align: left;
padding: 8px 10px;
border-radius: 8px;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 2px;
&:hover {
background: var(--bg-hover);
}
&.active {
background: rgba(var(--primary-rgb), 0.12);
color: var(--primary);
}
}
.layout-option-label {
font-size: 13px;
font-weight: 600;
}
.layout-option-desc {
font-size: 11px;
color: var(--text-secondary);
line-height: 1.45;
}
.task-center-control {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.task-center-inline {
min-height: 34px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-secondary);
padding: 0 8px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
flex-wrap: nowrap;
}
.task-summary {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.task-open-btn {
border: 1px solid var(--border-color);
background: var(--bg-primary);
border-radius: 7px;
padding: 3px 7px;
font-size: 11px;
color: var(--text-secondary);
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
flex-shrink: 0;
transition: border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
&:hover {
border-color: var(--primary);
color: var(--primary);
}
&.active-running {
border-color: rgba(255, 77, 79, 0.45);
color: #ff4d4f;
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.16);
}
}
.task-running-badge {
min-width: 16px;
height: 16px;
border-radius: 999px;
background: #ff4d4f;
color: #fff;
font-size: 10px;
font-weight: 700;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 4px;
line-height: 1;
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
animation: exportTaskBadgePulse 1.2s ease-in-out infinite;
}
.secondary-btn {
border-radius: 7px;
padding: 6px 9px;
font-size: 11px;
gap: 4px;
flex-shrink: 0;
}
}
.content-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
gap: 8px;
flex-shrink: 0;
}
.content-card {
border: 1px solid var(--border-color);
border-radius: 12px;
background: var(--card-bg);
padding: 10px;
display: flex;
flex-direction: column;
gap: 8px;
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.card-title {
display: flex;
align-items: center;
gap: 5px;
font-size: 13px;
color: var(--text-primary);
font-weight: 600;
}
.card-refresh-hint {
color: var(--text-tertiary);
font-size: 11px;
white-space: nowrap;
}
.card-stats {
display: grid;
grid-template-columns: 1fr;
gap: 3px;
.stat-item {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 11px;
color: var(--text-secondary);
strong {
color: var(--text-primary);
font-size: 13px;
}
}
}
.card-export-btn {
margin-top: auto;
border: none;
border-radius: 7px;
padding: 7px 9px;
background: var(--primary);
color: #fff;
cursor: pointer;
font-size: 12px;
font-weight: 600;
&:hover {
background: var(--primary-hover);
}
&:disabled {
cursor: not-allowed;
opacity: 0.86;
}
&.running {
background: var(--primary-hover);
}
}
&.skeleton-card {
pointer-events: none;
.card-stats {
gap: 10px;
}
}
}
.count-loading {
color: var(--text-tertiary);
font-size: 12px;
font-weight: 500;
display: inline-flex;
align-items: baseline;
gap: 1px;
}
.task-center-modal-overlay {
position: fixed;
top: 40px;
right: 0;
bottom: 0;
left: 0;
z-index: 1180;
background: rgba(15, 23, 42, 0.28);
display: flex;
align-items: flex-start;
justify-content: center;
padding: 24px 20px;
}
.task-center-modal {
width: min(980px, calc(100vw - 40px));
max-height: calc(100vh - 72px);
border-radius: 14px;
border: 1px solid var(--border-color);
background: var(--bg-secondary-solid, #ffffff);
box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
display: flex;
flex-direction: column;
overflow: hidden;
}
.task-center-modal-header {
padding: 12px 14px;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.task-center-modal-title {
min-width: 0;
h3 {
margin: 0;
font-size: 16px;
color: var(--text-primary);
}
span {
display: block;
margin-top: 3px;
font-size: 12px;
color: var(--text-secondary);
}
}
.task-center-modal-body {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 12px;
background: var(--bg-secondary-solid, #ffffff);
}
.task-empty {
padding: 12px;
background: var(--bg-secondary);
border-radius: 8px;
font-size: 13px;
color: var(--text-secondary);
}
.task-list {
display: grid;
gap: 8px;
}
.task-card {
border: 1px solid var(--border-color);
border-radius: 10px;
padding: 10px;
display: flex;
gap: 10px;
align-items: flex-start;
background: var(--bg-secondary-solid, #ffffff);
&.running {
border-color: var(--primary);
}
&.paused {
border-color: rgba(250, 173, 20, 0.55);
}
&.stopped {
border-color: rgba(148, 163, 184, 0.46);
}
&.error {
border-color: rgba(255, 77, 79, 0.45);
}
&.success {
border-color: rgba(82, 196, 26, 0.4);
}
}
.task-main {
flex: 1;
min-width: 0;
}
.task-title {
font-size: 13px;
color: var(--text-primary);
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.task-meta {
margin-top: 2px;
display: flex;
flex-wrap: wrap;
gap: 8px;
font-size: 11px;
color: var(--text-secondary);
}
.task-status {
border-radius: 999px;
padding: 2px 8px;
font-weight: 600;
&.queued {
background: rgba(var(--primary-rgb), 0.14);
color: var(--primary);
}
&.running {
background: rgba(var(--primary-rgb), 0.2);
color: var(--primary);
}
&.paused {
background: rgba(250, 173, 20, 0.2);
color: #d48806;
}
&.stopped {
background: rgba(148, 163, 184, 0.2);
color: #64748b;
}
&.success {
background: rgba(82, 196, 26, 0.18);
color: #52c41a;
}
&.error {
background: rgba(255, 77, 79, 0.15);
color: #ff4d4f;
}
}
.task-progress-bar {
margin-top: 8px;
height: 6px;
background: rgba(0, 0, 0, 0.08);
border-radius: 3px;
overflow: hidden;
}
.task-progress-fill {
height: 100%;
background: var(--primary);
transition: width 0.2s ease;
}
.task-progress-text {
margin-top: 4px;
font-size: 11px;
color: var(--text-secondary);
}
.task-perf-summary {
margin-top: 6px;
display: flex;
flex-wrap: wrap;
gap: 10px;
font-size: 11px;
color: var(--text-secondary);
}
.task-perf-panel {
margin-top: 8px;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 8px;
background: var(--bg-secondary);
display: grid;
gap: 8px;
}
.task-perf-title {
font-size: 12px;
color: var(--text-primary);
font-weight: 600;
}
.task-perf-row {
display: grid;
gap: 4px;
}
.task-perf-row-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
font-size: 11px;
color: var(--text-secondary);
}
.task-perf-row-track {
height: 6px;
border-radius: 3px;
background: rgba(0, 0, 0, 0.08);
overflow: hidden;
}
.task-perf-row-fill {
height: 100%;
background: var(--primary);
}
.task-perf-empty {
font-size: 11px;
color: var(--text-secondary);
}
.task-perf-session-list {
display: grid;
gap: 4px;
}
.task-perf-session-item {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
font-size: 11px;
color: var(--text-secondary);
}
.task-perf-session-rank {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.task-perf-session-time {
font-variant-numeric: tabular-nums;
}
.task-error {
margin-top: 6px;
font-size: 12px;
color: #ff4d4f;
}
.task-actions {
display: flex;
flex-direction: column;
gap: 6px;
flex-shrink: 0;
}
.task-action-btn {
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-primary);
color: var(--text-secondary);
min-height: 30px;
padding: 0 10px;
font-size: 12px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
white-space: nowrap;
&:hover:not(:disabled) {
border-color: var(--primary);
color: var(--primary);
}
&:disabled {
opacity: 0.65;
cursor: not-allowed;
}
&.primary {
border-color: rgba(var(--primary-rgb), 0.35);
color: var(--primary);
}
&.danger {
border-color: rgba(255, 77, 79, 0.36);
color: #ff4d4f;
}
}
.session-table-section {
border: 1px solid var(--border-color);
border-radius: 12px;
background: var(--card-bg);
padding: 12px;
flex: 1 0 420px;
min-height: 420px;
display: flex;
flex-direction: column;
gap: 10px;
overflow: hidden;
}
.table-stage-hint {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border-radius: 999px;
background: rgba(var(--primary-rgb), 0.1);
border: 1px solid rgba(var(--primary-rgb), 0.2);
color: var(--primary);
font-size: 12px;
width: fit-content;
}
.table-toolbar {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
flex-wrap: wrap;
}
.table-cache-meta {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
font-size: 12px;
.meta-item {
color: var(--text-tertiary);
}
.meta-item.syncing {
color: var(--primary);
}
}
.table-tabs {
display: flex;
gap: 8px;
flex-wrap: wrap;
.tab-btn {
border: 1px solid var(--border-color);
background: var(--bg-secondary);
color: var(--text-secondary);
padding: 7px 12px;
border-radius: 999px;
cursor: pointer;
font-size: 13px;
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: 4px;
&.active {
border-color: var(--primary);
color: var(--primary);
background: rgba(var(--primary-rgb), 0.12);
}
}
}
.animated-ellipsis {
display: inline-block;
width: 0;
overflow: hidden;
vertical-align: bottom;
animation: exportDots 1s steps(4, end) infinite;
}
.toolbar-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.search-input-wrap {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--border-color);
background: var(--bg-secondary);
min-width: 220px;
input {
border: none;
background: transparent;
color: var(--text-primary);
font-size: 13px;
outline: none;
width: 180px;
}
.clear-search {
border: none;
background: transparent;
color: var(--text-tertiary);
cursor: pointer;
display: flex;
}
}
.selected-batch-actions {
display: flex;
align-items: center;
gap: 8px;
border: 1px dashed rgba(var(--primary-rgb), 0.45);
background: rgba(var(--primary-rgb), 0.06);
border-radius: 999px;
padding: 6px 10px;
font-size: 12px;
color: var(--text-secondary);
}
.session-table-layout {
display: flex;
flex: 1;
min-height: 0;
.table-wrap {
flex: 1;
min-width: 0;
}
}
.table-wrap {
overflow: hidden;
border: 1px solid var(--border-color);
border-radius: 10px;
min-height: 320px;
height: 100%;
flex: 1;
display: flex;
flex-direction: column;
}
.table-wrap {
.loading-state,
.empty-state {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
color: var(--text-tertiary);
font-size: 14px;
.spin {
animation: exportSpin 1s linear infinite;
}
}
.load-issue-state {
flex: 1;
padding: 14px;
overflow-y: auto;
}
.issue-card {
border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 45%, var(--border-color));
background: color-mix(in srgb, var(--danger, #ef4444) 8%, var(--card-bg));
border-radius: 12px;
padding: 14px;
color: var(--text-primary);
}
.issue-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
color: color-mix(in srgb, var(--danger, #ef4444) 85%, var(--text-primary));
margin-bottom: 8px;
}
.issue-message {
margin: 0 0 8px;
font-size: 13px;
color: var(--text-secondary);
line-height: 1.5;
}
.issue-reason {
margin: 0;
font-size: 13px;
color: var(--text-secondary);
line-height: 1.5;
}
.issue-hints {
margin: 10px 0 0;
padding-left: 18px;
font-size: 12px;
color: var(--text-tertiary);
line-height: 1.6;
}
.issue-actions {
margin-top: 12px;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.issue-btn {
border: 1px solid var(--border-color);
background: var(--bg-secondary);
border-radius: 8px;
padding: 7px 10px;
font-size: 12px;
color: var(--text-secondary);
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
transition: all 0.2s ease;
&:hover {
color: var(--text-primary);
border-color: var(--text-tertiary);
background: var(--bg-hover);
}
&.primary {
background: color-mix(in srgb, var(--primary) 14%, var(--bg-secondary));
border-color: color-mix(in srgb, var(--primary) 42%, var(--border-color));
color: var(--primary);
}
}
.issue-diagnostics {
margin-top: 12px;
border-radius: 8px;
background: var(--bg-primary);
border: 1px dashed var(--border-color);
padding: 10px;
font-size: 12px;
line-height: 1.5;
color: var(--text-secondary);
white-space: pre-wrap;
word-break: break-word;
}
.contacts-list {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 0 12px 12px;
position: relative;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: var(--text-tertiary);
border-radius: 3px;
opacity: 0.3;
}
}
.contacts-list-virtual {
position: relative;
min-height: 100%;
}
.contact-row {
position: absolute;
left: 0;
right: 0;
height: 76px;
padding-bottom: 4px;
will-change: transform;
}
.contact-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
height: 72px;
box-sizing: border-box;
border-radius: 10px;
transition: all 0.2s;
cursor: default;
&:hover {
background: var(--bg-hover);
}
}
.contact-avatar {
width: 44px;
height: 44px;
border-radius: 10px;
background: linear-gradient(135deg, var(--primary), var(--primary-hover));
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
span {
color: #fff;
font-size: 16px;
font-weight: 600;
}
}
.contact-info {
flex: 1;
min-width: 0;
}
.contact-name {
font-size: 14px;
color: var(--text-primary);
margin-bottom: 2px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.contact-remark {
font-size: 12px;
color: var(--text-tertiary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.contact-type {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 12px;
padding: 4px 8px;
border-radius: 999px;
background: var(--bg-secondary);
color: var(--text-secondary);
flex-shrink: 0;
}
}
.table-virtuoso {
height: 100%;
}
.session-table,
.table-wrap table {
width: 100%;
min-width: 1300px;
border-collapse: separate;
border-spacing: 0;
thead th {
position: sticky;
top: 0;
background: color-mix(in srgb, var(--bg-primary) 75%, var(--bg-secondary));
z-index: 4;
font-size: 12px;
text-align: left;
color: var(--text-secondary);
border-bottom: 1px solid var(--border-color);
padding: 10px 10px;
white-space: nowrap;
}
tbody td {
padding: 10px;
border-bottom: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
font-size: 13px;
color: var(--text-primary);
vertical-align: middle;
white-space: nowrap;
}
tbody tr:hover {
background: rgba(var(--primary-rgb), 0.03);
}
.selected-row,
tbody tr:has(.select-icon-btn.checked) {
background: rgba(var(--primary-rgb), 0.08);
}
.sticky-col {
position: sticky;
left: 0;
z-index: 5;
background: inherit;
}
.sticky-right {
position: sticky;
right: 0;
z-index: 5;
background: inherit;
}
}
.select-icon-btn {
border: none;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 6px;
&:hover {
background: rgba(var(--primary-rgb), 0.1);
color: var(--primary);
}
&.checked {
color: var(--primary);
}
&:disabled {
opacity: 0.4;
cursor: not-allowed;
}
}
.session-cell {
display: flex;
align-items: center;
gap: 10px;
min-width: 230px;
.session-avatar {
width: 36px;
height: 36px;
border-radius: 8px;
overflow: hidden;
flex-shrink: 0;
background: linear-gradient(135deg, var(--primary), var(--primary-hover));
display: flex;
align-items: center;
justify-content: center;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
span {
color: #fff;
font-size: 14px;
font-weight: 600;
}
}
.session-name {
font-size: 13px;
color: var(--text-primary);
font-weight: 600;
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
}
.session-id {
margin-top: 2px;
font-size: 11px;
color: var(--text-tertiary);
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
}
}
.row-action-cell {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 4px;
.row-action-main {
display: inline-flex;
align-items: center;
gap: 6px;
}
.row-detail-btn {
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 7px 10px;
background: var(--bg-secondary);
color: var(--text-secondary);
font-size: 12px;
cursor: pointer;
white-space: nowrap;
&:hover {
border-color: var(--text-tertiary);
color: var(--text-primary);
background: var(--bg-hover);
}
&.active {
border-color: var(--primary);
color: var(--primary);
background: rgba(var(--primary-rgb), 0.12);
}
}
.row-export-btn {
border: none;
border-radius: 8px;
padding: 7px 10px;
background: var(--primary);
color: #fff;
font-size: 12px;
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
&:hover:not(:disabled) {
background: var(--primary-hover);
}
&:disabled {
opacity: 0.75;
cursor: not-allowed;
}
&.running {
background: color-mix(in srgb, var(--primary) 80%, #000);
}
&.paused {
background: rgba(250, 173, 20, 0.16);
color: #d48806;
border: 1px solid rgba(250, 173, 20, 0.38);
}
&.no-session {
background: var(--bg-secondary);
color: var(--text-tertiary);
border: 1px dashed var(--border-color);
}
}
.row-export-time {
font-size: 11px;
color: var(--text-tertiary);
}
}
.export-session-detail-overlay {
position: fixed;
top: 40px;
right: 0;
bottom: 0;
left: 0;
z-index: 1100;
display: flex;
justify-content: flex-end;
background: rgba(15, 23, 42, 0.24);
}
.export-session-detail-panel {
width: min(360px, calc(100vw - 16px));
height: calc(100vh - 40px);
border-left: 1px solid var(--border-color);
border-radius: 0;
background: var(--bg-secondary-solid, #ffffff);
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: -12px 0 30px rgba(0, 0, 0, 0.18);
.detail-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px;
border-bottom: 1px solid var(--border-color);
.detail-header-main {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.detail-header-avatar {
width: 32px;
height: 32px;
border-radius: 8px;
background: linear-gradient(135deg, var(--primary), var(--primary-hover));
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
span {
color: #fff;
font-size: 13px;
font-weight: 600;
}
}
.detail-header-meta {
min-width: 0;
h4 {
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.detail-header-id {
margin-top: 3px;
font-size: 11px;
color: var(--text-tertiary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.close-btn {
border: none;
background: transparent;
color: var(--text-secondary);
width: 26px;
height: 26px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
&:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
}
}
.detail-loading,
.detail-empty {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
color: var(--text-secondary);
font-size: 13px;
padding: 14px;
}
.detail-content {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 14px;
}
.detail-section {
margin-bottom: 18px;
&:last-child {
margin-bottom: 0;
}
.section-title {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 0.4px;
}
.detail-stats-meta {
margin-top: -4px;
margin-bottom: 10px;
font-size: 12px;
color: var(--text-tertiary);
}
}
.detail-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 0;
border-bottom: 1px solid var(--border-color);
font-size: 13px;
&:last-child {
border-bottom: none;
}
.label {
color: var(--text-secondary);
flex-shrink: 0;
}
.value {
flex: 1;
text-align: right;
color: var(--text-primary);
word-break: break-all;
user-select: text;
&.highlight {
color: var(--primary);
font-weight: 600;
}
}
.detail-inline-btn {
border: none;
background: var(--bg-secondary);
color: var(--primary);
border-radius: 6px;
padding: 4px 8px;
font-size: 12px;
line-height: 1;
cursor: pointer;
&:disabled {
cursor: not-allowed;
opacity: 0.7;
}
&:hover:not(:disabled) {
background: var(--bg-hover);
}
}
.copy-btn {
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
padding: 0;
border: none;
border-radius: 4px;
background: transparent;
color: var(--text-tertiary);
cursor: pointer;
flex-shrink: 0;
opacity: 0;
transition: opacity 0.15s, color 0.15s, background 0.15s;
&:hover {
background: var(--bg-secondary);
color: var(--text-primary);
}
}
&:hover .copy-btn {
opacity: 1;
}
}
.table-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.detail-table-placeholder {
padding: 10px 12px;
border-radius: 8px;
background: var(--bg-secondary);
font-size: 12px;
color: var(--text-secondary);
}
.table-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-radius: 8px;
background: var(--bg-secondary);
font-size: 12px;
.db-name {
color: var(--text-primary);
font-weight: 500;
}
.table-count {
color: var(--text-secondary);
}
}
}
.table-state {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 120px;
color: var(--text-secondary);
}
.table-skeleton-list {
display: grid;
gap: 8px;
padding: 4px 0;
}
.table-skeleton-item {
display: grid;
grid-template-columns: 20px 36px minmax(160px, 2fr) repeat(3, minmax(80px, 1fr));
align-items: center;
gap: 12px;
padding: 10px 8px;
border-radius: 8px;
background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
}
.skeleton-shimmer {
position: relative;
overflow: hidden;
border-radius: 8px;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.08) 0%,
rgba(255, 255, 255, 0.35) 50%,
rgba(255, 255, 255, 0.08) 100%
);
background-size: 220% 100%;
animation: exportSkeletonShimmer 1.2s linear infinite;
}
.skeleton-dot {
width: 16px;
height: 16px;
border-radius: 6px;
}
.skeleton-avatar {
width: 36px;
height: 36px;
border-radius: 8px;
}
.skeleton-line {
display: inline-block;
height: 12px;
}
.skeleton-line.w-12 { width: 48%; min-width: 42px; }
.skeleton-line.w-20 { width: 22%; min-width: 36px; }
.skeleton-line.w-30 { width: 32%; min-width: 120px; }
.skeleton-line.w-40 { width: 45%; min-width: 80px; }
.skeleton-line.w-60 { width: 62%; min-width: 110px; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-line.h-32 { height: 32px; border-radius: 10px; }
.export-dialog-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
z-index: 1000;
}
.export-dialog {
width: min(1080px, calc(100vw - 32px));
max-height: calc(100vh - 32px);
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 14px;
padding: 14px 14px 12px;
display: flex;
flex-direction: column;
overflow: hidden;
}
.dialog-body {
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
padding-right: 2px;
}
.dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
h3 {
margin: 0;
color: var(--text-primary);
font-size: 18px;
}
}
.close-icon-btn {
border: 1px solid var(--border-color);
background: var(--bg-secondary);
border-radius: 8px;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--text-secondary);
}
.dialog-section {
border: 1px solid var(--border-color);
border-radius: 10px;
padding: 12px;
background: var(--bg-secondary);
h4 {
margin: 0 0 8px;
font-size: 13px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.4px;
}
}
.scope-tag-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.scope-tag {
border-radius: 999px;
background: rgba(var(--primary-rgb), 0.15);
color: var(--primary);
padding: 4px 10px;
font-size: 12px;
font-weight: 600;
}
.scope-count {
font-size: 12px;
color: var(--text-secondary);
}
.scope-list {
margin-top: 8px;
display: flex;
flex-wrap: wrap;
gap: 6px;
max-height: 120px;
overflow: auto;
}
.scope-item {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 999px;
padding: 4px 9px;
font-size: 12px;
color: var(--text-primary);
}
.format-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 6px;
}
.format-note {
margin: 0 0 8px;
font-size: 12px;
line-height: 1.45;
color: var(--text-secondary);
}
.format-card {
width: 100%;
min-height: 0;
border: 1px solid var(--border-color);
border-radius: 10px;
padding: 8px 10px;
text-align: left;
background: var(--bg-primary);
cursor: pointer;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
.format-label {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
line-height: 1.35;
}
.format-desc {
margin-top: 1px;
font-size: 11px;
color: var(--text-tertiary);
line-height: 1.35;
}
&.active {
border-color: var(--primary);
background: rgba(var(--primary-rgb), 0.08);
}
}
.switch-row {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 13px;
color: var(--text-primary);
}
.date-range-row {
margin-top: 10px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
label {
display: flex;
flex-direction: column;
gap: 5px;
font-size: 12px;
color: var(--text-secondary);
}
input {
border-radius: 8px;
border: 1px solid var(--border-color);
background: var(--bg-primary);
color: var(--text-primary);
padding: 8px;
}
}
.media-check-grid {
margin-top: 10px;
display: grid;
grid-template-columns: repeat(3, minmax(100px, 1fr));
gap: 8px;
label {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--text-primary);
}
input[type='checkbox'] {
accent-color: var(--primary);
}
}
.display-name-options {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 8px;
}
.display-name-item {
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 8px;
width: 100%;
display: flex;
flex-direction: column;
gap: 2px;
background: var(--bg-primary);
text-align: left;
cursor: pointer;
color: inherit;
font: inherit;
appearance: none;
-webkit-appearance: none;
&:focus-visible {
outline: 2px solid rgba(var(--primary-rgb), 0.35);
outline-offset: 1px;
}
span {
font-size: 12px;
color: var(--text-primary);
font-weight: 600;
}
small {
color: var(--text-secondary);
font-size: 11px;
line-height: 1.4;
}
&.active {
border-color: var(--primary);
background: rgba(var(--primary-rgb), 0.08);
}
}
.dialog-actions {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--border-color);
display: flex;
justify-content: flex-end;
gap: 8px;
flex-shrink: 0;
background: var(--card-bg);
}
.primary-btn,
.secondary-btn {
border-radius: 8px;
padding: 7px 12px;
font-size: 12px;
font-weight: 600;
border: 1px solid var(--border-color);
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
}
.primary-btn {
border-color: var(--primary);
background: var(--primary);
color: #fff;
&:hover {
background: var(--primary-hover);
}
&:disabled {
opacity: 0.65;
cursor: not-allowed;
}
}
.secondary-btn {
background: var(--bg-secondary);
color: var(--text-primary);
&:hover {
border-color: var(--primary);
color: var(--primary);
}
}
@keyframes exportSpin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes exportSkeletonShimmer {
0% {
background-position: 220% 0;
}
100% {
background-position: -20% 0;
}
}
@keyframes exportDots {
0% {
width: 0;
}
100% {
width: 1.8em;
}
}
@keyframes exportTaskBadgePulse {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.35);
}
70% {
transform: scale(1.02);
box-shadow: 0 0 0 6px rgba(255, 77, 79, 0);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
}
}
@media (max-width: 1360px) {
.global-export-controls {
padding: 10px;
gap: 8px;
}
.format-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.display-name-options {
grid-template-columns: 1fr;
}
.media-check-grid {
grid-template-columns: repeat(2, minmax(120px, 1fr));
}
}
@media (max-width: 760px) {
.global-export-controls {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.task-center-control {
grid-column: 1 / -1;
}
}
@media (max-width: 720px) {
.export-dialog-overlay {
padding: 10px;
}
.export-dialog {
width: calc(100vw - 20px);
max-height: calc(100vh - 20px);
padding: 12px 10px 10px;
}
.format-grid {
grid-template-columns: 1fr;
}
.date-range-row {
grid-template-columns: 1fr;
}
.task-center-modal-overlay {
padding: 12px 10px;
}
.task-center-modal {
width: calc(100vw - 20px);
max-height: calc(100vh - 56px);
}
.task-actions {
width: 84px;
}
.export-session-detail-panel {
width: calc(100vw - 12px);
}
}