:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #152238;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 248px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  color: #d9e6f8;
  background: #14233a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 8px 0 28px rgba(20, 35, 58, 0.12);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-logo {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(4, 18, 38, 0.28);
}
.sidebar-logo img { display: block; width: 30px; height: 30px; object-fit: contain; }
.sidebar-brand div, .sidebar-user div { display: flex; min-width: 0; flex-direction: column; }
.sidebar-brand strong { color: #fff; font-size: 16px; }
.sidebar-brand small { margin-top: 2px; color: #91a3bc; font-size: 11px; }

.sidebar-label {
  margin: 24px 10px 8px;
  color: #71849e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 9px;
  color: #b9c8dc;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.sidebar-nav a.active { color: #fff; background: #2456a6; box-shadow: 0 5px 14px rgba(20, 45, 84, 0.3); }
.sidebar-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #a9c6ed;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 900;
}
.sidebar-nav a.active .sidebar-icon { color: #fff; background: rgba(255, 255, 255, 0.15); }

.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 0 7px 13px; }
.sidebar-user > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2e69c7; font-size: 12px; font-weight: 800; }
.sidebar-user strong { color: #eef5ff; font-size: 12px; }
.sidebar-user small { color: #8194ae; font-size: 10px; }
.sidebar-footer form { margin: 0; }
.sidebar-footer button {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(240, 68, 56, 0.25);
  border-radius: 8px;
  color: #ffaaa3;
  background: rgba(240, 68, 56, 0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sidebar-footer button:hover { background: rgba(240, 68, 56, 0.16); }
.sidebar-admin-access {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  color: #eef5ff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.sidebar-admin-access strong { font-size: 12px; }
.sidebar-admin-access small { color: #91a5c0; font-size: 10px; }
.sidebar-admin-access:hover { background: rgba(255, 255, 255, 0.11); }

.app-page { min-height: 100vh; margin-left: 248px; }
.dashboard-main { width: min(1180px, calc(100% - 48px)); }
.sidebar-toggle, .sidebar-overlay { display: none; }

.monitor-body {
  min-height: 100vh;
  background: #f3f6fb;
}

.monitor-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 72px;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
}

.monitor-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #667085;
  font-size: 13px;
}

.monitor-actions form,
.schedule form { margin: 0; }

.dashboard-nav {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.monitor-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  box-sizing: border-box;
  padding: 8px 13px;
  border: 1px solid #cbd6e5;
  border-radius: 8px;
  color: #2456a6;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.nav-button:hover {
  border-color: #8da9d2;
  background: #edf4ff;
  transform: translateY(-1px);
}

.nav-button-primary {
  border-color: #3974cb;
  color: #fff;
  background: #2b65bb;
}

.nav-button-primary:hover { color: #fff; background: #1f519b; }

.nav-button-danger {
  width: 100%;
  border-color: #f1b8b4;
  color: #b42318;
  background: #fff3f2;
}

.monitor-nav .nav-button-danger { width: auto; }

.schedule .nav-button {
  width: 100%;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.16);
  color: #dce9fb;
  background: rgba(255, 255, 255, 0.07);
}

.schedule .nav-button:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.14); }
.schedule .nav-button-primary { color: #fff; background: #2e69c7; }
.schedule .nav-button-danger { border-color: rgba(240, 68, 56, 0.35); color: #ffb4ae; background: rgba(240, 68, 56, 0.1); }

@media (max-width: 720px) {
  .monitor-nav { justify-content: flex-start; }
  .monitor-actions { width: 100%; align-items: flex-start; }
}

@media (max-width: 860px) {
  .app-sidebar { transform: translateX(-102%); transition: transform .2s ease; }
  .app-page { margin-left: 0; padding-top: 58px; }
  .sidebar-toggle {
    position: fixed;
    top: 12px;
    left: 14px;
    z-index: 60;
    width: 40px;
    height: 38px;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 1px solid #d4ddea;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 57, 94, .12);
  }
  .sidebar-toggle span { width: 18px; height: 2px; display: block; border-radius: 2px; background: #173b70; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 35; background: rgba(12, 24, 42, .46); }
  .sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-open .sidebar-overlay { display: block; }
  .sidebar-open { overflow: hidden; }
  .dashboard-main { width: min(1180px, calc(100% - 28px)); padding-top: 24px; }
  .monitor-main { padding-top: 24px; }
  .manual-app-page { padding-top: 0; }
  .manual-topbar { padding-left: 70px; }
}

.login-body {
  min-height: 100vh;
  margin: 0;
  background: #eef3fa;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px max(48px, 8vw);
  color: #fff;
  background: linear-gradient(145deg, #173b70, #2764bd);
}

.login-brand .eyebrow { color: #bfd5f8; }
.login-brand-logo {
  display: block;
  width: 118px;
  height: auto;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(8, 28, 60, 0.24);
}
.login-brand h1 { margin: 8px 0 18px; font-size: clamp(42px, 6vw, 72px); }
.login-brand p:last-child { max-width: 460px; color: #e2ecfb; font-size: 18px; line-height: 1.6; }

.login-card {
  width: min(430px, calc(100% - 48px));
  align-self: center;
  justify-self: center;
  padding: 38px;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(27, 54, 93, 0.12);
}

.login-card h2 { margin: 4px 0 8px; color: #173b70; font-size: 28px; }
.login-card > div > p:last-child { color: #667085; }
.login-card > small { display: block; margin-top: 18px; color: #667085; text-align: center; }

.login-form { display: grid; gap: 9px; margin-top: 26px; }
.login-form label { margin-top: 8px; color: #344054; font-size: 13px; font-weight: 700; }
.login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  font: inherit;
  outline: none;
}
.login-form input:focus { border-color: #2e69c7; box-shadow: 0 0 0 3px #dbe9ff; }
.login-form button {
  margin-top: 16px;
  padding: 13px 18px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #2456a6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.login-form button:hover { background: #173b70; }
.login-error { margin-top: 18px; padding: 12px 14px; color: #b42318; background: #fee4e2; border-radius: 8px; }

.public-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.public-links a {
  padding: 10px;
  border: 1px solid #d7e0ed;
  border-radius: 8px;
  color: #2456a6;
  background: #f8faff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.public-links a:hover { border-color: #9bb6dc; background: #edf4ff; }

.manual-body { margin: 0; color: #263238; background: #f5f7fb; }
.manual-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px max(28px, calc((100vw - 1240px) / 2));
  color: #fff;
  background: #173b70;
  box-shadow: 0 4px 16px rgba(20, 42, 74, 0.2);
}
.manual-topbar div { display: flex; align-items: baseline; gap: 16px; }
.manual-topbar span { color: #bcd2f4; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.manual-topbar strong { font-size: 19px; }
.manual-topbar nav { display: flex; gap: 20px; }
.manual-topbar a { color: #e6effd; font-size: 13px; font-weight: 700; text-decoration: none; }
.manual-topbar .manual-admin-link {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.manual-topbar .manual-admin-link:hover { background: rgba(255, 255, 255, 0.16); }

.demo-body { margin: 0; min-height: 100vh; color: #172033; background: #f3f6fb; }
.demo-main { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 90px; }
.demo-hero { padding: 42px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #173b70, #2868cb); box-shadow: 0 18px 45px rgba(23, 59, 112, .2); }
.demo-kicker { color: #bcd5ff; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.demo-hero h1 { margin: 12px 0 10px; font-size: clamp(30px, 5vw, 48px); }
.demo-hero p { max-width: 670px; margin: 0; color: #d9e8ff; font-size: 17px; line-height: 1.6; }
.demo-period { display: table; margin-top: 28px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(255,255,255,.09); }
.demo-period strong { display: block; white-space: nowrap; }
.demo-card, .demo-result { margin-top: 24px; padding: 30px; border: 1px solid #e2e8f2; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(31, 51, 81, .07); }
.demo-card label { display: block; margin-bottom: 9px; color: #34445d; font-weight: 800; }
.demo-form-row { display: flex; gap: 12px; }
.demo-form-row input { flex: 1; min-width: 0; padding: 15px 16px; border: 1px solid #aebbd0; border-radius: 10px; font: inherit; font-size: 18px; text-transform: uppercase; }
.demo-form-row input:focus { outline: 3px solid rgba(43, 106, 210, .15); border-color: #2b6ad2; }
.demo-form-row button { padding: 0 24px; border: 0; border-radius: 10px; color: #fff; background: #2b6ad2; font: inherit; font-weight: 800; cursor: pointer; }
.demo-form-row button:disabled { opacity: .55; cursor: wait; }
.demo-card form > small { display: block; margin-top: 12px; color: #6c7890; }
.demo-message { margin-top: 20px; padding: 13px 15px; border-radius: 9px; color: #24569f; background: #edf4ff; }
.demo-message.success { color: #197142; background: #eaf8f0; }
.demo-message.error { color: #a52d27; background: #fff0ef; }
.demo-result-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.demo-result-head span { color: #2b6ad2; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.demo-result-head h2 { margin: 5px 0 0; }
.demo-result-head > strong { padding: 9px 12px; border-radius: 8px; color: #24569f; background: #edf4ff; }
.demo-fines { display: grid; gap: 12px; }
.demo-fines details { overflow: hidden; border: 1px solid #dde5f0; border-radius: 11px; }
.demo-fines summary { padding: 15px 17px; color: #fff; background: #285aaa; font-weight: 800; cursor: pointer; }
.demo-fines dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 10px 17px 17px; }
.demo-fines dl div { padding: 10px 8px; border-bottom: 1px solid #edf0f5; }
.demo-fines dt { color: #778399; font-size: 11px; text-transform: capitalize; }
.demo-fines dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 14px; }
.demo-empty { padding: 25px; border-radius: 12px; text-align: center; background: #edf8f2; }
.demo-empty strong { color: #197142; font-size: 20px; }
.demo-empty p { margin-bottom: 0; color: #597064; }
.demo-empty .demo-portal-message { margin-top: 16px; padding-top: 14px; border-top: 1px solid #cce5d7; font-size: 13px; }
.demo-empty.error { background: #fff0ef; }
.demo-empty.error strong { color: #a52d27; }

@media (max-width: 700px) {
  .demo-main { width: min(100% - 28px, 980px); padding-top: 24px; }
  .demo-hero, .demo-card, .demo-result { padding: 23px; }
  .demo-form-row { flex-direction: column; }
  .demo-form-row button { padding: 15px; }
  .demo-fines dl { grid-template-columns: 1fr; }
}

.manual-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 860px);
  gap: 44px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 28px 80px;
}
.manual-sidebar { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.manual-sidebar > p { margin: 0 0 12px; color: #667085; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.manual-sidebar nav { display: flex; flex-direction: column; border-left: 1px solid #d7dfeb; }
.manual-sidebar a { padding: 7px 13px; color: #526173; font-size: 12px; line-height: 1.35; text-decoration: none; }
.manual-sidebar a:hover { color: #2456a6; background: #eaf1fc; }

.manual-content {
  min-width: 0;
  padding: 44px 52px;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(31, 57, 94, 0.07);
}
.manual-content h1 { margin: 0 0 8px; color: #173b70; font-size: 34px; line-height: 1.2; }
.manual-content h2 { scroll-margin-top: 90px; margin: 44px 0 14px; padding-top: 8px; color: #173b70; font-size: 25px; border-top: 1px solid #e4eaf2; }
.manual-content h3 { margin: 26px 0 10px; color: #2456a6; font-size: 18px; }
.manual-content p, .manual-content li { font-size: 15px; line-height: 1.7; }
.manual-content blockquote { margin: 20px 0; padding: 14px 18px; color: #173b70; background: #eaf1fc; border-left: 4px solid #2e69c7; }
.manual-content blockquote p { margin: 0; }
.manual-content code { padding: 2px 5px; color: #173b70; background: #eef2f7; border-radius: 4px; font-size: 0.88em; }
.manual-content pre { max-width: 100%; padding: 18px; overflow-x: auto; color: #eaf1fc; background: #142338; border-radius: 10px; line-height: 1.55; }
.manual-content pre code { padding: 0; color: inherit; background: transparent; }
.manual-content table { width: 100%; border-collapse: collapse; }
.manual-content th, .manual-content td { padding: 10px 12px; border: 1px solid #dce4ef; text-align: left; }
.manual-content th { color: #173b70; background: #edf3fc; }

@media (max-width: 880px) {
  .manual-topbar nav { display: none; }
  .manual-layout { display: block; padding: 20px 14px 48px; }
  .manual-sidebar { display: none; }
  .manual-content { padding: 28px 22px; }
  .manual-content h1 { font-size: 28px; }
  .manual-content h2 { font-size: 22px; }
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 180px; padding: 36px 28px; }
  .login-brand h1 { font-size: 38px; }
  .login-brand p:last-child { font-size: 15px; }
  .login-card { margin: 32px auto; padding: 28px; }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.service-card,
.metrics-card {
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(31, 57, 94, 0.07);
}

.service-card {
  padding: 20px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.service-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.service-heading h2 {
  margin: 0;
  font-size: 15px;
  color: #344054;
}

.service-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #98a2b3;
  box-shadow: 0 0 0 4px #f2f4f7;
}

.service-status {
  margin: 25px 0 7px;
  font-size: 23px;
  color: #667085;
}

.service-card small {
  color: #667085;
  line-height: 1.4;
}

.service-card[data-status="online"] .service-dot,
.service-card[data-status="ativo"] .service-dot { background: #12b76a; box-shadow: 0 0 0 4px #d1fadf; }
.service-card[data-status="online"] .service-status,
.service-card[data-status="ativo"] .service-status { color: #027a48; }
.service-card[data-status="offline"] .service-dot { background: #f04438; box-shadow: 0 0 0 4px #fee4e2; }
.service-card[data-status="offline"] .service-status { color: #b42318; }
.service-card[data-status="fora_do_horario"] .service-dot { background: #f79009; box-shadow: 0 0 0 4px #fef0c7; }
.service-card[data-status="fora_do_horario"] .service-status { color: #b54708; }

.metrics-card { padding: 26px; }
.metrics-card .section-title { align-items: flex-end; }
.metrics-card .section-title h2 { margin: 2px 0 0; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.metrics-grid article {
  padding: 18px;
  background: #f8faff;
  border-radius: 12px;
}

.metrics-grid span { display: block; color: #667085; font-size: 13px; }
.metrics-grid strong { display: block; margin-top: 8px; color: #173b70; font-size: 30px; }

.monitor-error {
  margin-top: 18px;
  padding: 14px 18px;
  color: #b42318;
  background: #fee4e2;
  border-radius: 10px;
}

.query-detail { min-width: 190px; max-width: 330px; }
.query-detail details { color: #b54708; }
.query-detail summary {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 6px;
  color: #b42318;
  background: #fff1f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.query-detail details p {
  max-height: 180px;
  margin: 9px 0 0;
  padding: 10px;
  overflow: auto;
  white-space: pre-wrap;
  color: #344054;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.45;
}
.detail-success { color: #027a48; font-size: 12px; font-weight: 700; }
.detail-muted { color: #667085; font-size: 12px; }
.requeue-form { margin-top: 8px; }
.requeue-button {
  border: 1px solid #2f6bd6;
  border-radius: 8px;
  background: #eef4ff;
  color: #1849a9;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}
.requeue-button:hover { background: #dbe8ff; }
.source-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.source-integracao { color: #2456a6; background: #eaf1fc; }
.source-teste { color: #8a4b08; background: #fff3d6; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .monitor-main { padding: 28px 16px; }
  .monitor-header { align-items: flex-start; flex-direction: column; }
  .monitor-actions { align-items: flex-start; }
  .service-grid, .metrics-grid { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0; }
header { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 32px; }
h1 { margin: 4px 0 8px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.05em; }
.eyebrow { color: #3268d5; font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.subtitle { margin: 0; color: #66758d; }
.schedule { min-width: 220px; padding: 20px 24px; background: #152238; color: white; border-radius: 18px; }
.schedule span, .schedule small { display: block; color: #a9b5c8; }
.schedule strong { display: block; margin: 7px 0; font-size: 1.5rem; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.summary article, .table-card { background: white; border: 1px solid #e6ebf2; box-shadow: 0 12px 35px rgba(22, 44, 82, .06); }
.summary article { padding: 22px; border-radius: 16px; }
.summary span { display: block; color: #718096; font-size: .82rem; margin-bottom: 8px; }
.summary strong { font-size: 1.35rem; }
.table-card { border-radius: 20px; overflow: hidden; }
.section-title { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid #edf0f5; }
.section-title h2 { margin: 0; font-size: 1.15rem; }
.section-title span { color: #7a8799; font-size: .8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 20px; text-align: left; white-space: nowrap; border-bottom: 1px solid #edf0f5; }
th { color: #78869a; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
td { font-size: .88rem; }
.plate { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .06em; }
.status { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #eaf0fb; color: #365b96; font-size: .72rem; font-weight: 800; }
.status-concluida, .status-sem_multas { background: #e3f7ec; color: #18794e; }
.status-erro, .status-bloqueada { background: #fde9e7; color: #b42318; }
.status-processando { background: #fff3d6; color: #946200; }
.empty { padding: 56px; text-align: center; color: #8994a5; }

.queries-table {
  width: 100%;
  min-width: 1000px;
  table-layout: fixed;
}
.queries-table .col-plate { width: 9%; }
.queries-table .col-source { width: 9%; }
.queries-table .col-status { width: 12%; }
.queries-table .col-date { width: 15%; }
.queries-table .col-attempts { width: 6%; }
.queries-table .col-details { width: 19%; }
.queries-table th,
.queries-table td { padding: 14px 8px; }
.queries-table td { font-size: .8rem; }
.queries-table td:not(.query-detail) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.queries-table td.query-date {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.queries-table .query-detail {
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.queries-table .detail-success,
.queries-table .detail-muted { display: inline-block; line-height: 1.35; }
.vehicles-table { min-width: 1040px; }
.vehicles-table th,
.vehicles-table td { padding: 15px 16px; }
.vehicle-filter {
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid #e1e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 44, 82, .05);
}
.vehicle-filter label { display: block; margin-bottom: 8px; color: #344054; font-size: .82rem; font-weight: 800; }
.vehicle-filter > div { display: flex; gap: 9px; }
.vehicle-filter input {
  width: min(360px, 100%);
  padding: 11px 13px;
  border: 1px solid #b9c6d8;
  border-radius: 9px;
  font: inherit;
  text-transform: uppercase;
}
.vehicle-filter input:focus { outline: 3px solid #dce9ff; border-color: #2e69c7; }
.vehicle-filter button,
.vehicle-filter a {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #2456a6;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.vehicle-filter a { color: #2456a6; background: #edf4ff; }
.identifier-reveal summary {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 7px;
  color: #2456a6;
  background: #edf4ff;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.identifier-reveal summary span:nth-child(2) { display: none; }
.identifier-reveal[open] summary span:first-child { display: none; }
.identifier-reveal[open] summary span:nth-child(2) { display: inline; }
.identifier-reveal code {
  display: block;
  margin-top: 8px;
  color: #44536a;
  font-size: .72rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.vehicle-state {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}
.vehicle-state-active { color: #18794e; background: #e3f7ec; }
.vehicle-state-inactive { color: #b42318; background: #fde9e7; }
@media (max-width: 760px) {
  main { width: min(100% - 24px, 1180px); padding: 24px 0; }
  header { align-items: stretch; flex-direction: column; }
  .summary { grid-template-columns: 1fr; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .vehicle-filter > div { align-items: stretch; flex-direction: column; }
  .vehicle-filter input { width: 100%; }
  .vehicle-filter button, .vehicle-filter a { justify-content: center; }
}

.environment-badge { display: inline-flex; margin-left: auto; padding: 4px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; background: #b42318; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.environment-badge-light { margin: 8px 0 0; color: #7a271a; border-color: #fecdca; background: #fee4e2; font-size: 11px; }
