Files
otrs-turbo/public/css/style.css
T

2632 lines
56 KiB
CSS

/* ============================================================
OTRS Turbo — Design System
Premium dark theme with glassmorphism and micro-animations
============================================================ */
/* ---- CSS Variables / Design Tokens ---- */
:root {
/* Base colors - Light Theme Default */
--bg-primary: #f8fafc;
--bg-secondary: #ffffff;
--bg-tertiary: #f1f5f9;
--bg-card: #ffffff;
--bg-card-hover: #f8fafc;
--bg-glass: rgba(255, 255, 255, 0.8);
/* Accent */
--accent-primary: #4f46e5;
--accent-primary-hover: #4338ca;
--accent-primary-glow: rgba(79, 70, 229, 0.15);
--accent-secondary: #7c3aed;
/* Text */
--text-primary: #0f172a;
--text-secondary: #475569;
--text-tertiary: #64748b;
--text-muted: #94a3b8;
/* Borders */
--border-subtle: rgba(15, 23, 42, 0.05);
--border-light: rgba(15, 23, 42, 0.1);
--border-accent: rgba(79, 70, 229, 0.2);
/* Priority colors */
--priority-1-bg: #eff6ff;
--priority-1-text: #1d4ed8;
--priority-2-bg: #f0fdf4;
--priority-2-text: #15803d;
--priority-3-bg: #fef9c3;
--priority-3-text: #854d0e;
--priority-4-bg: #ffedd5;
--priority-4-text: #c2410c;
--priority-5-bg: #fef2f2;
--priority-5-text: #b91c1c;
/* State colors */
--state-new: #0284c7;
--state-open: #4f46e5;
--state-pending: #d97706;
--state-closed: #475569;
--state-removed: #dc2626;
/* Semantic */
--success: #16a34a;
--success-bg: rgba(22, 163, 74, 0.1);
--warning: #d97706;
--warning-bg: rgba(217, 119, 6, 0.1);
--error: #dc2626;
--error-bg: rgba(220, 38, 38, 0.1);
--info: #0284c7;
--info-bg: rgba(2, 132, 199, 0.1);
/* 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.05);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
--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);
}
/* ==========================================
Alternative Dark & Custom Themes
========================================== */
/* Helpers for dark priority variables */
.theme-dark,
.theme-rosso,
.theme-naturale,
.theme-ice,
.theme-autunno,
.theme-fairytale {
--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-new: #38bdf8;
--state-open: #6366f1;
--state-pending: #f59e0b;
--state-closed: #64748b;
--state-removed: #ef4444;
--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);
--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);
}
body.theme-dark {
--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-primary: #6366f1;
--accent-primary-hover: #818cf8;
--accent-primary-glow: rgba(99, 102, 241, 0.3);
--accent-secondary: #8b5cf6;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--text-tertiary: #64748b;
--text-muted: #475569;
--border-subtle: rgba(148, 163, 184, 0.08);
--border-light: rgba(148, 163, 184, 0.15);
--border-accent: rgba(99, 102, 241, 0.3);
}
body.theme-rosso {
--bg-primary: #1f0002;
--bg-secondary: #3d0004;
--bg-tertiary: #620007;
--bg-card: rgba(61, 0, 4, 0.7);
--bg-card-hover: rgba(98, 0, 7, 0.85);
--bg-glass: rgba(31, 0, 2, 0.6);
--accent-primary: #fd5d41;
--accent-primary-hover: #ff7e67;
--accent-primary-glow: rgba(253, 93, 65, 0.3);
--accent-secondary: #fec4a1;
--text-primary: #fed8b9;
--text-secondary: #fec4a1;
--text-tertiary: #c48375;
--text-muted: #8d4f45;
--border-subtle: rgba(254, 196, 161, 0.08);
--border-light: rgba(254, 196, 161, 0.15);
--border-accent: rgba(253, 93, 65, 0.3);
}
body.theme-naturale {
--bg-primary: #181007;
--bg-secondary: #271a0b;
--bg-tertiary: #39271b;
--bg-card: rgba(39, 26, 11, 0.7);
--bg-card-hover: rgba(57, 39, 27, 0.85);
--bg-glass: rgba(24, 16, 7, 0.6);
--accent-primary: #a8ae7b;
--accent-primary-hover: #c4ca9a;
--accent-primary-glow: rgba(168, 174, 123, 0.3);
--accent-secondary: #4b57de;
--text-primary: #f3efe9;
--text-secondary: #baa820;
--text-tertiary: #a8ae7b;
--text-muted: #736952;
--border-subtle: rgba(168, 174, 123, 0.08);
--border-light: rgba(168, 174, 123, 0.15);
--border-accent: rgba(168, 174, 123, 0.3);
}
body.theme-ice {
--bg-primary: #0b1822;
--bg-secondary: #162c3d;
--bg-tertiary: #235878;
--bg-card: rgba(22, 44, 61, 0.7);
--bg-card-hover: rgba(35, 88, 120, 0.85);
--bg-glass: rgba(11, 24, 34, 0.6);
--accent-primary: #719ebd;
--accent-primary-hover: #8fb6d2;
--accent-primary-glow: rgba(113, 158, 189, 0.3);
--accent-secondary: #497591;
--text-primary: #f0f6fa;
--text-secondary: #a3c4dc;
--text-tertiary: #80a9c7;
--text-muted: #5e839f;
--border-subtle: rgba(163, 196, 220, 0.08);
--border-light: rgba(163, 196, 220, 0.15);
--border-accent: rgba(113, 158, 189, 0.3);
}
body.theme-autunno {
--bg-primary: #161216;
--bg-secondary: #2d1d0f;
--bg-tertiary: #472e18;
--bg-card: rgba(45, 29, 15, 0.7);
--bg-card-hover: rgba(71, 46, 24, 0.85);
--bg-glass: rgba(22, 18, 22, 0.6);
--accent-primary: #a46a02;
--accent-primary-hover: #c4840b;
--accent-primary-glow: rgba(164, 106, 2, 0.3);
--accent-secondary: #8d5203;
--text-primary: #faf6f0;
--text-secondary: #eed4b3;
--text-tertiary: #cda371;
--text-muted: #a48259;
--border-subtle: rgba(164, 106, 2, 0.15);
--border-light: rgba(164, 106, 2, 0.25);
--border-accent: rgba(164, 106, 2, 0.4);
}
body.theme-fairytale {
--bg-primary: #2a1d28;
--bg-secondary: #443241;
--bg-tertiary: #4f3558;
--bg-card: rgba(68, 50, 65, 0.88);
--bg-card-hover: rgba(85, 62, 81, 0.95);
--bg-glass: rgba(42, 29, 40, 0.75);
--accent-primary: #e67dcf;
--accent-primary-hover: #fcaae7;
--accent-primary-glow: rgba(230, 125, 207, 0.35);
--accent-secondary: #c971ba;
--text-primary: #fdf4fa;
--text-secondary: #f3bae2;
--text-tertiary: #dfa0cf;
--text-muted: #bd8eaf;
--border-subtle: rgba(243, 186, 226, 0.08);
--border-light: rgba(243, 186, 226, 0.15);
--border-accent: rgba(230, 125, 207, 0.3);
}
/* ---- 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;
min-width: 0;
}
/* ---- 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);
min-width: 0;
}
@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);
}
/* Queue Custom Tooltip */
.ticket-table td.queue-cell {
position: relative;
overflow: visible !important;
}
.queue-tooltip {
visibility: hidden;
opacity: 0;
position: absolute;
left: 50%;
bottom: 100%;
transform: translate(-50%, -6px);
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-subtle);
padding: 6px 12px;
border-radius: var(--radius-md);
font-size: 0.8rem;
font-weight: 500;
white-space: nowrap;
box-shadow: var(--shadow-lg);
z-index: 1000;
transition: opacity 0.05s ease, visibility 0.05s ease;
pointer-events: none;
}
.queue-cell:hover .queue-tooltip {
visibility: visible;
opacity: 1;
}
.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 tbody tr.first-selected {
background: rgba(160, 65, 71, 0.32) !important;
box-shadow: inset 6px 0 0 var(--accent-primary) !important;
}
.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);
position: relative;
z-index: 20;
}
.state-multiselect-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.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;
flex-wrap: wrap;
gap: var(--space-md);
padding: var(--space-sm) var(--space-md);
margin-bottom: var(--space-md);
background-color: var(--bg-card);
background-image: 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;
position: sticky;
top: var(--topbar-total-height, var(--topbar-height));
z-index: 45;
box-shadow: var(--shadow-md);
}
@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: var(--bg-card);
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
max-height: 220px;
overflow-y: auto;
z-index: 1000;
box-shadow: var(--shadow-lg);
backdrop-filter: blur(8px);
}
.autocomplete-suggestion-item {
padding: 10px 14px;
cursor: pointer;
border-bottom: 1px solid var(--border-subtle);
font-size: 0.85rem;
color: var(--text-primary);
transition: all var(--transition-fast);
}
.autocomplete-suggestion-item:hover {
background: var(--accent-primary);
color: #ffffff !important;
}
.autocomplete-suggestion-item:hover span {
color: #ffffff !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: var(--bg-secondary);
/* Sfondo 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: var(--bg-card);
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: var(--shadow-lg);
backdrop-filter: blur(8px);
}
.bulk-suggestions-item {
padding: 6px 10px;
/* Compatto */
cursor: pointer;
border-bottom: 1px solid var(--border-subtle);
font-size: 0.8rem;
color: var(--text-primary);
}
.bulk-suggestions-item:hover {
background: var(--accent-primary);
color: white;
}
.bulk-suggestions-item:hover span {
color: white !important;
}
.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);
}
/* HTML switch & attachments styles */
.article-header-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-md);
}
.html-toggle-container {
display: flex;
align-items: center;
gap: var(--space-xs);
font-size: 0.82rem;
color: var(--text-secondary);
}
.html-toggle-input {
cursor: pointer;
}
.article-attachments {
margin-top: var(--space-md);
padding-top: var(--space-sm);
border-top: 1px dashed var(--border-subtle);
display: flex;
flex-wrap: wrap;
gap: var(--space-sm);
}
.attachment-badge {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
padding: 4px 10px;
font-size: 0.78rem;
color: var(--text-primary);
text-decoration: none;
transition: all var(--transition-fast);
}
.attachment-badge:hover {
background: var(--bg-card-hover);
border-color: var(--accent-primary);
color: var(--accent-primary-hover);
}
.attachment-size {
color: var(--text-muted);
font-size: 0.72rem;
}
/* Upload list & item styling */
.upload-file-list {
display: flex;
flex-direction: column;
gap: var(--space-xs);
margin-top: var(--space-sm);
margin-bottom: var(--space-md);
max-width: 400px;
}
.upload-file-item {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
padding: var(--space-xs) var(--space-sm);
font-size: 0.8rem;
color: var(--text-primary);
}
.upload-file-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: var(--space-sm);
}
.upload-file-remove {
background: none;
border: none;
color: var(--error);
cursor: pointer;
padding: 0 4px;
font-size: 1rem;
transition: opacity var(--transition-fast);
}
.upload-file-remove:hover {
opacity: 0.8;
}
.bulk-row .badge-attachments-count {
position: absolute;
top: -6px;
right: -6px;
background: var(--accent-primary);
color: white;
font-size: 0.65rem;
padding: 1px 4px;
border-radius: 6px;
font-weight: bold;
}
/* ============================================================
Quill Editor Custom Theme Integration
============================================================ */
.ql-toolbar.ql-snow {
background: var(--bg-secondary) !important;
border: 1px solid var(--border-light) !important;
border-bottom: none !important;
border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}
.ql-container.ql-snow {
background: var(--bg-tertiary) !important;
border: 1px solid var(--border-light) !important;
border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
color: var(--text-primary) !important;
font-family: inherit !important;
}
.ql-editor {
min-height: 200px;
font-family: inherit !important;
font-size: 0.95rem !important;
}
.ql-snow .ql-stroke {
stroke: var(--text-secondary) !important;
}
.ql-snow .ql-fill {
fill: var(--text-secondary) !important;
}
.ql-snow .ql-picker {
color: var(--text-secondary) !important;
}
.ql-snow .ql-picker-options {
background-color: var(--bg-secondary) !important;
border-color: var(--border-light) !important;
}
.ql-snow .ql-picker-item {
color: var(--text-secondary) !important;
}
.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:focus,
.ql-snow .ql-toolbar button:focus,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active,
.ql-snow.ql-toolbar .ql-picker-label:hover,
.ql-snow .ql-toolbar .ql-picker-label:hover,
.ql-snow.ql-toolbar .ql-picker-label.ql-active,
.ql-snow .ql-toolbar .ql-picker-label.ql-active {
color: var(--accent-primary) !important;
}
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke {
stroke: var(--accent-primary) !important;
}
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill {
fill: var(--accent-primary) !important;
}
/* ============================================================
Daily Timer Tooltip & Progress Bar
============================================================ */
.sidebar-timer {
position: relative;
cursor: pointer;
}
.timer-tooltip {
position: absolute;
left: 105%;
top: 50%;
transform: translateY(-50%) translateX(-8px);
width: 290px;
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
padding: var(--space-md);
box-shadow: var(--shadow-lg);
opacity: 0;
pointer-events: none;
transition: all var(--transition-base);
z-index: 1000;
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.timer-tooltip::after {
content: "";
position: absolute;
top: 50%;
right: 100%;
transform: translateY(-50%);
border-width: 6px;
border-style: solid;
border-color: transparent var(--bg-secondary) transparent transparent;
}
.timer-tooltip-border {
position: absolute;
top: 50%;
right: 100%;
transform: translateY(-50%);
border-width: 7px;
border-style: solid;
border-color: transparent var(--border-light) transparent transparent;
z-index: 999;
}
.sidebar-timer:hover .timer-tooltip {
opacity: 1;
transform: translateY(-50%) translateX(0);
pointer-events: auto;
}
/* ---- Overperformance Glow ---- */
@keyframes overperformance-glow {
0% {
box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), inset 0 0 15px rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.6);
}
50% {
box-shadow: 0 0 30px rgba(239, 68, 68, 0.8), inset 0 0 30px rgba(239, 68, 68, 0.4);
border-color: rgba(239, 68, 68, 1);
}
100% {
box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), inset 0 0 15px rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.6);
}
}
.sidebar-brand.glow {
animation: overperformance-glow 2s infinite;
background: rgba(239, 68, 68, 0.1) !important;
border: 1px solid rgba(239, 68, 68, 0.6) !important;
border-radius: var(--radius-md);
margin: var(--space-sm);
padding: 12px !important;
transition: all 0.5s ease;
}
@keyframes autotime-pulse {
0% {
box-shadow: 0 0 5px rgba(16, 112, 202, 0.4);
border-color: rgba(16, 112, 202, 0.5);
}
50% {
box-shadow: 0 0 15px rgba(16, 112, 202, 0.8), inset 0 0 5px rgba(16, 112, 202, 0.3);
border-color: rgba(16, 112, 202, 0.9);
background: rgba(16, 112, 202, 0.15);
}
100% {
box-shadow: 0 0 5px rgba(16, 112, 202, 0.4);
border-color: rgba(16, 112, 202, 0.5);
}
}
.sidebar-brand.clickable-auto-time {
cursor: pointer;
animation: autotime-pulse 2.5s infinite ease-in-out;
border: 1px dashed var(--accent-primary) !important;
border-radius: var(--radius-md);
margin: var(--space-xs) var(--space-sm);
padding: 8px 12px !important;
transition: all 0.3s ease;
}
.sidebar-brand.clickable-auto-time:hover {
filter: brightness(1.2);
transform: translateY(-1px);
}
.sidebar-timer.clickable-auto-time {
cursor: pointer;
animation: autotime-pulse 2.5s infinite ease-in-out;
border: 1px dashed var(--accent-primary) !important;
border-radius: var(--radius-md);
margin: var(--space-xs) var(--space-sm);
padding: 8px 12px !important;
transition: all 0.3s ease;
}
.sidebar-timer.clickable-auto-time:hover {
filter: brightness(1.2);
transform: translateY(-1px);
}
@keyframes overperformance-alarm-pulse {
0% {
box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
border-color: rgba(239, 68, 68, 0.6);
}
50% {
box-shadow: 0 0 15px rgba(239, 68, 68, 0.8), inset 0 0 5px rgba(239, 68, 68, 0.3);
border-color: rgba(239, 68, 68, 0.9);
background: rgba(239, 68, 68, 0.15) !important;
}
100% {
box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
border-color: rgba(239, 68, 68, 0.6);
}
}
.sidebar-timer.overperformance-alarm {
animation: overperformance-alarm-pulse 1.5s infinite ease-in-out;
border: 1px solid rgba(239, 68, 68, 0.6) !important;
border-radius: var(--radius-md);
margin: var(--space-xs) var(--space-sm);
padding: 8px 12px !important;
transition: all 0.3s ease;
}
/* ---- Ticket Tab Bar System ---- */
.tabs-bar {
display: flex;
flex-wrap: wrap; /* Wraps to new line if too many tabs */
align-items: stretch;
background: var(--bg-secondary);
padding: 0;
}
.tab-item {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: transparent;
border: none;
border-right: 1px solid var(--border-subtle);
border-radius: 0 !important; /* Square corners */
font-size: 0.8rem;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
user-select: none;
transition: all var(--transition-fast);
margin: 0 !important;
}
.tab-item:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.tab-item.active {
background: var(--bg-primary); /* Blend with main content background */
color: var(--accent-primary);
border-bottom: 2px solid var(--accent-primary);
}
.tab-item .tab-close {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 2px;
font-size: 0.75rem;
line-height: 1;
opacity: 0.7;
transition: all 0.15s;
}
.tab-item .tab-close:hover {
opacity: 1;
color: var(--error);
}
/* ---- Full Bleed Ticket View Area ---- */
#view-container.ticket-view-active {
padding: 0 !important;
}
#view-container.ticket-view-active .back-link {
margin: var(--space-md) var(--space-xl) var(--space-xs);
display: inline-flex;
}
#view-container.ticket-view-active .ticket-detail {
border-radius: 0 !important;
border: none !important;
}
#view-container.ticket-view-active .ticket-detail .card {
border-radius: 0 !important;
border-left: none !important;
border-right: none !important;
border-bottom: none !important;
}
/* ============================================================
Advanced Dashboard Ticket Chart Custom Styles
============================================================ */
.multiselect-list {
display: flex;
flex-direction: column;
max-height: 140px;
overflow-y: auto;
border: 1px solid var(--border-light);
border-radius: var(--radius-sm);
padding: 4px;
gap: 2px;
background: var(--bg-primary);
}
.multiselect-item {
padding: 6px 10px;
border-radius: var(--radius-sm);
cursor: pointer;
font-size: 0.82rem;
color: var(--text-secondary);
transition: background-color 0.15s, color 0.15s;
user-select: none;
}
.multiselect-item:hover {
background-color: var(--bg-hover, rgba(0,0,0,0.05));
color: var(--text-primary);
}
.multiselect-item.selected {
background-color: var(--accent-primary);
color: white;
}
.theme-dark .multiselect-item:hover,
.theme-rosso .multiselect-item:hover,
.theme-naturale .multiselect-item:hover,
.theme-ice .multiselect-item:hover,
.theme-autunno .multiselect-item:hover,
.theme-fairytale .multiselect-item:hover {
background-color: rgba(255, 255, 255, 0.08);
}
.line-config-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 14px;
background: var(--bg-primary);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
transition: border-color var(--transition-fast);
}
.line-config-row:hover {
border-color: var(--border-light);
}
.line-config-row .line-name {
font-weight: 500;
font-size: 0.9rem;
color: var(--text-primary);
}
.line-config-row .line-actions {
display: flex;
gap: 6px;
}