/* AutoSW / direção clara — identidade e componentes compartilhados. */
:root {
  --ink: #202b29;
  --muted: #68736f;
  --red: #c74034;
  --border: #e1e5de;
  --bg: #f4f5ef;
  --green: #326855;
  --sidebar: 258px;
}
body {
  font-family: AutoSW, system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: -0.12px;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  color: #626d68;
  padding: 29px 16px 20px;
  overflow-y: auto;
}
.brand {
  margin: 0 15px 23px;
}
.brand img {
  width: 192px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}
.brand span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #697570;
  margin-top: 17px;
}
#nav {
  gap: 3px;
}
#nav .nav-label {
  padding: 19px 14px 7px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #7b8680;
}
#nav a {
  font-size: 12px;
  padding: 11px 14px;
  min-height: 43px;
  border-radius: 7px;
  color: #55635e;
  position: relative;
  font-weight: 400;
}
#nav a:hover {
  background: #f3f5ef;
  color: #202b29;
}
#nav a.active {
  background: #202e29;
  color: white;
  box-shadow: none;
}
#nav a.active::after {
  content: "";
  width: 5px;
  height: 5px;
  background: #f28b77;
  border-radius: 50%;
  margin-left: auto;
}
#nav svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.sidebar-bottom {
  border-color: var(--border);
  font-size: 11px;
  margin: 26px 14px 0;
  padding-top: 19px;
}
.sidebar-bottom p {
  color: #7d8781;
  font-size: 10px;
}
.sidebar-bottom a,
.logout {
  color: #45574d;
  font-size: 11px;
}
.live-dot {
  background: #5e9270;
}
.topbar {
  height: 74px;
  background: #ffffffef;
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
  padding-inline: 36px;
}
.breadcrumb {
  color: #7f8a83;
}
.breadcrumb strong {
  color: #2d3c33;
  font-weight: 400;
}
.avatar {
  background: #eaf0e8;
  color: #42564a;
  border: 1px solid #dce5d9;
  border-radius: 50%;
  font-size: 11px;
  width: 34px;
  height: 34px;
}
.today {
  color: #7a877e;
  font-size: 11px;
}
.topbar-right {
  gap: 21px;
}
.command-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fafbf8;
  color: #68766c;
  font-size: 11px;
  padding: 7px 10px;
}
.command-trigger svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.command-trigger kbd {
  font: 10px system-ui;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 22px;
}
main {
  padding: 34px 36px 20px;
  max-width: 1640px;
}
.page-heading {
  margin: 0 0 28px;
  align-items: flex-end;
}
.page-heading h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 7px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #758270;
  margin-bottom: 11px;
}
.page-heading p:last-child {
  font-size: 12px;
  color: #6e7a71;
}
.button {
  min-height: 42px;
  border-radius: 7px;
  font-size: 12px;
  border-color: #dce3d8;
  padding: 11px 16px;
  box-shadow: none;
}
.button.primary {
  background: var(--red);
  border-color: var(--red);
  box-shadow: none;
}
.button.primary:hover {
  background: #ae342b;
  border-color: #ae342b;
  box-shadow: none;
}
.button.dark {
  background: #24372c;
  border-color: #24372c;
}
.button.small {
  min-height: 36px;
  font-size: 11px;
}
.button:disabled {
  cursor: default;
}
.icon-button {
  min-width: 40px;
  min-height: 40px;
  border-radius: 7px;
  color: #44574b;
}
.overview-hero {
  background: #24372e;
  border: 0;
  border-radius: 12px;
  padding: 29px 30px;
  margin-bottom: 26px;
  min-height: 152px;
}
.overview-hero::after {
  width: 290px;
  height: 290px;
  right: 175px;
  bottom: -215px;
  border: 34px solid #ffffff05;
}
.overview-hero h2 {
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1.25;
  font-weight: 400;
  max-width: 430px;
  letter-spacing: -0.8px;
  margin: 9px 0;
}
.overview-hero p {
  color: #c1d0c2;
  font-size: 11px;
  line-height: 1.7;
}
.hero-label {
  color: #d5bfa6;
  letter-spacing: 1.9px;
  font-size: 8px;
}
.hero-program {
  padding-left: 28px;
  border-color: #ffffff26;
  gap: 17px;
}
.hero-program strong {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -2px;
  color: #f6e9d6;
}
.hero-program span {
  font-size: 10px;
  line-height: 1.7;
  color: #bdcebf;
}
.toolbar {
  margin-bottom: 20px;
  gap: 12px;
}
.toolbar label {
  font-size: 10px;
  color: #6f7f72;
  gap: 5px;
}
.toolbar input,
.toolbar select {
  background: #fff;
}
.cards {
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
}
.metric:first-child {
  border-top: 1px solid var(--border);
}
.metric .label {
  font-size: 11px;
  color: #647368;
}
.metric .value {
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -1.2px;
  margin: 16px 0 7px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 10px;
  color: #77837a;
  line-height: 1.6;
}
.metric .symbol {
  color: #58705c;
  background: #f0f4ec;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 10px;
  padding: 0;
}
.metric:first-child .symbol {
  background: #fbeee7;
  color: #bd5b3b;
}
.panel {
  border-color: var(--border);
  border-radius: 10px;
  box-shadow: none;
  margin-bottom: 24px;
}
.panel-head {
  padding: 21px 23px;
  background: #fff;
  border-bottom: 1px solid #edf0e8;
  align-items: center;
}
.panel-head h2 {
  font-size: 15px;
  letter-spacing: -0.35px;
}
.panel-head p {
  font-size: 10px;
  color: #7a867d;
  margin-top: 5px;
}
.panel-body {
  padding: 23px;
}
.two-col {
  gap: 23px;
}
.quick-grid {
  gap: 10px;
}
.quick {
  border-radius: 7px;
  border-color: #e5e9df;
  background: #fafbf7;
  padding: 18px;
}
.quick:hover {
  border-color: #b7c6b2;
  background: #f2f6ed;
  box-shadow: none;
}
.quick span {
  color: #7b654d;
  background: none;
}
.quick strong {
  font-size: 12px;
}
.quick small {
  font-size: 10px;
  color: #748271;
}
.stat-row {
  padding-block: 14px;
  border-color: #edf0e7;
  font-size: 12px;
}
.stat-row strong {
  font-variant-numeric: tabular-nums;
  color: #314f3c;
}
.info-banner {
  background: #eaf0e5;
  border-color: #dce7d5;
  border-radius: 9px;
  color: #506247;
}
.info-banner p {
  color: #6c7a63;
  line-height: 1.7;
  font-size: 11px;
}
th {
  font-size: 9px;
  letter-spacing: 0.6px;
  background: #f8faf5;
  color: #768472;
  border-bottom: 1px solid #e8ede2;
  padding: 14px 22px;
}
td {
  font-size: 12px;
  padding: 17px 22px;
  border-color: #edf0e9;
}
tbody tr:hover {
  background: #fafcf7;
}
.badge {
  font-size: 10px;
  padding: 5px 9px;
  font-weight: 400;
}
.badge.green {
  background: #edf4ea;
  color: #477040;
}
.badge.amber {
  background: #fbf3e3;
  color: #8a6b25;
}
.badge.red {
  background: #fbede8;
  color: #a8513b;
}
input,
select,
textarea {
  min-height: 45px;
  border-color: #dbe2d5;
  border-radius: 7px;
  font-size: 13px;
  background: #fff;
  color: #283a2c;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #b7cbb055;
  border-color: #738f69;
}
label {
  font-size: 11px;
  color: #5c6e57;
}
input::placeholder,
textarea::placeholder {
  color: #87927f;
}
.form-section {
  border-color: #e0e7d8;
}
.form-section > h3 {
  font-size: 14px;
}
.form-intro {
  background: #f7f5ed;
  border-color: #e7e2ce;
  border-radius: 8px;
}
.form-intro-icon {
  color: #9a7b45;
  background: #efe9d5;
  border-radius: 7px;
}
.form-footer {
  border-top-color: #e7ebdf;
}
.text-button {
  color: #486f43;
  font-weight: 700;
}
.notice {
  border-radius: 8px;
  font-size: 12px;
}
.empty {
  padding: 44px 24px;
  color: #77846e;
  font-size: 12px;
}
.empty strong {
  color: #4e6247;
  font-size: 14px;
  margin-bottom: 7px;
}
.main-footer {
  border-color: #e0e5d8;
  font-size: 9px;
  color: #7e8975;
}
dialog {
  border: 1px solid #e1e7d9;
  border-radius: 13px;
  box-shadow: 0 24px 90px #14251626;
}
dialog::backdrop {
  background: #12261b66;
  backdrop-filter: blur(3px);
}
.modal-head {
  border-color: #e5ebdd;
}
.modal-head h2 {
  font-size: 19px;
}
#command-menu {
  width: min(540px, calc(100% - 32px));
  padding: 24px;
}
#command-menu nav {
  margin-block: 14px;
}
#command-menu nav a {
  color: #3e573a;
  min-height: 45px;
  padding: 10px;
  border-radius: 6px;
}
#command-menu nav a:hover {
  background: #eef3e7;
}
#command-menu nav a span {
  margin-left: auto;
  color: #8d9b83;
}
.command-search {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}
.command-search input {
  width: 100%;
}
.menu-open {
  overflow: hidden;
}
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100dvh;
  background: #f6f7f1;
  padding: 0;
  align-items: center;
  gap: 0;
}
.login-story {
  background: #24372e;
  color: #f7f4ea;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 90px clamp(30px, 6vw, 100px);
}
.login-story::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 70px solid #ffffff04;
  border-radius: 50%;
  right: -220px;
  bottom: -220px;
  pointer-events: none;
}
.login-story-kicker {
  font-size: 9px;
  letter-spacing: 2.4px;
  color: #c2bb9d;
}
.login-story h2 {
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -2px;
  margin: 29px 0 24px;
}
.login-story p {
  font-size: 12px;
  line-height: 1.9;
  color: #b6cbb8;
}
.login-story-footer {
  position: absolute;
  bottom: 48px;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #c1c8ae;
}
.login-story-footer span {
  display: block;
  margin-top: 10px;
  letter-spacing: 0;
  color: #92ad97;
  font-size: 10px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  margin: 50px auto;
  background: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 32px;
}
.login-card > img {
  width: 225px;
  height: auto;
  margin-bottom: 37px;
}
.login-card h1 {
  font-size: 31px;
  letter-spacing: -1px;
}
.login-card .eyebrow {
  color: #7b8c70;
}
.login-card > p {
  font-size: 12px;
}
.login-card form {
  gap: 18px;
  margin-top: 31px;
}
.login-card label {
  font-size: 12px;
  gap: 7px;
}
.login-card input {
  min-height: 48px;
}
.login-card .button {
  min-height: 48px;
}
.password-toggle {
  justify-self: end;
  margin-top: -10px;
  font-size: 11px;
}
.login-card > a {
  font-size: 11px;
  color: #748167;
}
#message {
  min-height: 18px;
  color: #a34d37;
}
@media (min-width: 1600px) {
  :root {
    --sidebar: 274px;
  }
  main {
    padding-inline: 46px;
  }
}
@media (max-height: 820px) and (min-width: 901px) {
  .sidebar {
    padding-top: 19px;
  }
  .brand {
    margin-bottom: 12px;
  }
  .brand span {
    margin-top: 8px;
  }
  #nav .nav-label {
    padding-top: 12px;
  }
  #nav a {
    min-height: 39px;
    padding-block: 9px;
  }
  .sidebar-bottom {
    margin-top: 20px;
  }
  .sidebar-bottom p {
    display: none;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 232px;
  }
  .brand {
    margin-inline: 9px;
  }
  .brand img {
    width: 182px;
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .topbar-right {
    gap: 12px;
  }
  .command-trigger kbd {
    display: none;
  }
  .overview-hero {
    padding: 25px;
  }
  .hero-program {
    padding-left: 20px;
  }
  .hero-program strong {
    font-size: 39px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 258px;
  }
  .sidebar {
    box-shadow: 12px 0 40px #18331c15;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 66px;
  }
  .sidebar-bottom {
    margin-top: 25px;
  }
  .brand img {
    width: 192px;
  }
  .hero-program {
    display: flex;
  }
  .login-story {
    padding-inline: 35px;
  }
  .login-story h2 {
    font-size: 44px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 25px 16px 18px;
  }
  .topbar {
    padding-inline: 16px;
    gap: 12px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .breadcrumb span {
    margin-inline: 8px;
  }
  .topbar-right {
    gap: 9px;
  }
  .command-trigger {
    min-height: 38px;
    padding: 9px;
  }
  .command-trigger > span {
    display: none;
  }
  .page-heading {
    gap: 16px;
    align-items: stretch;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p:last-child {
    font-size: 12px;
    line-height: 1.7;
  }
  .page-heading > .button {
    width: 100%;
    min-height: 45px;
  }
  .overview-hero {
    padding: 24px;
    min-height: unset;
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .overview-hero h2 {
    font-size: 25px;
  }
  .overview-hero p {
    font-size: 11px;
  }
  .hero-program {
    padding: 17px 0 0;
    border-left: 0;
    border-top: 1px solid #ffffff26;
    width: 100%;
    gap: 15px;
    align-items: center;
  }
  .hero-program strong {
    font-size: 32px;
  }
  .hero-program span {
    max-width: none;
    font-size: 10px;
  }
  .cards {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 16px 14px;
  }
  .metric .label {
    font-size: 10px;
    align-items: flex-start;
    gap: 5px;
  }
  .metric .symbol {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
  .metric .value {
    font-size: 25px;
    margin-block: 15px 7px;
    overflow-wrap: anywhere;
  }
  .metric small {
    font-size: 9px;
  }
  .toolbar {
    gap: 9px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar label,
  .toolbar input,
  .toolbar select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .toolbar > button,
  .toolbar > .button {
    grid-column: 1/-1;
  }
  .panel-head {
    padding: 18px;
    flex-wrap: wrap;
  }
  .panel-body {
    padding: 18px;
  }
  .panel-head p {
    line-height: 1.6;
  }
  .two-col {
    gap: 0;
  }
  .quick {
    padding: 15px;
  }
  .quick-grid {
    gap: 9px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .button.small {
    min-height: 40px;
  }
  .main-footer {
    font-size: 8px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .login-page {
    display: block;
    padding: 30px 0;
    background: #f6f7f1;
  }
  .login-story {
    display: none;
  }
  .login-card {
    margin: 0 auto;
    padding: 32px 26px;
  }
  .login-card > img {
    width: 222px;
    margin-bottom: 33px;
  }
  .login-card h1 {
    font-size: 29px;
  }
  .form-footer .button {
    min-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.ocr-steps {
  display: flex;
  gap: 8px;
  margin: 6px 0 17px;
  font-size: 10px;
  color: #76856b;
}
.ocr-steps span {
  padding: 7px 11px;
  border: 1px solid #e3e8dc;
  border-radius: 20px;
}
.ocr-steps .active {
  background: #edf3e6;
  color: #456c38;
  border-color: #d3e1c4;
}
#plate-source {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 330px;
  margin: 15px auto;
  background: #1d3023;
  border-radius: 8px;
  touch-action: none;
  cursor: crosshair;
}
.ocr-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ocr-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 10px;
}
.ocr-controls input[type="range"] {
  min-height: 30px;
  width: 130px;
  padding: 0;
}
.ocr-preview {
  background: #f2f4ee;
  padding: 13px 16px;
  border: 1px solid #e3e7da;
  border-radius: 8px;
  margin: 17px 0;
}
.ocr-preview > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #7a896d;
  margin-bottom: 10px;
}
#crop-canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 150px;
  background: #fff;
  margin: auto;
}
#read-plate {
  min-width: 185px;
}
#ocr-status {
  min-height: 36px;
  line-height: 1.8;
  margin: 15px 0;
}
#recognized-plate {
  font-size: 22px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 7px;
}
#plate-options {
  margin-bottom: 14px;
}
.ocr-controls .button {
  min-height: 40px;
}
@media (max-width: 600px) {
  .ocr-steps {
    font-size: 9px;
    gap: 5px;
  }
  .ocr-steps span {
    padding: 6px 8px;
  }
  #plate-source {
    max-height: 260px;
  }
  .ocr-controls label {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  #read-plate,
  #confirm-plate {
    width: 100%;
  }
}
.opportunity-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 21px 24px;
  margin: 0 0 24px;
  background: #eeefe4;
  border: 1px solid #dfe3cf;
  border-radius: 9px;
}
.opportunity-strip > div .eyebrow {
  display: block;
  margin: 0 0 5px;
  color: #526843;
  font-size: 9px;
}
.opportunity-strip > div > small {
  font-size: 10px;
  color: #87916f;
}
.opportunity-strip > a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #657b50;
  border-left: 1px solid #d9deca;
  padding-left: 20px;
}
.opportunity-strip > a:hover {
  color: #a64a31;
}
.opportunity-strip > a > strong {
  font-size: 28px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.opportunity-strip > a > span {
  font-size: 10px;
  line-height: 1.7;
}
.opportunity-strip > a > b {
  margin-left: auto;
  font-size: 15px;
  font-weight: 400;
}
@media (max-width: 1150px) {
  .opportunity-strip {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .opportunity-strip > a:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 600px) {
  .opportunity-strip {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 0;
  }
  .opportunity-strip > div {
    margin-bottom: 8px;
  }
  .opportunity-strip > a,
  .opportunity-strip > a:nth-child(3) {
    border-left: 0;
    padding: 13px 0;
    border-bottom: 1px solid #d9deca;
  }
  .opportunity-strip > a:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .opportunity-strip > a > strong {
    font-size: 25px;
    width: 36px;
  }
  .opportunity-strip > a > span br {
    display: none;
  }
  .opportunity-strip > a > span {
    font-size: 11px;
  }
}
.plate-reader {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--paper, #f4f6ee);
}
.plate-reader p {
  margin: 0;
}
.plate-reader[aria-busy="true"] {
  border-inline-start: 4px solid #c54335;
}
.plate-reader[aria-busy="true"] p::before {
  content: "";
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.5rem;
  border: 2px solid #bac5b9;
  border-top-color: #b9362c;
  border-radius: 50%;
  animation: plate-spin 1s linear infinite;
}
.plate-reader .actions:empty {
  display: none;
}
.plate-reader .actions:not(:empty) {
  margin-top: 0.7rem;
}
.vehicle-details:empty {
  display: none;
}
.vehicle-details details {
  padding: 1rem;
  border: 1px solid #d5ded0;
  border-radius: 10px;
}
.vehicle-details summary {
  cursor: pointer;
  font-weight: 700;
}
.vehicle-details dl {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}
.vehicle-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@keyframes plate-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .plate-reader[aria-busy="true"] p::before {
    animation: none;
  }
}
