:root {
  --bg: #132235;
  --bg-soft: #192c43;
  --card: #1f344d;
  --card-solid: #1f344d;
  --line: #36536f;
  --line-strong: #4b6b89;
  --text: #e7f1fb;
  --muted: #a7b9cc;
  --primary: #58a6ff;
  --primary-hover: #2f81f7;
  --primary-soft: #244b70;
  --sidebar-w: 224px;
  --sidebar-bg: #10263d;
  --sidebar-bg-soft: #18334f;
  --sidebar-text: #e2edf8;
  --sidebar-muted: #9fb3c8;
  --sidebar-active: #58a6ff;
  --sidebar-hover: #223a55;
  --ok: #4fd1c5;
  --ok-bg: #163f34;
  --warn: #f6c65b;
  --warn-bg: #4a3510;
  --danger: #ff6b6b;
  --danger-bg: #4a2020;
  --r: 8px;
  --r-sm: 6px;
  --shadow: 0 6px 18px rgba(5, 14, 24, 0.26);
  --shadow-md: 0 10px 28px rgba(5, 14, 24, 0.34);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: linear-gradient(180deg, #17283c 0%, #132235 100%);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.hidden { display: none !important; }
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(180deg, #17283c 0%, #132235 100%);
}
.boot-loader-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1f344d;
  box-shadow: 0 18px 48px rgba(5, 14, 24, 0.34);
  padding: 18px;
}
.boot-loader-title {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.boot-loader-text {
  color: var(--muted);
  font-size: 13px;
}
.boot-loader-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.boot-loader-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(88, 166, 255, 0.22);
  border-top-color: var(--primary);
  flex: 0 0 auto;
  animation: bootSpin 0.75s linear infinite;
}
@keyframes sidebarIn {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bootSpin {
  to { transform: rotate(360deg); }
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateX(-10px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes kpiPop {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); }
  60% { transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 79, 168, 0); }
  50% { box-shadow: 0 0 0 4px rgba(13, 79, 168, 0.15); }
}
@keyframes badgeIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes drawerIn {
  from { transform: translateX(100%) scale(0.98); }
  to { transform: translateX(0) scale(1); }
}
@keyframes spinnerFade {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes loginGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 72px, -72px 36px; }
}
@keyframes loginPanelIn {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes loginFormIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes loginLineFill {
  0% { transform: scaleX(0.18); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.32); opacity: 0.6; }
}
@keyframes loginPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 138, 87, 0.32); }
  50% { box-shadow: 0 0 0 7px rgba(23, 138, 87, 0); }
}
@keyframes appPageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes appCardEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes appRowEnter {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes chartEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalBackdropEnter {
  from { opacity: 0; backdrop-filter: blur(0); }
  to { opacity: 1; backdrop-filter: blur(3px); }
}
@keyframes modalPanelEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes activeNavPulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 105, 170, 0.24); }
  100% { box-shadow: 0 0 0 8px rgba(23, 105, 170, 0); }
}

/* â”€â”€ LOGIN â”€â”€ */
#mips-login-screen {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 25%, transparent 25%) 0 0 / 72px 72px,
    linear-gradient(135deg, transparent 75%, rgba(255,255,255,0.08) 75%) 0 0 / 72px 72px,
    linear-gradient(135deg, #0b3d68 0%, #0f766e 52%, #09213d 100%);
  animation: loginGridDrift 18s linear infinite;
  z-index: 999;
  overflow: auto;
}
.login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  gap: 18px;
  align-items: stretch;
}
.login-panel {
  min-height: 520px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  animation: loginPanelIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.login-panel::before {
  content: '';
  position: absolute;
  inset: auto 28px 28px auto;
  width: 220px;
  height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 100%);
  transform: rotate(-7deg);
}
.login-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32);
}
.login-panel h1 {
  margin-top: 22px;
  max-width: 440px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}
.login-panel p {
  margin-top: 12px;
  max-width: 430px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}
.login-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 10px;
  width: max-content;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
.login-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2ee59d;
  animation: loginPulse 1.8s ease-in-out infinite;
}
.login-activity {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
}
.login-activity-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.74);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.login-activity-line {
  height: 8px;
  border-radius: 999px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(145,222,210,0.62));
  animation: loginLineFill 4.2s ease-in-out infinite;
}
.login-activity-row:nth-child(2) .login-activity-line { animation-delay: 0.5s; }
.login-activity-row:nth-child(3) .login-activity-line { animation-delay: 1s; }
.login-card {
  width: min(420px, 94vw);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  padding: 40px 36px 32px;
  color: #101b38;
  box-shadow: 0 32px 64px rgba(5, 15, 40, 0.45), 0 0 0 1px rgba(255,255,255,0.2) inset;
  backdrop-filter: blur(18px);
  animation: loginFormIn 0.58s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.login-brand { margin-bottom: 24px; }
.login-brand h1 {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #1642ae;
}
.login-brand p { font-size: 11px; color: #5a668a; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.45px; }
.login-field { margin-top: 14px; }
.login-label { font-size: 12px; color: #3b4970; display: block; margin-bottom: 5px; font-weight: 600; }
.login-input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #c9d6f4; background: #fff;
  color: #111b38; font-size: 14px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input::placeholder { color: #96a2c4; }
.login-input:focus { outline: none; border-color: #2158d8; box-shadow: 0 0 0 3px rgba(33, 88, 216, 0.15); }
.login-input.is-invalid {
  border-color: #d94b4b !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 4px rgba(217, 75, 75, 0.12) !important;
}
.login-message,
.login-error {
  min-height: 0;
  margin-top: 10px;
  border: 1px solid #f1b8b8;
  border-radius: 8px;
  background: #fff4f4;
  color: #8d1f1f;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 750;
}
.login-message.is-success,
.login-error.is-success {
  border-color: #9fd9c9;
  background: #eefaf6;
  color: #0f5c49;
}
.login-message.is-info,
.login-error.is-info {
  border-color: #b7d6f4;
  background: #f0f7ff;
  color: #174b76;
}
.login-submit {
  width: 100%; margin-top: 18px; padding: 11px;
  background: linear-gradient(135deg, #2158d8 0%, #2f7df6 100%);
  border: 1px solid #1b4fce; border-radius: 11px;
  color: #fff; font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, filter 0.2s;
  box-shadow: 0 8px 22px rgba(33, 88, 216, 0.35);
}
.login-submit:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 11px 26px rgba(33, 88, 216, 0.4); }
.login-hint { margin-top: 12px; font-size: 11px; color: #6878a2; text-align: center; }
.login-link-btn {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #2158d8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.login-recovery-toggle {
  min-height: 38px;
  border: 1px solid #c8d7e6;
  border-radius: 8px;
  background: #f5f9fc;
}
.login-recovery-toggle:hover,
.login-recovery-toggle[aria-expanded="true"] {
  background: #e8f4fb;
  color: #0f5f78;
}
.login-recovery-form {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d9e3f7;
  border-radius: 10px;
  background: #f8fbfd;
}
.login-recovery-help {
  margin: 0 0 10px;
  color: #52667b;
  font-size: 12px;
  line-height: 1.4;
}
.login-recovery-result {
  margin-top: 10px;
  min-height: 16px;
  border: 1px solid #b7d6f4;
  border-radius: 8px;
  background: #f0f7ff;
  color: #174b76;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}
.login-recovery-result.is-error {
  border-color: #f1b8b8;
  background: #fff4f4;
  color: #8d1f1f;
}
.login-recovery-result.is-success {
  border-color: #9fd9c9;
  background: #eefaf6;
  color: #0f5c49;
}
.login-temp-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  margin: 6px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #e9f1ff;
  border: 1px solid #bcd1ff;
  color: #1642ae;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
}

.assistant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 12px;
  align-items: start;
}
.card.assistant-chat {
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.assistant-chat .card-header {
  margin-bottom: 0;
  padding: 10px 14px;
  min-height: 40px;
}
.assistant-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.assistant-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(22, 137, 72, 0.12);
}
.assistant-messages {
  width: min(100%, 880px);
  margin: 0 auto;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 0;
  max-height: min(460px, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #1a2f47;
}
.assistant-message {
  width: fit-content;
  max-width: min(620px, 76%);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #213b57;
  box-shadow: 0 1px 2px rgba(5,14,24,0.22);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.42;
  font-size: 13px;
}
.assistant-message-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.assistant-message-text {
  margin: 0;
  white-space: pre-wrap;
}
.assistant-message.user {
  align-self: flex-end;
  background: #245b89;
  border-color: #4b7fab;
}
.assistant-message.assistant {
  align-self: flex-start;
  background: #213b57;
}
.assistant-message.loading {
  color: var(--muted);
  font-style: italic;
}
.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(100%, 880px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 12px 16px 14px;
  background: #243d59;
  border-top: 1px solid var(--line);
}
.assistant-form .btn { min-height: 42px; }
.assistant-input {
  margin: 0;
  min-height: 42px;
  max-height: 88px;
  resize: vertical;
}
.assistant-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.assistant-side .card {
  margin-bottom: 0;
}
.assistant-source-list,
.assistant-prompt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.assistant-source {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #213b57;
  font-size: 12px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.assistant-prompt {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  height: auto;
  min-height: 36px;
}
@media (max-width: 1100px) {
  .assistant-grid { grid-template-columns: 1fr; }
  .assistant-chat { min-height: 0; }
  .assistant-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .assistant-messages { max-height: 400px; }
}
@media (max-width: 640px) {
  .assistant-form { grid-template-columns: 1fr; }
  .assistant-message {
    width: fit-content;
    max-width: 92%;
  }
  .assistant-chat { min-height: 0; }
  .assistant-messages {
    min-height: 0;
    max-height: 52vh;
    padding: 12px;
  }
  .assistant-form { padding: 10px 12px 12px; }
}
@media (max-width: 860px) {
  #mips-login-screen {
    padding: 16px;
    display: block;
  }
  .login-shell {
    min-height: calc(100vh - 32px);
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: center;
  }
  .login-panel {
    min-height: auto;
    padding: 22px;
    border-radius: 14px;
  }
  .login-panel h1 {
    font-size: 28px;
    max-width: none;
  }
  .login-panel p,
  .login-activity {
    display: none;
  }
  .login-card {
    width: 100%;
    border-radius: 14px;
    padding: 28px 22px 24px;
  }
}

/* â”€â”€ APP SHELL â”€â”€ */
.app-layout {
  display: block;
  min-height: 100vh;
}

/* â”€â”€ SIDEBAR â”€â”€ */
.sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-soft) 100%);
  display: flex; flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  box-shadow: none;
  z-index: 20;
  isolation: isolate;
  animation: sidebarIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sidebar::after {
  display: none;
}
.sidebar > * {
  position: relative;
  z-index: 1;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 9px;
  margin: 12px 10px 8px;
  border-radius: 8px;
  border: 1px solid #0a458f;
  background: linear-gradient(135deg, #0f57b8 0%, #0a438d 100%);
  box-shadow: 0 4px 14px rgba(10, 67, 141, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sidebar-brand:hover { box-shadow: 0 6px 18px rgba(10, 67, 141, 0.45); }
.sidebar-brand h2 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-brand h2::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
  background: transparent;
  flex-shrink: 0;
}
.sidebar-brand small { display: block; margin-top: 2px; font-size: 7px; color: #d6e5ff; line-height: 1.25; letter-spacing: 0.01em; }
.sidebar-brand-text {
  min-width: 0;
}
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.sidebar-user {
  display: block;
  margin: 0 10px 8px;
  padding: 7px 8px;
  border: 1px solid #45627d;
  border-radius: 8px;
  background: #263f5c;
}
.sidebar-user .su-name { font-size: 12px; font-weight: 700; color: var(--sidebar-text); }
.sidebar-user .su-role { font-size: 10px; color: var(--sidebar-muted); margin-bottom: 6px; text-transform: capitalize; }
.sidebar-user select {
  width: 100%; padding: 5px 8px; border-radius: var(--r-sm);
  border: 1px solid #45627d; background: #213b57;
  color: var(--sidebar-text); font-size: 11px; font-family: inherit;
}
.sidebar-user select option { background: #213b57; color: var(--text); }
.sidebar-user label { font-size: 10px; color: var(--sidebar-muted); display: block; margin-bottom: 3px; }
.sidebar-nav { flex: 1; padding: 6px 0 124px; }
.nav-group-label {
  margin: 9px 11px 5px; padding: 0;
  font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #b5c4d4;
  border: none;
  border-radius: 0;
  background: none;
}
.nav-group-toggle {
  width: calc(100% - 22px);
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.nav-group-toggle:hover { color: #c4d2df; }
.nav-group-items.hidden { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 7px;
  width: calc(100% - 16px); margin: 2px 8px;
  padding: 6px 8px;
  background: none; border: none;
  color: #b1c2d3; font-size: 11px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: left;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s;
  position: relative;
  animation: navItemIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nav-item svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.78; color: #9fb7d1; }
.nav-group-items .nav-item:nth-child(1) { animation-delay: 0.04s; }
.nav-group-items .nav-item:nth-child(2) { animation-delay: 0.08s; }
.nav-group-items .nav-item:nth-child(3) { animation-delay: 0.12s; }
.nav-group-items .nav-item:nth-child(4) { animation-delay: 0.16s; }
.nav-group-items .nav-item:nth-child(5) { animation-delay: 0.20s; }
.nav-group-items .nav-item:nth-child(6) { animation-delay: 0.24s; }
.nav-item:hover {
  background: var(--sidebar-hover);
  color: #eef7ff;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(5, 14, 24, 0.14);
}
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
  background: var(--sidebar-active);
  border-color: var(--sidebar-active);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 79, 168, 0.32), 0 0 0 1px rgba(255,255,255,0.12) inset;
  padding-left: 8px;
  transform: translateX(0);
}
.nav-item.active::before {
  display: none;
}
.nav-item.active::after {
  display: none;
}
.nav-item.active svg {
  opacity: 1;
  color: #fff;
  position: static;
  transform: none;
}
.sidebar-footer {
  display: block;
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin-top: auto;
  padding: 12px 8px 8px;
  background: linear-gradient(180deg, rgba(16, 38, 61, 0) 0%, rgba(16, 38, 61, 0.94) 40%, #10263d 80%);
  border-top: none;
  overflow: visible;
  isolation: isolate;
}
.sidebar-footer::before {
  display: none;
}
.btn-logout {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 10px; border-radius: 8px;
  background: linear-gradient(135deg, #d8423a 0%, #ba2f29 100%);
  border: 1px solid #ad2722;
  color: #ffffff; font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 8px 18px rgba(186, 47, 41, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 1;
}
.btn-logout:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(186, 47, 41, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.82) inset;
}
.btn-logout:active { transform: translateY(0); }
.btn-logout:focus-visible {
  outline: 2px solid #f0a19d;
  outline-offset: 2px;
}
.btn-logout svg { width: 14px; height: 14px; }

/* â”€â”€ MAIN CONTENT â”€â”€ */
.main-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
}
.topbar {
  display: none;
}
.topbar-title { font-size: 16px; font-weight: 700; letter-spacing: 0.1px; }
.topbar-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.municipio-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 600; border: 1px solid #c2d5ff;
}

.content { flex: 1; padding: 16px 22px 24px; }
.page { display: none; }
.page.active { display: block; animation: pageIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* â”€â”€ PAGE HEADER â”€â”€ */
.page-head { margin-bottom: 22px; }
.page-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.2px; color: #edf6ff; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* â”€â”€ BUTTONS â”€â”€ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #1f344d;
  color: var(--text); font-size: 12px; font-family: inherit;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, border-color 0.18s, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.18s;
  white-space: nowrap;
}
.btn:hover {
  background: #294563;
  border-color: #4b6b89;
  box-shadow: 0 2px 8px rgba(5,14,24,0.22);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: #58a6ff;
  border-color: #2f81f7;
  color: #fff;
  box-shadow: 0 3px 10px rgba(59, 158, 255, 0.3);
}
.btn-primary:hover { background: #2f81f7; border-color: #1f6ed4; box-shadow: 0 5px 16px rgba(88, 166, 255, 0.35); filter: brightness(1.05); }
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}
.btn-danger {
  background: #ff6b6b;
  border-color: #d34f4f;
  color: #fff;
  box-shadow: none;
}
.btn-danger:hover { background: #d34f4f; border-color: #b93d3d; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: #223a55; border-color: var(--line); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-icon { padding: 6px; }
.btn:active { transform: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary:focus-visible { outline-color: var(--primary-hover); }
.btn-manage {
  min-width: 116px;
  justify-content: center;
  gap: 7px;
}
.btn-manage svg {
  width: 13px;
  height: 13px;
}
.approval-actions-cell {
  min-width: 240px;
  vertical-align: middle;
}
.approval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-items: stretch;
}
.approval-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  padding: 6px 8px;
  min-height: 34px;
}
.approval-actions .btn-primary {
  background: #198f44;
  border-color: #198f44;
}
.approval-actions .btn-danger {
  background: #d63d36;
  border-color: #d63d36;
}
.approval-actions .btn svg {
  width: 13px;
  height: 13px;
}
.approval-actions .btn-primary:hover {
  filter: brightness(1.05);
}
.approval-actions .btn-danger:hover {
  filter: brightness(1.04);
}
.approval-professional,
.approval-cbo {
  display: block;
  min-width: 220px;
  line-height: 1.35;
}
.approval-professional strong,
.approval-cbo strong {
  display: block;
  color: #fff;
  font-size: 13px;
  overflow-wrap: break-word;
}
.approval-professional span,
.approval-cbo span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: break-word;
}
.table-wrap .approval-table {
  min-width: 1540px;
  table-layout: auto;
}
.approval-table th,
.approval-table td {
  vertical-align: middle;
}
.approval-table .check-cell {
  width: 48px;
}
.approval-competencia-cell,
.approval-date-cell {
  min-width: 132px;
  white-space: nowrap;
}
.approval-date {
  display: grid;
  gap: 4px;
  line-height: 1.25;
}
.approval-date strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.approval-date span,
.approval-date small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.approval-professional-cell {
  min-width: 260px;
}
.approval-cbo-cell {
  min-width: 260px;
}
.approval-procedure-cell {
  min-width: 310px;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.approval-quantity-cell {
  width: 70px;
  text-align: center;
  white-space: nowrap;
}
.approval-reason-cell {
  min-width: 360px;
  max-width: 500px;
}
.approval-analysis-cell .approval-actions {
  margin-top: 8px;
  grid-template-columns: 1fr;
}
.approval-table .status-cell {
  min-width: 140px;
}
@media (max-width: 860px) {
  .approval-actions-cell {
    min-width: 156px;
  }
  .approval-actions {
    grid-template-columns: 1fr;
  }
}
tbody tr { cursor: default; transition: background 0.14s; }
tbody tr:hover { background: #263f5c !important; }
.link-cell { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 500; }
.link-cell:hover { color: var(--primary-hover); }

/* â”€â”€ CARDS â”€â”€ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(13,34,76,0.06); animation: cardIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 4px 16px rgba(13,34,76,0.1); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-header h4 { font-size: 14px; font-weight: 700; color: #cfe1f4; }

/* â”€â”€ KPIs â”€â”€ */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi {
  background: #243d59;
  border: 1px solid #45627d;
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(5,14,24,0.26);
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  animation: kpiPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.kpi:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 8px 24px rgba(5,14,24,0.34); }
.kpi:nth-child(1) { animation-delay: 0.05s; }
.kpi:nth-child(2) { animation-delay: 0.1s; }
.kpi:nth-child(3) { animation-delay: 0.15s; }
.kpi:nth-child(4) { animation-delay: 0.2s; }
.kpi small { font-size: 10px; color: rgba(255,255,255,0.75); display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.kpi strong { font-size: 25px; font-weight: 700; line-height: 1; color: inherit; }
.kpi.kpi-primary { background: linear-gradient(135deg, #2f81f7, #245b89); border-color: #58a6ff; }
.kpi.kpi-warn { background: linear-gradient(135deg, #d99d24, #8b671d); color: #fff1ba; border-color: #f6c65b; }
.kpi.kpi-warn small { color: rgba(255,215,80,0.85); }
.kpi.kpi-ok { background: linear-gradient(135deg, #279f8f, #1e6f65); border-color: #4fd1c5; }
.kpi.kpi-danger { background: linear-gradient(135deg, #d34f4f, #8f3434); border-color: #ff6b6b; }

/* â”€â”€ GRID â”€â”€ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

/* â”€â”€ CHARTS â”€â”€ */
.chart-wrap { position: relative; height: 200px; }

/* â”€â”€ FILTERS / TOOLBAR â”€â”€ */
.toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.toolbar input[type="text"], .toolbar input[type="search"], .toolbar input[type="month"],
.toolbar select {
  padding: 8px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #213b57; font-size: 13px; font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.toolbar input[type="text"]:focus, .toolbar input[type="search"]:focus,
.toolbar input[type="month"]:focus, .toolbar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 88, 216, 0.14);
}
.search-input { min-width: 200px; }
.spacer { flex: 1; }

/* â”€â”€ TABLES â”€â”€ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #243d59;
  box-shadow: none;
}
table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.45; }
thead th {
  text-align: left; padding: 9px 10px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.45px;
  color: #c5ddff; border-bottom: 1px solid #36536f;
  background: #203851; white-space: nowrap;
}
tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #34536f;
  vertical-align: middle;
  background: #243d59;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}
tbody tr:nth-child(even) td { background: #1b3149; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #263f5c; }
td.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 24px; }
td.empty-state-cell { padding: 28px 16px; }
td.empty-state-cell .empty-state-icon { display: block; margin: 0 auto 8px; color: var(--muted); opacity: 0.6; }
td.empty-state-cell strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 3px; }
td.empty-state-cell span { display: block; color: var(--muted); font-size: 12px; }
.profissionais-table-wrap {
  max-width: 100%;
}
.profissionais-table {
  min-width: 2060px;
  table-layout: fixed;
}
.profissionais-table th,
.profissionais-table td {
  overflow-wrap: normal;
  word-break: normal;
}
.profissionais-table th:nth-child(1),
.profissionais-table td:nth-child(1) { width: 220px; }
.profissionais-table th:nth-child(2),
.profissionais-table td:nth-child(2) { width: 116px; }
.profissionais-table th:nth-child(3),
.profissionais-table td:nth-child(3) { width: 132px; }
.profissionais-table th:nth-child(4),
.profissionais-table td:nth-child(4) { width: 150px; }
.profissionais-table th:nth-child(5),
.profissionais-table td:nth-child(5) { width: 180px; }
.profissionais-table th:nth-child(6),
.profissionais-table td:nth-child(6) { width: 210px; }
.profissionais-table th:nth-child(7),
.profissionais-table td:nth-child(7) { width: 100px; }
.profissionais-table th:nth-child(8),
.profissionais-table td:nth-child(8) { width: 135px; }
.profissionais-table th:nth-child(9),
.profissionais-table td:nth-child(9) { width: 110px; }
.profissionais-table th:nth-child(10),
.profissionais-table td:nth-child(10) { width: 140px; }
.profissionais-table th:nth-child(11),
.profissionais-table td:nth-child(11) { width: 110px; }
.profissionais-table th:nth-child(12),
.profissionais-table td:nth-child(12) { width: 70px; }
.profissionais-table th:nth-child(13),
.profissionais-table td:nth-child(13) { width: 120px; }
.profissionais-table th:nth-child(14),
.profissionais-table td:nth-child(14) { width: 125px; }
.profissionais-table th:nth-child(15),
.profissionais-table td:nth-child(15) {
  width: 142px;
  position: sticky;
  right: 0;
  z-index: 6;
  box-shadow: -10px 0 18px rgba(7, 18, 34, 0.22);
}
.profissionais-table th:nth-child(15) {
  z-index: 8;
  background: #203851;
}
.profissionais-table tbody td:nth-child(15) {
  background: #243d59;
}
.profissionais-table tbody tr:nth-child(even) td:nth-child(15) {
  background: #1b3149;
}
.profissionais-table tbody tr:hover td:nth-child(15) {
  background: #263f5c;
}
.profissionais-table-name,
.profissionais-table-text {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}
.profissionais-table-name {
  font-weight: 700;
}
.profissionais-table-code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 4px;
  background: #2f4764;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.profissionais-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.profissionais-actions .btn {
  width: 100%;
  justify-content: center;
}

/* â”€â”€ BADGES â”€â”€ */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.35px;
}
.badge-aguardando { background: var(--warn-bg); color: var(--warn); }
.badge-pre_aprovado { background: rgba(54, 211, 153, .16); color: #6ee7b7; }
.badge-aprovado   { background: var(--ok-bg);   color: var(--ok); }
.badge-reprovado  { background: var(--danger-bg); color: var(--danger); }
.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard-title h3 {
  font-size: 22px;
  font-weight: 700;
  color: #edf6ff;
}
.dashboard-title p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-field label {
  font-size: 10px;
  color: #a7b9cc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dash-field input,
.dash-field select {
  min-width: 120px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #213b57;
  font-size: 12px;
  font-family: inherit;
  color: var(--text);
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #263f5c;
}
.dash-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #245b89;
  color: #c5ddff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.dash-user-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  color: #c8dcf5;
}
.dash-user-role {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.1;
  text-transform: capitalize;
}
.dashboard-table-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.daily-panel {
  margin-bottom: 14px;
}
.dashboard-clean .executive-hero {
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  align-items: start;
}
.dashboard-clean .executive-panel {
  min-height: 104px;
  padding: 14px 16px;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(5, 14, 24, 0.22);
}
.dashboard-clean .executive-panel h3 {
  font-size: 21px;
}
.dashboard-clean .executive-panel p {
  max-width: 520px;
}
.dashboard-clean .executive-meta {
  margin-top: 12px;
}
.dashboard-clean .collapsible-filter-head {
  min-height: 52px;
}
.daily-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.daily-summary-item {
  border: 1px solid #45627d;
  border-radius: 8px;
  background: #213b57;
  padding: 10px 12px;
}
.daily-summary-item small {
  display: block;
  color: #a7b9cc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.daily-summary-item strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  color: #d0e8ff;
}
.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.dashboard-action {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #1f344d;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.dashboard-action:hover {
  border-color: var(--primary);
  background: #263f5c;
  box-shadow: 0 8px 20px rgba(5, 14, 24, 0.28);
}
.dashboard-action strong {
  display: block;
  font-size: 13px;
  color: #edf6ff;
}
.dashboard-action span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.dashboard-clean .metric-grid {
  gap: 8px;
  margin-bottom: 12px;
}
.dashboard-clean .metric-card {
  min-height: 64px;
  padding: 9px 12px;
}
.dashboard-clean .metric-card strong {
  font-size: 21px;
  margin-top: 4px;
}
.dashboard-clean .metric-card span {
  display: none;
}
.dashboard-clean .dashboard-action-grid {
  gap: 6px;
}
.dashboard-clean .dashboard-action {
  min-height: 46px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.dashboard-clean .dashboard-action::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  flex: 0 0 auto;
}
.dashboard-clean .dashboard-action span {
  display: none;
}
.dashboard-clean .daily-summary {
  gap: 8px;
  margin-bottom: 10px;
}
.dashboard-clean .daily-summary-item {
  padding: 8px 10px;
}
.dashboard-clean .daily-summary-item strong {
  font-size: 18px;
}
.dashboard-progress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #132235;
  border: 1px solid var(--line);
  margin-top: 12px;
}
.dashboard-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ok), var(--primary));
}
.dashboard-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}
.unit-stack,
.attention-list {
  display: grid;
  gap: 8px;
}
.unit-row,
.attention-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #213b57;
}
.unit-row strong,
.attention-row strong {
  display: block;
  font-size: 13px;
  color: #edf6ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unit-row span,
.attention-row span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}
.attention-tag {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.attention-tag.warn { color: var(--warn); background: var(--warn-bg); }
.attention-tag.danger { color: var(--danger); background: var(--danger-bg); }
.attention-tag.ok { color: var(--ok); background: var(--ok-bg); }
.attention-notification {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #213b57;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.attention-notification:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.55);
  background: #263f5c;
}
.attention-notification:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.7);
  outline-offset: 2px;
}
.attention-notification.ok {
  cursor: default;
}
.attention-notification.ok:hover {
  transform: none;
  border-color: var(--line);
  background: #213b57;
}
.attention-notification strong {
  display: block;
  color: #edf6ff;
  font-size: 13px;
  line-height: 1.25;
}
.attention-notification span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.attention-notification-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 0;
}
.attention-notification .attention-tag,
.attention-notification .attention-notification-arrow {
  margin-top: 0;
}
.attention-notification-arrow {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.dashboard-attention-modal .manage-modal-body {
  display: grid;
  gap: 12px;
}
.attention-modal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.attention-modal-summary span,
.attention-modal-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.03);
}
.attention-modal-summary span {
  display: block;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 11px;
}
.attention-modal-summary b {
  display: block;
  color: #edf6ff;
  font-size: 15px;
  margin-bottom: 2px;
}
.attention-modal-list {
  display: grid;
  gap: 8px;
  max-height: min(56vh, 460px);
  overflow: auto;
  padding-right: 2px;
}
.attention-modal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.attention-modal-item strong {
  display: block;
  color: #edf6ff;
  font-size: 13px;
  line-height: 1.25;
}
.attention-modal-item span,
.attention-modal-item small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}
.attention-modal-item span {
  margin-top: 4px;
  font-size: 11px;
}
.attention-modal-item small {
  margin-top: 6px;
  font-size: 11px;
}
@media (max-width: 720px) {
  .attention-modal-summary,
  .attention-modal-item {
    grid-template-columns: 1fr;
  }
  .attention-modal-item .btn {
    width: 100%;
    justify-content: center;
  }
}
.dashboard-clean .executive-hero {
  gap: 8px;
  margin-bottom: 8px;
}
.dashboard-clean .executive-panel {
  min-height: 72px;
  padding: 10px 12px;
}
.dashboard-clean .executive-panel h3 {
  font-size: 18px;
}
.dashboard-clean .executive-panel p {
  display: none;
}
.dashboard-clean .executive-meta {
  gap: 5px;
  margin-top: 8px;
}
.dashboard-clean .executive-meta span,
.dashboard-clean .executive-meta button {
  min-height: 23px;
  padding: 3px 7px;
  font-size: 11px;
}
.dashboard-clean .command-bar {
  padding: 8px;
}
.dashboard-clean .collapsible-filter-head {
  min-height: 38px;
}
.dashboard-clean .dashboard-action-grid,
.dashboard-clean .metric-grid,
.dashboard-clean .dashboard-ops-grid,
.dashboard-clean .insight-strip {
  margin-bottom: 8px;
}
.dashboard-clean .card {
  padding: 9px;
  margin-bottom: 8px;
}
.dashboard-clean .card-header {
  gap: 6px;
  margin-bottom: 7px;
  padding-bottom: 6px;
}
.dashboard-clean .card-header h4 {
  font-size: 13px;
}
.dashboard-clean .card-header span,
.dashboard-clean .card-header p {
  font-size: 11px !important;
}
.dashboard-clean .dashboard-action {
  min-height: 36px;
  padding: 7px 9px;
}
.dashboard-clean .dashboard-action strong {
  font-size: 12px;
}
.dashboard-clean .metric-card {
  min-height: 52px;
  padding: 7px 10px 7px 12px;
}
.dashboard-clean .metric-card small {
  font-size: 10px;
}
.dashboard-clean .metric-card strong {
  font-size: 18px;
  margin-top: 2px;
}
.dashboard-clean .daily-panel {
  margin-bottom: 8px;
}
.dashboard-clean .daily-summary {
  gap: 6px;
  margin-bottom: 6px;
}
.dashboard-clean .daily-summary-item {
  padding: 6px 8px;
}
.dashboard-clean .daily-summary-item small {
  font-size: 10px;
}
.dashboard-clean .daily-summary-item strong {
  font-size: 17px;
}
.dashboard-clean .dashboard-progress {
  height: 5px;
  margin-top: 6px;
}
.dashboard-clean .daily-panel .chart-wrap {
  height: 150px !important;
}
.dashboard-clean .daily-panel.monthly-panel {
  margin-bottom: 8px;
}
.dashboard-clean .daily-panel.monthly-panel .card-header {
  margin-bottom: 4px;
  padding-bottom: 5px;
}
.dashboard-clean .daily-panel.monthly-panel .daily-summary {
  gap: 5px;
  margin-bottom: 4px;
}
.dashboard-clean .daily-panel.monthly-panel .daily-summary-item {
  min-height: 42px;
  padding: 5px 7px;
}
.dashboard-clean .daily-panel.monthly-panel .daily-summary-item small {
  font-size: 9px;
  line-height: 1.15;
}
.dashboard-clean .daily-panel.monthly-panel .daily-summary-item strong {
  font-size: 15px;
  margin-top: 1px;
}
.dashboard-clean .daily-panel.monthly-panel .dashboard-progress {
  height: 4px;
  margin-top: 4px;
}
.dashboard-clean .daily-panel.monthly-panel .dashboard-table-foot {
  margin-top: 4px;
  margin-bottom: 4px !important;
  font-size: 10px;
}
.dashboard-clean .daily-panel.monthly-panel .chart-wrap {
  height: 78px !important;
}
.dashboard-clean .dashboard-table-foot {
  gap: 8px;
  margin-top: 5px;
  font-size: 10px;
}
.dashboard-clean .dashboard-ops-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  gap: 8px;
}
.dashboard-clean .unit-stack,
.dashboard-clean .attention-list {
  gap: 5px;
  max-height: 156px;
  overflow: auto;
  padding-right: 2px;
}
.dashboard-clean .unit-row,
.dashboard-clean .attention-row {
  gap: 7px;
  padding: 7px 9px;
}
.dashboard-clean .unit-row strong,
.dashboard-clean .attention-row strong {
  font-size: 12px;
}
.dashboard-clean .unit-row span,
.dashboard-clean .attention-row span {
  margin-top: 2px;
  font-size: 10px;
}
.dashboard-clean .attention-tag {
  padding: 3px 6px;
  font-size: 9px;
}
.dashboard-clean .attention-notification {
  gap: 7px;
  padding: 8px 9px;
}
.dashboard-clean .attention-notification strong {
  font-size: 12px;
}
.dashboard-clean .attention-notification span {
  margin-top: 2px;
  font-size: 10px;
}
.dashboard-clean .attention-notification-meta {
  gap: 4px;
}
.dashboard-clean .attention-notification-arrow {
  font-size: 15px;
}
.dashboard-clean .insight-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.dashboard-clean .insight-card {
  padding: 7px 8px;
}
.dashboard-clean .insight-card strong {
  font-size: 11px;
  line-height: 1.2;
}
.dashboard-clean .insight-card span {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dashboard-clean .grid-2.dashboard-charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-clean .dashboard-charts .card {
  padding: 10px;
}
.dashboard-clean .dashboard-charts .card-header {
  margin-bottom: 4px;
  padding-bottom: 5px;
}
.dashboard-clean .dashboard-charts h4 {
  font-size: 12px;
}
.dashboard-clean .dashboard-charts .chart-wrap {
  height: 240px !important;
}
.daily-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.daily-status-sem_producao {
  background: #2a1800;
  color: #f0a830;
}
.daily-status-aguardando {
  background: var(--warn-bg);
  color: var(--warn);
}
.daily-status-pre_aprovado {
  background: rgba(54, 211, 153, .16);
  color: #6ee7b7;
}
.daily-status-aprovado {
  background: var(--ok-bg);
  color: var(--ok);
}
.daily-status-reprovado {
  background: var(--danger-bg);
  color: var(--danger);
}
.daily-row-missing td {
  background: #fffaf0;
}
.production-calendar-card {
  margin-bottom: 14px;
}
.production-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  gap: 14px;
  align-items: start;
}
.production-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.production-calendar-weekday {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.production-calendar-blank,
.production-calendar-day {
  min-height: 82px;
  border-radius: 8px;
}
.production-calendar-blank {
  background: #183047;
  border: 1px dashed #36536f;
}
.production-calendar-day {
  width: 100%;
  border: 1px solid #36536f;
  background: #1f344d;
  padding: 8px;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.14s, box-shadow 0.14s, background-color 0.14s;
}
.production-calendar-day:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.18);
}
.production-calendar-day.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.16);
}
.production-calendar-day.is-today {
  background: #244b70;
}
.production-calendar-day.status-empty {
  color: #94a3b8;
}
.production-calendar-day.status-ok {
  background: #163f34;
  border-color: #2a6b5a;
}
.production-calendar-day.status-warn {
  background: #4a3510;
  border-color: #856224;
}
.production-calendar-day.status-danger {
  background: #4a2020;
  border-color: #7a3a3a;
}
.production-calendar-day.status-atestado {
  background: #1d3f50;
  border-color: #2f7180;
}
.production-calendar-day-number {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
}
.production-calendar-day-number span:last-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.production-calendar-day strong {
  font-size: 18px;
  line-height: 1;
}
.production-calendar-day small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.production-calendar-status-row {
  display: flex;
  gap: 4px;
  margin-top: auto;
}
.production-calendar-status {
  height: 4px;
  min-width: 0;
  flex: 1;
  border-radius: 999px;
  background: #34536f;
}
.production-calendar-status.warn { background: var(--warn); }
.production-calendar-status.ok { background: var(--ok); }
.production-calendar-status.danger { background: var(--danger); }
.production-calendar-status.atestado { background: #4fd1c5; }
.production-calendar-side {
  border-left: 1px solid #36536f;
  padding-left: 14px;
  display: grid;
  gap: 12px;
}
.production-calendar-side h5 {
  font-size: 12px;
  color: #d0e8ff;
  margin-bottom: 3px;
}
.production-calendar-side p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.production-calendar-total {
  display: block;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.production-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.production-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.production-calendar-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}
.production-calendar-legend .ok { background: var(--ok); }
.production-calendar-legend .warn { background: var(--warn); }
.production-calendar-legend .danger { background: var(--danger); }
.production-calendar-legend .atestado { background: #4fd1c5; }
.dash-inline-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-approve,
.btn-reject {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border-radius: 6px;
  color: #fff;
}
.btn-approve {
  background: #169149;
  border: 1px solid #169149;
}
.btn-approve:hover {
  background: #13793d;
  border-color: #13793d;
}
.btn-reject {
  background: #d63d36;
  border: 1px solid #d63d36;
}
.btn-reject:hover {
  background: #ba312a;
  border-color: #ba312a;
}
.manage-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 33, 0.76);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 140;
  padding: 20px;
}
.manage-modal {
  width: min(520px, calc(100vw - 32px));
  background: #1f344d;
  border: 1px solid #4b6b89;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(3, 10, 24, 0.46);
  overflow: hidden;
  animation: cardIn 0.2s ease-out both;
}
.manage-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid #36536f;
  background: #1b3048;
}
.manage-modal-head h4 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #d0e8ff;
}
.manage-modal-body {
  padding: 18px;
  line-height: 1.5;
}
.manage-modal-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 12px;
}
.manage-modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.manage-modal-actions .btn {
  width: 100%;
  justify-content: center;
}
.professional-manage-modal {
  width: min(860px, calc(100vw - 32px));
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
}
.import-error-modal {
  width: min(980px, calc(100vw - 24px));
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
}
.professional-manage-modal .manage-modal-body {
  overflow-y: auto;
}
.import-error-modal .manage-modal-body {
  overflow-y: auto;
}
.import-error-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.import-error-summary span {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #213b57;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
}
.import-error-summary strong {
  display: block;
  margin-top: 3px;
  color: #edf6ff;
  font-size: 15px;
}
.import-diagnostic-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.import-diagnostic-note span {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  padding: 8px 10px;
}
.import-diagnostic-note b {
  display: block;
  color: #edf6ff;
  font-size: 12px;
  margin-bottom: 2px;
}
.import-diagnostic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.import-diagnostic-filter {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #d7eaff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
}
.import-diagnostic-filter:hover {
  border-color: rgba(88,166,255,.45);
  background: rgba(88,166,255,.10);
}
.import-diagnostic-filter.is-active {
  border-color: rgba(88,166,255,.70);
  background: rgba(88,166,255,.18);
  color: #fff;
}
.import-issue-badge {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  color: #edf6ff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  white-space: nowrap;
}
.import-issue-badge.erro { background: rgba(255,95,109,.18); border-color: rgba(255,95,109,.45); color: #ffd6d6; }
.import-issue-badge.pendente { background: rgba(255,204,102,.16); border-color: rgba(255,204,102,.45); color: #ffe5a3; }
.import-issue-badge.duplicado { background: rgba(96,165,250,.16); border-color: rgba(96,165,250,.45); color: #bfdbfe; }
.import-issue-badge.ignorado { background: rgba(148,163,184,.16); border-color: rgba(148,163,184,.35); color: #dbe6f4; }
.import-issue-badge.aviso, .import-issue-badge.outro { background: rgba(251,191,36,.15); border-color: rgba(251,191,36,.42); color: #fde68a; }
.import-error-list {
  display: grid;
  gap: 10px;
}
.import-error-reasons {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #1b334d;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.import-error-reasons h5 {
  margin: 0;
  color: #edf6ff;
  font-size: 13px;
}
.import-error-reason-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 8px;
}
.import-error-reason-row strong {
  display: block;
  color: #ffd6d6;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.import-error-reason-row small {
  color: var(--muted);
  font-size: 11px;
}
.import-error-reason-count {
  border-radius: 6px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  white-space: nowrap;
}
.import-error-card {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #213b57;
  padding: 10px 12px;
}
.import-error-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.import-error-card-head strong {
  color: #edf6ff;
  font-size: 13px;
}
.import-error-reason {
  border-left: 3px solid var(--danger);
  padding-left: 9px;
  margin-bottom: 8px;
  color: #ffd6d6;
  font-size: 12px;
  line-height: 1.45;
}
.import-payload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}
.import-payload-grid span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.import-payload-grid b {
  color: #d0e8ff;
  font-weight: 700;
}
.professional-manage-title {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.professional-manage-title p {
  margin: 0;
  color: #dbeafe;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.professional-manage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.professional-manage-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #36536f;
  border-radius: 6px;
  background: #1a2f47;
  color: #a7b9cc;
  font-size: 11px;
  font-weight: 700;
}
.professional-manage-chip strong {
  color: #edf6ff;
  font-weight: 800;
}
.professional-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.professional-stat {
  min-height: 74px;
  padding: 10px 12px;
}
.professional-stat small {
  overflow-wrap: normal;
  word-break: normal;
}
.professional-stat strong {
  font-size: 22px;
}
.professional-vinculos-list {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.professional-vinculo-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(140px, auto);
  gap: 14px;
  align-items: start;
  text-align: left;
  padding: 12px 14px;
}
.professional-vinculo-card small {
  margin-bottom: 4px;
}
.professional-vinculo-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.professional-vinculo-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 5px;
}
.professional-vinculo-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.professional-manage-modal .manage-modal-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.professional-manage-modal .manage-modal-actions .btn {
  min-height: 40px;
  white-space: normal;
}
@media (max-width: 760px) {
  .professional-manage-modal {
    width: min(680px, calc(100vw - 24px));
  }
  .professional-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .professional-vinculo-card {
    grid-template-columns: 1fr;
  }
  .professional-vinculo-actions {
    justify-content: stretch;
  }
  .professional-vinculo-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .professional-manage-modal .manage-modal-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .professional-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .professional-vinculo-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
.modal-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.modal-field {
  margin: 10px 0 12px;
}
.modal-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #c4d5e8;
  line-height: 1.35;
  margin-bottom: 6px;
}
.modal-field textarea,
.modal-field input,
.modal-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid #36536f;
  background: #213b57;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  line-height: 1.35;
}
.modal-field textarea {
  min-height: 112px;
  resize: vertical;
}
.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.print-modal {
  width: min(1180px, calc(100vw - 24px));
  height: min(92vh, 860px);
}
.print-frame {
  width: 100%;
  height: min(74vh, 680px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #eef3f0;
}
.filter-card .filter-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-card .filter-field {
  min-width: 150px;
  flex: 1 1 160px;
}
.filter-card .filter-field label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.filter-card .filter-field input,
.filter-card .filter-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-family: inherit;
  background: #213b57;
  color: var(--text);
}
.dashboard-charts .chart-wrap {
  height: 230px;
}
.sigtap-procedimentos-scroll {
  max-height: 760px;
  overflow: auto;
}
.sigtap-compat-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sigtap-compat-toolbar .search-input {
  flex: 1 1 260px;
  max-width: 100%;
}
.sigtap-compat-scroll {
  max-height: 560px;
  overflow: auto;
}
.sigtap-procedimentos-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.sigtap-compat-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* â”€â”€ DRAWER â”€â”€ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(5, 13, 33, 0.76);
  z-index: 100; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.28s ease;
  backdrop-filter: blur(0px); transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
  padding: 18px;
}
.drawer-overlay.open { opacity: 1; backdrop-filter: blur(7px); }
.drawer-panel {
  width: min(640px, calc(100vw - 24px)); max-height: min(88vh, 800px); background: #1f344d;
  border: 1px solid #4b6b89;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(3, 10, 24, 0.48);
  display: flex; flex-direction: column;
  transform: translateY(18px) scale(0.97); opacity: 0; transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  overflow: hidden;
}
.drawer-overlay.open .drawer-panel { transform: translateY(0) scale(1); opacity: 1; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  background: #1b3048;
  flex-shrink: 0;
}
.drawer-head h4 { font-size: 17px; line-height: 1.3; font-weight: 700; color: #edf6ff; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; min-height: 0; }
.drawer-foot {
  padding: 16px 22px; border-top: 1px solid var(--line);
  background: #1b3048;
  display: flex; gap: 8px; flex-shrink: 0;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 800; color: #c4d5e8; line-height: 1.35; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid #4b6b89; background: #203851;
  font-size: 14px; font-family: inherit; color: var(--text);
  min-height: 44px; line-height: 1.35;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  min-height: 104px;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.16);
}
.field:focus-within label,
.filter-field:focus-within label,
.modal-field:focus-within label {
  color: #b8dcff;
}
.field input::placeholder,
.field textarea::placeholder,
.filter-field input::placeholder,
.toolbar input::placeholder,
.mips-combo-input::placeholder {
  color: rgba(196, 213, 232, 0.68);
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled,
.filter-field input:disabled,
.filter-field select:disabled,
.toolbar input:disabled,
.toolbar select:disabled,
.mips-combo-input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: #1a2d43;
}
.mips-combo {
  position: relative;
  width: 100%;
}
.mips-combo.open {
  z-index: 1400;
}
.combo-open-host {
  position: relative;
  z-index: 1300 !important;
  overflow: visible !important;
}
.mips-combo .mips-combo-select-original {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
}
.mips-combo-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  padding-right: 64px !important;
  border-radius: var(--r-sm);
  border: 1px solid #4b6b89;
  background: #203851;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mips-combo-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.16);
}
.mips-combo-input[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.14);
}
.mips-combo-clear {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.mips-combo.has-value .mips-combo-clear {
  display: inline-flex;
}
.mips-combo-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #edf6ff;
}
.mips-combo-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mips-combo-toggle:hover {
  background: rgba(145, 176, 242, 0.1);
  color: var(--text);
}
.mips-combo-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1450;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #5b7fa2;
  border-radius: 8px;
  background: #1b3048;
  box-shadow: 0 18px 42px rgba(3, 10, 24, 0.48);
  padding: 6px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.mips-combo-meta {
  padding: 7px 9px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid rgba(145, 176, 242, 0.16);
  margin-bottom: 4px;
}
.mips-combo.open .mips-combo-menu {
  display: block;
}
.mips-combo-option {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.mips-combo-option:hover,
.mips-combo-option.active {
  background: rgba(88, 166, 255, 0.15);
  color: #edf6ff;
}
.mips-combo-option-label {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.mips-combo-check {
  flex: 0 0 auto;
  color: #57d6c9;
  font-weight: 900;
  visibility: hidden;
}
.mips-combo-option.active .mips-combo-check {
  visibility: visible;
}
.mips-combo-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}
.production-typeahead {
  position: relative;
  width: 100%;
}
.production-typeahead.open {
  z-index: 1450;
}
.production-typeahead-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 78px 10px 12px !important;
  border-radius: var(--r-sm);
  border: 1px solid #bfd2e2;
  background: #f8fbfd;
  color: #172033;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  color-scheme: light;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.production-typeahead-input:hover {
  border-color: #95b6cf;
  background: #ffffff;
}
.production-typeahead-input:focus,
.production-typeahead-input[aria-expanded="true"] {
  outline: none;
  border-color: #4f8fc2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16);
}
.production-typeahead-input::placeholder {
  color: #7b8ea1;
  opacity: 1;
}
.production-typeahead-clear,
.production-typeahead-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6b8196;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.production-typeahead-clear {
  right: 40px;
}
.production-typeahead-toggle {
  right: 8px;
}
.production-typeahead-clear svg,
.production-typeahead-toggle svg {
  width: 16px;
  height: 16px;
}
.production-typeahead-clear:hover,
.production-typeahead-toggle:hover {
  background: #e8f2fa;
  color: #1f3f5b;
}
.production-typeahead-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1500;
  max-height: min(300px, 42vh);
  overflow: auto;
  border: 1px solid #bfd2e2;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 14px 32px rgba(47, 81, 111, 0.18);
  padding: 6px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.production-typeahead-menu.production-typeahead-floating {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
  width: min(100%, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 24px));
  z-index: 2600;
}
.production-typeahead.open .production-typeahead-menu,
.production-typeahead-menu.production-typeahead-floating {
  display: block;
}
.production-typeahead-meta {
  padding: 7px 10px 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid #dbe8f1;
  background: #f8fbfd;
  color: #53697e;
  font-size: 11px;
  font-weight: 800;
}
.production-typeahead-option {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  text-align: left;
  background: transparent;
  color: #172033;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.production-typeahead-option:hover,
.production-typeahead-option.active {
  background: #e8f2fa;
  color: #172033;
}
.production-typeahead-option-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.production-typeahead-code {
  flex: 0 0 auto;
  max-width: 128px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #edf6fb;
  color: #315a73;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.production-typeahead-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.production-typeahead-check {
  flex: 0 0 auto;
  color: #17725f;
  font-weight: 900;
  visibility: hidden;
}
.production-typeahead-option.active .production-typeahead-check {
  visibility: visible;
}
.production-typeahead-empty {
  padding: 11px 10px;
  border-radius: 6px;
  background: #f8fbfd;
  color: #53697e;
  font-size: 13px;
  font-weight: 700;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.field-row .field { margin-bottom: 0; }

/* â”€â”€ TOASTS â”€â”€ */
.toast-root {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 8px; z-index: 999;
}
.toast {
  background: rgba(11, 31, 70, 0.94);
  color: #fff;
  border: 1px solid rgba(145, 176, 242, 0.5);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.05) inset;
  max-width: 340px;
  backdrop-filter: blur(6px);
  animation: toastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes toastIn {
  from { transform: translateY(16px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ─── IMPORT FEEDBACK ─── */
.import-form-busy {
  position: relative;
  opacity: 0.92;
}
.import-form-busy::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(76, 201, 240, 0.22);
  border-radius: var(--r-sm);
  pointer-events: none;
}
.btn.is-importing {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
}
.btn.is-importing::before,
.import-busy-status::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: importSpin 0.72s linear infinite;
}
.import-busy-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(76, 201, 240, 0.24);
  border-radius: var(--r-sm);
  color: var(--text);
  background: rgba(76, 201, 240, 0.08);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
@keyframes importSpin {
  to { transform: rotate(360deg); }
}
.import-lote-card {
  padding: 0;
  overflow: hidden;
}
.import-lote-card .card-header {
  margin-bottom: 0;
}
.import-lote-card .card-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.import-lote-body {
  padding: 14px;
}
.import-lote-form {
  display: grid;
  gap: 14px;
}
.import-settings-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, .72fr) minmax(150px, .64fr) minmax(150px, .64fr);
  gap: 10px;
  align-items: end;
}
.import-lote-field {
  min-width: 0;
}
.import-lote-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.import-lote-field input,
.import-lote-field select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #213b57;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.import-methods {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, .9fr);
  gap: 12px;
  align-items: stretch;
}
.import-method-pane {
  border: 1px solid rgba(84, 113, 143, .7);
  border-radius: 8px;
  background: rgba(18, 42, 66, .42);
  padding: 12px;
  min-width: 0;
}
.import-method-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.import-method-head h5 {
  margin: 0;
  color: #d9e9fa;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
}
.import-method-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.import-method-badge {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(145, 176, 242, 0.22);
  border-radius: 6px;
  padding: 3px 7px;
  color: #bcd5f1;
  background: rgba(88, 166, 255, .09);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.import-file-control {
  border: 1px dashed #54718f;
  border-radius: var(--r-sm);
  background: rgba(88, 166, 255, 0.08);
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 5px;
}
.import-file-control input {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.import-file-control input::file-selector-button {
  border: 0;
  border-radius: 6px;
  background: #dbeafe;
  color: #10243a;
  font: inherit;
  font-weight: 800;
  padding: 7px 10px;
  margin-right: 10px;
  cursor: pointer;
}
.import-file-picker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 5px;
  border: 1px dashed #54718f;
  border-radius: var(--r-sm);
  background: rgba(88, 166, 255, 0.08);
}
.import-file-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.import-file-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 6px;
  background: #dbeafe;
  color: #10243a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.import-file-name {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-lote-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.import-lote-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.import-lote-actions .btn {
  min-height: 40px;
  white-space: nowrap;
}
.import-lote-actions .btn svg {
  width: 14px;
  height: 14px;
}
.import-pec-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.import-pec-actions .btn {
  justify-content: flex-start;
  width: 100%;
}
.import-lote-footer {
  padding: 9px 10px;
  border: 1px solid rgba(145, 176, 242, 0.18);
  border-radius: var(--r-sm);
  color: var(--muted);
  background: rgba(12, 28, 47, 0.28);
  font-size: 11px;
  line-height: 1.4;
}

/* â”€â”€ INLINE STATUS â”€â”€ */
.status-counts { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.status-counts span { display: flex; align-items: center; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-warn { background: var(--warn); }
.dot-ok   { background: var(--ok); }
.dot-danger { background: var(--danger); }

/* â”€â”€ EMPTY STATE â”€â”€ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state svg { width: 36px; height: 36px; margin: 0 auto 10px; display: block; opacity: 0.3; }
.empty-state p { font-size: 13px; }

/* â”€â”€ PENDING BADGE â”€â”€ */
.pending-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; border-radius: 4px;
  padding: 0 5px;
  background: var(--warn); color: #fff; font-size: 10px; font-weight: 700;
  margin-left: auto;
  animation: badgeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── PROFESSIONAL OPERATIONS UI ── */
.main-shell { background: #f4f7fb; }
.topbar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 56px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #dbe4f2;
  box-shadow: 0 10px 22px rgba(19, 42, 84, 0.05);
}
.content { padding: 18px 22px 26px; }
.page-head {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.page-head h3 { font-size: 24px; line-height: 1.15; color: #edf6ff; letter-spacing: 0; }
.page-head p { margin-top: 4px; color: var(--muted); font-size: 13px; max-width: 740px; }
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(5, 14, 24, 0.22);
}
.card-header {
  min-height: 44px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.card-header h4 { color: #cfe1f4; font-size: 13px; letter-spacing: 0; }
.btn {
  min-height: 34px;
  border-radius: 7px;
  font-weight: 700;
  letter-spacing: 0;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-danger { background: #c9342e; border-color: #c9342e; color: #fff; }
.btn-soft {
  background: var(--primary-soft);
  border-color: #45627d;
  color: #c5ddff;
}
.sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-soft) 100%);
  border-right: 1px solid #1a3252;
  box-shadow: 10px 0 24px rgba(5, 14, 24, 0.20);
}
.sidebar::before,
.sidebar::after,
.nav-item::before,
.nav-group-label::before { display: none !important; }
.sidebar-brand {
  border-radius: 8px;
  background: linear-gradient(135deg, #245b89 0%, #1f7f75 100%);
  border: 1px solid #4b7fab;
  box-shadow: 0 8px 18px rgba(5,14,24,0.22);
}
.sidebar-brand h2,
.sidebar-brand small { color: #fff; }
.nav-item {
  border-radius: 7px;
  color: var(--sidebar-text);
  min-height: 34px;
}
.nav-item svg {
  width: 14px;
  height: 14px;
}
.nav-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(88,166,255,0.24);
}
.nav-group-label {
  color: var(--sidebar-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.executive-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(420px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
.executive-panel {
  background: linear-gradient(135deg, #245b89 0%, #1f7f75 100%);
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 24px rgba(5,14,24,0.28);
}
.executive-panel h3 { font-size: 25px; line-height: 1.16; letter-spacing: 0; }
.executive-panel p { color: rgba(255,255,255,0.82); font-size: 13px; margin-top: 6px; }
.executive-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.executive-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 12px;
  font-weight: 700;
}
.executive-meta button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.executive-meta button:hover {
  background: rgba(255,255,255,0.2);
}
.executive-meta button:disabled {
  cursor: wait;
  opacity: 0.68;
}
.command-bar {
  background: #1f344d;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(5, 14, 24, 0.22);
}
.collapsible-filter-card {
  align-self: start;
  overflow: hidden;
  padding: 0;
}
.collapsible-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.collapsible-filter-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}
.collapsible-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  flex: 0 0 auto;
}
.collapsible-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #244b70;
  color: #c5ddff;
  border: 1px solid #45627d;
}
.collapsible-filter-icon svg {
  width: 15px;
  height: 15px;
}
.collapsible-filter-title strong {
  color: #d0e8ff;
  font-size: 13px;
}
.collapsible-filter-summary {
  flex: 1;
  margin-top: 0;
}
.collapsible-filter-body {
  padding: 0 12px 12px;
}
.collapsible-filter-toggle {
  flex: 0 0 auto;
  min-width: 108px;
  justify-content: center;
}
.collapsible-filter-toggle svg {
  transition: transform 0.18s ease;
}
.collapsible-filter-card.is-collapsed .collapsible-filter-head {
  border-bottom: 0;
}
.collapsible-filter-card.is-collapsed .collapsible-filter-body {
  display: none;
}
.collapsible-filter-card.is-collapsed .collapsible-filter-toggle svg {
  transform: rotate(-90deg);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.executive-hero .filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.executive-hero .filter-field.span-2,
.executive-hero .filter-field.span-3,
.executive-hero .filter-field.span-4 {
  grid-column: span 1;
}
.executive-hero .filter-field.span-5 {
  grid-column: 1 / -1;
}
.filter-field { min-width: 0; }
.filter-field.span-2 { grid-column: span 2; }
.filter-field.span-3 { grid-column: span 3; }
.filter-field.span-4 { grid-column: span 4; }
.filter-field.span-5 { grid-column: span 5; }
.filter-field.span-6 { grid-column: span 6; }
.filter-field.span-7 { grid-column: span 7; }
.filter-field.span-8 { grid-column: span 8; }
.filter-field.span-9 { grid-column: span 9; }
.filter-field.span-10 { grid-column: span 10; }
.filter-field.span-11 { grid-column: span 11; }
.filter-field.span-12 { grid-column: span 12; }
.filter-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
}
.filter-field input,
.filter-field select,
.toolbar input,
.toolbar select {
  width: 100%;
  height: 34px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #213b57;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
.filter-field input:focus,
.filter-field select:focus,
.toolbar input:focus,
.toolbar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88,166,255,0.16);
}
.rh-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 620px), 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.rh-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.rh-form-grid .filter-field {
  min-width: 0;
}
.rh-form-grid input[type="file"] {
  min-width: 0;
  overflow: hidden;
}
.rh-form-grid .btn {
  min-height: 42px;
  width: 100%;
}
.quick-periods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.quick-periods .btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.filter-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  border: 1px solid #45627d;
  color: #c5ddff;
  font-size: 12px;
  font-weight: 700;
}
.filter-chip.muted {
  background: #213b57;
  border-color: var(--line);
  color: var(--muted);
}
.production-records-table {
  min-width: 1320px;
  table-layout: auto;
}
.production-records-table th,
.production-records-table td {
  overflow-wrap: normal;
  word-break: normal;
}
.production-records-table .production-date-cell,
.production-records-table .production-time-cell,
.production-records-table .production-ficha-cell,
.production-records-table .production-quantity-cell,
.production-records-table .production-actions-cell {
  white-space: nowrap;
}
.production-records-table .production-ficha-cell {
  min-width: 130px;
}
.production-records-table .production-ficha-chip {
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.production-records-table .production-professional-cell,
.production-records-table .production-establishment-cell,
.production-records-table .production-procedure-cell {
  min-width: 180px;
  overflow-wrap: anywhere;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.metric-card {
  background: #1f344d;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(5, 14, 24, 0.22);
  position: relative;
  overflow: hidden;
}
.metric-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}
.metric-card.warn::after { background: var(--warn); }
.metric-card.ok::after { background: var(--ok); }
.metric-card.danger::after { background: var(--danger); }
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}
.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.insight-card {
  border: 1px solid var(--line);
  background: #1f344d;
  border-radius: 8px;
  padding: 12px;
}
.insight-card strong {
  display: block;
  color: #1f355e;
  font-size: 13px;
  margin-bottom: 4px;
}
.insight-card span {
  color: #64748b;
  font-size: 12px;
}
.mini-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.mini-kpi {
  border: 1px solid var(--line);
  background: #1f344d;
  border-radius: 8px;
  padding: 12px;
}
.mini-kpi small { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mini-kpi strong { display: block; font-size: 20px; margin-top: 4px; color: var(--text); }
.table-wrap {
  overflow: auto;
  border-radius: 0 0 8px 8px;
}
table {
  border-collapse: separate;
  border-spacing: 0;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #203851;
  color: #fff;
  height: 38px;
  font-size: 11px;
  letter-spacing: 0;
}
tbody tr { transition: background-color 0.12s ease; }
tbody tr:hover { background: #263f5c; }
.status-row-aprovado td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
.status-row-pre_aprovado td:first-child { box-shadow: inset 4px 0 0 #36d399; }
.status-row-aguardando td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
.status-row-reprovado td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: max-content;
  min-height: 24px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  border: 1px solid transparent;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}
.badge-aprovado { color: #66e3d8; background: #163f34; border-color: #2a6b5a; }
.badge-aprovado .badge-dot { background: var(--ok); }
.badge-pre_aprovado { color: #6ee7b7; background: #143f32; border-color: #2f7a60; }
.badge-pre_aprovado .badge-dot { background: #36d399; }
.badge-aguardando { color: #ffd773; background: #4a3510; border-color: #856224; }
.badge-aguardando .badge-dot { background: var(--warn); }
.badge-enviado { color: #a7c7e7; background: #213b57; border-color: #3d5c7a; }
.badge-enviado .badge-dot { background: #7db7ff; }
.badge-validado { color: #66e3d8; background: #163f34; border-color: #2a6b5a; }
.badge-validado .badge-dot { background: var(--ok); }
.badge-reprovado { color: #ff8a8a; background: #4a2020; border-color: #7a3a3a; }
.badge-reprovado .badge-dot { background: var(--danger); }
.quality-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #213b57;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}
.quality-pill-button {
  width: 100%;
  max-width: 460px;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
  font-family: inherit;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  padding: 8px 10px;
}
.quality-pill-button:hover {
  color: var(--text);
  border-color: var(--primary);
  background: #244b70;
}
.th-sort {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  font-weight: 800;
}
.pagination-bar,
.table-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #1f344d;
  color: var(--muted);
  font-size: 12px;
}
.approval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #213b57;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.batch-bar strong { color: #d0e8ff; }
.approval-reason-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.approval-reason-head strong {
  color: #d0e8ff;
  font-size: 13px;
}
.approval-reason-head span {
  color: var(--muted);
  font-size: 12px;
}
.approval-reason-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.approval-reason-card {
  appearance: none;
  border: 1px solid var(--line);
  background: #1f344d;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
}
.approval-reason-card:hover,
.approval-reason-card.is-active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(78, 162, 255, .28);
}
.approval-reason-card strong {
  color: #f4f8ff;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: break-word;
  white-space: normal;
}
.approval-reason-card span,
.approval-reason-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.approval-reason-card small {
  color: #9fc4ed;
  font-weight: 800;
}
.check-cell { width: 42px; text-align: center; }
.check-cell input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.sigtap-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.sigtap-summary .mini-kpi { margin: 0; }
.servidor-card {
  margin-bottom: 14px;
}
.servidor-portal-page {
  gap: 14px;
}
.servidor-selector-grid {
  display: grid;
  grid-template-columns: minmax(260px, 520px) minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 12px;
}
.servidor-selector-hint {
  align-self: center;
  color: #53697e;
  font-size: 13px;
  line-height: 1.5;
  max-width: 560px;
}
.servidor-profile-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(180px, 0.8fr));
  gap: 12px;
  padding: 14px;
}
.servidor-profile-card > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe8f1;
  border-radius: 8px;
  background: #f8fbfd;
}
.servidor-profile-card small,
.servidor-table-headline small,
.servidor-productivity-header small {
  display: block;
  color: #21606f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.servidor-profile-card strong {
  display: block;
  margin-top: 4px;
  color: #14233a;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.servidor-profile-card span {
  display: block;
  margin-top: 5px;
  color: #53697e;
  font-size: 13px;
  line-height: 1.35;
}
.servidor-profile-alert {
  display: grid;
  gap: 6px;
  border-left: 4px solid #d69b2d;
}
.servidor-profile-alert strong,
.servidor-profile-alert span {
  margin: 0;
}
.servidor-productivity-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbe8f1;
}
.servidor-productivity-header h4 {
  margin: 4px 0 0;
  color: #14233a;
  font-size: 18px;
}
.servidor-productivity-header p {
  margin: 5px 0 0;
  color: #53697e;
  font-size: 13px;
  line-height: 1.45;
}
.servidor-competencia-field {
  min-width: 0;
  margin: 0;
}
.servidor-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}
.servidor-productivity-chart-wrap {
  min-height: 260px;
  height: 300px;
  padding: 10px;
  border: 1px solid #dbe8f1;
  border-radius: 8px;
  background: #ffffff;
}
.servidor-status-summary {
  display: grid;
  gap: 10px;
}
.servidor-status-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid #dbe8f1;
  border-radius: 8px;
  background: #f8fbfd;
}
.servidor-status-pill span {
  color: #53697e;
  font-size: 12px;
  font-weight: 900;
}
.servidor-status-pill strong {
  color: #14233a;
  font-size: 22px;
  line-height: 1;
}
.servidor-status-pill.is-ok { border-left: 4px solid #3a9d87; }
.servidor-status-pill.is-warn { border-left: 4px solid #d69b2d; }
.servidor-status-pill.is-danger { border-left: 4px solid #d95b58; }
.servidor-status-note {
  padding: 12px;
  border: 1px solid #d6e5ef;
  border-radius: 8px;
  background: #eef6fb;
  color: #3f5d73;
  font-size: 13px;
  line-height: 1.45;
}
.servidor-table-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #dbe8f1;
}
.servidor-table-headline h4 {
  margin: 3px 0 0;
  color: #14233a;
  font-size: 17px;
}
.servidor-table-headline span {
  color: #53697e;
  font-size: 12px;
  font-weight: 900;
}
.servidor-atestado-form {
  padding-top: 12px;
}
.servidor-atestado-form .btn {
  width: 100%;
}
.servidor-doc-table {
  margin-top: 12px;
}
.servidor-productivity-table table {
  min-width: 980px;
  table-layout: fixed;
}
.servidor-productivity-table th,
.servidor-doc-table th {
  background: #eef4fa;
  color: #1f3f5b;
}
.servidor-productivity-table td,
.servidor-doc-table td {
  color: #263f55;
  background: #ffffff;
}
.servidor-productivity-table tbody tr:nth-child(even) td,
.servidor-doc-table tbody tr:nth-child(even) td {
  background: #f8fbfd;
}
.servidor-productivity-table tbody tr:hover td,
.servidor-doc-table tbody tr:hover td {
  background: #eef6fb;
}
.servidor-productivity-table th:nth-child(1),
.servidor-productivity-table td:nth-child(1),
.servidor-productivity-table th:nth-child(2),
.servidor-productivity-table td:nth-child(2) {
  width: 92px;
  white-space: nowrap;
}
.servidor-productivity-table th:nth-child(3),
.servidor-productivity-table td:nth-child(3) {
  width: 78px;
  white-space: nowrap;
}
.servidor-productivity-table th:nth-child(4),
.servidor-productivity-table td:nth-child(4) {
  width: 170px;
}
.servidor-productivity-table th:nth-child(5),
.servidor-productivity-table td:nth-child(5) {
  width: 150px;
}
.servidor-productivity-table th:nth-child(7),
.servidor-productivity-table td:nth-child(7) {
  width: 58px;
  text-align: center;
}
.servidor-productivity-table th:nth-child(8),
.servidor-productivity-table td:nth-child(8) {
  width: 110px;
}
.servidor-productivity-table td:nth-child(4),
.servidor-productivity-table td:nth-child(5),
.servidor-productivity-table td:nth-child(6) {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
  .executive-hero { grid-template-columns: 1fr; }
  .metric-grid, .insight-strip, .mini-kpi-row, .sigtap-summary, .dashboard-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .servidor-profile-card,
  .servidor-chart-grid {
    grid-template-columns: 1fr;
  }
  .servidor-status-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .servidor-status-note {
    grid-column: 1 / -1;
  }
  .dashboard-ops-grid { grid-template-columns: 1fr; }
  .import-error-summary, .import-diagnostic-note, .import-payload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-settings-grid, .import-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-lote-actions { justify-content: flex-start; }
  .production-calendar-layout { grid-template-columns: 1fr; }
  .production-calendar-side { border-left: none; border-top: 1px solid #e2e8f0; padding-left: 0; padding-top: 12px; }
  .filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .content { padding: 14px; }
  .page-head { display: block; }
  .metric-grid, .insight-strip, .mini-kpi-row, .sigtap-summary, .dashboard-action-grid { grid-template-columns: 1fr; }
  .servidor-selector-grid,
  .servidor-profile-card,
  .servidor-productivity-header {
    grid-template-columns: 1fr;
  }
  .servidor-competencia-field {
    min-width: 0;
    width: 100%;
  }
  .servidor-productivity-chart-wrap {
    height: 260px;
    min-height: 240px;
  }
  .servidor-status-summary {
    grid-template-columns: 1fr;
  }
  .servidor-table-headline {
    align-items: flex-start;
    flex-direction: column;
  }
  .servidor-dashboard-foot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .import-error-summary, .import-diagnostic-note, .import-payload-grid { grid-template-columns: 1fr; }
  .import-lote-body { padding: 12px; }
  .import-settings-grid, .import-methods { grid-template-columns: 1fr; }
  .import-lote-actions .btn { width: 100%; }
  .filter-grid { grid-template-columns: 1fr; }
  .production-calendar-grid { gap: 4px; }
  .production-calendar-weekday { font-size: 10px; }
  .production-calendar-blank,
  .production-calendar-day { min-height: 70px; border-radius: 6px; }
  .production-calendar-day { padding: 6px; }
  .production-calendar-day strong { font-size: 15px; }
  .production-calendar-day small { font-size: 10px; }
  .filter-field.span-2,
  .filter-field.span-3,
  .filter-field.span-4,
  .filter-field.span-5,
  .filter-field.span-6,
  .filter-field.span-7,
  .filter-field.span-8,
  .filter-field.span-9,
  .filter-field.span-10,
  .filter-field.span-11,
  .filter-field.span-12 { grid-column: span 1; }
  .collapsible-filter-head {
    align-items: stretch;
    flex-direction: column;
  }
  .collapsible-filter-title {
    align-items: flex-start;
  }
  .collapsible-filter-toggle {
    width: 100%;
  }
  .executive-panel h3 { font-size: 21px; }
  .approval-actions { grid-template-columns: 1fr; }
  .batch-bar { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8d4ec; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #a8b8d8; }
/* ── TABLE WRAP ── */
.table-wrap { box-shadow: 0 2px 8px rgba(13,34,76,0.06); }
/* ── FIELD FOCUS ── */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 79, 168, 0.14);
  transform: none;
}
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .app-layout { display: block; }
  .sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(188, 203, 234, 0.6);
    box-shadow: none;
  }
  .sidebar::after {
    left: 8px;
    bottom: -10px;
  }
  .main-shell {
    margin-left: 0;
    width: 100%;
  }
  .sidebar-nav { padding: 10px 10px 22px; }
  .nav-group-label { width: 100%; margin: 8px 0 6px; }
  .nav-item { width: 100%; margin: 2px 0; }
  .topbar { padding: 12px 14px; }
  .content { padding: 14px; }
  .dashboard-hero { flex-direction: column; align-items: stretch; }
  .dashboard-controls { width: 100%; }
}
@media (max-width: 700px) {
  .kpis { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dash-user { width: 100%; border-radius: var(--r-sm); }
}

/* Modern SaaS / professional dashboard refinement */
:root {
  --bg: #132235;
  --bg-soft: #192c43;
  --card: #1f344d;
  --card-solid: #1f344d;
  --line: #36536f;
  --line-strong: #4b6b89;
  --text: #e7f1fb;
  --muted: #a7b9cc;
  --primary: #58a6ff;
  --primary-hover: #2f81f7;
  --primary-soft: #244b70;
  --sidebar-bg: #10263d;
  --sidebar-bg-soft: #18334f;
  --sidebar-text: #e2edf8;
  --sidebar-muted: #9fb3c8;
  --sidebar-active: #58a6ff;
  --sidebar-hover: #223a55;
  --ok: #4fd1c5;
  --ok-bg: #163f34;
  --warn: #f6c65b;
  --warn-bg: #4a3510;
  --danger: #ff6b6b;
  --danger-bg: #4a2020;
  --r: 8px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(5, 14, 24, 0.22);
  --shadow-md: 0 10px 24px rgba(5, 14, 24, 0.30);
}
body {
  background:
    linear-gradient(180deg, #17283c 0%, #192c43 210px, #132235 100%);
  color: var(--text);
}
#mips-login-screen {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 25%, transparent 25%) 0 0 / 72px 72px,
    linear-gradient(135deg, transparent 75%, rgba(255,255,255,0.08) 75%) 0 0 / 72px 72px,
    linear-gradient(135deg, #0b3d68 0%, #0f766e 52%, #09213d 100%);
  animation: loginGridDrift 18s linear infinite;
}
.login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  gap: 18px;
  align-items: stretch;
}
.login-panel {
  min-height: 520px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.login-panel::before {
  content: '';
  position: absolute;
  inset: auto 28px 28px auto;
  width: 220px;
  height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 100%);
  transform: rotate(-7deg);
}
.login-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 26px 60px rgba(5, 18, 35, 0.34);
  backdrop-filter: none;
}
.login-brand h1,
.topbar-title,
.page-head h3,
.dashboard-title h3,
.drawer-head h4 {
  color: #edf6ff;
}
.login-brand h1 { color: var(--primary); }
.login-brand {
  border-bottom: 1px solid #e4edf5;
  padding-bottom: 18px;
}
.login-brand p {
  color: #667085;
}
.login-label {
  color: #344054;
}
.login-input {
  min-height: 42px;
  border-color: #c8d7e6;
  background: #f8fbfd;
}
.login-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23,105,170,0.14);
}
.login-input.is-invalid {
  border-color: #d94b4b !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 4px rgba(217, 75, 75, 0.12) !important;
}
.login-message,
.login-error {
  border-color: #f1b8b8;
  background: #fff4f4;
  color: #8d1f1f;
}
.login-recovery-toggle {
  border: 1px solid #c8d7e6;
  border-radius: 8px;
  background: #f5f9fc;
}
.login-recovery-form {
  border: 1px solid #d9e3f7;
  border-radius: 10px;
  background: #f8fbfd;
}
.login-submit {
  min-height: 44px;
  background: linear-gradient(135deg, #1769aa 0%, #0f766e 100%);
  border-color: var(--primary-hover);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(15, 103, 119, 0.26);
}
.login-submit:hover {
  background: linear-gradient(135deg, #105489 0%, #0b5f59 100%);
  box-shadow: 0 14px 28px rgba(15, 103, 119, 0.32);
}
@media (max-width: 860px) {
  #mips-login-screen {
    padding: 16px;
    display: block;
  }
  .login-shell {
    min-height: calc(100vh - 32px);
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: center;
  }
  .login-panel {
    min-height: auto;
    padding: 22px;
    border-radius: 14px;
  }
  .login-panel h1 {
    font-size: 28px;
  }
  .login-panel p,
  .login-activity {
    display: none;
  }
  .login-card {
    width: 100%;
    border-radius: 14px;
    padding: 28px 22px 24px;
  }
}
.main-shell {
  background: transparent;
}
.topbar {
  min-height: 58px;
  padding: 10px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(237,247,253,0.98) 100%);
  border-bottom: 1px solid #bfd3e4;
  box-shadow: 0 2px 10px rgba(15, 67, 108, 0.07);
}
.topbar > div:first-child {
  min-width: 0;
  padding-left: 2px;
}
.topbar-title {
  font-size: 17px;
  line-height: 1.15;
  color: #10243f;
}
.topbar-sub {
  color: #52657d;
  white-space: normal;
}
.topbar-right {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}
.content {
  padding: 20px 24px 28px;
}
.page.active,
.card,
.kpi,
.nav-item,
.sidebar {
  animation: none;
}
.page.active {
  animation: appPageEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page.active .page-head {
  animation: appCardEnter 0.32s 0.03s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-head {
  margin-bottom: 16px;
}
.sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-soft) 100%);
  border-right: 1px solid #1a3252;
  box-shadow: 4px 0 18px rgba(15, 67, 108, 0.07);
}
.sidebar-brand {
  background: linear-gradient(135deg, #245b89 0%, #1f7f75 100%);
  border: 1px solid #4b7fab;
  box-shadow: 0 8px 18px rgba(5, 14, 24, 0.22);
}
.sidebar-brand h2 {
  color: #ffffff;
}
.sidebar-brand small {
  color: rgba(255,255,255,0.82);
}
.sidebar-brand h2::before {
  border-color: rgba(255,255,255,0.9);
}
.sidebar-user {
  border-color: var(--line);
  background: #263f5c;
  box-shadow: none;
}
.nav-item {
  border-radius: 6px;
  color: var(--sidebar-text);
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-item:hover {
  background: #223a55;
  border-color: #45627d;
  transform: translateX(2px);
}
.nav-item.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(88, 166, 255, 0.24);
  animation: activeNavPulse 0.48s ease-out both;
}
.btn,
.login-input,
.sidebar-user select,
.filter-field input,
.filter-field select,
.toolbar input,
.toolbar select,
.dash-field input,
.dash-field select {
  border-radius: 6px;
}
.btn {
  box-shadow: none;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s, box-shadow 0.14s;
}
.btn:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(5, 14, 24, 0.26);
}
.btn-primary,
.quick-periods .btn.active {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.quick-periods .btn.active:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-soft,
.filter-chip {
  background: var(--primary-soft);
  border-color: #45627d;
  color: #c5ddff;
}
.filter-field input[type="month"],
.dash-field input[type="month"] {
  min-width: 0;
  max-width: 100%;
}
.executive-hero .filter-field input,
.executive-hero .filter-field select,
.assistant-input,
.assistant-source,
.assistant-message,
.assistant-prompt {
  min-width: 0;
}
.assistant-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}
.assistant-side {
  grid-template-columns: minmax(0, 1fr);
}
.assistant-prompt {
  justify-content: flex-start;
  align-items: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.35;
  height: auto;
}
@media (max-width: 1100px) {
  .assistant-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .assistant-side {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }
}
.card,
.command-bar,
.metric-card,
.dashboard-action,
.insight-card,
.mini-kpi,
.table-wrap,
.dash-user {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(5, 14, 24, 0.20);
}
.page.active .card,
.page.active .command-bar,
.page.active .metric-card,
.page.active .dashboard-action,
.page.active .insight-card,
.page.active .mini-kpi,
.page.active .table-wrap,
.page.active .kpi,
.page.active .executive-panel {
  animation: appCardEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page.active .metric-card:nth-child(1),
.page.active .kpi:nth-child(1) { animation-delay: 0.04s; }
.page.active .metric-card:nth-child(2),
.page.active .kpi:nth-child(2) { animation-delay: 0.08s; }
.page.active .metric-card:nth-child(3),
.page.active .kpi:nth-child(3) { animation-delay: 0.12s; }
.page.active .metric-card:nth-child(4),
.page.active .kpi:nth-child(4) { animation-delay: 0.16s; }
.page.active tbody tr {
  animation: appRowEnter 0.28s ease-out both;
}
.page.active tbody tr:nth-child(1) { animation-delay: 0.02s; }
.page.active tbody tr:nth-child(2) { animation-delay: 0.05s; }
.page.active tbody tr:nth-child(3) { animation-delay: 0.08s; }
.page.active tbody tr:nth-child(4) { animation-delay: 0.11s; }
.page.active tbody tr:nth-child(5) { animation-delay: 0.14s; }
.page.active tbody tr:nth-child(6) { animation-delay: 0.17s; }
.chart-wrap {
  animation: chartEnter 0.42s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center bottom;
}
.chart-wrap.chart-refresh {
  animation: chartEnter 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.command-bar {
  background: linear-gradient(180deg, #1f344d 0%, #183047 100%);
}
.card:hover,
.metric-card:hover,
.mini-kpi:hover,
.insight-card:hover {
  box-shadow: 0 8px 20px rgba(5, 14, 24, 0.28);
}
.card-header {
  background: linear-gradient(90deg, #203851 0%, #1f344d 100%);
}
.executive-panel {
  background: linear-gradient(135deg, #245b89 0%, #1f7f75 100%);
  color: #ffffff;
  border: 1px solid #4b7fab;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(5, 14, 24, 0.28);
}
.executive-panel h3 {
  color: #ffffff;
}
.executive-panel p {
  color: rgba(255,255,255,0.84);
}
.executive-meta span {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
  color: #ffffff;
}
.metric-card::after {
  width: 3px;
  background: var(--primary);
}
.metric-card {
  background: linear-gradient(180deg, #1f344d 0%, #1a2f47 100%);
}
.metric-card.warn { background: linear-gradient(180deg, #1f344d 0%, #3c321e 100%); }
.metric-card.ok { background: linear-gradient(180deg, #1f344d 0%, #193c35 100%); }
.metric-card.danger { background: linear-gradient(180deg, #1f344d 0%, #3c2428 100%); }
.metric-card.warn::after,
.kpi.kpi-warn {
  background: #d99d24;
}
.metric-card.ok::after,
.kpi.kpi-ok {
  background: var(--ok);
}
.metric-card.danger::after,
.kpi.kpi-danger {
  background: var(--danger);
}
.kpi {
  background: #1f344d;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(5, 14, 24, 0.20);
}
.kpi:hover {
  transform: none;
  box-shadow: 0 8px 20px rgba(5, 14, 24, 0.28);
}
.kpi small {
  color: var(--muted);
}
.kpi.kpi-primary,
.kpi.kpi-ok,
.kpi.kpi-danger {
  color: var(--text);
  background: #1f344d;
}
.kpi.kpi-primary { border-left: 3px solid var(--primary); }
.kpi.kpi-ok { border-left: 3px solid var(--ok); }
.kpi.kpi-warn {
  color: var(--text);
  background: #1f344d;
  border-left: 3px solid #d99d24;
}
.kpi.kpi-warn small {
  color: var(--muted);
}
.kpi.kpi-danger { border-left: 3px solid var(--danger); }
thead th {
  background: #203851;
  color: #c5ddff;
  border-bottom: 1px solid var(--line);
}
tbody td {
  border-bottom-color: #34536f;
}
tbody tr:nth-child(even) td {
  background: #1b3149;
}
tbody tr:hover td,
tbody tr:hover {
  background: #263f5c !important;
}
.badge {
  border-radius: 6px;
  letter-spacing: 0;
}
.status-cell {
  min-width: 112px;
  white-space: nowrap;
}
.status-cell .badge {
  justify-content: center;
}
.quality-pill {
  background: #213b57;
}
.municipio-badge {
  background: #244b70;
  border-color: #4b7fab;
  color: #c5ddff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.status-row-aprovado td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.status-row-pre_aprovado td:first-child { box-shadow: inset 3px 0 0 #36d399; }
.status-row-aguardando td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.status-row-reprovado td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.drawer-overlay.open {
  animation: modalBackdropEnter 0.24s ease-out both;
}
.drawer-overlay.open .drawer-panel {
  animation: modalPanelEnter 0.30s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.drawer-body .field,
.modal-field,
.manage-modal-actions .btn {
  animation: appCardEnter 0.28s ease-out both;
}
.drawer-body .field:nth-child(1) { animation-delay: 0.03s; }
.drawer-body .field:nth-child(2) { animation-delay: 0.06s; }
.drawer-body .field:nth-child(3) { animation-delay: 0.09s; }
.drawer-body .field:nth-child(4) { animation-delay: 0.12s; }
.manage-modal-overlay {
  animation: modalBackdropEnter 0.20s ease-out both;
}
.manage-modal {
  animation: modalPanelEnter 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.manage-modal-actions .btn:nth-child(1) { animation-delay: 0.04s; }
.manage-modal-actions .btn:nth-child(2) { animation-delay: 0.08s; }
.manage-modal-actions .btn:nth-child(3) { animation-delay: 0.12s; }
.manage-modal-actions .btn:nth-child(4) { animation-delay: 0.16s; }
::-webkit-scrollbar-thumb {
  background: #bac7d7;
}
body.mips-runtime-stable .page.active,
body.mips-runtime-stable .page.active .page-head,
body.mips-runtime-stable .page.active .card,
body.mips-runtime-stable .page.active .command-bar,
body.mips-runtime-stable .page.active .metric-card,
body.mips-runtime-stable .page.active .dashboard-action,
body.mips-runtime-stable .page.active .insight-card,
body.mips-runtime-stable .page.active .mini-kpi,
body.mips-runtime-stable .page.active .table-wrap,
body.mips-runtime-stable .page.active .kpi,
body.mips-runtime-stable .page.active .executive-panel,
body.mips-runtime-stable .page.active tbody tr,
body.mips-runtime-stable .chart-wrap,
body.mips-runtime-stable .nav-item.active {
  animation: none !important;
}
body.mips-runtime-stable .nav-item,
body.mips-runtime-stable .card,
body.mips-runtime-stable .kpi,
body.mips-runtime-stable .metric-card,
body.mips-runtime-stable .dashboard-action {
  transition-property: background-color, border-color, color, box-shadow !important;
}
@media (prefers-reduced-motion: reduce) {
  .page.active,
  .page.active *,
  .drawer-overlay,
  .drawer-overlay *,
  .manage-modal-overlay,
  .manage-modal-overlay *,
  .chart-wrap {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 920px) {
  .app-layout {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .sidebar-brand {
    margin: 0 0 8px;
    padding: 10px 12px;
  }
  .sidebar-user {
    margin: 0 0 8px;
  }
  .sidebar-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 8px;
    flex: none;
    scrollbar-width: thin;
  }
  .nav-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }
  .nav-group-label {
    display: none;
  }
  .nav-group-items,
  .nav-group-items.hidden {
    display: flex !important;
    gap: 6px;
  }
  .nav-item {
    width: auto;
    min-width: max-content;
    min-height: 34px;
    margin: 0;
    padding: 7px 10px;
    white-space: nowrap;
  }
  .sidebar-footer {
    position: static;
    margin: 0;
    padding: 0;
    background: transparent;
  }
  .btn-logout {
    min-height: 36px;
    border-radius: 6px;
    box-shadow: none;
  }
  .main-shell {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    padding: 12px 14px;
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .content {
    padding: 14px;
  }
  .topbar {
    min-height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }
  .topbar-right {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .executive-hero {
    gap: 10px;
  }
  .executive-panel {
    min-height: 0;
    padding: 16px;
  }
  .command-bar,
  .metric-card,
  .insight-card,
  .card,
  .mini-kpi {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }
  .toast-root {
    left: 14px;
    right: 14px;
    bottom: 14px;
    align-items: stretch;
  }
  .toast {
    max-width: none;
    text-align: center;
  }
}

/* Mobile-first safety layer */
*, *::before, *::after {
  box-sizing: border-box;
}
img,
svg,
canvas,
video {
  max-width: 100%;
}
#app-shell,
.app-layout,
.main-shell,
.content,
.page {
  max-width: 100%;
  min-width: 0;
}
.page {
  overflow-x: hidden;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  min-width: 720px;
}
.chart-wrap,
.chart-wrap canvas {
  max-width: 100%;
}
.filter-field,
.field,
.toolbar,
.card,
.mini-kpi,
.metric-card,
.insight-card {
  min-width: 0;
}
.filter-field input,
.filter-field select,
.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
  max-width: 100%;
  min-width: 0;
}
.professional-manage-chip,
.btn {
  overflow-wrap: break-word;
}
td,
th {
  overflow-wrap: normal;
  word-break: normal;
}
.badge {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  #mips-login-screen {
    min-height: 100dvh;
    padding: 10px;
  }
  .login-shell {
    min-height: calc(100dvh - 20px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login-panel {
    display: none;
  }
  .login-card {
    width: 100%;
    max-width: 420px;
    padding: 22px 16px 18px;
    border-radius: 12px;
  }
  .login-brand h1 {
    font-size: 25px;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    padding: 6px 8px;
  }
  .sidebar-brand {
    min-height: 38px;
    margin: 0;
    padding: 7px 9px;
  }
  .sidebar-brand h2 {
    font-size: 17px;
  }
  .sidebar-brand small {
    font-size: 8px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .sidebar-user {
    margin-bottom: 8px;
    padding: 8px 10px;
  }
  .sidebar-user select {
    width: 100%;
    min-height: 34px;
  }
  .sidebar-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 0 8px;
    scroll-snap-type: x proximity;
  }
  .nav-group,
  .nav-group-items,
  .nav-group-items.hidden {
    display: flex !important;
    flex: 0 0 auto;
    gap: 6px;
    min-width: 0;
  }
  .nav-group-label {
    display: none;
  }
  .nav-item {
    flex: 0 0 auto;
    width: auto;
    max-width: 78vw;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    scroll-snap-align: start;
  }
  .nav-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar-footer {
    position: static;
    padding: 0;
    margin-top: 2px;
    background: transparent;
  }
  .btn-logout {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 6px;
    justify-content: center;
  }
  .app-layout:not(.mobile-menu-open) .sidebar-user,
  .app-layout:not(.mobile-menu-open) .sidebar-nav,
  .app-layout:not(.mobile-menu-open) .sidebar-footer {
    display: none !important;
  }
  .app-layout.mobile-menu-open .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 100dvh;
    overflow-y: auto;
    padding-bottom: 8px;
    box-shadow: 0 18px 38px rgba(5, 14, 24, 0.36);
  }
  .app-layout.mobile-menu-open .main-shell {
    padding-top: 67px;
  }
  .app-layout.mobile-menu-open .sidebar-brand {
    margin-bottom: 8px;
  }
  .app-layout.mobile-menu-open .sidebar-user {
    display: block;
  }
  .app-layout.mobile-menu-open .sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: calc(100dvh - 174px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 0 8px;
  }
  .app-layout.mobile-menu-open .nav-group,
  .app-layout.mobile-menu-open .nav-group-items,
  .app-layout.mobile-menu-open .nav-group-items.hidden {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
  }
  .app-layout.mobile-menu-open .nav-group-label {
    display: none;
  }
  .app-layout.mobile-menu-open .nav-item {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }
  .app-layout.mobile-menu-open .sidebar-footer {
    display: block;
  }
  .topbar {
    padding: 8px 10px;
    gap: 0;
  }
  .topbar > div:first-child {
    display: none;
  }
  .topbar-title {
    font-size: 18px;
    line-height: 1.2;
  }
  .topbar-sub {
    font-size: 12px;
  }
  .topbar-right {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .municipio-badge {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
  }
  .municipio-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #session-label {
    flex: 0 1 38%;
    width: auto;
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .content {
    padding: 10px;
  }
  .page-head {
    margin-bottom: 12px;
  }
  .page-head h3,
  .dashboard-title h3,
  .executive-panel h3 {
    font-size: 21px;
    line-height: 1.18;
  }
  .page-head p,
  .dashboard-title p {
    font-size: 12px;
  }
  .dashboard-clean .executive-hero,
  .executive-hero {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
  }
  .collapsible-filter-card,
  .executive-panel,
  .command-bar,
  .servidor-selector-grid {
    width: 100%;
    min-width: 0;
  }
  .servidor-selector-grid {
    grid-template-columns: 1fr !important;
  }
  .servidor-selector-hint {
    max-width: 100% !important;
  }
  .toolbar,
  .dashboard-controls,
  .dash-inline-actions,
  .modal-actions-row,
  .drawer-foot,
  .pagination-bar,
  .table-footer-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar > *,
  .dashboard-controls > *,
  .dash-field,
  .dash-field input,
  .dash-field select,
  .toolbar input,
  .toolbar select,
  .toolbar .search-input,
  .toolbar .btn,
  .toolbar button,
  .modal-actions-row .btn,
  .drawer-foot .btn,
  .pagination-bar .btn,
  .table-footer-bar .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .toolbar span,
  .pagination-bar span,
  .table-footer-bar span {
    text-align: center;
  }
  .spacer {
    display: none;
  }
  .card {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .card-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .card-header .btn,
  .card-header button {
    width: 100%;
    justify-content: center;
  }
  .kpis,
  .grid-2,
  .metric-grid,
  .insight-strip,
  .mini-kpi-row,
  .sigtap-summary,
  .dashboard-action-grid,
  .dashboard-ops-grid,
  .import-error-summary,
  .import-payload-grid,
  .import-settings-grid,
  .import-methods,
  .filter-grid,
  .field-row {
    grid-template-columns: 1fr !important;
  }
  .filter-field.span-2,
  .filter-field.span-3,
  .filter-field.span-4,
  .filter-field.span-5,
  .filter-field.span-6,
  .filter-field.span-7,
  .filter-field.span-8,
  .filter-field.span-9,
  .filter-field.span-10,
  .filter-field.span-11,
  .filter-field.span-12 {
    grid-column: 1 / -1 !important;
  }
  .kpi,
  .metric-card,
  .insight-card,
  .mini-kpi {
    min-height: auto;
  }
  .chart-wrap {
    height: clamp(220px, 68vw, 280px) !important;
    min-height: 220px;
  }
  .dashboard-clean .chart-wrap {
    height: clamp(230px, 70vw, 285px) !important;
  }
  #page-dashboard .chart-wrap[style] {
    height: clamp(220px, 68vw, 270px) !important;
  }
  #page-dashboard .daily-panel.monthly-panel .chart-wrap[style] {
    height: 96px !important;
    min-height: 96px;
  }
  #page-relatorios .chart-wrap[style] {
    height: clamp(210px, 62vw, 250px) !important;
  }
  .table-wrap {
    border-radius: 8px;
  }
  .table-wrap table {
    min-width: 680px;
    font-size: 12px;
  }
  .table-wrap.mobile-card-table {
    border: 0;
    background: transparent;
    max-height: min(72dvh, 680px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }
  .table-wrap.mobile-card-table table {
    min-width: 0;
    width: 100%;
    border-spacing: 0;
  }
  .table-wrap.mobile-card-table thead {
    display: none;
  }
  .table-wrap.mobile-card-table tbody {
    display: grid;
    gap: 10px;
  }
  .table-wrap.mobile-card-table tbody tr {
    display: grid;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1d344f;
    box-shadow: 0 1px 2px rgba(5, 14, 24, 0.22);
  }
  .table-wrap.mobile-card-table tbody tr:hover {
    background: #213b57;
  }
  .table-wrap.mobile-card-table tbody td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(88, 166, 255, 0.16);
    font-size: 13px;
    line-height: 1.35;
  }
  .table-wrap.mobile-card-table tbody td::before {
    content: attr(data-label);
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .table-wrap.mobile-card-table tbody td:last-child {
    border-bottom: 0;
  }
  .table-wrap.mobile-card-table tbody td[colspan] {
    display: block;
    text-align: center;
  }
  .table-wrap.mobile-card-table tbody td[colspan]::before {
    display: none;
  }
  .table-wrap.mobile-card-table tbody td[data-label="Motivo"],
  .table-wrap.mobile-card-table tbody td[data-label="Ações"],
  .table-wrap.mobile-card-table tbody td.approval-actions-cell {
    grid-template-columns: 1fr;
  }
  .table-wrap.mobile-card-table tbody td[data-label="Motivo"]::before,
  .table-wrap.mobile-card-table tbody td[data-label="Ações"]::before,
  .table-wrap.mobile-card-table tbody td.approval-actions-cell::before {
    margin-bottom: 2px;
  }
  .table-wrap.mobile-card-table .quality-pill,
  .table-wrap.mobile-card-table .badge {
    justify-self: start;
  }
  .table-wrap.mobile-card-table .quality-pill {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.35;
  }
  .table-wrap.mobile-card-table .approval-actions-cell,
  .table-wrap.mobile-card-table .status-cell {
    min-width: 0;
  }
  .table-wrap.mobile-card-table .btn {
    min-height: 36px;
  }
  .table-wrap.mobile-card-table.servidor-productivity-table table {
    min-width: 0;
    table-layout: auto;
  }
  .table-wrap.mobile-card-table.servidor-productivity-table tbody td {
    width: auto !important;
    min-width: 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .table-wrap.mobile-card-table .profissionais-table {
    min-width: 0;
    table-layout: auto;
  }
  .table-wrap.mobile-card-table .profissionais-table th,
  .table-wrap.mobile-card-table .profissionais-table td {
    width: auto !important;
  }
  .table-wrap.mobile-card-table .profissionais-table th:nth-child(15),
  .table-wrap.mobile-card-table .profissionais-table td:nth-child(15) {
    position: static;
    box-shadow: none;
  }
  .table-wrap.mobile-card-table .profissionais-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  thead th,
  tbody td {
    padding: 8px;
  }
  .approval-actions,
  .professional-vinculo-actions {
    grid-template-columns: 1fr;
  }
  .professional-vinculo-actions .btn,
  .approval-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .drawer-overlay,
  .manage-modal-overlay {
    align-items: stretch;
    justify-content: center;
    padding: 8px;
  }
  .drawer-panel,
  .print-modal,
  .manage-modal,
  .professional-manage-modal,
  .import-error-modal {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
  }
  .drawer-head,
  .drawer-body,
  .drawer-foot,
  .manage-modal-head,
  .manage-modal-body {
    padding-left: 12px;
    padding-right: 12px;
  }
  .drawer-head h4,
  .manage-modal-head h4 {
    font-size: 15px;
  }
  .import-error-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .production-calendar-day,
  .production-calendar-blank {
    min-height: 62px;
  }
  .toast-root {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .toast {
    max-width: none;
  }
}
@media (max-width: 380px) {
  .chart-wrap {
    height: clamp(210px, 72vw, 270px) !important;
    min-height: 210px;
  }
  .dashboard-clean .chart-wrap {
    height: clamp(220px, 74vw, 275px) !important;
  }
}

body.page-governanca-active,
body.page-dashboard-active,
body.page-suporte-active,
body.page-auditoria-active,
body.page-aprovacao-active,
body.page-producao-active,
body.page-sigtap-active,
body.page-relatorios-active,
body.page-importacoes-active {
  background: #eef6fb !important;
}
body.page-cadastros-active {
  background: #eef6fb !important;
}
body.page-governanca-active .app-layout,
body.page-governanca-active .main-shell,
body.page-governanca-active .content,
body.page-dashboard-active .app-layout,
body.page-dashboard-active .main-shell,
body.page-dashboard-active .content,
body.page-suporte-active .app-layout,
body.page-suporte-active .main-shell,
body.page-suporte-active .content,
body.page-auditoria-active .app-layout,
body.page-auditoria-active .main-shell,
body.page-auditoria-active .content,
body.page-aprovacao-active .app-layout,
body.page-aprovacao-active .main-shell,
body.page-aprovacao-active .content,
body.page-producao-active .app-layout,
body.page-producao-active .main-shell,
body.page-producao-active .content,
body.page-sigtap-active .app-layout,
body.page-sigtap-active .main-shell,
body.page-sigtap-active .content,
body.page-relatorios-active .app-layout,
body.page-relatorios-active .main-shell,
body.page-relatorios-active .content,
body.page-importacoes-active .app-layout,
body.page-importacoes-active .main-shell,
body.page-importacoes-active .content {
  background: #eef6fb !important;
}
body.page-cadastros-active .app-layout,
body.page-cadastros-active .main-shell,
body.page-cadastros-active .content {
  background: #eef6fb !important;
}
body.page-governanca-active .content,
body.page-dashboard-active .content,
body.page-suporte-active .content,
body.page-auditoria-active .content,
body.page-aprovacao-active .content,
body.page-producao-active .content,
body.page-sigtap-active .content,
body.page-relatorios-active .content,
body.page-importacoes-active .content {
  min-height: 100vh;
}
body.page-cadastros-active .content {
  min-height: 100vh;
}

#page-municipios,
#page-estabelecimentos,
#page-profissionais,
#page-cbos,
#page-regras-qualidade {
  --text: #172033;
  --text-main: #172033;
  --muted: #53697e;
  --text-muted: #53697e;
  --muted-strong: #2d4c68;
  --card: #ffffff;
  --line: #cbddea;
  --warn: #8a5b10;
  --warn-bg: #fff8e8;
  --ok: #14715f;
  --ok-bg: #e8faf3;
  --danger: #a23b38;
  --danger-bg: #ffe7e4;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 36px);
  margin: -4px 0 0;
  padding: 18px;
  overflow-x: hidden;
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
}
body.page-cadastros-active .topbar {
  display: none !important;
}
body.page-cadastros-active .content {
  padding: 16px 16px 24px;
  overflow-x: hidden;
  background: #eef6fb !important;
}
.cadastro-page {
  display: grid;
  gap: 12px;
  width: min(100%, 1580px);
  margin: 0 auto;
  min-width: 0;
}
.cadastro-hero,
.cadastro-filter-card,
.cadastro-table-card,
#page-profissionais .card {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
.cadastro-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.35fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}
.cadastro-eyebrow,
.cadastro-filter-head small,
#page-municipios .card-header small,
#page-estabelecimentos .card-header small,
#page-profissionais .card-header small,
#page-cbos .card-header small {
  color: #21606f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.cadastro-hero h3 {
  margin: 4px 0 0;
  color: #14233a;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}
.cadastro-hero p {
  margin: 7px 0 0;
  max-width: 760px;
  color: #516377;
  font-size: 14px;
  line-height: 1.45;
}
.cadastro-hero-side {
  display: grid;
  gap: 10px;
}
.cadastro-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cadastro-metric {
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid #d5e4ee;
  border-left: 4px solid #4f8fc2;
  border-radius: 8px;
  background: #f8fbfd;
}
.cadastro-metric span {
  display: block;
  color: #53697e;
  font-size: 11px;
  font-weight: 900;
}
.cadastro-metric strong {
  display: block;
  margin-top: 6px;
  color: #102033;
  font-size: 20px;
  line-height: 1.05;
}
.cadastro-metric small {
  display: block;
  margin-top: 7px;
  color: #53697e;
  font-size: 12px;
  font-weight: 700;
}
.cadastro-metric-ok { border-left-color: #3a9d87; }
.cadastro-metric-warn { border-left-color: #d69b2d; }
.cadastro-metric-danger { border-left-color: #d95b58; }
.cadastro-metric-soft { border-left-color: #6e9fbf; }
.cadastro-hero-actions,
.cadastro-action-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.cadastro-hero-actions {
  flex-wrap: wrap;
}
.cadastro-action-row {
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-start;
}
.cadastro-filter-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}
.cadastro-filter-card.is-closed {
  padding: 12px 14px;
}
.cadastro-filter-card.is-closed .cadastro-filter-head {
  align-items: center;
  padding-bottom: 0;
  border-bottom: 0;
}
.cadastro-filter-card.is-closed .cadastro-filter-head h4 {
  margin-top: 2px;
}
.cadastro-filter-head,
#page-municipios .card-header,
#page-estabelecimentos .card-header,
#page-profissionais .card-header,
#page-cbos .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid #dbe8f1;
}
.cadastro-filter-head h4,
#page-municipios .card-header h4,
#page-estabelecimentos .card-header h4,
#page-profissionais .card-header h4,
#page-cbos .card-header h4 {
  margin: 3px 0 0;
  color: #172033;
  font-size: 18px;
  line-height: 1.15;
}
.cadastro-filter-head span,
.cadastro-filter-footer span,
.cadastro-filter-status,
#page-municipios .card-header span,
#page-estabelecimentos .card-header span,
#page-profissionais .card-header span,
#page-cbos .card-header span {
  color: #53697e;
  font-size: 12px;
  font-weight: 800;
}
.cadastro-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.cadastro-filter-actions .btn {
  min-height: 38px;
}
.cadastro-result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #d6e5ef;
  border-radius: 999px;
  background: #eef6fb;
  color: #315a73;
  font-size: 12px;
  font-weight: 900;
}
.cadastro-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}
.cadastro-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.cadastro-field-wide {
  grid-column: span 2;
}
.cadastro-field span,
#page-municipios .filter-field label,
#page-estabelecimentos .filter-field label,
#page-profissionais .filter-field label,
#page-cbos .filter-field label,
body.page-cadastros-active .field label {
  color: #2d4c68;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
#page-municipios input,
#page-municipios select,
#page-estabelecimentos input,
#page-estabelecimentos select,
#page-profissionais input,
#page-profissionais select,
#page-profissionais textarea,
#page-cbos input,
#page-cbos select,
body.page-cadastros-active .field input,
body.page-cadastros-active .field select,
body.page-cadastros-active .field textarea,
body.page-cadastros-active .mips-combo-input {
  min-height: 44px;
  border-color: #bfd2e2;
  background: #f8fbfd;
  color: #172033;
  color-scheme: light;
  box-shadow: none;
}
#page-municipios input::placeholder,
#page-estabelecimentos input::placeholder,
#page-profissionais input::placeholder,
#page-profissionais textarea::placeholder,
#page-cbos input::placeholder,
body.page-cadastros-active .field input::placeholder,
body.page-cadastros-active .field textarea::placeholder,
body.page-cadastros-active .mips-combo-input::placeholder {
  color: #7b8ea1;
  opacity: 1;
}
#page-municipios input:hover,
#page-municipios select:hover,
#page-estabelecimentos input:hover,
#page-estabelecimentos select:hover,
#page-profissionais input:hover,
#page-profissionais select:hover,
#page-profissionais textarea:hover,
#page-cbos input:hover,
#page-cbos select:hover,
body.page-cadastros-active .field input:hover,
body.page-cadastros-active .field select:hover,
body.page-cadastros-active .field textarea:hover,
body.page-cadastros-active .mips-combo-input:hover {
  border-color: #95b6cf;
  background: #ffffff;
  color: #172033;
}
#page-municipios input:focus,
#page-municipios select:focus,
#page-estabelecimentos input:focus,
#page-estabelecimentos select:focus,
#page-profissionais input:focus,
#page-profissionais select:focus,
#page-profissionais textarea:focus,
#page-cbos input:focus,
#page-cbos select:focus,
body.page-cadastros-active .field input:focus,
body.page-cadastros-active .field select:focus,
body.page-cadastros-active .field textarea:focus,
body.page-cadastros-active .mips-combo-input:focus,
body.page-cadastros-active .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16);
}
body.page-cadastros-active .mips-combo-clear,
body.page-cadastros-active .mips-combo-toggle {
  color: #6b8196;
}
body.page-cadastros-active .mips-combo-clear:hover,
body.page-cadastros-active .mips-combo-toggle:hover {
  background: #e8f2fa;
  color: #1f3f5b;
}
body.page-cadastros-active .mips-combo-menu {
  border-color: #bfd2e2;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 14px 32px rgba(47, 81, 111, 0.18);
}
body.page-cadastros-active .mips-combo-option,
body.page-cadastros-active .mips-combo-meta,
body.page-cadastros-active .mips-combo-empty {
  color: #172033;
}
body.page-cadastros-active .mips-combo-option:hover,
body.page-cadastros-active .mips-combo-option.active {
  background: #e8f2fa;
  color: #172033;
}
body.page-cadastros-active .mips-combo-check {
  color: #17725f;
}
body.page-cadastros-active .mips-combo-meta,
body.page-cadastros-active .mips-combo-empty {
  background: #f8fbfd;
  color: #53697e;
}
#page-municipios .btn,
#page-estabelecimentos .btn,
#page-profissionais .btn,
#page-cbos .btn,
body.page-cadastros-active .drawer-panel .btn,
body.page-cadastros-active .manage-modal .btn {
  border-color: #bfd2e2;
  background: #ffffff;
  color: #1f3f5b;
  box-shadow: none;
}
#page-municipios .btn:hover,
#page-estabelecimentos .btn:hover,
#page-profissionais .btn:hover,
#page-cbos .btn:hover,
body.page-cadastros-active .drawer-panel .btn:hover,
body.page-cadastros-active .manage-modal .btn:hover {
  border-color: #95b6cf;
  background: #eef6fb;
  color: #1f3f5b;
  box-shadow: none;
}
#page-municipios .btn-primary,
#page-estabelecimentos .btn-primary,
#page-profissionais .btn-primary,
#page-cbos .btn-primary,
body.page-cadastros-active .drawer-panel .btn-primary,
body.page-cadastros-active .manage-modal .btn-primary {
  border-color: #2f81c7;
  background: #2f81c7;
  color: #ffffff;
}
#page-municipios .btn-primary:hover,
#page-estabelecimentos .btn-primary:hover,
#page-profissionais .btn-primary:hover,
#page-cbos .btn-primary:hover,
body.page-cadastros-active .drawer-panel .btn-primary:hover,
body.page-cadastros-active .manage-modal .btn-primary:hover {
  border-color: #256fae;
  background: #256fae;
  color: #ffffff;
}
#page-municipios .btn-soft,
#page-municipios .btn-ghost,
#page-estabelecimentos .btn-soft,
#page-estabelecimentos .btn-ghost,
#page-profissionais .btn-soft,
#page-profissionais .btn-ghost,
#page-cbos .btn-soft,
#page-cbos .btn-ghost,
body.page-cadastros-active .drawer-panel .btn-soft,
body.page-cadastros-active .drawer-panel .btn-ghost,
body.page-cadastros-active .manage-modal .btn-soft,
body.page-cadastros-active .manage-modal .btn-ghost {
  border-color: #abcce3;
  background: #f0f7fd;
  color: #1f5d87;
}
.cadastro-link-button {
  padding: 4px 0;
  border-color: transparent !important;
  background: transparent !important;
  color: #1f5d87 !important;
  font-weight: 800;
  text-decoration: underline;
}
.cadastro-table-card {
  overflow: hidden;
}
.cadastro-table-card .table-wrap,
#page-profissionais .card .table-wrap {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}
.cadastro-table-card table {
  min-width: 780px;
  width: 100%;
}
.cadastro-table-card thead th,
.cadastro-table-card .table-wrap th {
  padding: 11px 12px;
  border-bottom: 1px solid #d5e4ee;
  background: #eef4fa;
  color: #1f3f5b;
  font-size: 12px;
  letter-spacing: 0;
}
.cadastro-table-card tbody td,
.cadastro-table-card .table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0ebf3;
  background: #ffffff;
  color: #263f55;
  vertical-align: middle;
}
.cadastro-table-card tbody tr:nth-child(even) td {
  background: #f8fbfd;
}
.cadastro-table-card tbody tr,
.cadastro-table-card tbody tr:hover {
  background: transparent !important;
}
.cadastro-table-card tbody tr:hover td {
  background: #eef6fb;
  border-bottom-color: #d6e5ef;
}
.cadastro-code-chip,
#page-profissionais .profissionais-table-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d6e5ef;
  border-radius: 7px;
  background: #edf5fb;
  color: #315a73;
  font-size: 12px;
  font-weight: 800;
}
.cadastro-actions-cell {
  width: 1%;
  min-width: 188px;
  white-space: nowrap;
}
.cadastro-action-row .btn,
#page-profissionais .profissionais-actions .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
}
.cadastro-action-row .btn-manage,
#page-profissionais .profissionais-actions .btn-manage {
  min-width: 108px;
}
.cadastro-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}
.cadastro-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.cadastro-status-ok {
  border: 1px solid #9fd9cb;
  background: #e8faf3;
  color: #14715f;
}
.cadastro-status-warn {
  border: 1px solid #f0d492;
  background: #fff8e8;
  color: #8a5b10;
}
.cadastro-status-muted {
  border: 1px solid #d6e5ef;
  background: #f2f6fa;
  color: #64778a;
}
.cadastro-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #dbe8f1;
  background: #f8fbfd;
}
.cadastro-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cadastro-pagination span {
  color: #53697e;
  font-size: 12px;
  font-weight: 800;
}
#page-profissionais .cadastro-profissionais-table-card table {
  min-width: 1720px;
}
#page-profissionais .profissionais-table-wrap {
  max-height: 650px;
  overflow: auto;
}
#page-profissionais .profissionais-table-name {
  color: #172033;
  font-weight: 900;
}
#page-profissionais .profissionais-table-text {
  color: #263f55;
}
#page-profissionais .profissionais-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
#page-profissionais .profissionais-table th:nth-child(15),
#page-profissionais .profissionais-table tbody td:nth-child(15) {
  width: 230px;
  min-width: 230px;
  background: #ffffff;
  box-shadow: -8px 0 14px rgba(47, 81, 111, 0.08);
}
#page-profissionais .profissionais-table tbody tr:nth-child(even) td:nth-child(15) {
  background: #f8fbfd;
}
#page-profissionais .profissionais-table tbody tr:hover td:nth-child(15) {
  background: #eef6fb;
}
#page-profissionais .card:not(.cadastro-table-card) {
  padding: 14px 16px;
}
#page-profissionais .card:not(.cadastro-table-card) .card-header {
  padding-bottom: 10px;
}
body.page-cadastros-active .drawer-overlay,
body.page-cadastros-active .manage-modal-overlay {
  background: rgba(20, 35, 58, 0.42);
  backdrop-filter: blur(7px);
}
body.page-cadastros-active .drawer-panel,
body.page-cadastros-active .manage-modal {
  border-color: #cbddea;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 24px 70px rgba(47, 81, 111, 0.22);
}
body.page-cadastros-active .drawer-head,
body.page-cadastros-active .drawer-foot,
body.page-cadastros-active .manage-modal-head {
  border-color: #dbe8f1;
  background: #f8fbfd;
}
body.page-cadastros-active .drawer-head h4,
body.page-cadastros-active .drawer-body,
body.page-cadastros-active .manage-modal-head h4,
body.page-cadastros-active .manage-modal-body,
body.page-cadastros-active .section-title {
  color: #172033;
}
body.page-cadastros-active option {
  background: #ffffff;
  color: #172033;
}

body.page-portais-active {
  background: #eef6fb !important;
}
body.page-portais-active .app-layout,
body.page-portais-active .main-shell,
body.page-portais-active .content {
  background: #eef6fb !important;
}
body.page-portais-active .topbar {
  display: none !important;
}
body.page-portais-active .content {
  min-height: 100vh;
  padding: 16px 16px 24px;
  overflow-x: hidden;
}
#page-rh,
#page-perfis,
#page-meu-perfil {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 36px);
  margin: -4px 0 0;
  padding: 18px;
  overflow-x: hidden;
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
}
#page-servidor-produtividade,
#page-servidor-contracheque {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 36px);
  margin: -4px 0 0;
  padding: 18px;
  overflow-x: hidden;
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
}
.portal-page {
  display: grid;
  gap: 12px;
  width: min(100%, 1580px);
  margin: 0 auto;
  min-width: 0;
}
.portal-hero,
.portal-card {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
.portal-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(440px, 1.35fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}
.portal-eyebrow,
.portal-card-head small,
.portal-filter-head small,
.portal-cleanup-row small {
  color: #21606f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.portal-hero h3 {
  margin: 4px 0 0;
  color: #14233a;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}
.portal-hero p {
  margin: 7px 0 0;
  max-width: 760px;
  color: #516377;
  font-size: 14px;
  line-height: 1.45;
}
.portal-hero-side {
  display: grid;
  gap: 10px;
}
.portal-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.portal-metric {
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid #d5e4ee;
  border-left: 4px solid #4f8fc2;
  border-radius: 8px;
  background: #f8fbfd;
}
.portal-metric span {
  display: block;
  color: #53697e;
  font-size: 11px;
  font-weight: 900;
}
.portal-metric strong {
  display: block;
  margin-top: 6px;
  color: #102033;
  font-size: 20px;
  line-height: 1.08;
}
.portal-metric small {
  display: block;
  margin-top: 7px;
  color: #53697e;
  font-size: 12px;
  font-weight: 700;
}
.portal-metric-ok { border-left-color: #3a9d87; }
.portal-metric-warn { border-left-color: #d69b2d; }
.portal-metric-danger { border-left-color: #d95b58; }
.portal-hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.portal-card {
  padding: 12px 14px;
}
.portal-card-head,
.portal-filter-head,
.portal-cleanup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.portal-card-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #dbe8f1;
}
.portal-card-head h4,
.portal-filter-head h4,
.portal-cleanup-row h4 {
  margin: 2px 0 0;
  color: #14233a;
  font-size: 18px;
  line-height: 1.2;
}
.portal-card-head p,
.portal-filter-head p,
.portal-cleanup-row p {
  margin: 4px 0 0;
  color: #53697e;
  font-size: 13px;
  line-height: 1.4;
}
.portal-filter-card.is-closed .portal-filter-head {
  padding-bottom: 0;
  border-bottom: 0;
}
.portal-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.portal-filter-actions span,
.portal-filter-footer,
.portal-muted {
  color: #53697e;
  font-size: 12px;
  font-weight: 800;
}
.portal-result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #d6e5ef;
  border-radius: 999px;
  background: #eef6fb;
  color: #315a73;
  font-size: 12px;
  font-weight: 900;
}
.portal-filter-grid,
.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.portal-access-form.portal-form-grid {
  gap: 14px;
  align-items: start;
}
.portal-filter-grid {
  padding-top: 10px;
}
.portal-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.portal-field.span-2 { grid-column: span 2; }
.portal-field.span-3 { grid-column: span 3; }
.portal-field.span-4 { grid-column: span 4; }
.portal-field.span-6 { grid-column: span 6; }
.portal-field.span-8 { grid-column: span 8; }
.portal-field.span-9 { grid-column: span 9; }
.portal-field.span-12 { grid-column: 1 / -1; }
.portal-form-grid > .span-2 { grid-column: span 2; }
.portal-form-grid > .span-3 { grid-column: span 3; }
.portal-form-grid > .span-4 { grid-column: span 4; }
.portal-form-grid > .span-6 { grid-column: span 6; }
.portal-form-grid > .span-8 { grid-column: span 8; }
.portal-form-grid > .span-9 { grid-column: span 9; }
.portal-form-grid > .span-12 { grid-column: 1 / -1; }
.portal-field span,
.portal-profile-card .filter-field label,
.portal-access-form .field label {
  color: #24465f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.portal-field input,
.portal-field select,
.portal-field textarea,
.portal-profile-card .filter-field input,
.portal-profile-card .filter-field select,
.portal-access-form .field input,
.portal-access-form .field select,
.portal-access-form .field textarea,
body.page-portais-active .mips-combo-input {
  min-height: 42px;
  border: 1px solid #bfd2e2;
  border-radius: 7px;
  background: #f8fbfd;
  color: #102033;
  box-shadow: none;
}
.portal-field input::placeholder,
.portal-profile-card .filter-field input::placeholder,
.portal-access-form .field input::placeholder,
body.page-portais-active .mips-combo-input::placeholder {
  color: #748ba0;
}
.portal-field input:hover,
.portal-field select:hover,
.portal-profile-card .filter-field input:hover,
.portal-profile-card .filter-field select:hover,
.portal-access-form .field input:hover,
.portal-access-form .field select:hover,
body.page-portais-active .mips-combo-input:hover {
  border-color: #95b6cf;
  background: #ffffff;
}
.portal-field input:focus,
.portal-field select:focus,
.portal-profile-card .filter-field input:focus,
.portal-profile-card .filter-field select:focus,
.portal-access-form .field input:focus,
.portal-access-form .field select:focus,
body.page-portais-active .mips-combo-input:focus,
body.page-portais-active .mips-combo-input[aria-expanded="true"] {
  border-color: #2f81c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 129, 199, 0.16);
}
.portal-submit-field {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}
.rh-feedback-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}
.rh-feedback-card strong {
  font-size: 12px;
}
.rh-feedback-card span {
  color: #53697e;
}
.rh-feedback-card.is-success {
  border: 1px solid #9fd9cb;
  background: #e8faf3;
  color: #14715f;
}
.rh-feedback-card.is-warning {
  border: 1px solid #f0d492;
  background: #fff8e8;
  color: #8a5b10;
}
.rh-preview-table {
  max-height: 260px;
}
.portal-table-card {
  padding-bottom: 0;
  overflow: hidden;
}
.portal-table-card .table-wrap {
  margin: 0 -14px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}
.portal-table-card table {
  width: 100%;
  min-width: 900px;
}
.portal-table-card th {
  padding: 11px 12px;
  border-bottom: 1px solid #d5e4ee;
  background: #eef4fa;
  color: #1f3f5b;
  font-size: 12px;
  letter-spacing: 0;
}
.portal-table-card td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0ebf3;
  background: #ffffff;
  color: #263f55;
  vertical-align: middle;
}
.portal-table-card tbody tr:nth-child(even) td {
  background: #f8fbfd;
}
.portal-table-card tbody tr:hover td {
  background: #eef6fb;
}
.portal-actions-cell {
  width: 1%;
  min-width: 170px;
  white-space: nowrap;
}
.portal-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.portal-action-row .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
}
.portal-code-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d6e5ef;
  border-radius: 7px;
  background: #edf5fb;
  color: #315a73;
  font-size: 12px;
  font-weight: 800;
}
.portal-status,
.portal-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.portal-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.portal-status.is-ok,
.portal-profile-servidor {
  border: 1px solid #9fd9cb;
  background: #e8faf3;
  color: #14715f;
}
.portal-status.is-danger {
  border: 1px solid #f2b0ad;
  background: #ffeceb;
  color: #a33a36;
}
.portal-profile-administrador {
  border: 1px solid #9fc5e8;
  background: #edf5fb;
  color: #1f5d87;
}
.portal-profile-gestor {
  border: 1px solid #b9c7f5;
  background: #f1f4ff;
  color: #4252a3;
}
.portal-profile-operador {
  border: 1px solid #c9d9e5;
  background: #f4f8fb;
  color: #315a73;
}
.portal-profile-rh {
  border: 1px solid #f0d492;
  background: #fff8e8;
  color: #8a5b10;
}
.portal-profile-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #d6e5ef;
  border-radius: 8px;
  background: #f8fbfd;
}
.portal-profile-summary span {
  color: #21606f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.portal-profile-summary strong {
  color: #14233a;
  font-size: 18px;
}
.portal-profile-summary small {
  color: #53697e;
  font-size: 12px;
  font-weight: 700;
}
.portal-profile-card .section-title,
.portal-access-form .section-title {
  color: #14233a;
}
.portal-access-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe8f1;
  border-radius: 8px;
  background: #f8fbfd;
}
.portal-section-title {
  color: #14233a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.portal-form-note {
  padding: 10px 12px;
  border: 1px solid #d6e5ef;
  border-radius: 8px;
  background: #eef6fb;
  color: #3f5d73;
  font-size: 13px;
  line-height: 1.45;
}
.portal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.portal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -14px;
  padding: 12px 14px;
  border-top: 1px solid #dbe8f1;
  background: #f8fbfd;
}
.portal-pagination span {
  color: #53697e;
  font-size: 12px;
  font-weight: 800;
}
body.page-portais-active .btn,
body.page-portais-active .drawer-panel .btn,
body.page-portais-active .manage-modal .btn {
  border-color: #bfd2e2;
  background: #ffffff;
  color: #1f3f5b;
  box-shadow: none;
}
body.page-portais-active .btn:hover,
body.page-portais-active .drawer-panel .btn:hover,
body.page-portais-active .manage-modal .btn:hover {
  border-color: #95b6cf;
  background: #eef6fb;
  color: #1f3f5b;
  box-shadow: none;
}
body.page-portais-active .btn-primary,
body.page-portais-active .drawer-panel .btn-primary,
body.page-portais-active .manage-modal .btn-primary {
  border-color: #2f81c7;
  background: #2f81c7;
  color: #ffffff;
}
body.page-portais-active .btn-primary:hover,
body.page-portais-active .drawer-panel .btn-primary:hover,
body.page-portais-active .manage-modal .btn-primary:hover {
  border-color: #256fae;
  background: #256fae;
  color: #ffffff;
}
body.page-portais-active .btn-soft,
body.page-portais-active .btn-ghost,
body.page-portais-active .drawer-panel .btn-soft,
body.page-portais-active .drawer-panel .btn-ghost,
body.page-portais-active .manage-modal .btn-soft,
body.page-portais-active .manage-modal .btn-ghost {
  border-color: #abcce3;
  background: #f0f7fd;
  color: #1f5d87;
}
body.page-portais-active .btn-danger,
body.page-portais-active .drawer-panel .btn-danger,
body.page-portais-active .manage-modal .btn-danger {
  border-color: #d95b58;
  background: #d95b58;
  color: #ffffff;
}
body.page-portais-active .drawer-overlay,
body.page-portais-active .manage-modal-overlay {
  background: rgba(20, 35, 58, 0.42);
  backdrop-filter: blur(7px);
}
body.page-portais-active .drawer-panel,
body.page-portais-active .manage-modal {
  border-color: #cbddea;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 24px 70px rgba(47, 81, 111, 0.22);
  transition-duration: 120ms;
}
body.page-portais-active .drawer-panel {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
}
body.page-portais-active .drawer-head,
body.page-portais-active .drawer-foot,
body.page-portais-active .manage-modal-head {
  border-color: #dbe8f1;
  background: #f8fbfd;
}
body.page-portais-active .drawer-head h4,
body.page-portais-active .drawer-body,
body.page-portais-active .manage-modal-head h4,
body.page-portais-active .manage-modal-body {
  color: #172033;
}
body.page-portais-active .mips-combo-menu {
  border-color: #cbddea;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(47, 81, 111, 0.18);
}
body.page-portais-active .mips-combo-option,
body.page-portais-active .mips-combo-meta,
body.page-portais-active .mips-combo-empty {
  color: #263f55;
}
body.page-portais-active .mips-combo-option:hover,
body.page-portais-active .mips-combo-option.active {
  background: #eef6fb;
}
body.page-portais-active .mips-combo-check {
  color: #2f81c7;
}
body.page-portais-active option {
  background: #ffffff;
  color: #172033;
}
body.page-servidor-active .table-wrap.mobile-card-table tbody tr {
  border-color: #d5e4ee;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 81, 111, 0.07);
}
body.page-servidor-active .table-wrap.mobile-card-table tbody tr:hover {
  background: #f8fbfd;
}
body.page-servidor-active .table-wrap.mobile-card-table tbody td {
  border-bottom-color: #e0ebf3;
  color: #263f55;
}
body.page-servidor-active .table-wrap.mobile-card-table tbody td::before {
  color: #53697e;
}

@media (max-width: 1100px) {
  .portal-hero {
    grid-template-columns: 1fr;
  }
  .portal-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  #page-rh,
  #page-perfis,
  #page-meu-perfil,
  #page-servidor-produtividade,
  #page-servidor-contracheque {
    padding: 12px;
  }
  .portal-hero,
  .portal-card {
    padding: 12px;
  }
  .portal-metric-grid,
  .portal-filter-grid,
  .portal-form-grid {
    grid-template-columns: 1fr;
  }
  .portal-field.span-2,
  .portal-field.span-3,
  .portal-field.span-4,
  .portal-field.span-6,
  .portal-field.span-8,
  .portal-field.span-9,
  .portal-field.span-12 {
    grid-column: 1 / -1;
  }
  .portal-card-head,
  .portal-filter-head,
  .portal-cleanup-row,
  .portal-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .portal-submit-field,
  .portal-action-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 1180px) {
  .cadastro-hero {
    grid-template-columns: 1fr;
  }
  .cadastro-filter-grid,
  .cadastro-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  #page-municipios,
  #page-estabelecimentos,
  #page-profissionais,
  #page-cbos {
    padding: 12px;
  }
  .cadastro-metrics,
  .cadastro-filter-grid,
  .cadastro-field-wide {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }
  .cadastro-filter-head,
  .cadastro-hero-actions,
  .cadastro-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .cadastro-action-row,
  #page-profissionais .profissionais-actions {
    flex-wrap: wrap;
  }
  .cadastro-hero-actions .btn,
  .cadastro-pagination .btn,
  .cadastro-action-row .btn {
    width: 100%;
    justify-content: center;
  }
}

#page-producao {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 36px);
  margin: -4px 0 0;
  padding: 18px;
  overflow-x: hidden;
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
}
body.page-producao-active .topbar {
  display: none !important;
}
body.page-producao-active .content {
  padding: 16px 16px 24px;
  overflow-x: hidden;
  background: #eef6fb !important;
}
#page-producao .production-page {
  display: grid;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}
#page-producao .production-hero,
#page-producao .production-filter-card,
#page-producao .card {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
#page-producao .production-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 1.55fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
}
#page-producao .production-eyebrow,
#page-producao .production-filter-head small,
#page-producao .card-header small {
  color: #21606f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
#page-producao h3 {
  margin: 4px 0 0;
  color: #14233a;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}
#page-producao .production-hero p {
  margin: 7px 0 0;
  max-width: 760px;
  color: #516377;
  font-size: 14px;
  line-height: 1.45;
}
#page-producao .production-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#page-producao .production-metric {
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid #d5e4ee;
  border-left: 4px solid #4f8fc2;
  border-radius: 8px;
  background: #f8fbfd;
}
#page-producao .production-metric span {
  display: block;
  color: #53697e;
  font-size: 11px;
  font-weight: 900;
}
#page-producao .production-metric strong {
  display: block;
  margin-top: 7px;
  color: #102033;
  font-size: 22px;
  line-height: 1.05;
}
#page-producao .production-metric small {
  display: block;
  margin-top: 7px;
  color: #53697e;
  font-size: 12px;
  font-weight: 700;
}
#page-producao .production-metric-ok { border-left-color: #3a9d87; }
#page-producao .production-metric-warn { border-left-color: #d69b2d; }
#page-producao .production-metric-danger { border-left-color: #d95b58; }
#page-producao .production-filter-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}
#page-producao .production-filter-head,
#page-producao .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid #dbe8f1;
}
#page-producao .production-filter-head h4,
#page-producao .card-header h4 {
  margin: 3px 0 0;
  color: #172033;
  font-size: 18px;
  line-height: 1.15;
}
#page-producao .production-filter-head span,
#page-producao .card-header span,
#page-producao .production-pagination span {
  color: #53697e;
  font-size: 12px;
  font-weight: 800;
}
#page-producao .production-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
#page-producao .production-filter-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}
#page-producao .production-filter-grid > .filter-field {
  grid-column: span 1 !important;
  min-width: 0;
}
#page-producao .production-filter-grid > .production-filter-wide {
  grid-column: span 2 !important;
}
#page-producao .filter-field label,
body.page-producao-active .field label {
  color: #2d4c68;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
#page-producao .filter-field input,
#page-producao .filter-field select,
#page-producao .mips-combo-input,
body.page-producao-active .field input,
body.page-producao-active .field select,
body.page-producao-active .field textarea,
body.page-producao-active .mips-combo-input {
  min-height: 44px;
  border-color: #bfd2e2;
  background: #f8fbfd;
  color: #172033;
  color-scheme: light;
  box-shadow: none;
}
#page-producao .filter-field input::placeholder,
#page-producao .mips-combo-input::placeholder,
body.page-producao-active .field input::placeholder,
body.page-producao-active .field textarea::placeholder,
body.page-producao-active .mips-combo-input::placeholder {
  color: #7b8ea1;
  opacity: 1;
}
#page-producao .filter-field input:hover,
#page-producao .filter-field select:hover,
#page-producao .mips-combo-input:hover,
body.page-producao-active .field input:hover,
body.page-producao-active .field select:hover,
body.page-producao-active .field textarea:hover,
body.page-producao-active .mips-combo-input:hover {
  border-color: #95b6cf;
  background: #ffffff;
  color: #172033;
}
#page-producao .filter-field input:focus,
#page-producao .filter-field select:focus,
#page-producao .mips-combo-input:focus,
#page-producao .mips-combo-input[aria-expanded="true"],
body.page-producao-active .field input:focus,
body.page-producao-active .field select:focus,
body.page-producao-active .field textarea:focus,
body.page-producao-active .mips-combo-input:focus,
body.page-producao-active .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16);
}
#page-producao input[type="date"]::-webkit-calendar-picker-indicator,
#page-producao input[type="month"]::-webkit-calendar-picker-indicator,
#page-producao input[type="time"]::-webkit-calendar-picker-indicator,
body.page-producao-active .field input[type="date"]::-webkit-calendar-picker-indicator,
body.page-producao-active .field input[type="month"]::-webkit-calendar-picker-indicator,
body.page-producao-active .field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.82;
}
#page-producao .mips-combo-clear,
#page-producao .mips-combo-toggle,
body.page-producao-active .mips-combo-clear,
body.page-producao-active .mips-combo-toggle {
  color: #6b8196;
}
#page-producao .mips-combo-clear:hover,
#page-producao .mips-combo-toggle:hover,
body.page-producao-active .mips-combo-clear:hover,
body.page-producao-active .mips-combo-toggle:hover {
  background: #e8f2fa;
  color: #1f3f5b;
}
#page-producao .mips-combo-menu,
body.page-producao-active .mips-combo-menu {
  border-color: #bfd2e2;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 14px 32px rgba(47, 81, 111, 0.18);
}
#page-producao .mips-combo-option,
body.page-producao-active .mips-combo-option,
body.page-producao-active .mips-combo-meta,
body.page-producao-active .mips-combo-empty {
  color: #172033;
}
#page-producao .mips-combo-option:hover,
#page-producao .mips-combo-option.active,
body.page-producao-active .mips-combo-option:hover,
body.page-producao-active .mips-combo-option.active {
  background: #e8f2fa;
  color: #172033;
}
#page-producao .mips-combo-check,
body.page-producao-active .mips-combo-check {
  color: #17725f;
}
#page-producao .mips-combo-meta,
#page-producao .mips-combo-empty,
body.page-producao-active .mips-combo-meta,
body.page-producao-active .mips-combo-empty {
  background: #f8fbfd;
  color: #53697e;
}
#page-producao .filter-chip {
  border: 1px solid #d2e3ee;
  background: #eef6fb;
  color: #315a73;
}
#page-producao .filter-chip.muted {
  border-color: #dbe8f1;
  background: #f8fbfd;
  color: #53697e;
}
#page-producao .btn,
body.page-producao-active .btn {
  border-color: #bfd2e2;
  background: #ffffff;
  color: #1f3f5b;
  box-shadow: none;
}
#page-producao .btn:hover,
body.page-producao-active .btn:hover {
  border-color: #95b6cf;
  background: #eef6fb;
  color: #1f3f5b;
  box-shadow: none;
}
#page-producao .btn-primary,
body.page-producao-active .btn-primary {
  border-color: #2f81c7;
  background: #2f81c7;
  color: #ffffff;
}
#page-producao .btn-primary:hover,
body.page-producao-active .btn-primary:hover {
  border-color: #256fae;
  background: #256fae;
  color: #ffffff;
}
#page-producao .btn-soft,
#page-producao .btn-ghost,
body.page-producao-active .btn-soft,
body.page-producao-active .btn-ghost {
  border-color: #abcce3;
  background: #f0f7fd;
  color: #1f5d87;
}
#page-producao .btn:disabled,
#page-producao .btn[disabled],
body.page-producao-active .btn:disabled,
body.page-producao-active .btn[disabled] {
  border-color: #d2e2ee;
  background: #edf5fb;
  color: #6c8193;
  opacity: 1;
  box-shadow: none;
}
#page-producao .production-calendar-card,
#page-producao .production-records-card {
  padding: 12px;
}
#page-producao .production-records-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
}
#page-producao .production-records-head {
  align-items: center;
  padding: 2px 2px 12px;
}
#page-producao .production-records-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #dbe8f1;
  border-radius: 8px;
  background: #f8fbfd;
  color: #53697e;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
}
#page-producao .production-calendar-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
}
#page-producao .production-calendar-weekday {
  color: #2d4c68;
}
#page-producao .production-calendar-blank {
  border-color: #dbe8f1;
  background: #f6fbff;
}
#page-producao .production-calendar-day {
  border-color: #d5e4ee;
  background: #ffffff;
  color: #172033;
  box-shadow: none;
}
#page-producao .production-calendar-day:hover {
  border-color: #95b6cf;
  background: #f8fbfd;
  box-shadow: 0 6px 16px rgba(47, 81, 111, 0.10);
}
#page-producao .production-calendar-day.is-selected {
  border-color: #2f81c7;
  background: #eaf4fc;
  box-shadow: 0 0 0 3px rgba(47, 129, 199, 0.16);
}
#page-producao .production-calendar-day.is-today {
  background: #edf7f4;
}
#page-producao .production-calendar-day.status-empty {
  color: #7b8ea1;
}
#page-producao .production-calendar-day.status-ok {
  border-color: #a9d8ca;
  background: #eefaf6;
}
#page-producao .production-calendar-day.status-warn {
  border-color: #f0d492;
  background: #fff8e8;
}
#page-producao .production-calendar-day.status-danger {
  border-color: #efb3b1;
  background: #fff0ef;
}
#page-producao .production-calendar-day.status-atestado {
  border-color: #9fd5dd;
  background: #edf9fb;
}
#page-producao .production-calendar-day-number span:last-child,
#page-producao .production-calendar-day small {
  color: #334e68;
}
#page-producao .production-calendar-day-number span:first-child {
  color: #0f1f33;
}
#page-producao .production-calendar-day strong {
  color: #2d4c68;
}
#page-producao .production-calendar-day.status-empty strong {
  color: #6c7f90;
}
#page-producao .production-calendar-status {
  background: #d6e6f1;
}
#page-producao .production-calendar-status.warn {
  background: var(--warn);
}
#page-producao .production-calendar-status.ok {
  background: var(--ok);
}
#page-producao .production-calendar-status.danger {
  background: var(--danger);
}
#page-producao .production-calendar-status.atestado {
  background: #4fd1c5;
}
#page-producao .production-calendar-side {
  padding: 12px 0 12px 14px;
  border-left: 1px solid #dbe8f1;
}
#page-producao .production-calendar-side h5 {
  color: #2d4c68;
}
#page-producao .production-calendar-side p,
#page-producao .production-calendar-legend {
  color: #53697e;
}
#page-producao .production-calendar-total {
  color: #2f81c7;
}
#page-producao .table-wrap {
  border: 1px solid #d5e4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}
#page-producao .production-records-wrap {
  max-width: 100%;
  max-height: 640px;
  overflow: auto;
}
#page-producao .production-records-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  color: #172033;
}
#page-producao .production-records-table th {
  border-color: #d5e4ee;
  background: #eef4fa;
  color: #1f3f5b;
  font-size: 11px;
  padding: 11px 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}
#page-producao .production-records-table td {
  border-color: #e0ebf3;
  background: #ffffff;
  color: #263f55;
  padding: 12px;
  vertical-align: top;
}
#page-producao .production-records-table tbody tr:nth-child(even) td {
  background: #f8fbfd;
}
#page-producao .production-records-table tbody tr,
#page-producao .production-records-table tbody tr:hover {
  background: transparent !important;
}
#page-producao .production-records-table tbody tr:hover td {
  background: #eef6fb !important;
  border-bottom-color: #d6e5ef;
}
#page-producao .th-sort {
  color: #1f3f5b;
}
#page-producao .production-visit-cell strong,
#page-producao .production-professional-cell strong,
#page-producao .production-procedure-cell strong,
#page-producao .production-quantity-cell strong {
  color: #172033;
  font-weight: 900;
  line-height: 1.25;
}
#page-producao .production-visit-cell span,
#page-producao .production-status-cell span,
#page-producao .production-procedure-cell span {
  color: #53697e;
  font-size: 12px;
  line-height: 1.35;
}
#page-producao .production-visit-cell > span,
#page-producao .production-status-cell > span,
#page-producao .production-procedure-cell > span {
  display: block;
  margin-top: 5px;
}
#page-producao .production-visit-cell .production-ficha-chip {
  display: inline-flex;
  width: min(112px, 100%);
  justify-content: flex-start;
}
#page-producao .production-quantity-cell strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  border-radius: 8px;
  background: #e8f2fa;
  color: #1f5d87;
}
#page-producao .production-status-cell .badge,
#page-producao .production-status-cell [class*="badge"] {
  display: inline-flex;
  margin-bottom: 2px;
}
#page-producao .production-cbo-cell,
#page-producao .production-procedure-cell,
#page-producao .production-created-cell {
  font-size: 12px;
}
#page-producao .production-pagination {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #dbe8f1;
  background: #f8fbfd;
  color: #53697e;
}
#page-producao .production-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
body.page-producao-active .drawer-panel {
  border-color: #cbddea;
  background: #ffffff;
  color: #172033;
}
body.page-producao-active .drawer-head,
body.page-producao-active .drawer-foot {
  border-color: #dbe8f1;
  background: #f8fbfd;
}
body.page-producao-active .drawer-head h4 {
  color: #172033;
}
body.page-producao-active .drawer-body {
  color: #172033;
}
body.page-producao-active .field-row {
  gap: 12px;
}
body.page-producao-active .section-title {
  color: #1f3f5b;
}
body.page-producao-active option {
  background: #ffffff;
  color: #172033;
}
body.page-producao-active #producao-submit-status {
  border: 1px solid #b8d6ed;
  background: #e8f2fa;
  color: #17496f;
}
body.page-producao-active #producao-submit-status .btn-primary {
  justify-self: start;
}
@media (max-width: 1180px) {
  #page-producao .production-hero,
  #page-producao .production-calendar-layout {
    grid-template-columns: 1fr;
  }
  #page-producao .production-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-producao .production-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-producao .production-filter-grid > .production-filter-wide {
    grid-column: span 2 !important;
  }
  #page-producao .production-calendar-side {
    padding: 12px 0 0;
    border-left: none;
    border-top: 1px solid #dbe8f1;
  }
}
@media (max-width: 720px) {
  #page-producao {
    padding: 12px;
  }
  #page-producao .production-hero,
  #page-producao .production-filter-head,
  #page-producao .card-header,
  #page-producao .production-pagination {
    grid-template-columns: 1fr;
  }
  #page-producao .production-metrics,
  #page-producao .production-filter-grid {
    grid-template-columns: 1fr;
  }
  #page-producao .production-filter-grid > .filter-field,
  #page-producao .production-filter-grid > .production-filter-wide {
    grid-column: 1 / -1 !important;
  }
  #page-producao .production-filter-actions,
  #page-producao .production-pagination > div {
    justify-content: stretch;
  }
  #page-producao .production-filter-actions .btn,
  #page-producao .production-pagination .btn {
    flex: 1;
  }
}

#page-relatorios {
  width: 100%;
  max-width: 100%;
  margin: -4px 0 0;
  min-height: calc(100vh - 36px);
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
  padding: 18px;
  overflow-x: hidden;
}
body.page-relatorios-active .topbar {
  display: none !important;
}
body.page-relatorios-active .content {
  background: #eef6fb !important;
  overflow-x: hidden;
  padding: 16px 16px 24px;
}

#page-governanca {
  margin: -4px -2px 0;
  padding: 18px;
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
}
body.page-governanca-active .topbar {
  display: none !important;
}
body.page-governanca-active .content {
  padding-top: 16px;
}
#page-governanca .governance-page {
  display: grid;
  gap: 14px;
}
#page-governanca .governance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #f8fbfe;
  box-shadow: 0 8px 20px rgba(47, 81, 111, 0.08);
}
#page-governanca .governance-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #21606f;
  font-size: 12px;
  font-weight: 800;
}
#page-governanca h3 {
  color: #14233a;
  font-size: 28px;
  line-height: 1.12;
  margin: 0;
}
#page-governanca p {
  color: #516377;
}
#page-governanca .governance-hero p {
  max-width: 720px;
  margin-top: 6px;
  font-size: 14px;
}
#page-governanca .governance-hero-pills,
#page-governanca .governance-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
#page-governanca .governance-hero-pills {
  margin-top: 14px;
}
#page-governanca .governance-hero-pills span,
#page-governanca .governance-toolbar > span {
  border: 1px solid #c7dae9;
  border-radius: 999px;
  background: #eef6fb;
  color: #38566e;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}
#page-governanca .governance-control-panel {
  display: grid;
  gap: 8px;
  align-content: start;
  position: relative;
  border-radius: 8px;
  border: 1px solid #cbddea;
  background: #ffffff;
  padding: 14px;
  overflow: visible;
  z-index: 4;
}
#page-governanca .governance-control-panel label {
  color: #34465a;
  font-size: 12px;
  font-weight: 800;
}
#page-governanca .governance-control-panel input {
  min-height: 38px;
  border: 1px solid #b8cedf;
  border-radius: 7px;
  background: #f7fbfe !important;
  color: #14233a !important;
  font: inherit;
  padding: 8px 10px;
}
#page-governanca input[type="month"] {
  color-scheme: light;
  background: #f7fbfe !important;
  border-color: #b8cedf !important;
  color: #14233a !important;
  cursor: pointer;
  font-weight: 800;
  width: 100%;
}
#page-governanca input[type="month"]:hover {
  background: #ffffff !important;
  border-color: #7aa9cf !important;
}
#page-governanca input[type="month"]:focus {
  background: #ffffff !important;
  border-color: #2f81c7 !important;
  box-shadow: 0 0 0 3px rgba(47, 129, 199, 0.18) !important;
  outline: 0;
}
#page-governanca input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(25%) sepia(24%) saturate(1120%) hue-rotate(164deg) brightness(84%) contrast(91%);
  opacity: 1;
}
#page-governanca .governance-control-panel span {
  color: #60758a;
  font-size: 12px;
}
#page-governanca .governance-control-panel strong {
  color: #b42318;
  font-size: 12px;
}
#page-governanca .governance-toolbar {
  justify-content: flex-start;
}
#page-governanca .btn {
  border-color: #b8cedf !important;
  background: #ffffff !important;
  color: #1f3348 !important;
}
#page-governanca .btn-primary {
  background: #2f81c7 !important;
  border-color: #2f81c7 !important;
  color: #ffffff !important;
}
#page-governanca .btn-ghost {
  background: #e7f2fa !important;
  color: #23506b !important;
}
#page-governanca .governance-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
#page-governanca .governance-stat,
#page-governanca .governance-panel,
#page-governanca .governance-data-card,
#page-governanca .governance-profile-card,
#page-governanca .governance-access-card,
#page-governanca .governance-finding {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
#page-governanca .governance-stat {
  padding: 12px;
  min-height: 108px;
  border-top: 3px solid #4f8fc2;
}
#page-governanca .governance-stat-ok { border-top-color: #3a9d87; }
#page-governanca .governance-stat-warn { border-top-color: #d69b2d; }
#page-governanca .governance-stat-danger { border-top-color: #d95b58; }
#page-governanca .governance-stat small {
  display: block;
  color: #53697e;
  font-size: 11px;
  font-weight: 800;
}
#page-governanca .governance-stat strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 24px;
  line-height: 1;
}
#page-governanca .governance-stat span {
  display: block;
  margin-top: 8px;
  color: #60758a;
  font-size: 12px;
  line-height: 1.35;
}
#page-governanca .governance-panel {
  padding: 14px;
}
#page-governanca .governance-section-head,
#page-governanca .governance-data-head,
#page-governanca .governance-access-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
#page-governanca .governance-section-head {
  margin-bottom: 12px;
}
#page-governanca .governance-section-head small,
#page-governanca .governance-access-head small,
#page-governanca .governance-profile-card small,
#page-governanca .governance-access-groups small {
  color: #6b7f91;
  font-size: 11px;
  font-weight: 800;
}
#page-governanca .governance-section-head h4 {
  color: #172033;
  font-size: 17px;
  line-height: 1.2;
  margin-top: 2px;
}
#page-governanca .governance-section-head > span,
#page-governanca .governance-access-head > span {
  border-radius: 999px;
  background: #eef6fb;
  color: #315a73;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}
#page-governanca .governance-finding-list,
#page-governanca .governance-access-grid {
  display: grid;
  gap: 10px;
}
#page-governanca .governance-finding {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  align-items: start;
}
#page-governanca .governance-finding strong,
#page-governanca .governance-data-card strong,
#page-governanca .governance-access-card strong,
#page-governanca .governance-profile-card strong {
  color: #172033;
}
#page-governanca .governance-finding p,
#page-governanca .governance-data-card p,
#page-governanca .governance-access-card p {
  margin-top: 4px;
  color: #53697e;
  font-size: 13px;
}
#page-governanca .governance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  background: #e8f2fa;
  color: #24536c;
  white-space: nowrap;
}
#page-governanca .governance-pill.ok { background: #e4f7f0; color: #16715f; }
#page-governanca .governance-pill.warn { background: #fff4d8; color: #8a5b10; }
#page-governanca .governance-pill.danger { background: #ffe7e4; color: #aa2e29; }
#page-governanca .governance-pill.info { background: #e8f2fa; color: #24536c; }
#page-governanca .governance-empty {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px dashed #aebfd0;
  border-radius: 8px;
  background: #f7fbfe;
  color: #53697e;
}
#page-governanca .governance-empty strong {
  color: #172033;
}
#page-governanca .governance-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
#page-governanca .governance-profile-card {
  padding: 12px;
}
#page-governanca .governance-profile-card strong {
  display: block;
  margin-top: 3px;
}
#page-governanca .governance-profile-numbers {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
#page-governanca .governance-profile-numbers span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-radius: 6px;
  background: #f1f7fb;
  color: #53697e;
  font-size: 12px;
  padding: 6px 8px;
}
#page-governanca .governance-profile-numbers b {
  color: #172033;
}
#page-governanca .governance-access-card {
  padding: 12px;
}
#page-governanca .governance-access-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}
#page-governanca .governance-access-groups div div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
#page-governanca .governance-access-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
#page-governanca .governance-access-chip.is-allowed {
  background: #e4f7f0;
  color: #16715f;
}
#page-governanca .governance-access-chip.is-blocked {
  background: #eef2f6;
  color: #6b7f91;
}
.governance-access-editor-modal {
  width: min(1120px, calc(100vw - 28px));
}
.governance-access-editor {
  display: grid;
  gap: 12px;
}
.governance-access-editor p {
  margin: 0;
  color: #53697e;
  font-size: 13px;
  line-height: 1.45;
}
.governance-access-editor-grid {
  display: grid;
  gap: 12px;
}
.governance-access-editor-profile {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}
.governance-access-editor-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.governance-access-editor-profile-head strong {
  color: #172033;
}
.governance-access-editor-profile-head span {
  border-radius: 999px;
  background: #eef6fb;
  color: #315a73;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
}
.governance-access-editor-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.governance-access-editor-option {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #d6e4ee;
  border-radius: 7px;
  background: #f7fbfe;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 9px;
}
.governance-access-editor-option input {
  width: 16px;
  height: 16px;
  accent-color: #2f81c7;
}
.governance-access-editor-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.governance-access-editor-option small {
  border-radius: 999px;
  background: #e8eef4;
  color: #60758a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
}
.governance-access-editor-option.is-locked {
  background: #eef2f6;
  color: #75879a;
}
#page-governanca .governance-lgpd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
#page-governanca .governance-data-card {
  padding: 12px;
}
#page-governanca .governance-data-card dl {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
#page-governanca .governance-data-card dl div {
  border-left: 3px solid #c7dae9;
  padding-left: 9px;
}
#page-governanca .governance-data-card dt {
  color: #6b7f91;
  font-size: 11px;
  font-weight: 800;
}
#page-governanca .governance-data-card dd {
  color: #2f4256;
  font-size: 12px;
  margin-top: 2px;
}
#page-governanca .governance-usage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}
#page-governanca .governance-usage-list span {
  display: block;
  border-radius: 7px;
  border: 1px solid #d6e4ee;
  background: #f7fbfe;
  color: #43576b;
  font-size: 12px;
  padding: 9px 10px;
}
@media (max-width: 1180px) {
  #page-governanca .governance-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #page-governanca .governance-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  #page-governanca {
    margin: 0;
    padding: 12px;
  }
  #page-governanca .governance-hero,
  #page-governanca .governance-panel {
    padding: 12px;
  }
  #page-governanca .governance-stat-grid,
  #page-governanca .governance-access-groups {
    grid-template-columns: 1fr;
  }
  #page-governanca h3 {
    font-size: 24px;
  }
}

#page-auditoria {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: -4px 0 0;
  min-height: calc(100vh - 36px);
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
  padding: 18px;
  overflow-x: hidden;
}
body.page-auditoria-active .topbar {
  display: none !important;
}
body.page-auditoria-active .content {
  background: #eef6fb !important;
  overflow-x: hidden;
  padding: 16px 16px 24px;
}
#page-auditoria .audit-page {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
#page-auditoria .audit-hero,
#page-auditoria .audit-filter-card,
#page-auditoria .audit-list-card,
#page-auditoria .audit-event-card {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
#page-auditoria .audit-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
}
#page-auditoria .audit-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #21606f;
  font-size: 12px;
  font-weight: 800;
}
#page-auditoria h3 {
  color: #14233a;
  font-size: 28px;
  line-height: 1.12;
  margin: 0;
}
#page-auditoria .audit-hero p {
  color: #516377;
  font-size: 14px;
  margin-top: 6px;
  max-width: 680px;
}
#page-auditoria .audit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#page-auditoria .audit-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 86px;
  border: 1px solid #d5e4ee;
  border-left: 4px solid #4f8fc2;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}
#page-auditoria .audit-metric span,
#page-auditoria .audit-list-head small {
  color: #53697e;
  font-size: 11px;
  font-weight: 800;
}
#page-auditoria .audit-metric strong {
  color: #172033;
  font-size: 22px;
  line-height: 1;
}
#page-auditoria .audit-metric small {
  color: #60758a;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#page-auditoria .audit-metric-ok { border-left-color: #3a9d87; }
#page-auditoria .audit-metric-info { border-left-color: #4f8fc2; }
#page-auditoria .audit-metric-warn { border-left-color: #d69b2d; }
#page-auditoria .audit-metric-danger { border-left-color: #d95b58; }
#page-auditoria .audit-filter-card,
#page-auditoria .audit-list-card {
  min-width: 0;
  padding: 12px;
}
#page-auditoria .audit-filter-head,
#page-auditoria .audit-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
#page-auditoria .audit-filter-head > span,
#page-auditoria .audit-list-head > span {
  color: #6b7f91;
  font-size: 12px;
  font-weight: 800;
}
#page-auditoria .audit-filter-head > span.is-active {
  border-radius: 999px;
  background: #fff6df;
  color: #8a5b10;
  padding: 4px 8px;
}
#page-auditoria .audit-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}
#page-auditoria .audit-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  max-width: 100%;
}
#page-auditoria .audit-filter-grid > .filter-field {
  grid-column: auto !important;
}
#page-auditoria .audit-search-field {
  grid-column: span 2 !important;
}
#page-auditoria .filter-field label {
  color: #2d4c68 !important;
  font-size: 11px;
  letter-spacing: 0;
}
#page-auditoria .filter-field input,
#page-auditoria .filter-field select,
#page-auditoria .mips-combo-input {
  min-height: 44px !important;
  height: 44px !important;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
}
#page-auditoria .filter-field input::placeholder,
#page-auditoria .mips-combo-input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
#page-auditoria .filter-field input:hover,
#page-auditoria .filter-field select:hover,
#page-auditoria .mips-combo-input:hover {
  border-color: #95b6cf !important;
  background: #ffffff !important;
}
#page-auditoria .filter-field input:focus,
#page-auditoria .filter-field select:focus,
#page-auditoria .mips-combo-input:focus,
#page-auditoria .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
#page-auditoria .mips-combo-clear,
#page-auditoria .mips-combo-toggle {
  color: #6b8196 !important;
}
#page-auditoria .mips-combo-clear:hover,
#page-auditoria .mips-combo-toggle:hover {
  background: #e8f2fa !important;
  color: #1f3f5b !important;
}
#page-auditoria .mips-combo-menu {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #172033 !important;
}
#page-auditoria .mips-combo-option {
  color: #172033 !important;
}
#page-auditoria .mips-combo-option:hover,
#page-auditoria .mips-combo-option.active {
  background: #e8f2fa !important;
}
#page-auditoria .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-auditoria .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-auditoria .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
#page-auditoria .btn-primary:hover {
  border-color: #256fae !important;
  background: #256fae !important;
}
#page-auditoria .audit-apply-field {
  display: flex;
  align-self: start;
  align-items: end;
  padding-top: 25px;
}
#page-auditoria .audit-apply-field .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}
#page-auditoria .audit-status-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #60758a;
  font-size: 12px;
  font-weight: 700;
}
#page-auditoria .audit-status-line strong {
  color: #b42318;
}
#page-auditoria .audit-list-head {
  border-bottom: 1px solid #dbe8f1;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
#page-auditoria .audit-list-head h4 {
  color: #172033;
  font-size: 17px;
  line-height: 1.2;
  margin-top: 2px;
}
#page-auditoria .audit-event-list {
  display: grid;
  gap: 9px;
}
#page-auditoria .audit-event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) minmax(88px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px;
}
#page-auditoria .audit-event-danger { border-left: 4px solid #d95b58; }
#page-auditoria .audit-event-warn { border-left: 4px solid #d69b2d; }
#page-auditoria .audit-event-info { border-left: 4px solid #4f8fc2; }
#page-auditoria .audit-event-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}
#page-auditoria .audit-event-main strong {
  color: #172033;
  font-size: 13px;
}
#page-auditoria .audit-event-main p {
  color: #53697e;
  font-size: 12.5px;
  line-height: 1.35;
  margin: 3px 0 0;
  overflow-wrap: break-word;
}
#page-auditoria .audit-event-meta {
  display: grid;
  gap: 3px;
  color: #60758a;
  font-size: 11.5px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}
#page-auditoria .audit-event-card .btn {
  justify-self: end;
}
#page-auditoria .audit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: #e8f2fa;
  color: #24536c;
}
#page-auditoria .audit-pill.ok,
#page-auditoria .audit-pill.info { background: #e8f2fa; color: #24536c; }
#page-auditoria .audit-pill.warn { background: #fff4d8; color: #8a5b10; }
#page-auditoria .audit-pill.danger { background: #ffe7e4; color: #aa2e29; }
#page-auditoria .audit-empty {
  border: 1px dashed #aebfd0;
  border-radius: 8px;
  background: #f7fbfe;
  color: #53697e;
  font-size: 12px;
  padding: 16px;
  text-align: center;
}
#page-auditoria .audit-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #dbe8f1;
  margin-top: 12px;
  padding-top: 12px;
}
#page-auditoria .audit-pagination span {
  color: #53697e;
  font-size: 12px;
  font-weight: 800;
}
#page-auditoria .audit-pagination > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.manage-modal.audit-detail-modal {
  width: min(900px, calc(100vw - 24px));
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  border-color: #cbddea !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  box-shadow: 0 24px 70px rgba(47, 81, 111, 0.22) !important;
}
.manage-modal.audit-detail-modal .manage-modal-head {
  border-bottom-color: #cbddea !important;
  background: #ffffff !important;
}
.manage-modal.audit-detail-modal .manage-modal-head h4 {
  color: #14233a !important;
  font-size: 18px;
}
.manage-modal.audit-detail-modal .manage-modal-body {
  overflow-y: auto;
}
.manage-modal.audit-detail-modal .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
.manage-modal.audit-detail-modal .btn:hover {
  background: #eef6fb !important;
}
.audit-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.audit-detail-kpi {
  min-width: 0;
  border: 1px solid #cbddea !important;
  border-radius: 8px;
  background: #eef6fb !important;
  padding: 12px;
}
.audit-detail-kpi small {
  display: block;
  color: #53697e !important;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.audit-detail-kpi strong {
  display: block;
  color: #172033 !important;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 6px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.manage-modal.audit-detail-modal .audit-detail-note {
  color: #53697e !important;
  font-size: 14px;
  margin-bottom: 12px;
}
.manage-modal.audit-detail-modal .audit-json-block {
  margin-top: 12px;
}
.manage-modal.audit-detail-modal .audit-json-block strong {
  display: block;
  color: #172033 !important;
  font-size: 12px;
  margin-bottom: 6px;
}
.manage-modal.audit-detail-modal .audit-json-block pre {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #cbddea !important;
  border-radius: 8px;
  background: #ffffff !important;
  color: #42566a !important;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 12px;
  white-space: pre-wrap;
}
.manage-modal.audit-detail-modal .modal-actions-row {
  justify-content: flex-end;
}
@media (max-width: 1180px) {
  #page-auditoria .audit-hero,
  #page-auditoria .audit-event-card {
    grid-template-columns: 1fr;
  }
  #page-auditoria .audit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-auditoria .audit-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-auditoria .audit-search-field {
    grid-column: 1 / -1 !important;
  }
  #page-auditoria .audit-apply-field {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 720px) {
  #page-auditoria {
    margin: 0;
    padding: 12px;
  }
  #page-auditoria .audit-metrics,
  #page-auditoria .audit-filter-grid,
  #page-auditoria .audit-event-main,
  .audit-detail-grid {
    grid-template-columns: 1fr;
  }
  #page-auditoria .audit-search-field {
    grid-column: auto !important;
  }
  #page-auditoria .audit-event-card .btn,
  #page-auditoria .audit-pagination > div,
  .audit-detail-modal .modal-actions-row .btn {
    width: 100%;
  }
}

#page-aprovacao {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: -4px 0 0;
  min-height: calc(100vh - 36px);
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
  padding: 18px;
  overflow-x: hidden;
}
body.page-aprovacao-active .topbar {
  display: none !important;
}
body.page-aprovacao-active .content {
  background: #eef6fb !important;
  overflow-x: hidden;
  padding: 16px 16px 24px;
}
#page-aprovacao .approval-page {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
#page-aprovacao .approval-hero,
#page-aprovacao .approval-card,
#page-aprovacao .approval-guidance > div {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
#page-aprovacao .approval-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
}
#page-aprovacao .approval-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #21606f;
  font-size: 12px;
  font-weight: 800;
}
#page-aprovacao h3 {
  color: #14233a;
  font-size: 28px;
  line-height: 1.12;
  margin: 0;
}
#page-aprovacao .approval-hero p {
  color: #516377;
  font-size: 14px;
  margin-top: 6px;
  max-width: 680px;
}
#page-aprovacao .approval-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
#page-aprovacao .approval-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 86px;
  border: 1px solid #d5e4ee;
  border-left: 4px solid #4f8fc2;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}
#page-aprovacao .approval-metric span,
#page-aprovacao .card-header span,
#page-aprovacao .approval-filter-head small {
  color: #53697e;
  font-size: 11px;
  font-weight: 800;
}
#page-aprovacao .approval-metric strong {
  color: #172033;
  font-size: 22px;
  line-height: 1;
}
#page-aprovacao .approval-metric small {
  color: #60758a;
  font-size: 12px;
  line-height: 1.25;
}
#page-aprovacao .approval-metric-ok { border-left-color: #3a9d87; }
#page-aprovacao .approval-metric-warn { border-left-color: #d69b2d; }
#page-aprovacao .approval-metric-danger { border-left-color: #d95b58; }
#page-aprovacao .approval-queue-scope {
  margin: 0 0 12px;
  border: 1px solid #d5e4ee;
  border-left: 4px solid #d69b2d;
  border-radius: 8px;
  background: #f8fbfd;
  color: #31465a;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
#page-aprovacao .approval-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#page-aprovacao .approval-guidance > div {
  display: grid;
  gap: 5px;
  padding: 12px;
}
#page-aprovacao .approval-guidance strong,
#page-aprovacao .card-header h4,
#page-aprovacao .approval-filter-head h4,
#page-aprovacao .batch-bar strong {
  color: #172033;
}
#page-aprovacao .approval-guidance span,
#page-aprovacao .batch-bar span {
  color: #53697e !important;
}
#page-aprovacao .approval-card {
  min-width: 0;
  padding: 12px;
}
#page-aprovacao .approval-card > .card-header {
  min-height: 0 !important;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #dbe8f1 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #172033 !important;
  box-shadow: none !important;
}
#page-aprovacao .card-header,
#page-aprovacao .approval-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #dbe8f1;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
#page-aprovacao .card-header h4,
#page-aprovacao .approval-filter-head h4 {
  color: #172033 !important;
  font-size: 17px;
  line-height: 1.2;
  margin: 2px 0 0 !important;
}
#page-aprovacao .approval-section-head span {
  color: #60758a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.35;
}
#page-aprovacao .approval-filter-head > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
#page-aprovacao .approval-filter-head span {
  color: #6b7f91;
  font-size: 12px;
  font-weight: 800;
}
#page-aprovacao .approval-filter-head span.is-active {
  border-radius: 999px;
  background: #fff6df;
  color: #8a5b10;
  padding: 4px 8px;
}
#page-aprovacao .approval-filter-grid {
  grid-template-columns: minmax(260px, 1.3fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(170px, 0.75fr) 112px;
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
}
#page-aprovacao .approval-filter-grid > .filter-field {
  grid-column: auto !important;
}
#page-aprovacao .filter-field label {
  color: #2d4c68 !important;
  font-size: 11px !important;
  letter-spacing: 0;
}
#page-aprovacao .filter-field select,
#page-aprovacao .filter-field input,
#page-aprovacao .mips-combo-input {
  min-height: 44px !important;
  height: 44px !important;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
}
#page-aprovacao .filter-field select:hover,
#page-aprovacao .filter-field input:hover,
#page-aprovacao .mips-combo-input:hover {
  border-color: #95b6cf !important;
  background: #ffffff !important;
}
#page-aprovacao .filter-field select:focus,
#page-aprovacao .filter-field input:focus,
#page-aprovacao .mips-combo-input:focus,
#page-aprovacao .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
#page-aprovacao .mips-combo-clear,
#page-aprovacao .mips-combo-toggle {
  color: #6b8196 !important;
}
#page-aprovacao .mips-combo-clear:hover,
#page-aprovacao .mips-combo-toggle:hover {
  background: #e8f2fa !important;
  color: #1f3f5b !important;
}
#page-aprovacao .mips-combo-menu {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #172033 !important;
}
#page-aprovacao .mips-combo-option {
  color: #172033 !important;
}
#page-aprovacao .mips-combo-option:hover,
#page-aprovacao .mips-combo-option.active {
  background: #e8f2fa !important;
}
#page-aprovacao .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-aprovacao .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-aprovacao .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(47, 129, 199, 0.18) !important;
}
#page-aprovacao .btn-primary:hover {
  border-color: #256fae !important;
  background: #256fae !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(47, 129, 199, 0.24) !important;
}
#page-aprovacao .btn-danger {
  border-color: #d95b58 !important;
  background: #d95b58 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(217, 91, 88, 0.18) !important;
}
#page-aprovacao .btn-danger:hover {
  border-color: #c94a47 !important;
  background: #c94a47 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(217, 91, 88, 0.24) !important;
}
#page-aprovacao .btn-soft {
  border-color: #8db9d9 !important;
  background: #e6f2fc !important;
  color: #17496f !important;
}
#page-aprovacao .btn-soft:hover {
  border-color: #5f9fcd !important;
  background: #d8ebfa !important;
  color: #123f62 !important;
}
#page-aprovacao .btn-ghost {
  border-color: #abcce3 !important;
  background: #f0f7fd !important;
  color: #1f5d87 !important;
}
#page-aprovacao .btn-ghost:hover {
  border-color: #7fb0d1 !important;
  background: #e4f1fb !important;
  color: #17496f !important;
}
#page-aprovacao .batch-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 1px solid #d5e4ee !important;
  border-radius: 8px !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  padding: 12px 14px !important;
  margin: 0 0 12px !important;
  box-shadow: none !important;
}
#page-aprovacao .approval-batch-copy {
  display: grid;
  gap: 4px;
  min-width: min(320px, 100%);
}
#page-aprovacao .approval-batch-copy strong {
  color: #172033 !important;
  font-size: 14px;
  line-height: 1.25;
}
#page-aprovacao .approval-batch-copy span {
  color: #53697e !important;
  font-size: 12px;
  line-height: 1.35;
}
#page-aprovacao .approval-batch-actions,
#page-aprovacao .approval-pagination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
#page-aprovacao .approval-batch-actions .btn {
  min-height: 42px;
  padding-inline: 14px !important;
}
#page-aprovacao .table-wrap {
  border: 1px solid #d5e4ee !important;
  border-radius: 8px 8px 0 0 !important;
  background: #ffffff !important;
  overflow-x: auto;
  box-shadow: none !important;
}
#page-aprovacao .table-wrap .approval-table {
  min-width: 1460px;
  table-layout: fixed;
}
#page-aprovacao .approval-col-check { width: 48px; }
#page-aprovacao .approval-col-date { width: 170px; }
#page-aprovacao .approval-col-professional { width: 250px; }
#page-aprovacao .approval-col-cbo { width: 250px; }
#page-aprovacao .approval-col-procedure { width: 300px; }
#page-aprovacao .approval-col-quantity { width: 72px; }
#page-aprovacao .approval-col-status { width: 150px; }
#page-aprovacao .approval-col-analysis { width: 220px; }
#page-aprovacao .table-wrap table {
  color: #172033 !important;
}
#page-aprovacao .table-wrap th {
  border-bottom: 1px solid #d5e4ee !important;
  background: #e8f2fa !important;
  color: #173955 !important;
}
#page-aprovacao .table-wrap td {
  border-bottom: 1px solid #e3edf5 !important;
  background: #ffffff !important;
  color: #172033 !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
}
#page-aprovacao .table-wrap tbody tr:nth-child(even) td {
  background: #f8fbfd !important;
}
#page-aprovacao .table-wrap tbody tr:hover td {
  background: #f2f8fc !important;
}
#page-aprovacao .approval-professional strong,
#page-aprovacao .approval-cbo strong {
  color: #172033;
}
#page-aprovacao .approval-professional,
#page-aprovacao .approval-cbo {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
}
#page-aprovacao .approval-professional strong,
#page-aprovacao .approval-cbo strong,
#page-aprovacao .approval-professional span,
#page-aprovacao .approval-cbo span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
#page-aprovacao .approval-professional span,
#page-aprovacao .approval-cbo span {
  color: #53697e;
}
#page-aprovacao .approval-date-cell {
  width: 170px;
  min-width: 170px;
}
#page-aprovacao .approval-date strong {
  color: #172033;
  font-size: 14px;
}
#page-aprovacao .approval-date span,
#page-aprovacao .approval-date small {
  color: #53697e;
}
#page-aprovacao .approval-professional-cell,
#page-aprovacao .approval-cbo-cell,
#page-aprovacao .approval-procedure-cell {
  width: auto;
}
#page-aprovacao .approval-actions-cell,
#page-aprovacao .approval-analysis-cell {
  min-width: 220px;
}
#page-aprovacao .approval-actions {
  grid-template-columns: 1fr;
}
#page-aprovacao .approval-actions .btn {
  min-height: 36px;
  white-space: nowrap;
}
#page-aprovacao .approval-reason-cell {
  min-width: 220px;
  max-width: 260px;
}
#page-aprovacao .approval-analysis-cell .quality-pill-button {
  width: 100%;
  max-width: none;
  min-height: 40px;
  align-items: center;
  line-height: 1.25;
  background: #eef6fb !important;
  color: #1f3f5b !important;
}
#page-aprovacao .approval-analysis-cell .approval-actions {
  margin-top: 8px;
}
#page-aprovacao .quality-pill-button {
  border-color: #bfd2e2;
  background: #eef6fb;
  color: #1f3f5b;
}
#page-aprovacao .quality-pill-button:hover {
  border-color: #4f8fc2;
  background: #e8f2fa;
  color: #173955;
}
#page-aprovacao .approval-reason-card {
  border-color: #cbddea;
  background: #f8fbfd;
  color: #172033;
}
#page-aprovacao .approval-reason-card:hover,
#page-aprovacao .approval-reason-card.is-active {
  border-color: #4f8fc2;
  background: #eef6fb;
  box-shadow: inset 0 0 0 1px rgba(79, 143, 194, 0.18);
}
#page-aprovacao .approval-reason-card strong {
  color: #172033;
}
#page-aprovacao .approval-reason-card span,
#page-aprovacao .approval-reason-card small {
  color: #53697e;
}
#page-aprovacao .pagination-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid #d5e4ee !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background: #f8fbfd !important;
  color: #53697e !important;
  padding: 12px 14px !important;
  margin: 0 0 12px !important;
  box-shadow: none !important;
}
#page-aprovacao .pagination-bar > span,
#page-aprovacao .pagination-bar .approval-pagination-actions > span {
  color: #53697e !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
#page-aprovacao .pagination-bar .btn {
  min-height: 42px;
  padding-inline: 14px !important;
}
#page-aprovacao .btn:disabled,
#page-aprovacao .btn[disabled],
#page-aprovacao .btn-primary:disabled,
#page-aprovacao .btn-primary[disabled],
#page-aprovacao .btn-danger:disabled,
#page-aprovacao .btn-danger[disabled] {
  opacity: 1 !important;
  border-color: #d4e0e9 !important;
  background: #eef3f7 !important;
  color: #71879a !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
#page-aprovacao .approval-batch-actions .btn-primary:disabled,
#page-aprovacao .approval-batch-actions .btn-primary[disabled] {
  border-color: #b8d6ed !important;
  background: #dceefa !important;
  color: #2f6f9f !important;
}
#page-aprovacao .approval-batch-actions .btn-danger:disabled,
#page-aprovacao .approval-batch-actions .btn-danger[disabled] {
  border-color: #efc4c4 !important;
  background: #fdeaea !important;
  color: #aa3f40 !important;
}
#page-aprovacao .approval-batch-actions .btn-ghost:disabled,
#page-aprovacao .approval-batch-actions .btn-ghost[disabled],
#page-aprovacao .approval-pagination-actions .btn-ghost:disabled,
#page-aprovacao .approval-pagination-actions .btn-ghost[disabled] {
  border-color: #d2e2ee !important;
  background: #edf5fb !important;
  color: #6c8193 !important;
}
#page-aprovacao .btn:disabled svg,
#page-aprovacao .btn[disabled] svg {
  color: currentColor !important;
}
#page-aprovacao .approval-history-card .pagination-bar,
#page-aprovacao .approval-queue-card .pagination-bar {
  margin-bottom: 0 !important;
}
body.page-aprovacao-active .manage-modal-overlay {
  background: rgba(20, 35, 58, 0.42) !important;
}
.approval-decision-modal {
  width: min(1040px, calc(100vw - 28px)) !important;
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  border-color: #cbddea !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  box-shadow: 0 24px 70px rgba(47, 81, 111, 0.22) !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.approval-decision-modal .manage-modal-head {
  border-bottom-color: #cbddea !important;
  background: #ffffff !important;
}
.approval-decision-modal .manage-modal-head h4 {
  color: #14233a !important;
  font-size: 18px;
}
.approval-decision-modal .manage-modal-body {
  overflow-y: auto;
  background: #f8fbfd !important;
  color: #172033 !important;
}
.approval-decision-hero,
.approval-decision-options {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 14px;
  margin-bottom: 14px;
}
.approval-decision-hero > div,
.approval-decision-options > div,
.approval-detail-card {
  border: 1px solid #d5e4ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}
.approval-decision-main {
  border-left: 4px solid #d95b58 !important;
}
.approval-decision-next {
  border-left: 4px solid #2f81c7 !important;
  background: #eef6fb !important;
}
.approval-decision-kicker,
.approval-detail-card b {
  display: block;
  color: #53697e !important;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.approval-decision-hero strong,
.approval-detail-card strong,
.approval-option-head strong {
  display: block;
  color: #172033 !important;
  font-size: 15px;
  line-height: 1.34;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.approval-decision-main > strong {
  font-size: 18px;
}
.approval-decision-hero p,
.approval-decision-options p {
  color: #53697e !important;
  font-size: 13px;
  line-height: 1.48;
  margin: 8px 0 0;
}
.approval-decision-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #f0cf8c;
  border-radius: 999px;
  background: #fff7e6;
  color: #8a5a00;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}
.approval-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.approval-detail-card {
  min-height: 76px;
}
.approval-detail-card.is-wide {
  grid-column: span 2;
}
.approval-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.approval-decision-modal .modal-actions-row {
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  border-top: 1px solid #d5e4ee;
  background: #f8fbfd;
  padding-top: 12px;
}
.approval-decision-modal .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
.approval-decision-modal .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
.approval-decision-modal .btn-danger {
  border-color: #d95b58 !important;
  background: #d95b58 !important;
  color: #ffffff !important;
}
.pending-production-modal {
  width: min(920px, calc(100vw - 28px)) !important;
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  border-color: #cbddea !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  box-shadow: 0 24px 70px rgba(47, 81, 111, 0.22) !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.pending-production-modal .manage-modal-head {
  border-bottom-color: #cbddea !important;
  background: #ffffff !important;
}
.pending-production-modal .manage-modal-head h4 {
  color: #14233a !important;
  font-size: 18px;
}
.pending-production-modal .manage-modal-body {
  overflow-y: auto;
  background: #f8fbfd !important;
  color: #172033 !important;
}
.pending-production-hero,
.pending-production-options {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
  margin-bottom: 14px;
}
.pending-production-card,
.pending-production-options > div,
.pending-production-detail {
  border: 1px solid #d5e4ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}
.pending-production-main {
  border-left: 4px solid #d95b58 !important;
}
.pending-production-next {
  border-left: 4px solid #2f81c7 !important;
  background: #eef6fb !important;
}
.pending-production-kicker,
.pending-production-detail b {
  display: block;
  color: #53697e !important;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.pending-production-card strong,
.pending-production-detail strong,
.pending-production-option-head strong {
  display: block;
  color: #172033 !important;
  font-size: 15px;
  line-height: 1.34;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.pending-production-main > strong {
  font-size: 18px;
}
.pending-production-card p,
.pending-production-options p {
  color: #53697e !important;
  font-size: 13px;
  line-height: 1.48;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.pending-production-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #f0cf8c;
  border-radius: 999px;
  background: #fff7e6;
  color: #8a5a00;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}
.pending-production-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.pending-production-detail {
  min-height: 76px;
}
.pending-production-detail.is-wide {
  grid-column: span 2;
}
.pending-production-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pending-production-modal .modal-actions-row {
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  border-top: 1px solid #d5e4ee;
  background: #f8fbfd;
  padding-top: 12px;
}
.pending-production-modal .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
.pending-production-modal .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
.pending-production-modal .btn-danger {
  border-color: #d95b58 !important;
  background: #d95b58 !important;
  color: #ffffff !important;
}
@media (max-width: 1180px) {
  #page-aprovacao .approval-hero,
  #page-aprovacao .approval-guidance {
    grid-template-columns: 1fr;
  }
  #page-aprovacao .approval-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-aprovacao .approval-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-aprovacao .approval-filter-grid .filter-field:last-child {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 720px) {
  #page-aprovacao {
    margin: 0;
    padding: 12px;
  }
  #page-aprovacao .approval-metrics,
  #page-aprovacao .approval-filter-grid,
  .approval-decision-hero,
  .approval-decision-options,
  .approval-detail-grid,
  .pending-production-hero,
  .pending-production-options,
  .pending-production-detail-grid {
    grid-template-columns: 1fr;
  }
  .approval-detail-card.is-wide,
  .pending-production-detail.is-wide {
    grid-column: auto;
  }
  #page-aprovacao .batch-bar,
  #page-aprovacao .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }
  #page-aprovacao .batch-bar .btn,
  #page-aprovacao .pagination-bar .btn,
  .approval-decision-modal .modal-actions-row .btn,
  .pending-production-modal .modal-actions-row .btn {
    width: 100%;
  }
}

:is(#page-sigtap,#page-regras-qualidade) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: -4px 0 0;
  min-height: calc(100vh - 36px);
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
  padding: 18px;
  overflow-x: hidden;
}
body.page-sigtap-active .topbar {
  display: none !important;
}
body.page-sigtap-active .content {
  background: #eef6fb !important;
  overflow-x: hidden;
  padding: 16px 16px 24px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-page {
  display: grid;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-hero,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-card,
:is(#page-sigtap,#page-regras-qualidade) .card {
  min-width: 0;
  border: 1px solid #cbddea !important;
  border-radius: 8px;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07) !important;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-eyebrow,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-section-title small {
  color: #21606f;
  font-size: 11px;
  font-weight: 800;
}
:is(#page-sigtap,#page-regras-qualidade) h3 {
  color: #14233a !important;
  font-size: 28px;
  line-height: 1.12;
  margin: 4px 0 0;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-hero p {
  color: #516377;
  font-size: 14px;
  margin-top: 6px;
  max-width: 640px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metric {
  display: grid;
  gap: 6px;
  min-height: 82px;
  border: 1px solid #d5e4ee;
  border-left: 4px solid #4f8fc2;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metric span,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-table-footer span {
  color: #53697e;
  font-size: 11px;
  font-weight: 800;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metric strong {
  color: #172033 !important;
  font-size: 22px;
  line-height: 1;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metric small {
  color: #60758a;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metric-ok { border-left-color: #3a9d87; }
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metric-info { border-left-color: #4f8fc2; }
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metric-warn { border-left-color: #d69b2d; }
:is(#page-sigtap,#page-regras-qualidade) .sigtap-metric-soft { border-left-color: #6e9fbf; }
:is(#page-sigtap,#page-regras-qualidade) .sigtap-card,
:is(#page-sigtap,#page-regras-qualidade) .card {
  padding: 12px;
}
:is(#page-sigtap,#page-regras-qualidade) .card-header {
  border-bottom-color: #dbe8f1 !important;
  background: #ffffff !important;
}
:is(#page-sigtap,#page-regras-qualidade) .card-header h4,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-section-title h4 {
  color: #172033 !important;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 2px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-card {
  margin-bottom: 14px;
  overflow: hidden;
  padding: 0;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-summary,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-summary span {
  color: #60758a;
  font-size: 12px;
  font-weight: 800;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-body {
  display: grid;
  gap: 14px;
  border-top: 1px solid #dbe8f1;
  padding: 14px 16px 16px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-body.hidden {
  display: none !important;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  border: 1px solid #d5e4ee;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-form .filter-field {
  min-width: 0;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-procedure,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-unit {
  grid-column: span 4;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-context,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-action,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-start,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-end,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-status {
  grid-column: span 2;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-cbo,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-reason {
  grid-column: span 3;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-actions {
  grid-column: 1 / -1;
  padding-top: 2px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-actions .btn {
  min-height: 42px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-search {
  display: grid;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-note {
  border: 1px solid #d5e4ee;
  border-radius: 8px;
  background: #f8fbfd;
  color: #53697e;
  margin: 0;
  padding: 12px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-table {
  margin-top: 0;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-section-title > span,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-compat-toolbar span {
  color: #60758a;
  font-size: 12px;
  font-weight: 800;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-query-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: end;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-query-input {
  min-width: 0;
}
:is(#page-sigtap,#page-regras-qualidade) .filter-field label,
:is(#page-sigtap,#page-regras-qualidade) .field label {
  color: #2d4c68 !important;
  font-size: 11px;
  letter-spacing: 0;
}
:is(#page-sigtap,#page-regras-qualidade) input,
:is(#page-sigtap,#page-regras-qualidade) select,
:is(#page-sigtap,#page-regras-qualidade) textarea,
:is(#page-sigtap,#page-regras-qualidade) .filter-field input,
:is(#page-sigtap,#page-regras-qualidade) .filter-field select,
:is(#page-sigtap,#page-regras-qualidade) .search-input,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-input {
  min-height: 44px !important;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
}
:is(#page-sigtap,#page-regras-qualidade) input::placeholder,
:is(#page-sigtap,#page-regras-qualidade) textarea::placeholder,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
:is(#page-sigtap,#page-regras-qualidade) input:hover,
:is(#page-sigtap,#page-regras-qualidade) select:hover,
:is(#page-sigtap,#page-regras-qualidade) textarea:hover,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-input:hover {
  border-color: #95b6cf !important;
  background: #ffffff !important;
}
:is(#page-sigtap,#page-regras-qualidade) input:focus,
:is(#page-sigtap,#page-regras-qualidade) select:focus,
:is(#page-sigtap,#page-regras-qualidade) textarea:focus,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-input:focus,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
:is(#page-sigtap,#page-regras-qualidade) option {
  background: #ffffff !important;
  color: #172033 !important;
}
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-clear,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-toggle {
  color: #6b8196 !important;
}
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-clear:hover,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-toggle:hover {
  background: #e8f2fa !important;
  color: #1f3f5b !important;
}
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-menu {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #172033 !important;
}
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-option,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-meta,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-empty {
  color: #172033 !important;
}
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-option:hover,
:is(#page-sigtap,#page-regras-qualidade) .mips-combo-option.active {
  background: #e8f2fa !important;
}
:is(#page-sigtap,#page-regras-qualidade) .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
:is(#page-sigtap,#page-regras-qualidade) .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
:is(#page-sigtap,#page-regras-qualidade) .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
:is(#page-sigtap,#page-regras-qualidade) .btn-primary:hover {
  border-color: #256fae !important;
  background: #256fae !important;
  color: #ffffff !important;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-import-actions,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-compat-toolbar,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-filter-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-filter-banner {
  border: 1px solid #c4dced;
  border-radius: 8px;
  background: #f8fbfd;
  color: #2f4256;
  padding: 9px 12px;
  font-size: 13px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-filter-banner .btn {
  margin-left: auto;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
:is(#page-sigtap,#page-regras-qualidade) .table-wrap {
  max-width: 100%;
  border-color: #d5e4ee !important;
  background: #ffffff !important;
  overflow: auto;
}
:is(#page-sigtap,#page-regras-qualidade) table {
  width: 100%;
}
:is(#page-sigtap,#page-regras-qualidade) thead th,
:is(#page-sigtap,#page-regras-qualidade) .table-wrap th {
  border-color: #dbe8f1 !important;
  background: #f1f7fb !important;
  color: #2d4c68 !important;
}
:is(#page-sigtap,#page-regras-qualidade) tbody td,
:is(#page-sigtap,#page-regras-qualidade) .table-wrap td {
  border-color: #e2edf5 !important;
  background: #ffffff !important;
  color: #172033 !important;
}
:is(#page-sigtap,#page-regras-qualidade) tbody tr:nth-child(even) td {
  background: #f8fbfd !important;
}
:is(#page-sigtap,#page-regras-qualidade) tbody tr:hover td {
  background: #eef6fb !important;
}
:is(#page-sigtap,#page-regras-qualidade) td code,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-panel code {
  display: inline-flex;
  border-radius: 5px;
  background: #edf4fa !important;
  color: #173a5a !important;
  padding: 2px 5px;
  font-size: 11px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-procedimentos-scroll,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-compat-scroll {
  max-height: none;
  overflow: auto;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #dbe8f1;
  margin-top: 10px;
  padding-top: 10px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-table-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-panel {
  margin-top: 12px;
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(120px, 0.45fr));
  gap: 10px;
  align-items: stretch;
  border-bottom: 1px solid #dbe8f1;
  background: #f8fbfd;
  padding: 12px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-main,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-kpi {
  min-width: 0;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-main span,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-kpi span {
  display: block;
  color: #53697e;
  font-size: 11px;
  font-weight: 800;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-main strong,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-kpi strong {
  display: block;
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-kpi strong {
  color: #21606f;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-description,
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-foot {
  color: #53697e;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-alert {
  border: 1px solid #ead49f;
  border-radius: 7px;
  background: #fff6df;
  color: #8a5b10;
  font-size: 12px;
  margin: 10px 12px;
  padding: 8px 10px;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-result-scroll {
  max-height: 220px;
  border-width: 1px 0 0;
  border-radius: 0;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-status-ok {
  background: #e4f7f0;
  color: #16715f;
}
:is(#page-sigtap,#page-regras-qualidade) .sigtap-status-danger {
  background: #ffe7e4;
  color: #aa2e29;
}
body.page-sigtap-active .drawer-panel {
  border-color: #cbddea !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 24px 70px rgba(47, 81, 111, 0.22) !important;
}
body.page-sigtap-active .drawer-head,
body.page-sigtap-active .drawer-foot {
  border-color: #dbe8f1 !important;
  background: #f8fbfd !important;
}
body.page-sigtap-active .drawer-head h4 {
  color: #14233a !important;
}
body.page-sigtap-active .drawer-body {
  background: #ffffff !important;
}
body.page-sigtap-active .field label {
  color: #2d4c68 !important;
}
body.page-sigtap-active .field input,
body.page-sigtap-active .field select,
body.page-sigtap-active .field textarea,
body.page-sigtap-active .mips-combo-input {
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
}
body.page-sigtap-active .field input::placeholder,
body.page-sigtap-active .field textarea::placeholder,
body.page-sigtap-active .mips-combo-input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
body.page-sigtap-active .field input:focus,
body.page-sigtap-active .field select:focus,
body.page-sigtap-active .field textarea:focus,
body.page-sigtap-active .mips-combo-input:focus,
body.page-sigtap-active .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
body.page-sigtap-active option,
body.page-sigtap-active .mips-combo-menu {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #172033 !important;
}
body.page-sigtap-active .mips-combo-option,
body.page-sigtap-active .mips-combo-meta,
body.page-sigtap-active .mips-combo-empty {
  color: #172033 !important;
}
body.page-sigtap-active .mips-combo-option:hover,
body.page-sigtap-active .mips-combo-option.active {
  background: #e8f2fa !important;
}
body.page-sigtap-active .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
body.page-sigtap-active .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
}
body.page-sigtap-active .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
@media (max-width: 1180px) {
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-hero,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-panels,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-result-head {
    grid-template-columns: 1fr;
  }
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-procedure,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-unit,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-cbo,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-reason {
    grid-column: span 3;
  }
}
@media (max-width: 720px) {
  :is(#page-sigtap,#page-regras-qualidade) {
    margin: 0;
    padding: 12px;
  }
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-metrics,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-query-form {
    grid-template-columns: 1fr;
  }
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-query-form .btn,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-table-footer > div,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-filter-banner .btn {
    width: 100%;
  }
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-header,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-summary,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-actions {
    align-items: stretch;
    flex-direction: column;
  }
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-form,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-procedure,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-context,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-action,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-unit,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-cbo,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-start,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-end,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-status,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-field-reason,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-actions {
    grid-column: 1 / -1;
  }
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-context-rule-summary .btn,
  :is(#page-sigtap,#page-regras-qualidade) .sigtap-rule-actions .btn {
    width: 100%;
  }
}

.support-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid #c7d9e8;
  background: #eef6fb;
  color: #315a73;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.support-priority-critica,
.support-status-pendente {
  border-color: #f0c2bc;
  background: #ffece8;
  color: #a94138;
}
.support-priority-alta {
  border-color: #ead49f;
  background: #fff6df;
  color: #8a5b10;
}
.support-priority-media,
.support-status-andamento {
  border-color: #c4dced;
  background: #eaf5fc;
  color: #245d80;
}
.support-priority-baixa,
.support-status-concluido {
  border-color: #bde2d8;
  background: #e5f8f1;
  color: #17725f;
}
#page-suporte {
  margin: -4px -2px 0;
  min-height: calc(100vh - 36px);
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
  padding: 18px;
}
body.page-suporte-active .topbar {
  display: none !important;
}
body.page-suporte-active .content {
  padding-top: 16px;
}
#page-suporte .support-page {
  display: grid;
  gap: 12px;
}
#page-suporte .support-hero,
#page-suporte .support-form-panel,
#page-suporte .support-filter-card,
#page-suporte .support-column,
#page-suporte .support-task-card {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
#page-suporte .support-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
}
#page-suporte .support-hero-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}
#page-suporte .support-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
#page-suporte .support-hero h3 {
  color: #172033;
  font-size: 24px;
  line-height: 1.12;
  margin: 0;
}
#page-suporte .support-hero p {
  color: #53697e;
  font-size: 13px;
  margin-top: 4px;
}
#page-suporte .support-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#page-suporte .support-metric {
  display: grid;
  gap: 6px;
  min-height: 70px;
  border: 1px solid #d5e4ee;
  border-left: 4px solid #4f8fc2;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}
#page-suporte .support-metric span {
  color: #53697e;
  font-size: 11px;
  font-weight: 800;
}
#page-suporte .support-metric strong {
  color: #172033;
  font-size: 22px;
  line-height: 1;
}
#page-suporte .support-metric-warn { border-left-color: #d69b2d; }
#page-suporte .support-metric-primary { border-left-color: #4f8fc2; }
#page-suporte .support-metric-ok { border-left-color: #3a9d87; }
#page-suporte .support-metric-danger { border-left-color: #d95b58; }
#page-suporte .support-form-panel,
#page-suporte .support-filter-card,
#page-suporte .support-column {
  padding: 12px;
}
#page-suporte .support-section-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
#page-suporte .support-section-title small {
  color: #6b7f91;
  font-size: 11px;
  font-weight: 800;
}
#page-suporte .support-section-title h4 {
  color: #172033;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 2px;
}
#page-suporte .support-form-grid {
  grid-template-columns: minmax(230px, 1.25fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(320px, 1.65fr) 126px;
  gap: 12px;
  align-items: end;
}
#page-suporte .support-form-grid > .filter-field {
  grid-column: auto !important;
}
#page-suporte .support-filter-grid {
  grid-template-columns: minmax(300px, 1.5fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(220px, 1fr) 116px;
  align-items: end;
}
#page-suporte .support-filter-grid > .filter-field {
  grid-column: auto !important;
}
#page-suporte .filter-field label {
  color: #2d4c68 !important;
  font-size: 11px;
  letter-spacing: 0;
}
#page-suporte .filter-field input,
#page-suporte .filter-field select {
  height: 44px;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
}
#page-suporte .mips-combo-input {
  min-height: 44px !important;
  height: 44px !important;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
}
#page-suporte .mips-combo-input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
#page-suporte .mips-combo-input:hover {
  border-color: #95b6cf !important;
  background: #ffffff !important;
}
#page-suporte .mips-combo-input:focus,
#page-suporte .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
#page-suporte .mips-combo-clear,
#page-suporte .mips-combo-toggle {
  color: #6b8196 !important;
}
#page-suporte .mips-combo-clear:hover,
#page-suporte .mips-combo-toggle:hover {
  background: #e8f2fa !important;
  color: #1f3f5b !important;
}
#page-suporte .mips-combo-menu {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #172033 !important;
}
#page-suporte .mips-combo-option {
  color: #172033 !important;
}
#page-suporte .mips-combo-option:hover,
#page-suporte .mips-combo-option.active {
  background: #e8f2fa !important;
}
#page-suporte .mips-combo-meta,
#page-suporte .mips-combo-empty {
  color: #53697e !important;
}
#page-suporte .filter-field input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
#page-suporte .filter-field input:hover,
#page-suporte .filter-field select:hover {
  border-color: #95b6cf !important;
  background: #ffffff !important;
}
#page-suporte .filter-field input:focus,
#page-suporte .filter-field select:focus {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
#page-suporte .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-suporte .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-suporte .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
#page-suporte .btn-primary:hover {
  border-color: #256fae !important;
  background: #256fae !important;
  color: #ffffff !important;
}
#page-suporte .support-submit-field,
#page-suporte .support-filter-clear {
  display: flex;
  align-items: end;
}
#page-suporte .support-submit-field .btn,
#page-suporte .support-filter-clear .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}
#page-suporte .support-filter-card {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
}
#page-suporte .support-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
#page-suporte .support-filter-head span {
  color: #6b7f91;
  font-size: 12px;
  font-weight: 800;
}
#page-suporte .support-filter-head span.is-active {
  border-radius: 999px;
  background: #fff6df;
  color: #8a5b10;
  padding: 4px 8px;
}
#page-suporte .support-filter-grid {
  gap: 8px;
}
#page-suporte .support-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
#page-suporte .support-column {
  min-width: 0;
}
#page-suporte .support-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dbe8f1;
  padding-bottom: 9px;
  margin-bottom: 10px;
}
#page-suporte .support-column-head h4 {
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}
#page-suporte .support-column-head span {
  border-radius: 999px;
  background: #eef6fb;
  color: #315a73;
  font-size: 12px;
  font-weight: 800;
  min-width: 28px;
  padding: 3px 8px;
  text-align: center;
}
#page-suporte .support-column-list {
  display: grid;
  gap: 9px;
}
#page-suporte .support-task-card {
  display: grid;
  gap: 8px;
  padding: 11px;
}
#page-suporte .support-task-card.is-critical {
  border-color: #efb7b0;
}
#page-suporte .support-task-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
#page-suporte .support-task-title {
  min-width: 0;
}
#page-suporte .support-task-title span {
  display: block;
  color: #6b7f91;
  font-size: 11px;
  font-weight: 800;
}
#page-suporte .support-task-title strong {
  display: block;
  color: #172033;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 2px;
  overflow-wrap: break-word;
}
#page-suporte .support-task-card p {
  color: #2f4256;
  font-size: 12.5px;
  line-height: 1.42;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
#page-suporte .support-task-meta {
  display: grid;
  gap: 3px;
  color: #60758a;
  font-size: 11px;
}
#page-suporte .support-task-meta strong {
  color: #172033;
}
#page-suporte .support-task-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#page-suporte .support-empty {
  border: 1px dashed #aebfd0;
  border-radius: 8px;
  background: #f7fbfe;
  color: #53697e;
  font-size: 12px;
  padding: 15px 10px;
  text-align: center;
}
@media (max-width: 1120px) {
  #page-suporte .support-hero,
  #page-suporte .support-board {
    grid-template-columns: 1fr;
  }
  #page-suporte .support-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-suporte .support-form-grid,
  #page-suporte .support-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-suporte .support-submit-field,
  #page-suporte .support-filter-clear {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 720px) {
  #page-suporte {
    margin: 0;
    padding: 12px;
  }
  #page-suporte .support-metrics {
    grid-template-columns: 1fr;
  }
  #page-suporte .support-form-grid,
  #page-suporte .support-filter-grid {
    grid-template-columns: 1fr;
  }
}

#page-relatorios .card,
#page-relatorios .rel-prod-filter-card,
#page-relatorios .rel-prod-action-card,
#page-relatorios .rel-prod-table-card,
#page-relatorios .rel-prod-history,
#page-relatorios .rel-prod-preview-card {
  border: 1px solid #cbddea !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07) !important;
}
#page-relatorios .page-head {
  display: block !important;
  margin: 0 !important;
}
#page-relatorios .page-head h3 {
  color: #14233a !important;
  font-size: 28px !important;
  line-height: 1.12 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}
#page-relatorios .page-head p {
  color: #516377 !important;
  font-size: 14px !important;
  margin-top: 5px !important;
  max-width: 760px !important;
}
#page-relatorios .card-header,
#page-relatorios .rel-prod-section-head {
  background: transparent !important;
  border-bottom: 1px solid #dbe8f1 !important;
  color: #172033 !important;
}
#page-relatorios .card-header h4,
#page-relatorios .rel-prod-section-head h4 {
  color: #172033 !important;
}
#page-relatorios .card-header span,
#page-relatorios .pagination-bar span,
#page-relatorios .rel-prod-action-title,
#page-relatorios .rel-prod-notice {
  color: #53697e !important;
}
#page-relatorios .rel-prod-notice.warn {
  color: #8a5b10 !important;
}
#page-relatorios .rel-prod-notice.danger {
  color: #a23b38 !important;
}
#page-relatorios .rel-prod-filter-title small {
  color: #21606f !important;
}
#page-relatorios .rel-prod-filter-title h4,
#page-relatorios .rel-prod-filter-title span {
  color: #172033 !important;
}
#page-relatorios .rel-prod-filter-title span {
  color: #53697e !important;
}
#page-relatorios .rel-prod-filter-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}
#page-relatorios .rel-prod-filter-grid > .filter-field {
  grid-column: span 1 !important;
}
#page-relatorios .rel-prod-filter-grid > .rel-filter-wide {
  grid-column: span 2 !important;
}
#page-relatorios .filter-chip {
  border-color: #d2e3ee !important;
  background: #eef6fb !important;
  color: #315a73 !important;
}
#page-relatorios .filter-field label {
  color: #2d4c68 !important;
}
#page-relatorios .filter-field input,
#page-relatorios .filter-field select {
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  color-scheme: light;
}
#page-relatorios .filter-field input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
#page-relatorios .filter-field input:hover,
#page-relatorios .filter-field select:hover {
  border-color: #95b6cf !important;
  background: #ffffff !important;
}
#page-relatorios .filter-field input:focus,
#page-relatorios .filter-field select:focus {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
#page-relatorios .filter-field input[type="date"]::-webkit-calendar-picker-indicator,
#page-relatorios .filter-field input[type="month"]::-webkit-calendar-picker-indicator {
  filter: none !important;
  opacity: 0.82 !important;
}
#page-relatorios .mips-combo-input {
  min-height: 44px !important;
  height: 44px !important;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  box-shadow: none !important;
}
#page-relatorios .mips-combo-input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
#page-relatorios .mips-combo-input:hover {
  border-color: #95b6cf !important;
  background: #ffffff !important;
  color: #172033 !important;
}
#page-relatorios .mips-combo-input:focus,
#page-relatorios .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
#page-relatorios .mips-combo-clear,
#page-relatorios .mips-combo-toggle {
  color: #6b8196 !important;
}
#page-relatorios .mips-combo-clear:hover,
#page-relatorios .mips-combo-toggle:hover {
  background: #e8f2fa !important;
  color: #1f3f5b !important;
}
#page-relatorios .mips-combo-menu {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 14px 32px rgba(47, 81, 111, 0.18) !important;
}
#page-relatorios .mips-combo-option {
  color: #172033 !important;
}
#page-relatorios .mips-combo-option:hover,
#page-relatorios .mips-combo-option.active {
  background: #e8f2fa !important;
  color: #172033 !important;
}
#page-relatorios .mips-combo-check {
  color: #17725f !important;
}
#page-relatorios .mips-combo-meta,
#page-relatorios .mips-combo-empty {
  background: #f8fbfd !important;
  color: #53697e !important;
}
#page-relatorios .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-relatorios .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-relatorios .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
#page-relatorios .btn-primary:hover {
  border-color: #256fae !important;
  background: #256fae !important;
  color: #ffffff !important;
}
#page-relatorios .btn-soft {
  border-color: #b7d4ea !important;
  background: #eef6fb !important;
  color: #1f5d88 !important;
}
#page-relatorios .table-wrap {
  border: 1px solid #d5e4ee !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
#page-relatorios .table-wrap table {
  color: #172033 !important;
}
#page-relatorios .table-wrap th {
  border-color: #d5e4ee !important;
  background: #eef4fa !important;
  color: #1f3f5b !important;
  font-size: 11px;
}
#page-relatorios .table-wrap td {
  border-color: #e0ebf3 !important;
  background: #ffffff !important;
  color: #263f55 !important;
}
#page-relatorios .table-wrap tbody tr:nth-child(even) td {
  background: #f8fbfd !important;
}
#page-relatorios .pagination-bar {
  border-top: 1px solid #dbe8f1 !important;
  background: #f8fbfd !important;
  color: #53697e !important;
}
#page-relatorios .rel-prod-pagination-controls {
  color: #53697e !important;
}
@media (max-width: 1100px) {
  #page-relatorios .rel-prod-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #page-relatorios .rel-prod-filter-grid > .rel-filter-wide {
    grid-column: span 2 !important;
  }
}
@media (max-width: 720px) {
  #page-relatorios .rel-prod-filter-grid {
    grid-template-columns: 1fr !important;
  }
  #page-relatorios .rel-prod-filter-grid > .filter-field,
  #page-relatorios .rel-prod-filter-grid > .rel-filter-wide {
    grid-column: 1 / -1 !important;
  }
}

#page-importacoes {
  --text: #172033;
  --muted: #53697e;
  --line: #d5e4ee;
  --ok: #17725f;
  --warn: #8a5b10;
  --danger: #b42318;
  --import-subtle-border: #dbe8f1;
  --import-progress-track: #e7f0f7;
  width: 100%;
  max-width: 100%;
  margin: -4px 0 0;
  min-height: calc(100vh - 36px);
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
  padding: 18px;
  overflow-x: hidden;
}
body.page-importacoes-active .topbar {
  display: none !important;
}
body.page-importacoes-active .content {
  background: #eef6fb !important;
  overflow-x: hidden;
  padding: 16px 16px 24px;
}
#page-importacoes .import-page {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
#page-importacoes .page-head {
  display: block !important;
  margin: 0 !important;
}
#page-importacoes .page-head h3 {
  color: #14233a !important;
  font-size: 28px !important;
  line-height: 1.12 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}
#page-importacoes .page-head p {
  color: #516377 !important;
  font-size: 14px !important;
  margin-top: 5px !important;
  max-width: 760px !important;
}
#page-importacoes .card,
#page-importacoes .import-lote-card,
#page-importacoes .import-history-card {
  border: 1px solid #cbddea !important;
  background: #ffffff !important;
  color: #172033 !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07) !important;
}
#page-importacoes .card-header {
  background: transparent !important;
  border-bottom: 1px solid #dbe8f1 !important;
  color: #172033 !important;
  align-items: flex-start;
}
#page-importacoes .card-header h4 {
  color: #172033 !important;
  font-size: 18px !important;
}
#page-importacoes .card-header p {
  color: #53697e !important;
}
#page-importacoes .import-lote-body {
  padding: 14px !important;
}
#page-importacoes .import-lote-form {
  gap: 12px !important;
}
#page-importacoes .import-settings-grid {
  grid-template-columns: repeat(4, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  align-items: end !important;
}
#page-importacoes .import-lote-field label {
  color: #2d4c68 !important;
  letter-spacing: 0 !important;
}
#page-importacoes .import-lote-field input,
#page-importacoes .import-lote-field select {
  min-height: 44px !important;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  color-scheme: light;
  box-shadow: none !important;
}
#page-importacoes .import-lote-field input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
#page-importacoes .import-lote-field input:hover,
#page-importacoes .import-lote-field select:hover {
  border-color: #95b6cf !important;
  background: #ffffff !important;
}
#page-importacoes .import-lote-field input:focus,
#page-importacoes .import-lote-field select:focus {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
#page-importacoes .import-lote-field input[type="date"]::-webkit-calendar-picker-indicator,
#page-importacoes .import-lote-field input[type="month"]::-webkit-calendar-picker-indicator {
  filter: none !important;
  opacity: 0.82 !important;
}
#page-importacoes .import-lote-field input[type="file"] {
  padding: 6px 10px !important;
}
#page-importacoes .import-lote-field input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  border: 1px solid #b7d4ea;
  border-radius: 7px;
  background: #eef6fb;
  color: #1f5d88;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
#page-importacoes .import-file-picker {
  min-height: 44px !important;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  box-shadow: none !important;
}
#page-importacoes .import-file-button {
  border: 1px solid #b7d4ea;
  border-radius: 7px;
  background: #eef6fb;
  color: #1f5d88;
}
#page-importacoes .import-file-button:hover {
  border-color: #95b6cf;
  background: #ffffff;
}
#page-importacoes .import-file-name {
  color: #172033;
}
#page-importacoes .import-lote-actions,
#page-importacoes .import-history-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
#page-importacoes .import-lote-actions {
  margin-top: 2px !important;
}
#page-importacoes .filter-chip {
  border-color: #d2e3ee !important;
  background: #eef6fb !important;
  color: #315a73 !important;
}
#page-importacoes .status-chip-running {
  border-color: #f4d28a !important;
  background: #fff5dd !important;
  color: #7a4d04 !important;
}
#page-importacoes .status-chip-error {
  border-color: #f0b6b3 !important;
  background: #fde8e6 !important;
  color: #8c2a26 !important;
}
#page-importacoes .status-chip.is-empty {
  border-color: #e0e9ef !important;
  background: #f3f7fa !important;
  color: #7b8ea1 !important;
}
#page-importacoes .import-competencia-field {
  max-width: 280px;
  margin-bottom: 4px;
}
#page-importacoes .import-competencia-field .import-lote-hint {
  margin-top: 6px;
  color: #6b7d90 !important;
  font-size: 11px;
  font-weight: 500;
}
#page-importacoes .import-methods {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 760px) {
  #page-importacoes .import-methods { grid-template-columns: 1fr; }
}
#page-importacoes .import-method-pane {
  border: 1px solid #d5e4ee !important;
  background: #f8fbfd !important;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
#page-importacoes .import-method-head h5 {
  color: #172033 !important;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}
#page-importacoes .import-method-head p {
  color: #53697e !important;
  font-size: 12px;
  margin: 3px 0 0;
}
#page-importacoes .import-method-badge {
  border-color: #b7d4ea !important;
  background: #eef6fb !important;
  color: #1f5d88 !important;
  font-size: 10px;
}
#page-importacoes .import-method-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#page-importacoes .import-method-fields > .import-lote-field:only-child {
  grid-column: 1 / -1;
}
#page-importacoes .import-method-cta {
  align-self: flex-start;
  min-height: 40px;
  white-space: nowrap;
}
#page-importacoes .import-method-cta svg {
  width: 14px;
  height: 14px;
}
#page-importacoes .import-empty-state {
  padding: 28px 16px !important;
  text-align: center;
  color: #6b7d90 !important;
}
#page-importacoes .import-empty-state .import-empty-icon {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 auto 8px !important;
  color: #95b6cf !important;
}
#page-importacoes .import-empty-state strong {
  display: block;
  color: #2d4c68 !important;
  font-size: 13px;
  margin-bottom: 3px;
}
#page-importacoes .import-empty-state span {
  display: block;
  font-size: 12px;
}
#page-importacoes .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-importacoes .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-importacoes .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
#page-importacoes .btn-primary:hover {
  border-color: #256fae !important;
  background: #256fae !important;
  color: #ffffff !important;
}
#page-importacoes .btn-soft,
#page-importacoes .btn-ghost {
  border-color: #b7d4ea !important;
  background: #eef6fb !important;
  color: #1f5d88 !important;
}
#page-importacoes .btn-danger {
  border-color: #d95b58 !important;
  background: #d95b58 !important;
  color: #ffffff !important;
}
#page-importacoes .btn:disabled {
  background: #e7f0f7 !important;
  border-color: #d5e4ee !important;
  color: #7b8ea1 !important;
}
#page-importacoes .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d5e4ee !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
#page-importacoes .table-wrap table {
  min-width: 980px;
  color: #172033 !important;
}
#page-importacoes .table-wrap th {
  border-color: #d5e4ee !important;
  background: #eef4fa !important;
  color: #1f3f5b !important;
  font-size: 11px;
}
#page-importacoes .table-wrap td {
  border-color: #e0ebf3 !important;
  background: #ffffff !important;
  color: #263f55 !important;
}
#page-importacoes .table-wrap tbody tr:nth-child(even) td {
  background: #f8fbfd !important;
}
#page-importacoes .table-wrap tbody tr:hover td {
  background: #f2f8fc !important;
}
#page-importacoes .import-result-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(58px, 1fr));
  gap: 6px;
  min-width: 360px;
}
#page-importacoes .import-result-item {
  min-width: 0;
  border: 1px solid #e0ebf3;
  border-radius: 7px;
  background: #f8fbfd;
  padding: 7px 8px;
}
#page-importacoes .import-result-item span {
  display: block;
  color: #53697e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
#page-importacoes .import-result-item strong,
#page-importacoes .import-result-item .btn {
  margin-top: 3px;
}
#page-importacoes .import-result-item strong {
  display: block;
  color: #172033;
  font-size: 15px;
  line-height: 1.1;
}
#page-importacoes .import-result-item strong.ok {
  color: #17725f;
}
#page-importacoes .import-result-item small {
  display: block;
  color: #53697e;
  font-size: 10px;
  line-height: 1.25;
  margin-top: 3px;
}
#page-importacoes .import-row-actions {
  display: grid;
  gap: 7px;
  min-width: 0;
}
#page-importacoes .import-row-actions .btn {
  justify-content: center;
  width: 100%;
}
#page-importacoes .import-row-actions span {
  display: block;
  color: #53697e;
  font-size: 11px;
  line-height: 1.35;
}
#page-importacoes .import-row-control {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#page-importacoes .import-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid #dbe8f1 !important;
  background: #f8fbfd !important;
  color: #53697e !important;
}
body.page-importacoes-active .manage-modal-overlay {
  background: rgba(20, 35, 58, 0.42) !important;
  backdrop-filter: blur(7px) !important;
}
body.page-importacoes-active .manage-modal,
body.page-importacoes-active .import-error-modal {
  border: 1px solid #cbddea !important;
  background: #ffffff !important;
  color: #172033 !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 70px rgba(47, 81, 111, 0.22) !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
body.page-importacoes-active .import-error-modal {
  width: min(1060px, calc(100vw - 28px)) !important;
}
body.page-importacoes-active .manage-modal-head {
  border-bottom: 1px solid #dbe8f1 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
}
body.page-importacoes-active .manage-modal-head h4 {
  color: #14233a !important;
  font-size: 18px !important;
  letter-spacing: 0 !important;
}
body.page-importacoes-active .manage-modal-body {
  background: #ffffff !important;
  color: #172033 !important;
}
body.page-importacoes-active .manage-modal-body p,
body.page-importacoes-active .modal-note {
  color: #53697e !important;
}
body.page-importacoes-active .import-diagnostic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
  gap: 12px;
  margin-bottom: 12px;
}
body.page-importacoes-active .import-diagnostic-hero > div {
  border: 1px solid #d5e4ee;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 13px 14px;
  min-width: 0;
}
body.page-importacoes-active .import-diagnostic-kicker,
body.page-importacoes-active .import-diagnostic-actions-label {
  display: block;
  color: #53697e;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
body.page-importacoes-active .import-diagnostic-hero strong {
  display: block;
  color: #172033;
  font-size: 18px;
  line-height: 1.22;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
body.page-importacoes-active .import-diagnostic-hero p {
  margin: 6px 0 0;
  color: #53697e !important;
  overflow-wrap: anywhere;
}
body.page-importacoes-active .import-diagnostic-next {
  border-color: #b7d4ea !important;
  background: #eef6fb !important;
}
body.page-importacoes-active .import-diagnostic-next strong {
  color: #1f5d88;
}
body.page-importacoes-active .import-diagnostic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
body.page-importacoes-active .import-diagnostic-meta span {
  border: 1px solid #d2e3ee;
  border-radius: 999px;
  background: #ffffff;
  color: #315a73;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  padding: 5px 8px;
}
body.page-importacoes-active .import-error-summary span,
body.page-importacoes-active .import-diagnostic-note span,
body.page-importacoes-active .import-error-reasons,
body.page-importacoes-active .import-error-card {
  border-color: #d5e4ee !important;
  background: #f8fbfd !important;
  color: #53697e !important;
}
body.page-importacoes-active .import-error-summary strong,
body.page-importacoes-active .import-diagnostic-note b,
body.page-importacoes-active .import-error-reasons h5,
body.page-importacoes-active .import-error-card-head strong,
body.page-importacoes-active .import-payload-grid b,
body.page-importacoes-active .import-action-label {
  color: #172033 !important;
}
body.page-importacoes-active .import-error-reason-row {
  border-top-color: #dbe8f1 !important;
}
body.page-importacoes-active .import-error-reason-row strong,
body.page-importacoes-active .import-error-reason {
  color: #a23b38 !important;
}
body.page-importacoes-active .import-error-reason {
  border-left-color: #d95b58 !important;
}
body.page-importacoes-active .import-error-reason-row small,
body.page-importacoes-active .import-payload-grid span {
  color: #53697e !important;
}
body.page-importacoes-active .import-error-reason-count {
  background: #d95b58 !important;
  color: #ffffff !important;
}
body.page-importacoes-active .import-diagnostic-filter {
  border-color: #cbddea !important;
  background: #ffffff !important;
  color: #315a73 !important;
}
body.page-importacoes-active .import-diagnostic-filter:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
}
body.page-importacoes-active .import-diagnostic-filter.is-active {
  border-color: #2f81c7 !important;
  background: #e8f2fa !important;
  color: #1f5d88 !important;
}
body.page-importacoes-active .import-issue-badge {
  border-color: #cbddea !important;
  background: #eef6fb !important;
  color: #315a73 !important;
}
body.page-importacoes-active .import-issue-badge.erro {
  border-color: #f0b8b5 !important;
  background: #ffe7e4 !important;
  color: #aa2e29 !important;
}
body.page-importacoes-active .import-issue-badge.pendente,
body.page-importacoes-active .import-issue-badge.aviso,
body.page-importacoes-active .import-issue-badge.outro {
  border-color: #efd28a !important;
  background: #fff4d8 !important;
  color: #8a5b10 !important;
}
body.page-importacoes-active .import-issue-badge.duplicado {
  border-color: #b7d4ea !important;
  background: #e8f2fa !important;
  color: #24536c !important;
}
body.page-importacoes-active .import-issue-badge.ignorado {
  border-color: #d5e4ee !important;
  background: #eef4fa !important;
  color: #53697e !important;
}
body.page-importacoes-active .modal-actions-row {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  margin: 14px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid #dbe8f1 !important;
  background: #f8fbfd !important;
}
body.page-importacoes-active .import-diagnostic-actions {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
body.page-importacoes-active .import-diagnostic-actions-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
body.page-importacoes-active .manage-modal .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
body.page-importacoes-active .manage-modal .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
}
body.page-importacoes-active .manage-modal .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
body.page-importacoes-active .manage-modal .btn-primary:hover {
  border-color: #256fae !important;
  background: #256fae !important;
  color: #ffffff !important;
}
body.page-importacoes-active .manage-modal .btn-soft,
body.page-importacoes-active .manage-modal .btn-ghost {
  border-color: #b7d4ea !important;
  background: #eef6fb !important;
  color: #1f5d88 !important;
}
@media (max-width: 1100px) {
  #page-importacoes .import-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #page-importacoes .card-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 720px) {
  #page-importacoes {
    padding: 12px;
  }
  #page-importacoes .import-settings-grid {
    grid-template-columns: 1fr !important;
  }
  #page-importacoes .import-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
  #page-importacoes .import-lote-actions .btn,
  #page-importacoes .import-pagination > div,
  #page-importacoes .import-pagination .btn,
  body.page-importacoes-active .modal-actions-row .btn {
    width: 100%;
  }
  body.page-importacoes-active .import-diagnostic-hero,
  body.page-importacoes-active .import-diagnostic-actions {
    grid-template-columns: 1fr;
  }
  body.page-importacoes-active .import-diagnostic-actions-buttons {
    justify-content: stretch;
  }
  body.page-importacoes-active .modal-actions-row {
    position: static;
    margin: 14px 0 0;
    padding: 12px 0 0;
    background: transparent !important;
  }
}

#page-dashboard {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 36px);
  margin: -4px 0 0;
  padding: 18px;
  overflow-x: hidden;
  border-radius: 8px;
  background: #eef6fb;
  color: #172033;
}
body.page-dashboard-active .topbar {
  display: none !important;
}
body.page-dashboard-active .content {
  overflow-x: hidden;
  padding: 16px 16px 24px;
  background: #eef6fb !important;
}
#page-dashboard .dashboard-clean {
  display: grid;
  gap: 14px;
  width: min(100%, 1500px);
  margin: 0 auto;
  color: #172033;
}
#page-dashboard .executive-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
}
#page-dashboard .executive-panel,
#page-dashboard .command-bar,
#page-dashboard .metric-card,
#page-dashboard .daily-panel,
#page-dashboard .dashboard-ops-grid > .card,
#page-dashboard .insight-card,
#page-dashboard .dashboard-charts > .card {
  border: 1px solid #cbddea;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
#page-dashboard .executive-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, auto);
  gap: 18px;
  align-items: center;
  align-content: center;
  min-height: 0;
  padding: 18px 20px;
}
#page-dashboard .executive-panel h3 {
  margin: 0;
  color: #14233a;
  font-size: 28px;
  line-height: 1.12;
}
#page-dashboard .executive-panel p {
  display: block;
  max-width: 680px;
  margin-top: 7px;
  color: #516377;
  font-size: 14px;
  line-height: 1.42;
}
#page-dashboard .executive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 0;
}
#page-dashboard .executive-meta span {
  min-height: 30px;
  border: 1px solid #c7dae9;
  border-radius: 999px;
  background: #eef6fb;
  color: #315a73;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}
#page-dashboard .executive-meta button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid #2f81c7;
  border-radius: 7px;
  background: #2f81c7;
  color: #ffffff;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}
#page-dashboard .executive-meta button:hover {
  background: #256fae;
  border-color: #256fae;
}
#page-dashboard .command-bar {
  align-self: start;
  width: 100%;
  padding: 0;
}
#page-dashboard .collapsible-filter-head {
  min-height: 54px;
  border-bottom-color: #dbe8f1;
  padding: 10px 12px;
}
#page-dashboard .collapsible-filter-title {
  flex-wrap: nowrap;
}
#page-dashboard .collapsible-filter-title strong {
  color: #172033;
  font-size: 14px;
}
#page-dashboard .collapsible-filter-icon {
  border-color: #c7dae9;
  background: #eaf4fc;
  color: #2f6f9f;
}
#page-dashboard .collapsible-filter-body {
  padding: 0 12px 12px;
}
#page-dashboard .executive-hero .filter-grid,
#page-dashboard .filter-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
#page-dashboard .executive-hero .filter-field.span-2 { grid-column: span 2; }
#page-dashboard .executive-hero .filter-field.span-3 { grid-column: span 3; }
#page-dashboard .executive-hero .filter-field.span-4 { grid-column: span 4; }
#page-dashboard .executive-hero .filter-field.span-5 { grid-column: span 5; }
#page-dashboard .filter-field label {
  color: #2d4c68 !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
#page-dashboard .filter-field input,
#page-dashboard .filter-field select,
#page-dashboard .mips-combo-input {
  min-height: 42px;
  border-color: #bfd2e2 !important;
  background: #f8fbfd !important;
  color: #172033 !important;
  color-scheme: light;
  box-shadow: none !important;
}
#page-dashboard input[type="date"],
#page-dashboard input[type="month"] {
  cursor: pointer;
  color-scheme: light;
}
#page-dashboard input[type="date"]::-webkit-calendar-picker-indicator,
#page-dashboard input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(25%) sepia(24%) saturate(1120%) hue-rotate(164deg) brightness(84%) contrast(91%);
  opacity: 1;
}
#page-dashboard .filter-field input::placeholder,
#page-dashboard .mips-combo-input::placeholder {
  color: #7b8ea1 !important;
  opacity: 1 !important;
}
#page-dashboard .filter-field input:hover,
#page-dashboard .filter-field select:hover,
#page-dashboard .mips-combo-input:hover,
#page-dashboard .filter-field input:focus,
#page-dashboard .filter-field select:focus,
#page-dashboard .mips-combo-input:focus,
#page-dashboard .mips-combo-input[aria-expanded="true"] {
  border-color: #4f8fc2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 0 0 3px rgba(79, 143, 194, 0.16) !important;
}
#page-dashboard .mips-combo-menu {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 14px 32px rgba(47, 81, 111, 0.18) !important;
}
#page-dashboard .mips-combo-option,
#page-dashboard .mips-combo-meta,
#page-dashboard .mips-combo-empty {
  color: #172033 !important;
}
#page-dashboard .mips-combo-option:hover,
#page-dashboard .mips-combo-option.active {
  background: #e8f2fa !important;
  color: #172033 !important;
}
#page-dashboard .mips-combo-check {
  color: #17725f !important;
}
#page-dashboard .mips-combo-meta,
#page-dashboard .mips-combo-empty {
  background: #f8fbfd !important;
  color: #53697e !important;
}
#page-dashboard .mips-combo-clear,
#page-dashboard .mips-combo-toggle {
  color: #6b8196 !important;
}
#page-dashboard .mips-combo-clear:hover,
#page-dashboard .mips-combo-toggle:hover {
  background: #e8f2fa !important;
  color: #1f3f5b !important;
}
#page-dashboard .filter-chip {
  border-color: #d2e3ee;
  background: #eef6fb;
  color: #315a73;
}
#page-dashboard .filter-chip.muted {
  border-color: #dbe8f1;
  background: #f8fbfd;
  color: #53697e;
}
#page-dashboard .dashboard-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}
#page-dashboard .dashboard-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  column-gap: 8px;
  row-gap: 4px;
  min-height: 72px;
  padding: 12px 13px;
  border-color: #cbddea;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 5px 14px rgba(47, 81, 111, 0.07);
}
#page-dashboard .dashboard-action::before {
  grid-row: 1 / span 2;
  grid-column: 1;
  margin-top: 5px;
  width: 8px;
  height: 8px;
  background: #2f81c7;
}
#page-dashboard .dashboard-action:hover {
  border-color: #95b6cf;
  background: #f8fbfd;
  box-shadow: 0 8px 18px rgba(47, 81, 111, 0.11);
}
#page-dashboard .dashboard-action:nth-child(2)::before {
  background: #d69b2d;
}
#page-dashboard .dashboard-action:nth-child(3)::before {
  background: #3a9d87;
}
#page-dashboard .dashboard-action:nth-child(4)::before {
  background: #6d7cc7;
}
#page-dashboard .dashboard-action strong {
  grid-column: 2;
  color: #172033;
  font-size: 14px;
  line-height: 1.15;
}
#page-dashboard .dashboard-action span {
  grid-column: 2;
  display: block;
  color: #53697e;
  font-size: 12px;
  line-height: 1.3;
}
#page-dashboard .metric-grid {
  gap: 10px;
  margin-bottom: 0;
}
#page-dashboard .metric-card {
  min-height: 78px;
  padding: 12px 14px 12px 16px;
  border-left: 4px solid #4f8fc2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}
#page-dashboard .metric-card.warn { border-left-color: #d69b2d; }
#page-dashboard .metric-card.ok { border-left-color: #3a9d87; }
#page-dashboard .metric-card.danger { border-left-color: #d95b58; }
#page-dashboard .metric-card::after {
  display: none;
}
#page-dashboard .metric-card small,
#page-dashboard .daily-summary-item small,
#page-dashboard .card-header span,
#page-dashboard .dashboard-table-foot,
#page-dashboard .unit-row span,
#page-dashboard .attention-row span,
#page-dashboard .attention-notification span,
#page-dashboard .insight-card span {
  color: #53697e !important;
}
#page-dashboard .metric-card strong,
#page-dashboard .daily-summary-item strong,
#page-dashboard .unit-row strong,
#page-dashboard .attention-row strong,
#page-dashboard .attention-notification strong,
#page-dashboard .insight-card strong,
#page-dashboard .card-header h4 {
  color: #172033 !important;
}
#page-dashboard .metric-card span {
  display: block;
  margin-top: 4px;
}
#page-dashboard .card {
  color: #172033;
}
#page-dashboard .card-header {
  min-height: 0;
  margin-bottom: 10px;
  padding: 0 0 9px;
  border-bottom: 1px solid #dbe8f1;
  border-radius: 0;
  background: transparent;
}
#page-dashboard .daily-summary {
  gap: 8px;
}
#page-dashboard .daily-summary-item,
#page-dashboard .unit-row,
#page-dashboard .attention-row,
#page-dashboard .attention-notification {
  border-color: #d5e4ee;
  background: #f8fbfd;
}
#page-dashboard .attention-notification:hover {
  border-color: #95b6cf;
  background: #eef6fb;
  transform: none;
}
#page-dashboard .attention-notification.ok:hover {
  border-color: #d5e4ee;
  background: #f8fbfd;
}
#page-dashboard .dashboard-progress {
  height: 8px;
  border-color: #d5e4ee;
  background: #e6f0f7;
}
#page-dashboard .dashboard-progress > span {
  background: linear-gradient(90deg, #3a9d87, #2f81c7);
}
#page-dashboard .dashboard-ops-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 12px;
  margin-bottom: 0;
}
#page-dashboard .unit-stack,
#page-dashboard .attention-list {
  max-height: 260px;
}
#page-dashboard .insight-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0 !important;
}
#page-dashboard .insight-card {
  min-height: 78px;
  padding: 12px;
}
#page-dashboard .grid-2.dashboard-charts {
  gap: 12px;
}
#page-dashboard .dashboard-chart-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}
#page-dashboard .dashboard-chart-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2f81c7 0%, #46c7bd 52%, #6d7cc7 100%);
  opacity: 0.85;
}
#page-dashboard .dashboard-chart-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 81, 111, 0.12);
}
#page-dashboard .dashboard-chart-card .card-header {
  margin-bottom: 8px;
}
#page-dashboard .dashboard-chart-card h4 {
  color: #14233a !important;
  font-size: 14px;
}
#page-dashboard .dashboard-charts .chart-wrap {
  height: 255px !important;
  border: 1px solid #e1edf5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  padding: 8px 10px 4px;
}
#page-dashboard .btn {
  border-color: #bfd2e2 !important;
  background: #ffffff !important;
  color: #1f3f5b !important;
  box-shadow: none !important;
}
#page-dashboard .btn:hover {
  border-color: #95b6cf !important;
  background: #eef6fb !important;
  color: #1f3f5b !important;
}
#page-dashboard .btn-primary {
  border-color: #2f81c7 !important;
  background: #2f81c7 !important;
  color: #ffffff !important;
}
#page-dashboard .btn-primary:hover {
  border-color: #256fae !important;
  background: #256fae !important;
  color: #ffffff !important;
}
#page-dashboard .btn-soft,
#page-dashboard .btn-ghost {
  border-color: #b7d4ea !important;
  background: #eef6fb !important;
  color: #1f5d88 !important;
}
body.page-dashboard-active .dashboard-attention-modal {
  border-color: #cbddea !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 24px 70px rgba(47, 81, 111, 0.22) !important;
}
body.page-dashboard-active .dashboard-attention-modal .manage-modal-head,
body.page-dashboard-active .dashboard-attention-modal .drawer-foot,
body.page-dashboard-active .dashboard-attention-modal .modal-actions-row {
  border-color: #dbe8f1 !important;
  background: #f8fbfd !important;
}
body.page-dashboard-active .dashboard-attention-modal h4,
body.page-dashboard-active .attention-modal-summary b,
body.page-dashboard-active .attention-modal-item strong {
  color: #172033 !important;
}
body.page-dashboard-active .attention-modal-summary span,
body.page-dashboard-active .attention-modal-item {
  border-color: #d5e4ee !important;
  background: #f8fbfd !important;
}
body.page-dashboard-active .attention-modal-item span,
body.page-dashboard-active .attention-modal-item small,
body.page-dashboard-active .attention-modal-summary span {
  color: #53697e !important;
}
@media (max-width: 1180px) {
  #page-dashboard .dashboard-ops-grid {
    grid-template-columns: 1fr;
  }
  #page-dashboard .executive-panel,
  #page-dashboard .dashboard-action-grid,
  #page-dashboard .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-dashboard .executive-meta {
    justify-content: flex-start;
  }
  #page-dashboard .insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  #page-dashboard {
    padding: 12px;
  }
  #page-dashboard .executive-panel,
  #page-dashboard .dashboard-action-grid,
  #page-dashboard .metric-grid,
  #page-dashboard .daily-summary,
  #page-dashboard .insight-strip,
  #page-dashboard .grid-2.dashboard-charts {
    grid-template-columns: 1fr !important;
  }
  #page-dashboard .executive-panel {
    padding: 16px;
  }
  #page-dashboard .executive-panel h3 {
    font-size: 24px;
  }
  #page-dashboard .executive-hero .filter-field.span-2,
  #page-dashboard .executive-hero .filter-field.span-3,
  #page-dashboard .executive-hero .filter-field.span-4,
  #page-dashboard .executive-hero .filter-field.span-5,
  #page-dashboard .filter-field.span-2,
  #page-dashboard .filter-field.span-3,
  #page-dashboard .filter-field.span-4,
  #page-dashboard .filter-field.span-5 {
    grid-column: 1 / -1;
  }
}

/* Menu lateral refinado */
.sidebar {
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 202, 232, 0.7) rgba(255, 255, 255, 0.06);
}
.sidebar::-webkit-scrollbar {
  width: 7px;
}
.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(174, 202, 232, 0.7);
}
.sidebar-brand {
  min-height: 72px;
  padding: 14px 13px;
  margin: 14px 12px 10px;
  border-radius: 8px;
}
.sidebar-brand h2 {
  font-size: 18px;
  line-height: 1.05;
}
.sidebar-brand small {
  max-width: 158px;
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.35;
}
.sidebar-brand h2::before {
  width: 10px;
  height: 10px;
}
.sidebar-user {
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: 8px;
}
.sidebar-user .su-name {
  font-size: 15px;
  line-height: 1.2;
}
.sidebar-user .su-role {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 12px;
}
.sidebar-user label {
  margin-bottom: 7px;
  font-size: 11px;
}
.sidebar-user select {
  min-height: 38px;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.sidebar-nav {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 4px;
  padding: 7px 0 118px;
}
.nav-group {
  min-width: 0;
}
.nav-group-label {
  width: calc(100% - 24px);
  min-height: 30px;
  margin: 8px 12px 5px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.nav-group-chevron {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}
.nav-group-items {
  display: grid;
  gap: 3px;
}
.nav-group-items.hidden {
  display: none;
}
.nav-item {
  width: calc(100% - 24px);
  min-height: 40px;
  margin: 2px 12px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.15;
}
.nav-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.88;
}
.nav-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item .pending-badge {
  margin-left: auto;
}
.sidebar-footer {
  padding: 16px 12px 12px;
}
.btn-logout {
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
}
@media (max-width: 920px) {
  .sidebar {
    width: 100%;
    overflow-x: visible;
    scrollbar-gutter: auto;
  }
  .sidebar-brand {
    min-height: 0;
    margin: 0 0 8px;
    padding: 10px 12px;
  }
  .sidebar-user {
    margin: 0 0 8px;
    padding: 8px 10px;
  }
  .sidebar-nav {
    display: flex;
    gap: 6px;
    padding: 0 0 8px;
  }
  .nav-group-label {
    display: none;
  }
  .nav-group,
  .nav-group-items,
  .nav-group-items.hidden {
    display: flex !important;
    gap: 6px;
  }
  .nav-item {
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    white-space: nowrap;
  }
  .sidebar-footer {
    padding: 0;
  }
}
@media (max-width: 640px) {
  .app-layout.mobile-menu-open .sidebar-nav {
    display: grid;
    gap: 6px;
  }
  .app-layout.mobile-menu-open .nav-group,
  .app-layout.mobile-menu-open .nav-group-items,
  .app-layout.mobile-menu-open .nav-group-items.hidden {
    display: grid !important;
    gap: 6px;
  }
  .app-layout.mobile-menu-open .nav-item {
    width: 100%;
  }
}

/* Menu lateral compacto alinhado ao login */
.sidebar {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055) 25%, transparent 25%) 0 0 / 56px 56px,
    linear-gradient(180deg, #0b3d68 0%, #0f766e 52%, #09213d 100%) !important;
}
.sidebar-brand {
  min-height: 58px;
  margin: 12px 12px 8px;
  padding: 10px 11px;
  border-color: rgba(255,255,255,0.22);
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.07) 100%) !important;
  box-shadow: 0 14px 30px rgba(5, 15, 40, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}
.sidebar-brand h2 {
  font-size: 15px;
  line-height: 1.08;
  letter-spacing: 0;
}
.sidebar-brand small {
  max-width: 150px;
  margin-top: 4px;
  color: rgba(255,255,255,0.78);
  font-size: 7.5px;
  line-height: 1.3;
}
.sidebar-user {
  margin: 0 12px 8px;
  padding: 10px;
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}
.sidebar-user .su-name {
  font-size: 13px;
  line-height: 1.18;
}
.sidebar-user .su-role {
  margin-top: 3px;
  margin-bottom: 8px;
  font-size: 10.5px;
}
.sidebar-user label {
  margin-bottom: 5px;
  font-size: 10px;
}
.sidebar-user select {
  min-height: 34px;
  padding: 7px 30px 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
}
.sidebar-nav {
  gap: 2px;
  padding: 5px 0 108px;
}
.nav-group-label {
  min-height: 24px;
  margin: 7px 12px 3px;
  color: rgba(255,255,255,0.68);
  font-size: 9.5px;
  letter-spacing: 0.045em;
}
.nav-group-chevron {
  width: 16px;
  height: 16px;
  font-size: 11px;
}
.nav-group-items {
  gap: 1px;
}
.nav-item {
  width: calc(100% - 24px);
  min-height: 35px;
  margin: 1px 12px;
  padding: 7px 10px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 9px;
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.15;
}
.nav-item svg {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,0.64);
}
.nav-item:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: #ffffff;
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(135deg, #1769aa 0%, #0f766e 100%);
  border-color: rgba(255,255,255,0.34);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 103, 119, 0.28);
}
.sidebar-footer {
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, rgba(9, 33, 61, 0) 0%, rgba(9, 33, 61, 0.86) 36%, #09213d 82%);
}
.btn-logout {
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 920px) {
  .nav-item {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11.5px;
  }
}

/* =====================================================================
   Polish responsivo mobile — overrides aditivos (2026-05-27)
   Refina espaçamento, tipografia, cabeçalho/chips, calendário de
   produção e listas em telas de celular. Bloco aditivo: carregado por
   último, não altera as regras existentes acima.
   ===================================================================== */
@media (max-width: 640px) {
  /* --- Respiro geral e cartões mais modernos --- */
  .content { padding: 14px 13px 30px; }
  main h3 { font-size: 21px; line-height: 1.22; }
  main h4 { font-size: 15.5px; }
  main p { line-height: 1.45; }

  /* Cartões com um pouco mais de respiro e cantos suaves */
  .card { border-radius: 14px; }
  .card.daily-panel,
  .card.monthly-panel,
  .executive-panel,
  .metric-card,
  .ops-card { padding: 16px 15px; }

  /* --- Cabeçalho executivo: chips de meta compactos --- */
  .executive-meta { gap: 6px; }
  .executive-meta > span {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
  }
  /* O botão de ação do cabeçalho ocupa a linha toda (alvo de toque) */
  .executive-meta > button {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 40px;
  }

  /* --- Botões de ação do dashboard: toque confortável --- */
  .dashboard-action { padding: 14px 15px; border-radius: 14px; }
  .dashboard-action strong { font-size: 14px; }

  /* --- Calendário de produção: legível, sem texto cortado --- */
  #page-producao .production-calendar-grid { gap: 5px; }
  #page-producao .production-calendar-day,
  #page-producao .production-calendar-blank {
    min-height: 50px;
    padding: 6px 4px;
    border-radius: 10px;
    justify-content: flex-start;
    gap: 2px;
  }
  /* Esconde o rótulo redundante "atend." e o segundo span vazio do número.
     Mantém: número do dia + contagem + bolinhas de status. */
  #page-producao .production-calendar-day small { display: none; }
  #page-producao .production-calendar-day-number span:last-child { display: none; }
  #page-producao .production-calendar-day-number { font-size: 11px; font-weight: 700; }
  #page-producao .production-calendar-day strong { font-size: 14px; line-height: 1; }
  #page-producao .production-calendar-weekday { font-size: 9px; letter-spacing: .02em; }
  #page-producao .production-calendar-status-row { margin-top: auto; }

  /* --- Botões de ação largos viram bloco confortável --- */
  .btn { min-height: 40px; }

  /* --- Tabelas que viram cartões: respiro entre os itens --- */
  .data-card + .data-card,
  .list-card + .list-card { margin-top: 10px; }
}

/* Ajuste fino para telas bem estreitas (≤ 380px) */
@media (max-width: 380px) {
  #page-producao .production-calendar-day,
  #page-producao .production-calendar-blank { min-height: 46px; padding: 5px 3px; }
  #page-producao .production-calendar-day strong { font-size: 13px; }
  .executive-meta > span { font-size: 10.5px; padding: 3px 8px; }
}

/* =====================================================================
   Fluidez e transições suaves (2026-05-27)
   Entrada suave ao trocar de página, hover responsivo em cards/botões e
   rolagem suave. Tudo encapsulado em prefers-reduced-motion para
   respeitar quem prefere menos animação.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* (A entrada animada das páginas/cards já é tratada por appPageEnter/appCardEnter) */

  /* Transições suaves de estado em elementos interativos */
  .card,
  .dashboard-action,
  .metric-card,
  .nav-item,
  .btn,
  .collapsible-filter-card {
    transition: transform 0.15s ease, box-shadow 0.2s ease,
                background-color 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, opacity 0.2s ease;
  }

  /* Leve elevação no hover apenas em dispositivos com ponteiro fino (desktop) */
  @media (hover: hover) and (pointer: fine) {
    .dashboard-action:hover { transform: translateY(-2px); }
    .btn:active { transform: translateY(1px); }
  }

  /* Overlays surgem/desaparecem com suavidade */
  .drawer-overlay,
  .manage-modal-overlay { transition: opacity 0.2s ease; }
}

/* Rolagem com inércia em telas de toque */
@media (max-width: 860px) {
  .content { -webkit-overflow-scrolling: touch; }
}

/* =====================================================================
   Fix: modais altos (ex.: "Acessos aos paineis por perfil") rolam por
   dentro e mantêm cabeçalho e rodapé sempre visíveis. Antes o painel
   crescia além da tela (overflow: hidden, sem max-height), jogando o
   rodapé "Salvar acessos" para fora da viewport — era impossível salvar.
   ===================================================================== */
.manage-modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
}
.manage-modal > .manage-modal-head,
.manage-modal > .drawer-foot {
  flex: 0 0 auto;
}
.manage-modal > .manage-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* =====================================================================
   Modal de Metas de produção por cargo (layout)
   ===================================================================== */
.meta-form { display: flex; flex-direction: column; gap: 12px; }
.meta-form .field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.meta-form .field-row .field { flex: 1 1 150px; min-width: 0; }
.meta-form .field { display: flex; flex-direction: column; gap: 4px; }
.meta-form-actions { display: flex; gap: 8px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.meta-list { margin-top: 20px; border-top: 1px solid rgba(127,127,127,0.18); padding-top: 14px; }
.meta-list h5 { margin: 0 0 6px; font-size: 14px; }
.meta-hint { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.meta-table-wrap { overflow-x: auto; }
.meta-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.meta-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid rgba(127,127,127,0.22); white-space: nowrap; }
.meta-table td { padding: 7px 8px; border-bottom: 1px solid rgba(127,127,127,0.12); vertical-align: middle; }
.meta-table .meta-c-num { text-align: right; white-space: nowrap; }
.meta-table .meta-c-acoes { text-align: right; white-space: nowrap; }
.meta-table .meta-c-comp { white-space: nowrap; }
.meta-table tbody tr:hover { background: rgba(127,127,127,0.06); }
@media (max-width: 640px) {
  .meta-form .field-row { flex-direction: column; gap: 10px; align-items: stretch; }
  .meta-form .field-row .field { flex: 1 1 auto; }
  .meta-table { font-size: 12px; }
  .meta-table th, .meta-table td { padding: 6px 6px; }
}

/* =====================================================================
   Contraste: subtitulo/descritor dos modais de gestao (ex.: nome do CBO/
   profissional) usava cor muito clara (--muted) sobre o fundo branco do
   modal, ficando ilegivel. Escurece so esse texto direto no corpo do modal
   (nao afeta cards escuros internos nem a sidebar).
   ===================================================================== */
#manage-modal-overlay .manage-modal-body > p,
#drawer-overlay .drawer-body > p {
  color: #475569 !important;
}

/* =====================================================================
   Dashboard — refinamento de layout (sem alterar cores)
   Foco: hierarquia visual, respiração, padronização de cards e gráficos.
   ===================================================================== */

/* Mais ar entre as grandes secoes do dashboard */
#page-dashboard > div.page-head + *,
#page-dashboard .card + .card,
#page-dashboard .card + .insight-strip,
#page-dashboard .insight-strip + .card {
  margin-top: 18px;
}

/* Header do dashboard com respiracao consistente */
#page-dashboard .page-head {
  padding: 22px 24px 18px;
  margin-bottom: 6px;
}
#page-dashboard .page-head h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
#page-dashboard .page-head p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

/* Quick actions (Importar producao / Aprovar pendencias / Ver producao / Gerar relatorio) */
#page-dashboard .dashboard-action-grid {
  gap: 12px;
  margin-bottom: 16px;
}
#page-dashboard .dashboard-action {
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#page-dashboard .dashboard-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(5, 14, 24, 0.32);
}
#page-dashboard .dashboard-action strong {
  font-size: 14px;
  line-height: 1.25;
}
#page-dashboard .dashboard-action span {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.4;
}

/* Cards de KPI principais (Producao da competencia / Aprovacoes / Atendimentos / Aguardando) */
#page-dashboard .metric-grid {
  gap: 12px;
  margin-bottom: 18px;
}
#page-dashboard .metric-card {
  min-height: 92px;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
#page-dashboard .metric-card small {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#page-dashboard .metric-card strong {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
#page-dashboard .metric-card span {
  font-size: 12px;
  margin-top: 2px;
}

/* Cards principais (Unidades, Atencao, Charts, etc.) */
#page-dashboard .card {
  padding: 18px 20px;
  border-radius: 12px;
}
#page-dashboard .card-header {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#page-dashboard .card-header h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
#page-dashboard .card-header p,
#page-dashboard .card-header span {
  font-size: 12px;
  line-height: 1.4;
}

/* Resumo mensal: melhor distribuicao dos 4 contadores */
#page-dashboard .daily-summary {
  gap: 14px;
  margin-bottom: 14px;
}
#page-dashboard .daily-summary-item {
  padding: 12px 14px;
  border-radius: 10px;
}
#page-dashboard .daily-summary-item small {
  font-size: 11px;
  letter-spacing: 0.03em;
}
#page-dashboard .daily-summary-item strong {
  font-size: 22px;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

/* Cards de "Atencao da competencia" — textos longos com melhor quebra */
#page-dashboard .insight-card,
#page-dashboard .insight-strip > * {
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.45;
}
#page-dashboard .insight-strip {
  gap: 12px;
  margin-bottom: 16px;
}

/* Lista de unidades com barras de progresso: alinhamento e respiracao */
#page-dashboard .daily-panel ul,
#page-dashboard .top-list,
#page-dashboard .ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#page-dashboard .top-list-item,
#page-dashboard .ranking-item {
  padding: 8px 4px;
}

/* Gráficos: mais ar entre canvas e card, altura minima garantida */
#page-dashboard .chart-wrap {
  padding: 6px 4px 4px;
  min-height: 200px;
  position: relative;
  transition: opacity 0.25s ease;
}
#page-dashboard .chart-wrap.chart-refresh {
  animation: dashboardChartFade 0.45s ease-out;
}
@keyframes dashboardChartFade {
  from { opacity: 0.35; transform: translateY(2px); }
  to   { opacity: 1;    transform: translateY(0); }
}

/* Charts pequenos (Evolução / Composição / por estabelecimento / por profissional) */
#page-dashboard .chart-card .chart-wrap,
#page-dashboard .insight-card .chart-wrap {
  min-height: 220px;
}

/* Grafico de pizza / donut central — preservar centro respiravel */
#page-dashboard canvas#chart-dash-status,
#page-dashboard canvas#chart-dash-trend,
#page-dashboard canvas#chart-dash-estab,
#page-dashboard canvas#chart-dash-profissional {
  width: 100% !important;
  max-height: 240px;
}

/* Footer dos cards de grafico fica mais distante do canvas */
#page-dashboard .chart-card .card-footer,
#page-dashboard .insight-card .card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}

/* Responsivo: telas medias diminuem coluna sem grudar */
@media (max-width: 1100px) {
  #page-dashboard .dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #page-dashboard .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-dashboard .metric-card strong {
    font-size: 24px;
  }
}

@media (max-width: 720px) {
  #page-dashboard .dashboard-action-grid,
  #page-dashboard .metric-grid {
    grid-template-columns: 1fr;
  }
  #page-dashboard .page-head {
    padding: 18px 16px 14px;
  }
  #page-dashboard .card {
    padding: 14px 16px;
  }
}

/* =====================================================================
   Dashboard — micro-interacoes e animacoes (mantendo cores)
   Stagger fade-in dos cards, pulse sutil nos KPIs, shimmer no progress.
   Respeita prefers-reduced-motion.
   ===================================================================== */

@keyframes dashCardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dashKpiPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

@keyframes dashShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes dashBarGrow {
  from { transform: scaleX(0); transform-origin: left center; }
  to   { transform: scaleX(1); }
}

@keyframes dashNumberPop {
  0%   { transform: scale(0.9); opacity: 0.4; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes dashDotPing {
  0%   { box-shadow: 0 0 0 0 rgba(47, 129, 199, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(47, 129, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 129, 199, 0); }
}

/* Entrada escalonada dos cards principais */
#page-dashboard .card,
#page-dashboard .insight-strip > *,
#page-dashboard .dashboard-action-grid > *,
#page-dashboard .metric-grid > * {
  animation: dashCardFadeIn 0.45s ease-out both;
}
#page-dashboard .dashboard-action-grid > *:nth-child(1) { animation-delay: 0.02s; }
#page-dashboard .dashboard-action-grid > *:nth-child(2) { animation-delay: 0.06s; }
#page-dashboard .dashboard-action-grid > *:nth-child(3) { animation-delay: 0.10s; }
#page-dashboard .dashboard-action-grid > *:nth-child(4) { animation-delay: 0.14s; }
#page-dashboard .metric-grid > *:nth-child(1) { animation-delay: 0.18s; }
#page-dashboard .metric-grid > *:nth-child(2) { animation-delay: 0.22s; }
#page-dashboard .metric-grid > *:nth-child(3) { animation-delay: 0.26s; }
#page-dashboard .metric-grid > *:nth-child(4) { animation-delay: 0.30s; }
#page-dashboard .card:nth-of-type(1) { animation-delay: 0.34s; }
#page-dashboard .card:nth-of-type(2) { animation-delay: 0.40s; }
#page-dashboard .card:nth-of-type(3) { animation-delay: 0.46s; }
#page-dashboard .card:nth-of-type(4) { animation-delay: 0.52s; }
#page-dashboard .card:nth-of-type(5) { animation-delay: 0.58s; }
#page-dashboard .insight-strip > *:nth-child(1) { animation-delay: 0.42s; }
#page-dashboard .insight-strip > *:nth-child(2) { animation-delay: 0.46s; }
#page-dashboard .insight-strip > *:nth-child(3) { animation-delay: 0.50s; }
#page-dashboard .insight-strip > *:nth-child(4) { animation-delay: 0.54s; }

/* Numero do KPI principal "explode" suave quando aparece */
#page-dashboard .metric-card strong,
#page-dashboard .daily-summary-item strong {
  animation: dashNumberPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: inherit;
}

/* Hover lift mais expressivo nos KPIs */
#page-dashboard .metric-card,
#page-dashboard .daily-summary-item {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: default;
}
#page-dashboard .metric-card:hover,
#page-dashboard .daily-summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 14, 24, 0.30);
}

/* Cards principais com hover de elevacao sutil */
#page-dashboard .card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
#page-dashboard .card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(5, 14, 24, 0.28);
}

/* Dot indicador no quick action com ping suave */
.dashboard-clean .dashboard-action::before,
#page-dashboard .dashboard-action::before {
  animation: dashDotPing 2.4s ease-out infinite;
}
#page-dashboard .dashboard-action:hover::before {
  animation-duration: 1.2s;
}

/* Quick actions: hover com glow direcional */
#page-dashboard .dashboard-action {
  position: relative;
  overflow: hidden;
}
#page-dashboard .dashboard-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}
#page-dashboard .dashboard-action:hover::after {
  transform: translateX(100%);
}

/* Barras de progresso animam ao entrar */
#page-dashboard .progress-bar > span,
#page-dashboard .dashboard-progress > span,
#page-dashboard .daily-panel .progress-bar > span {
  animation: dashBarGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.55s;
}

/* Shimmer leve em barras de progresso enquanto vivem */
#page-dashboard .progress-bar,
#page-dashboard .dashboard-progress {
  position: relative;
  overflow: hidden;
}
#page-dashboard .progress-bar::after,
#page-dashboard .dashboard-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.10) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: dashShimmer 3.5s linear infinite;
  pointer-events: none;
  border-radius: inherit;
}

/* Pulse muito sutil no card de pendencias (chama atencao sem irritar) */
#page-dashboard .metric-card.metric-card-warn,
#page-dashboard .metric-card[data-status="aguardando"] {
  animation: dashCardFadeIn 0.45s ease-out both, dashKpiPulse 4s ease-in-out infinite 1.2s;
}

/* Botoes de acao no header (Filtros / Atualizar) com hover mais responsivo */
#page-dashboard .page-head button {
  transition: transform 0.15s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
#page-dashboard .page-head button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 14, 24, 0.24);
}
#page-dashboard .page-head button:active {
  transform: translateY(0);
}

/* Charts: leve zoom-in ao terminar de renderizar */
#page-dashboard .chart-wrap canvas {
  animation: dashCardFadeIn 0.6s ease-out both;
  animation-delay: 0.5s;
}
#page-dashboard .chart-wrap:hover canvas {
  filter: brightness(1.02);
  transition: filter 0.3s ease;
}

/* Acessibilidade: usuario com prefers-reduced-motion desativa tudo */
@media (prefers-reduced-motion: reduce) {
  #page-dashboard .card,
  #page-dashboard .insight-strip > *,
  #page-dashboard .dashboard-action-grid > *,
  #page-dashboard .metric-grid > *,
  #page-dashboard .metric-card strong,
  #page-dashboard .daily-summary-item strong,
  #page-dashboard .progress-bar > span,
  #page-dashboard .dashboard-progress > span,
  #page-dashboard .chart-wrap canvas {
    animation: none !important;
  }
  #page-dashboard .progress-bar::after,
  #page-dashboard .dashboard-progress::after,
  #page-dashboard .dashboard-action::before,
  #page-dashboard .metric-card.metric-card-warn,
  #page-dashboard .metric-card[data-status="aguardando"] {
    animation: none !important;
  }
  #page-dashboard .card:hover,
  #page-dashboard .metric-card:hover,
  #page-dashboard .daily-summary-item:hover {
    transform: none;
  }
}

/* =====================================================================
   Decision Modal — confirmacao de aprovacao/reprovacao estruturada
   Headline + grid de stats + motivos + hints + justificativa
   ===================================================================== */
.decision-modal {
  max-width: 580px;
  width: 100%;
}
.decision-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 6px;
}
.decision-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(47, 129, 199, 0.08);
}
.decision-headline-approve {
  background: rgba(70, 199, 189, 0.10);
  border-color: rgba(70, 199, 189, 0.40);
}
.decision-headline-reject {
  background: rgba(217, 91, 88, 0.10);
  border-color: rgba(217, 91, 88, 0.40);
}
.decision-headline-verb {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
.decision-headline strong {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.decision-headline-label {
  font-size: 13px;
  opacity: 0.85;
  flex: 1 1 auto;
  min-width: 200px;
}
.decision-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.decision-stat {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#manage-modal-overlay .decision-stat {
  background: #f5f8fc;
  border-color: #d9e3eb;
}
.decision-stat small {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}
.decision-stat strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.decision-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.decision-section > small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  opacity: 0.7;
}
.decision-motivos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.decision-motivos li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
#manage-modal-overlay .decision-motivos li {
  background: #f7f9fc;
  border-color: #e1e8ef;
}
.decision-motivo-label {
  font-size: 12.5px;
  line-height: 1.35;
  flex: 1 1 auto;
}
.decision-motivo-count {
  font-size: 13px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(47, 129, 199, 0.18);
  flex: 0 0 auto;
}
#manage-modal-overlay .decision-motivo-count {
  background: rgba(47, 129, 199, 0.14);
  color: #1f4f74;
}
.decision-hints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.decision-hints li {
  position: relative;
  padding-left: 22px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.9;
}
.decision-hints li::before {
  content: "→";
  position: absolute;
  left: 4px;
  top: 0;
  font-weight: 800;
  color: var(--primary);
}
.decision-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px dashed var(--line);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.decision-meta strong {
  font-size: 13px;
  letter-spacing: -0.01em;
}
.decision-justification-section .decision-justification {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(217, 91, 88, 0.10);
  border-left: 3px solid #d95b58;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
.decision-actions {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.decision-actions .btn {
  min-height: 40px;
  font-weight: 700;
}
.decision-actions .btn-primary,
.decision-actions .btn-danger {
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 520px) {
  .decision-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .decision-headline strong { font-size: 26px; }
  .decision-headline-label { font-size: 12px; }
}

/* =====================================================================
   Aprovacao — skeleton enquanto carrega pendentes do servidor
   ===================================================================== */
.approval-loading-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(47, 129, 199, 0.08);
  font-size: 13px;
  margin-bottom: 12px;
}
.approval-loading-banner::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2.5px solid rgba(47, 129, 199, 0.25);
  border-top-color: var(--primary);
  animation: approvalSpin 0.8s linear infinite;
  flex: 0 0 auto;
}
@keyframes approvalSpin {
  to { transform: rotate(360deg); }
}
.approval-loading-banner strong { font-weight: 800; }

/* =====================================================================
   Decision Modal — override para tema CLARO (corrige aparência escura)
   ===================================================================== */
#manage-modal-overlay .decision-modal {
  background: #ffffff;
  color: #172033;
}
#manage-modal-overlay .decision-modal .manage-modal-head {
  background: #f8fafc;
  border-bottom: 1px solid #e1e8ef;
  color: #172033;
}
#manage-modal-overlay .decision-modal .manage-modal-head h4 {
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}
#manage-modal-overlay .decision-modal-body {
  background: #ffffff;
  color: #172033;
  padding: 20px 22px 18px;
}

#manage-modal-overlay .decision-headline {
  background: #eaf3fc;
  border: 1px solid #c5dcf2;
  color: #1a3a5a;
  padding: 16px 18px;
  border-radius: 12px;
}
#manage-modal-overlay .decision-headline-approve {
  background: #e6f7f5;
  border-color: #b6e4dd;
  color: #155f56;
}
#manage-modal-overlay .decision-headline-reject {
  background: #fdecec;
  border-color: #f3c3c1;
  color: #842723;
}
#manage-modal-overlay .decision-headline-verb {
  color: inherit;
  opacity: 0.7;
  font-size: 12px;
}
#manage-modal-overlay .decision-headline strong {
  color: inherit;
  font-size: 30px;
}
#manage-modal-overlay .decision-headline-label {
  color: inherit;
  opacity: 0.85;
  font-size: 13px;
}

#manage-modal-overlay .decision-stats-grid {
  gap: 10px;
}
#manage-modal-overlay .decision-stat {
  background: #f6f9fc !important;
  border: 1px solid #dde6ee !important;
  border-radius: 10px;
  padding: 12px 14px;
}
#manage-modal-overlay .decision-stat small {
  color: #56708a;
  font-weight: 700;
}
#manage-modal-overlay .decision-stat strong {
  color: #1a3a5a;
  font-size: 22px;
}

#manage-modal-overlay .decision-section > small {
  color: #56708a;
  font-weight: 700;
}
#manage-modal-overlay .decision-motivos li {
  background: #f8fafc !important;
  border: 1px solid #e1e8ef !important;
  border-radius: 8px;
  padding: 10px 14px;
}
#manage-modal-overlay .decision-motivo-label {
  color: #172033;
}
#manage-modal-overlay .decision-motivo-count {
  background: #dbeafe !important;
  color: #1a4a72 !important;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 800;
}

#manage-modal-overlay .decision-hints li {
  color: #344b62;
  font-size: 13px;
  line-height: 1.5;
  padding-left: 24px;
}
#manage-modal-overlay .decision-hints li::before {
  color: #2f81c7;
}

#manage-modal-overlay .decision-meta {
  background: #f8fafc;
  border: 1px dashed #c8d4df;
  color: #344b62;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}
#manage-modal-overlay .decision-meta strong {
  color: #172033;
}

#manage-modal-overlay .decision-justification-section .decision-justification {
  background: #fdecec;
  border-left: 4px solid #d95b58;
  color: #842723;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
}

#manage-modal-overlay .decision-actions {
  border-top: 1px solid #e1e8ef;
  padding-top: 16px;
  margin-top: 4px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
#manage-modal-overlay .decision-actions .btn {
  background: #ffffff;
  border: 1px solid #c8d4df;
  color: #344b62;
}
#manage-modal-overlay .decision-actions .btn:hover {
  background: #f1f5f9;
  border-color: #95a8be;
}
#manage-modal-overlay .decision-actions .btn-ghost {
  background: transparent;
  border-color: transparent;
  color: #56708a;
}
#manage-modal-overlay .decision-actions .btn-ghost:hover {
  background: #f1f5f9;
  color: #172033;
}
#manage-modal-overlay .decision-actions .btn-primary {
  background: #2f81c7 !important;
  border-color: #2f81c7 !important;
  color: #ffffff !important;
  font-weight: 800;
}
#manage-modal-overlay .decision-actions .btn-primary:hover {
  background: #266bab !important;
  border-color: #266bab !important;
}
#manage-modal-overlay .decision-actions .btn-danger {
  background: #d95b58 !important;
  border-color: #d95b58 !important;
  color: #ffffff !important;
  font-weight: 800;
}
#manage-modal-overlay .decision-actions .btn-danger:hover {
  background: #b9433f !important;
  border-color: #b9433f !important;
}

/* Placeholder dos cards do dashboard enquanto o resumo do banco esta carregando.
   Em vez de mostrar numeros parciais do cache (que confundem o usuario com efeito
   "aparece 2k, dps mais um pouco, dps tudo"), mostramos um traco animado. */
.metric-grid-loading .metric-card strong {
  position: relative;
}
.metric-placeholder {
  display: inline-block;
  color: var(--muted, #94a3b8);
  font-weight: 700;
  letter-spacing: 0.12em;
  animation: metric-placeholder-pulse 1.2s ease-in-out infinite;
}
.metric-grid-loading .metric-card {
  position: relative;
  overflow: hidden;
}
.metric-grid-loading .metric-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: metric-placeholder-shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes metric-placeholder-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}
@keyframes metric-placeholder-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .metric-placeholder,
  .metric-grid-loading .metric-card::after {
    animation: none;
  }
}

/* Estiliza inputs de arquivo nativos em todo o app (SIGTAP, Profissionais, Painel RH
   etc.). Varredura UX 2026-06-01. */
input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 6px;
  background: #dbeafe;
  color: #10243a;
  font: inherit;
  font-weight: 700;
  padding: 7px 12px;
  margin-right: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
input[type="file"]::file-selector-button:hover { background: #bfdbfe; }
