1932 lines
38 KiB
CSS
1932 lines
38 KiB
CSS
/* ============================================================
|
|
OTRS Turbo — Design System
|
|
Premium dark theme with glassmorphism and micro-animations
|
|
============================================================ */
|
|
|
|
/* ---- CSS Variables / Design Tokens ---- */
|
|
:root {
|
|
/* Base colors */
|
|
--bg-primary: #0b0e14;
|
|
--bg-secondary: #111827;
|
|
--bg-tertiary: #1a2234;
|
|
--bg-card: rgba(17, 24, 39, 0.7);
|
|
--bg-card-hover: rgba(26, 34, 52, 0.85);
|
|
--bg-glass: rgba(17, 24, 39, 0.55);
|
|
|
|
/* Accent */
|
|
--accent-primary: #6366f1;
|
|
--accent-primary-hover: #818cf8;
|
|
--accent-primary-glow: rgba(99, 102, 241, 0.3);
|
|
--accent-secondary: #8b5cf6;
|
|
|
|
/* Text */
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #94a3b8;
|
|
--text-tertiary: #64748b;
|
|
--text-muted: #475569;
|
|
|
|
/* Borders */
|
|
--border-subtle: rgba(148, 163, 184, 0.08);
|
|
--border-light: rgba(148, 163, 184, 0.15);
|
|
--border-accent: rgba(99, 102, 241, 0.3);
|
|
|
|
/* Priority colors */
|
|
--priority-1-bg: rgba(30, 58, 95, 0.5);
|
|
--priority-1-text: #60a5fa;
|
|
--priority-2-bg: rgba(30, 70, 50, 0.5);
|
|
--priority-2-text: #4ade80;
|
|
--priority-3-bg: rgba(80, 65, 20, 0.5);
|
|
--priority-3-text: #facc15;
|
|
--priority-4-bg: rgba(100, 50, 15, 0.5);
|
|
--priority-4-text: #fb923c;
|
|
--priority-5-bg: rgba(100, 20, 20, 0.5);
|
|
--priority-5-text: #f87171;
|
|
|
|
/* State colors */
|
|
--state-new: #38bdf8;
|
|
--state-open: #6366f1;
|
|
--state-pending: #f59e0b;
|
|
--state-closed: #64748b;
|
|
--state-removed: #ef4444;
|
|
|
|
/* Semantic */
|
|
--success: #22c55e;
|
|
--success-bg: rgba(34, 197, 94, 0.12);
|
|
--warning: #f59e0b;
|
|
--warning-bg: rgba(245, 158, 11, 0.12);
|
|
--error: #ef4444;
|
|
--error-bg: rgba(239, 68, 68, 0.12);
|
|
--info: #38bdf8;
|
|
--info-bg: rgba(56, 189, 248, 0.12);
|
|
|
|
/* Spacing */
|
|
--space-xs: 4px;
|
|
--space-sm: 8px;
|
|
--space-md: 16px;
|
|
--space-lg: 24px;
|
|
--space-xl: 32px;
|
|
--space-2xl: 48px;
|
|
|
|
/* Radius */
|
|
--radius-sm: 6px;
|
|
--radius-md: 10px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 24px;
|
|
--radius-full: 9999px;
|
|
|
|
/* Shadows */
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
--shadow-glow: 0 0 20px var(--accent-primary-glow);
|
|
|
|
/* Layout */
|
|
--sidebar-width: 260px;
|
|
--topbar-height: 64px;
|
|
|
|
/* Transitions */
|
|
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* ---- Reset & Base ---- */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-size: 14px;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--text-muted);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
/* ---- Sidebar ---- */
|
|
.sidebar {
|
|
width: var(--sidebar-width);
|
|
height: 100vh;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: 100;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
border-right: 1px solid var(--border-subtle);
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: width var(--transition-base);
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
padding: var(--space-lg);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.brand-icon {
|
|
font-size: 1.7rem;
|
|
line-height: 1;
|
|
filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
|
|
}
|
|
|
|
.brand-text {
|
|
font-size: 1.25rem;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.nav-menu {
|
|
list-style: none;
|
|
padding: var(--space-md);
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.nav-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
padding: 10px var(--space-md);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
font-size: 0.92rem;
|
|
transition: all var(--transition-fast);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.nav-link::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(135deg, var(--accent-primary-glow), transparent);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--text-primary);
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
.nav-link:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.nav-link.active {
|
|
color: var(--text-primary);
|
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
|
|
box-shadow: inset 0 0 0 1px var(--border-accent);
|
|
}
|
|
|
|
.nav-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.nav-link span {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.nav-badge {
|
|
margin-left: auto;
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
padding: 2px 7px;
|
|
border-radius: var(--radius-full);
|
|
min-width: 22px;
|
|
text-align: center;
|
|
position: relative;
|
|
z-index: 1;
|
|
display: none;
|
|
}
|
|
|
|
.nav-badge:not(:empty) {
|
|
display: inline-block;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: var(--space-md) var(--space-lg);
|
|
border-top: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.sidebar-footer-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.connection-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--warning);
|
|
transition: background var(--transition-base);
|
|
}
|
|
|
|
.connection-dot.connected {
|
|
background: var(--success);
|
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
|
|
animation: pulse-glow 2s ease-in-out infinite;
|
|
}
|
|
|
|
.connection-dot.error {
|
|
background: var(--error);
|
|
}
|
|
|
|
.connection-text {
|
|
font-size: 0.75rem;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
@keyframes pulse-glow {
|
|
|
|
0%,
|
|
100% {
|
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
|
|
}
|
|
|
|
50% {
|
|
box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
|
|
}
|
|
}
|
|
|
|
/* ---- Main Content ---- */
|
|
.main-content {
|
|
margin-left: var(--sidebar-width);
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ---- Topbar ---- */
|
|
.topbar {
|
|
height: var(--topbar-height);
|
|
padding: 0 var(--space-xl);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.topbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.topbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.search-bar {
|
|
position: relative;
|
|
width: 320px;
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--text-tertiary);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
padding: 8px 12px 8px 36px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.search-input:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px var(--accent-primary-glow);
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ---- View Container ---- */
|
|
.view-container {
|
|
flex: 1;
|
|
padding: var(--space-xl);
|
|
animation: fadeIn var(--transition-base);
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* ---- Loading ---- */
|
|
.loading-screen {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-md);
|
|
padding: var(--space-2xl);
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.spinner {
|
|
width: 36px;
|
|
height: 36px;
|
|
border: 3px solid var(--border-light);
|
|
border-top-color: var(--accent-primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* ---- Buttons ---- */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
padding: 9px 18px;
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
outline: none;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 14px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btn-xs {
|
|
padding: 4px 10px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
color: white;
|
|
box-shadow: var(--shadow-sm), 0 0 12px var(--accent-primary-glow);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md), 0 0 20px var(--accent-primary-glow);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
|
|
.btn-ghost:hover {
|
|
background: var(--bg-card-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-accent);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--error-bg);
|
|
color: var(--error);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success-bg);
|
|
color: var(--success);
|
|
border: 1px solid rgba(34, 197, 94, 0.2);
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background: rgba(34, 197, 94, 0.2);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
transform: none !important;
|
|
}
|
|
|
|
/* ---- Cards / Glass Panels ---- */
|
|
.card {
|
|
background: var(--bg-card);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.card:hover {
|
|
border-color: var(--border-light);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
/* ---- Stats Cards ---- */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: var(--space-md);
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-card);
|
|
backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
transition: all var(--transition-base);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stat-card::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
|
|
opacity: 0;
|
|
transition: opacity var(--transition-base);
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-2px);
|
|
border-color: var(--border-accent);
|
|
box-shadow: var(--shadow-lg), var(--shadow-glow);
|
|
}
|
|
|
|
.stat-card:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2rem;
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1;
|
|
background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.stat-card.accent .stat-value {
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.stat-card.warning .stat-value {
|
|
background: linear-gradient(135deg, var(--warning), #fbbf24);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.stat-card.danger .stat-value {
|
|
background: linear-gradient(135deg, var(--error), #fb7185);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* ---- Distribution Bars ---- */
|
|
.distribution-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: var(--space-lg);
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
|
|
.dist-bar-container {
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.dist-bar-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.dist-bar-label {
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.dist-bar-value {
|
|
font-size: 0.82rem;
|
|
color: var(--text-primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.dist-bar-track {
|
|
height: 6px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-full);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dist-bar-fill {
|
|
height: 100%;
|
|
border-radius: var(--radius-full);
|
|
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
|
|
transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
min-width: 2px;
|
|
}
|
|
|
|
/* ---- Ticket Table ---- */
|
|
.ticket-table-wrapper {
|
|
overflow-x: auto;
|
|
border-radius: var(--radius-lg);
|
|
border: 1px solid var(--border-subtle);
|
|
background: var(--bg-card);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.ticket-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.ticket-table thead {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.ticket-table th {
|
|
padding: 12px var(--space-md);
|
|
text-align: left;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.ticket-table th:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.ticket-table th.sortable::after {
|
|
content: '↕';
|
|
margin-left: 4px;
|
|
font-size: 0.7rem;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.ticket-table th.sort-asc::after {
|
|
content: '↑';
|
|
opacity: 1;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.ticket-table th.sort-desc::after {
|
|
content: '↓';
|
|
opacity: 1;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.ticket-table td {
|
|
padding: 10px var(--space-md);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
vertical-align: middle;
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ticket-table tbody tr {
|
|
transition: background var(--transition-fast);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ticket-table tbody tr:hover {
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
.ticket-table tbody tr.selected {
|
|
background: rgba(160, 65, 71, 0.15);
|
|
box-shadow: inset 3px 0 0 var(--accent-primary);
|
|
}
|
|
|
|
.ticket-table .checkbox-cell {
|
|
width: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.ticket-table input[type="checkbox"] {
|
|
appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid var(--border-light);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
position: relative;
|
|
}
|
|
|
|
.ticket-table input[type="checkbox"]:checked {
|
|
background: var(--accent-primary);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.ticket-table input[type="checkbox"]:checked::after {
|
|
content: '✓';
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 0.65rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.ticket-tn {
|
|
font-weight: 600;
|
|
color: var(--accent-primary-hover);
|
|
font-family: 'Inter', monospace;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.ticket-title-cell {
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ---- Badges ---- */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 3px 10px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge-state {
|
|
background: rgba(99, 102, 241, 0.12);
|
|
color: var(--accent-primary-hover);
|
|
}
|
|
|
|
.badge-state[data-state-type="new"] {
|
|
background: rgba(56, 189, 248, 0.12);
|
|
color: var(--state-new);
|
|
}
|
|
|
|
.badge-state[data-state-type="open"] {
|
|
background: rgba(99, 102, 241, 0.12);
|
|
color: var(--state-open);
|
|
}
|
|
|
|
.badge-state[data-state-type="pending reminder"],
|
|
.badge-state[data-state-type="pending auto"] {
|
|
background: rgba(245, 158, 11, 0.12);
|
|
color: var(--state-pending);
|
|
}
|
|
|
|
.badge-state[data-state-type="closed"] {
|
|
background: rgba(100, 116, 139, 0.12);
|
|
color: var(--state-closed);
|
|
}
|
|
|
|
.badge-state[data-state-type="removed"],
|
|
.badge-state[data-state-type="merged"] {
|
|
background: rgba(239, 68, 68, 0.12);
|
|
color: var(--state-removed);
|
|
}
|
|
|
|
.badge-priority {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.badge-priority[data-priority="1"] {
|
|
background: var(--priority-1-bg);
|
|
color: var(--priority-1-text);
|
|
}
|
|
|
|
.badge-priority[data-priority="2"] {
|
|
background: var(--priority-2-bg);
|
|
color: var(--priority-2-text);
|
|
}
|
|
|
|
.badge-priority[data-priority="3"] {
|
|
background: var(--priority-3-bg);
|
|
color: var(--priority-3-text);
|
|
}
|
|
|
|
.badge-priority[data-priority="4"] {
|
|
background: var(--priority-4-bg);
|
|
color: var(--priority-4-text);
|
|
}
|
|
|
|
.badge-priority[data-priority="5"] {
|
|
background: var(--priority-5-bg);
|
|
color: var(--priority-5-text);
|
|
}
|
|
|
|
.badge-queue {
|
|
background: rgba(139, 92, 246, 0.1);
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
/* ---- Filters Bar ---- */
|
|
.filters-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-md);
|
|
padding: var(--space-md);
|
|
background: var(--bg-card);
|
|
backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.filter-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.filter-label {
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.filter-select {
|
|
padding: 6px 28px 6px 10px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.82rem;
|
|
outline: none;
|
|
cursor: pointer;
|
|
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='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 8px center;
|
|
transition: border-color var(--transition-fast);
|
|
}
|
|
|
|
.filter-select:focus {
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.filter-select option {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.filters-actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
/* ---- Batch Actions Bar ---- */
|
|
.batch-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
padding: var(--space-sm) var(--space-md);
|
|
margin-bottom: var(--space-md);
|
|
background: linear-gradient(135deg, rgba(160, 65, 71, 0.15), rgba(160, 65, 71, 0.15));
|
|
border: 1px solid var(--border-accent);
|
|
border-radius: var(--radius-lg);
|
|
animation: slideDown 0.2s ease-out;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.batch-count {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--accent-primary-hover);
|
|
}
|
|
|
|
/* ---- Pagination ---- */
|
|
.pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-md);
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
margin-top: var(--space-md);
|
|
}
|
|
|
|
.pagination-info {
|
|
font-size: 0.8rem;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.pagination-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.pagination-btn {
|
|
padding: 6px 12px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-secondary);
|
|
font-family: inherit;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.pagination-btn:hover:not(:disabled) {
|
|
background: var(--bg-card-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-accent);
|
|
}
|
|
|
|
.pagination-btn:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pagination-btn.active {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
/* ---- Ticket Detail ---- */
|
|
.ticket-detail {
|
|
display: grid;
|
|
grid-template-columns: 1fr 320px;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.ticket-detail-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.ticket-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.ticket-header-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.ticket-number {
|
|
font-size: 0.85rem;
|
|
color: var(--accent-primary-hover);
|
|
font-weight: 600;
|
|
font-family: 'Inter', monospace;
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.ticket-detail-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
margin-bottom: var(--space-md);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.ticket-meta-badges {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.ticket-header-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
/* Quick Edit Fields */
|
|
.quick-edit {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.quick-edit-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.quick-edit-label {
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.quick-edit-select {
|
|
padding: 8px 30px 8px 12px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
cursor: pointer;
|
|
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='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 10px center;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.quick-edit-select:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px var(--accent-primary-glow);
|
|
}
|
|
|
|
.quick-edit-select.changed {
|
|
border-color: var(--success);
|
|
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
|
|
}
|
|
|
|
/* ---- Articles Timeline ---- */
|
|
.articles-timeline {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.article-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
transition: border-color var(--transition-fast);
|
|
position: relative;
|
|
animation: fadeIn var(--transition-base);
|
|
}
|
|
|
|
.article-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 16px;
|
|
bottom: 16px;
|
|
width: 3px;
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.article-card.sender-agent::before {
|
|
background: var(--accent-primary);
|
|
}
|
|
|
|
.article-card.sender-customer::before {
|
|
background: var(--success);
|
|
}
|
|
|
|
.article-card.sender-system::before {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
.article-card:hover {
|
|
border-color: var(--border-light);
|
|
}
|
|
|
|
.article-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.article-sender {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.article-sender-badge {
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.68rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.article-sender-badge.agent {
|
|
background: rgba(99, 102, 241, 0.12);
|
|
color: var(--accent-primary-hover);
|
|
}
|
|
|
|
.article-sender-badge.customer {
|
|
background: var(--success-bg);
|
|
color: var(--success);
|
|
}
|
|
|
|
.article-sender-badge.system {
|
|
background: rgba(100, 116, 139, 0.12);
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.article-from {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.article-time {
|
|
font-size: 0.78rem;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.article-subject {
|
|
font-weight: 600;
|
|
margin-bottom: var(--space-sm);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.article-body {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* ---- Ticket Sidebar ---- */
|
|
.ticket-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.sidebar-panel {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.sidebar-panel-title {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.meta-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--space-sm) 0;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.meta-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.meta-label {
|
|
font-size: 0.78rem;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.meta-value {
|
|
font-size: 0.82rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
text-align: right;
|
|
}
|
|
|
|
/* ---- Add Note Form ---- */
|
|
.add-note-form {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.add-note-form .card-title {
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.note-textarea {
|
|
width: 100%;
|
|
min-height: 100px;
|
|
padding: var(--space-md);
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
resize: vertical;
|
|
transition: border-color var(--transition-fast);
|
|
line-height: 1.6;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.note-textarea:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px var(--accent-primary-glow);
|
|
}
|
|
|
|
.note-textarea::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ---- Create Ticket Form ---- */
|
|
.create-form {
|
|
max-width: 720px;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-md);
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.form-group.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.form-label .required {
|
|
color: var(--error);
|
|
}
|
|
|
|
.form-input,
|
|
.form-select,
|
|
.form-textarea {
|
|
padding: 10px 14px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.form-input:focus,
|
|
.form-select:focus,
|
|
.form-textarea:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px var(--accent-primary-glow);
|
|
}
|
|
|
|
.form-input::placeholder,
|
|
.form-textarea::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form-select {
|
|
appearance: none;
|
|
cursor: pointer;
|
|
padding-right: 32px;
|
|
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='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
}
|
|
|
|
.form-select option {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.form-textarea {
|
|
resize: vertical;
|
|
min-height: 140px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: var(--space-md);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* ---- Toast Notifications ---- */
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: var(--space-xl);
|
|
right: var(--space-xl);
|
|
z-index: 9999;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
gap: var(--space-sm);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
padding: 12px 20px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
backdrop-filter: blur(16px);
|
|
box-shadow: var(--shadow-lg);
|
|
pointer-events: auto;
|
|
animation: toastIn 0.3s ease-out;
|
|
max-width: 400px;
|
|
border: 1px solid;
|
|
}
|
|
|
|
.toast.toast-exit {
|
|
animation: toastOut 0.25s ease-in forwards;
|
|
}
|
|
|
|
.toast-success {
|
|
background: var(--success-bg);
|
|
color: var(--success);
|
|
border-color: rgba(34, 197, 94, 0.2);
|
|
}
|
|
|
|
.toast-error {
|
|
background: var(--error-bg);
|
|
color: var(--error);
|
|
border-color: rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.toast-info {
|
|
background: var(--info-bg);
|
|
color: var(--info);
|
|
border-color: rgba(56, 189, 248, 0.2);
|
|
}
|
|
|
|
.toast-warning {
|
|
background: var(--warning-bg);
|
|
color: var(--warning);
|
|
border-color: rgba(245, 158, 11, 0.2);
|
|
}
|
|
|
|
@keyframes toastIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(40px) scale(0.95);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0) scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes toastOut {
|
|
from {
|
|
opacity: 1;
|
|
transform: translateX(0) scale(1);
|
|
}
|
|
|
|
to {
|
|
opacity: 0;
|
|
transform: translateX(40px) scale(0.95);
|
|
}
|
|
}
|
|
|
|
/* ---- Recent Tickets Table (Dashboard) ---- */
|
|
.recent-tickets-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.recent-tickets-table th {
|
|
padding: 8px var(--space-md);
|
|
text-align: left;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.recent-tickets-table td {
|
|
padding: 8px var(--space-md);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.recent-tickets-table tbody tr {
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.recent-tickets-table tbody tr:hover {
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
/* ---- Empty State ---- */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--space-2xl);
|
|
color: var(--text-tertiary);
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: var(--space-md);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.empty-state-text {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
margin-bottom: var(--space-sm);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-state-sub {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* ---- Back Button ---- */
|
|
.back-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
color: var(--text-tertiary);
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
margin-bottom: var(--space-lg);
|
|
transition: color var(--transition-fast);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.back-link:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ---- Note subject ---- */
|
|
.note-subject-input {
|
|
width: 100%;
|
|
padding: 8px var(--space-md);
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
transition: border-color var(--transition-fast);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.note-subject-input:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px var(--accent-primary-glow);
|
|
}
|
|
|
|
.note-subject-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ---- Responsive ---- */
|
|
@media (max-width: 1100px) {
|
|
.ticket-detail {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.ticket-sidebar {
|
|
order: -1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
:root {
|
|
--sidebar-width: 0px;
|
|
}
|
|
|
|
.sidebar {
|
|
transform: translateX(-100%);
|
|
width: 260px;
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.search-bar {
|
|
width: 200px;
|
|
}
|
|
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ---- Autocomplete Suggestions ---- */
|
|
.autocomplete-suggestions {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: #1f2937;
|
|
border: 1px solid #4b5563;
|
|
border-radius: var(--radius-md);
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
z-index: 1000;
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.autocomplete-suggestion-item {
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid rgba(156, 163, 175, 0.15);
|
|
font-size: 0.85rem;
|
|
color: #f3f4f6;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.autocomplete-suggestion-item:hover {
|
|
background: var(--accent-primary);
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
.autocomplete-suggestion-item:hover span {
|
|
color: #e5e7eb !important;
|
|
}
|
|
|
|
.autocomplete-suggestion-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* ---- Bulk Tickets Grid Styles ---- */
|
|
.bulk-grid-wrapper {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
margin-bottom: var(--space-lg);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--bg-card);
|
|
min-height: 520px;
|
|
/* Previene il ritaglio dei menu a tendina se ci sono poche righe */
|
|
}
|
|
|
|
.bulk-grid-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
min-width: 1200px;
|
|
}
|
|
|
|
.bulk-grid-table tr:focus-within {
|
|
position: relative;
|
|
z-index: 100;
|
|
/* Solleva la riga attiva sopra le altre */
|
|
}
|
|
|
|
.bulk-grid-table td:focus-within {
|
|
position: relative;
|
|
z-index: 110;
|
|
/* Solleva la cella attiva sopra le altre */
|
|
}
|
|
|
|
.bulk-grid-table th {
|
|
padding: var(--space-md);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
border-bottom: 1px solid var(--border-light);
|
|
background: rgba(255, 255, 255, 0.01);
|
|
}
|
|
|
|
.bulk-grid-table td {
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
position: relative;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.bulk-grid-table tr:hover {
|
|
background: rgba(255, 255, 255, 0.01);
|
|
}
|
|
|
|
.bulk-input,
|
|
.bulk-select {
|
|
width: 100%;
|
|
padding: 6px 10px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
height: 36px;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.bulk-input:focus,
|
|
.bulk-select:focus {
|
|
border-color: var(--border-accent);
|
|
box-shadow: 0 0 0 2px var(--accent-primary-glow);
|
|
background: rgba(0, 0, 0, 0.3);
|
|
outline: none;
|
|
}
|
|
|
|
.bulk-textarea-container {
|
|
position: relative;
|
|
width: 180px;
|
|
height: 36px;
|
|
}
|
|
|
|
.bulk-textarea {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
/* Si ancora sul bordo destro */
|
|
width: 180px;
|
|
height: 36px;
|
|
padding: 6px 10px;
|
|
background: var(--bg-secondary);
|
|
/* Rimosso trasparenza */
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
line-height: 1.4;
|
|
resize: none;
|
|
overflow: hidden;
|
|
transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
|
|
z-index: 5;
|
|
}
|
|
|
|
.bulk-textarea:focus {
|
|
width: 320px;
|
|
height: 120px;
|
|
right: 0;
|
|
/* Mantiene l'ancoraggio a destra per espandersi verso sinistra */
|
|
overflow-y: auto;
|
|
z-index: 99;
|
|
background: var(--bg-secondary);
|
|
/* Rimosso trasparenza */
|
|
box-shadow: var(--shadow-lg), 0 10px 25px rgba(0, 0, 0, 1);
|
|
border-color: var(--border-accent);
|
|
outline: none;
|
|
resize: vertical;
|
|
}
|
|
|
|
.bulk-select option {
|
|
background-color: #111827;
|
|
/* Sfondo scuro per gli stati e i tipi */
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.bulk-suggestions {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
width: max-content;
|
|
min-width: 100%;
|
|
max-width: 400px;
|
|
background: #1f2937;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
max-height: 380px;
|
|
/* Incrementata l'altezza per contenere più elementi */
|
|
overflow-y: auto;
|
|
z-index: 999;
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.bulk-suggestions-item {
|
|
padding: 6px 10px;
|
|
/* Compatto */
|
|
cursor: pointer;
|
|
border-bottom: 1px solid rgba(156, 163, 175, 0.1);
|
|
font-size: 0.8rem;
|
|
color: #e5e7eb;
|
|
}
|
|
|
|
.bulk-suggestions-item:hover {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.bulk-suggestions-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.bulk-actions-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: var(--space-md);
|
|
flex-wrap: wrap;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.row-status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
margin-right: var(--space-xs);
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
.row-status-dot.pending {
|
|
background: var(--warning);
|
|
box-shadow: 0 0 8px var(--warning);
|
|
}
|
|
|
|
.row-status-dot.success {
|
|
background: var(--success);
|
|
box-shadow: 0 0 8px var(--success);
|
|
}
|
|
|
|
.row-status-dot.error {
|
|
background: var(--error);
|
|
box-shadow: 0 0 8px var(--error);
|
|
}
|
|
|
|
.row-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.bulk-row-expanded {
|
|
background: rgba(255, 255, 255, 0.015);
|
|
}
|
|
|
|
.bulk-row-expanded-content {
|
|
padding: var(--space-md);
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: var(--space-md);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
/* Ticket List Links */
|
|
.ticket-tn-link,
|
|
.ticket-title-link {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
font-weight: inherit;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.ticket-tn-link:hover,
|
|
.ticket-title-link:hover {
|
|
color: var(--accent-primary-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Inline Retrodate Editors */
|
|
.retrodate-container {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.retrodate-btn-edit {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 2px 4px;
|
|
font-size: 0.85rem;
|
|
transition: color var(--transition-fast);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.retrodate-btn-edit:hover {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.retrodate-editor {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.retrodate-input {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
padding: 2px 6px;
|
|
font-size: 0.8rem;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.retrodate-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.retrodate-actions {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
.retrodate-btn-action {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.retrodate-btn-action.save {
|
|
color: var(--success);
|
|
}
|
|
|
|
.retrodate-btn-action.cancel {
|
|
color: var(--error);
|
|
} |