/* Ergaenzungen zu FreeDash Lite. Das Template liefert Grundraster, Farben,
   Karten und Tabellen; hier steht nur, was die Anwendung zusaetzlich braucht. */

:root {
  /* CI Die Medialen GmbH, aus dem Logo. */
  --pm-ci: #0b84c7;
  --pm-ci-dark: #096ba1;
  --pm-ci-light: #7cc3e8;

  /* Saldo bleibt bewusst gruen/rot: das ist eine Bewertung, keine Marke. */
  --pm-pos: #1a9f63;
  --pm-neg: #d6455d;

  /* Taetigkeiten: Faktura traegt die Markenfarbe, weil sie die Leitkennzahl
     ist; die uebrigen ordnen sich farblich unter. */
  --pm-faktura: #0b84c7;
  --pm-intern: #64798c;
  --pm-vertrieb: #e8a020;
  --pm-abwesenheit: #8f6fd1;
}

/* Kopfzeile */
/* Wortmarke 256,9 x 33 (Verhaeltnis ~7,8:1). Die navbar-header ist 260 px breit
   und hat 30 px Innenabstand je Seite - 190 px fuellen das sauber aus. */
.pm-logo { width: 190px; height: auto; display: block; }
@media (max-width: 767.98px) { .pm-logo { width: 160px; } }
.sync-stamp { color: #7c8798; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.feather-sm { width: 15px; height: 15px; vertical-align: -2px; }

.user-chip { display: flex; align-items: center; }
.user-chip::after { margin-left: 6px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pm-ci); color: #fff; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; /* in Flex-Zeilen mit langen Namen sonst zur Ellipse gestaucht */
}
.user-dd { min-width: 240px; }

/* Kennzahlen */
.kpi-label {
  display: block; color: #7c8798; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.kpi-value {
  font-size: 46px; font-weight: 600; letter-spacing: -.03em;
  margin: 6px 0 4px; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.kpi-value.small { font-size: 30px; }
.kpi-unit { font-size: .4em; font-weight: 500; color: #7c8798; margin-left: 6px; }
.kpi-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.card-hero .kpi-value { font-size: 52px; }
.pos { color: var(--pm-pos) !important; }
.neg { color: var(--pm-neg) !important; }
.neutral { color: #7c8798 !important; }
.hero-hint { color: #7c8798; font-size: 13.5px; }

/* Tabellen */
.nowrap-num td, .nowrap-num th { white-space: nowrap; }
.nowrap-num .entries, .nowrap-num .e-text { white-space: normal; }
table td, table th { font-variant-numeric: tabular-nums; }

/* Zielbalken: Balken = Ist, Markierung = Ziel */
.bar-col { width: 190px; }
.target-bar { height: 8px; position: relative; overflow: visible; background: #f2f4f8; }
.target-bar .progress-bar { border-radius: 4px; }
.target-mark {
  position: absolute; top: -4px; width: 2px; height: 16px;
  background: #1c2d41; opacity: .55; border-radius: 1px;
}

/* Taetigkeiten */
.act-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; vertical-align: 1px; background: #b8c3d5;
}
.act-faktura  { background: var(--pm-faktura); }
.act-intern   { background: var(--pm-intern); }
.act-vertrieb { background: var(--pm-vertrieb); }
.act-feiertagurlaubkrankheit { background: var(--pm-abwesenheit); }
.act-bg-faktura  { background-color: var(--pm-faktura) !important; }
.act-bg-intern   { background-color: var(--pm-intern) !important; }
.act-bg-vertrieb { background-color: var(--pm-vertrieb) !important; }

/* Buchungen je Tag */
.days-table .entries { min-width: 360px; font-size: 13px; }
.entry { display: flex; gap: 8px; align-items: baseline; padding: 1px 0; }
.e-hours {
  color: #7c8798; font-size: 12px; min-width: 52px; text-align: right; flex: none;
  font-variant-numeric: tabular-nums;
}
.entry .badge {
  font-size: 10.5px; font-weight: 500; flex: none;
  padding: 3px 7px; color: #fff;
}
.entry .act-faktura  { background: rgba(11, 132, 199, .12);  color: #0a6a9f; }
.entry .act-intern   { background: rgba(100, 121, 140, .16); color: #4e606f; }
.entry .act-vertrieb { background: rgba(232, 160, 32, .18); color: #96690d; }
.entry .act-feiertagurlaubkrankheit { background: rgba(143, 111, 209, .14); color: #6f52ad; }
.entry .act-schule   { background: rgba(124, 135, 152, .14); color: #5a6474; }
.e-issue { color: #7c8798; font-size: 12px; flex: none; }
.e-text { color: #455a64; overflow: hidden; text-overflow: ellipsis; }

/* Tagesarten */
.dow { display: inline-block; width: 24px; color: #7c8798; font-size: 12px; }
tr.is-weekend { background: #fafbfc; }
tr.is-weekend .dow { color: var(--pm-ci); font-weight: 600; }
tr.is-holiday { background: #fafbfc; }
tr.is-today   { background: #fffaf0; }
.daycell { white-space: nowrap; }

.footer { padding: 24px 0 32px; }

@media (max-width: 767.98px) {
  .kpi-value, .card-hero .kpi-value { font-size: 36px; }
}

/* Memo-Generator */
.flex-none { flex: none; }
.rule-list { padding-left: 1.1rem; color: #455a64; }
.rule-list li { margin-bottom: .45rem; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; }
.kv dt { font-weight: 400; color: #7c8798; }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.memo-table .col-text  { min-width: 380px; }
.memo-table .col-date  { width: 170px; }
.memo-table .col-hours { width: 96px; }
.memo-table .col-act   { width: 120px; }
.memo-table td { vertical-align: top; }
.memo-table textarea.autogrow { resize: vertical; overflow: hidden; line-height: 1.45; min-height: 34px; }
.memo-table .src { display: block; margin-top: 3px; font-size: 11.5px; color: #9aa4b2; }
.memo-table tr.is-new .src { color: var(--pm-ci); }
.memo-table .sum-row td { border-top: 2px solid #dfe3ea; border-bottom: 0; padding-top: 12px; }
.memo-table .hours.is-invalid { border-color: var(--pm-neg); background: #fff5f6; }
.btn-icon { padding: 4px 6px; line-height: 1; }
.btn-icon svg { width: 15px; height: 15px; }
.memo-table .src .exact { color: var(--pm-ci); }

/* Anmeldung */
body.login-page { background: #f2f7fb; min-height: 100vh; }
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; padding: 32px 16px;
}
/* Zentrieren ueber automatische Aussenabstaende statt justify-content:center:
   ist der Inhalt hoeher als das Fenster, wird er so nicht oben abgeschnitten. */
.login-wrap > :first-child { margin-top: auto; }
.login-wrap > :last-child  { margin-bottom: auto; }
.login-card { width: 100%; max-width: 400px; border: 0; box-shadow: 0 8px 30px rgba(11, 132, 199, .08); }
.login-card .card-body { padding: 36px 32px 28px; }
.login-logo { width: 170px; height: auto; display: block; margin-bottom: 28px; }
.login-title { font-size: 22px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
.login-note { max-width: 400px; text-align: center; color: #7c8798; font-size: 12.5px; margin: 16px 0 0; }
.login-note + .login-note { margin-top: 6px; }

/* Profil */
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: #7c8798; font-weight: 600; margin: 8px 0 12px;
}

/* Teamuebersicht (Kanban) */
.team-search { max-width: 340px; }
.min-w-0 { min-width: 0; }
.kanban-scroll { overflow: auto; max-height: calc(100vh - 230px); min-height: 360px; }
.kanban {
  display: grid;
  grid-template-columns: 210px repeat(var(--cols), minmax(240px, 1fr));
  min-width: calc(210px + var(--cols) * 240px);
}
.kanban-lane { display: contents; }
.kanban-lane[hidden] { display: none; }

.kanban-head {
  position: sticky; top: 0; z-index: 3;
  background: #fff; padding: 12px 14px 10px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: #5a6474; border-bottom: 2px solid #e8eaec;
}
.kanban-head.col-neu      { border-bottom-color: #b8c3d5; }
.kanban-head.col-arbeit   { border-bottom-color: var(--pm-ci); }
.kanban-head.col-feedback { border-bottom-color: #e8a020; }
.kanban-head.col-test     { border-bottom-color: #8f6fd1; }
.kanban-person-head { left: 0; z-index: 4; }
.kanban-count {
  display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px;
  border-radius: 10px; background: #f2f4f8; color: #5a6474; text-align: center; font-weight: 600;
}

.kanban-person {
  position: sticky; left: 0; z-index: 2;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; background: #fff;
  border-top: 1px solid #eef0f3; border-right: 1px solid #eef0f3;
}
.kanban-name { font-weight: 500; font-size: 14px; line-height: 1.3; }
.kanban-sub  { font-size: 12px; color: #7c8798; margin-top: 2px; }
.kanban-cell {
  padding: 10px 8px; background: #fafbfc;
  border-top: 1px solid #eef0f3; border-right: 1px solid #f2f4f7;
  display: flex; flex-direction: column; gap: 8px; min-height: 64px;
}

.kcard {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #e6e9ee; border-left: 3px solid #e6e9ee;
  border-radius: 7px; padding: 8px 10px 7px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.kcard:hover { box-shadow: 0 3px 10px rgba(28, 45, 65, .08); border-color: #d5dbe3; color: inherit; }
.kcard[hidden] { display: none; }
.kcard.is-prio    { border-left-color: #e8a020; }
.kcard.is-overdue { border-left-color: var(--pm-neg); }
.kcard-top { display: flex; gap: 6px; align-items: baseline; font-size: 11px; color: #7c8798; }
.kid   { font-weight: 600; color: var(--pm-ci); flex: none; }
.kproj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ksubj {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; line-height: 1.35; color: #1c2d41; margin: 3px 0 6px;
}
.kmeta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11px; }
.kbadge { padding: 1px 6px; border-radius: 4px; background: #f2f4f8; color: #5a6474; white-space: nowrap; }
.kbadge.is-prio    { background: rgba(232, 160, 32, .15); color: #96690d; }
.kbadge.is-overdue { background: rgba(214, 69, 93, .12); color: var(--pm-neg); font-weight: 600; }
.kbadge.is-soon    { background: rgba(232, 160, 32, .12); color: #96690d; }
.kupd { margin-left: auto; color: #9aa4b2; white-space: nowrap; }

.kanban-more summary {
  list-style: none; cursor: pointer; font-size: 12px; color: var(--pm-ci);
  padding: 4px 2px; text-align: center;
}
.kanban-more summary::-webkit-details-marker { display: none; }
.kanban-more[open] summary { display: none; }
.kanban-more { display: flex; flex-direction: column; gap: 8px; }
.kanban-more[open] { display: flex; }

/* Korrekturen nach Sichtpruefung */
/* FreeDash versteckt .page-wrapper per CSS und blendet ihn erst per jQuery
   ein. Faellt ein Skript aus, bliebe die Seite leer; Felder lassen sich vorher
   nicht vermessen. Deshalb sofort anzeigen. */
#main-wrapper .page-wrapper { display: block; }
/* Volle Bildschirmbreite: FreeDash deckelt .container-fluid auf 1300px.
   Der Inhalt soll genauso breit laufen wie der Testsystem-Hinweis. */
#main-wrapper .page-wrapper > .container-fluid { max-width: none; padding: 24px 30px 35px; }
#main-wrapper .page-breadcrumb { max-width: none; padding: 20px 30px 0; }
@media (max-width: 767.98px) {
  #main-wrapper .page-wrapper > .container-fluid { padding: 16px 16px 24px; }
  .test-banner { margin: 12px 16px 0; padding: 8px 12px; font-size: 13px; }
  .page-breadcrumb { padding: 12px 16px 0; }
}
.topbar .user-chip, .topbar .user-chip:hover { color: #1c2d41; }
.login-title { color: #1c2d41; }
.sidebar-nav .nav-small-cap .keep-case { text-transform: none; letter-spacing: .02em; }
tr.is-current-month > td { background: rgba(11, 132, 199, .06); font-weight: 500; }

/* Hosting */
.answer-card .answer {
  height: 100%; border-radius: 8px; padding: 14px 16px 12px; background: #fafbfc;
  border-left: 4px solid #b8c3d5;
}
.answer-card .answer strong { display: block; margin-bottom: 4px; }
.answer-card .answer p { margin: 0; color: #5a6474; font-size: 13.5px; }
.answer-card .answer-mark {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.answer.is-yes    { border-left-color: var(--pm-pos); }
.answer.is-yes .answer-mark    { background: rgba(26, 159, 99, .12); color: #137a4b; }
.answer.is-partly { border-left-color: #e8a020; }
.answer.is-partly .answer-mark { background: rgba(232, 160, 32, .15); color: #96690d; }
.answer.is-no     { border-left-color: var(--pm-neg); }
.answer.is-no .answer-mark     { background: rgba(214, 69, 93, .12); color: var(--pm-neg); }

.avatar-sm { width: 24px; height: 24px; font-size: 10px; vertical-align: -6px; }
.pm-table tbody tr { cursor: pointer; }
.pm-table tbody tr.is-selected > td { background: rgba(11, 132, 199, .08); }
.text-warning-dark { color: #96690d !important; }

.sbadge {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; margin: 1px 2px 1px 0;
  white-space: nowrap; background: #f2f4f8; color: #5a6474;
}
.sbadge.is-ok    { background: rgba(26, 159, 99, .12); color: #137a4b; }
.sbadge.is-warn  { background: rgba(232, 160, 32, .15); color: #96690d; }
.sbadge.is-bad   { background: rgba(214, 69, 93, .12); color: var(--pm-neg); font-weight: 600; }
.sbadge.is-muted { background: #f2f4f8; color: #7c8798; }

.units-table td { vertical-align: top; }
.units-table .unit-cell { min-width: 260px; }
.units-table .hint-cell { min-width: 200px; max-width: 320px; white-space: normal; }
.units-table tr.unit-row[hidden], .units-table tr.unit-detail[hidden] { display: none; }
.units-table tr.unit-detail > td { background: #fafbfc; padding: 18px 20px; }
.cost-text {
  white-space: pre-wrap; font-size: 12.5px; background: #fff; border: 1px solid #e6e9ee;
  border-radius: 6px; padding: 10px 12px; max-height: 260px; overflow: auto; color: #1c2d41;
}
.cost-items td { font-size: 12.5px; padding: 3px 6px; }

.timeline { list-style: none; padding: 0 0 0 14px; margin: 0 0 8px; border-left: 2px solid #dfe6ee; }
.timeline li { position: relative; padding: 0 0 12px 10px; font-size: 13px; }
.timeline li::before {
  content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--pm-ci); border: 2px solid #fff;
}
.tl-date { font-weight: 600; margin-right: 6px; }
.tl-user { color: #7c8798; }

.issue-line { padding: 8px 0; border-bottom: 1px solid #f0f2f5; font-size: 14px; }
.issue-line:last-child { border-bottom: 0; }
.issue-line[hidden] { display: none; }
.units-table tr.unit-row { cursor: pointer; }
.units-table tr.unit-row:hover > td { background: rgba(11, 132, 199, .03); }
.units-table .unit-cell { min-width: 260px; max-width: 380px; }
.units-table .ist-cell { min-width: 130px; max-width: 190px; }
.units-table .unit-hints { margin-top: 4px; }
.units-table .col-toggle { width: 28px; }
details.stray summary { cursor: pointer; color: #7c8798; }

/* Feature-Wuensche */
.feature-tabs .nav-link { padding: 5px 12px; font-size: 13.5px; color: #5a6474; border-radius: 20px; }
.feature-tabs .nav-link.active { background: var(--pm-ci); color: #fff; }
.feature-tabs .tab-count { opacity: .7; margin-left: 3px; font-size: 12px; }
.feature-card { margin-bottom: 12px; }
.feature-card .card-body { padding: 18px 20px; }
.feature-title { font-weight: 600; font-size: 15.5px; color: #1c2d41; }
.feature-title:hover { color: var(--pm-ci); }
.feature-desc { color: #5a6474; font-size: 14px; }
.feature-plan-teaser {
  margin-top: 10px; padding: 8px 12px; border-radius: 6px; font-size: 13px;
  background: rgba(11, 132, 199, .06); color: #1c2d41;
}
.feature-plan-teaser.is-rejected { background: rgba(214, 69, 93, .07); }
.like-form { flex: none; }
.like-btn {
  width: 54px; padding: 8px 0 6px; border: 1px solid #dfe3ea; border-radius: 10px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: #7c8798;
  transition: all .15s ease; cursor: pointer;
}
.like-btn svg { width: 18px; height: 18px; }
.like-btn:hover { border-color: var(--pm-ci); color: var(--pm-ci); }
.like-btn.is-liked { background: var(--pm-ci); border-color: var(--pm-ci); color: #fff; }
.like-count { font-weight: 700; font-size: 15px; line-height: 1; }
.fstatus {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .04em; background: #f2f4f8; color: #5a6474;
}
.fstatus.is-angenommen  { background: rgba(11, 132, 199, .12); color: #0a6a9f; }
.fstatus.is-geplant     { background: rgba(143, 111, 209, .14); color: #6f52ad; }
.fstatus.is-in_umsetzung { background: rgba(232, 160, 32, .16); color: #96690d; }
.fstatus.is-umgesetzt   { background: rgba(26, 159, 99, .13); color: #137a4b; }
.fstatus.is-abgelehnt   { background: rgba(214, 69, 93, .11); color: var(--pm-neg); }
.feature-h { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.feature-body p, .feature-body ul { margin-bottom: .6rem; }
.feature-body ul { padding-left: 1.2rem; }
.plan-card { border-top: 3px solid var(--pm-ci); }
.plan-card.is-rejected { border-top-color: var(--pm-neg); }
.plan-meta { display: flex; gap: 32px; flex-wrap: wrap; }
.plan-meta .kpi-label { margin-bottom: 2px; }
.admin-card { border: 1px dashed #cfd6e0; box-shadow: none; }
.voter { padding: 5px 0; font-size: 14px; }
.flow-list { padding-left: 1.1rem; }
.flow-list li { margin-bottom: 5px; }
.feature-h { color: #1c2d41; }
.feature-body ul { list-style: disc; }
.feature-body li { margin-bottom: 2px; }

/* Hinweis: Testsystem */
.test-banner {
  background: #fff4c7; color: #7a5a00; border: 1px solid #f0d77a;
  border-radius: 8px; padding: 9px 16px; margin: 20px 30px 0;
  font-size: 14px; font-weight: 500; display: flex; align-items: center;
}
.test-banner.login-banner { margin: 0 0 16px; max-width: 400px; width: 100%; text-align: center; justify-content: center; }
.test-banner b { font-weight: 600; }

/* Budget-Waechter */
.people-table tbody tr { cursor: pointer; }
.people-table tbody tr.is-selected > td { background: rgba(11, 132, 199, .08); }
.budget-table td { vertical-align: top; }
.budget-table tr.budget-row[hidden] { display: none; }
.budget-table .bcol { width: 190px; min-width: 170px; }
.bbar { flex: 1; height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.bbar-fill { display: block; height: 100%; border-radius: 4px; background: var(--pm-ci); }
.bbar-fill.is-warn { background: #e8a020; }
.bbar-fill.is-bad  { background: var(--pm-neg); }
.bpct { font-size: 12.5px; font-weight: 600; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.bpct.is-warn { color: #96690d; }
.bpct.is-bad  { color: var(--pm-neg); }
.mail-preview { width: 100%; height: 720px; border: 1px solid #e6e9ee; border-radius: 8px; background: #f2f7fb; }
.person-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip {
  border: 1px solid #dfe3ea; background: #fff; border-radius: 20px; padding: 4px 10px;
  font-size: 13px; color: #1c2d41; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.person-chip:hover { border-color: var(--pm-ci); }
.person-chip.is-selected { background: var(--pm-ci); border-color: var(--pm-ci); color: #fff; }
.person-chip .pc-n { color: #7c8798; font-size: 12px; }
.person-chip.is-selected .pc-n { color: rgba(255,255,255,.8); }
.pc-warn, .pc-full { font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 6px; }
.pc-warn { background: rgba(232, 160, 32, .2); color: #96690d; }
.pc-full { background: rgba(214, 69, 93, .15); color: var(--pm-neg); }
.budget-table .bticket { min-width: 320px; }

/* Mein Hosting */
.todo { border-left: 3px solid #b8c3d5; padding: 8px 0 10px 12px; margin-bottom: 10px; }
.todo.is-bad  { border-left-color: var(--pm-neg); }
.todo.is-warn { border-left-color: #e8a020; }
.todo-what { font-size: 14px; margin-top: 3px; }
.todo-do { font-size: 13px; color: #5a6474; margin-top: 2px; }
.nav-badge {
  margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; text-align: center;
  font-size: 11px; font-weight: 700; background: var(--pm-neg); color: #fff; line-height: 16px;
}
.sidebar-link.active .nav-badge { background: #fff; color: var(--pm-neg); }
.mine-banner { border-left: 4px solid var(--pm-ci); }

/* Abteilungen im Team-Board */
.dept-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.dept-chip {
  border: 1px solid #dfe3ea; background: #fff; border-radius: 20px; padding: 4px 11px;
  font-size: 13px; color: #1c2d41; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.dept-chip:hover { border-color: var(--dept); }
.dept-chip.is-selected { background: var(--dept); border-color: var(--dept); color: #fff; }
.dept-chip.is-selected .pc-n { color: rgba(255,255,255,.8); }
.dept-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dept); flex: none; }
.dept-chip.is-selected .dept-dot { background: #fff; }
.kanban-dept {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--dept); background: #fff;
  border-top: 1px solid #eef0f3; position: sticky; left: 0;
}
.kanban-dept[hidden] { display: none; }
.kanban-lane .kanban-person { box-shadow: inset 4px 0 0 var(--dept); }
.kanban-lane .dept-avatar { background: var(--dept); }
.kanban-deptname { font-size: 11.5px; color: var(--dept); font-weight: 600; margin-top: 1px; }
.kanban-deptname .kbadge { font-weight: 500; }

/* Team-Saldo */
.team-saldo tr.dept-row td {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dept); padding-top: 14px; border-bottom: 1px solid #eef0f3; background: #fff;
}
.team-saldo tr.dept-row .dept-dot { display: inline-block; margin-right: 8px; vertical-align: 0; }
.team-saldo td.ts-name { box-shadow: inset 3px 0 0 var(--dept); padding-left: 12px; }
.team-saldo tr.is-suspect td { background: #fdf6f7; }
.team-saldo .ts-cov { min-width: 170px; }
.person-pick { border-left: 4px solid var(--pm-ci); }

/* Menue: Hosting als Oberpunkt mit Unterpunkten */
.sidebar-nav #sidebarnav .nav-parent > .sidebar-link { cursor: default; }
.sidebar-nav #sidebarnav .nav-parent.is-open > .sidebar-link { color: var(--pm-ci); }
.sidebar-nav #sidebarnav .nav-child > .sidebar-link { padding-top: 7px; padding-bottom: 7px; padding-left: 62px; font-size: 14px; }
.sidebar-nav #sidebarnav .nav-child > .sidebar-link::before {
  content: ""; position: absolute; left: 40px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: #c3cad6;
}
.sidebar-nav #sidebarnav .nav-child.selected > .sidebar-link::before { background: #fff; }
.sidebar-nav #sidebarnav .nav-child > .sidebar-link { position: relative; }

/* Caretaker WP */
.ct-env.is-selected { background: var(--pm-ci); border-color: var(--pm-ci); color: #fff; }
.ct-table > thead th { white-space: nowrap; }
.ct-group-row > td {
  padding-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5a6474;
  border-bottom-color: #dfe4ec;
}
.ct-site.is-critical > td { background: rgba(214, 69, 93, .05); }
.ct-site > td:first-child a { font-weight: 500; }
.ct-hint { color: #5a6474; min-width: 180px; max-width: 320px; }
.env-badge {
  display: inline-block; min-width: 38px; margin-right: 6px; padding: 1px 5px; border-radius: 4px; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; background: #f2f4f8; color: #7c8798; vertical-align: 1px;
}
.env-badge.is-live { background: rgba(11, 132, 199, .12); color: var(--pm-ci); }
.ct-detail > td { background: #f8fafc; padding: 6px 12px 10px 48px; }
.ct-items { background: transparent; }
.ct-items th { font-size: 11px; color: #7c8798; font-weight: 600; }
.ct-items tr.is-inactive td { color: #7c8798; }
.ct-toggle { text-decoration: none; font-weight: 500; white-space: nowrap; }
.ct-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Ladeanzeige (assets/loader.js) */
.pm-loadbar {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 2000;
  overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .15s;
}
.pm-loadbar.is-on { opacity: 1; }
.pm-loadbar::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--pm-ci, #0b84c7), transparent);
  animation: pm-loadbar 1.1s ease-in-out infinite;
}
@keyframes pm-loadbar { to { left: 100%; } }
.pm-loadcard {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 2000;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 10px; background: #fff; color: #1c2d41; font-size: 14px;
  box-shadow: 0 10px 30px rgba(28, 45, 65, .18), 0 0 0 1px rgba(28, 45, 65, .06);
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.pm-loadcard.is-on { opacity: 1; transform: translate(-50%, 0); }
.pm-spinner {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(11, 132, 199, .2); border-top-color: var(--pm-ci, #0b84c7);
  animation: pm-spin .7s linear infinite;
}
@keyframes pm-spin { to { transform: rotate(360deg); } }
html.pm-loading, html.pm-loading * { cursor: progress; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy * { visibility: hidden; }
.btn.is-busy::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255,255,255,.35); border-top-color: #fff;
  animation: pm-spin .7s linear infinite;
}
.btn-light.is-busy::after, .btn-outline-primary.is-busy::after, .btn-link.is-busy::after {
  border-color: rgba(11, 132, 199, .2); border-top-color: var(--pm-ci, #0b84c7);
}
@media (prefers-reduced-motion: reduce) {
  .pm-loadbar::before { animation-duration: 3s; }
  .pm-spinner, .btn.is-busy::after { animation-duration: 1.6s; }
}

/* Projektübersicht: Kacheln */
.btn-light.is-selected { background: var(--pm-ci); border-color: var(--pm-ci); color: #fff; }
.btn-light.is-selected .pill { background: rgba(255,255,255,.25); color: #fff; }
.pill { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: #e8ecf3; color: #5a6474; font-size: 11px; font-weight: 700; }
.pj-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
/* Beim Bearbeiten wieder frei: das aufgeklappte Formular soll nicht alle Zeilen hochziehen. */
.pj-grid:has(.pj-form:not([hidden])) { grid-auto-rows: auto; }
/* Gleich hohe Kacheln: Karte fuellt die Zeile, die Zahlen sitzen unten buendig. */
.pj-grid .pj-card { margin: 0; height: 100%; }
.pj-grid .pj-card > .card-body { display: flex; flex-direction: column; height: 100%; }
.pj-stats { margin-top: auto; }
.pj-card:has(.pj-form:not([hidden])) { grid-column: 1 / -1; }
.pj-card.is-quiet { background: #fbfcfd; }
.pj-head { display: flex; align-items: flex-start; gap: 10px; }
.pj-name { font-weight: 600; font-size: 15px; line-height: 1.3; color: #1c2d41; }
.pj-name:hover { color: var(--pm-ci); }
.pj-sub { margin-top: 4px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pj-people { margin-left: auto; display: flex; }
.pj-avatar { width: 30px; height: 30px; font-size: 12px; box-shadow: 0 0 0 2px #fff; }
.pj-avatar + .pj-avatar { margin-left: -8px; }
.pj-avatar.is-own { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(11, 132, 199, .45); }
.avatar-none { background: #e8ecf3 !important; color: #8b96a6; }
.pj-stats { display: flex; gap: 6px; margin: 14px 0 12px; }
.pj-stat {
  flex: 1; min-width: 0; padding: 8px 6px; border-radius: 8px; background: #f5f7fa; text-align: center;
}
.pj-stat.is-strong { background: rgba(11, 132, 199, .1); }
.pj-num { display: block; font-size: 18px; font-weight: 700; color: #1c2d41; line-height: 1.2; }
.pj-stat.is-strong .pj-num { color: var(--pm-ci); }
.pj-cap { display: block; font-size: 11px; color: #7c8798; }
.pj-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pj-foot .btn { margin-left: auto; }
.pj-meta { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f6; font-size: 12px; color: #5a6474; display: grid; gap: 4px; }
.pj-note { white-space: pre-wrap; color: #7c8798; }
.pj-form { border-top: 1px solid #eef1f6; padding-top: 12px; }

/* Startseite: Einstiegskacheln */
.home-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.home-grid .home-tile { margin: 0; height: 100%; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
/* Gleich hohe Kacheln: Zahlen und Hinweis stehen unten buendig. */
.home-tile > .card-body { display: flex; flex-direction: column; height: 100%; }
.home-stats { margin-top: auto; }
.home-tile .home-hint:first-of-type { margin-top: auto; }
.home-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 45, 65, .1); }
.home-tile:hover .home-title { color: var(--pm-ci); }
.home-tile:hover .home-arrow { color: var(--pm-ci); transform: translateX(2px); }
.home-head { display: flex; align-items: center; gap: 10px; }
.home-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 9px; background: rgba(11, 132, 199, .1); color: var(--pm-ci);
}
.home-icon svg { width: 18px; height: 18px; }
.home-title { font-weight: 600; font-size: 15px; color: #1c2d41; }
.home-arrow { margin-left: auto; color: #b8c3d5; transition: transform .12s, color .12s; }
.home-text { margin: 10px 0 0; font-size: 13px; color: #5a6474; }
.home-stats { display: flex; gap: 8px; padding-top: 12px; }
.home-stat { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; background: #f5f7fa; }
.home-num { display: block; font-size: 17px; font-weight: 700; color: #1c2d41; line-height: 1.25; }
.home-num.pos { color: var(--pm-pos); }
.home-num.neg { color: var(--pm-neg); }
.home-num.warn { color: #96690d; }
.home-cap { display: block; font-size: 11px; color: #7c8798; }
.home-hint { margin-top: 10px; font-size: 11px; color: #9aa4b2; }

/* Gleich hohe Kacheln nur dort, wo mehrere nebeneinander stehen -
   in der Handy-Ansicht (eine Spalte) wuerde das nur Luft erzeugen. */
@media (min-width: 768px) {
  .home-grid, .pj-grid { grid-auto-rows: 1fr; }
  .pj-grid:has(.pj-form:not([hidden])) { grid-auto-rows: auto; }
}

/* Handy: gedraengte Kopfzeilen entzerren */
@media (max-width: 767.98px) {
  .ts-sync-form { width: 100%; justify-content: space-between; }
  .ts-sync-form .text-end, .ts-sync-form .small { text-align: left !important; }
  .person-chips { max-height: 210px; overflow-y: auto; }
  .kpi-value.small { font-size: 24px; }
  .kpi-label { font-size: 11px; letter-spacing: .01em; overflow-wrap: break-word; hyphens: auto; }
  /* Kennzahlen untereinander statt zu zweit - sonst brechen die Beschriftungen mitten im Wort. */
  .col-6.col-xl, .col-6.col-lg-3 { flex: 0 0 100%; max-width: 100%; }
  .pj-stats { gap: 4px; }
  .pj-num, .home-num { font-size: 16px; }
  .topbar .navbar-header { width: 100%; }
}

/* Persönlich: eigene Tickets */
.mt-list { display: grid; gap: 14px; }
.mt-list .mt-card { margin: 0; }
.mt-card.is-overdue { box-shadow: inset 3px 0 0 var(--pm-neg); }
.mt-head { display: flex; align-items: baseline; gap: 8px; }
.mt-subject { font-weight: 600; font-size: 15px; color: #1c2d41; }
.mt-subject:hover { color: var(--pm-ci); }
.mt-id { color: #9aa4b2; font-size: 12px; margin-left: auto; white-space: nowrap; }
.mt-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mt-badges .sbadge { text-decoration: none; }
.sbadge.status-neu      { background: #eef1f6; color: #5a6474; }
.sbadge.status-arbeit   { background: rgba(11, 132, 199, .12); color: var(--pm-ci); }
.sbadge.status-feedback { background: rgba(232, 160, 32, .15); color: #96690d; }
.sbadge.status-test     { background: rgba(111, 82, 173, .12); color: #6f52ad; }
.mt-meta {
  display: grid; gap: 4px 20px; margin-top: 12px; font-size: 13px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.mt-meta > div { display: flex; gap: 8px; align-items: center; min-width: 0; }
.mt-key { color: #7c8798; flex: none; min-width: 108px; }
.mt-val { color: #1c2d41; display: flex; align-items: center; gap: 6px; min-width: 0; }
.mt-val.neg { color: var(--pm-neg); font-weight: 600; }
.mt-bar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: #eef1f5; overflow: hidden; }
.mt-bar-fill { display: block; height: 100%; background: var(--pm-ci); }
.mt-note-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 12px; padding: 8px 10px;
  border: 0; border-radius: 8px; background: #f5f7fa; color: #5a6474; font-size: 13px; text-align: left;
}
.mt-note-toggle:hover { background: #eef2f7; }
.mt-note-toggle b { color: #1c2d41; }
.mt-note-toggle > span:first-of-type { white-space: nowrap; flex: none; }
.mt-excerpt { color: #7c8798; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mt-more { margin-left: auto; white-space: nowrap; color: #7c8798; }
.mt-note-toggle.is-open .mt-excerpt { display: none; }
.mt-note-toggle.is-open svg { transform: rotate(180deg); }
.mt-note { margin-top: 8px; padding: 12px 14px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef1f6; font-size: 13px; }
.mt-note-head { color: #7c8798; font-size: 12px; margin-bottom: 8px; }
.mt-note p { margin: 0 0 8px; }
.mt-note p:last-child, .mt-note ul:last-child { margin-bottom: 0; }
.mt-note pre { white-space: pre-wrap; background: #eef1f6; padding: 8px 10px; border-radius: 6px; font-size: 12px; }
.mt-note-none { margin-top: 12px; font-size: 12px; color: #9aa4b2; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chips .person-chip.is-off { opacity: .5; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.col-dot.is-neu { background: #b8c3d5; }
.col-dot.is-arbeit { background: var(--pm-ci); }
.col-dot.is-feedback { background: #e8a020; }
.col-dot.is-test { background: #6f52ad; }
.col-dot.is-overdue { background: var(--pm-neg); }
@media (max-width: 767.98px) {
  .mt-key { min-width: 92px; }
  .mt-excerpt { display: none; }
}

/* Memo: nicht abgerechnete Positionen */
.pos-row .act-skipped { display: none; }
.pos-row.is-skipped .act-billed { display: none; }
.pos-row.is-skipped .act-skipped { display: inline-flex; }
.pos-row.is-skipped textarea, .pos-row.is-skipped input { color: #7c8798; background: #fbfcfd; }
#skip-card .src { color: #9aa4b2; }

/* Wiedervorlage */
.rem-group { margin: 18px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #7c8798; }
.rem-card { margin-bottom: 12px; }
.rem-card.is-due { box-shadow: inset 3px 0 0 var(--pm-neg); }
.rem-card.is-done { opacity: .75; }
.rem-subject { font-weight: 600; color: #1c2d41; }
.rem-subject:hover { color: var(--pm-ci); }
.rem-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: #7c8798; }
.rem-note { margin-top: 8px; font-size: 13px; color: #5a6474; }
.rem-note p { margin: 0 0 4px; }
.rem-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f6; }

/* Controlling */
.co-table > thead th { white-space: nowrap; }
.co-bar { width: 120px; height: 8px; border-radius: 4px; background: #eef1f5; overflow: hidden; }
.co-fill { display: block; height: 100%; border-radius: 4px; background: var(--pm-ci); }
.co-fill.is-warn { background: #e8a020; }
.co-fill.is-bad { background: var(--pm-neg); }
.co-fill.is-ok { background: var(--pm-pos); }
.co-fill.is-muted { background: #c3cad6; }

/* Memo: Ticket oben, Buchungsbeschreibung darunter */
.pos-title { font-weight: 500; }
.pos-note { background: #fbfcfd; color: #5a6474; font-size: 13px; }
.pos-note::placeholder { color: #aab3c0; }

/* Stundensaldo: Einordnung unter dem Gesamtstand */
.hero-note { margin-top: 6px; font-size: 13px; color: #5a6474; }

/* Projektkacheln: schlafende Projekte */
.pj-sleep-head {
  grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; text-transform: uppercase;
  letter-spacing: .05em; color: #7c8798;
}
.pj-card.is-dormant { background: #fbfcfd; opacity: .62; }
.pj-card.is-dormant:hover { opacity: 1; }
.pj-card.is-dormant .pj-name { color: #5a6474; }

/* Projektkacheln: hinterlegte Memo-Tickets */
.pj-memo { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f6; display: grid; gap: 6px; }
.pj-memo-row { display: flex; align-items: center; gap: 8px; font-size: 12px; min-width: 0; }
.pj-memo-subject { color: #7c8798; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Meine Projekte: höchstens zwei Kacheln nebeneinander, damit mehr Inhalt hineinpasst */
@media (min-width: 768px) {
  /* Zwei Spalten; die Höhe gilt je Zeile, nicht über das ganze Raster -
     sonst zieht die längste Kachel alle anderen auf ihr Maß. */
  .pj-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
}

/* Projektkacheln: Luft zwischen Memo-Zeile und Fußzeile mit "Bearbeiten" */
.pj-memo { margin-bottom: 4px; }
.pj-memo + .pj-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f2f4f8; }
.pj-memo-row .btn { margin-left: auto; }

/* Ordnerauswahl für den Memo-Ordner */
.pfad-browser { margin-top: 8px; padding: 10px 12px; border: 1px solid #eef1f6; border-radius: 8px; background: #f8fafc; }
.pfad-weg { margin-bottom: 8px; }
.pfad-liste { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; }
.pfad-ordner::before { content: "📁 "; }
.pj-memo-path { color: #9aa4b2; }
.pfad-feld + .pfad-feld { margin-top: -4px; }

/* Projektkacheln: Abrechnungsstand je Zeitraum (Memo erstellt / abgerechnet) */
.pj-bills { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f6; display: grid; gap: 6px; }
.pj-bill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.pj-bill-label { color: #5a6474; margin-right: auto; }
.pj-bill.is-prev .pj-bill-label { color: #b7791f; }
.pj-bill form { margin: 0; }
.pj-step {
  border: 1px solid #dfe4ec; background: #fff; color: #5a6474; border-radius: 999px;
  padding: 2px 10px; font-size: 12px; line-height: 1.5; cursor: pointer;
}
.pj-step:hover { border-color: #b9c2cf; }
.pj-step.is-done { background: #e8f6ee; border-color: #b7e2c7; color: #1e7b45; }
.pj-bills + .pj-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f2f4f8; }

/* Schätzen */
.vorlagen { display: grid; gap: 8px; }
.vorlage { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid #eef1f6; border-radius: 8px; cursor: pointer; }
.vorlage:hover { background: #f8fafc; }
.vorlage input { margin-top: 3px; }
.est-summary { position: sticky; top: 90px; }
.est-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; }
.est-sum-main { border-top: 1px solid #eef1f6; margin-top: 4px; padding-top: 8px; font-size: 15px; }
.est-table > thead th { white-space: nowrap; font-size: 11px; color: #7c8798; }
.est-table td { vertical-align: top; }
.est-table .est-h { width: 90px; }
.est-row.is-idle .est-task { color: #7c8798; background: #fbfcfd; }
.est-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.est-detail { margin-top: 4px; }
.est-section .est-section-name { max-width: 340px; font-weight: 600; }
.est-table { table-layout: fixed; }
.est-table th:nth-child(2), .est-table th:nth-child(3), .est-table th:nth-child(4) { width: 104px; }
.est-table th:nth-child(5), .est-table th:nth-child(6) { width: 92px; }
.est-table th:nth-child(7) { width: 72px; }
.est-table th:nth-child(8) { width: 48px; }
.est-table .est-h { width: 100%; }
.est-row-hours, .est-row-price { padding-top: 12px; font-variant-numeric: tabular-nums; }

/* Agenten */
.ag-tools { border: 1px solid #eef1f6; border-radius: 8px; padding: 10px 12px; height: 100%; }
.ag-tools-head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #7c8798; margin-bottom: 8px; }
.ag-tool { display: flex; gap: 8px; padding: 6px 0; align-items: flex-start; }
.ag-tool + .ag-tool { border-top: 1px solid #f6f8fb; }
.ag-tool .form-check-input { margin-top: 3px; flex: none; }
.ag-tool.is-locked { opacity: .55; }
.ag-action { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.ag-action + .ag-action { border-top: 1px solid #eef1f6; }
.ag-action-body { font-size: 13px; color: #5a6474; margin-top: 4px; }
.ag-action-body p { margin-bottom: 4px; }
.ag-action-btns { margin-left: auto; display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.ag-merker + .ag-merker { border-top: 1px solid #eef1f6; margin-top: 8px; padding-top: 8px; }
.ag-merker-body { font-size: 12px; color: #5a6474; margin-top: 4px; white-space: pre-wrap; }
.ag-report { font-size: 14px; color: #37414f; }
.ag-report p:last-child, .ag-report ul:last-child { margin-bottom: 0; }
.ag-step { border: 1px solid #eef1f6; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; background: #fbfcfd; }
.ag-step.is-bad { border-color: rgba(214, 69, 93, .35); background: rgba(214, 69, 93, .04); }
.ag-step > summary { cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-step > summary::-webkit-details-marker { display: none; }
.ag-step-body { margin-top: 8px; }
.ag-pre {
  background: #fff; border: 1px solid #eef1f6; border-radius: 6px; padding: 8px 10px; margin: 0;
  font-size: 12px; line-height: 1.5; max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 575.98px) {
  .ag-action { flex-direction: column; }
  .ag-action-btns { margin-left: 0; }
}
