- Set ticket state (Offen / In Bearbeitung / Warten auf Schließen / Geschlossen) from the ticket detail page via a live PUT to Zammad; pending-close gets a default pending time and the change is synced back so it isn't flagged as an external change - Replace the disruptive meta-refresh with a JS auto-refresh that pauses while a text field has unsent content or focus - Persist reply/new-ticket drafts to localStorage and restore them after a reload or accidental navigation Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
238 lines
12 KiB
CSS
238 lines
12 KiB
CSS
:root {
|
|
--bg: #f4f6f8;
|
|
--panel: #ffffff;
|
|
--ink: #1f2933;
|
|
--muted: #7b8794;
|
|
--line: #e1e7ec;
|
|
--brand: #0b6e4f;
|
|
--brand-dark: #084c37;
|
|
--accent: #c0392b;
|
|
--shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0; background: var(--bg); color: var(--ink);
|
|
font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
}
|
|
a { color: var(--brand-dark); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
.topbar {
|
|
display: flex; align-items: center; gap: 1.5rem;
|
|
background: var(--brand); color: #fff; padding: .7rem 1.2rem;
|
|
}
|
|
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
|
|
.topbar nav { display: flex; gap: 1.2rem; margin-left: auto; }
|
|
.topbar nav a { color: #d8f3e8; }
|
|
|
|
main { max-width: 1100px; margin: 1.4rem auto; padding: 0 1rem; }
|
|
footer { max-width: 1100px; margin: 2rem auto; padding: 1rem; color: var(--muted); font-size: .82rem; }
|
|
|
|
.flash {
|
|
max-width: 1100px; margin: 1rem auto 0; padding: .6rem 1rem;
|
|
background: #e8f5ee; border: 1px solid #b7e0c9; border-radius: 6px;
|
|
}
|
|
|
|
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
|
|
.card {
|
|
background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
|
|
padding: 1rem 1.2rem; box-shadow: var(--shadow);
|
|
display: flex; flex-direction: column; gap: .25rem;
|
|
}
|
|
.card .num { font-size: 1.9rem; font-weight: 700; }
|
|
.card .lbl { color: var(--muted); font-size: .82rem; }
|
|
.card.alert { border-color: var(--accent); }
|
|
.card.alert .num { color: var(--accent); }
|
|
.num.ok { color: var(--brand); } .num.err { color: var(--accent); }
|
|
|
|
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
|
|
@media (max-width: 820px) { .grid, .cards { grid-template-columns: 1fr 1fr; } }
|
|
|
|
.panel {
|
|
background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
|
|
box-shadow: var(--shadow); margin-bottom: 1.4rem; overflow: hidden;
|
|
}
|
|
.panel-head {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); background: #fafbfc;
|
|
}
|
|
.panel-head h2 { margin: 0; font-size: 1rem; }
|
|
|
|
.btn-sm {
|
|
background: var(--brand); color: #fff; border: 0; border-radius: 6px;
|
|
padding: .35rem .7rem; font-size: .8rem; cursor: pointer;
|
|
}
|
|
.btn-sm:hover { background: var(--brand-dark); }
|
|
|
|
.feed, .timeline { list-style: none; margin: 0; padding: 0; }
|
|
.feed li, .timeline li { padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); }
|
|
.feed li.unseen, .timeline li.unseen { background: #fff8f1; }
|
|
.feed time, .timeline time { display: block; color: var(--muted); font-size: .78rem; margin-top: .2rem; }
|
|
|
|
/* Kompakte einzeilige Änderungszeilen */
|
|
.feed.compact li {
|
|
display: flex; align-items: center; gap: .55rem; padding: .45rem 1.1rem;
|
|
font-size: .85rem; white-space: nowrap; overflow: hidden;
|
|
}
|
|
.feed.compact .ctitle { flex: 1 1 auto; min-width: 60px; overflow: hidden; text-overflow: ellipsis; color: #44525e; }
|
|
.feed.compact .cchg { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
|
|
.feed.compact .cnum { flex: 0 0 auto; font-weight: 600; }
|
|
.feed.compact time { display: inline; margin: 0; flex: 0 0 auto; white-space: nowrap; }
|
|
.feed.compact .tag { flex: 0 0 auto; margin: 0; }
|
|
.mark-one { flex: 0 0 auto; margin: 0; }
|
|
.mark-one button {
|
|
border: 1px solid #c5e8d3; background: #f1faf4; color: var(--brand);
|
|
border-radius: 6px; width: 24px; height: 24px; line-height: 1; cursor: pointer;
|
|
font-size: .8rem; padding: 0;
|
|
}
|
|
.mark-one button:hover { background: var(--brand); color: #fff; }
|
|
.seen-dot { flex: 0 0 auto; width: 24px; text-align: center; color: #cbd2d8; }
|
|
.more { display: inline-block; padding: .6rem 1.1rem; font-size: .85rem; }
|
|
.head-tools { display: flex; align-items: center; gap: .8rem; }
|
|
.head-tools .chips { padding: 0; display: flex; gap: .35rem; }
|
|
@media (max-width: 560px) {
|
|
.feed.compact .cchg { display: none; }
|
|
}
|
|
.chg { font-size: .9rem; margin-top: .2rem; }
|
|
.detail { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
|
|
|
|
.tag {
|
|
display: inline-block; font-size: .72rem; font-weight: 600;
|
|
padding: .1rem .5rem; border-radius: 999px; margin-right: .4rem;
|
|
background: #eef2f5; color: #44525e;
|
|
}
|
|
.tag-state { background: #fde8e6; color: #a83227; }
|
|
.tag-owner { background: #e6f0fd; color: #1c54a8; }
|
|
.tag-article { background: #e8f5ee; color: #0b6e4f; }
|
|
.tag-new_ticket { background: #f3e8fd; color: #6b27a8; }
|
|
.tag-priority { background: #fff3d6; color: #8a6300; }
|
|
|
|
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 1.1rem; }
|
|
.chip { background: #eef2f5; padding: .25rem .6rem; border-radius: 999px; font-size: .82rem; }
|
|
.chip.on { background: var(--brand); color: #fff; }
|
|
|
|
table.tickets { width: 100%; border-collapse: collapse; font-size: .9rem; }
|
|
table.tickets th, table.tickets td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
|
|
table.tickets th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
|
|
table.tickets td.title { max-width: 360px; }
|
|
table.tickets th a { color: var(--muted); text-decoration: none; display: inline-block; }
|
|
table.tickets th a:hover { color: var(--ink); }
|
|
table.tickets th.sorted a { color: var(--brand-dark); }
|
|
table.tickets th .arrow { font-size: .65rem; }
|
|
|
|
/* Zeilen mit unbestätigten Änderungen hervorheben */
|
|
table.tickets tr.row-unseen { background: #fff8f1; }
|
|
table.tickets tr.row-unseen td { border-left: 0; box-shadow: none; }
|
|
table.tickets tr.row-unseen td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
|
|
.badge {
|
|
display: inline-block; min-width: 18px; padding: 0 5px; margin-right: .35rem;
|
|
background: var(--accent); color: #fff; border-radius: 999px;
|
|
font-size: .72rem; font-weight: 700; text-align: center; line-height: 18px;
|
|
}
|
|
|
|
.state { display: inline-block; padding: .1rem .5rem; border-radius: 6px; font-size: .78rem; background: #eef2f5; }
|
|
.state-closed { background: #e6eaed; color: #66727c; }
|
|
.state-open { background: #fde8e6; color: #a83227; }
|
|
.state-new { background: #fff3d6; color: #8a6300; }
|
|
[class^="state-"].state-pending\ reminder, .state-pending { background: #e6f0fd; color: #1c54a8; }
|
|
|
|
.state-form { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: 0 1.1rem 1rem; }
|
|
.state-form label { font-size: .85rem; font-weight: 600; color: #44525e; }
|
|
.state-form select { font: inherit; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
|
|
|
|
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 2rem; padding: 1rem 1.1rem; margin: 0; }
|
|
.meta div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: .25rem 0; }
|
|
.meta dt { color: var(--muted); margin: 0; }
|
|
.meta dd { margin: 0; font-weight: 600; }
|
|
|
|
.muted { color: var(--muted); padding: 1rem 1.1rem; }
|
|
.back { font-size: .9rem; }
|
|
|
|
/* --- Auswertung --- */
|
|
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
|
|
.toolbar .chips { padding: 0; }
|
|
.cards-6 { grid-template-columns: repeat(6, 1fr); }
|
|
@media (max-width: 820px) { .cards-6 { grid-template-columns: repeat(2, 1fr); } }
|
|
.cards-6 .num { font-size: 1.4rem; }
|
|
|
|
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
|
|
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
|
|
|
|
.chart-wrap { padding: 1rem; overflow-x: auto; }
|
|
.chart { width: 100%; height: auto; }
|
|
|
|
.barlist { padding: .8rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
|
|
.barrow { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: .6rem; font-size: .85rem; }
|
|
.barlabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #44525e; }
|
|
.bartrack { background: #eef2f5; border-radius: 5px; height: 16px; overflow: hidden; }
|
|
.barfill { display: block; height: 100%; background: var(--brand); border-radius: 5px; min-width: 2px; }
|
|
.barval { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
|
|
@media (max-width: 560px) { .barrow { grid-template-columns: 110px 1fr 36px; } }
|
|
|
|
table.kv { width: 100%; border-collapse: collapse; font-size: .88rem; }
|
|
table.kv th, table.kv td { text-align: left; padding: .45rem .8rem; border-bottom: 1px solid var(--line); }
|
|
table.kv th { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; }
|
|
table.kv td:first-child { font-weight: 600; }
|
|
.hint { padding: .6rem 1.1rem 1rem; font-size: .85rem; color: #44525e; }
|
|
|
|
/* --- Konversation --- */
|
|
.thread { display: flex; flex-direction: column; gap: .8rem; padding: 1rem 1.1rem; }
|
|
.msg { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; background: #fff; }
|
|
.msg-customer { background: #f0f7ff; border-color: #cfe2fb; margin-left: 2rem; }
|
|
.msg-agent { background: #f1faf4; border-color: #c5e8d3; margin-right: 2rem; }
|
|
.msg-system { background: #f7f8fa; }
|
|
.msg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .82rem; color: var(--muted); }
|
|
.who { color: #44525e; }
|
|
.role { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; margin-right: .4rem; }
|
|
.role-customer { background: #1c54a8; color: #fff; }
|
|
.role-agent { background: var(--brand); color: #fff; }
|
|
.role-system { background: #aab4bd; color: #fff; }
|
|
.msg-subj { font-weight: 600; margin: .35rem 0 .15rem; font-size: .9rem; }
|
|
.msg-body { white-space: pre-wrap; word-wrap: break-word; font-size: .9rem; line-height: 1.45; }
|
|
.msg-att { margin-top: .5rem; font-size: .8rem; color: var(--muted); }
|
|
.msg-imgs { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
|
|
.msg-img {
|
|
max-width: 260px; max-height: 260px; border: 1px solid var(--line);
|
|
border-radius: 8px; object-fit: contain; background: #fff; cursor: zoom-in;
|
|
}
|
|
|
|
/* --- Formulare / Antworten --- */
|
|
.reply-form { padding: .8rem 1.1rem 1.1rem; border-top: 1px solid var(--line); }
|
|
.form { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; }
|
|
.form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: #44525e; }
|
|
.form input, .form select, textarea {
|
|
font: inherit; padding: .55rem .65rem; border: 1px solid var(--line);
|
|
border-radius: 7px; background: #fff; width: 100%;
|
|
}
|
|
textarea { resize: vertical; }
|
|
.reply-form textarea { width: 100%; }
|
|
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; margin-top: .6rem; }
|
|
.hint-inline { color: var(--muted); font-size: .8rem; margin-right: auto; }
|
|
|
|
.confirm-body { padding: 1rem 1.1rem 1.2rem; }
|
|
.warn { background: #fff3d6; border: 1px solid #f0d48a; color: #8a6300; padding: .6rem .8rem; border-radius: 7px; font-size: .9rem; }
|
|
.preview-box { white-space: pre-wrap; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: .8rem; margin: .8rem 0; font-size: .9rem; line-height: 1.45; }
|
|
.confirm-actions { display: flex; justify-content: flex-end; gap: .8rem; align-items: center; }
|
|
.btn-danger { background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: .55rem 1rem; font-size: .9rem; font-weight: 600; cursor: pointer; }
|
|
.btn-danger:hover { background: #a13325; }
|
|
.btn-danger:disabled { opacity: .6; cursor: default; }
|
|
.btn-ghost { padding: .55rem 1rem; border-radius: 7px; border: 1px solid var(--line); color: #44525e; font-size: .9rem; }
|
|
|
|
/* --- Anhänge --- */
|
|
.attach { display: flex; flex-direction: column; gap: .4rem; }
|
|
.attach-label { font-size: .85rem; font-weight: 600; color: #44525e; display: flex; flex-direction: column; gap: .15rem; }
|
|
.attach-hint { font-weight: 400; color: var(--muted); font-size: .78rem; }
|
|
.attach-input { font: inherit; font-size: .82rem; }
|
|
.attach-list { display: flex; flex-wrap: wrap; gap: .4rem; }
|
|
.attach-chip {
|
|
display: inline-flex; align-items: center; gap: .3rem; background: #eef2f5;
|
|
border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem;
|
|
font-size: .8rem; color: #44525e;
|
|
}
|
|
.attach-chip button {
|
|
border: 0; background: transparent; color: var(--accent); cursor: pointer;
|
|
font-size: 1rem; line-height: 1; padding: 0;
|
|
}
|
|
.attach-form.dragging { outline: 2px dashed var(--brand); outline-offset: 4px; border-radius: 8px; }
|
|
.attach-summary { margin: .4rem 0 .2rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; }
|