:root {
  --app-bg: #f4f6f8;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafb;
  --app-border: #dfe4e8;
  --app-border-strong: #cdd4da;
  --app-text: #172033;
  --app-muted: #6a7482;
  --app-muted-2: #8b95a1;
  --app-sidebar: #171c24;
  --app-sidebar-2: #1d2430;
  --app-sidebar-text: #c7ced7;
  --app-primary: #2f63d8;
  --app-primary-dark: #244fae;
  --app-primary-soft: #eef4ff;
  --app-success: #2d7d5a;
  --app-success-soft: #edf7f1;
  --app-warning: #9a6a12;
  --app-warning-soft: #fff7e6;
  --app-danger: #b44343;
  --app-danger-soft: #fff0f0;
  --app-radius: 6px;
  --app-radius-sm: 4px;
  --app-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --app-sidebar-width: 248px;
  --app-sidebar-collapsed: 74px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--app-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--app-primary); }
code { color: #6b3ab3; }
.is-hidden { display: none !important; }

/* Bootstrap base overrides */
.btn {
  border-radius: var(--app-radius-sm);
  font-weight: 650;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: none !important;
}
.btn-sm { min-height: 32px; padding-top: .32rem; padding-bottom: .32rem; }
.btn-primary { --bs-btn-bg: var(--app-primary); --bs-btn-border-color: var(--app-primary); --bs-btn-hover-bg: var(--app-primary-dark); --bs-btn-hover-border-color: var(--app-primary-dark); }
.btn-outline-secondary { --bs-btn-color: #46515f; --bs-btn-border-color: #cbd2d9; --bs-btn-hover-bg: #f2f4f6; --bs-btn-hover-color: #202938; --bs-btn-hover-border-color: #b9c1c9; }
.form-control, .form-select, .input-group-text {
  min-height: 40px;
  border-radius: var(--app-radius-sm);
  border-color: var(--app-border-strong);
  color: var(--app-text);
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus {
  border-color: #7f9fe8;
  box-shadow: 0 0 0 3px rgba(47, 99, 216, .10) !important;
}
.form-label { font-size: 12px; font-weight: 700; color: #4e5968; margin-bottom: 6px; }
.dropdown-menu { border-radius: var(--app-radius); border-color: var(--app-border); box-shadow: 0 14px 40px rgba(20, 28, 39, .12); }
.dropdown-item { display: flex; gap: 9px; align-items: center; padding: 9px 14px; font-size: 14px; }
.card { border-radius: var(--app-radius); border-color: var(--app-border); box-shadow: var(--app-shadow); }
.badge { border-radius: 999px; font-weight: 650; }

/* App shell */
.app-body { background: var(--app-bg); }
.app-shell { min-height: 100vh; display: flex; }
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--app-sidebar-width);
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  border-right: 1px solid rgba(255,255,255,.05);
  transition: width .18s ease, transform .18s ease;
}
.app-main { margin-left: var(--app-sidebar-width); width: calc(100% - var(--app-sidebar-width)); min-height: 100vh; transition: margin-left .18s ease, width .18s ease; }
.app-brandbar { min-height: 70px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.app-brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; min-width: 0; flex: 1; }
.app-brand:hover { color: #fff; }
.app-brand-mark { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: 5px; flex: 0 0 auto; font-size: 17px; }
.app-brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.app-brand-copy strong { font-size: 18px; letter-spacing: -.02em; }
.app-brand-copy small { margin-top: 4px; color: #87919e; font-size: 11px; }
.app-icon-btn { border: 0; background: transparent; color: inherit; width: 36px; height: 36px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.app-icon-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.app-nav { padding: 16px 10px; overflow-y: auto; overflow-x: hidden; }
.app-nav-group + .app-nav-group { margin-top: 20px; }
.app-nav-label { padding: 0 10px 7px; color: #747f8d; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; }
.app-nav-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; color: var(--app-sidebar-text); text-decoration: none; border-radius: 4px; margin: 2px 0; font-size: 14px; }
.app-nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.app-nav-item.is-active { background: var(--app-sidebar-2); color: #fff; }
.app-nav-item.is-active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; background: #6f9cff; }
.app-nav-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; color: #95a8c8; }
.app-nav-item.is-active .app-nav-icon, .app-nav-item:hover .app-nav-icon { color: #fff; }
.app-nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nav-dev { margin-left: auto; font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: .08em; color: #ddbe79; border: 1px solid rgba(221,190,121,.28); padding: 4px 5px; border-radius: 3px; }
.app-sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.app-sidebar-user { display: flex; gap: 10px; align-items: center; min-width: 0; }
.app-sidebar-user-copy { min-width: 0; display: flex; flex-direction: column; }
.app-sidebar-user-copy strong { color: #f4f7fa; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-sidebar-user-copy small { color: #7f8a97; font-size: 11px; margin-top: 2px; }
.app-avatar { width: 34px; height: 34px; border-radius: 4px; background: #2a3442; color: #dfe6ef; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.app-avatar-sm { width: 30px; height: 30px; background: #edf1f5; color: #475466; }
.app-avatar-table { width: 32px; height: 32px; background: #eef2f6; color: #425166; }

.app-topbar { position: sticky; top: 0; z-index: 1020; height: 64px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--app-border); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; backdrop-filter: blur(8px); }
.app-topbar-left, .app-topbar-right { display: flex; align-items: center; gap: 12px; }
.app-topbar-title { font-weight: 750; font-size: 15px; color: #222c39; }
.app-topbar-env { margin-top: 2px; color: var(--app-muted-2); font-size: 10px; }
.app-mobile-menu { color: #4d5968; display: none; }
.app-mobile-menu:hover { background: #f1f3f5; color: #111827; }
.app-dev-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .06em; font-weight: 800; color: #815c11; background: #fff8e8; border: 1px solid #ead8ad; border-radius: 3px; padding: 5px 7px; }
.app-user-menu { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; color: #394555; border-radius: 4px; padding: 4px 5px 4px 10px; }
.app-user-menu:hover { background: #f3f5f7; }
.app-user-name { font-size: 13px; font-weight: 700; }
.app-user-menu > .bi-chevron-down { font-size: 10px; color: #8993a0; }
.app-user-dropdown { min-width: 240px; padding: 7px; }
.app-user-dropdown-head { display: flex; flex-direction: column; padding: 9px 9px 11px; }
.app-user-dropdown-head strong { font-size: 13px; }
.app-user-dropdown-head span { font-size: 11px; color: var(--app-muted); margin-top: 3px; }

.app-content { padding: 24px; max-width: 1700px; margin: 0 auto; width: 100%; }
.app-backdrop { display: none; }
.app-shell.is-collapsed .app-sidebar { width: var(--app-sidebar-collapsed); }
.app-shell.is-collapsed .app-main { margin-left: var(--app-sidebar-collapsed); width: calc(100% - var(--app-sidebar-collapsed)); }
.app-shell.is-collapsed .app-brand-copy, .app-shell.is-collapsed .app-nav-label, .app-shell.is-collapsed .app-nav-text, .app-shell.is-collapsed .app-nav-dev, .app-shell.is-collapsed .app-sidebar-user-copy { display: none; }
.app-shell.is-collapsed .app-brandbar { justify-content: center; flex-direction: column; padding: 9px; }
.app-shell.is-collapsed .app-brand { flex: 0 0 auto; }
.app-shell.is-collapsed .app-sidebar-collapse { margin-top: 1px; }
.app-shell.is-collapsed .app-nav { padding-left: 9px; padding-right: 9px; }
.app-shell.is-collapsed .app-nav-item { justify-content: center; padding-left: 8px; padding-right: 8px; }
.app-shell.is-collapsed .app-nav-item.is-active::before { left: -9px; }
.app-shell.is-collapsed .app-sidebar-user { justify-content: center; }

/* Shared page building blocks */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.08; letter-spacing: -.035em; font-weight: 780; color: #111827; }
.page-head p { margin: 7px 0 0; color: var(--app-muted); max-width: 820px; font-size: 14px; }
.page-eyebrow { margin-bottom: 6px; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .10em; color: #788392; }
.page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.panel { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: var(--app-radius); box-shadow: var(--app-shadow); margin-bottom: 16px; }
.panel-head { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 17px; border-bottom: 1px solid #edf0f2; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 760; letter-spacing: -.015em; color: #1d2633; }
.panel-head p { margin: 4px 0 0; color: var(--app-muted); font-size: 12px; }
.panel-meta { color: var(--app-muted); font-size: 11px; white-space: nowrap; }
.panel-link { text-decoration: none; font-size: 12px; font-weight: 750; display: inline-flex; align-items: center; gap: 6px; }
.panel-note { margin: 0 17px 17px; border: 1px solid #e6e9ed; background: #fafbfc; border-radius: 4px; padding: 10px 12px; color: #5b6674; font-size: 12px; display: flex; gap: 8px; align-items: flex-start; }
.subpanel { border: 1px solid var(--app-border); background: #fff; border-radius: 5px; padding: 15px; }
.subpanel-title, .form-section-title { text-transform: uppercase; letter-spacing: .07em; color: #687482; font-weight: 800; font-size: 10px; margin-bottom: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { min-height: 104px; background: #fff; border: 1px solid var(--app-border); border-radius: var(--app-radius); box-shadow: var(--app-shadow); padding: 15px 16px; display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.metric-card-link:hover { border-color: #bac5d0; color: inherit; background: #fcfdfe; }
.metric-icon { width: 38px; height: 38px; border-radius: 5px; background: #eef3fa; color: #4c6b97; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 17px; }
.metric-icon-warn { background: #fff5e6; color: #9b6b16; }
.metric-card > div:last-child { min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; flex: 1; }
.metric-card span { grid-column: 1; color: #626e7d; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.metric-card strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 27px; line-height: 1; color: #182132; font-variant-numeric: tabular-nums; }
.metric-card small { grid-column: 1; margin-top: 6px; color: #929aa5; font-size: 10px; }

.filter-panel { background: #fff; border: 1px solid var(--app-border); border-radius: var(--app-radius); box-shadow: var(--app-shadow); padding: 13px 15px; margin-bottom: 16px; }
.filter-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 10px; align-items: end; }
.filter-grid-time { grid-template-columns: .75fr .75fr 1.5fr 1fr 1fr .75fr; }
.filter-field { min-width: 0; }
.filter-field label { display: block; margin: 0 0 5px; color: #6d7785; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.filter-field-button { align-self: end; }
.input-icon-wrap { position: relative; }
.input-icon-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8e98a5; pointer-events: none; font-size: 13px; }
.input-icon-wrap .form-control { padding-left: 34px; }

.selection-bar { background: #fff; border: 1px solid var(--app-border); border-radius: var(--app-radius); padding: 10px 12px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.selection-bar-copy { display: flex; align-items: center; gap: 10px; }
.selection-bar-copy > div { display: flex; flex-direction: column; }
.selection-bar-copy strong { font-size: 12px; }
.selection-bar-copy small { margin-top: 2px; color: var(--app-muted); font-size: 11px; }
.selection-icon { width: 30px; height: 30px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: #eef3fa; color: #4a6590; }
.selection-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.app-table { --bs-table-bg: transparent; --bs-table-striped-bg: #fafbfc; --bs-table-hover-bg: #f8fafb; font-size: 12.5px; margin-bottom: 0; }
.app-table thead th { padding: 10px 13px; color: #6c7784; background: #fafbfc; border-bottom: 1px solid var(--app-border); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; white-space: nowrap; }
.app-table tbody td { padding: 11px 13px; border-color: #edf0f2; color: #374151; }
.app-table tbody tr:last-child td { border-bottom: 0; }
.app-table tbody tr:hover td { background: #fbfcfd; }
.table-empty, .pm-empty { text-align: center; color: #8a94a0 !important; padding: 34px 16px !important; }
.table-col-id { width: 74px; }
.table-col-check { width: 72px; }
.table-person { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.table-person > span:last-child { display: flex; flex-direction: column; }
.table-person strong { color: #25303e; font-size: 12.5px; }
.table-person small { color: #8b95a1; margin-top: 2px; font-size: 10.5px; }

.status-tag, .pm-pill, .pill, .fp-badge, .mailbox-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 999px; padding: 4px 8px; font-size: 10.5px; font-weight: 750; line-height: 1.25; white-space: nowrap; }
.status-tag-success, .pm-pill--ok, .mailbox-pill--ok { background: var(--app-success-soft); color: #256849; border-color: #cfe8da; }
.status-tag-warning, .pm-pill--warn, .mailbox-pill--warn { background: var(--app-warning-soft); color: #865b0b; border-color: #efdcae; }
.status-tag-danger, .pm-pill--bad, .mailbox-pill--bad { background: var(--app-danger-soft); color: #9e3939; border-color: #efcccc; }
.status-tag-neutral, .pm-pill--blue, .pill--blue, .mailbox-pill--blue { background: #eef4ff; color: #355d9d; border-color: #d6e2f8; }
.status-tag-muted, .pill--muted, .mailbox-pill--muted, .fp-badge { background: #f3f5f7; color: #5f6b79; border-color: #e1e5e9; }

.stack-form { display: flex; flex-direction: column; gap: 13px; }
.stack-form-compact { gap: 10px; }
.form-hint { color: var(--app-muted); font-size: 11px; line-height: 1.45; }
.app-switch { display: flex; align-items: center; gap: 8px; margin: 0; }
.app-switch .form-check-input { margin: 0; }
.app-switch .form-check-label { font-size: 12px; color: #4e5968; }
.section-divider { height: 1px; background: #edf0f2; margin: 20px 0 16px; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.connection-list { padding: 2px 17px; }
.connection-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #eef1f3; }
.connection-row:last-child { border-bottom: 0; }
.connection-main { display: flex; gap: 11px; align-items: center; min-width: 0; }
.connection-main > div { display: flex; flex-direction: column; min-width: 0; }
.connection-main strong { font-size: 13px; color: #283241; }
.connection-main small { margin-top: 2px; color: #8a94a0; font-size: 10.5px; }
.connection-icon { width: 33px; height: 33px; border: 1px solid #e1e6ea; background: #f8fafb; color: #536377; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.status-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 17px; gap: 1px; }
.status-summary-grid > div { padding: 12px; background: #fafbfc; border: 1px solid #edf0f2; margin-right: -1px; display: flex; flex-direction: column; }
.status-summary-grid span { color: #7d8794; font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: .05em; }
.status-summary-grid strong { margin-top: 8px; font-size: 22px; line-height: 1; }
.panel-quick-actions { margin-top: 0; }
.quick-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #edf0f2; }
.quick-action { background: #fff; padding: 15px 17px; color: inherit; text-decoration: none; display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; }
.quick-action:hover { background: #fbfcfd; color: inherit; }
.quick-action-icon { width: 34px; height: 34px; border-radius: 4px; background: #eef3fa; color: #4e678d; display: inline-flex; align-items: center; justify-content: center; }
.quick-action > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.quick-action strong { font-size: 12.5px; }
.quick-action small { color: #89939f; font-size: 10.5px; margin-top: 3px; }
.quick-action > .bi { color: #a1a9b3; font-size: 11px; }

/* Projects */
.pm-project-name { font-weight: 750; color: #293444; }
.pm-project-meta { color: #929aa5; font-size: 10px; margin-top: 2px; }

/* Time */
.dev-panel .fp-console { border-radius: 4px; }
.time-row-selected td { background: #f0f5ff !important; }
.time-row-selected:hover td { background: #ebf2ff !important; }
.time-group-has-selection td { box-shadow: inset 0 2px 0 rgba(47, 99, 216, .16); }
.time-select-cell { width: 50px; text-align: center; }
.time-select-cell .form-check-input { width: 17px; height: 17px; cursor: pointer; }
.time-selection-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d6e2f8; background: #f5f8ff; border-radius: 999px; padding: 4px 8px; color: #355d9d; font-size: 10.5px; font-weight: 750; }
.time-selected-hours { color: #2f63d8; font-weight: 800; }
.time-row-meta { color: #89939f; font-size: 10px; margin-top: 3px; }
.time-group-selected-hint { color: #2f63d8; font-size: 10px; font-weight: 750; }
.fp-console { margin: 0; background: #111821; color: #d7dee7; border: 1px solid #1d2733; border-radius: 4px; padding: 13px 14px; font-size: 11px; line-height: 1.55; max-height: 420px; overflow: auto; }

/* Mailbox */
.mail-toolbar-grid { display: grid; grid-template-columns: 130px minmax(260px, 1fr) 260px; gap: 10px; align-items: end; }
.mailbox-layout { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 16px; min-height: 690px; }
.mailbox-sidebar-panel, .mailbox-detail-panel { margin-bottom: 0; min-width: 0; }
.mailbox-folders { padding: 10px 12px 12px; display: grid; grid-template-columns: 1fr; gap: 3px; border-bottom: 1px solid #edf0f2; }
.mailbox-folder-btn { border: 1px solid transparent; background: transparent; color: #586474; min-height: 34px; padding: 6px 8px; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font-size: 11px; }
.mailbox-folder-btn span { display: flex; align-items: center; gap: 8px; }
.mailbox-folder-btn strong { font-size: 10px; min-width: 22px; text-align: right; color: #8b95a1; }
.mailbox-folder-btn:hover { background: #f5f7f9; }
.mailbox-folder-btn.is-active { background: #eef3fa; border-color: #dbe4ef; color: #304b70; }
.mailbox-folder-btn.is-active strong { color: #304b70; }
.mailbox-list-head { padding: 11px 14px 8px; color: #8a94a0; font-size: 10px; border-bottom: 1px solid #edf0f2; }
.mailbox-list { max-height: 540px; overflow: auto; padding: 9px; }
.mailbox-list-item { width: 100%; text-align: left; border: 1px solid #e4e8ec; background: #fff; border-radius: 4px; padding: 11px 12px; margin-bottom: 7px; transition: border-color .12s ease, background .12s ease; }
.mailbox-list-item:hover { border-color: #c6ced7; background: #fcfdfe; }
.mailbox-list-item.is-active { border-color: #8aa7df; background: #f5f8ff; box-shadow: inset 3px 0 0 #4c72be; }
.mailbox-list-item.is-spam { box-shadow: inset 3px 0 0 #bd4a4a; }
.mailbox-list-item.is-review { box-shadow: inset 3px 0 0 #bc841a; }
.mailbox-list-item.is-ready { box-shadow: inset 3px 0 0 #397c5d; }
.mailbox-list-item.is-ticket { box-shadow: inset 3px 0 0 #3f7f7b; }
.mailbox-list-item.is-error { box-shadow: inset 3px 0 0 #8054a7; }
.mailbox-subject { font-size: 12.5px; font-weight: 750; color: #273241; line-height: 1.35; }
.mailbox-meta { color: #8a94a0; font-size: 10.5px; margin-top: 3px; }
.mailbox-preview { color: #657180; font-size: 11px; line-height: 1.45; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mailbox-detail-head { align-items: center; }
.mailbox-empty-state { min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #87919d; padding: 30px; }
.mailbox-empty-state > span { width: 52px; height: 52px; border-radius: 6px; background: #f3f5f7; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; color: #7a8795; }
.mailbox-empty-state strong { color: #455161; margin-top: 13px; font-size: 13px; }
.mailbox-empty-state p { margin: 5px 0 0; max-width: 420px; font-size: 11px; }
.mailbox-preview-wrap { padding: 16px; }
.mailbox-message-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 15px; border-bottom: 1px solid #edf0f2; margin-bottom: 14px; }
.mailbox-detail-title { margin: 0; color: #1f2937; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; font-weight: 760; }
.mailbox-from { margin-top: 7px; color: #4f5b6b; font-size: 12px; }
.mailbox-date { margin-top: 3px; color: #929aa5; font-size: 10.5px; }
.mailbox-badges { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 5px; max-width: 50%; }
.mailbox-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mailbox-info-grid-secondary { grid-template-columns: .8fr 1.2fr; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 145px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0f2f4; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: #7b8693; font-size: 10.5px; font-weight: 650; }
.detail-list dd { margin: 0; color: #354050; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.mailbox-content-panel { margin-bottom: 12px; }
.mailbox-body { white-space: pre-wrap; line-height: 1.62; font-size: 12px; color: #35404f; background: #fafbfc; border: 1px solid #edf0f2; padding: 13px; border-radius: 4px; max-height: 420px; overflow: auto; }
.mailbox-bottom-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.mailbox-attachments, .mailbox-history { font-size: 11px; line-height: 1.5; }
.mailbox-history-item + .mailbox-history-item { border-top: 1px solid #edf0f2; margin-top: 8px; padding-top: 8px; }
.mailbox-history-item strong { color: #465262; }
.mail-list-subject { font-weight: 750; color: #293444; }
.mail-list-from, .mail-list-meta-row, .mail-list-customer { color: #7f8a97; font-size: 10.5px; }

/* Admin */
.content-grid { display: grid; gap: 16px; align-items: start; }
.content-grid-sidebar { grid-template-columns: minmax(0, 1fr) 360px; }
.admin-user-form-panel { padding-bottom: 17px; }
.admin-user-form-panel > form, .admin-user-form-panel > .section-divider, .admin-user-form-panel > .form-section-title { margin-left: 17px; margin-right: 17px; }
.dev-warning { margin-bottom: 16px; border: 1px solid #ead9af; background: #fff9eb; color: #765514; border-radius: 5px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.dev-warning > i { font-size: 17px; }
.dev-warning > div { display: flex; flex-direction: column; }
.dev-warning strong { font-size: 11.5px; }
.dev-warning span { margin-top: 2px; font-size: 10.5px; color: #8f6b27; }
.dev-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.dev-action-list { padding: 14px; display: grid; gap: 7px; }
.dev-action-list .btn { justify-content: flex-start; }
.dev-console { border-radius: 0; border: 0; min-height: 250px; max-height: 460px; }
.panel-head-tools { align-items: center; }
.panel-tools { display: grid; grid-template-columns: 180px 260px; gap: 8px; }
.panel-tools-wide { grid-template-columns: 180px 180px 260px; }

/* Flash */
.app-flash { border: 1px solid; border-radius: 5px; padding: 10px 12px; margin-bottom: 14px; display: flex; gap: 9px; align-items: flex-start; font-size: 12px; }
.app-flash-success { background: #f1f8f4; border-color: #d0e9da; color: #31684d; }
.app-flash-danger { background: #fff3f3; border-color: #efcccc; color: #8e3838; }
.app-flash-info { background: #f3f7fd; border-color: #d7e2f3; color: #3f5d85; }

/* Authentication */
.auth-body { min-height: 100vh; background: #f5f6f8; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 38%) 1fr; }
.auth-brand-panel { background: #171c24; color: #fff; display: flex; align-items: center; padding: 54px; }
.auth-brand-inner { max-width: 390px; }
.auth-brand-logo { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.auth-brand-name { font-size: 34px; font-weight: 780; letter-spacing: -.04em; margin-top: 22px; }
.auth-brand-sub { margin-top: 9px; color: #9ca7b5; font-size: 14px; line-height: 1.6; }
.auth-brand-list { margin-top: 34px; display: grid; gap: 12px; color: #b7c0ca; font-size: 12px; }
.auth-brand-list > div { display: flex; gap: 9px; align-items: center; }
.auth-brand-list i { color: #7fa0db; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card-wrap { width: min(100%, 500px); }
.auth-card { background: #fff; border: 1px solid var(--app-border); border-radius: 7px; padding: 30px; box-shadow: 0 12px 35px rgba(25,33,45,.06); }
.auth-card-wide { width: min(100%, 560px); }
.auth-card-kicker { text-transform: uppercase; letter-spacing: .1em; color: #84909d; font-size: 10px; font-weight: 800; }
.auth-card h1 { margin: 7px 0 0; font-size: 29px; letter-spacing: -.035em; font-weight: 770; color: #172033; }
.auth-card > p { margin: 8px 0 0; color: #77818e; font-size: 12px; }
.auth-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.auth-note { display: flex; gap: 8px; align-items: center; color: #6d7785; font-size: 10.5px; background: #f8fafb; border: 1px solid #e8ecef; padding: 9px 10px; border-radius: 4px; }

@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .filter-grid, .filter-grid-time { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-field-wide { grid-column: span 2; }
  .mailbox-layout { grid-template-columns: 320px minmax(0, 1fr); }
  .content-grid-sidebar { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); width: min(300px, 86vw); box-shadow: 12px 0 34px rgba(14, 20, 28, .18); }
  .app-main, .app-shell.is-collapsed .app-main { margin-left: 0; width: 100%; }
  .app-shell.is-collapsed .app-sidebar { width: min(300px, 86vw); }
  .app-shell.is-collapsed .app-brand-copy, .app-shell.is-collapsed .app-nav-label, .app-shell.is-collapsed .app-nav-text, .app-shell.is-collapsed .app-nav-dev, .app-shell.is-collapsed .app-sidebar-user-copy { display: initial; }
  .app-shell.is-collapsed .app-brandbar { justify-content: initial; flex-direction: row; padding: 10px 12px; }
  .app-shell.is-collapsed .app-brand { flex: 1; }
  .app-shell.is-collapsed .app-nav-item { justify-content: flex-start; padding-left: 10px; padding-right: 10px; }
  .app-shell.is-mobile-open .app-sidebar { transform: translateX(0); }
  .app-shell.is-mobile-open .app-backdrop { display: block; position: fixed; inset: 0; background: rgba(16, 22, 30, .45); z-index: 1035; }
  .app-sidebar-collapse { display: none; }
  .app-mobile-menu { display: inline-flex; }
  .app-content { padding: 18px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head-actions { width: 100%; }
  .mailbox-layout, .content-grid-sidebar, .dev-grid { grid-template-columns: 1fr; }
  .mailbox-list { max-height: 340px; }
  .mail-toolbar-grid { grid-template-columns: 120px 1fr; }
  .mail-toolbar-action { grid-column: 1 / -1; }
  .mailbox-info-grid, .mailbox-info-grid-secondary, .mailbox-bottom-grid { grid-template-columns: 1fr; }
  .quick-action-grid { grid-template-columns: 1fr; }
  .panel-tools, .panel-tools-wide { grid-template-columns: 1fr; width: min(100%, 320px); }
  .panel-head-tools { align-items: flex-start; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
}

@media (max-width: 767.98px) {
  .app-topbar { padding: 0 13px; }
  .app-content { padding: 14px; }
  .app-user-name, .app-dev-badge { display: none; }
  .page-head h1 { font-size: 27px; }
  .page-head-actions .btn { flex: 1 1 auto; }
  .metric-grid, .metric-grid-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 88px; padding: 12px; }
  .metric-card strong { font-size: 23px; }
  .metric-icon { width: 34px; height: 34px; }
  .filter-grid, .filter-grid-time { grid-template-columns: 1fr 1fr; }
  .filter-field-wide { grid-column: 1 / -1; }
  .selection-bar { align-items: flex-start; flex-direction: column; }
  .selection-actions { width: 100%; }
  .selection-actions .btn { flex: 1 1 auto; }
  .status-summary-grid { grid-template-columns: 1fr 1fr; }
  .connection-row { align-items: flex-start; flex-direction: column; }
  .mail-toolbar-grid { grid-template-columns: 1fr; }
  .mail-toolbar-action { grid-column: auto; }
  .mailbox-message-head { flex-direction: column; }
  .mailbox-badges { max-width: 100%; justify-content: flex-start; }
  .detail-list > div { grid-template-columns: 120px 1fr; }
  .auth-main { padding: 18px; }
  .auth-card { padding: 22px; }
}

@media (max-width: 479.98px) {
  .metric-grid, .metric-grid-3 { grid-template-columns: 1fr; }
  .filter-grid, .filter-grid-time { grid-template-columns: 1fr; }
  .filter-field-wide { grid-column: auto; }
  .status-summary-grid { grid-template-columns: 1fr 1fr; }
  .page-head-actions { flex-direction: column; align-items: stretch; }
  .detail-list > div { grid-template-columns: 1fr; gap: 3px; }
}

/* Dashboard · Zeiten-Cockpit */
.dashboard-page-head { margin-bottom: 14px; }
.dashboard-period-panel { background: #fff; border: 1px solid var(--app-border); border-radius: var(--app-radius); box-shadow: var(--app-shadow); margin-bottom: 12px; }
.dashboard-period-form { min-height: 82px; display: grid; grid-template-columns: minmax(230px, .8fr) minmax(430px, 1.25fr) auto; gap: 18px; align-items: end; padding: 13px 16px; }
.dashboard-period-title { align-self: center; display: flex; align-items: center; gap: 11px; min-width: 0; }
.dashboard-period-icon { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #dce3eb; border-radius: 4px; background: #f5f8fc; color: #4f6d9a; display: inline-flex; align-items: center; justify-content: center; }
.dashboard-period-title > div { min-width: 0; display: flex; flex-direction: column; }
.dashboard-period-title strong { color: #283444; font-size: 12.5px; }
.dashboard-period-title small { margin-top: 3px; color: #87919d; font-size: 10.5px; }
.dashboard-period-fields { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 8px; align-items: end; }
.dashboard-period-fields .filter-field-button .btn { min-width: 112px; }
.dashboard-period-presets { display: flex; align-items: center; justify-content: flex-end; gap: 4px; align-self: center; flex-wrap: wrap; }
.dashboard-period-preset { min-height: 30px; padding: 6px 8px; border: 1px solid transparent; border-radius: 3px; color: #6f7a87; text-decoration: none; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.dashboard-period-preset:hover { color: #33445d; background: #f3f5f7; }
.dashboard-period-preset.is-active { color: #315ca5; background: #eef4ff; border-color: #d9e5fb; }
.dashboard-time-metrics { margin-bottom: 12px; }
.dashboard-time-metrics .metric-card { min-height: 96px; }
.dashboard-project-panel { margin-bottom: 0; }
.dashboard-project-head { align-items: flex-start; }
.dashboard-data-status { flex: 0 0 auto; min-width: 150px; text-align: right; display: flex; flex-direction: column; }
.dashboard-data-status span { color: #919aa5; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.dashboard-data-status strong { margin-top: 4px; color: #4c5867; font-size: 11px; }
.project-gauge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #e9edf1; border-top: 1px solid #e9edf1; }
.project-gauge-card { min-width: 0; background: #fff; padding: 13px 14px 11px; display: flex; flex-direction: column; }
.project-gauge-card-head { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.project-rank { color: #9aa3ae; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.project-gauge-card .status-tag { padding: 4px 6px; font-size: 9px; }
.project-gauge-card .status-tag .bi-circle-fill { font-size: 5px; }
.project-gauge-wrap { position: relative; width: 132px; height: 80px; margin: 5px auto 0; }
.project-gauge { width: 132px; height: 75px; overflow: visible; }
.project-gauge-track, .project-gauge-value { fill: none; stroke-width: 10; }
.project-gauge-track { stroke: #edf0f3; }
.project-gauge-value { stroke: var(--app-primary); stroke-linecap: butt; }
.project-gauge-reading { position: absolute; inset: 34px 0 auto; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.project-gauge-reading strong { color: #1d2a3b; font-size: 25px; letter-spacing: -.04em; font-weight: 790; }
.project-gauge-reading span { margin-top: 4px; color: #8a94a0; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.project-gauge-copy { text-align: center; min-width: 0; margin-top: 4px; }
.project-gauge-copy h3 { margin: 0; color: #263243; font-size: 13px; line-height: 1.32; font-weight: 760; min-height: 35px; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.project-gauge-meta { margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: #7d8794; font-size: 9.5px; }
.project-gauge-meta span { display: inline-flex; align-items: center; gap: 4px; }
.project-gauge-meta i { color: #98a7ba; }
.project-gauge-footer { margin-top: 11px; padding-top: 8px; border-top: 1px solid #edf0f2; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #939ca7; font-size: 9px; }
.dashboard-empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.dashboard-empty-state > span { width: 46px; height: 46px; border: 1px solid #e0e5ea; border-radius: 5px; background: #f7f9fa; color: #84909c; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.dashboard-empty-state strong { margin-top: 12px; color: #3f4b59; font-size: 13px; }
.dashboard-empty-state p { margin: 5px 0 0; max-width: 520px; color: #8b95a0; font-size: 11px; }
.dashboard-data-warning { display: flex; align-items: flex-start; gap: 8px; padding: 9px 14px; background: #fff9ed; border-top: 1px solid #eee0bd; border-bottom: 1px solid #eee0bd; color: #80611f; font-size: 10.5px; }
.dashboard-data-warning i { margin-top: 1px; }
.dashboard-project-more { min-height: 45px; padding: 10px 14px; border-top: 1px solid #e9edf1; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #7f8995; font-size: 10.5px; }
.dashboard-project-more a { color: #4068a5; text-decoration: none; font-weight: 750; white-space: nowrap; }
.dashboard-project-more a:hover { text-decoration: underline; }

@media (max-width: 1280px) {
  .dashboard-period-form { grid-template-columns: minmax(220px, .75fr) minmax(400px, 1.25fr); }
  .dashboard-period-presets { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid #edf0f2; padding-top: 9px; }
  .project-gauge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .dashboard-period-form { grid-template-columns: 1fr; gap: 11px; align-items: stretch; }
  .dashboard-period-title { align-self: auto; }
  .dashboard-period-presets { grid-column: auto; }
  .project-gauge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .dashboard-period-fields { grid-template-columns: 1fr 1fr; }
  .dashboard-period-fields .filter-field-button { grid-column: 1 / -1; }
  .dashboard-period-fields .filter-field-button .btn { width: 100%; }
  .dashboard-data-status { text-align: left; min-width: 0; }
  .dashboard-project-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .project-gauge-grid { grid-template-columns: 1fr; }
  .project-gauge-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "head head" "gauge copy" "footer footer"; align-items: center; column-gap: 10px; }
  .project-gauge-card-head { grid-area: head; }
  .project-gauge-wrap { grid-area: gauge; width: 92px; height: 64px; margin: 7px 0 0; }
  .project-gauge { width: 92px; height: 58px; }
  .project-gauge-reading { inset: 27px 0 auto; }
  .project-gauge-reading strong { font-size: 19px; }
  .project-gauge-reading span { font-size: 8px; }
  .project-gauge-copy { grid-area: copy; text-align: left; margin-top: 6px; }
  .project-gauge-copy h3 { justify-content: flex-start; min-height: 0; }
  .project-gauge-meta { justify-content: flex-start; }
  .project-gauge-footer { grid-area: footer; }
}

@media (max-width: 479.98px) {
  .dashboard-period-fields { grid-template-columns: 1fr; }
  .dashboard-period-fields .filter-field-button { grid-column: auto; }
  .dashboard-period-presets { align-items: stretch; }
  .dashboard-period-preset { flex: 1 1 auto; text-align: center; }
  .dashboard-project-more { align-items: flex-start; flex-direction: column; }
}

/* Redmine synchronization */
.sync-page-head { align-items: flex-end; }
.sync-summary-grid { margin-bottom: 16px; }
.sync-last-time { font-size: 15px !important; line-height: 1.25 !important; text-align: right; max-width: 145px; }
.sync-panel { overflow: hidden; }
.sync-state { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 5px 8px; border: 1px solid var(--app-border); border-radius: 4px; background: #f8f9fa; color: #697381; font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.sync-state i { font-size: 8px; }
.sync-state-running { color: #7d5d16; background: #fff9eb; border-color: #ead9af; }
.sync-state-running i { animation: sync-spin 1s linear infinite; font-size: 12px; }
.sync-state-success { color: #23663b; background: #f1f8f3; border-color: #cfe4d5; }
.sync-state-error { color: #9a3030; background: #fff4f4; border-color: #ebcccc; }
@keyframes sync-spin { to { transform: rotate(360deg); } }
.sync-dataset-list { display: grid; }
.sync-dataset-row { min-height: 68px; display: grid; grid-template-columns: 38px minmax(180px, 1fr) 120px 120px; gap: 12px; align-items: center; padding: 11px 17px; border-bottom: 1px solid #edf0f2; }
.sync-dataset-row:last-child { border-bottom: 0; }
.sync-dataset-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dfe4e9; border-radius: 4px; background: #f8fafb; color: var(--app-primary); }
.sync-dataset-copy { min-width: 0; display: flex; flex-direction: column; }
.sync-dataset-copy strong { font-size: 12px; color: #1d2633; }
.sync-dataset-copy span { margin-top: 3px; color: var(--app-muted); font-size: 10.5px; }
.sync-dataset-count { text-align: right; display: flex; flex-direction: column; }
.sync-dataset-count strong { font-size: 16px; font-variant-numeric: tabular-nums; color: #1d2633; }
.sync-dataset-count span { margin-top: 2px; color: var(--app-muted); font-size: 9.5px; }
.sync-dataset-status { text-align: right; }
.sync-result { margin: 0 17px 17px; padding: 11px 12px; border-radius: 4px; display: flex; gap: 9px; align-items: flex-start; }
.sync-result > i { margin-top: 1px; }
.sync-result > div { display: flex; flex-direction: column; }
.sync-result strong { font-size: 11.5px; }
.sync-result span { margin-top: 2px; font-size: 10.5px; }
.sync-result-success { border: 1px solid #cfe4d5; background: #f1f8f3; color: #23663b; }
.sync-result-error { border: 1px solid #ebcccc; background: #fff4f4; color: #9a3030; }
.sync-note { margin: 0; }
@media (max-width: 720px) {
  .sync-page-head { align-items: stretch; }
  .sync-page-head .page-head-actions, .sync-page-head .page-head-actions .btn { width: 100%; }
  .sync-dataset-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .sync-dataset-count { grid-column: 2; text-align: left; flex-direction: row; align-items: baseline; gap: 5px; }
  .sync-dataset-status { grid-column: 3; grid-row: 1 / span 2; }
  .sync-last-time { text-align: left; max-width: none; }
}

/* Dashboard visual polish · 2026-09-24
   Ruhiger, kantiger und bewusst weg vom Bootstrap-Blau. */
:root {
  --dashboard-accent: #9a554e;
  --dashboard-accent-dark: #80443f;
  --dashboard-accent-soft: #f6efed;
  --dashboard-action: #303b48;
  --dashboard-action-hover: #222c36;
}

/* App-Shell: nur ein kleiner Markenakzent statt Bootstrap-Blau */
.app-nav-item.is-active::before { background: var(--dashboard-accent); }

/* Dashboard-Aktionen */
.dashboard-page-head .btn-primary,
.dashboard-period-panel .btn-primary {
  --bs-btn-bg: var(--dashboard-action);
  --bs-btn-border-color: var(--dashboard-action);
  --bs-btn-hover-bg: var(--dashboard-action-hover);
  --bs-btn-hover-border-color: var(--dashboard-action-hover);
  --bs-btn-active-bg: var(--dashboard-action-hover);
  --bs-btn-active-border-color: var(--dashboard-action-hover);
  --bs-btn-focus-shadow-rgb: 48, 59, 72;
}

.dashboard-page-head .btn-primary {
  min-height: 40px;
  padding-inline: 14px;
}

/* Zeitraum: sauber auf einer Grundlinie und kompakter */
.dashboard-period-panel {
  border-radius: 4px;
  box-shadow: none;
}

.dashboard-period-form {
  min-height: 80px;
  grid-template-columns: minmax(250px, .8fr) minmax(520px, 1.45fr) max-content;
  gap: 20px;
  align-items: center;
  padding: 12px 16px;
}

.dashboard-period-title { align-self: center; }
.dashboard-period-icon {
  border-color: #ded8d5;
  background: #f7f4f2;
  color: #765650;
}

.dashboard-period-fields {
  align-items: end;
  gap: 9px;
}

.dashboard-period-fields .form-control {
  height: 40px;
  border-color: #d4d9de;
  background: #fff;
}

.dashboard-period-fields .form-control:focus {
  border-color: #9aa4ad;
  box-shadow: 0 0 0 3px rgba(48, 59, 72, .08) !important;
}

.dashboard-period-fields .filter-field-button .btn {
  min-width: 116px;
  height: 40px;
}

.dashboard-period-presets {
  align-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  min-height: 40px;
  padding: 2px;
  margin-bottom: 0;
  border: 1px solid #dfe3e6;
  border-radius: 4px;
  background: #f7f8f9;
}

.dashboard-period-preset {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 0;
  border-radius: 2px;
  color: #66717d;
  line-height: 1;
}

.dashboard-period-preset + .dashboard-period-preset {
  border-left: 1px solid #e2e5e8;
}

.dashboard-period-preset:hover {
  color: #2e3946;
  background: #eceff1;
}

.dashboard-period-preset.is-active {
  color: #70443f;
  background: var(--dashboard-accent-soft);
  box-shadow: inset 0 0 0 1px #dfcac6;
}

/* KPI-Zeile: gleicher Rhythmus, neutralere Icons */
.dashboard-time-metrics {
  gap: 10px;
}

.dashboard-time-metrics .metric-card {
  min-height: 92px;
  padding: 14px 15px;
  border-radius: 4px;
  box-shadow: none;
}

.dashboard-time-metrics .metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #f2f3f4;
  color: #5e6975;
}

.dashboard-time-metrics .metric-card > div:last-child {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: 4px;
}

.dashboard-time-metrics .metric-card span {
  align-self: end;
  line-height: 1.15;
}

.dashboard-time-metrics .metric-card small {
  margin-top: 0;
  align-self: start;
  line-height: 1.2;
}

.dashboard-time-metrics .metric-card strong {
  align-self: center;
  line-height: 1;
}

/* Projektbereich: weniger Card-Look, sauber ausgerichtete Zeilen */
.dashboard-project-panel {
  border-radius: 4px;
  box-shadow: none;
  overflow: hidden;
}

.project-gauge-grid {
  gap: 0;
  background: #e5e8eb;
  border-top-color: #e5e8eb;
}

.project-gauge-card {
  min-height: 206px;
  padding: 12px 13px 10px;
  border-right: 1px solid #e5e8eb;
  border-bottom: 1px solid #e5e8eb;
}

.project-gauge-card:nth-child(4n) { border-right: 0; }

.project-gauge-card-head {
  min-height: 23px;
}

.project-gauge-card .status-tag {
  min-height: 22px;
  padding: 3px 6px;
  border-radius: 3px;
  background: #f2f6f3;
  border-color: #d8e5dc;
  color: #3e6b53;
}

.project-gauge-wrap {
  height: 78px;
  margin-top: 3px;
}

.project-gauge-track,
.project-gauge-value {
  stroke-width: 8;
}

.project-gauge-track { stroke: #e9ecef; }
.project-gauge-value { stroke: var(--dashboard-accent); } /* legacy fallback */

.project-gauge-reading {
  inset: 33px 0 auto;
}

.project-gauge-reading strong {
  color: #202a35;
  font-size: 24px;
}

.project-gauge-copy {
  margin-top: 2px;
}

.project-gauge-copy h3 {
  min-height: 36px;
  height: 36px;
  max-height: 36px;
  padding: 0 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
}

.project-gauge-meta {
  min-height: 18px;
  margin-top: 5px;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.project-gauge-meta i {
  color: #8d969f;
}

.project-gauge-footer {
  min-height: 27px;
  margin-top: auto;
  padding-top: 7px;
  border-top-color: #e8ebed;
  white-space: nowrap;
}

.project-gauge-footer span {
  min-width: 0;
}

.dashboard-project-more a {
  color: #70443f;
}

@media (max-width: 1500px) {
  .dashboard-period-form {
    grid-template-columns: minmax(230px, .72fr) minmax(470px, 1.28fr);
  }

  .dashboard-period-presets {
    grid-column: 1 / -1;
    justify-self: start;
    align-self: start;
  }
}

@media (max-width: 1280px) {
  .project-gauge-card:nth-child(4n) { border-right: 1px solid #e5e8eb; }
  .project-gauge-card:nth-child(3n) { border-right: 0; }
}

@media (max-width: 991.98px) {
  .dashboard-period-form { grid-template-columns: 1fr; }
  .dashboard-period-presets { grid-column: auto; }
  .project-gauge-card:nth-child(3n) { border-right: 1px solid #e5e8eb; }
  .project-gauge-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 560px) {
  .dashboard-period-presets {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .dashboard-period-preset { flex: 0 0 auto; }
  .project-gauge-card { min-height: 0; }
  .project-gauge-card:nth-child(n) { border-right: 0; }
  .project-gauge-copy h3 {
    height: auto;
    min-height: 0;
    max-height: none;
    display: block;
  }
  .project-gauge-meta { flex-wrap: wrap; white-space: normal; }
}

/* Auth polish · 2026-09-24 · Step 05 */
.auth-body {
  --auth-accent: #9a554e;
  --auth-accent-dark: #7e433d;
  --auth-accent-soft: #f4ecea;
  --auth-ink: #202a35;
  --auth-muted: #727e8a;
  --auth-line: #d9dee2;
  background: #eef1f3;
}

.auth-shell {
  grid-template-columns: minmax(460px, 42%) minmax(0, 1fr);
  background: #eef1f3;
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 5vw, 86px);
  background: #171c24;
  border-right: 1px solid #272e38;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,.045);
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -220px;
  bottom: -190px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255,255,255,.012), 0 0 0 144px rgba(255,255,255,.009);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  max-width: none;
  min-height: min(680px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
}

.auth-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.035);
  color: #eef2f5;
  font-size: 19px;
}

.auth-brand-name {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 790;
  letter-spacing: -.035em;
}

.auth-brand-caption {
  margin-top: 5px;
  color: #778392;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-brand-copyblock {
  margin-top: clamp(72px, 10vh, 118px);
}

.auth-brand-eyebrow {
  margin-bottom: 14px;
  color: #9f7772;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.auth-brand-copyblock h2 {
  margin: 0;
  color: #f7f8f9;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.06;
  font-weight: 760;
  letter-spacing: -.045em;
}

.auth-brand-copyblock p {
  max-width: 470px;
  margin: 22px 0 0;
  color: #9ca7b3;
  font-size: 14px;
  line-height: 1.75;
}

.auth-brand-list {
  margin-top: 42px;
  gap: 0;
  color: inherit;
}

.auth-brand-list > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.075);
}

.auth-brand-list > div:last-child {
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.auth-brand-list-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 3px;
  background: rgba(255,255,255,.025);
  color: #c2a09b;
}

.auth-brand-list i { color: inherit; }

.auth-brand-list strong {
  display: block;
  margin-top: 1px;
  color: #e5e9ed;
  font-size: 12.5px;
  font-weight: 720;
}

.auth-brand-list small {
  display: block;
  margin-top: 4px;
  color: #7f8a97;
  font-size: 11px;
  line-height: 1.55;
}

.auth-brand-foot {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #737f8c;
  font-size: 10.5px;
}

.auth-brand-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d9a80;
  box-shadow: 0 0 0 4px rgba(109,154,128,.08);
}

.auth-main {
  min-width: 0;
  padding: clamp(32px, 5vw, 76px);
  background: #f2f4f5;
}

.auth-main-inner {
  width: min(100%, 520px);
  min-height: min(680px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card-wrap {
  width: 100%;
}

.auth-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-card-wide {
  width: 100%;
  max-width: 620px;
}

.auth-card-kicker {
  margin-bottom: 12px;
  color: var(--auth-accent);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .12em;
}

.auth-card h1 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(34px, 3.2vw, 45px);
  line-height: 1.04;
  font-weight: 770;
  letter-spacing: -.045em;
}

.auth-card > p {
  max-width: 470px;
  margin: 15px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-form {
  margin-top: 34px;
  gap: 20px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field .form-label,
.auth-card .form-label {
  margin: 0;
  color: #3c4651;
  font-size: 11px;
  font-weight: 760;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap > i {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a949f;
  font-size: 14px;
  pointer-events: none;
}

.auth-input-wrap .form-control {
  min-height: 50px;
  padding: 10px 14px 10px 43px;
}

.auth-card .form-control,
.auth-card .form-select {
  min-height: 48px;
  border: 1px solid #cfd5da;
  border-radius: 3px;
  background: #fff;
  color: #202a35;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-card .form-control::placeholder {
  color: #a1a9b1;
}

.auth-card .form-control:hover,
.auth-card .form-select:hover {
  border-color: #b7bec5;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: #9f7772;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(154,85,78,.08) !important;
}

.auth-submit,
.auth-card .btn-primary {
  min-height: 50px;
  margin-top: 2px;
  padding: 0 18px;
  border: 1px solid #20262e;
  border-radius: 3px;
  background: #20262e;
  color: #fff;
  font-size: 13px;
  font-weight: 740;
  justify-content: space-between;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.auth-submit:hover,
.auth-submit:focus,
.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus {
  border-color: #11161c;
  background: #11161c;
  color: #fff;
}

.auth-submit:active,
.auth-card .btn-primary:active {
  transform: translateY(1px);
}

.auth-submit i {
  color: #c9a29d;
  font-size: 15px;
}

.auth-card-footnote {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--auth-line);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #87919b;
  font-size: 10.5px;
}

.auth-card-footnote i {
  color: #6f7b86;
}

.auth-note {
  border-radius: 3px;
  background: #eceff1;
  border-color: #d9dee2;
}

.auth-main-foot {
  margin-top: 34px;
  color: #9aa2aa;
  font-size: 9.5px;
  letter-spacing: .03em;
}

.auth-mobile-brand {
  display: none;
}

.auth-main .app-flash {
  margin-bottom: 24px;
  border-radius: 3px;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(390px, 42%) minmax(0, 1fr); }
  .auth-brand-panel { padding: 46px; }
  .auth-brand-copyblock { margin-top: 72px; }
  .auth-brand-copyblock h2 { font-size: 36px; }
}

@media (max-width: 991.98px) {
  .auth-shell { display: block; background: #f2f4f5; }
  .auth-brand-panel { display: none; }
  .auth-main {
    min-height: 100vh;
    padding: 28px;
    align-items: stretch;
  }
  .auth-main-inner {
    width: min(100%, 520px);
    min-height: calc(100vh - 56px);
    margin: 0 auto;
  }
  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: auto;
    padding-bottom: 48px;
    color: #202a35;
  }
  .auth-mobile-brand-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd5da;
    border-radius: 3px;
    background: #fff;
    color: #5d6873;
  }
  .auth-mobile-brand strong {
    font-size: 17px;
    letter-spacing: -.025em;
  }
  .auth-main-foot {
    margin-top: auto;
    padding-top: 48px;
  }
}

@media (max-width: 560px) {
  .auth-main { padding: 22px; }
  .auth-card h1 { font-size: 34px; }
  .auth-card > p { font-size: 12.5px; }
  .auth-form { margin-top: 28px; }
  .auth-card .row { --bs-gutter-x: 0; }
  .auth-card .row > [class*="col-"] { width: 100%; }
}

/* Billing workflow · 2026-09-24 */
.time-billing-metrics .metric-card,
.dashboard-time-metrics .metric-card {
  box-shadow: none;
}

.metric-card-open .metric-icon {
  background: #f7f2ec;
  color: #8a6040;
}

.metric-card-billed .metric-icon {
  background: #eef5f0;
  color: #3f6c52;
}

.filter-grid-time {
  grid-template-columns: .75fr .75fr 1.45fr 1fr 1fr 1fr .75fr;
}

.time-selection-bar {
  border-radius: 4px;
  box-shadow: none;
}

.time-selection-bar .selection-icon {
  background: #f2f3f4;
  color: #596572;
}

.time-selection-pill {
  border-color: #ded9d7;
  background: #faf7f6;
  color: #654e4a;
  border-radius: 3px;
}

.time-selected-hours,
.time-group-selected-hint {
  color: #7d514b;
}

.time-row-selected td {
  background: #fbf7f6 !important;
}

.time-row-selected:hover td {
  background: #f8f2f0 !important;
}

.time-group-has-selection td {
  box-shadow: inset 0 2px 0 rgba(154, 85, 78, .16);
}

.selection-action-divider {
  width: 1px;
  min-height: 26px;
  align-self: center;
  background: #e3e6e8;
  margin: 0 2px;
}

.btn-billing-success {
  --bs-btn-color: #315d46;
  --bs-btn-bg: #eef5f0;
  --bs-btn-border-color: #cfdfd4;
  --bs-btn-hover-color: #244b37;
  --bs-btn-hover-bg: #e3efe7;
  --bs-btn-hover-border-color: #bfd3c6;
  --bs-btn-active-color: #244b37;
  --bs-btn-active-bg: #dce9e0;
  --bs-btn-active-border-color: #b8ccbf;
  font-weight: 700;
}

.btn-billing-success:disabled {
  color: #8b9790;
  background: #f4f6f5;
  border-color: #e1e6e3;
}

.billing-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.billing-status-wrap small {
  color: #88919b;
  font-size: 9.5px;
  line-height: 1.2;
}

.billing-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #e0e4e6;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.billing-status.is-open {
  background: #faf7f2;
  border-color: #eadfce;
  color: #7d5a36;
}

.billing-status.is-billed {
  background: #f0f6f2;
  border-color: #d5e4da;
  color: #356249;
}

.time-billing-notice {
  margin: -4px 0 16px;
  padding: 10px 12px;
  border: 1px solid #dfe4e7;
  border-radius: 4px;
  background: #f8fafb;
  color: #4b5663;
  font-size: 11.5px;
  line-height: 1.45;
}

.time-billing-notice.is-success {
  background: #f1f7f3;
  border-color: #cfe1d5;
  color: #2e6244;
}

.time-billing-notice.is-warning {
  background: #fff8ec;
  border-color: #ecdcb7;
  color: #805d21;
}

.time-billing-notice.is-danger {
  background: #fff3f3;
  border-color: #e9cdcd;
  color: #963c3c;
}

.time-report-table td:last-child,
.time-report-table th:last-child {
  white-space: nowrap;
}

.project-gauge-card {
  min-height: 232px;
}

.project-billing-split {
  min-height: 22px;
  margin-top: 7px;
  padding: 6px 4px 0;
  border-top: 1px solid #eceeef;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 9.5px;
  font-weight: 700;
}

.project-billing-split span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.project-billing-split .is-open { color: #7b5a3b; }
.project-billing-split .is-billed { color: #416950; }

@media (max-width: 1500px) {
  .filter-grid-time {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .selection-action-divider { display: none; }
  .selection-actions { width: 100%; }
  .selection-actions .btn { flex: 1 1 auto; }
  .project-billing-split { justify-content: flex-start; }
}


/* Dashboard -> Abrechnung drill-down */
.project-gauge-title-link {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.project-gauge-title-link:hover,
.project-gauge-title-link:focus-visible {
  color: var(--brand-accent, #9f574b);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-open-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.project-open-link:hover,
.project-open-link:focus-visible {
  color: var(--brand-accent, #9f574b);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-open-link .bi-arrow-right-short {
  font-size: 1.05em;
  transition: transform .15s ease;
}

.project-open-link:hover .bi-arrow-right-short {
  transform: translateX(2px);
}

/* Billing gauges + project focus · 2026-09-24 · Step 10 */
.project-gauge-track,
.project-gauge-billed,
.project-gauge-open {
  fill: none;
  stroke-width: 8;
  stroke-linecap: butt;
}

.project-gauge-track { stroke: #e9ecef; }
.project-gauge-billed { stroke: #4f8a69; }
.project-gauge-open { stroke: #b65b52; }

.project-billing-split .is-open { color: #9a4943; }
.project-billing-split .is-billed { color: #3f7557; }
.project-gauge-state { display: inline-flex; align-items: center; gap: 4px; }
.project-gauge-state.is-complete { color: #3f7557; font-weight: 750; }
.project-gauge-state.is-open { color: #935047; font-weight: 700; }

.pm-focus-metrics .metric-card {
  box-shadow: none;
}

.pm-focus-card {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.pm-focus-card:hover {
  border-color: #c9cfd4;
  background: #fbfcfc;
}

.pm-focus-card.is-active {
  border-color: #bc8a83;
  box-shadow: inset 0 2px 0 #a45d54;
}

.pm-focus-card:focus-visible,
.pm-focus-btn:focus-visible,
.pm-action-btn:focus-visible {
  outline: 2px solid rgba(164, 93, 84, .25);
  outline-offset: 2px;
}

.metric-icon-open {
  background: #f8ecea;
  color: #9a4f47;
}

.metric-icon-new {
  background: #f1f2ef;
  color: #64705f;
}

.pm-filter-panel {
  padding: 12px 14px;
}

.pm-filter-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.pm-search-field { max-width: 560px; }
.pm-focus-field { justify-self: end; }

.pm-focus-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9dee2;
  background: #f7f8f9;
  border-radius: 4px;
  overflow: hidden;
}

.pm-focus-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #dfe3e6;
  background: transparent;
  color: #626c78;
  font-size: 11.5px;
  font-weight: 730;
  white-space: nowrap;
}

.pm-focus-btn:last-child { border-right: 0; }
.pm-focus-btn:hover { background: #fff; color: #27313d; }
.pm-focus-btn.is-active { background: #28313d; color: #fff; }

.pm-overview-panel { box-shadow: none; }
.pm-overview-panel .panel-head { min-height: 62px; }

.pm-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #7b8490;
  font-size: 10px;
  white-space: nowrap;
}

.pm-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.pm-legend-item i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.pm-legend-item.is-billing i { background: #b65b52; }
.pm-legend-item.is-critical i { background: #9b3f3f; }
.pm-legend-item.is-new i { background: #7b856f; }

.pm-project-table { min-width: 900px; }
.pm-project-table tbody tr { position: relative; }
.pm-project-table tbody tr.has-billing td:first-child { box-shadow: inset 3px 0 0 #b65b52; }
.pm-project-table tbody tr:not(.has-billing).has-critical td:first-child { box-shadow: inset 3px 0 0 #9b3f3f; }
.pm-project-table tbody tr:not(.has-billing):not(.has-critical).has-new td:first-child { box-shadow: inset 3px 0 0 #7b856f; }

.pm-project-name {
  font-weight: 780;
  color: #222d3a;
  line-height: 1.25;
}

.pm-project-meta {
  color: #8b949e;
  font-size: 10px;
  margin-top: 4px;
}

.pm-pill--open {
  background: #fbefed;
  color: #984a43;
  border-color: #eccfcb;
}

.pm-pill--new {
  background: #f0f3ed;
  color: #66725f;
  border-color: #d9dfd5;
}

.pm-pill--muted {
  background: #f4f5f6;
  color: #68727f;
  border-color: #e1e4e7;
}

.pm-billing-link {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: #8f4741;
  text-decoration: none;
}

.pm-billing-link strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pm-billing-link small {
  color: #8b949e;
  font-size: 9.5px;
}

.pm-billing-link:hover strong,
.pm-billing-link:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-new-stack {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pm-new-stack small {
  color: #8a939e;
  font-size: 9.5px;
  white-space: nowrap;
}

.pm-zero { color: #abb2ba; }
.pm-last-activity { color: #5f6975; white-space: nowrap; }

.pm-action-btn {
  border: 1px solid #303944;
  background: #303944;
  color: #fff;
  border-radius: 4px;
  font-weight: 720;
  padding: 6px 9px;
}

.pm-action-btn:hover {
  border-color: #1f2730;
  background: #1f2730;
  color: #fff;
}

.pm-action-muted {
  color: #9aa2aa;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pm-filter-row { grid-template-columns: 1fr; }
  .pm-search-field { max-width: none; }
  .pm-focus-field { justify-self: stretch; }
  .pm-focus-switch { width: 100%; overflow-x: auto; }
  .pm-focus-btn { flex: 1 0 auto; }
  .pm-legend { display: none; }
}


/* Project billing period · 2026-09-25 · Step 11 */
.pm-period-panel { margin-bottom: 12px; }
.pm-period-panel .dashboard-period-form { min-height: 78px; }
.pm-period-presets .dashboard-period-preset {
  appearance: none;
  background: transparent;
  font-family: inherit;
  line-height: 1.25;
  cursor: pointer;
}
.pm-period-presets .dashboard-period-preset.is-active {
  color: #2f3b49;
  background: #edf0f2;
  border-color: #d5dadd;
}
.pm-period-note {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 16px;
  border-top: 1px solid #edf0f2;
  background: #fafbfb;
  color: #7a8490;
  font-size: 10.5px;
}
.pm-period-note .bi { color: #647486; }
.pm-project-table th:nth-child(2) { min-width: 135px; }

@media (max-width: 900px) {
  .pm-period-note { align-items: flex-start; }
}
