Spaces:
3SCError404
/
Paused

nexus / frontend /apps /internal /src /components /TicketDetails.module.css
dushyantsingh0
style: fix workstation overlapping and optimize grid responsiveness
33286c9
Raw History Blame Contribute Delete
17.2 kB
.container {
display: flex;
height: calc(100vh - 80px);
width: 100%;
background: var(--bg-dark);
color: var(--text-main);
overflow: hidden;
font-family: var(--font-main);
box-sizing: border-box;
}
/* --- Dynamic Sidebars --- */
.sidebar {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
background: var(--bg-card);
border-right: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
z-index: 10;
}
.sidebarDocked {
width: 48px;
flex: 0 0 48px;
border-right: 1px solid var(--border-subtle);
}
.sidebarExpanded {
width: 380px;
flex: 0 0 380px;
}
.rightSidebarExpanded {
width: 420px;
flex: 0 0 420px;
}
.toggleBtn {
position: absolute;
top: 12px;
right: 12px;
width: 24px;
height: 24px;
background: var(--bg-hover);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
color: var(--text-muted);
cursor: pointer;
z-index: 20;
}
.sidebarDocked .toggleBtn {
right: 12px;
}
.sidebarContent {
padding: 0;
width: 380px; /* Match expanded width */
transition: opacity 0.2s;
height: 100%;
overflow-y: auto;
}
.sidebarDocked .sidebarContent {
opacity: 0;
pointer-events: none;
}
.dockedIcons {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
padding-top: 60px;
width: 48px;
position: absolute;
top: 0;
left: 0;
}
.dockIcon {
font-size: 18px;
color: var(--text-muted);
opacity: 0.6;
cursor: pointer;
}
.dockIcon:hover {
opacity: 1;
color: var(--primary);
}
/* --- Banners --- */
.banner {
padding: 16px 24px;
font-size: 12px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.15em;
display: flex;
align-items: center;
gap: 12px;
border-radius: 12px;
margin-bottom: 24px;
}
.escalatedBanner {
background: #fff1f2;
color: #be123c;
border: 1px solid #fda4af;
box-shadow: 0 4px 12px rgba(190, 18, 60, 0.08);
}
.duplicateBanner {
background: #f8fafc;
color: #475569;
border: 1px solid #e2e8f0;
}
/* --- Prep Pane (Left) --- */
.prepPane {
grid-area: prep;
background: #fff;
border-left: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
overflow-y: auto;
height: 100%;
}
.panelSection {
padding: 32px 24px;
border-bottom: 1px solid var(--border-subtle);
}
.sectionHeader {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
}
.sectionTitle {
font-size: 10px;
font-weight: 900;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.15em;
}
.backBtn {
background: #fff;
border: 1px solid var(--border-subtle);
color: var(--text-main);
padding: 8px 16px;
border-radius: 10px;
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
margin-bottom: 8px;
width: fit-content;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.backBtn:hover {
background: #f8fafc;
border-color: var(--primary);
color: var(--primary);
transform: translateX(-2px);
}
/* Forensic Trace */
.traceList {
display: flex;
flex-direction: column;
gap: 20px;
}
.traceItem {
display: flex;
gap: 16px;
position: relative;
}
.traceLine {
position: absolute;
left: 7px;
top: 20px;
bottom: -20px;
width: 2px;
background: #e2e8f0;
transition: background 0.3s;
}
.traceLine.success {
background: #10b981;
}
.traceDot {
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
border: 3px solid #cbd5e1;
z-index: 1;
flex-shrink: 0;
margin-top: 2px;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.traceDot.verified {
background: #10b981;
border-color: rgba(16, 185, 129, 0.2);
}
.traceDot.active {
background: var(--primary);
border-color: var(--primary-glow);
box-shadow: 0 0 15px var(--primary-glow);
animation: pulseGlowing 2s infinite;
}
@keyframes pulseGlowing {
0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
.traceDot.failed {
background: #ef4444;
border-color: #fee2e2;
box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}
.traceDetail.verified {
color: #10b981;
font-weight: 700;
}
.traceInfo {
flex: 1;
min-width: 0;
}
.failureContext {
margin-top: 8px;
background: rgba(239, 68, 68, 0.05);
border: 1px solid rgba(239, 68, 68, 0.2);
border-radius: 6px;
padding: 8px;
font-size: 11px;
color: var(--error);
font-family: var(--font-mono);
line-height: 1.4;
}
.traceLabel {
font-size: 11px;
font-weight: 800;
color: var(--text-main);
display: block;
}
.traceDetail {
font-size: 10px;
color: var(--text-muted);
line-height: 1.4;
margin-top: 2px;
}
/* Internal Summary Box */
.summaryBox {
background: #f8fafc;
border: 1px solid var(--border-subtle);
border-radius: 16px;
padding: 20px;
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.summaryBox label {
font-size: 9px;
font-weight: 900;
color: var(--text3);
text-transform: uppercase;
display: block;
margin-bottom: 8px;
letter-spacing: 0.05em;
}
.summaryBox p {
font-size: 13px;
margin: 0;
line-height: 1.6;
color: var(--text2);
}
/* --- Work Station (Center) --- */
.workStation {
padding: 32px 20px;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
gap: 24px;
background: var(--bg-dark);
flex: 1;
min-width: 0;
height: 100%;
}
.topActions {
margin-bottom: 8px;
}
.premiumBackBtn {
background: white;
border: 1px solid var(--border-subtle);
color: var(--text-main);
padding: 8px 16px;
border-radius: 10px;
font-size: 11px;
font-weight: 800;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0,0,0,0.03);
transition: all 0.2s;
}
.premiumBackBtn:hover {
transform: translateX(-4px);
border-color: var(--primary);
color: var(--primary);
}
.investigationHeader {
display: flex;
flex-direction: column;
gap: 12px;
}
.titleRow {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.workTitle {
font-size: 32px;
font-weight: 900;
color: var(--text-main);
margin: 0;
letter-spacing: -0.02em;
}
.titleEditor {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
}
.escalateActionBtn {
background: #fff1f2;
border: 1px solid #fda4af;
color: #be123c;
padding: 8px 20px;
border-radius: 12px;
font-size: 11px;
font-weight: 900;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
transition: all 0.2s;
}
.escalateActionBtn:hover {
background: #ffe4e6;
transform: translateY(-1px);
}
.statusPills {
display: flex;
gap: 12px;
}
.pill {
padding: 4px 12px;
border-radius: 8px;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.05em;
display: flex;
align-items: center;
gap: 8px;
}
.pill[data-type="id"] {
background: rgba(124, 58, 237, 0.08);
color: var(--primary);
}
.pill[data-type="status"] {
background: #f1f5f9;
color: #475569;
}
.pill[data-type="priority"] {
background: #fff7ed;
color: #ea580c;
}
.pill[data-type="sla"] {
background: #fef2f2;
color: #991b1b;
border: 1px solid #fee2e2;
}
.pillDot {
width: 6px;
height: 6px;
border-radius: 50%;
}
.pillDot[data-status="open"] { background: #64748b; }
.pillDot[data-status="acknowledged"] { background: #7c3aed; }
.pillDot[data-status="in_progress"] { background: #2563eb; }
.pillDot[data-status="resolved"] { background: #10b981; }
.operationalGrid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px;
}
.operationalCard {
background: white;
border: 1px solid var(--border-subtle);
border-radius: 16px;
padding: 16px 20px;
display: flex;
flex-direction: column;
gap: 8px;
box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.cardLabel {
font-size: 9px;
font-weight: 900;
color: #94a3b8;
letter-spacing: 0.05em;
}
.cardInput, .cardSelect {
width: 100%;
border: none;
background: transparent;
font-size: 14px;
font-weight: 800;
color: var(--text-main);
outline: none;
padding: 4px 0;
}
.cardSelect {
cursor: pointer;
-webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right center;
}
.effortWrapper {
display: flex;
align-items: center;
gap: 8px;
}
.effortIcon {
color: #94a3b8;
}
.effortInput {
flex: 1;
border: none;
background: transparent;
font-size: 14px;
font-weight: 900;
color: var(--text-main);
outline: none;
}
.effortUnit {
font-size: 10px;
font-weight: 900;
color: #cbd5e1;
}
.dossierCard {
background: white;
border: 1px solid var(--border-subtle);
border-radius: 20px;
padding: 32px;
box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.dossierHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.dossierTitle {
display: flex;
align-items: center;
gap: 12px;
color: var(--primary);
font-size: 11px;
font-weight: 900;
letter-spacing: 0.1em;
}
.dossierActionBtn {
background: white;
border: 1px solid var(--border-subtle);
color: var(--text-main);
padding: 6px 16px;
border-radius: 10px;
font-size: 11px;
font-weight: 800;
cursor: pointer;
}
.descriptionContent {
font-size: 14px;
line-height: 1.7;
color: #334155;
}
.descriptionEditor {
display: flex;
flex-direction: column;
gap: 16px;
}
.descriptionTextarea {
min-height: 200px;
width: 100%;
background: #f8fafc;
border: 1px solid #e2e8f0;
padding: 20px;
border-radius: 12px;
font-size: 14px;
line-height: 1.6;
outline: none;
}
.editorActions {
display: flex;
justify-content: flex-end;
gap: 12px;
}
.resolutionCard {
border-left: 5px solid #10b981;
background: #f0fdf4;
}
.resolutionHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
color: #059669;
}
.resolutionDisplay {
font-size: 14px;
line-height: 1.7;
color: #065f46;
}
.resolutionEditor {
display: flex;
flex-direction: column;
gap: 16px;
}
/* Scratchpad Section in Prep Pane */
.scratchpadSection {
background: var(--bg1);
border-top: 1px solid var(--border);
padding: 24px;
}
.scratchpadHeader {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 16px;
color: var(--accent);
}
.scratchpadTitle {
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.scratchpadTextarea {
width: 100%;
background: var(--bg1);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text1);
padding: 16px;
font-size: 13px;
line-height: 1.6;
resize: vertical;
min-height: 100px;
outline: none;
}
.internalMessageList {
margin-top: 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.internalMessage {
padding: 14px;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 10px;
font-size: 13px;
color: var(--text2);
}
/* --- Service Window (Right) --- */
.serviceWindow {
grid-area: service;
background: var(--bg1);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
height: 100%;
}
.communicationThread {
flex: 1;
overflow-y: auto;
padding: 24px;
display: flex;
flex-direction: column;
gap: 24px;
}
.replyConsole {
background: #f8fafc;
border-top: 1px solid var(--border-subtle);
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
.replyTextarea {
width: 100%;
background: var(--bg1);
border: 1px solid var(--border);
border-radius: 12px;
color: var(--text1);
padding: 12px 16px;
font-size: 14px;
line-height: 1.5;
resize: none;
min-height: 80px;
outline: none;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.consoleFooter {
display: flex;
justify-content: space-between;
align-items: center;
/* Removed buffer as console is now on the left */
}
.toolGroup {
display: flex;
gap: 8px;
}
.toolBtn {
background: #fff;
border: 1px solid var(--border-subtle);
color: var(--bg-obsidian);
padding: 8px 12px;
border-radius: 8px;
font-size: 11px;
font-weight: 800;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.2s;
}
.toolBtn:hover {
background: var(--bg3);
}
.toolBtn:disabled {
opacity: 0.6;
cursor: wait;
}
.sendBtn {
background: var(--accent);
color: #fff;
border: none;
border-radius: 10px;
padding: 8px 24px;
font-size: 13px;
font-weight: 800;
cursor: pointer;
transition: all 0.2s;
}
.sendBtn:hover:not(:disabled) {
opacity: 0.9;
transform: translateY(-1px);
}
.sendBtn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* --- Modals & Utilites --- */
.modalOverlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal {
background: var(--bg1);
border: 1px solid var(--border);
width: 100%;
max-width: 550px;
border-radius: 20px;
padding: 40px;
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.secondaryBtn {
background: var(--bg2);
border: 1px solid var(--border);
color: var(--text2);
padding: 10px 20px;
border-radius: 10px;
font-weight: 700;
cursor: pointer;
margin-right: 12px;
}
.primaryBtn {
background: var(--accent);
color: #fff;
border: none;
border-radius: 10px;
padding: 10px 24px;
font-weight: 800;
cursor: pointer;
}
.loading {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
font-size: 18px;
font-weight: 700;
color: var(--text3);
}
.empty {
font-style: italic;
color: var(--text3);
font-size: 13px;
text-align: center;
padding: 20px;
}
.inlineSelect {
background: transparent;
border: 1px solid var(--border);
color: var(--accent);
font-size: 12px;
font-weight: 800;
padding: 2px 4px;
border-radius: 4px;
cursor: pointer;
outline: none;
width: 100%;
}
.inlineInput {
background: transparent;
border: 1px solid var(--border);
color: var(--text1);
font-size: 14px;
font-weight: 700;
padding: 2px 4px;
border-radius: 4px;
width: 100%;
outline: none;
}
.inlineInput:focus, .inlineSelect:focus {
outline: none;
border-color: var(--accent);
}
.editIconBtn {
background: none;
border: none;
color: var(--accent);
cursor: pointer;
font-size: 14px;
padding: 4px;
border-radius: 4px;
transition: background 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.editIconBtn:hover {
background: var(--accent-glow);
}
.resolutionInput {
width: 100%;
min-height: 120px;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px;
color: var(--text1);
font-size: 13px;
line-height: 1.5;
resize: vertical;
transition: border-color 0.2s, box-shadow 0.2s;
}
.resolutionInput:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-glow);
}
.resolveBtn {
background: var(--accent);
color: #fff;
border: none;
border-radius: 6px;
padding: 8px 16px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.resolveBtn:hover {
opacity: 0.9;
transform: translateY(-1px);
}
.resolutionTextLocked {
font-size: 13px;
line-height: 1.6;
color: var(--text1);
padding: 8px 0;
}
.escalateBtn {
background: #fef2f2;
color: #991b1b;
border: 1px solid #fee2e2;
padding: 6px 14px;
border-radius: 8px;
font-size: 11px;
font-weight: 800;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 0.05em;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}
.escalateBtn:hover {
background: #991b1b;
color: #fff;
border-color: #991b1b;
box-shadow: 0 4px 12px rgba(153, 27, 27, 0.2);
transform: translateY(-1px);
}
.escalateBtn:active {
transform: translateY(0);
}
.editableDescription {
width: 100%;
min-height: 200px;
background: var(--bg0);
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px;
font-size: 14px;
color: var(--text1);
line-height: 1.6;
font-family: inherit;
resize: vertical;
outline: none;
}
.editBtn {
background: var(--bg2);
border: 1px solid var(--border);
color: var(--text3);
font-size: 9px;
font-weight: 900;
text-transform: uppercase;
padding: 2px 8px;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.editBtn:hover {
background: var(--bg3);
color: var(--accent);
border-color: var(--accent);
}