/* src/styles.css */
:root {
  --brand: #0c7a3f;
  --brand-dark: #085c2f;
  --brand-darker: #06351e;
  --brand-light: #15a85a;
  --brand-glow: #34d27e;
  --bg: #eef4f0;
  --surface: #fff;
  --surface-2: #f4f9f6;
  --sidebar-top: #0c7a3f;
  --sidebar-bottom: #06351e;
  --sidebar-text: #d8efe1;
  --sidebar-muted: #a7d6bc;
  --sidebar-hover: #ffffff24;
  --sidebar-active: #fff3;
  --primary: #0c7a3f;
  --primary-dark: #085c2f;
  --on-primary: #fff;
  --text: #13241b;
  --muted: #5e7268;
  --border: #dde8e1;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --warn: #c98a14;
  --warn-soft: #fdf2dc;
  --ok: #0c7a3f;
  --ok-soft: #e3f3ea;
  --badge-bg: #e3f3ea;
  --shadow: 0 1px 3px #06351e14, 0 1px 2px #06351e0d;
  --shadow-md: 0 6px 22px #06351e1f;
  --blob-opacity: .5;
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
  accent-color: var(--brand);
}

[data-theme="dark"] {
  --bg: #0a130e;
  --surface: #13201a;
  --surface-2: #182a21;
  --sidebar-top: #0b1b13;
  --sidebar-bottom: #061009;
  --sidebar-text: #d5e8dd;
  --sidebar-muted: #84a995;
  --sidebar-hover: #34d27e1f;
  --sidebar-active: #34d27e2e;
  --primary: #18a657;
  --primary-dark: #128048;
  --on-primary: #fff;
  --text: #e7f1ea;
  --muted: #93a89c;
  --border: #21362b;
  --danger: #f87171;
  --danger-soft: #3a1a1a;
  --warn: #e0b057;
  --warn-soft: #3a2f15;
  --ok: #34d27e;
  --ok-soft: #14352340;
  --badge-bg: #14352340;
  --shadow: 0 1px 3px #0006;
  --shadow-md: 0 8px 28px #00000080;
  --blob-opacity: .6;
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  accent-color: var(--brand-light);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

button, a, input, select, textarea, label {
  touch-action: manipulation;
}

html, body, #root {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background .3s, color .3s;
  font-family: Calibri, Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 14.5px;
}

.bg-anim {
  position: fixed;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  inset: 0;
}

.bg-anim .blob {
  position: absolute;
  filter: blur(70px);
  opacity: var(--blob-opacity);
  will-change: transform;
  border-radius: 50%;
}

.blob-1 {
  background: radial-gradient(circle at 30% 30%, var(--brand-glow), transparent 70%);
  animation: drift1 18s ease-in-out infinite;
  width: 460px;
  height: 460px;
  top: -120px;
  left: -100px;
}

.blob-2 {
  background: radial-gradient(circle at 50% 50%, var(--brand-light), transparent 70%);
  animation: drift2 22s ease-in-out infinite;
  width: 540px;
  height: 540px;
  bottom: -180px;
  right: -140px;
}

.blob-3 {
  background: radial-gradient(circle at 50% 50%, var(--brand), transparent 70%);
  animation: drift3 26s ease-in-out infinite;
  width: 360px;
  height: 360px;
  top: 40%;
  left: 55%;
}

.blob-4 {
  background: radial-gradient(circle at 50% 50%, var(--brand-glow), transparent 70%);
  animation: drift1 30s ease-in-out infinite reverse;
  width: 300px;
  height: 300px;
  top: 10%;
  right: 20%;
}

.bg-grid {
  position: absolute;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  opacity: .25;
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, #0000 80%);
  background-size: 48px 48px;
  inset: 0;
}

@keyframes drift1 {
  0%, 100% {
    transform: translate(0)scale(1);
  }

  50% {
    transform: translate(60px, 50px)scale(1.12);
  }
}

@keyframes drift2 {
  0%, 100% {
    transform: translate(0)scale(1);
  }

  50% {
    transform: translate(-70px, -40px)scale(1.08);
  }
}

@keyframes drift3 {
  0%, 100% {
    transform: translate(0)scale(1);
  }

  33% {
    transform: translate(-50px, 30px)scale(1.1);
  }

  66% {
    transform: translate(40px, -50px)scale(.95);
  }
}

.app {
  display: flex;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.aviso-sistema-stack {
  position: sticky;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  top: 0;
}

.aviso-sistema {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.aviso-texto strong {
  margin-right: 5px;
  font-weight: 800;
}

.aviso-fechar {
  display: inline-flex;
  color: inherit;
  opacity: .75;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
}

.aviso-fechar:hover {
  opacity: 1;
  background: #00000014;
}

.aviso-falha {
  background: var(--danger-soft);
  color: var(--danger);
}

.aviso-manutencao {
  background: var(--warn-soft);
  color: var(--warn);
}

.aviso-comunicado {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
}

.aviso-comunicado .aviso-fechar:hover {
  background: #ffffff38;
}

.manut-aviso-stack {
  position: sticky;
  z-index: 19;
  display: flex;
  flex-direction: column;
  top: 0;
}

.manut-aviso {
  display: flex;
  background: var(--warn-soft);
  color: var(--warn);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent);
  align-items:  center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.manut-aviso-icon {
  flex-shrink: 0;
  font-size: 15px;
}

.manut-aviso-texto {
  flex: 1;
}

.manut-aviso-texto strong {
  font-weight: 800;
}

.manut-aviso-fechar {
  display: inline-flex;
  color: inherit;
  opacity: .75;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
}

.manut-aviso-fechar:hover {
  opacity: 1;
  background: #00000014;
}

.maint-panel {
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border));
  background: var(--surface);
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.maint-panel-head {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin-bottom: 12px;
}

.maint-panel-head h3 {
  color: var(--text);
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.maint-panel-icon {
  font-size: 17px;
}

.maint-panel-count {
  text-align: center;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 999px;
  min-width: 24px;
  margin-left: auto;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 800;
}

.maint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.maint-item {
  display: flex;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  align-items:  center;
  gap: 12px;
  padding: 9px 12px;
}

.maint-item-main {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.maint-item-placa {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.maint-item-modelo {
  color: var(--muted);
  font-size: 11px;
}

.maint-item-resp {
  color: var(--muted);
  flex: 1;
  font-size: 12.5px;
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar-top) 0%, var(--sidebar-bottom) 100%);
  color: var(--sidebar-text);
  display: flex;
  position: sticky;
  flex-direction: column;
  width: 256px;
  height: 100vh;
  top: 0;
  box-shadow: 4px 0 24px #06351e1f;
}

.brand {
  display: flex;
  border-bottom: 1px solid #ffffff1f;
  align-items:  center;
  padding: 22px 18px;
}

.brand-logo-img {
  filter: drop-shadow(0 2px 6px #00000040);
  width: 100%;
  max-width: 188px;
  height: auto;
}

.nav {
  overflow-y: auto;
  flex: 1;
  padding: 16px 12px;
}

.nav-item {
  display: flex;
  color: var(--sidebar-text);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid #0000;
  border-radius: 10px;
  align-items:  center;
  gap: 12px;
  width: 100%;
  margin-bottom: 4px;
  padding: 11px 14px;
  transition: background .18s, color .18s, border-color .18s, transform .1s;
  font-family: inherit;
  font-size: 14.5px;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.nav-item:active {
  transform: scale(.98);
}

.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  border-left-color: var(--brand-glow);
  font-weight: 600;
}

.nav-icon {
  display: grid;
  flex-shrink: 0;
  place-items:  center;
  width: 24px;
  height: 24px;
}

.nav-item.active .nav-icon {
  color: var(--brand-glow);
}

.sidebar-footer {
  color: var(--sidebar-muted);
  border-top: 1px solid #ffffff1f;
  padding: 14px 18px;
  font-size: 11px;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.topbar {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  position: sticky;
  z-index: 5;
  justify-content: space-between;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
  top: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  margin: 2px 0 0;
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items:  center;
  gap: 12px;
}

.theme-toggle {
  display: grid;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  place-items:  center;
  width: 38px;
  height: 38px;
  transition: background .15s, color .15s, border-color .15s;
}

.theme-toggle:hover {
  background: var(--badge-bg);
  color: var(--brand);
  border-color: var(--brand);
}

.app-switch {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 3px;
  padding: 3px;
}

.app-switch-btn {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 6px 13px;
  transition: background .15s, color .15s;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
}

.app-switch-btn:hover:not(.active) {
  color: var(--brand);
}

.app-switch-btn.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow);
  cursor: default;
}

.user-chip {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  align-items:  center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
}

.user-avatar {
  display: grid;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  border-radius: 50%;
  place-items:  center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  font-weight: 700;
}

.user-name {
  text-transform: capitalize;
  font-size: 13.5px;
  font-weight: 600;
}

.view {
  position: relative;
  padding: 26px 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: var(--surface);
  display: flex;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  align-items:  center;
  gap: 14px;
  padding: 18px;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  display: grid;
  background: var(--badge-bg);
  color: var(--brand);
  border-radius: 12px;
  flex-shrink: 0;
  place-items:  center;
  width: 48px;
  height: 48px;
}

.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-value {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
}

.card-label {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12.5px;
}

.tone-green {
  border-left-color: #0c7a3f;
}

.tone-green .card-icon {
  color: #0c7a3f;
}

.tone-emerald {
  border-left-color: #15a85a;
}

.tone-emerald .card-icon {
  color: #15a85a;
}

.tone-teal {
  border-left-color: #0e9488;
}

.tone-teal .card-icon {
  color: #0e9488;
}

.tone-lime {
  border-left-color: #4d9e1f;
}

.tone-lime .card-icon {
  color: #4d9e1f;
}

.tone-amber {
  border-left-color: #c98a14;
}

.tone-amber .card-icon {
  color: #c98a14;
}

.tone-red {
  border-left-color: var(--danger);
}

.tone-red .card-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

[data-theme="dark"] .tone-green {
  border-left-color: #34d27e;
}

[data-theme="dark"] .tone-green .card-icon {
  color: #34d27e;
}

[data-theme="dark"] .tone-emerald {
  border-left-color: #4ade80;
}

[data-theme="dark"] .tone-emerald .card-icon {
  color: #4ade80;
}

[data-theme="dark"] .tone-teal {
  border-left-color: #4fd1c5;
}

[data-theme="dark"] .tone-teal .card-icon {
  color: #4fd1c5;
}

[data-theme="dark"] .tone-lime {
  border-left-color: #a3e635;
}

[data-theme="dark"] .tone-lime .card-icon {
  color: #a3e635;
}

[data-theme="dark"] .tone-amber {
  border-left-color: #fbbf24;
}

[data-theme="dark"] .tone-amber .card-icon {
  color: #fbbf24;
}

[data-theme="dark"] .card-icon, [data-theme="dark"] .aud-head-icone, [data-theme="dark"] .maint-panel-icon {
  color: var(--brand-glow);
}

[data-theme="dark"] .card-icon {
  background: color-mix(in srgb, currentColor 14%, transparent);
}

[data-theme="dark"] .tone-green.card-icon {
  color: #34d27e;
}

[data-theme="dark"] .tone-emerald.card-icon {
  color: #4ade80;
}

[data-theme="dark"] .tone-teal.card-icon {
  color: #4fd1c5;
}

[data-theme="dark"] .tone-lime.card-icon {
  color: #a3e635;
}

[data-theme="dark"] .tone-amber.card-icon {
  color: #fbbf24;
}

[data-theme="dark"] .tone-red.card-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
}

.chart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 18px;
}

.chart-box h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.chart {
  width: 100%;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--muted);
  font-size: 11px;
}

.chart-refline {
  stroke: var(--warn);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  opacity: .9;
}

.chart-refline-label {
  fill: var(--warn);
  font-size: 10.5px;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 12.5px;
}

.legend-item {
  display: inline-flex;
  align-items:  center;
  gap: 7px;
}

.legend-dot {
  border-radius: 3px;
  width: 11px;
  height: 11px;
}

.chart-pie {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 18px;
}

.chart-svg-pie {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
}

.pie-legend {
  list-style: none;
  flex: 1;
  min-width: 160px;
  margin: 0;
  padding: 0;
}

.pie-legend li {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 9px;
  padding: 5px 0;
  font-size: 13px;
}

.pie-legend li:last-child {
  border-bottom: none;
}

.pie-dot {
  border-radius: 3px;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.pie-name {
  flex: 1;
}

.pie-val {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.crud-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 12px;
}

.crud-toolbar .search-wrap {
  flex: 300px;
  max-width: 470px;
}

.search-wrap {
  display: flex;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  align-items:  center;
  gap: 8px;
  min-width: 280px;
  padding: 0 12px;
  transition: border-color .15s, box-shadow .15s;
}

.search-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.search {
  color: var(--text);
  outline: none;
  background: none;
  border: none;
  flex: 1;
  padding: 10px 0;
  font-family: inherit;
  font-size: 14.5px;
}

select, input[type="text"], input[type="search"], input[type="date"], input[type="time"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], textarea {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  transition: border-color .15s, box-shadow .15s;
  font-size: 13.5px;
}

select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237d8f85' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5 6 6.5 11 1.5'/></svg>");
  background-position: right 11px center;
  background-repeat: no-repeat;
  padding-right: 32px;
}

select:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

select:disabled, input:disabled, textarea:disabled {
  opacity: .55;
  cursor: not-allowed;
}

input[type="checkbox"], input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.search, .search-wrap input, .input-icon input {
  box-shadow: none;
  background: none;
  border: none;
  border-radius: 0;
}

.search:focus, .search-wrap input:focus, .input-icon input:focus {
  box-shadow: none;
}

:not(pre) > code {
  background: var(--badge-bg);
  color: var(--text);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: ui-monospace, Cascadia Mono, Consolas, monospace;
  font-size: .92em;
}

.badge {
  background: var(--badge-bg);
  color: var(--brand);
  white-space: nowrap;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-x: auto;
  border-radius: 14px;
}

.table {
  border-collapse: collapse;
  width: 100%;
}

.table th, .table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: 13px 16px;
}

.table th {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 11.5px;
  font-weight: 700;
}

.table tbody tr {
  transition: background .12s;
}

.table tbody tr:hover {
  background: var(--surface-2);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.col-actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.empty {
  text-align: center;
  color: var(--muted);
  border: 1px dashed color-mix(in srgb, var(--muted) 32%, transparent);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border-radius: 14px;
  padding: 40px 28px;
  font-size: 13.5px;
  line-height: 1.6;
}

.empty strong {
  color: var(--text);
  font-weight: 600;
}

.empty > svg {
  display: block;
  opacity: .4;
  margin: 0 auto 12px;
}

.carregando {
  text-align: center;
  color: var(--muted);
  padding: 40px 28px;
  font-size: 13.5px;
}

.search-icone {
  display: inline-flex;
  color: var(--muted);
  flex: none;
}

.search-wrap:focus-within .search-icone {
  color: var(--brand);
}

.pill {
  display: inline-block;
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
}

.pill-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 30%, transparent);
}

.pill-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
}

.pill-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

.pill-neutral {
  background: var(--badge-bg);
  color: var(--muted);
  border-color: var(--border);
}

.error-state {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-radius: 16px;
  max-width: 620px;
  margin: 20px auto;
  padding: 40px;
}

.error-icon {
  display: grid;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 18px;
  place-items:  center;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
}

.error-state h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.error-msg {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.setup-box {
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 18px 22px;
}

.setup-box strong {
  display: block;
  margin-bottom: 10px;
}

.setup-box ol {
  color: var(--text);
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.setup-box code {
  background: var(--brand-darker);
  color: #d8efe1;
  border-radius: 5px;
  padding: 2px 7px;
  font-family: Consolas, Courier New, monospace;
  font-size: 12.5px;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  justify-content: center;
  align-items:  center;
  gap: 7px;
  padding: 10px 17px;
  transition: background .15s, opacity .15s, transform .1s, box-shadow .15s;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: var(--on-primary);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 45%, transparent);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--badge-bg);
}

.icon-btn {
  display: inline-grid;
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 8px;
  place-items:  center;
  padding: 7px;
  transition: background .15s, color .15s;
}

.icon-btn:hover {
  background: var(--badge-bg);
  color: var(--brand);
}

.icon-btn-danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.modal-overlay {
  position: fixed;
  backdrop-filter: blur(4px);
  display: grid;
  z-index: 100;
  animation: fadeIn .18s ease;
  background: #06351e80;
  place-items:  center;
  padding: 16px;
  inset: 0;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  animation: popIn .2s ease;
  border-radius: 16px;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  box-shadow: 0 24px 60px #06351e59;
}

.modal-head {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex: none;
  justify-content: space-between;
  align-items:  center;
  padding: 18px 22px;
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal-sub {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 12.5px;
}

.modal-body {
  overflow-y: auto;
  flex: auto;
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: var(--muted);
  font-weight: 600;
}

.req {
  color: var(--danger);
  font-style: normal;
}

.field select {
  padding-right: 34px;
}

.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  outline: none;
  border-radius: 9px;
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  font-size: 14.5px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.modal-card > .modal-foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  margin-top: 0;
  padding: 14px 22px;
}

.modal-foot .form-error {
  margin: 0 auto 0 0;
  padding: 7px 12px;
  font-size: 12.5px;
}

.form-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  margin: 12px 0;
  padding: 10px 14px;
  font-size: 13px;
}

.form-ok {
  display: flex;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-dark);
  border-radius: 8px;
  align-items:  center;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

.hint {
  display: flex;
  color: var(--muted);
  align-items:  center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.hint strong {
  color: var(--text);
}

.hint-warn {
  color: var(--warn);
}

.btn-sm {
  display: inline-flex;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
}

.icon-btn-ia:hover {
  color: #7c3aed;
  background: #8b5cf629;
}

.icon-btn-ok:hover {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
}

.icon-btn-folder:hover {
  color: #d97706;
  background: #f59e0b29;
}

.icon-btn-cert:hover {
  color: #0284c7;
  background: #0ea5e929;
}

.modal-ia {
  max-width: 640px;
}

.ia-diag {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  align-items:  flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.ia-tag {
  letter-spacing: .3px;
  border-radius: 20px;
  flex-shrink: 0;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}

.ia-tag-ai {
  color: #7c3aed;
  background: #8b5cf62e;
}

.ia-tag-std {
  background: var(--badge-bg);
  color: var(--muted);
}

.ia-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.ia-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color .15s;
}

.ia-item:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

.ia-check {
  display: flex;
  cursor: pointer;
  align-items:  flex-start;
  gap: 11px;
}

.ia-check input {
  accent-color: var(--brand);
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.ia-item-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ia-item-title {
  display: flex;
  color: var(--text);
  flex-wrap: wrap;
  align-items:  center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}

.ia-item-sub {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.ia-carga {
  color: var(--muted);
  background: var(--badge-bg);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
}

.prio {
  letter-spacing: .2px;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}

.prio-urgente {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}

.prio-alta {
  background: var(--warn-soft);
  color: var(--warn);
}

.prio-média, .prio-media {
  color: #d97706;
  background: #f59e0b2e;
}

.prio-normal {
  background: var(--badge-bg);
  color: var(--muted);
}

.prio-baixa {
  color: var(--muted);
  border: 1px solid var(--border);
  background: none;
}

.concluir-resumo {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.concluir-resumo strong {
  color: var(--text);
  font-size: 15px;
}

.concluir-resumo span {
  color: var(--muted);
  font-size: 13px;
}

.file-chosen {
  display: flex;
  color: var(--brand-dark);
  align-items:  center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12.5px;
}

.pasta-upload {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items:  center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.pasta-upload .hint {
  margin: 0;
}

.pasta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.pasta-item {
  display: flex;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  align-items:  center;
  gap: 12px;
  padding: 10px 12px;
}

.pasta-item:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.pasta-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.pasta-nome {
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
}

.pasta-nome:hover {
  color: var(--brand);
  text-decoration: underline;
}

.pasta-meta {
  color: var(--muted);
  font-size: 12px;
}

.almox-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 4px;
  padding: 4px;
}

.almox-tab {
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  transition: background .15s, color .15s;
  font-size: 13px;
  font-weight: 600;
}

.almox-tab:hover {
  color: var(--brand);
}

.almox-tab.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 3px #06351e1f;
}

.almox-check {
  display: flex;
  color: var(--muted);
  cursor: pointer;
  align-items:  center;
  gap: 7px;
  font-size: 13px;
}

.almox-check input {
  accent-color: var(--brand);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(12px)scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.login {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg);
  min-height: 100vh;
}

.login-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  color: #eafaf1;
  background: linear-gradient(160deg, #0c7a3f 0%, #06351e 100%);
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 52px;
}

.login-aside-top, .login-aside-mid, .login-aside-foot {
  position: relative;
  z-index: 1;
}

.login-aside-top {
  display: flex;
  align-items:  center;
}

.login-aside-logo {
  filter: drop-shadow(0 6px 16px #0000004d);
  width: 260px;
  max-width: 60%;
  height: auto;
}

.login-aside-mid, .login-aside-top, .login-aside-foot {
  max-width: 360px;
}

.login-badge {
  display: inline-block;
  letter-spacing: .4px;
  background: #ffffff29;
  border: 1px solid #ffffff40;
  border-radius: 30px;
  margin-bottom: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
}

.login-aside-mid h2 {
  margin: 0 0 14px;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.18;
}

.login-aside-mid p {
  color: #c6e9d4;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
}

.login-highlights {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.login-highlights li {
  display: flex;
  align-items:  center;
  gap: 13px;
  font-size: 14.5px;
}

.lh-icon {
  display: grid;
  color: #d6f6e3;
  background: #ffffff24;
  border-radius: 10px;
  flex-shrink: 0;
  place-items:  center;
  width: 36px;
  height: 36px;
}

.login-aside-foot {
  color: #9fd8ba;
  font-size: 12px;
}

.login-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  padding: 40px 24px;
}

.login-theme {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 24px;
}

.login-form-wrap {
  animation: popIn .3s ease;
  width: 100%;
  max-width: 380px;
}

.login-mobile-logo {
  display: none;
  width: 200px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 24px;
}

.login-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}

.login-sub {
  color: var(--muted);
  margin: 0 0 30px;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-field > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.input-icon {
  display: flex;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 12px;
  align-items:  center;
  gap: 10px;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
}

.input-icon:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.input-icon input {
  outline: none;
  color: var(--text);
  background: none;
  border: none;
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  font-family: inherit;
  font-size: 15px;
}

.pass-toggle {
  display: grid;
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 6px;
  place-items:  center;
  padding: 4px;
}

.pass-toggle:hover {
  color: var(--brand);
}

.login-btn {
  border-radius: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  font-size: 15.5px;
}

.login-error {
  background: var(--danger-soft);
  color: var(--danger);
  text-align: center;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
}

.login-demo {
  display: flex;
  border: 1px dashed var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 11px;
  align-items:  center;
  gap: 9px;
  margin-top: 26px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.4;
}

.login-demo svg {
  color: var(--brand);
  flex-shrink: 0;
}

.login-demo strong {
  color: var(--brand);
}

.table-compact {
  table-layout: auto;
}

.table-compact th, .table-compact td {
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
  padding: 8px 10px;
  font-size: 12.5px;
}

.table-compact th {
  letter-spacing: .02em;
  font-size: 10.5px;
}

.table-compact .pill {
  padding: 3px 8px;
  font-size: 11px;
}

.table-compact .col-actions {
  white-space: nowrap;
}

.agenda-banner {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  letter-spacing: .04em;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
}

.agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  margin: 16px 0 12px;
}

.agenda-nav {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
}

.agenda-nav .btn-secondary {
  padding: 8px 13px;
  font-size: 13px;
}

.agenda-periodo {
  color: var(--text);
  margin-left: 6px;
  font-weight: 700;
}

.agenda-span select {
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 28px 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
}

.agenda-legend {
  display: flex;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  font-size: 12px;
}

.agenda-legend-item {
  display: inline-flex;
  align-items:  center;
  gap: 7px;
}

.agenda-swatch {
  border: 1px solid #00000026;
  border-radius: 4px;
  width: 16px;
  height: 16px;
}

.agenda-grid-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: auto;
  border-radius: 14px;
  max-height: calc(100vh - 280px);
}

.agenda-grid {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.agenda-grid th, .agenda-grid td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agenda-grid thead th {
  position: sticky;
  z-index: 3;
  background: var(--surface-2);
  text-align: center;
  min-width: 116px;
  padding: 8px 10px;
  top: 0;
}

.ag-head {
  display: table-cell;
}

.ag-head-dow {
  display: block;
  text-transform: capitalize;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.ag-head-date {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
}

.ag-head.ag-today {
  box-shadow: inset 0 -3px 0 var(--brand);
}

.ag-head.ag-today .ag-head-dow {
  color: var(--brand);
}

.ag-corner, .ag-name {
  position: sticky;
  z-index: 2;
  background: var(--surface-2);
  text-align: left;
  color: var(--text);
  min-width: 168px;
  max-width: 200px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  left: 0;
}

.ag-corner {
  z-index: 4;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  font-size: 11px;
  top: 0;
}

.agenda-grid tbody tr:hover .ag-name {
  background: var(--badge-bg);
}

.ag-cell {
  cursor: pointer;
  vertical-align: middle;
  background: var(--surface);
  height: 52px;
  padding: 4px;
  transition: background .12s;
}

.ag-cell:hover {
  background: var(--surface-2);
}

.ag-cell.ag-weekend, .ag-head.ag-weekend {
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.ag-add {
  display: grid;
  color: #0000;
  place-items:  center;
  height: 100%;
  font-size: 18px;
  font-weight: 700;
}

.ag-cell:hover .ag-add {
  color: var(--muted);
}

.agenda-readonly .ag-cell {
  cursor: default;
}

.agenda-readonly .ag-cell:hover {
  background: var(--surface);
}

.agenda-readonly .ag-cell.ag-weekend, .agenda-readonly .ag-cell.ag-weekend:hover {
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.ag-block {
  display: flex;
  text-align: center;
  word-break: break-word;
  position: relative;
  border-radius: 7px;
  justify-content: center;
  align-items:  center;
  height: 100%;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.ag-obs-badge {
  position: absolute;
  display: inline-flex;
  box-sizing: border-box;
  color: #fff;
  box-shadow: 0 0 0 2px var(--surface);
  pointer-events: none;
  background: #e5231b;
  border-radius: 999px;
  justify-content: center;
  align-items:  center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  top: -2px;
  right: -2px;
}

.ag-obs-badge-toque {
  pointer-events: auto;
  cursor: pointer;
  outline-offset: 2px;
}

.ag-obs-badge-toque:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  inset: -5px;
}

.agenda-readonly .ag-cell.ag-cell-abrivel {
  cursor: zoom-in;
}

.ag-pessego {
  color: #6b3d12;
  background: #f6cba2;
}

.ag-marrom {
  color: #fff;
  background: #c2641b;
}

.ag-lavanda {
  color: #1f2d63;
  background: #c3cdee;
}

.ag-rosa {
  color: #6e1346;
  background: #f4a6d6;
}

.ag-rosa-forte {
  color: #fff;
  background: #e85fb0;
}

.ag-verde {
  color: #244d10;
  background: #93d06a;
}

.ag-laranja {
  color: #5c3800;
  background: #f6a51f;
}

.ag-ciano {
  color: #064a4c;
  background: #2fe3e3;
}

.ag-azul {
  color: #fff;
  background: #2f6ed4;
}

.ag-amarelo {
  color: #5c5200;
  background: #f6e017;
}

.ag-branco {
  color: #20303a;
  background: #fff;
  border: 1px solid #d7dee4;
}

.ag-preagendado {
  color: #7a5200;
  background: #fdebb0;
  border: 1px dashed #cf9b1f;
}

.ag-confirmado {
  color: #fff;
  background: #0c7a3f;
}

.agenda-swatch.ag-branco {
  background: #fff;
}

.agenda-modal {
  max-width: 480px;
}

.agenda-modal-info {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 16px;
  padding: 10px 14px;
}

.agenda-modal-info strong {
  font-size: 15px;
}

.agenda-cor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.agenda-cor-opt {
  cursor: pointer;
  text-align: center;
  opacity: .85;
  border: 2px solid #0000;
  border-radius: 8px;
  padding: 9px 10px;
  transition: opacity .12s, transform .1s, box-shadow .12s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.agenda-cor-opt:hover {
  opacity: 1;
}

.agenda-cor-opt.selected {
  opacity: 1;
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
  transform: translateY(-1px);
}

.btn-danger-text {
  color: var(--danger);
}

.btn-danger-text:hover {
  background: var(--danger-soft);
}

.folgas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.folgas-head {
  display: flex;
  align-items:  center;
}

.folga-acoes {
  display: inline-flex;
  gap: 8px;
}

.folga-aval {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folga-motivo {
  color: var(--text);
  font-size: 13px;
}

.folga-quem {
  font-size: 11.5px;
}

.folga-modal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

@media (width <= 980px) {
  .login {
    grid-template-columns: 1fr;
  }

  .login-aside {
    display: none;
  }

  .login-mobile-logo {
    display: block;
  }
}

.icon-btn-cert:hover {
  color: #0284c7;
  background: #0ea5e929;
}

.agenda-nav {
  display: inline-flex;
  align-items:  center;
  gap: 6px;
}

.agenda-mes {
  text-align: center;
  min-width: 150px;
  font-size: 14.5px;
  font-weight: 700;
}

.agenda-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px;
}

.agenda-eq {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  border-radius: 12px;
}

.agenda-eq-head {
  display: flex;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  padding: 12px 16px;
}

.agenda-eq-nome {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agenda-eq-nome strong {
  font-size: 14.5px;
}

.agenda-eq-sub {
  color: var(--muted);
  margin-top: 1px;
  font-size: 12px;
}

.agenda-vazio {
  color: var(--muted);
  padding: 12px 16px;
  font-size: 13px;
}

.agenda-libs {
  display: flex;
  flex-direction: column;
}

.agenda-lib {
  display: grid;
  grid-template-columns: 150px 1.4fr 1fr auto auto;
  border-top: 1px solid var(--border);
  align-items:  center;
  gap: 12px;
  padding: 10px 16px;
}

.agenda-lib:first-child {
  border-top: none;
}

.agenda-periodo {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.agenda-os {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agenda-os-nome {
  font-size: 13.5px;
  font-weight: 600;
}

.agenda-os-cli {
  color: var(--muted);
  font-size: 12px;
}

.agenda-para {
  color: var(--text);
  font-size: 13px;
}

.agenda-acoes {
  display: inline-flex;
  justify-content: flex-end;
  gap: 4px;
}

@media (width <= 720px) {
  .agenda-lib {
    grid-template-columns: 1fr auto;
    grid-auto-rows: min-content;
    row-gap: 4px;
  }

  .agenda-para {
    grid-column: 1 / -1;
  }
}

.lib-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.lib-toggle-btn {
  display: inline-flex;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 7px;
  padding: 10px 12px;
  transition: all .15s;
  font-size: 13.5px;
  font-weight: 600;
}

.lib-toggle-btn.on {
  border-color: var(--brand);
  background: var(--ok-soft);
  color: var(--brand);
}

.lib-toggle-btn.danger.on {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.section-title {
  color: var(--text);
  margin: 22px 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 20px;
}

.btn-link {
  cursor: pointer;
  color: var(--brand);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

.perm-box {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px;
}

.perm-actions {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 10px;
}

.perm-sep {
  color: var(--muted);
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 14px;
}

.perm-check {
  display: flex;
  cursor: pointer;
  color: var(--text);
  align-items:  center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.perm-check input {
  accent-color: var(--brand);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.perm-hint {
  margin-top: 10px;
  font-size: 12px;
}

.solicitar-form {
  margin-bottom: 8px;
}

.solicitar-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.inspecao-form {
  margin-bottom: 8px;
}

.inspecao-checklist {
  margin-top: 18px;
}

.inspecao-check-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
}

.inspecao-check-head .section-title {
  margin: 0;
}

.inspecao-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.inspecao-item {
  display: grid;
  grid-template-columns: 1.4fr 150px 1.3fr;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
}

.inspecao-item.is-nc {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.inspecao-item-label {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.inspecao-item-select, .inspecao-item-obs {
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  outline: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
}

.inspecao-item-select {
  padding-right: 28px;
}

.inspecao-item-select:focus, .inspecao-item-obs:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.inspecao-item-fotos {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hidden-input {
  display: none;
}

.inspecao-foto-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
}

.btn-foto {
  display: inline-flex;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

.btn-foto:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-foto:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-foto-ghost {
  color: var(--brand);
  background: none;
}

.inspecao-foto-contador {
  color: var(--muted);
  font-size: 11.5px;
}

.inspecao-foto-lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.inspecao-foto-thumb {
  position: relative;
  width: 84px;
  height: 84px;
}

.inspecao-foto-lista.compacta .inspecao-foto-thumb {
  width: 56px;
  height: 56px;
}

.inspecao-foto-abrir {
  display: block;
  cursor: zoom-in;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  padding: 0;
}

.inspecao-foto-abrir img {
  object-fit: cover;
  display: block;
  width: 100%;
  height: 100%;
}

.inspecao-foto-remover {
  position: absolute;
  display: grid;
  border: 2px solid var(--surface);
  background: var(--danger);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 50%;
  place-items:  center;
  width: 24px;
  height: 24px;
  top: -6px;
  right: -6px;
  box-shadow: 0 1px 4px #0000004d;
}

.inspecao-foto-remover:hover {
  filter: brightness(1.1);
}

.foto-zoom {
  display: grid;
  cursor: zoom-out;
  place-items:  center;
  padding: 24px;
}

.foto-zoom img {
  cursor: default;
  border-radius: 10px;
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  box-shadow: 0 12px 40px #00000080;
}

.foto-zoom-fechar {
  position: absolute;
  background: var(--surface);
  top: 16px;
  right: 16px;
}

.inspecao-foot {
  display: flex;
  justify-content: flex-end;
  align-items:  center;
  gap: 10px;
  margin-top: 18px;
}

.modal-lg {
  max-width: 760px;
}

.inspecao-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 12px;
  margin-bottom: 14px;
}

.inspecao-modal-obs {
  color: var(--text);
  margin-top: 12px;
  font-size: 13.5px;
}

.is-nc-row td {
  background: var(--danger-soft);
}

@media (width <= 720px) {
  .inspecao-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.agenda-dia-info {
  display: flex;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.agenda-dia-servico {
  margin-bottom: 4px;
}

.agenda-dia-servico .ag-block {
  height: auto;
  min-height: 38px;
  padding: 10px 12px;
  font-size: 13px;
}

.agenda-dia-servico p {
  margin: 6px 0 0;
  font-size: 12px;
}

.agenda-dia-folga {
  margin: 10px 0 0;
  font-size: 13px;
}

.agenda-obs {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 12px;
}

.agenda-obs-head {
  display: flex;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.agenda-obs-contador {
  display: inline-flex;
  color: #fff;
  letter-spacing: 0;
  background: #e5231b;
  border-radius: 999px;
  justify-content: center;
  align-items:  center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 800;
}

.agenda-obs-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-obs-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.agenda-obs-texto {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
}

.agenda-obs-rodape {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 10px;
  font-size: 11px;
}

.dev-painel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dev-card-btn {
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
}

.dev-card-btn:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.dev-colunas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.dev-bloco {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
}

.dev-bloco .section-title {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin: 0 0 12px;
}

.dev-bloco .section-title > svg {
  box-sizing: content-box;
  background: var(--badge-bg);
  color: var(--brand);
  border-radius: 9px;
  flex: none;
  width: 17px;
  height: 17px;
  padding: 7px;
}

[data-theme="dark"] .dev-bloco .section-title > svg {
  color: var(--brand-glow);
}

.dev-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.dev-lista li {
  display: flex;
  background: var(--surface-2);
  border-radius: 10px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
}

.dev-lista-cards li {
  border: 1px solid var(--border);
  background: var(--surface);
}

.dev-lista-main {
  display: flex;
  flex-direction: column;
  flex: auto;
  gap: 2px;
  min-width: 0;
}

.dev-lista-main strong {
  font-weight: 600;
}

.dev-lista-main small {
  font-size: 12px;
}

.dev-passou {
  opacity: .62;
}

.dev-acoes {
  display: flex;
  flex: none;
  align-items:  center;
  gap: 4px;
}

.dev-ok {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.dev-alerta {
  display: flex;
  border: 1px solid var(--warn-border, var(--border));
  background: var(--surface-2);
  border-radius: 12px;
  align-items:  center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
}

.dev-alerta svg {
  color: var(--warn, #e9a13b);
  flex: none;
}

.dev-alerta > span {
  flex: auto;
}

.dev-alerta .btn-sm {
  flex: none;
}

.dev-email-nota, .dev-email-erro, .dev-email-ok {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  margin: 0 0 14px;
  padding: 9px 12px;
  font-size: 13px;
}

.dev-email-erro {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
}

.dev-email-ok {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 35%, var(--border));
  margin: 12px 0 0;
}

.dev-email-nota code {
  font-size: 12px;
}

.dev-email-sub {
  border-top: 1px solid var(--border);
  margin: 18px 0 8px;
  padding-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
}

.ren-intro {
  max-width: 620px;
  margin: 0;
  font-size: 13px;
}

.dev-alerta-pedido {
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  border-left: 3px solid var(--brand);
  width: 100%;
  margin-bottom: 16px;
}

.dev-alerta-pedido svg {
  color: var(--brand);
}

[data-theme="dark"] .dev-alerta-pedido svg {
  color: var(--brand-glow);
}

.dev-alerta-pedido:hover {
  border-color: var(--brand);
}

.dev-alerta-acao {
  color: var(--brand);
  white-space: nowrap;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}

[data-theme="dark"] .dev-alerta-acao {
  color: var(--brand-glow);
}

.dev-status-select {
  font: inherit;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  background-position: right 7px center;
  border-radius: 8px;
  padding: 5px 26px 5px 9px;
  font-size: 12.5px;
}

.dev-check {
  display: inline-flex;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  align-items:  center;
  gap: 9px;
  padding: 8px 12px;
  font-size: 13px;
}

.dev-check:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  color: var(--text);
}

.dev-comentarios {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 12px;
}

.dev-comentar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dev-comentar input {
  flex: auto;
}

.dev-barras {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.dev-barras li {
  display: flex;
  align-items:  center;
  gap: 10px;
  font-size: 13px;
}

.dev-barra-nome {
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 0;
  flex: 0 0 180px;
  padding: 0;
}

.dev-barra-nome:hover {
  color: var(--brand);
  text-decoration: underline;
}

.dev-barra-trilho {
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 999px;
  flex: auto;
  height: 8px;
}

.dev-barra-fill {
  display: block;
  background: var(--brand);
  height: 100%;
}

.dev-barra-valor {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  flex: none;
}

.dev-falhas {
  color: var(--danger);
}

.dev-json {
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow-x: auto;
  white-space: pre-wrap;
  border-radius: 10px;
  margin: 10px 0 0;
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
}

@media (width <= 720px) {
  .dev-barra-nome {
    flex-basis: 120px;
  }

  .dev-lista li {
    flex-wrap: wrap;
  }
}

.triagem-abas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.triagem-abas button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13.5px;
}

.triagem-abas button.ativa {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.triagem-link-linha {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  margin-top: 10px;
}

.triagem-link-linha input {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  flex: 320px;
  min-width: 0;
  padding: 9px 11px;
}

.btn-whats {
  font: inherit;
  cursor: pointer;
  color: #fff;
  background: #25d366;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
}

.dev-mes-nav {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.dev-mes-nav > strong:first-letter, .agenda-mes:first-letter {
  text-transform: uppercase;
}

.dev-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 18px;
}

.dev-cal-cab {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 4px 0;
  font-size: 11.5px;
  font-weight: 700;
}

.dev-cal-dia {
  text-align: left;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  flex-direction: column;
  gap: 3px;
  min-height: 92px;
  padding: 5px 6px;
}

.dev-cal-dia:hover {
  border-color: var(--brand);
}

.dev-cal-dia.fora {
  opacity: .45;
}

.dev-cal-dia.hoje {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.dev-cal-num {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dev-cal-dia.hoje .dev-cal-num {
  color: var(--brand);
}

.dev-cal-item {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 11px;
  line-height: 1.3;
}

.dev-cal-item.pelolink {
  background: #2a6f9738;
}

.dev-cal-item.realizada {
  opacity: .55;
  text-decoration: line-through;
}

.dev-cal-item.cancelada {
  opacity: .4;
  text-decoration: line-through;
}

.dev-cal-mais {
  color: var(--muted);
  font-size: 10.5px;
}

.dev-livres {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dev-livres-linha {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
}

.dev-faixa-form {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  margin: 10px 0;
}

.dev-faixa-form input, .dev-faixa-form select {
  font: inherit;
  border: 1px solid var(--border);
  background-color: var(--surface-2);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 10px;
}

.dev-faixa-form select {
  padding-right: 30px;
}

.dev-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dev-slot {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}

.dev-grafico {
  margin: 12px 0;
}

.dev-svg {
  width: 100%;
  height: 120px;
}

.dev-svg-barra {
  fill: var(--brand);
  opacity: .75;
}

.dev-svg-falha {
  fill: var(--danger);
}

.dev-svg-eixo {
  stroke: var(--border);
  stroke-width: 1;
}

.dev-grafico-legenda {
  display: flex;
  color: var(--muted);
  flex-wrap: wrap;
  align-items:  center;
  gap: 16px;
  font-size: 12px;
}

.dev-legenda-cor {
  display: inline-block;
  border-radius: 3px;
  width: 10px;
  height: 10px;
  margin-right: 5px;
}

.dev-legenda-eventos {
  background: var(--brand);
}

.dev-legenda-falhas {
  background: var(--danger);
}

.dev-numeros {
  display: flex;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 13px;
}

.dev-numeros strong {
  color: var(--text);
  font-size: 15px;
}

.dev-lista-topo {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
  font-size: 12.5px;
}

.pub {
  display: flex;
  background: var(--bg, #f6f7f6);
  flex-direction: column;
  min-height: 100vh;
}

.pub-topo {
  display: flex;
  color: #fff;
  background: #0c7a3f;
  align-items:  center;
  gap: 12px;
  padding: 14px 20px;
  font-weight: 600;
}

.pub-topo img {
  height: 26px;
}

.pub-corpo {
  display: flex;
  flex: auto;
  justify-content: center;
  align-items:  flex-start;
  padding: 24px 16px;
}

.pub-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e3e3e3);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  padding: 22px 24px;
}

.pub-card h1 {
  margin: 0 0 6px;
  font-size: 21px;
}

.pub-card h2 {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, #667);
  display: flex;
  align-items:  center;
  gap: 6px;
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.pub-instrucao {
  background: #0c7a3f14;
  border-radius: 10px;
  margin: 12px 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.pub-dias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.pub-dia {
  text-align: left;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border, #e3e3e3);
  background: var(--surface-2, #fafafa);
  display: flex;
  text-transform: capitalize;
  border-radius: 12px;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
}

.pub-dia small {
  color: var(--muted, #667);
  text-transform: none;
  font-size: 12px;
}

.pub-dia:hover {
  border-color: #0c7a3f;
}

.pub-dia.on {
  background: #0c7a3f1f;
  border-color: #0c7a3f;
}

.pub-horas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-hora {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border, #e3e3e3);
  background: var(--surface-2, #fafafa);
  border-radius: 999px;
  padding: 9px 16px;
}

.pub-hora:hover {
  border-color: #0c7a3f;
}

.pub-hora.on {
  color: #fff;
  background: #0c7a3f;
  border-color: #0c7a3f;
  font-weight: 600;
}

.pub-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pub-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.pub-form label > span {
  color: var(--muted, #667);
  font-weight: 600;
}

.pub-form .pub-wide {
  grid-column: 1 / -1;
}

.pub-form input, .pub-form textarea {
  font: inherit;
  border: 1px solid var(--border, #e3e3e3);
  background: var(--surface-2, #fafafa);
  color: inherit;
  border-radius: 10px;
  padding: 9px 11px;
}

.pub-btn {
  color: #fff;
  font: inherit;
  cursor: pointer;
  background: #0c7a3f;
  border: 0;
  border-radius: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
}

.pub-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.pub-erro {
  color: #a3313f;
  background: #d1495b1f;
  border-radius: 10px;
  margin-top: 12px;
  padding: 9px 12px;
  font-size: 13.5px;
}

.pub-vazio {
  color: var(--muted, #667);
  margin: 18px 0;
}

.pub-fim {
  text-align: center;
}

.pub-ok {
  display: inline-flex;
  color: #0c7a3f;
  background: #0c7a3f26;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

.pub-rodape {
  text-align: center;
  color: var(--muted, #667);
  padding: 14px 20px;
  font-size: 12px;
}

@media (width <= 560px) {
  .pub-form {
    grid-template-columns: 1fr;
  }
}

.dev-quadro {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  overflow-x: auto;
  align-items:  start;
  gap: 10px;
  padding-bottom: 6px;
}

.dev-quadro-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 120px;
  padding: 8px;
}

.dev-quadro-cab {
  display: flex;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  justify-content: space-between;
  align-items:  center;
  padding: 2px 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.dev-quadro-cab small {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
}

.dev-quadro-vazio {
  text-align: center;
  color: var(--muted);
  opacity: .5;
  margin: 12px 0;
}

.dev-card-solic {
  display: flex;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 7px;
  padding: 8px 10px;
}

.dev-card-solic:hover {
  border-color: var(--brand);
}

.dev-card-solic.alta {
  border-left-color: #e9a13b;
}

.dev-card-solic.urgente {
  border-left-color: var(--danger);
}

.dev-card-solic.atrasada {
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}

.dev-card-solic strong {
  font-size: 13.5px;
  line-height: 1.35;
}

.dev-card-solic header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 6px;
}

.dev-card-prot {
  letter-spacing: .05em;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.dev-card-coment {
  display: inline-flex;
  align-items:  center;
  gap: 4px;
}

.dev-card-prio {
  text-transform: uppercase;
  background: var(--badge-bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
}

.dev-card-solic footer {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11px;
}

.dev-card-velho {
  color: var(--danger);
  font-weight: 600;
}

.dev-card-atraso {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-radius: 999px;
  padding: 0 6px;
  font-weight: 600;
}

.dev-card-mover {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 7px;
  margin-left: auto;
  padding: 2px 8px;
  font-size: 14px;
  line-height: 1;
}

.dev-card-mover:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

@media (width <= 900px) {
  .dev-quadro {
    grid-template-columns: repeat(5, 78vw);
  }
}

.pub-protocolo {
  display: inline-block;
  letter-spacing: .08em;
  color: #0c7a3f;
  background: #0c7a3f1a;
  border-radius: 999px;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.pub-situacao {
  display: flex;
  background: #0c7a3f17;
  border-left: 3px solid #0c7a3f;
  border-radius: 12px;
  flex-direction: column;
  gap: 3px;
  margin: 16px 0;
  padding: 12px 14px;
}

.pub-situacao.recusada {
  background: #d1495b1a;
  border-left-color: #d1495b;
}

.pub-situacao strong {
  font-size: 16px;
}

.pub-situacao small {
  color: var(--muted, #667);
  font-size: 12px;
}

.pub-etapas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
}

.pub-etapas li {
  display: flex;
  color: var(--muted, #667);
  opacity: .55;
  align-items:  center;
  gap: 6px;
  font-size: 12.5px;
}

.pub-etapas li.feita, .pub-etapas li.atual {
  opacity: 1;
}

.pub-etapas li.atual {
  color: #0c7a3f;
  font-weight: 700;
}

.pub-bolinha {
  display: inline-flex;
  border: 1px solid;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.pub-etapas li.feita .pub-bolinha, .pub-etapas li.atual .pub-bolinha {
  color: #fff;
  background: #0c7a3f;
  border-color: #0c7a3f;
}

.pub-texto {
  white-space: pre-wrap;
  line-height: 1.55;
}

.pub-entrega {
  display: flex;
  color: #0c7a3f;
  background: #0c7a3f1a;
  border-radius: 10px;
  align-items:  center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.pub-rodape-nota {
  margin-top: 18px;
  font-size: 12px;
}

.aud-spark {
  display: block;
  overflow: visible;
  width: 100%;
  height: 26px;
  margin-top: 7px;
}

.aud-spark-linha {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.aud-spark-area {
  fill: currentColor;
  opacity: .14;
}

.aud-card-nota {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11.5px;
}

.aud-card-nota.forte {
  color: var(--danger);
  font-weight: 700;
}

.aud-bloco {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 18px;
}

.aud-head {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
  margin-bottom: 14px;
}

.aud-head-icone {
  display: grid;
  background: var(--badge-bg);
  color: var(--brand);
  border-radius: 9px;
  flex-shrink: 0;
  place-items:  center;
  width: 32px;
  height: 32px;
}

.aud-head-txt {
  display: flex;
  flex-direction: column;
  flex: auto;
  min-width: 0;
}

.aud-head-txt h3 {
  color: var(--text);
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
}

.aud-head-txt small {
  color: var(--muted);
  font-size: 12px;
}

.aud-head-acao {
  display: flex;
  flex: none;
  align-items:  center;
  gap: 8px;
}

.aud-graf {
  display: flex;
  align-items:  flex-end;
  gap: 2px;
  height: 118px;
}

.aud-graf-col {
  display: flex;
  border-radius: 4px 4px 0 0;
  flex: 1 1 0;
  align-items:  flex-end;
  min-width: 3px;
  height: 100%;
  transition: background .12s;
}

.aud-graf-col:hover {
  background: color-mix(in srgb, var(--muted) 14%, transparent);
}

.aud-graf-barra {
  position: relative;
  display: block;
  background: var(--brand);
  opacity: .82;
  border-radius: 3px 3px 0 0;
  width: 100%;
  min-height: 2px;
}

.aud-graf-col:hover .aud-graf-barra {
  opacity: 1;
}

.aud-graf-falha {
  position: absolute;
  background: var(--danger);
  border-radius: 0 0 3px 3px;
  min-height: 2px;
  bottom: 0;
  left: 0;
  right: 0;
}

.aud-graf-media {
  position: absolute;
  border-top: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent);
  pointer-events: none;
  height: 0;
  left: 0;
  right: 0;
}

.aud-graf-eixo {
  display: flex;
  color: var(--muted);
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11.5px;
}

.aud-legenda {
  display: flex;
  color: var(--muted);
  flex-wrap: wrap;
  align-items:  center;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
}

.aud-legenda i {
  display: inline-block;
  vertical-align: -1px;
  border-radius: 3px;
  width: 10px;
  height: 10px;
  margin-right: 6px;
}

.aud-legenda-eventos {
  background: var(--brand);
}

.aud-legenda-falhas {
  background: var(--danger);
}

.aud-alertas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.aud-alerta {
  display: flex;
  text-align: left;
  cursor: pointer;
  font: inherit;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 12px;
  align-items:  flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.aud-alerta:hover {
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  transform: translateY(-1px);
}

.aud-alerta-icone {
  display: grid;
  background: var(--badge-bg);
  color: var(--muted);
  border-radius: 9px;
  flex-shrink: 0;
  place-items:  center;
  width: 34px;
  height: 34px;
}

.aud-alerta-corpo {
  display: flex;
  flex-direction: column;
  flex: auto;
  gap: 2px;
  min-width: 0;
}

.aud-alerta-tipo {
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.aud-alerta-titulo {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 700;
}

.aud-alerta-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.aud-alerta-seta {
  color: var(--muted);
  opacity: .5;
  flex: none;
  align-self:  center;
}

.aud-alerta:hover .aud-alerta-seta {
  opacity: 1;
  color: var(--brand);
}

.aud-alerta.grave {
  border-left-color: var(--danger);
}

.aud-alerta.grave .aud-alerta-icone {
  background: var(--danger-soft);
  color: var(--danger);
}

.aud-alerta.grave .aud-alerta-tipo {
  color: var(--danger);
}

.aud-alerta.atencao {
  border-left-color: var(--warn);
}

.aud-alerta.atencao .aud-alerta-icone {
  background: var(--warn-soft);
  color: var(--warn);
}

.aud-alerta.atencao .aud-alerta-tipo {
  color: var(--warn);
}

.aud-sistemas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.aud-sistema {
  display: flex;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-direction: column;
  gap: 7px;
  padding: 13px 14px;
  transition: border-color .15s, transform .15s;
}

.aud-sistema:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.aud-sistema-nome {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.aud-sistema-linha {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.aud-sistema-valor {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.aud-sistema-unidade {
  color: var(--muted);
  font-size: 11.5px;
}

.aud-sistema-trilho {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  overflow: hidden;
  border-radius: 999px;
  height: 5px;
}

.aud-sistema-fill {
  display: block;
  background: var(--brand);
  border-radius: 999px;
  height: 100%;
}

.aud-sistema-pe {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
}

.aud-sistema-pe .falha {
  color: var(--danger);
  font-weight: 700;
}

.aud-sistema.ativo {
  border-color: var(--brand);
  background: var(--badge-bg);
}

.aud-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
  margin-bottom: 12px;
}

.aud-filtros .search-wrap {
  flex: 260px;
  min-width: 220px;
}

.aud-datas {
  display: flex;
  color: var(--muted);
  align-items:  center;
  gap: 6px;
  font-size: 12.5px;
}

.aud-chips {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.aud-chip {
  display: inline-flex;
  font: inherit;
  cursor: pointer;
  background: var(--badge-bg);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 999px;
  align-items:  center;
  gap: 7px;
  padding: 5px 8px 5px 11px;
  font-size: 12.5px;
}

.aud-chip b {
  font-weight: 700;
}

.aud-chip:hover {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}

.aud-chip svg {
  opacity: .7;
}

.aud-limpar {
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 4px;
  font-size: 12.5px;
}

.aud-limpar:hover {
  color: var(--danger);
}

.aud-dia-head {
  display: flex;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  align-items:  center;
  gap: 12px;
  margin: 20px 0 10px;
  font-size: 11.5px;
  font-weight: 800;
}

.aud-dia-head:after {
  content: "";
  background: var(--border);
  flex: auto;
  height: 1px;
}

.aud-dia-head .aud-dia-qtd {
  letter-spacing: 0;
  text-transform: none;
  opacity: .8;
  font-weight: 600;
}

.aud-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.aud-evento {
  display: flex;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items:  center;
  gap: 13px;
  width: 100%;
  padding: 11px 14px;
  transition: border-color .12s, background .12s;
}

.aud-evento:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: var(--surface-2);
}

.aud-evento-hora {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  flex: 0 0 52px;
  font-size: 13px;
  font-weight: 700;
}

.aud-evento-icone {
  display: grid;
  background: var(--badge-bg);
  color: var(--brand);
  border-radius: 9px;
  flex-shrink: 0;
  place-items:  center;
  width: 32px;
  height: 32px;
}

.aud-evento-icone.del {
  background: var(--warn-soft);
  color: var(--warn);
}

.aud-evento-icone.falha {
  background: var(--danger-soft);
  color: var(--danger);
}

.aud-evento-corpo {
  display: flex;
  flex-direction: column;
  flex: auto;
  gap: 2px;
  min-width: 0;
}

.aud-evento-frase {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}

.aud-evento-frase b {
  font-weight: 700;
}

.aud-evento-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
}

.aud-evento-rel {
  color: var(--muted);
  white-space: nowrap;
  flex: none;
  font-size: 12px;
}

.aud-evento-quem {
  font: inherit;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.aud-evento-quem:hover {
  color: var(--brand);
  text-decoration: underline;
}

.aud-dossie {
  width: 94vw;
  max-width: 860px;
}

.aud-dossie-num {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.aud-num {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 11px;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 11px 13px;
}

.aud-num b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.aud-num span {
  color: var(--muted);
  font-size: 11.5px;
}

.aud-num.alerta b {
  color: var(--danger);
}

.aud-num-texto {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items:  start;
}

.aud-num-texto .aud-num b {
  font-variant-numeric: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13.5px;
  line-height: 1.25;
}

.aud-num-texto .aud-num span {
  overflow-wrap: anywhere;
}

.aud-duas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.aud-mini-titulo {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 800;
}

.aud-ips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.aud-ips li {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
}

.aud-ips strong {
  font-family: ui-monospace, Cascadia Mono, Consolas, monospace;
  font-size: 13px;
}

.aud-ips .aud-ip-nota {
  color: var(--muted);
  text-align: right;
  margin-left: auto;
}

.aud-vazio {
  color: var(--muted);
  padding: 10px 0;
  font-size: 13px;
}

@media (width <= 760px) {
  .aud-evento {
    flex-wrap: wrap;
    gap: 8px;
  }

  .aud-evento-hora {
    flex-basis: auto;
  }

  .aud-evento-frase {
    white-space: normal;
  }

  .aud-filtros .search-wrap {
    flex-basis: 100%;
  }
}

.ag {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ag-barra {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
}

.ag-nav {
  display: flex;
  align-items:  center;
  gap: 6px;
  min-height: 38px;
}

.ag-periodo {
  margin-left: 6px;
  font-size: 17px;
  font-weight: 700;
}

.ag-periodo:first-letter {
  text-transform: uppercase;
}

.ag-barra-dir {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
}

.ag-seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  gap: 2px;
  padding: 3px;
}

.ag-seg button {
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
}

.ag-seg button:hover {
  color: var(--text);
}

.ag-seg button.ativo {
  background: var(--badge-bg);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 600;
}

.ag-corpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items:  start;
  gap: 16px;
}

.ag-principal {
  min-width: 0;
}

.ag-semana {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  border-radius: 14px;
}

.ag-semana-rolagem {
  overflow-x: auto;
}

.ag-semana-cab, .ag-semana-grade {
  display: grid;
  min-width: -moz-fit-content;
  min-width: fit-content;
}

.ag-semana-cab {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.ag-dia-cab {
  display: flex;
  border-left: 1px solid var(--border);
  justify-content: center;
  align-items:  center;
  gap: 6px;
  padding: 10px 4px;
}

.ag-dia-nome {
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.ag-dia-num {
  text-align: center;
  color: var(--text);
  border-radius: 999px;
  min-width: 32px;
  height: 32px;
  font-size: 17px;
  font-weight: 700;
  line-height: 32px;
}

.ag-dia-cab.hoje .ag-dia-num {
  background: var(--brand);
  color: #fff;
}

.ag-dia-cab.hoje .ag-dia-nome {
  color: var(--brand);
}

[data-theme="dark"] .ag-dia-cab.hoje .ag-dia-nome {
  color: var(--brand-glow);
}

.ag-dia-cab.passou .ag-dia-num {
  color: var(--muted);
}

.ag-dia-qtd {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
}

.ag-dia-todo > div {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
}

.ag-chip {
  font: inherit;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--text);
  border: 1px solid #0000;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11.5px;
}

.ag-chip.st-pendente {
  border: 1px dashed var(--brand);
  background: none;
}

.ag-horas, .ag-semana-cab > span:first-child, .ag-dia-todo > .ag-hora-rot {
  position: sticky;
  z-index: 3;
  background: var(--surface);
  left: 0;
}

.ag-hora-rot {
  position: absolute;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  right: 8px;
  transform: translateY(-50%);
}

.ag-horas .ag-hora-rot:first-child {
  transform: translateY(3px);
}

.ag-dia-todo .ag-hora-rot {
  position: static;
  text-align: right;
  align-self:  center;
  padding-right: 8px;
  transform: none;
}

.ag-coluna {
  position: relative;
  cursor: copy;
  border-left: 1px solid var(--border);
  background-image: linear-gradient(to bottom, var(--border) 1px, transparent 1px);
}

.ag-coluna.passou {
  background-color: color-mix(in srgb, var(--surface-2) 55%, transparent);
}

.ag-coluna.hoje {
  background-color: color-mix(in srgb, var(--brand) 4%, transparent);
}

.ag-livre {
  position: absolute;
  pointer-events: none;
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border-left: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  left: 0;
  right: 0;
}

.ag-bloq {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--muted) 16%, transparent) 6px 7px);
  left: 0;
  right: 0;
}

.ag-bloq span {
  display: block;
  color: var(--muted);
  padding: 3px 6px;
  font-size: 10.5px;
}

.ag-ev {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  text-align: left;
  font: inherit;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid #0000;
  border-left-width: 3px;
  border-radius: 8px;
  flex-direction: column;
  align-items:  flex-start;
  gap: 1px;
  padding: 4px 7px;
  transition: transform .12s, box-shadow .12s;
}

.ag-ev:hover {
  box-shadow: var(--shadow-md);
  z-index: 3;
  transform: translateY(-1px);
}

.ag-ev.st-ok {
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  border-left-color: var(--brand);
}

[data-theme="dark"] .ag-ev.st-ok {
  background: color-mix(in srgb, var(--brand) 26%, var(--surface));
  border-left-color: var(--brand-glow);
}

.ag-ev.st-pendente {
  background: var(--surface);
  border: 1.5px dashed color-mix(in srgb, var(--brand) 70%, var(--border));
  border-left: 3px solid var(--brand);
}

.ag-ev.st-neutro {
  background: var(--surface-2);
  border-left-color: var(--border);
  color: var(--muted);
  box-shadow: none;
}

.ag-ev.cancelada .ag-ev-tit, .ag-ev.realizada .ag-ev-tit {
  text-decoration: line-through;
}

.ag-ev.cancelada {
  opacity: .55;
}

.ag-ev-hora {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
}

.ag-ev-hora em {
  color: var(--brand);
  font-style: normal;
}

[data-theme="dark"] .ag-ev-hora em {
  color: var(--brand-glow);
}

.ag-ev-tit {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  width: 100%;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

.ag-ev-sub {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-size: 11px;
}

.ag-ev.curto {
  flex-direction: row;
  align-items:  center;
  gap: 6px;
  padding-top: 0;
  padding-bottom: 0;
}

.ag-ev.curto .ag-ev-hora {
  flex: none;
}

.ag-ev.curto .ag-ev-tit {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: auto;
  width: auto;
  min-width: 0;
}

.ag-agora {
  position: absolute;
  background: var(--brand);
  z-index: 2;
  pointer-events: none;
  height: 2px;
  left: -1px;
  right: 0;
}

.ag-agora:before {
  content: "";
  position: absolute;
  background: var(--brand);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  top: -4px;
  left: -4px;
}

[data-theme="dark"] .ag-agora, [data-theme="dark"] .ag-agora:before {
  background: var(--brand-glow);
}

.ag-legenda {
  display: flex;
  border-top: 1px solid var(--border);
  color: var(--muted);
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px 16px;
  margin: 0;
  padding: 10px 14px;
  font-size: 11.5px;
}

.ag-legenda > span {
  display: inline-flex;
  white-space: nowrap;
  align-items:  center;
  gap: 6px;
}

.ag-leg {
  display: inline-block;
  border-radius: 3px;
  width: 14px;
  height: 10px;
}

.ag-leg-livre {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-left: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

.ag-leg-ok {
  background: color-mix(in srgb, var(--brand) 30%, var(--surface));
}

.ag-leg-pend {
  border: 1.5px dashed var(--brand);
}

.ag-leg-bloq {
  background: repeating-linear-gradient(135deg, transparent 0 2px, var(--muted) 2px 3px);
  opacity: .6;
}

.ag-mes {
  margin: 0;
}

.dev-cal-item.st-pendente {
  border: 1px dashed var(--brand);
  background: none;
}

.dev-cal-item.st-neutro {
  background: var(--surface-2);
}

.ag-lado {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ag-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
}

.ag-card-tit {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.ag-card-tit > svg {
  color: var(--brand);
  flex: none;
}

[data-theme="dark"] .ag-card-tit > svg {
  color: var(--brand-glow);
}

.ag-card-sub {
  color: var(--muted);
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
}

.ag-card-sub:first-letter {
  text-transform: uppercase;
}

.ag-ligado {
  color: var(--brand);
  font-weight: 600;
}

[data-theme="dark"] .ag-ligado {
  color: var(--brand-glow);
}

.ag-contagem {
  display: inline-grid;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  place-items:  center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.ag-vazio {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.ag-aviso {
  color: var(--warn);
  margin: 10px 0 0;
  font-size: 12.5px;
}

.ag-msg {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 12.5px;
}

.ag-linha-botoes {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
  margin-top: 10px;
}

.ag-linha-botoes .btn-link {
  margin: 0;
}

.ag-instalar {
  margin-top: 10px;
}

.ag-card > .btn-link {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
}

.ag-pedidos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.ag-pedido {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  display: flex;
  border-radius: 12px;
  flex-direction: column;
  gap: 7px;
  padding: 11px 12px;
}

.ag-pedido-quem {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.ag-pedido-quem > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ag-pedido-quem strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
}

.ag-pedido-quem small {
  color: var(--muted);
  font-size: 11.5px;
}

.ag-avatar {
  display: grid;
  background: var(--badge-bg);
  color: var(--brand);
  border: 1px solid var(--border);
  border-radius: 50%;
  flex: none;
  place-items:  center;
  width: 34px;
  height: 34px;
  font-size: 12.5px;
  font-weight: 700;
}

[data-theme="dark"] .ag-avatar {
  color: var(--brand-glow);
}

.ag-pedido-quando {
  display: inline-flex;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  align-self:  flex-start;
  align-items:  center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 12.5px;
  font-weight: 600;
}

.ag-pedido-quando:hover {
  border-color: var(--brand);
}

.ag-pedido-assunto {
  cursor: pointer;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.ag-pedido-assunto:hover {
  text-decoration: underline;
}

.ag-pedido-pauta {
  color: var(--muted);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 12.5px;
}

.ag-pedido-acoes {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.ag-hoje-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.ag-hoje-lista li {
  display: flex;
  cursor: pointer;
  border-radius: 9px;
  align-items:  center;
  gap: 10px;
  padding: 7px 8px;
}

.ag-hoje-lista li:hover {
  background: var(--surface-2);
}

.ag-hoje-lista li.agora {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.ag-hoje-lista li.feita {
  opacity: .55;
}

.ag-hoje-hora {
  font-variant-numeric: tabular-nums;
  flex: 0 0 44px;
  font-size: 13px;
  font-weight: 700;
}

.ag-hoje-txt {
  display: flex;
  flex-direction: column;
  flex: auto;
  min-width: 0;
}

.ag-hoje-txt strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
}

.ag-hoje-txt small {
  color: var(--muted);
  font-size: 11.5px;
}

.ag-hoje-lista li.pendente .ag-hoje-hora {
  color: var(--muted);
}

.ag-numeros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ag-numeros > div {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-direction: column;
  padding: 10px 12px;
}

.ag-numeros strong {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  line-height: 1.1;
}

.ag-numeros span {
  color: var(--muted);
  font-size: 12px;
}

.ag-modal-estreito {
  max-width: 520px;
}

.ag-status {
  vertical-align: middle;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.ag-status-ok {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.ag-status-pendente {
  border-style: dashed;
  border-color: var(--brand);
  color: var(--text);
}

[data-theme="dark"] .ag-status-ok {
  color: var(--brand-glow);
}

.ag-resposta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 0 14px;
  padding: 9px 12px;
  font-size: 13px;
}

.ag-contato {
  color: var(--muted);
  margin: -4px 0 0;
  font-size: 12.5px;
}

.ag-modal-foot {
  flex-wrap: wrap;
}

.ag-excluir {
  display: inline-flex;
  align-items:  center;
  gap: 5px;
  margin-right: auto;
}

.ag-motivos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.ag-motivo {
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 13px;
}

.ag-motivo:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--border));
}

.ag-motivo.ativo {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.nav-badge {
  display: inline-grid;
  background: var(--brand-glow);
  color: #06351e;
  border-radius: 999px;
  place-items:  center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.dev-toast {
  position: fixed;
  z-index: 120;
  display: flex;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  box-shadow: var(--shadow-md);
  animation: devToastEntra .25s ease-out;
  border-radius: 14px;
  flex-wrap: wrap;
  align-items:  center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  font-size: 13.5px;
  bottom: 20px;
  right: 20px;
}

@keyframes devToastEntra {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (width <= 1180px) {
  .ag-corpo {
    grid-template-columns: 1fr;
  }

  .ag-lado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    order: -1;
  }
}

@media (width <= 720px) {
  .ag-barra {
    align-items: stretch;
  }

  .ag-barra-dir {
    justify-content: space-between;
    width: 100%;
  }

  .ag-seg {
    flex: auto;
  }

  .ag-seg button {
    flex: auto;
    padding: 6px 8px;
  }

  .ag-periodo {
    font-size: 15px;
  }

  .ag-lado {
    grid-template-columns: 1fr;
  }

  .dev-toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
}

.bk {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bk-atencao {
  display: flex;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  background: var(--surface-2);
  border-radius: 10px;
  align-items:  flex-start;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.45;
}

.bk-atencao svg {
  color: var(--warn);
  flex: none;
  margin-top: 2px;
}

.bk-onde {
  display: flex;
  color: var(--muted);
  align-items:  center;
  gap: 7px;
  min-width: 0;
}

.bk-onde svg {
  flex: none;
}

.bk-caminho {
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
  font-family: ui-monospace, Cascadia Mono, Consolas, monospace;
  font-size: 12px;
}

.bk-alvos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.bk-alvo-bloco {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  min-width: 0;
  padding: 13px 15px;
}

.bk-alvo-bloco h5 {
  display: flex;
  align-items:  center;
  gap: 7px;
  margin: 0 0 9px;
  font-size: 13.5px;
  font-weight: 700;
}

.bk-alvo-bloco h5 svg {
  color: var(--brand);
}

.bk-alvo-bloco h5 .muted {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
}

.bk-alvo-bloco ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.bk-alvo-bloco li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}

.bk-alvo-bloco li strong {
  overflow-wrap: anywhere;
  min-width: 0;
  font-weight: 600;
}

.bk-alvo-bloco li .muted {
  white-space: nowrap;
  margin-left: auto;
  font-size: 12px;
}

.bk-lista-bancos li {
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
}

.bk-lista-bancos li strong {
  font-size: 13.5px;
}

.bk-lista-bancos li .muted {
  white-space: normal;
  overflow-wrap: anywhere;
  margin-left: 0;
  font-size: 11.5px;
  line-height: 1.35;
}

.bk-alvo-bloco p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.bk-alvo-bloco code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
  font-family: ui-monospace, Cascadia Mono, Consolas, monospace;
  font-size: 11.5px;
}

.bk-copias {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}

.bk-copia {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  border-radius: 12px;
}

.bk-copia-apagada {
  opacity: .62;
}

.bk-copia-head {
  display: flex;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  flex-wrap: wrap;
  align-items:  center;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
}

.bk-copia-head:hover {
  background: var(--surface-2);
}

.bk-copia-quando {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 128px;
}

.bk-copia-quando strong {
  font-size: 14px;
  font-weight: 700;
}

.bk-copia-quando .muted {
  font-size: 11.5px;
}

.bk-copia-tam {
  font-variant-numeric: tabular-nums;
  min-width: 72px;
  font-size: 13px;
}

.bk-copia-origem, .bk-copia-head .muted {
  font-size: 12.5px;
}

.bk-selo {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  align-items:  center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
}

.bk-selo-ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 35%, var(--border));
}

.bk-selo-parcial {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 35%, var(--border));
}

.bk-selo-falhou {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
}

.bk-selo-rodando {
  color: var(--brand);
}

.bk-copia-corpo {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 14px 14px;
}

.bk-partes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
}

.bk-partes li {
  display: flex;
  align-items:  center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}

.bk-parte-icone {
  display: inline-flex;
  color: var(--muted);
  flex: none;
}

.bk-parte-nome {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.bk-partes li .muted {
  white-space: nowrap;
  margin-left: auto;
  font-size: 12px;
}

.bk-parte-erro .bk-parte-nome {
  color: var(--danger);
}

.bk-parte-msg {
  color: var(--danger);
  text-align: right;
  overflow-wrap: anywhere;
  margin-left: auto;
  font-size: 12px;
}

.bk-erro {
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border));
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
  color: var(--danger);
  overflow-wrap: anywhere;
  border-radius: 9px;
  margin: 10px 0 0;
  padding: 9px 12px;
  font-size: 12.5px;
}

.bk-copia-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 14px;
}

.bk-apagar {
  color: var(--danger);
  display: inline-flex;
  align-items:  center;
  gap: 5px;
}

.bk-restaurar {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
}

.bk-restaurar p {
  display: flex;
  align-items:  flex-start;
  gap: 7px;
  margin: 0 0 10px;
}

.bk-restaurar p svg {
  color: var(--brand);
  flex: none;
  margin-top: 3px;
}

.bk-restaurar ol {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 10px;
  padding-left: 20px;
}

.bk-restaurar code {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
  border-radius: 5px;
  padding: 2px 6px;
  font-family: ui-monospace, Cascadia Mono, Consolas, monospace;
  font-size: 12px;
}

.bk-rodape-config {
  margin: 10px 0 0;
  font-size: 12px;
}

@media (width <= 720px) {
  .bk-copia-head {
    gap: 8px 12px;
  }

  .bk-copia-quando {
    min-width: 0;
  }

  .bk-copia-head .muted, .bk-copia-origem {
    font-size: 12px;
  }
}

@media (width <= 760px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    position: sticky;
    z-index: 30;
    padding-top: env(safe-area-inset-top, 0px);
    width: 100%;
    height: auto;
    top: 0;
    box-shadow: 0 2px 16px #06351e38;
  }

  .brand {
    padding: 8px 14px;
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    border-bottom: 0;
  }

  .brand-logo-img {
    max-width: 132px;
  }

  .nav {
    display: flex;
    padding: 0 8px 8px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    flex: none;
    gap: 4px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    white-space: nowrap;
    border-bottom: 3px solid #0000;
    border-left: 0;
    border-radius: 10px;
    flex: none;
    width: auto;
    min-height: 44px;
    margin-bottom: 0;
    padding: 9px 13px;
    font-size: 14px;
  }

  .nav-item.active {
    border-left: 0;
    border-bottom-color: var(--brand-glow);
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .nav-badge {
    position: static;
    margin-left: 6px;
  }

  .topbar {
    padding: 10px 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    flex-wrap: nowrap;
    gap: 10px;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
  }

  .topbar .muted {
    display: none;
  }

  .topbar-actions {
    flex: none;
    gap: 6px;
  }

  .user-name {
    display: none;
  }

  .user-chip {
    padding: 0;
  }

  .view {
    padding: 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea, .field input, .field select, .field textarea, .search-wrap input {
    font-size: 16px;
  }

  .theme-toggle, .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .btn-primary, .btn-secondary {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 40px;
  }

  .btn-link {
    min-height: 40px;
    padding: 8px 2px;
  }

  .triagem-abas button, .aud-seg button, .ag-seg button {
    min-height: 40px;
  }

  .aud-evento-quem {
    margin: -8px 0;
    padding: 8px 0;
  }

  .modal-overlay {
    align-items:  flex-end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 16px 16px 0 0;
    max-height: 92dvh;
  }

  .modal-foot {
    flex-wrap: wrap;
  }

  .modal-foot button {
    flex: auto;
  }
}
