/* CrystalWorks support workspace. Reuses the main application visual system. */
.cw-support {
  --cw-ink: var(--text);
  --cw-muted: var(--muted);
  --cw-line: var(--border);
  --cw-accent: var(--ifs-blue);
  color: var(--text);
  width: 100%;
  max-width: none;
  margin: 0;
}
.cw-support *, .cw-profile-overlay * { box-sizing:border-box; }
.cw-support-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.cw-support .cw-support-header h1 {
  margin:0 0 8px;
  font-size:28px;
  font-weight:700;
  letter-spacing:-.03em;
}
.cw-support-header p { color:var(--muted); margin:0; font-size:14px; }
.cw-eyebrow { display:block; font-size:10px; font-weight:700; letter-spacing:.12em; color:var(--muted); margin-bottom:8px; text-transform:uppercase; }
.cw-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--ifs-blue);
  color:#fff;
  border:1px solid var(--ifs-blue);
  border-radius:var(--radius);
  padding:7px 13px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
  line-height:1.4;
}
.cw-primary:hover { background:var(--ifs-blue-hover); border-color:var(--ifs-blue-hover); }
.cw-primary:disabled { opacity:.6; cursor:wait; }
.cw-support-grid {
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:none;
  min-height:620px;
}
.cw-ticket-sidebar {
  padding:16px 12px;
  background:var(--surface-soft);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
}
.cw-sidebar-heading { display:flex; gap:10px; align-items:center; justify-content:space-between; padding:0 8px 12px; }
.cw-sidebar-heading h2 { font-size:14px; font-weight:700; margin:0; }
.cw-sidebar-heading span { font-size:11px; color:var(--muted); background:#eef0f4; padding:2px 7px; border-radius:999px; }
.cw-search { width:100%; padding:8px 10px; border:1px solid var(--border-dark); border-radius:var(--radius); font:inherit; font-size:12px; background:#fff; margin-bottom:10px; }
.cw-search:focus { border-color:var(--ifs-blue); box-shadow:0 0 0 2px rgba(79,70,229,.12); outline:0; }
.cw-ticket-list { overflow:auto; max-height:540px; }
.cw-ticket-item { display:block; width:100%; padding:11px 10px; margin:0 0 4px; background:transparent; border:1px solid transparent; border-radius:var(--radius); text-align:left; cursor:pointer; color:var(--text); }
.cw-ticket-item:hover { background:var(--ifs-blue-soft); }
.cw-ticket-item.selected { background:var(--ifs-blue-soft); border-color:#c7d2fe; }
.cw-ticket-top { display:flex; align-items:center; gap:5px; font-size:10px; color:var(--cw-muted); margin-bottom:8px; }
.cw-ticket-top > span:first-child { margin-right:auto; }
.cw-status-dot { width:5px; height:5px; border-radius:50%; background:#4b9c83; }
.cw-ticket-item strong { display:block; font-size:12px; font-weight:650; line-height:1.5; overflow-wrap:anywhere; margin-bottom:10px; }
.cw-ticket-bottom { display:block; font-size:10px; color:var(--cw-muted); line-height:1.6; }
.cw-ticket-bottom > span { display:block; }
.cw-list-empty { font-size:12px; color:var(--cw-muted); text-align:center; line-height:1.8; padding:30px 10px; }
.cw-support-contact { margin-top:auto; padding:20px 8px 2px; font-size:9px; color:var(--cw-muted); letter-spacing:.06em; line-height:1.7; }
.cw-support-contact strong { font-size:12px; letter-spacing:0; color:var(--cw-ink); }
.cw-support-contact span { font-size:11px; letter-spacing:0; }
.cw-workspace { min-width:0; background:#fff; }
.cw-composer { padding:22px 24px; }
.cw-composer-heading { margin-bottom:18px; }
.cw-composer-heading h2 { font-size:20px; font-weight:700; margin:0 0 6px; letter-spacing:-.02em; }
.cw-composer-heading p { margin:0; font-size:12px; color:var(--cw-muted); }
.cw-address-row { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; font-size:11px; margin-bottom:8px; color:var(--cw-muted); }
.cw-address-row > span:first-child { width:28px; }
.cw-address-row strong { font-weight:550; color:#344055; }
.cw-build-context { background:#f5f4fc; padding:8px 12px; border-radius:6px; font-size:11px; margin-top:14px; }
.cw-field-label { display:block; font-size:11px; font-weight:650; margin:22px 0 8px; color:#344055; }
.cw-subject { width:100%; padding:9px 10px; border:1px solid var(--border-dark); border-radius:var(--radius); font-size:13px; font-weight:500; color:var(--text); outline:none; background:#fff; }
.cw-subject:focus { border-color:var(--ifs-blue); box-shadow:0 0 0 2px rgba(79,70,229,.12); }
.cw-ticket-meta { display:flex; flex-wrap:wrap; gap:18px; padding-top:20px; }
.cw-ticket-meta > div { flex:1; min-width:120px; }
.cw-ticket-meta label { display:block; font-size:10px; font-weight:600; color:var(--cw-muted); margin:0 0 6px; }
.cw-ticket-meta select,.cw-ticket-meta input { width:100%; background:#fff; border:1px solid var(--border-dark); border-radius:var(--radius); padding:8px 10px; font:inherit; font-size:12px; color:var(--text); }
.cw-editor { border:1px solid var(--border-dark); border-radius:var(--radius); overflow:hidden; transition:box-shadow .15s; background:#fff; }
.cw-editor:focus-within { border-color:var(--ifs-blue); box-shadow:0 0 0 2px rgba(79,70,229,.12); }
.cw-editor-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:2px; border-bottom:1px solid var(--border); background:var(--surface-soft); padding:6px 8px; }
.cw-editor-toolbar button { background:transparent; border:0; color:#546075; border-radius:5px; min-width:28px; height:28px; padding:3px 7px; font-size:12px; cursor:pointer; }
.cw-editor-toolbar button:hover { background:#eeebfc; color:#5643d9; }
.cw-toolbar-divider { height:17px; border-left:1px solid #dfe4ec; margin:0 5px; }
.cw-editor-body { padding:16px; min-height:215px; max-height:550px; overflow:auto; font-size:13px; line-height:1.7; outline:none; overflow-wrap:anywhere; }
.cw-editor-body:empty:before { content:attr(data-placeholder); color:#9ba4b4; pointer-events:none; display:block; }
.cw-editor-body img,.cw-rich-content img { display:block; max-width:100%; max-height:600px; object-fit:contain; border-radius:6px; margin:10px 0; }
.cw-editor-body p,.cw-rich-content p { margin:0 0 10px; }
.cw-editor-body pre,.cw-rich-content pre { white-space:pre-wrap; background:#f3f5fa; border-radius:6px; padding:12px; font-size:12px; }
.cw-editor-body blockquote,.cw-rich-content blockquote { border-left:3px solid #c2b9ec; margin:8px 0; padding:5px 13px; color:#687387; }
.cw-upload-strip { padding:10px 14px; background:#fcfdff; border-top:1px dashed #e6eaf0; display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.cw-upload-strip > span { font-size:10px; color:#98a1b1; }
.cw-text-button { border:0; background:none; padding:3px 0; color:#6655c7; cursor:pointer; font:inherit; font-size:11px; font-weight:600; }
.cw-attachments { display:flex; flex-wrap:wrap; gap:6px; padding:0 12px; }
.cw-file-chip { display:flex; gap:8px; align-items:center; background:#f1f3f9; border-radius:6px; padding:6px 8px; font-size:10px; color:#536078; max-width:100%; margin-bottom:8px; }
.cw-file-chip span { overflow-wrap:anywhere; }
.cw-file-chip button { border:0; background:none; font-size:17px; color:#8390a2; cursor:pointer; }
.cw-upload-status { font-size:11px; padding:0 12px 5px; color:#7a8494; }
.cw-upload-status:empty { padding:0; }
.cw-upload-help { color:#939cad; font-size:10px; line-height:1.6; margin:10px 0 0; }
.cw-compose-footer { margin-top:26px; padding-top:21px; border-top:1px solid var(--cw-line); display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:11px; color:var(--cw-muted); }
.cw-compose-footer strong { color:#536078; font-weight:550; }
.cw-compose-footer small { display:block; margin-top:5px; font-size:10px; }
.cw-alert { border:1px solid #c7d2fe; border-radius:var(--radius); background:var(--ifs-blue-soft); color:#4338ca; padding:10px 12px; font-size:12px; margin-bottom:14px; }
.cw-alert-error,.cw-error { color:#b3414f; }
.cw-error { font-size:12px; margin:10px 0; }
.cw-alert[hidden],.cw-error[hidden],.cw-link-form[hidden] { display:none; }
.cw-dragover { border-color:#7767dc; background:#f7f5ff; }
.cw-link-form { padding:10px; display:flex; gap:6px; border-top:1px solid #e6eaf0; }
.cw-link-form input { flex:1; min-width:0; font-size:12px; padding:6px; }
.cw-link-form button { font-size:11px; border:1px solid #e6eaf0; background:#f8f9fc; border-radius:4px; }
.cw-thread { padding:22px 24px; }
.cw-thread-heading { padding-bottom:18px; border-bottom:1px solid var(--border); }
.cw-thread h2 { font-size:20px; font-weight:700; margin:0 0 10px; letter-spacing:-.02em; }
.cw-thread-tags { display:flex; flex-wrap:wrap; align-items:center; gap:13px; color:var(--cw-muted); font-size:11px; }
.cw-pill { border-radius:20px; background:#edf6f0; color:#388260; padding:4px 9px; }
.cw-message { padding:24px 0; border-bottom:1px solid #edf0f5; }
.cw-message-author { display:flex; align-items:center; gap:10px; margin-bottom:15px; font-size:12px; }
.cw-avatar { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#eeebfc; color:#7663c8; font-size:12px; font-weight:600; }
.cw-message-author small { display:block; font-size:10px; color:var(--cw-muted); margin-top:4px; }
.cw-rich-content { font-size:13px; line-height:1.75; overflow-wrap:anywhere; }
.cw-system-message .cw-rich-content { color:#7d8899; font-size:11px; }
.cw-system-message { padding:18px 0; }
.cw-message-files { display:flex; gap:8px; flex-wrap:wrap; }
.cw-file-download { border:1px solid #e4e7ef; color:#5c54a9; padding:8px 10px; border-radius:7px; text-decoration:none; font-size:11px; }
.cw-file-download span { color:#98a0ad; margin-left:7px; }
.cw-email-states { margin:17px 0; }
.cw-email-state { display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-size:10px; background:#f7f9fc; padding:9px 11px; border-radius:6px; margin:5px 0; }
.cw-email-state small { flex:1; color:#8992a1; }
.cw-reply h3 { font-size:14px; margin:22px 0 12px; }
.cw-reply .cw-editor-body { min-height:120px; }
.cw-reply-footer { display:flex; justify-content:space-between; align-items:center; gap:15px; padding-top:15px; }
.cw-reply-footer > span { color:var(--cw-muted); font-size:10px; }
.cw-loading { padding:35px; color:var(--cw-muted); }
.cw-profile-overlay { position:fixed; inset:0; z-index:11000; display:grid; place-items:center; background:rgba(23,29,48,.55); backdrop-filter:blur(6px); padding:20px; }
.cw-profile-card { background:#fff; border-radius:20px; padding:36px; max-width:440px; width:100%; color:#253047; box-shadow:0 24px 90px #17203130; }
.cw-profile-icon { display:flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:14px; background:#f0edfe; color:#6651ca; font-size:25px; margin-bottom:25px; }
.cw-profile-card h1 { font-size:27px; font-weight:650; letter-spacing:-.7px; margin:0 0 16px; }
.cw-profile-card p { font-size:13px; line-height:1.7; }
.cw-profile-card .cw-muted { color:#8b93a4; font-size:12px; }
.cw-profile-card label { display:block; font-size:12px; font-weight:600; margin:22px 0 9px; }
.cw-profile-card input { display:block; width:100%; padding:12px; border:1px solid #dbe1eb; border-radius:8px; font-size:14px; margin-bottom:20px; }
.cw-profile-card .cw-primary { width:100%; }
.cw-profile-card .cw-text-button { display:block; margin:15px auto 0; color:#8690a2; }
.cw-notice { padding:20px; background:white; border:1px solid var(--border); border-radius:var(--radius); margin:14px 0; }
.cw-support button:focus-visible,.cw-support input:focus-visible,.cw-support select:focus-visible,.cw-profile-card input:focus-visible,.cw-profile-card button:focus-visible { outline:2px solid #8a7bd9; outline-offset:2px; }
@media(max-width:1100px) { .cw-support-grid { grid-template-columns:245px minmax(0,1fr); } .cw-composer,.cw-thread { padding:20px; } }
@media(max-width:760px) { .cw-support-grid { grid-template-columns:minmax(0,1fr); } .cw-ticket-sidebar { border-right:0; border-bottom:1px solid var(--cw-line); max-height:230px; padding:15px; } .cw-ticket-list { max-height:110px; } .cw-support-contact { display:none; } .cw-support-header { align-items:flex-start; flex-direction:column; } .cw-support-header p { max-width:none; } .cw-support-header .btn { width:100%; } .cw-composer,.cw-thread { padding:23px 18px; } .cw-compose-footer { align-items:flex-start; flex-direction:column; } .cw-compose-footer .cw-primary { width:100%; } .cw-reply-footer > span { display:none; } .cw-requester-email { overflow-wrap:anywhere; } }
/* The report layout list now has a third (download) column. */
.report-layouts-table { min-width: 660px; }
.report-layouts-table th:nth-child(1), .report-layouts-table td:nth-child(1) { width: 32%; }
.report-layouts-table th:nth-child(2), .report-layouts-table td:nth-child(2) { width: auto; }
.report-layouts-table th:nth-child(3), .report-layouts-table td:nth-child(3) { width: 140px; white-space: nowrap; }
