:root {
  --navy: #0c1c33;
  --navy-soft: #142a48;
  --blue: #1858a8;
  --blue-light: #eaf2fb;
  --cyan: #33a8c7;
  --background: #f4f7fb;
  --surface: #ffffff;
  --text: #152033;
  --muted: #68768a;
  --border: #dfe6ef;
  --success: #16876b;
  --shadow: 0 16px 40px rgba(14, 31, 53, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 28px 20px;
  color: white;
  background:
    linear-gradient(
      180deg,
      var(--navy) 0%,
      #081425 100%
    );
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px 28px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: white;
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue)
    );
}

.brand-mark.large {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  font-size: 1.25rem;
}

.main-nav {
  display: grid;
  gap: 7px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.disabled {
  opacity: 0.46;
}

.main-content {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 104px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: 1.55rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow.light {
  color: #80d9ee;
}

.user-menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

.user-details {
  text-align: right;
}

.user-details strong,
.user-details small {
  display: block;
}

.user-details small {
  margin-top: 3px;
  color: var(--muted);
}

.logout-button {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: white;
  cursor: pointer;
}

.page-content {
  padding: 38px 40px;
}

.welcome-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 30px;
  border-radius: 20px;
  color: white;
  background:
    linear-gradient(
      125deg,
      var(--navy-soft),
      var(--blue)
    );
  box-shadow: var(--shadow);
}

.welcome-panel h2 {
  margin: 7px 0 8px;
  font-size: 1.7rem;
}

.welcome-panel p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.status-badge {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.stat-card,
.empty-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card span,
.stat-card small {
  display: block;
}

.stat-card span {
  font-weight: 650;
}

.stat-card strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 2.2rem;
}

.stat-card small {
  line-height: 1.5;
  color: var(--muted);
}

.empty-panel {
  margin-top: 24px;
  text-align: center;
}

.empty-panel h3 {
  margin: 14px 0 7px;
}

.empty-panel p {
  max-width: 570px;
  margin: 0 auto;
  line-height: 1.65;
  color: var(--muted);
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--blue);
  background: var(--blue-light);
  font-size: 1.35rem;
}

.login-body {
  background: white;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(380px, 47%) minmax(0, 1fr);
  min-height: 100vh;
}

.login-brand-panel {
  display: flex;
  align-items: flex-end;
  padding: 64px;
  color: white;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(51, 168, 199, 0.33),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      var(--navy-soft),
      var(--navy)
    );
}

.login-brand-content {
  max-width: 510px;
}

.login-brand-content h1 {
  margin: 28px 0 16px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.login-brand-content > p:last-child {
  max-width: 440px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}

.login-card {
  width: min(100%, 430px);
}

.login-heading {
  margin-bottom: 30px;
}

.login-heading h2 {
  margin: 8px 0 8px;
  font-size: 2rem;
}

.login-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(24, 88, 168, 0.1);
}

.primary-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 11px;
  font-weight: 750;
  color: white;
  background: var(--blue);
  cursor: pointer;
}

.form-error {
  margin-bottom: 20px;
  padding: 13px 14px;
  border-radius: 10px;
  color: #9d2435;
  background: #fff0f2;
}

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

@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar,
  .page-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    gap: 20px;
  }

  .user-details {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .welcome-panel {
    display: block;
  }

  .status-badge {
    display: inline-block;
    margin-top: 20px;
  }

  .login-form-panel {
    padding: 28px 22px;
  }
}

/* HFL Cargo — identidade visual oficial */

.brand-logo {
  display: block;
  width: 100%;
  max-width: 178px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.login-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  max-height: 100px;
  margin-bottom: 28px;
  object-fit: contain;
  object-position: left center;
}

/* HFL Cargo v0.1.1 — branding e rodapés */

.main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.main-content {
  flex: 1 0 auto;
}

.brand {
  justify-content: flex-start;
  min-height: 178px;
  padding: 10px 18px 34px;
}

.brand-logo {
  display: block;
  width: 148px;
  height: auto;
  max-height: 112px;
  object-fit: contain;
  object-position: left center;
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.main-nav {
  flex: 0 0 auto;
}

.sidebar-footer {
  margin-top: auto;
  padding: 28px 16px 4px;
  color: rgba(255, 255, 255, 0.48);
}

.sidebar-footer span,
.sidebar-footer small {
  display: block;
}

.sidebar-footer span {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-footer small {
  margin-top: 5px;
  font-size: 0.72rem;
}

.app-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 62px;
  padding: 16px 30px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
}

.app-footer a {
  font-weight: 750;
  color: var(--blue);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.app-footer-separator {
  margin: 0 8px;
  color: #a7b0be;
}

.login-form-wrapper {
  width: min(100%, 500px);
}

.login-card {
  width: 100%;
}

.login-logo {
  display: block;
  width: min(100%, 290px);
  height: auto;
  max-height: 125px;
  margin-bottom: 64px;
  object-fit: contain;
  object-position: left center;
}

.login-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.login-footer a {
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .app-footer {
    flex-wrap: wrap;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .app-footer {
    display: block;
  }

  .app-footer-separator {
    display: none;
  }

  .app-footer span {
    display: block;
    margin: 3px 0;
  }
}


/* =========================================================
   HFL LOGIN V0.2.1 — CORREÇÃO DE SVG E DIMENSÕES
   ========================================================= */

.hfl-login-page svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.hfl-feature-icon {
  overflow: hidden;
}

.hfl-feature-icon svg {
  display: block !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
}

.hfl-input-icon {
  overflow: hidden;
}

.hfl-input-icon svg {
  display: block !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
}

.hfl-password-toggle {
  overflow: hidden;
}

.hfl-password-toggle svg {
  display: block !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
}

.hfl-login-submit {
  overflow: hidden;
}

.hfl-login-submit svg {
  display: block !important;
  flex: 0 0 25px !important;
  width: 25px !important;
  min-width: 25px !important;
  max-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
}

.hfl-login-shell,
.hfl-login-presentation,
.hfl-login-access,
.hfl-login-card,
.hfl-login-form,
.hfl-field,
.hfl-input-wrapper {
  min-width: 0;
}

.hfl-input-wrapper {
  display: block;
  width: 100%;
}

.hfl-input-wrapper input {
  display: block;
  max-width: 100%;
}


/* =========================================================
   HFL BACKOFFICE V0.2.0 — LOGÓTIPO E RODAPÉ
   ========================================================= */

.brand {
  min-height: 185px;
  padding:
    24px 20px
    34px;
}

.brand-logo {
  width: 118px;
  max-width: 118px;
  height: auto;
  max-height: 92px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.app-footer {
  display: grid;
  grid-template-columns:
    minmax(80px, 1fr)
    minmax(220px, 2fr)
    minmax(80px, 1fr);
  align-items: center;
  min-height: 86px;
  margin:
    0 28px
    24px;
  padding: 18px 28px;
  border: 1px solid #d8e7ef;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  box-shadow:
    0 18px 45px rgba(14, 31, 53, 0.07);
}

.app-footer-k4w {
  justify-self: start;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #148bca;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.app-footer-k4w:hover {
  color: #086bb0;
  text-decoration: none;
  transform: translateY(-1px);
}

.app-footer-company {
  justify-self: center;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: #152033;
}

.app-footer-version {
  justify-self: end;
  font-size: 0.94rem;
  font-weight: 800;
  color: #148bca;
}

@media (max-width: 800px) {
  .brand {
    min-height: auto;
  }

  .app-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    margin:
      0 18px
      18px;
    padding: 20px;
    text-align: center;
  }

  .app-footer-k4w,
  .app-footer-company,
  .app-footer-version {
    justify-self: center;
  }
}


/* =========================================================
   HFL CARGO V0.3.0 — EMPRESAS
   ========================================================= */

.page-header-card,
.toolbar-card,
.content-card,
.form-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 27px 30px;
}

.page-header-card h2 {
  margin: 6px 0 7px;
  font-size: 1.8rem;
}

.page-header-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.page-header-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-action,
.secondary-action,
.danger-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 43px;
  padding: 0 17px;
  border-radius: 11px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--blue);
  color: white;
  background: var(--blue);
}

.secondary-action {
  border: 1px solid var(--border);
  color: var(--text);
  background: white;
}

.danger-action {
  border: 1px solid #d83b52;
  color: white;
  background: #d83b52;
}

.text-action,
.table-action-link {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.toolbar-card {
  margin-top: 20px;
  padding: 20px;
}

.company-filters {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.6fr)
    minmax(170px, 0.7fr)
    minmax(150px, 0.6fr)
    auto
    auto;
  gap: 14px;
  align-items: end;
}

.filter-search label,
.filter-field label,
.portal-field label,
.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 750;
  color: #39475a;
}

.company-filters input,
.company-filters select,
.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: white;
}

.portal-field textarea {
  min-height: 120px;
  resize: vertical;
}

.company-filters input:focus,
.company-filters select:focus,
.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(24, 88, 168, 0.09);
}

.content-card {
  margin-top: 20px;
  overflow: hidden;
}

.content-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.content-card-header h3 {
  margin: 0 0 4px;
}

.content-card-header p {
  margin: 0;
  color: var(--muted);
}

.table-responsive {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f8fafc;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.company-name-link {
  display: block;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.data-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entity-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
}

.entity-tag {
  color: #155a91;
  background: #eaf4fb;
}

.status-pill.active {
  color: #08735c;
  background: #e7f8f1;
}

.status-pill.inactive {
  color: #8a3440;
  background: #fff0f2;
}

.status-pill.primary {
  color: #155a91;
  background: #eaf4fb;
}

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

.table-actions-column {
  width: 130px;
}

.table-action-link + .table-action-link {
  margin-left: 12px;
}

.muted-text {
  color: var(--muted);
}

.empty-state {
  padding: 56px 30px;
  text-align: center;
}

.empty-state.compact {
  padding: 30px;
}

.empty-state h3 {
  margin: 13px 0 7px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.empty-state-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--blue);
  background: var(--blue-light);
}

.messages-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.message-card {
  padding: 14px 17px;
  border-radius: 12px;
  color: #08735c;
  background: #e7f8f1;
}

.form-card {
  margin-top: 20px;
  padding: 28px;
}

.narrow-form-card {
  max-width: 940px;
}

.form-section + .form-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.form-section-heading {
  margin-bottom: 20px;
}

.form-section-heading h3 {
  margin: 0 0 5px;
}

.form-section-heading p {
  margin: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full-column {
  grid-column: 1 / -1;
}

.full-width {
  margin-top: 18px;
}

.portal-field ul.errorlist {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #b3273e;
}

.checkbox-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.checkbox-card:has(input:checked) {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.input-with-suffix {
  display: flex;
  align-items: center;
}

.input-with-suffix input {
  border-radius: 10px 0 0 10px;
}

.input-with-suffix span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  background: #f8fafc;
}

.switches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
}

.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.switch-field input {
  position: absolute;
  opacity: 0;
}

.switch-control {
  position: relative;
  width: 42px;
  height: 23px;
  border-radius: 999px;
  background: #cbd5e1;
}

.switch-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  transition: transform 160ms ease;
}

.switch-field input:checked + .switch-control {
  background: var(--blue);
}

.switch-field input:checked + .switch-control::after {
  transform: translateX(19px);
}

.form-actions {
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  gap: 20px;
}

.detail-main .content-card,
.detail-sidebar .content-card {
  margin-top: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 24px;
}

.detail-grid dt,
.sidebar-detail-list dt {
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-grid dd,
.sidebar-detail-list dd {
  margin: 0;
}

.detail-full-width {
  grid-column: 1 / -1;
}

.sidebar-detail-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 24px;
}

.company-address,
.notes-content {
  padding: 24px;
  font-style: normal;
  line-height: 1.7;
  color: #455267;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 20px;
}

.contact-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.contact-card h4 {
  margin: 0 0 4px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}

.danger-card {
  padding: 22px;
}

.danger-card h3 {
  margin: 0 0 7px;
}

.danger-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.title-with-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-section {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.section-heading h2 {
  margin: 5px 0 0;
}

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

.mini-stat-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: white;
}

.mini-stat-card span,
.mini-stat-card strong {
  display: block;
}

.mini-stat-card span {
  color: var(--muted);
}

.mini-stat-card strong {
  margin-top: 10px;
  font-size: 1.75rem;
}

.recent-list {
  display: grid;
}

.recent-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.recent-list-item:last-child {
  border-bottom: 0;
}

.recent-list-item strong,
.recent-list-item span {
  display: block;
}

.recent-list-item div span {
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .company-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkbox-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .mini-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page-header-card {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header-actions {
    align-items: stretch;
  }

  .company-filters,
  .form-grid.two-columns,
  .form-grid.three-columns,
  .contacts-grid,
  .detail-grid,
  .mini-stats-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-card-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }

  .full-column,
  .detail-full-width {
    grid-column: auto;
  }
}


/* =========================================================
   HFL CARGO V0.3.1 — NAVEGAÇÃO E EMPRESAS
   ========================================================= */

.topbar {
  position: relative;
  z-index: 5;
}

.nav-link {
  gap: 13px;
}

.nav-icon {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.nav-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.nav-link.active .nav-icon {
  color: #6fd3ed;
}

.nav-link.disabled {
  cursor: default;
}

.company-table-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.company-avatar {
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d4e7f2;
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  color: #12649d;
  background:
    linear-gradient(
      145deg,
      #edf7fc,
      #dfeff8
    );
}

.status-pill {
  gap: 7px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-pill.active .status-dot {
  background: #19a57e;
  box-shadow:
    0 0 0 3px rgba(25, 165, 126, 0.12);
}

.status-pill.inactive .status-dot {
  background: #d55263;
  box-shadow:
    0 0 0 3px rgba(213, 82, 99, 0.11);
}

.company-filters {
  grid-template-columns:
    minmax(330px, 1.9fr)
    minmax(180px, 0.75fr)
    minmax(160px, 0.65fr)
    auto
    auto;
}

.toolbar-card {
  padding-top: 17px;
  padding-bottom: 17px;
}

@media (max-width: 1200px) {
  .company-filters {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}
