:root {
  --navy: #0e2a47;
  --teal: #00bfa6;
  --slate: #334155;
  --muted: #718096;
  --line: #e5ebf0;
}

body {
  font-family: Inter, sans-serif;
  color: var(--slate);
  background: #f6f9fb;
}

h1, h2, h3, .btn {
  font-family: Montserrat, sans-serif;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: var(--navy);
  color: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.app-brand {
  padding: 26px 24px;
  border-bottom: 1px solid #ffffff20;
}

.app-brand img {
  max-width: 165px;
  max-height: 46px;
  object-fit: contain;
  background: white;
  border-radius: 7px;
  padding: 6px;
}

.workspace-label {
  display: grid;
  gap: 5px;
  margin: 23px 17px;
  padding: 15px;
  border: 1px solid #ffffff24;
  border-radius: 10px;
}

.workspace-label span, .nav-group {
  font-size: .66rem;
  letter-spacing: .13em;
  color: #92acc0;
  font-weight: 700;
}

.workspace-label strong {
  font-size: .86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav {
  overflow-y: auto;
  padding: 0 12px;
}

.nav-group {
  display: block;
  margin: 18px 13px 10px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #c6d5e0;
  text-decoration: none;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: .91rem;
  font-weight: 500;
}

.side-nav a i {
  width: 20px;
  text-align: center;
}

.side-nav a:hover, .side-nav a.active {
  color: white;
  background: #ffffff17;
}

.side-nav a.active {
  box-shadow: inset 3px 0 var(--teal);
}

.sidebar-foot {
  margin-top: auto;
  padding: 18px 24px;
  color: #92acc0;
}

.app-main {
  margin-left: 245px;
  min-height: 100vh;
}

.app-topbar {
  height: 74px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid var(--line);
}

.topbar-path {
  flex: 1;
  color: #94a3b8;
  font-size: .83rem;
}

.topbar-path i {
  font-size: .6rem;
  margin: 0 10px;
}

.topbar-path strong {
  color: var(--slate);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .85rem;
  font-weight: 600;
}

.app-content {
  padding: 34px;
  max-width: 1650px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
}

.eyebrow {
  color: #008f83;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.page-heading h1 {
  color: var(--navy);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 800;
  margin: 7px 0;
}

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

.trial-banner {
  padding: 13px 18px;
  border: 1px solid #bdeee5;
  border-radius: 10px;
  background: #eafbf6;
  color: #11665f;
  margin-bottom: 25px;
  font-weight: 600;
}

.trial-banner a {
  float: right;
  color: #11665f;
}

.metric-card, .panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.metric-card {
  min-height: 175px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #e6faf6;
  color: #008e82;
  border-radius: 9px;
  margin-bottom: 15px;
}

.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  color: var(--navy);
  font-size: 1.5rem;
  margin-top: 4px;
}

.panel {
  padding: 24px;
  height: 100%;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.panel-heading h2 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.panel-heading span, .panel-heading a {
  color: #008e82;
  font-size: .83rem;
  text-decoration: none;
  font-weight: 600;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-grid a {
  display: grid;
  gap: 7px;
  color: var(--slate);
  text-decoration: none;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.quick-grid i {
  color: #009f90;
}

.quick-grid strong {
  font-size: .9rem;
}

.quick-grid small, .recent-list small {
  color: var(--muted);
}

.recent-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.recent-list strong, .recent-list b {
  color: var(--navy);
  font-size: .9rem;
}

.app-table {
  min-width: 700px;
  margin: 0;
}

.app-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 0;
  padding: 14px;
}

.app-table td {
  padding: 15px 14px;
  vertical-align: middle;
  border-color: #edf1f4;
  font-size: .88rem;
}

.status-pill {
  display: inline-flex;
  border-radius: 40px;
  background: #e9faf4;
  color: #0c7c63;
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 700;
}

.status-pill.is-pending {
  background: #fff3dc;
  color: #8a5b12;
}

.wm-integrations {
  max-width: 1120px;
}

.wm-title {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.wm-subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin: 6px 0 0;
}

.wm-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.wm-card-actions small {
  color: var(--muted);
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #063e42;
  font-weight: 700;
}

.btn-teal:hover {
  background: #00aa95;
  border-color: #00aa95;
}

.master-header {
  background: var(--navy);
  color: white;
  padding: 14px 24px;
}

.master-header img {
  max-width: 145px;
  max-height: 40px;
  background: white;
  border-radius: 6px;
  padding: 5px;
}

.wm-access-body {
  min-height: 100vh;
  background: linear-gradient(145deg, #0e2a47 0%, #153a59 48%, #eaf4f3 48%, #f6f9fb 100%);
}

.wm-access-shell {
  width: min(100% - 32px, 500px);
  margin: 0 auto;
  padding: clamp(36px, 8vh, 90px) 0 32px;
}

.wm-access-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  font-weight: 700;
  margin-bottom: 28px;
}

.wm-access-brand img {
  width: 142px;
  max-height: 54px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 8px;
}

.wm-access-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 55px #0e2a4720;
  padding: clamp(24px, 5vw, 38px);
}

.wm-access-kicker {
  color: #08796e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.wm-access-card h1 {
  color: var(--navy);
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 12px 0;
}

.wm-access-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.wm-access-card .form-control {
  min-height: 46px;
}

.wm-access-card .form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 .2rem #00bfa62b;
}

.wm-access-back {
  display: inline-block;
  color: var(--navy);
  margin-top: 20px;
}

@media (max-width: 991px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar, .app-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 575px) {
  .topbar-user span {
    display: none;
  }

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

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading form {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Identidade operacional FATURON */
:root {
  --navy: #102b42;
  --teal: #0a8e88;
  --slate: #263e50;
  --muted: #657987;
  --line: #dce6e9;
}

body {
  background: #f4f7f7;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.btn {
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 700;
  padding: .65rem 1rem;
}

.btn-sm {
  padding: .48rem .75rem;
}

.btn-teal {
  color: white;
}

.btn-teal:hover, .btn-teal:focus-visible {
  background: #08736e;
  border-color: #08736e;
  color: white;
  box-shadow: 0 7px 18px #0a8e8828;
}

.app-sidebar {
  width: 266px;
  background: linear-gradient(170deg, #102b42 0%, #092034 100%);
  border-right: 1px solid #092034;
}

.app-brand {
  min-height: 94px;
  display: flex;
  align-items: center;
  border-color: #ffffff1d;
}

.app-brand img {
  max-width: 182px;
  max-height: 52px;
  background: white;
  border-radius: 9px;
  padding: 9px 12px;
}

.workspace-label {
  margin: 24px 16px 14px;
  padding: 16px;
  border-color: #ffffff24;
  border-radius: 12px;
  background: #ffffff0b;
}

.workspace-label span, .nav-group {
  color: #9bb9c7;
  font-size: .64rem;
}

.workspace-label strong {
  font-size: .89rem;
  color: white;
}

.side-nav {
  padding: 0 14px 25px;
  scrollbar-width: none;
}

.side-nav::-webkit-scrollbar {
  display: none;
}

.nav-group {
  margin: 26px 12px 9px;
}

.side-nav a {
  gap: 12px;
  color: #c1d2db;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: .88rem;
}

.side-nav a i {
  color: #8eabb9;
  font-size: .92rem;
}

.side-nav a:hover, .side-nav a.ativo, .side-nav a.active {
  background: #ffffff16;
  border-color: #ffffff15;
  color: white;
}

.side-nav a.ativo, .side-nav a.active {
  box-shadow: inset 3px 0 #65d9c8;
  font-weight: 700;
}

.side-nav a.ativo i, .side-nav a.active i {
  color: #65d9c8;
}

.sidebar-foot {
  border-top: 1px solid #ffffff1b;
  color: #9bb9c7;
}

.app-main {
  margin-left: 266px;
}

.app-topbar {
  height: 78px;
  background: #fffffff5;
  border-color: var(--line);
  padding: 0 clamp(24px, 3vw, 52px);
}

.topbar-path {
  color: #728692;
  font-size: .8rem;
  font-weight: 600;
}

.topbar-path strong {
  color: var(--navy);
}

.topbar-user {
  gap: 14px;
  color: var(--navy);
}

.topbar-user span {
  background: #e9f3f2;
  border: 1px solid #d5e7e5;
  border-radius: 50px;
  padding: 8px 14px;
}

.app-content {
  max-width: 1680px;
  padding: clamp(24px, 3vw, 48px);
}

.page-heading {
  align-items: flex-end;
  margin-bottom: 32px;
}

.eyebrow {
  color: #08736e;
  font-size: .67rem;
}

.page-heading h1 {
  font-size: clamp(1.85rem, 2.7vw, 2.65rem);
  letter-spacing: -.045em;
  margin: 8px 0 9px;
}

.page-heading p {
  font-size: .92rem;
}

.trial-banner {
  border-color: #c9e8df;
  border-radius: 12px;
  background: #eef9f4;
  padding: 16px 20px;
}

.metric-card, .panel {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 27px #102b4208;
}

.metric-card {
  min-height: 187px;
  padding: 24px;
  border-top: 3px solid #91dacc;
}

.metric-icon {
  width: 42px;
  height: 42px;
  background: #e4f3ef;
  color: #08736e;
  border-radius: 11px;
  margin-bottom: 22px;
}

.metric-card small {
  color: #657987;
  font-size: .78rem;
  font-weight: 600;
}

.metric-card strong {
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-top: 7px;
}

.panel {
  padding: clamp(22px, 2.4vw, 32px);
}

.panel-heading {
  border-bottom: 1px solid #e8eeee;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.panel-heading h2, .wm-title {
  color: var(--navy);
  font-size: 1.03rem;
  font-weight: 800;
}

.panel-heading a {
  color: #08736e;
}

.panel-heading a.btn-teal,
.panel-heading a.btn-teal:hover,
.panel-heading a.btn-teal:focus-visible {
  color: #fff;
}

.quick-grid {
  gap: 13px;
}

.quick-grid a {
  position: relative;
  border-color: #e0e9ea;
  border-radius: 11px;
  background: #fbfcfc;
  padding: 20px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.quick-grid a:hover {
  border-color: #9ed4c9;
  box-shadow: 0 10px 22px #102b4210;
  transform: translateY(-2px);
}

.quick-grid i {
  color: #0a8e88;
  font-size: 1.05rem;
}

.quick-grid strong {
  color: var(--navy);
}

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

.app-table {
  min-width: 700px;
}

.app-table th {
  background: #f4f8f8;
  color: #576e7d;
  font-size: .7rem;
  padding: 15px;
}

.app-table td {
  border-color: #e8eeee;
  color: #33495a;
  padding: 17px 15px;
  font-size: .85rem;
}

.app-table tbody tr:hover td {
  background: #f7faf9;
}

.app-table td strong {
  color: var(--navy);
}

.status-pill {
  background: #e9f6ef;
  color: #147557;
  border: 1px solid #cde9df;
  padding: 6px 11px;
}

.status-pill.is-pending {
  background: #fff6e8;
  border-color: #f2ddae;
  color: #8c641b;
}

.empty-state {
  background: #f7fafa;
  border: 1px dashed #cbdcde;
  border-radius: 11px;
  margin: 12px 0 0;
  padding: 32px;
}

.form-label {
  color: var(--navy);
  font-size: .8rem;
  font-weight: 700;
}

.form-control, .form-select {
  min-height: 46px;
  border-color: #ccdadd;
  border-radius: 9px;
  color: var(--navy);
}

.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 .2rem #0a8e8823;
}

.modal-content {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 80px #102b4230;
}

.modal-header, .modal-footer {
  padding: 20px 24px;
}

.modal-body {
  padding: 24px;
}

.master-header {
  background: white;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  padding: 13px clamp(22px, 3vw, 46px);
}

.master-header img {
  max-width: 165px;
  max-height: 48px;
  padding: 0;
}

.master-header span:not(.btn) {
  border-left: 1px solid var(--line);
  color: #657987;
  font-size: .83rem;
  font-weight: 700;
  padding-left: 18px;
}

.master-header .btn-light {
  background: #e7f3f1;
  border-color: #cde4df;
  color: #08736e;
  opacity: 1;
}

.master-header .btn-outline-light {
  border-color: #d7e3e5;
  color: var(--slate);
}

.master-header .btn-outline-light:hover {
  background: #eef6f5;
  color: var(--navy);
}

.master-body .app-content {
  max-width: 1700px;
  margin: 0 auto;
}

.master-body .page-heading {
  background: linear-gradient(110deg, #102b42, #145563);
  border-radius: 18px;
  color: white;
  padding: clamp(28px, 4vw, 45px);
  margin-bottom: 25px;
}

.master-body .page-heading h1 {
  color: white;
}

.master-body .page-heading p {
  color: #c8dde2;
}

.master-body .page-heading .eyebrow {
  color: #8be8d8;
}

.wm-integrations {
  max-width: 1200px;
}

.wm-card-actions {
  border-color: #e5eded;
}

.wm-access-body {
  background: radial-gradient(circle at 15% 20%, #1d5862, transparent 38%), linear-gradient(135deg, #092034, #102b42);
}

.wm-access-shell {
  width: min(100% - 48px, 1070px);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
  padding: 65px 0;
}

.wm-access-intro {
  color: white;
}

.wm-access-brand {
  margin-bottom: 65px;
}

.wm-access-brand img {
  width: 195px;
  max-height: 64px;
  border-radius: 10px;
  padding: 11px 14px;
}

.wm-access-intro-label {
  color: #80e0d3;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.wm-access-intro h2 {
  max-width: 540px;
  font-size: clamp(2.3rem, 4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.14;
  margin: 20px 0;
}

.wm-access-intro p {
  max-width: 460px;
  color: #bbd0d9;
  line-height: 1.7;
}

.wm-access-intro-foot {
  border-top: 1px solid #ffffff2d;
  color: #a9cbd1;
  font-size: .79rem;
  margin-top: 45px;
  padding-top: 25px;
}

.wm-access-intro-foot i {
  color: #80e0d3;
  margin-right: 8px;
}

.wm-access-card {
  grid-column: 2;
  grid-row: 1;
  border-radius: 19px;
  box-shadow: 0 30px 75px #00000038;
  padding: clamp(30px, 4vw, 48px);
}

.wm-access-card h1 {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.wm-access-card p {
  font-size: .9rem;
}

.wm-access-card .form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 .2rem #0a8e8823;
}

.wm-access-back {
  grid-column: 2;
  color: #b8d6da;
  margin: -60px 0 0;
  text-decoration: none;
}

.wm-access-back:hover {
  color: white;
}

@media (max-width: 991px) {
  .app-main {
    margin-left: 0;
  }

  .app-topbar, .app-content {
    padding-left: 23px;
    padding-right: 23px;
  }

  .wm-access-shell {
    max-width: 580px;
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
  }

  .wm-access-brand {
    margin-bottom: 30px;
  }

  .wm-access-intro h2, .wm-access-intro p, .wm-access-intro-foot {
    display: none;
  }

  .wm-access-card, .wm-access-back {
    grid-column: 1;
    grid-row: auto;
  }

  .wm-access-back {
    margin: 0;
  }
}

@media (max-width: 575px) {
  .app-topbar, .app-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-topbar {
    height: 68px;
  }

  .topbar-path {
    font-size: .72rem;
  }

  .page-heading {
    margin-bottom: 23px;
  }

  .metric-card {
    min-height: 160px;
  }

  .master-header span:not(.btn) {
    display: none;
  }

  .master-header .container-fluid {
    padding: 0;
  }

  .wm-access-shell {
    width: min(100% - 30px, 580px);
    padding: 30px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
  }
}

.wm-header-inner {
  display: flex;
  align-items: center;
  gap: 25px;
}

.wm-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.master-header .wm-header-brand span {
  border-left: 1px solid var(--line);
  color: #08736e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding-left: 10px;
}

.wm-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  margin-left: auto;
}

.wm-nav-link {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #536976;
  font-size: .79rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.wm-nav-link:hover, .wm-nav-link.current {
  background: #e9f5f2;
  border-color: #d1e8e2;
  color: #08736e;
}

.wm-logout {
  margin: 0;
}

.wm-page {
  max-width: 1550px;
}

.wm-shortcuts > a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  padding: 15px 0;
  text-decoration: none;
}

.wm-shortcuts > a:last-child {
  border-bottom: 0;
}

.wm-shortcuts > a > span:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e7f4f0;
  color: #08736e;
}

.wm-shortcuts strong, .wm-shortcuts small {
  display: block;
}

.wm-shortcuts strong {
  font-size: .82rem;
}

.wm-shortcuts small {
  color: var(--muted);
  font-size: .73rem;
  margin-top: 3px;
}

.wm-shortcuts > a > i {
  color: #0a8e88;
  font-size: .75rem;
}

.wm-shortcuts > a:hover strong {
  color: #08736e;
}

.wm-form-divider {
  border-top: 1px solid var(--line);
  color: var(--navy);
  margin-top: 20px;
  padding-top: 20px;
}

.wm-company-list, .wm-plan-list {
  display: grid;
  gap: 16px;
}

.wm-company-card, .wm-plan-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdfd;
  padding: 22px;
}

.wm-company-head, .wm-plan-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.wm-company-head h3, .wm-plan-summary h3 {
  color: var(--navy);
  font-size: .98rem;
  font-weight: 800;
  margin: 0;
}

.wm-company-head p, .wm-plan-summary p {
  color: var(--muted);
  font-size: .77rem;
  margin: 6px 0 0;
}

.wm-company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  color: #5f7582;
  font-size: .75rem;
  padding: 16px 0;
}

.wm-company-meta i {
  color: #0a8e88;
  margin-right: 5px;
}

.wm-company-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.wm-company-actions .form-select,
.wm-company-actions .form-control {
  min-width: 0;
}

.wm-plan-summary {
  align-items: center;
}

.wm-plan-summary > div:first-child {
  flex: 1;
}

.wm-plan-price {
  text-align: right;
  white-space: nowrap;
}

.wm-plan-price strong {
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: 1.17rem;
}

.wm-plan-price small {
  color: var(--muted);
  font-size: .7rem;
}

.wm-plan-highlight {
  border-radius: 30px;
  background: #e7f3f1;
  color: #08736e;
  font-size: .66rem;
  font-weight: 800;
  padding: 5px 9px;
}

.wm-plan-facts, .wm-plan-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.wm-plan-facts span, .wm-plan-resources span {
  border: 1px solid #dce9e9;
  border-radius: 7px;
  background: white;
  color: #526977;
  font-size: .72rem;
  padding: 7px 9px;
}

.wm-plan-resources i {
  color: #08736e;
}

.wm-plan-edit {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 22px;
}

.wm-plan-edit h4 {
  color: var(--navy);
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.wm-test-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 18px;
  border: 1px solid #dce6e8;
  border-radius: 10px;
  background: #f6f9f9;
  color: #5b7180;
  padding: 13px 16px;
  font-size: .77rem;
}

.wm-test-result strong {
  color: var(--navy);
}

.wm-test-result strong i {
  margin-right: 5px;
}

.wm-test-result.is-ok {
  border-color: #cde8dc;
  background: #f0f9f4;
}

.wm-test-result.is-ok strong {
  color: #147557;
}

.wm-test-result.is-error {
  border-color: #efcccc;
  background: #fff4f3;
}

.wm-test-result.is-error strong {
  color: #a03c3c;
}

.wm-test-result small {
  margin-left: auto;
}

.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal-dialog-scrollable .modal-content > form > .modal-body {
  overflow-y: auto;
}

@media (min-width: 1200px) {
  .wm-sticky-panel {
    position: sticky;
    top: 20px;
  }
}

@media (max-width: 1199px) {
  .wm-header-inner {
    flex-wrap: wrap;
  }

  .wm-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .wm-nav-link {
    white-space: nowrap;
  }

  .wm-logout {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .wm-company-actions {
    grid-template-columns: 1fr;
  }

  .wm-plan-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wm-plan-summary > div:first-child {
    flex-basis: 100%;
  }

  .wm-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wm-card-actions .d-flex {
    flex-wrap: wrap;
  }
}

@media (max-width: 575px) {
  .wm-header-inner {
    gap: 12px;
  }

  .wm-nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .wm-nav-link {
    font-size: .74rem;
    padding: 8px 10px;
  }
}

/* Acesso do aplicativo, separado do site público */
.app-access-body {
  min-width: 320px;
  background: #f5f8f8;
}

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

.app-access-side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 4vw, 64px);
  color: #fff;
  background: radial-gradient(circle at 90% 12%, #1b6270 0, transparent 36%), linear-gradient(160deg, #102b42, #092034 75%);
}

.app-access-side::before {
  content: '';
  position: absolute;
  top: -170px;
  right: -170px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, #31c3b63b, transparent 67%);
  pointer-events: none;
  animation: app-access-glow 10s ease-in-out infinite alternate;
}

.app-access-side::after {
  content: '';
  position: absolute;
  right: -170px;
  bottom: -260px;
  width: 540px;
  height: 540px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  pointer-events: none;
}

.app-access-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 15px;
  border-radius: 11px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.app-access-brand:hover { transform: translateY(-3px); box-shadow: 0 13px 26px #00172a55; }

.app-access-brand img { display: block; width: 166px; height: 41px; object-fit: contain; }
.app-access-side-content, .app-access-side-foot { position: relative; z-index: 1; }
.app-access-kicker { display: inline-flex; align-items: center; gap: 10px; color: #85e2d8; font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.app-access-kicker span { width: 8px; height: 8px; border-radius: 50%; background: #73e3d6; box-shadow: 0 0 0 5px #73e3d623; }
.app-access-kicker span { animation: app-access-pulse 3s ease-in-out infinite; }
.app-access-side h2 { max-width: 570px; margin: 24px 0 18px; font-size: clamp(2.45rem, 4.5vw, 4.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.06em; }
.app-access-side p { max-width: 440px; color: #b9d0d9; font-size: .95rem; line-height: 1.8; }
.app-access-steps { display: grid; max-width: 460px; margin-top: 40px; border-top: 1px solid #ffffff2c; }
.app-access-steps>div { display: flex; align-items: center; gap: 16px; min-height: 66px; border-bottom: 1px solid #ffffff2c; }
.app-access-steps>div { animation: app-access-step .65s both; }
.app-access-steps>div:nth-child(2) { animation-delay: .12s; }
.app-access-steps>div:nth-child(3) { animation-delay: .24s; }
.app-access-steps span { color: #71b9bf; font-size: .7rem; font-weight: 800; }
.app-access-steps i { width: 24px; color: #6adbcf; font-size: .98rem; text-align: center; }
.app-access-steps strong { font-size: .85rem; font-weight: 700; }
.app-access-side-foot { color: #9ebbc6; font-size: .78rem; }
.app-access-side-foot i { margin-right: 8px; color: #77e1d4; }

.app-access-main { display: grid; place-items: center; min-width: 0; min-height: 100vh; padding: clamp(26px, 4vw, 66px); }
.app-access-panel { position: relative; width: min(100%, 640px); padding: clamp(32px, 4vw, 54px); overflow: hidden; border: 1px solid #dce8e9; border-radius: 22px; background: #fff; box-shadow: 0 28px 70px #102b4218, 0 3px 10px #102b4209; animation: app-access-enter .65s cubic-bezier(.2,.8,.2,1) both; }
.app-access-panel::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #0a8e88, #6ce0d3 70%, transparent); }
.app-access-switch { display: inline-flex; gap: 5px; padding: 5px; margin-bottom: 36px; border: 1px solid #dbe7e8; border-radius: 12px; background: #eaf1f1; }
.app-access-switch a { min-width: 104px; padding: 9px 14px; border-radius: 8px; color: #657987; font-size: .8rem; font-weight: 800; text-align: center; text-decoration: none; }
.app-access-switch a.current { color: #102b42; background: #fff; box-shadow: 0 3px 10px #102b4214; }
.app-access-switch a:not(.current):hover { color: #0a8e88; background: #ffffff8c; }
.app-access-heading>span { color: #087d77; font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.app-access-heading h1 { margin: 12px 0; color: #102b42; font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; letter-spacing: -.052em; }
.app-access-heading p { max-width: 480px; margin-bottom: 31px; color: #657987; font-size: .92rem; line-height: 1.7; }
.app-access-form .form-label { margin-bottom: 7px; color: #263e50; font-size: .78rem; font-weight: 800; }
.app-access-form .form-control, .app-access-form .form-select { min-height: 50px; padding: .72rem .9rem; border: 1px solid #cddde0; border-radius: 9px; background: #fff; color: #263e50; font-size: .87rem; }
.app-access-form .form-control:focus, .app-access-form .form-select:focus { border-color: #0a8e88; box-shadow: 0 0 0 .2rem #0a8e8824; }
.app-access-form .form-control::placeholder { color: #a0b2b8; }
.app-access-form .form-check { color: #657987; font-size: .78rem; line-height: 1.55; }
.app-access-form .form-check-input:checked { background-color: #0a8e88; border-color: #0a8e88; }
.app-access-submit { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 53px; margin-top: 10px; font-size: .85rem; }
.app-access-submit i { transition: transform .2s ease; }
.app-access-submit:hover i { transform: translateX(5px); }
.app-access-hint { margin: 25px 0 31px; color: #657987; font-size: .84rem; text-align: center; }
.app-access-hint a { color: #087d77; font-weight: 800; text-decoration: none; }
.app-access-back { display: inline-flex; align-items: center; gap: 9px; color: #657987; font-size: .8rem; font-weight: 700; text-decoration: none; }
.app-access-back:hover { color: #0a8e88; }

@keyframes app-access-enter {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes app-access-step {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes app-access-glow {
  from { transform: translate(-18px, 16px) scale(.9); opacity: .55; }
  to { transform: translate(26px, -12px) scale(1.12); opacity: 1; }
}

@keyframes app-access-pulse {
  50% { box-shadow: 0 0 0 9px #73e3d60d; }
}

@media (max-width: 991px) {
  .app-access-shell { grid-template-columns: 1fr; }
  .app-access-side { position: relative; height: auto; min-height: 0; padding: 22px 28px; }
  .app-access-side-content, .app-access-side-foot { display: none; }
  .app-access-brand img { width: 145px; height: 36px; }
  .app-access-main { min-height: calc(100vh - 80px); padding: 45px 26px 65px; }
}

@media (max-width: 575px) {
  .app-access-side { padding: 16px 20px; }
  .app-access-brand { padding: 7px 12px; }
  .app-access-main { display: block; min-height: calc(100vh - 69px); padding: 22px 14px 55px; }
  .app-access-panel { padding: 29px 21px 34px; border-radius: 18px; }
  .app-access-switch { margin-bottom: 31px; }
  .app-access-heading h1 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .app-access-panel, .app-access-side::before, .app-access-kicker span, .app-access-steps>div { animation: none; }
}

/* App alinhado ao painel de referência FATURON */
.app-body {
  min-width: 320px;
  background: linear-gradient(180deg, #f7fafc 0, #f1f6f8 100%);
  color: #071a2d;
}

.app-sidebar {
  width: 280px;
  isolation: isolate;
  padding: 10px 14px 18px;
  background: linear-gradient(180deg, #081b2f 0%, #0d2a47 58%, #0b3446 100%);
  box-shadow: 16px 0 40px #071a2d14;
}

.app-sidebar::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 15% 10%, #4dd9cf20, transparent 25%), radial-gradient(circle at 90% 90%, #00bfa615, transparent 25%);
  content: '';
  pointer-events: none;
}

.app-brand {
  position: relative;
  z-index: 1;
  padding: 17px 15px;
  border: 0;
}

.app-brand img {
  max-width: 172px;
  max-height: 48px;
  padding: 5px 8px;
  border-radius: 10px;
}

.workspace-label {
  position: relative;
  z-index: 1;
  margin: 9px 4px 19px;
  padding: 14px 15px;
  border-color: #ffffff24;
  border-radius: 13px;
  background: #ffffff08;
}

.side-nav {
  position: relative;
  z-index: 1;
  padding: 0 3px;
}

.sidebar-foot {
  position: relative;
  z-index: 1;
}

.nav-group {
  margin: 22px 13px 9px;
  color: #9db3c3;
  font-size: .66rem;
  letter-spacing: .12em;
}

.side-nav a {
  min-height: 45px;
  margin: 3px 0;
  border-radius: 11px;
  color: #d0dce5;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.side-nav a:hover {
  transform: translateX(2px);
  background: #ffffff12;
}

.side-nav a.ativo,
.side-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, #00bfa62a, #ffffff10);
  box-shadow: inset 3px 0 #4dd9cf;
}

.side-nav a.ativo i,
.side-nav a.active i {
  color: #73e5dc;
}

.app-main {
  margin-left: 280px;
}

.app-topbar {
  min-height: 74px;
  border-bottom-color: #e6edf2;
  background: #ffffffed;
  backdrop-filter: blur(14px);
}

.app-content {
  max-width: 1580px;
  padding: 30px clamp(18px, 3vw, 44px) 46px;
}

.page-heading {
  margin-bottom: 26px;
}

.page-heading h1 {
  color: #0e2a47;
  font-size: clamp(1.7rem, 2vw, 2.25rem);
  letter-spacing: -.045em;
}

.page-heading p {
  margin-top: 8px;
  color: #64748b;
}

.metric-card,
.panel {
  border: 1px solid #e6edf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px #071a2d0b;
}

.metric-card {
  min-height: 150px;
  padding: 22px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px #071a2d12;
}

.metric-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #00bfa61e;
  border-radius: 13px;
  background: #00bfa612;
  color: #008e81;
}

.panel {
  padding: clamp(17px, 2vw, 25px);
}

.panel-heading {
  min-height: 42px;
  margin-bottom: 17px;
}

.panel-heading h2 {
  color: #0e2a47;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.quick-grid a {
  min-height: 136px;
  padding: 18px;
  border: 1px solid #e6edf2;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f7fafc);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.quick-grid a:hover {
  transform: translateY(-3px);
  border-color: #a5dfd8;
  box-shadow: 0 14px 30px #0e2a4710;
}

.app-table {
  min-width: 720px;
  vertical-align: middle;
}

.app-table th {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #64748b;
  font-size: .7rem;
  letter-spacing: .07em;
}

.app-table td {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #334155;
}

.app-body .form-control,
.app-body .form-select {
  min-height: 44px;
  border-color: #dbe5eb;
  border-radius: 10px;
}

.app-body .form-control:focus,
.app-body .form-select:focus {
  border-color: #00a897;
  box-shadow: 0 0 0 .2rem #00bfa61c;
}

.app-body .modal-content {
  overflow: hidden;
  border: 1px solid #e6edf2;
  border-radius: 18px;
  box-shadow: 0 24px 72px #071a2d30;
}

.app-body .modal-header {
  padding: 20px 24px;
  border-bottom-color: #e9eff3;
  background: #fbfdfe;
}

.app-body .modal-body {
  padding: 23px 24px;
}

.app-body .modal-footer {
  padding: 16px 24px;
  border-top-color: #e9eff3;
}

.app-body .btn-teal {
  border-radius: 10px;
  background: #078f86;
  box-shadow: 0 7px 16px #078f8625;
}

.app-body [data-lookup-status],
.app-body [data-cep-status] {
  display: block;
  min-height: 1.1em;
  margin-top: 4px;
  color: #637787;
  font-size: .75rem;
}

@media (max-width: 991px) {
  .app-sidebar {
    width: 280px;
    transform: translateX(-105%);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }
}

@media (max-width: 575px) {
  .app-content {
    padding: 19px 14px 30px;
  }

  .panel {
    padding: 16px;
    border-radius: 15px;
  }

  .app-body .modal-body {
    padding: 18px 16px;
  }

  .app-body .modal-header,
  .app-body .modal-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-nav a,
  .metric-card,
  .quick-grid a {
    transition: none;
  }
}

.master-body .page-heading {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.master-body .page-heading h1 {
  color: #0e2a47;
}

.master-body .page-heading p {
  color: #64748b;
}

.master-body .page-heading .eyebrow {
  color: #008e81;
}

