:root {
  --navy: #18243b;
  --navy2: #253653;
  --gold: #e7ad32;
  --bg: #f4f6fa;
  --line: #e2e7ef;
  --text: #172033;
  --muted: #667085;
  --green: #16845b;
}
.preview-app {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 20%, #314568 0, #18243b 38%, #101827 100%);
}
.login-screen:before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.025) 50%, transparent 52%);
  background-size: 32px 32px;
}
.login-card {
  position: relative;
  width: min(390px, calc(100% - 48px));
  background: #fff;
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 24px 70px #080d1780;
}
.login-logo {
  width: 145px;
  height: 55px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}
.login-card h1 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 27px;
}
.login-card > p {
  text-align: center;
  color: var(--muted);
  margin: 0 0 26px;
}
.login-card label,
.server-grid label,
.dialog-head ~ label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 700;
}
.login-card input,
.server-grid input,
.server-grid select,
dialog input,
dialog select,
.filter-row input,
.filter-row select {
  padding: 12px 13px;
  border: 1px solid #ced5df;
  border-radius: 9px;
  font: inherit;
  background: #fff;
}
.login-card button {
  width: 100%;
  margin-top: 12px;
}
.login-error {
  color: #c93636 !important;
  min-height: 18px;
  margin: 8px 0 0 !important;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: #fff;
  padding: 25px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.side-logo {
  width: 145px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  margin: 0 auto 35px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #c8d0dd;
  text-align: left;
  padding: 13px 14px;
  border-radius: 9px;
  font: 600 14px inherit;
  cursor: pointer;
}
.nav-item:hover,
.nav-item.active {
  background: var(--navy2);
  color: #fff;
}
.nav-item.active {
  box-shadow: inset 3px 0 var(--gold);
}
.side-user {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #ffffff20;
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  gap: 10px;
  align-items: center;
}
.side-user small {
  display: block;
  color: #aeb9c9;
  margin-top: 3px;
}
.side-user button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #222;
  font-weight: 800;
}
.workspace {
  min-width: 0;
  padding: 0 28px 40px;
}
.workspace-header {
  height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.workspace-header h1 {
  margin: 2px 0 0;
  font-size: 25px;
}
.eyebrow {
  margin: 0;
  color: #8b95a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
.session-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
}
.online-dot {
  width: 8px;
  height: 8px;
  background: #25b978;
  display: inline-block;
  border-radius: 50%;
  margin-right: 7px;
}
.view {
  display: none;
}
.active-view {
  display: block;
}
.welcome-strip {
  background: linear-gradient(110deg, var(--navy), #2e466d);
  color: #fff;
  border-radius: 13px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.welcome-strip p {
  margin: 5px 0 0;
  color: #ccd5e3;
}
.role-badge {
  background: #ffffff1c;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stats-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.stats-grid span,
.stats-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stats-grid strong {
  display: block;
  font-size: 22px;
  margin: 8px 0 5px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(330px, 0.75fr);
  gap: 18px;
}
.panel {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 13px !important;
  box-shadow: 0 4px 18px #15213b0a !important;
  padding: 20px !important;
}
.preview-card {
  overflow: hidden;
}
.page-heading {
  margin-bottom: 18px;
}
.page-heading h2 {
  font-size: 24px;
  margin: 0 0 5px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  color: #718096;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
}
.status-pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  background: #e5f7ef;
  color: #167653;
}
.status-pill.blocked {
  background: #fdecec;
  color: #b72d2d;
}
.table-action {
  border: 0;
  background: #edf1f6;
  color: #35445d;
  border-radius: 7px;
  padding: 6px 9px;
  margin-right: 4px;
  cursor: pointer;
}
.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.filter-row input {
  flex: 1;
}
.server-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.architecture ul {
  padding: 0;
  list-style: none;
}
.architecture li {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.security-note {
  margin-top: 18px;
  padding: 15px;
  background: #eff6ff;
  border-left: 4px solid #4e78b5;
  border-radius: 6px;
}
.security-note p {
  color: #52627a;
  margin-bottom: 0;
}
.primary {
  background: var(--gold) !important;
  color: #172033 !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 11px 16px !important;
  font-weight: 800 !important;
  cursor: pointer;
}
.secondary,
.ghost {
  border-radius: 8px !important;
  padding: 10px 14px !important;
}
.batch-table-wrap {
  max-height: 285px;
}
.preview-sheet {
  transform-origin: top left;
}
dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 25px 70px #0005;
  width: 430px;
}
dialog form {
  padding: 22px;
}
.dialog-head,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head button {
  border: 0;
  background: none;
  font-size: 24px;
}
.dialog-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
@media (max-width: 1050px) {
  .content-grid,
  .server-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-shell {
    grid-template-columns: 82px 1fr;
  }
  .sidebar span,
  .side-user div:nth-child(2) {
    display: none;
  }
  .side-logo {
    width: 50px;
  }
  .side-user {
    grid-template-columns: 38px 28px;
  }
}
@media (max-width: 700px) {
  .workspace {
    padding: 0 12px 25px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .content-grid {
    display: block;
  }
  .preview-card {
    margin-top: 15px;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    padding: 8px;
  }
  .side-logo,
  .side-user {
    display: none;
  }
  .sidebar nav {
    display: flex;
  }
  .workspace-header {
    height: 70px;
  }
}
.sidebar {
  padding-top: 16px;
}
.side-logo {
  display: block;
  width: 185px;
  height: 59px;
  max-width: 100%;
  box-sizing: border-box;
  object-fit: contain;
  padding: 5px 7px;
  margin: 0 auto 22px;
  border-radius: 7px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.refresh-system-btn {
  border: 1px solid #d7dee8;
  background: #fff;
  color: #253653;
  border-radius: 9px;
  padding: 9px 13px;
  font:
    700 12px Inter,
    Segoe UI,
    Arial,
    sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 7px #15213b0a;
}
.refresh-system-btn:hover {
  background: #f8fafc;
  border-color: #b9c5d5;
}
.refresh-system-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}
.tablet-status-chip {
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.tablet-status-chip .tablet-dot.offline {
  background: #d84a4a;
}
.tablet-status-chip .tablet-dot.checking {
  background: #e7ad32;
}
.tablet-status-chip .tablet-dot.unavailable {
  background: #8b95a5;
}
.transport-print-dialog {
  width: min(900px, calc(100vw - 30px));
  max-height: 94vh;
  padding: 24px;
  box-sizing: border-box;
}
.transport-print-document {
  color: #172033;
  padding: 16px;
}
.transport-print-head {
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 3px solid var(--navy);
  padding-bottom: 14px;
}
.transport-print-head img {
  width: 165px;
  height: 54px;
  object-fit: contain;
}
.transport-print-head h1 {
  margin: 0 0 6px;
  font-size: 23px;
}
.transport-print-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 20px 0;
}
.transport-print-document table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.transport-print-document th,
.transport-print-document td {
  border: 1px solid #bdc7d5;
  padding: 7px;
  text-align: left;
}
.transport-print-document th {
  background: #edf1f6;
}
.transport-print-document th:first-child,
.transport-print-document td:first-child {
  width: 58px;
  text-align: center;
}
.transport-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 65px;
  text-align: center;
}
.transport-signatures span {
  display: block;
  border-top: 1px solid #222;
  margin-bottom: 7px;
}
.transport-signatures strong,
.transport-signatures small {
  display: block;
}
.transport-signatures small {
  color: var(--muted);
}
@media (max-width: 700px) {
  .transport-print-info {
    grid-template-columns: 1fr;
  }
}
@media print {
  body.printing-transport {
    background: #fff !important;
  }
  body.printing-transport > * {
    display: none !important;
  }
  body.printing-transport > #transportPrintDialog {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .printing-transport .transport-print-actions {
    display: none !important;
  }
  .printing-transport .transport-print-document {
    box-sizing: border-box;
    width: 190mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: 9.5px !important;
  }
  .printing-transport .transport-print-head img {
    width: 135px !important;
    height: 42px !important;
  }
  .printing-transport .transport-print-head h1 {
    font-size: 17px !important;
  }
  .printing-transport .transport-print-info {
    margin: 10px 0 !important;
    gap: 4px 20px !important;
  }
  .printing-transport .transport-print-document table {
    margin-top: 8px !important;
  }
  .printing-transport .transport-print-document th,
  .printing-transport .transport-print-document td {
    padding: 3px 5px !important;
  }
  .printing-transport .transport-signatures {
    margin-top: 35px !important;
  }
}
@media (max-width: 1050px) {
  .side-logo {
    width: 50px;
    height: 48px;
    padding: 4px;
    margin-bottom: 22px;
  }
}
@media (max-width: 700px) {
  .side-logo {
    display: none;
  }
}
.term-asset-checklist {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
  border: 1px solid #ced5df;
  border-radius: 9px;
  background: #fff;
  padding: 9px;
  margin: 7px 0;
}
.term-asset-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  margin: 0 !important;
  padding: 9px;
  border-radius: 7px;
  background: #f7f9fc;
  font-weight: 500 !important;
  cursor: pointer;
}
.term-asset-option:hover {
  background: #edf2f8;
}
.term-asset-option input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  padding: 0;
}
.term-asset-option strong,
.term-asset-option small {
  display: block;
}
.term-asset-option small {
  color: var(--muted);
  margin-top: 3px;
}
#view-emissao .stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.term-preview-dialog {
  width: min(820px, calc(100vw - 40px));
  max-height: 92vh;
  padding: 24px;
  box-sizing: border-box;
}
.term-preview-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.term-preview-head h2 {
  margin: 3px 0 0;
}
.term-document {
  padding: 24px 8px;
  color: #172033;
  line-height: 1.6;
}
.term-document-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.term-document-title img {
  width: 180px;
  height: 58px;
  object-fit: contain;
}
.term-document-title div {
  text-align: right;
}
.term-document-title strong,
.term-document-title span {
  display: block;
}
.term-document-title span {
  font-size: 12px;
  color: var(--muted);
}
.term-document table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
}
.term-document th,
.term-document td {
  border: 1px solid #cfd6df;
  padding: 10px;
  text-align: left;
}
.term-document th {
  background: #f1f4f8;
}
.term-notes {
  background: #f6f7f9;
  padding: 12px;
  margin: 18px 0;
}
.term-notes p {
  margin: 4px 0;
}
.term-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 70px;
  text-align: center;
}
.term-signatures span {
  display: block;
  border-top: 1px solid #333;
  margin-bottom: 8px;
}
.term-signatures strong,
.term-signatures small {
  display: block;
}
.term-signatures small {
  color: var(--muted);
}
.term-document h1 {
  text-align: center;
  font-size: 20px;
  margin: 8px 0 22px;
}
.term-document h2 {
  font-size: 16px;
  margin: 24px 0 10px;
  border-bottom: 1px solid #d9dee6;
  padding-bottom: 5px;
}
.term-person {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #cfd6df;
}
.term-person div {
  padding: 9px 11px;
  border-bottom: 1px solid #e2e6ec;
}
.term-person div:nth-child(odd) {
  border-right: 1px solid #e2e6ec;
}
.term-document ul {
  margin: 8px 0 20px;
  padding-left: 23px;
}
.term-document li {
  margin: 5px 0;
}
.term-qr-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}
.term-qr-placeholder {
  width: 58px;
  height: 58px;
  border: 2px dashed #29364a;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.1;
}
.term-qr-placeholder small {
  font-size: 7px;
}
.term-place-date {
  margin-top: 32px;
}
.electronic-signature-image {
  display: block;
  max-width: 210px;
  max-height: 78px;
  object-fit: contain;
  margin: 0 auto -1px;
}
.electronic-signature-meta {
  display: block !important;
  font-size: 9px !important;
  color: #52615d !important;
  margin-top: 3px;
}
.issuer-registration {
  align-self: end;
  border-top: 1px solid #333;
  padding-top: 8px;
}
.issuer-registration small {
  margin-top: 3px;
}
.return-term-dialog {
  width: min(900px, calc(100vw - 30px));
}
.return-term-dialog form {
  margin: 0;
}
.return-term-document {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: #fff;
}
.return-term-document .return-declaration {
  font-size: 14px;
  text-align: justify;
}
.return-term-document .return-reference {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: -14px;
}
.return-term-document .return-condition {
  min-height: 42px;
}
@page {
  size: A4 portrait;
  margin: 10mm;
}
@media print {
  html,
  body {
    width: 210mm;
    height: 297mm;
    background: #fff !important;
  }
  .term-document {
    box-sizing: border-box;
    width: 190mm !important;
    max-width: 190mm !important;
    padding: 0 !important;
    margin: 0 auto !important;
    font-size: 10.5px !important;
    line-height: 1.28 !important;
  }
  .term-document-title {
    margin-bottom: 8px !important;
  }
  .term-document-title img {
    width: 145px !important;
    height: 44px !important;
  }
  .term-document h1 {
    font-size: 16px !important;
    margin: 4px 0 10px !important;
  }
  .term-document h2 {
    font-size: 12px !important;
    margin: 10px 0 5px !important;
    padding-bottom: 2px !important;
  }
  .term-document p {
    margin: 5px 0 !important;
  }
  .term-person div {
    padding: 5px 7px !important;
  }
  .term-document table {
    margin: 8px 0 !important;
  }
  .term-document th,
  .term-document td {
    padding: 5px 7px !important;
  }
  .term-qr-line {
    margin: 7px 0 !important;
  }
  .term-qr-placeholder {
    width: 42px !important;
    height: 42px !important;
  }
  .term-document ul {
    margin: 4px 0 8px !important;
    padding-left: 18px !important;
  }
  .term-document li {
    margin: 2px 0 !important;
  }
  .term-place-date {
    margin-top: 10px !important;
  }
  .term-signatures {
    margin-top: 28px !important;
    gap: 40px !important;
  }
  .electronic-signature-image {
    max-width: 180px !important;
    max-height: 58px !important;
  }
  .electronic-signature-meta {
    font-size: 7.5px !important;
  }
  body.printing-term {
    background: #fff;
  }
  .printing-term > * {
    display: none !important;
  }
  .printing-term > #termPreviewDialog {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .printing-term .term-preview-head,
  .printing-term .term-preview-actions {
    display: none !important;
  }
}

/* Transporte 1.3.7 — interface baseada no protótipo aprovado */
.transport-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}
.transport-page-heading h2 {
  font-size: 28px;
  margin: 6px 0;
}
.transport-page-heading p {
  margin: 0;
  color: var(--muted);
}
.transport-breadcrumb {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8390a5;
}
.transport-breadcrumb span {
  color: var(--gold);
  padding: 0 5px;
}
.transport-heading-actions {
  display: flex;
  gap: 9px;
}
.transport-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 18px;
}
.transport-stats article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 16px #17203308;
}
.transport-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.transport-stat-icon.blue {
  color: #2559d6;
  background: #eaf0ff;
}
.transport-stat-icon.green {
  color: #138460;
  background: #e7f7f0;
}
.transport-stat-icon.amber {
  color: #aa6a08;
  background: #fff3dc;
}
.transport-stat-icon.purple {
  color: #7351c9;
  background: #f0ebff;
}
.transport-stats small {
  display: block;
  color: #8b95a7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.transport-stats strong {
  display: block;
  font-size: 22px;
  margin: 3px 0;
}
.transport-stats p {
  margin: 0;
  color: #8792a5;
  font-size: 10px;
}
.transport-stats p:first-letter {
  color: #16845b;
}
.transport-workspace {
  display: grid;
  grid-template-columns: 335px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px #1720330b;
  min-height: 630px;
  overflow: hidden;
}
.transport-route-list-panel {
  border-right: 1px solid var(--line);
  padding: 19px 15px;
  background: #fbfcfe;
}
.transport-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px 13px;
}
.transport-panel-title h3 {
  font-size: 15px;
  margin: 0 0 3px;
}
.transport-panel-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.transport-panel-title button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  color: #7b8699;
  width: 32px;
  height: 30px;
  cursor: pointer;
}
.transport-search {
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 11px;
  color: #a3acbc;
  margin-bottom: 13px;
  background: #fff;
}
.transport-search input {
  border: 0 !important;
  outline: 0;
  width: 100%;
  font-size: 11px;
  padding: 0 !important;
}
.transport-route-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 535px;
  overflow: auto;
  padding: 2px;
}
.transport-route-card {
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  display: flex;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.transport-route-card > i {
  width: 4px;
  flex: none;
}
.transport-route-card.selected {
  border-color: #9cb7f7;
  box-shadow: 0 0 0 2px #e4ebfd;
  background: #fbfcff;
}
.transport-route-card-content {
  padding: 13px 12px;
  width: 100%;
  box-sizing: border-box;
}
.transport-route-top,
.transport-route-meta,
.transport-route-person {
  display: flex;
  align-items: center;
}
.transport-route-top {
  justify-content: space-between;
  gap: 8px;
}
.transport-route-top b {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transport-route-top em {
  font-style: normal;
  font-size: 8px;
  background: #edf2ff;
  color: #345bbd;
  padding: 3px 5px;
  border-radius: 4px;
  font-weight: 800;
}
.transport-route-meta {
  gap: 15px;
  color: #8791a4;
  font-size: 9px;
  margin: 7px 0 11px;
}
.transport-route-person {
  border-top: 1px solid #edf0f5;
  padding-top: 9px;
  font-size: 9px;
  gap: 7px;
}
.transport-driver-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #edf1f8;
  color: #60708e;
  border-radius: 50%;
  font-weight: 800;
}
.transport-route-person > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.transport-route-person small {
  color: #8c96a8;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transport-occupancy {
  margin-left: auto;
  text-align: right;
  font-weight: 800;
  display: flex;
  flex-direction: column;
}
.transport-occupancy small {
  font-weight: 400;
}
.transport-list-empty {
  min-height: 120px;
  border: 1px dashed #d7dde8;
  border-radius: 9px;
  color: #8b95a8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  padding: 18px;
}
.transport-list-empty b {
  color: #526078;
}
.transport-detail-panel {
  min-width: 0;
}
.transport-empty {
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8994a8;
  text-align: center;
}
.transport-empty > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #eff3fb;
  color: #5670ad;
  border-radius: 15px;
  font-size: 25px;
}
.transport-empty h3 {
  color: #4e5a70;
  margin: 14px 0 5px;
}
.transport-empty p {
  margin: 0;
  font-size: 11px;
}
.transport-detail-head {
  padding: 22px 25px 18px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.transport-route-symbol {
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.transport-route-code {
  font-size: 9px;
  color: #5774bd;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.transport-detail-head h3 {
  font-size: 18px;
  margin: 4px 0;
}
.transport-detail-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.transport-tabs {
  border-bottom: 1px solid var(--line);
  padding: 0 25px;
  display: flex;
  gap: 24px;
  height: 42px;
}
.transport-tabs button {
  border: 0;
  background: transparent;
  color: #8993a6;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  cursor: pointer;
}
.transport-tabs button.active-tab {
  color: #2559d6;
}
.transport-tabs button.active-tab:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #2559d6;
}
.transport-tabs span {
  background: #eef2f8;
  padding: 2px 5px;
  border-radius: 8px;
  font-size: 8px;
}
.transport-overview {
  padding: 20px 25px;
}
.transport-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.transport-info-cards article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.transport-info-cards article > span {
  width: 36px;
  height: 36px;
  background: #f0f4ff;
  color: #4265bf;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}
.transport-info-cards div {
  min-width: 0;
}
.transport-info-cards small {
  display: block;
  font-size: 7px;
  color: #8d97a9;
  font-weight: 800;
}
.transport-info-cards strong {
  display: block;
  font-size: 10px;
  margin: 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transport-info-cards p {
  font-size: 8px;
  color: var(--muted);
  margin: 0;
}
.transport-section-heading {
  margin: 21px 0 11px;
}
.transport-section-heading h4 {
  font-size: 13px;
  margin: 0 0 3px;
}
.transport-section-heading p {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}
.transport-timeline {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px 15px;
  max-height: 225px;
  overflow: auto;
}
.transport-stop {
  min-height: 57px;
  display: grid;
  grid-template-columns: 24px 48px 1fr;
  align-items: center;
  position: relative;
}
.transport-stop:not(:last-child):after {
  content: '';
  position: absolute;
  left: 11px;
  top: 35px;
  height: 38px;
  width: 1px;
  background: #dbe1eb;
}
.transport-dot {
  width: 9px;
  height: 9px;
  background: #fff;
  border: 2px solid #9ba7ba;
  border-radius: 50%;
  z-index: 1;
}
.transport-dot.main {
  width: 18px;
  height: 18px;
  margin-left: -4px;
  border-color: #2559d6;
  background: #2559d6;
  color: #fff;
  font-size: 8px;
  display: grid;
  place-items: center;
}
.transport-stop time {
  font-size: 9px;
  color: #6f7b90;
  font-weight: 700;
}
.transport-stop strong {
  font-size: 10px;
}
.transport-stop p {
  font-size: 8px;
  color: var(--muted);
  margin: 3px 0 0;
}
.transport-seat-summary {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.transport-seat-visual {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #eff4ff;
  color: #3f63bf;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.transport-seat-summary > div:nth-child(2) {
  flex: 1;
}
.transport-seat-summary small {
  font-size: 7px;
  color: #8d97aa;
  font-weight: 800;
}
.transport-seat-summary h4 {
  font-size: 11px;
  margin: 3px 0 6px;
}
.transport-seat-summary p {
  font-size: 8px;
  color: var(--muted);
  margin: 4px 0 0;
}
.transport-progress {
  max-width: 210px;
  height: 4px;
  background: #edf0f5;
  border-radius: 3px;
  overflow: hidden;
}
.transport-progress i {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.transport-seat-summary button {
  border: 0;
  background: transparent;
  color: #2559d6;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.transport-seat-summary button span {
  font-size: 15px;
  margin-left: 5px;
}
.transport-seat-page {
  padding: 18px 24px;
}
.transport-seat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.transport-seat-toolbar h4 {
  font-size: 13px;
  margin: 0 0 3px;
}
.transport-seat-toolbar p {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}
.transport-legend {
  display: flex;
  gap: 11px;
  font-size: 8px;
  color: #778298;
}
.transport-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.transport-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  border: 1px solid #ccd3df;
}
.transport-legend .used {
  background: #dce6ff;
  border-color: #8aa7ee;
}
.transport-legend .chosen {
  background: #2559d6;
  border-color: #2559d6;
}
.transport-seat-layout {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 220px;
  gap: 17px;
}
.transport-vehicle {
  border: 2px solid #dfe4ec;
  border-radius: 42px 42px 18px 18px;
  padding: 17px 28px 12px;
  max-width: 440px;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
  background: #fafbfd;
}
.transport-vehicle-front {
  height: 45px;
  border-bottom: 1px dashed #d5dbe5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9aa5b7;
  font-size: 7px;
}
.transport-vehicle-front b {
  font-size: 24px;
  color: #68778f;
}
.transport-vehicle-front em {
  font-style: normal;
}
.transport-map-seats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px 11px;
  padding: 12px 4px;
  max-height: 390px;
  overflow: auto;
}
.transport-map-seat {
  height: 29px;
  border: 1px solid #cbd3df;
  background: #fff;
  border-radius: 7px 7px 4px 4px;
  color: #8792a5;
  font-size: 8px;
  position: relative;
  cursor: pointer;
}
.transport-map-seat:nth-child(4n + 2) {
  margin-right: 9px;
}
.transport-map-seat:nth-child(4n + 3) {
  margin-left: 9px;
}
.transport-map-seat:before,
.transport-map-seat:after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 2px;
  height: 9px;
  background: #d7dde6;
}
.transport-map-seat:before {
  left: 3px;
}
.transport-map-seat:after {
  right: 3px;
}
.transport-map-seat.occupied {
  background: #e7edfc;
  border-color: #9cb2e8;
  color: #3d5da9;
}
.transport-map-seat.selected-seat {
  background: #2559d6;
  border-color: #2559d6;
  color: #fff;
  box-shadow: 0 3px 8px #2559d64a;
}
.transport-vehicle-back {
  text-align: center;
  border-top: 1px dashed #d5dbe5;
  padding-top: 9px;
  font-size: 7px;
  color: #a1aabb;
}
.transport-seat-detail {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  text-align: center;
  min-height: 315px;
  box-sizing: border-box;
}
.transport-passenger-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8eefc;
  color: #3859a9;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  font-size: 12px;
  font-weight: 800;
}
.transport-seat-detail > small {
  font-size: 7px;
  color: #2559d6;
  font-weight: 800;
}
.transport-seat-detail h4 {
  font-size: 12px;
  margin: 5px 0;
}
.transport-seat-detail > p {
  font-size: 8px;
  color: var(--muted);
  margin: 0 0 13px;
}
.transport-seat-detail label {
  display: grid;
  gap: 5px;
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  margin: 12px 0;
}
.transport-seat-detail select {
  width: 100%;
  padding: 9px;
  border: 1px solid #ced5df;
  border-radius: 8px;
  font-size: 9px;
}
.transport-seat-detail .primary,
.transport-seat-detail .secondary {
  width: 100%;
  margin-top: 6px;
  font-size: 9px;
  padding: 9px !important;
}
.transport-empty-seat {
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.transport-empty-seat span {
  font-size: 28px;
  color: #b2bac8;
}
.transport-empty-seat h4 {
  margin: 12px 0 5px;
}
.transport-empty-seat p {
  max-width: 150px;
  line-height: 1.5;
  color: var(--muted);
  font-size: 9px;
}
.transport-fleet {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
}
.transport-fleet-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.transport-fleet-cards article {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}
.transport-fleet-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #eff4ff;
  color: #3f63bf;
  border-radius: 9px;
  font-size: 18px;
}
.transport-fleet-cards div {
  flex: 1;
  min-width: 0;
}
.transport-fleet-cards small,
.transport-fleet-cards strong,
.transport-fleet-cards p {
  display: block;
}
.transport-fleet-cards small {
  font-size: 7px;
  color: #8792a5;
  font-weight: 800;
}
.transport-fleet-cards strong {
  font-size: 11px;
  margin: 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transport-fleet-cards p {
  font-size: 8px;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 1200px) {
  .transport-stats {
    grid-template-columns: 1fr 1fr;
  }
  .transport-workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .transport-info-cards,
  .transport-fleet-cards {
    grid-template-columns: 1fr;
  }
  .transport-seat-layout {
    grid-template-columns: 1fr;
  }
  .transport-seat-detail {
    min-height: 210px;
  }
}
@media (max-width: 800px) {
  .transport-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .transport-heading-actions {
    width: 100%;
  }
  .transport-workspace {
    display: block;
  }
  .transport-route-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .transport-route-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: none;
  }
  .transport-stats {
    grid-template-columns: 1fr;
  }
  .transport-info-cards {
    grid-template-columns: 1fr;
  }
  .transport-detail-head {
    flex-wrap: wrap;
  }
  .transport-route-list {
    grid-template-columns: 1fr;
  }
}

.transport-button,
#transportVehicleDialog .dialog-actions button,
#transportRouteDialog .dialog-actions button,
#transportPrintDialog .dialog-actions button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 !important;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
/* O display com !important acima anulava o atributo hidden: quem só consulta via os botões de gestão. */
.transport-button[hidden] {
  display: none !important;
}
.transport-button-primary,
#transportVehicleDialog .dialog-actions .primary,
#transportRouteDialog .dialog-actions .primary,
#transportPrintDialog .dialog-actions .primary {
  border: 1px solid var(--gold) !important;
  background: var(--gold) !important;
  color: #172033 !important;
  box-shadow: 0 3px 9px #e7ad3233 !important;
}
.transport-button-primary:hover,
#transportVehicleDialog .dialog-actions .primary:hover,
#transportRouteDialog .dialog-actions .primary:hover,
#transportPrintDialog .dialog-actions .primary:hover {
  background: #dca025 !important;
  border-color: #dca025 !important;
  box-shadow: 0 5px 13px #e7ad3245 !important;
  transform: translateY(-1px);
}
.transport-button-secondary,
#transportVehicleDialog .dialog-actions .ghost,
#transportRouteDialog .dialog-actions .ghost,
#transportPrintDialog .dialog-actions .ghost {
  border: 1px solid #ccd5e2 !important;
  background: #fff !important;
  color: #53617a !important;
  box-shadow: 0 2px 6px #1720330b !important;
}
.transport-button-secondary:hover,
#transportVehicleDialog .dialog-actions .ghost:hover,
#transportRouteDialog .dialog-actions .ghost:hover,
#transportPrintDialog .dialog-actions .ghost:hover {
  border-color: #91a7d5 !important;
  background: #f8faff !important;
  color: #3158b5 !important;
  transform: translateY(-1px);
}
.transport-button:disabled,
#transportVehicleDialog .dialog-actions button:disabled,
#transportRouteDialog .dialog-actions button:disabled,
#transportPrintDialog .dialog-actions button:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
.transport-icon-button {
  box-sizing: border-box;
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid #ccd5e2 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #53617a !important;
  font:
    800 16px Inter,
    Segoe UI,
    Arial,
    sans-serif !important;
  cursor: pointer;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    color 0.16s;
}
.transport-icon-button:hover {
  border-color: #91a7d5 !important;
  background: #f8faff !important;
  color: #3158b5 !important;
}
.transport-heading-actions .transport-button {
  min-width: 128px;
}
.transport-detail-head > .transport-button {
  margin-left: auto !important;
}
.transport-seat-summary > .transport-button {
  min-width: 150px !important;
}
.transport-seat-detail > .transport-button {
  width: 100% !important;
  margin-top: 7px !important;
}
.transport-seat-detail > .transport-button + .transport-button {
  margin-top: 7px !important;
}

/* Rolagem restrita às opções do menu lateral */
.sidebar nav {
  flex: 1;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: #60708d transparent;
}
.sidebar nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar nav::-webkit-scrollbar-thumb {
  background: #60708d;
  border-radius: 10px;
}
.sidebar nav::-webkit-scrollbar-thumb:hover {
  background: #7f90ac;
}
.side-logo {
  flex: none;
}
.side-user {
  flex: none;
}
@media (max-width: 700px) {
  .sidebar nav {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 5px;
    scrollbar-width: thin;
  }
  .sidebar nav::-webkit-scrollbar {
    width: auto;
    height: 5px;
  }
}
.transport-detail-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.transport-detail-actions .transport-button {
  min-width: 126px;
}
@media (max-width: 900px) {
  .transport-detail-actions {
    width: 100%;
    margin-left: 57px;
    flex-wrap: wrap;
  }
}
.transport-button-danger {
  border: 1px solid #e7b8b8 !important;
  background: #fff7f7 !important;
  color: #b83232 !important;
  box-shadow: 0 2px 6px #a62c2c0d !important;
}
.transport-button-danger:hover {
  border-color: #d76f6f !important;
  background: #fff0f0 !important;
  color: #9f2424 !important;
  transform: translateY(-1px);
}
#transportRouteDialog {
  width: min(650px, calc(100vw - 32px));
}
.transport-seat-detail input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #ced5df;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  outline: none;
}
.transport-seat-detail input:focus {
  border-color: #8ba5dc;
  box-shadow: 0 0 0 3px #e8efff;
}
.transport-search-result {
  display: block;
  margin: -7px 0 8px !important;
  color: #77849a !important;
  text-align: left;
  font-size: 8px !important;
}

/* Padrão visual dos botões do Almoxarifado */
#stockTable td:last-child {
  min-width: 92px;
}
#stockTable td:last-child .table-action {
  box-sizing: border-box;
  width: 88px;
  height: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  padding: 0 10px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #edf1f6;
  color: #35445d;
  font:
    700 12px Inter,
    Segoe UI,
    Arial,
    sans-serif;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    color 0.16s,
    transform 0.16s;
}
#stockTable td:last-child .table-action:hover {
  border-color: #aab8ca;
  background: #e2e8f0;
  color: #26364f;
  transform: translateY(-1px);
}
#stockItemDialog .dialog-actions button,
#stockEntryDialog .dialog-actions button,
#mergeStockDialog .dialog-actions button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  white-space: nowrap;
}

/* Histórico das etiquetas geradas */
.generated-files-panel {
  margin-top: 18px;
}
.generated-files-panel .filter-row {
  margin: 15px 0 8px;
}
.generated-files-table-wrap {
  overflow: auto;
}
.generated-files-table {
  min-width: 900px;
}
.generated-files-table td {
  vertical-align: top;
}
.generated-files-table td:nth-child(1) {
  white-space: nowrap;
}
.generated-files-table td:nth-child(4) {
  min-width: 190px;
}
.generated-file-id,
.generated-file-codes {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.reload-generated-file {
  white-space: nowrap;
  font-size: 11px !important;
  padding: 8px 10px !important;
}

/* Busca e filtros de colaboradores */
#view-colaboradores .filter-row {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(190px, 1fr) minmax(190px, 1fr);
  align-items: stretch;
}
#view-colaboradores .filter-row input,
#view-colaboradores .filter-row select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
@media (max-width: 720px), (max-width: 950px) and (max-height: 520px) {
  #view-colaboradores .filter-row {
    grid-template-columns: 1fr;
  }
}
