:root {
  --ink: #102833;
  --muted: #3e5a68;
  --meta: #234656;
  --deep: #08384c;
  --water: #0e7ea8;
  --foam: rgba(255, 255, 255, 0.62);
  --line: rgba(16, 40, 51, 0.08);
  --warn: #7a3e00;
  --ok: #0c6a4c;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset, 0 10px 24px rgba(16, 52, 72, 0.07), 0 1px 4px rgba(16, 52, 72, 0.04);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --radius-control: calc(var(--radius-md) - var(--space-2));
  --radius-inset: calc(var(--radius-lg) - var(--space-2));
  --text-xs: 12px;
  --text-13: 13px;
  --text-sm: var(--text-13);
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --leading-tight: 1.25;
  --leading-snug: 1.35;
  --leading-body: 1.45;
  --control: 36px;
  --chart-height: 200px;
  --pad-panel: var(--space-2);
  --gap-card: var(--space-2);
  --gap-section: var(--space-4);
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(980px 520px at -8% -12%, rgba(120, 206, 230, 0.55), transparent 62%),
    radial-gradient(760px 460px at 110% -8%, rgba(14, 126, 168, 0.28), transparent 58%),
    radial-gradient(640px 420px at 70% 110%, rgba(180, 226, 236, 0.7), transparent 60%),
    linear-gradient(180deg, #f4fbfd 0%, #dceef5 100%);
  min-height: 100vh;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/painel/estatico/fonts/InterVariable.woff2") format("woff2");
}
* { box-sizing: border-box; }
body { margin: 0; font-size: var(--text-md); line-height: var(--leading-body); }
a { color: var(--deep); }
h1 { margin: 0; font-size: var(--text-xl); line-height: var(--leading-tight); letter-spacing: -0.03em; font-weight: 650; }
h2 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-sm); line-height: var(--leading-snug); font-weight: 650; }
h2, h3 { letter-spacing: -0.02em; }
.layout { display: flex; align-items: stretch; min-height: 100vh; }
.sidebar {
  flex: 0 0 214px;
  align-self: stretch;
  position: relative;
  color: white;
  background: rgba(8, 42, 58, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 12px 0 40px rgba(8, 40, 56, 0.08);
}
.sidebar-inner {
  position: sticky;
  top: 0;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: var(--space-4) var(--space-3) var(--space-5);
}
.sidebar a { color: white; text-decoration: none; }
.brand { display: block; font-weight: 700; font-size: var(--text-lg); line-height: var(--leading-tight); letter-spacing: -0.03em; }
.brand-note { margin: 0 0 var(--space-3); color: rgba(232, 246, 251, 0.78); font-size: var(--text-xs); line-height: var(--leading-snug); }
.sidebar nav { display: flex; flex-direction: column; gap: var(--space-1); }
.sidebar nav a {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm); line-height: var(--leading-snug);
  color: rgba(255, 255, 255, 0.88);
}
.sidebar nav a.active, .sidebar nav a:hover { background: rgba(255, 255, 255, 0.14); color: white; }
.sidebar nav a:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #7fd4ef; outline-offset: 2px;
}
.logout { margin-top: var(--space-6); }
button, .login-card button {
  background: var(--water); color: white; border: 0; border-radius: var(--radius-pill);
  min-height: var(--control); padding: 0 var(--space-4); font: inherit; font-size: var(--text-sm); line-height: var(--leading-snug); font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 18px rgba(14, 126, 168, 0.28);
}
.sidebar .logout button {
  width: 100%; background: rgba(255, 255, 255, 0.08); color: white;
  border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none;
}
.content { flex: 1; min-width: 0; width: auto; padding: var(--space-4) var(--space-5) var(--space-8); }
.glass, .glass-bar, .segment, .cards article, .chart-wrap, .sheet, .more, .login-card, .note, .warning, .ok, .demo {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}
.top {
  display: flex; gap: var(--space-3); align-items: center;
  margin-bottom: var(--gap-section); padding: var(--pad-panel) var(--space-3); border-radius: var(--radius-md);
}
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--water); font-weight: 650; }
.menu { display: none; background: var(--deep); color: white; border-radius: var(--radius-pill); padding: 0 var(--space-4); min-height: var(--control); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.period, .muted, .lead { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-snug); }
.period, .content > .muted { color: var(--meta); font-size: var(--text-13); }
.period, .window-note, .content > .muted { margin: 0 0 var(--space-2); }
.window-note { margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: var(--leading-snug); }
#date-error { flex: 1 0 100%; margin: var(--space-1) var(--space-2); }
#date-error[hidden] { display: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: var(--gap-card); margin: 0 0 var(--gap-section); }
.cards article { border-radius: var(--radius-md); padding: var(--pad-panel) var(--space-3); position: relative; overflow: hidden; }
.cards article::before {
  content: ""; position: absolute; left: 0; top: var(--space-4); bottom: var(--space-4); width: 3px; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #49c2e6, #0e7ea8);
}
.cards article p { margin: 0; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-tight); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.cards article strong {
  display: block; margin-top: var(--space-1); font-size: var(--text-lg); line-height: var(--leading-tight);
  font-weight: 680; letter-spacing: -0.04em; color: #0b3346; white-space: nowrap;
}
.card-note { display: block; margin-top: var(--space-1); font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 550; }
.segment, .filters {
  display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-1);
  margin: 0 0 var(--gap-section); padding: var(--pad-panel); border-radius: var(--radius-md);
}
.filters label { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-xs); line-height: var(--leading-tight); font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); padding: var(--space-2) var(--space-3); }
input, select {
  border: 0; border-radius: var(--radius-control); min-height: var(--control); padding: 0 var(--space-2);
  font: inherit; font-size: var(--text-md); line-height: var(--leading-snug); color: var(--ink); background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(16, 40, 51, 0.08);
}
.chart-wrap { margin: 0 0 var(--gap-section); border-radius: var(--radius-md); padding: var(--pad-panel) var(--space-3) var(--space-2); }
.chart-plot { display: grid; grid-template-columns: var(--axis, 52px) minmax(0, 1fr); height: var(--chart-height); }
.chart-plot.dual { grid-template-columns: var(--axis, 52px) minmax(0, 1fr) var(--axis-right, 52px); }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-right: var(--space-2); text-align: right; color: #3d5c6c; }
.chart-y-right { align-items: flex-start; padding-right: 0; padding-left: var(--space-2); text-align: left; }
.chart-surface { position: relative; min-width: 0; height: var(--chart-height); }
.chart-surface svg { width: 100%; height: var(--chart-height); display: block; }
.chart-dots { position: absolute; inset: 0; }
.chart-dot { position: absolute; width: 5px; height: 5px; border-radius: var(--radius-pill); transform: translate(-50%, 50%); }
.chart-x { display: flex; margin: var(--space-1) 0 0 var(--axis, 52px); }
.chart-x.dual { margin-right: var(--axis-right, 52px); }
.chart-x span { flex: 1 1 0; min-width: 0; text-align: center; }
.chart-x span:first-child { text-align: left; }
.chart-x span:last-child { text-align: right; }
.chart-x .skip { visibility: hidden; }
.chart-axis, .chart-x span, .legend, .axis-titles { font-size: var(--text-xs); line-height: var(--leading-tight); font-family: Inter, system-ui, sans-serif; }
.axis-titles { display: grid; grid-template-columns: var(--axis, 52px) minmax(0, 1fr); color: #3d5c6c; margin: 0 0 var(--space-1); }
.axis-titles.dual { grid-template-columns: var(--axis, 52px) minmax(0, 1fr) var(--axis-right, 52px); }
.axis-left { text-align: right; padding-right: var(--space-2); }
.axis-right { text-align: left; padding-left: var(--space-2); }
.hbar-board { margin: 0 0 var(--gap-section); }
.hbar-title { margin: 0 0 var(--space-2); font-size: var(--text-xs); line-height: var(--leading-tight); letter-spacing: 0.04em; text-transform: uppercase; color: var(--deep); }
.hbar-note { font-size: var(--text-xs); line-height: var(--leading-snug); margin: var(--space-2) 0 0; }
.hbar-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: visible; }
.hbar-head, .hbar-row {
  display: grid; grid-template-columns: minmax(8.5rem, 34%) minmax(0, 1fr) 4.5rem;
  gap: var(--space-3); align-items: center; min-height: var(--control);
  padding: 0 var(--space-3); font-size: var(--text-xs); line-height: var(--leading-snug); position: relative;
}
.hbar-head {
  min-height: 28px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 650;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.35);
}
.hbar-row + .hbar-row { border-top: 1px solid var(--line); }
.hbar-row:nth-child(even) { background: rgba(255, 255, 255, 0.42); }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-row .absence-pct { text-align: right; color: var(--ink); font-weight: 650; }
.hbar-tip {
  display: none; position: absolute; left: var(--space-3); top: calc(100% - 2px); z-index: 5;
  max-width: min(28rem, 92%); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
  background: var(--deep); color: white; font-size: var(--text-xs); line-height: var(--leading-snug);
  pointer-events: none; white-space: normal;
}
.hbar-row:hover .hbar-tip, .hbar-row:focus-within .hbar-tip { display: block; }
.spark-note { font-size: var(--text-xs); line-height: var(--leading-tight); color: var(--muted); }
.incomplete { margin-left: var(--space-2); font-size: var(--text-xs); letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.open-sheet { max-height: 520px; overflow: auto; }
.open-sheet table { table-layout: fixed; min-width: 0; }
.open-sheet th, .open-sheet td {
  font-size: var(--text-xs); line-height: var(--leading-snug); padding: var(--space-1) var(--space-2); vertical-align: middle;
}
.open-sheet th { white-space: normal; overflow: visible; line-height: var(--leading-tight); font-size: var(--text-xs); }
.open-sheet tbody td {
  height: var(--space-6); padding: 0 var(--space-2); line-height: var(--space-6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip {
  display: inline-block; max-width: 9rem; overflow: hidden; text-overflow: ellipsis;
  font-size: var(--text-xs); line-height: var(--text-lg); padding: 0 var(--space-2); border-radius: var(--radius-pill);
  background: rgba(166, 94, 0, 0.12); color: #6a3e00; vertical-align: middle;
}
.legend { display: inline-flex; align-items: center; gap: var(--space-2); margin: var(--space-2) var(--space-3) 0 0; color: var(--muted); font-size: var(--text-xs); }
.legend i { width: 0.7rem; height: 0.7rem; border-radius: var(--radius-pill); display: inline-block; }
.warning, .note, .ok, .demo { border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--text-sm); line-height: var(--leading-snug); margin: 0 0 var(--space-3); }
.downloads { display: flex; gap: var(--space-4); margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: var(--leading-snug); }
.open-sheet { margin-top: var(--space-2); }
.sheet-caption { display: none; }
.absence-board {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-card); margin: 0 0 var(--gap-section);
}
.absence-card { border-radius: var(--radius-md); padding: var(--pad-panel) var(--space-3); }
.absence-card h2 { margin: 0 0 var(--space-2); font-size: var(--text-xs); line-height: var(--leading-tight); letter-spacing: 0.04em; text-transform: uppercase; color: var(--deep); }
.absence-list { list-style: none; margin: 0; padding: 0; }
.absence-list li {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(48px, 0.8fr) 2.4rem 64px;
  gap: var(--space-2); align-items: center; height: var(--control); font-size: var(--text-xs); line-height: var(--leading-tight); color: var(--ink);
}
.absence-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.absence-track { height: 6px; border-radius: var(--radius-pill); background: rgba(16, 40, 51, 0.08); }
.absence-track i { display: block; height: 100%; border-radius: var(--radius-pill); background: rgba(20, 108, 148, 0.72); }
.absence-pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.spark { width: 64px; height: 18px; display: block; }
.absence-more { margin-top: var(--space-2); }
.absence-more > summary { cursor: pointer; font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--water); font-weight: 650; }
.absence-card .muted { margin: var(--space-2) 0 0; font-size: var(--text-xs); line-height: var(--leading-snug); }
.trends h2 { color: var(--deep); }
.warning { color: var(--warn); background: rgba(255, 244, 229, 0.78); }
.ok { color: var(--ok); background: rgba(231, 246, 239, 0.8); }
.demo { color: #6a4b12; background: rgba(255, 248, 232, 0.78); }
.sheet, .more { border-radius: var(--radius-lg); margin-top: var(--gap-section); padding: var(--space-1); }
.sheet > summary, .more > summary {
  cursor: pointer; list-style: none; font-weight: 650; font-size: var(--text-sm); line-height: var(--leading-snug);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-inset);
}
.sheet > summary::-webkit-details-marker, .more > summary::-webkit-details-marker { display: none; }
.sheet > summary::before, .more > summary::before { content: "▸ "; color: var(--water); }
.sheet[open] > summary::before, .more[open] > summary::before { content: "▾ "; }
.sheet .table-wrap, .more-body { padding: var(--space-2) var(--space-3) var(--space-4); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-inset); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; font-size: var(--text-sm); line-height: var(--leading-snug); }
th { font-size: var(--text-xs); line-height: var(--leading-tight); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
tbody tr:hover { background: rgba(255, 255, 255, 0.45); }
.pager { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-3) var(--space-1); font-size: var(--text-sm); line-height: var(--leading-snug); }
.pager-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--control);
  padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--deep); color: white;
  text-decoration: none; font-weight: 650; font-size: var(--text-sm); line-height: var(--leading-snug);
  border: 0; box-shadow: none; cursor: pointer;
}
a.pager-btn:hover, button.pager-btn:hover:not(:disabled) { background: var(--water); color: white; }
.pager-btn:disabled, .pager-btn.is-disabled {
  background: rgba(16, 40, 51, 0.08); color: var(--muted); cursor: not-allowed; box-shadow: none;
}
.pager-status {
  padding: 0 var(--space-3); min-height: var(--control); display: inline-flex; align-items: center;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.72); color: var(--ink);
  font-variant-numeric: tabular-nums; border: 1px solid var(--line);
}
.sort-link {
  display: inline-flex; align-items: center; gap: var(--space-1); color: inherit; text-decoration: none;
  border-radius: var(--radius-sm); padding: var(--space-1) var(--space-1);
}
.sort-link:hover, .sort-link.is-active { color: var(--water); background: rgba(14, 126, 168, 0.08); }
.sort-arrow { font-size: var(--text-xs); letter-spacing: 0; text-transform: none; }
.toggle-more { margin-top: var(--space-2); }
.absence-list li[hidden] { display: none; }
.cost-board { margin: 0 0 var(--gap-section); }
.cost-board h2 { color: var(--deep); }
.cost-line {
  display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-2);
  padding: var(--space-2) 0;
}
.cost-line label { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-xs); font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.cost-line input, .cost-line select { min-width: 6rem; }
.cost-audit { font-size: var(--text-xs); color: var(--muted); padding-bottom: var(--space-2); }
.cost-line button.danger { background: transparent; color: var(--warn); box-shadow: none; border: 1px solid rgba(122, 62, 0, 0.35); }
.cost-new { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.cost-table { min-width: 0; }
.cost-table td { border-bottom: 1px solid var(--line); }
.more-body section + section { border-top: 1px solid var(--line); margin-top: var(--space-3); padding-top: var(--space-2); }
.more-body h3 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-lg); line-height: var(--leading-tight); }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: var(--space-5); }
.login-card { width: min(460px, 100%); padding: var(--space-6); border-radius: var(--radius-lg); }
.login-card form { display: grid; gap: var(--space-3); }
.login-card h1 { margin-bottom: var(--space-2); }
.login-card .lead { margin: 0 0 var(--space-4); }
@media (max-width: 860px) {
  :root { --control: 44px; }
  .layout { display: block; }
  .menu { display: inline-flex; align-items: center; }
  .sidebar { display: none; min-height: 0; height: auto; }
  .sidebar-inner { position: static; min-height: 0; max-height: none; }
  .nav-toggle:checked ~ .layout .sidebar { display: block; }
  .content { padding: var(--space-4); }
  h1 { font-size: var(--text-xl); }
  .absence-board { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards article:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cards article strong { font-size: var(--text-xl); }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
  .filters label,
  #date-error { min-width: 0; max-width: 100%; }
  #date-error { grid-column: 1 / -1; }
  .filters input,
  .filters select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .filters select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .filters button { justify-self: start; align-self: end; width: auto; height: var(--control); margin-bottom: var(--space-2); }
  .sheet-caption { display: block; margin: var(--space-2) var(--space-1) var(--space-2); font-size: var(--text-xs); line-height: var(--leading-snug); }
  .open-sheet caption.sheet-caption-in { display: none; }
  .sheet.open-sheet { padding-left: 0; padding-right: 0; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .open-sheet table { table-layout: auto; width: max-content; min-width: 40rem; margin-right: var(--space-4); }
  .open-sheet th,
  .open-sheet td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .open-sheet th { min-width: 6.5rem; }
  .open-sheet td.clip { max-width: 14rem; }
  .open-sheet th:first-child,
  .open-sheet td:first-child {
    position: sticky; left: 0; z-index: 1;
    width: 9.5rem; min-width: 9.5rem; max-width: 9.5rem;
    box-sizing: border-box; padding-left: var(--space-3); overflow: visible;
    background: #f4fbfd; background-clip: padding-box;
    box-shadow: -12px 0 0 #f4fbfd, 1px 0 0 rgba(16, 40, 51, 0.08);
  }
  .open-sheet td:first-child .name-clip {
    display: block; max-width: 8.6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .open-sheet th:first-child { z-index: 2; }
  .open-sheet td:first-child:active::after {
    content: attr(title);
    position: absolute; left: var(--space-3); top: calc(100% - 2px); z-index: 4;
    max-width: 18rem; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
    background: #102833; color: white; font-size: var(--text-xs); line-height: var(--leading-tight);
    white-space: nowrap; pointer-events: none;
  }
  .open-sheet tbody tr:hover td:first-child { background: #fff; box-shadow: -12px 0 0 #fff, 1px 0 0 rgba(16, 40, 51, 0.08); }
  table { min-width: 560px; }
}
@media (max-width: 720px) {
  .chart-x .xlabel { position: relative; white-space: nowrap; }
  .chart-x .xlabel:not(:first-child):not(:last-child):not(:nth-child(4n+1)) { visibility: hidden; }
  .chart-x .xlabel:nth-last-child(2):not(:first-child) { visibility: hidden; }
  .chart-x .xlabel:focus::after,
  .chart-x .xlabel:active::after {
    content: attr(data-full);
    position: absolute;
    left: 50%;
    bottom: calc(100% + var(--space-2));
    transform: translateX(-50%);
    background: #102833;
    color: white;
    font-size: var(--text-xs);
    line-height: var(--leading-tight);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    z-index: 4;
    pointer-events: none;
  }
  .chart-x .xlabel:first-child:focus::after,
  .chart-x .xlabel:first-child:active::after { left: 0; transform: none; }
  .chart-x .xlabel:last-child:focus::after,
  .chart-x .xlabel:last-child:active::after { left: auto; right: 0; transform: none; }
}
