:root {
  --bg-1: #f2f6f7;
  --bg-2: #e7eef0;
  --ink: #1a2b2f;
  --muted: #607178;
  --card: #ffffff;
  --brand: #0f7a74;
  --brand-dark: #0a5b56;
  --brand-text: #ffffff;
  --accent: #e58e2b;
  --danger: #c74343;
  --ok: #2f8f57;
  --line: #d7e2e4;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 122, 116, 0.12), transparent 32%),
    radial-gradient(circle at 85% 90%, rgba(229, 142, 43, 0.16), transparent 30%),
    linear-gradient(120deg, var(--bg-1), var(--bg-2));
  color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-mark,
.brand-tenant-name {
  font-family: "Space Grotesk", sans-serif;
}

.auth-screen {
  min-height: 100vh;
  min-width: 100vw;
  background-color: #e9f9f8; /* cinza levinho de fundo, igual Salesforce */
}

.auth-card {
  width: 100%;
  max-width: 680px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffff !important;
}

.auth-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.sidebar {
  background: #f8fbfb;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(26, 43, 47, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.brand-copy {
  min-width: 0;
}

.brand-tenant-name {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.dashboard-refresh-btn {
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(15, 122, 116, 0.25);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(20, 48, 58, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-refresh-btn:hover,
.dashboard-refresh-btn:focus {
  border-color: var(--brand);
  background: #eef8f7;
  color: var(--brand-dark);
  box-shadow: 0 6px 16px rgba(15, 122, 116, 0.13);
  outline: none;
}

.dashboard-refresh-btn:active {
  transform: scale(0.96);
}

.dashboard-refresh-btn i {
  font-size: 0.9rem;
}

.module-page-header {
  min-height: 48px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.module-page-header h2 {
  margin-bottom: 0.2rem !important;
}

.module-header-actions,
.module-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.module-action-btn,
.module-icon-btn,
.module-view-btn,
.module-filter-btn,
.module-load-more-btn {
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.module-action-btn {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.module-action-primary {
  border-color: var(--brand-dark);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 122, 116, 0.18);
}

.module-action-primary:hover,
.module-action-primary:focus {
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 122, 116, 0.25);
  outline: none;
}

.module-action-secondary,
.module-icon-btn,
.module-load-more-btn {
  border-color: rgba(15, 122, 116, 0.22);
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(20, 48, 58, 0.06);
}

.module-action-secondary:hover,
.module-action-secondary:focus,
.module-icon-btn:hover,
.module-icon-btn:focus,
.module-load-more-btn:hover,
.module-load-more-btn:focus {
  border-color: var(--brand);
  background: #eef8f7;
  color: var(--brand-dark);
  outline: none;
}

.module-action-danger {
  border-color: rgba(199, 67, 67, 0.22);
  background: #fff;
  color: var(--danger);
  box-shadow: 0 4px 12px rgba(199, 67, 67, 0.07);
}

.module-action-danger:hover,
.module-action-danger:focus {
  border-color: rgba(199, 67, 67, 0.4);
  background: #fff1f1;
  color: var(--danger);
  outline: none;
}

.module-action-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--brand-dark);
  box-shadow: none;
}

.module-action-ghost:hover,
.module-action-ghost:focus {
  border-color: rgba(15, 122, 116, 0.16);
  background: rgba(15, 122, 116, 0.08);
  color: var(--brand-dark);
  outline: none;
}

.module-action-btn-sm {
  min-height: 32px;
  padding: 0.4rem 0.62rem;
  border-radius: 9px;
  font-size: 0.74rem;
}

.module-action-btn:active,
.module-icon-btn:active,
.module-view-btn:active,
.module-filter-btn:active,
.module-load-more-btn:active {
  transform: scale(0.97);
}

.module-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.module-segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #edf3f4;
}

.module-segmented-control .module-icon-btn,
.module-segmented-control .module-action-btn {
  border: 0;
  box-shadow: none;
}

.module-view-btn {
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
}

.module-view-btn.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 3px 9px rgba(20, 48, 58, 0.1);
}

.module-filter-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

#finance-filter-wrap .d-md-flex {
  gap: 0.45rem;
}

.module-filter-btn {
  min-height: 36px;
  min-width: max-content;
  padding: 0.45rem 0.75rem;
  border-color: var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: visible;
}

.module-filter-btn.active {
  border-color: rgba(15, 122, 116, 0.24);
  background: #e3f2f0;
  color: var(--brand-dark);
}

.module-load-more-btn {
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.76rem;
}

.module-inline-actions {
  margin-left: auto;
}

.form-panel-heading {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.form-panel-heading > i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: #e3f2f0;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-panel-heading h5 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.form-panel-heading span {
  color: var(--muted);
  font-size: 0.76rem;
}

.entity-360-hero {
  position: relative;
  min-height: 132px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(15, 122, 116, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 250, 0.92)),
    radial-gradient(circle at 6% 10%, rgba(15, 122, 116, 0.16), transparent 32%),
    radial-gradient(circle at 94% 90%, rgba(229, 142, 43, 0.13), transparent 32%);
  box-shadow: 0 14px 34px rgba(20, 48, 58, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.entity-360-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.entity-360-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(15, 122, 116, 0.06);
  pointer-events: none;
}

.entity-360-hero h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.entity-360-kicker {
  margin-bottom: 0.2rem;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entity-360-subtitle,
.entity-360-hero .small-muted {
  max-width: min(620px, 70vw);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-360-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.entity-360-card,
#view-client-360 > .card,
#view-product-360 > .card,
#view-task-360 > .card,
#view-opportunity-360 > .card {
  border: 1px solid rgba(15, 122, 116, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 26px rgba(20, 48, 58, 0.065);
  overflow: hidden;
}

.entity-360-summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 252, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.06), transparent 34%);
}

.entity-360-summary .row > [class*="col-"] {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.entity-360-summary .small-muted {
  margin-bottom: 0.24rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.entity-360-summary strong {
  color: var(--ink);
  font-weight: 850;
}

#view-client-360 .card h5,
#view-product-360 .card h5,
#view-task-360 .card h5,
#view-opportunity-360 .card h5 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.015em;
}

.entity-360-hero {
  position: relative;
  min-height: 132px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(15, 122, 116, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 250, 0.92)),
    radial-gradient(circle at 6% 10%, rgba(15, 122, 116, 0.16), transparent 32%),
    radial-gradient(circle at 94% 90%, rgba(229, 142, 43, 0.13), transparent 32%);
  box-shadow: 0 14px 34px rgba(20, 48, 58, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.entity-360-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.entity-360-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(15, 122, 116, 0.06);
  pointer-events: none;
}

.entity-360-hero h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.entity-360-kicker {
  margin-bottom: 0.2rem;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entity-360-subtitle,
.entity-360-hero .small-muted {
  max-width: min(620px, 70vw);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-360-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.entity-360-card,
#view-client-360 > .card,
#view-product-360 > .card,
#view-task-360 > .card,
#view-opportunity-360 > .card {
  border: 1px solid rgba(15, 122, 116, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 26px rgba(20, 48, 58, 0.065);
  overflow: hidden;
}

.entity-360-summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 252, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.06), transparent 34%);
}

.entity-360-summary .row > [class*="col-"] {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.entity-360-summary .small-muted {
  margin-bottom: 0.24rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.entity-360-summary strong {
  color: var(--ink);
  font-weight: 850;
}

#view-client-360 .card h5,
#view-product-360 .card h5,
#view-task-360 .card h5,
#view-opportunity-360 .card h5 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.015em;
}

.entity-360-hero {
  position: relative;
  min-height: 132px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(15, 122, 116, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 250, 0.92)),
    radial-gradient(circle at 6% 10%, rgba(15, 122, 116, 0.16), transparent 32%),
    radial-gradient(circle at 94% 90%, rgba(229, 142, 43, 0.13), transparent 32%);
  box-shadow: 0 14px 34px rgba(20, 48, 58, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.entity-360-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.entity-360-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(15, 122, 116, 0.06);
  pointer-events: none;
}

.entity-360-hero h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.entity-360-kicker {
  margin-bottom: 0.2rem;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entity-360-subtitle,
.entity-360-hero .small-muted {
  max-width: min(620px, 70vw);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-360-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.entity-360-card,
#view-client-360 > .card,
#view-product-360 > .card,
#view-task-360 > .card,
#view-opportunity-360 > .card {
  border: 1px solid rgba(15, 122, 116, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 26px rgba(20, 48, 58, 0.065);
  overflow: hidden;
}

.entity-360-summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 252, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.06), transparent 34%);
}

.entity-360-summary .row > [class*="col-"] {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.entity-360-summary .small-muted {
  margin-bottom: 0.24rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.entity-360-summary strong {
  color: var(--ink);
  font-weight: 850;
}

#view-client-360 .card h5,
#view-product-360 .card h5,
#view-task-360 .card h5,
#view-opportunity-360 .card h5 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.015em;
}

.mobile-table-tools {
  margin-bottom: 0.5rem;
  justify-content: flex-end;
}

.settings-shell {
  display: block;
}

.settings-hero {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.95)),
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.1), transparent 36%);
  box-shadow: 0 10px 28px rgba(20, 48, 58, 0.065);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-hero h2 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.settings-kicker,
.settings-card-label {
  color: var(--brand-dark);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.settings-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.settings-overview-card,
.settings-section-card {
  border: 1px solid rgba(15, 122, 116, 0.11);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 48, 58, 0.055);
  overflow: hidden;
}

.settings-collapse-toggle {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.96));
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.settings-collapse-toggle:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(15, 122, 116, 0.16);
}

.settings-collapse-toggle > span:first-child {
  min-width: 0;
}

.settings-collapse-toggle strong {
  margin-top: 0.12rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: block;
}

.settings-collapse-toggle small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  display: block;
}

.settings-collapse-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.settings-collapse-meta em {
  font-style: normal;
}

.settings-collapse-meta i {
  color: var(--brand-dark);
  transition: transform 0.18s ease;
}

.settings-collapse-toggle[aria-expanded="true"] .settings-collapse-meta i {
  transform: rotate(180deg);
}

.settings-section-card > .collapse > .card-body {
  border-top: 1px solid var(--line);
  background: #fff;
}

.settings-overview-card .card-body {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.settings-overview-card strong {
  margin-top: 0.4rem;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.settings-overview-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.settings-section-head {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.settings-section-head h3 {
  color: var(--ink);
  font-weight: 850;
}

.settings-section-head p {
  max-width: 760px;
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.settings-tabs {
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf3f4;
  gap: 0.25rem;
}

.settings-tabs .nav-item {
  margin-bottom: 0;
}

.settings-tabs .nav-link {
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 850;
}

.settings-tabs .nav-link.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(20, 48, 58, 0.08);
}

.settings-form-panel,
.settings-table-panel {
  border: 1px solid rgba(215, 226, 228, 0.95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 48, 58, 0.035);
}

.settings-form-panel {
  padding: 1rem;
}

.settings-form-panel.is-readonly {
  background: #f8fbfb;
}

.payments-shell .payments-header { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.82); box-shadow: 0 8px 24px rgba(26,43,47,.06); }
.payments-shell .card { border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(26,43,47,.045); }
.payments-shell .table thead th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.payments-shell .table td { vertical-align: middle; }

.contracts-shell {
  --contracts-surface: #ffffff;
  --contracts-soft: #f5f9f9;
}

.contracts-page-header {
  margin-bottom: 1rem;
}

.contracts-toolbar,
.contracts-list-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--contracts-surface);
  box-shadow: 0 6px 18px rgba(26, 43, 47, .045);
}

.contracts-toolbar {
  padding: .9rem 1rem;
}

.contracts-toolbar-top,
.contracts-filters,
.contracts-summary,
.contracts-scope-wrap,
.contract-primary-cell,
.contract-client-link,
.contract-date-range,
.contract-document-actions,
.contract-actions {
  display: flex;
  align-items: center;
}

.contracts-toolbar-top {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.contracts-summary {
  flex-wrap: wrap;
  gap: .3rem .7rem;
  min-width: 0;
}

.contracts-summary-label {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 900;
}

.contracts-count {
  color: var(--brand-dark);
  font-size: .76rem;
  font-weight: 850;
}

.contracts-filters {
  gap: .65rem;
}

.contracts-search-field,
.contracts-status-field {
  position: relative;
  margin: 0;
}

.contracts-search-field {
  flex: 1 1 auto;
}

.contracts-status-field {
  flex: 0 0 190px;
}

.contracts-search-field > i {
  position: absolute;
  top: 50%;
  left: .85rem;
  z-index: 1;
  color: var(--muted);
  font-size: .8rem;
  transform: translateY(-50%);
}

.contracts-search-field .form-control {
  padding-left: 2.25rem;
}

.contracts-scope-wrap {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: .35rem;
  min-height: 38px;
}

.contracts-scope-wrap .btn-link {
  padding: .2rem .35rem;
  color: var(--brand-dark);
  font-weight: 800;
}

.contracts-list-panel {
  overflow: hidden;
}

.contracts-list-panel .table-responsive {
  overflow-x: auto;
}

.contracts-list-panel table {
  margin: 0;
}

.contracts-list-panel thead th {
  padding: .75rem .9rem;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contracts-list-panel tbody td {
  padding: .85rem .9rem;
  border-top: 1px solid rgba(215, 226, 228, .72);
  color: var(--ink);
  vertical-align: middle;
}

.contract-primary-cell {
  gap: .65rem;
  min-width: 190px;
}

.contract-file-icon {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(15, 122, 116, .1);
  color: var(--brand-dark);
}

.contract-primary-copy {
  display: block;
  min-width: 0;
}

.contract-primary-copy strong,
.contract-primary-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-primary-copy strong {
  max-width: 260px;
  font-size: .86rem;
  font-weight: 850;
}

.contract-primary-copy small {
  margin-top: .15rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.contract-client-link,
.contract-date-range {
  gap: .4rem;
}

.contract-client-link {
  max-width: 190px;
  color: var(--brand-dark);
  font-weight: 800;
}

.contract-client-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-date-range {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}

.contract-date-range i {
  color: var(--brand);
}

.contract-value {
  white-space: nowrap;
}

.contract-document-actions,
.contract-actions {
  gap: .3rem;
}

.contract-document-actions .module-action-btn,
.contract-actions .btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.contract-actions-cell {
  text-align: right;
}

.contract-actions {
  justify-content: flex-end;
}

.contracts-empty-state {
  padding: 2.5rem 1rem !important;
  color: var(--muted) !important;
  text-align: center;
}

.contracts-empty-state i,
.contracts-empty-state strong,
.contracts-empty-state span {
  display: block;
}

.contracts-empty-state i {
  margin-bottom: .55rem;
  color: var(--brand);
  font-size: 1.4rem;
}

.contracts-empty-state strong {
  color: var(--ink);
  font-size: .9rem;
}

.contracts-empty-state span {
  margin-top: .2rem;
  font-size: .78rem;
}

@media (max-width: 767.98px) {
  .payments-shell .payments-header,
  .payments-shell .card { border-radius: 10px; }
  .payments-shell .payments-header { padding: 1rem; gap: .75rem; }
  .payments-shell .payments-header h2 { font-size: 1.25rem; }
  .payments-shell .payments-header .module-action-btn { width: 100%; justify-content: center; }
  .payments-shell .card-body { padding: .85rem; }
  .payments-shell .form-group { margin-bottom: .65rem; }
  .payments-shell .table-responsive { overflow-x: visible; }
  .payments-shell table thead { display: none; }
  .payments-shell table,
  .payments-shell tbody,
  .payments-shell tr,
  .payments-shell td { display: block; width: 100%; }
  .payments-shell tbody tr { margin-bottom: .75rem; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .payments-shell tbody td { border: 0; padding: .25rem 0; display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
  .payments-shell tbody td:last-child { justify-content: flex-end; padding-top: .65rem; }
  .payments-shell .modal-dialog { margin: .5rem; max-width: calc(100% - 1rem); }
  .payments-shell .modal-body { max-height: calc(100vh - 170px); overflow-y: auto; }
  .contracts-page-header { align-items: center; }
  .contracts-page-header .small-muted { max-width: 215px; }
  .contracts-toolbar { padding: .8rem; border-radius: 12px; }
  .contracts-toolbar-top { align-items: flex-start; gap: .6rem; margin-bottom: .7rem; }
  .contracts-summary { display: block; }
  .contracts-summary-label,
  .contracts-summary .small-muted,
  .contracts-count { display: block; }
  .contracts-summary .small-muted { margin-top: .12rem; font-size: .7rem; }
  .contracts-count { margin-top: .15rem; }
  .contracts-toolbar-top #btn-load-more-contracts { width: 36px; min-width: 36px; height: 36px; padding: 0; }
  .contracts-toolbar-top #btn-load-more-contracts span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .contracts-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .contracts-status-field { flex: none; }
  .contracts-scope-wrap { min-height: 0; justify-content: flex-start; }
  .contracts-list-panel { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .contracts-list-panel .table-responsive { overflow: visible; }
  .contracts-list-panel table,
  .contracts-list-panel tbody,
  .contracts-list-panel tr,
  .contracts-list-panel td { display: block; width: 100%; }
  .contracts-list-panel thead { display: none; }
  .contracts-list-panel tbody tr.contract-row { margin-bottom: .7rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--contracts-surface); box-shadow: 0 5px 15px rgba(26, 43, 47, .04); }
  .contracts-list-panel tbody td[data-label] { display: flex; width: 100%; justify-content: space-between; align-items: flex-start; gap: .75rem; border: 0; padding: .48rem 0; text-align: right; overflow-wrap: anywhere; }
  .contracts-list-panel tbody td[data-label]::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: .64rem; font-weight: 900; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
  .contracts-list-panel tbody td[data-label="Contrato"] { display: block; padding-top: 0; padding-bottom: .7rem; text-align: left; }
  .contracts-list-panel tbody td[data-label="Contrato"]::before { display: none; }
  .contract-primary-cell { align-items: flex-start; }
  .contract-primary-copy strong { max-width: none; white-space: normal; line-height: 1.25; }
  .contract-primary-copy small { white-space: normal; }
  .contract-client-link { max-width: 68%; justify-content: flex-end; text-align: right; }
  .contract-date-range { max-width: 68%; justify-content: flex-end; white-space: normal; text-align: right; }
  .contracts-list-panel tbody td[data-label="Documento"] { align-items: center; }
  .contracts-list-panel tbody td[data-label="Acoes"] { justify-content: flex-end; padding-top: .7rem; margin-top: .25rem; border-top: 1px solid var(--line); }
  .contracts-list-panel tbody td[data-label="Acoes"]::before { display: none; }
  .contract-actions { flex-wrap: wrap; justify-content: flex-end; }
  .contracts-empty-state { min-height: 150px; padding: 2rem 1rem !important; }
  #modal-contract .modal-dialog,
  #modal-contract-close .modal-dialog { margin: .5rem; max-width: calc(100% - 1rem); }
  #modal-contract .modal-content,
  #modal-contract-close .modal-content { max-height: calc(100vh - 1rem); }
  #modal-contract .modal-body,
  #modal-contract-close .modal-body { overflow-y: auto; padding: .9rem; }
  #modal-contract .modal-header,
  #modal-contract .modal-footer,
  #modal-contract-close .modal-header,
  #modal-contract-close .modal-footer { padding: .8rem .9rem; }
  #modal-contract .modal-footer,
  #modal-contract-close .modal-footer { display: flex; flex-wrap: wrap; gap: .5rem; }
  #modal-contract .modal-footer .module-action-btn,
  #modal-contract-close .modal-footer .module-action-btn { margin: 0; flex: 1 1 10rem; }
  #modal-contract .form-row { margin-right: -.35rem; margin-left: -.35rem; }
  #modal-contract .form-row > [class*="col-"] { padding-right: .35rem; padding-left: .35rem; }
  #modal-contract .form-group { margin-bottom: .7rem; }
  #modal-contract .form-control,
  #modal-contract .form-control-file { max-width: 100%; }
  #modal-contract strong { overflow-wrap: anywhere; }
  .module-page-header { gap: .75rem; }
  .module-page-header .module-header-actions { width: 100%; }
  .module-page-header .module-header-actions .module-action-btn { width: 100%; justify-content: center; }
}

.settings-form-builder {
  padding: 0.9rem;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.07), transparent 34%),
    #f8fbfb;
}

.settings-form-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.settings-form-builder-head strong,
.settings-form-builder-head small {
  display: block;
}

.settings-form-builder-head strong {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.settings-form-builder-head small {
  margin-top: 0.14rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.settings-form-plan-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(215, 169, 74, 0.28);
  border-radius: 999px;
  background: rgba(215, 169, 74, 0.1);
  color: #8a6418;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.settings-form-wizard-steps {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  border: 1px solid rgba(15, 122, 116, 0.1);
  border-radius: 999px;
  background: #eef5f5;
}

.settings-form-wizard-steps span {
  flex: 1;
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.settings-form-wizard-steps span.is-active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 5px 14px rgba(20, 48, 58, 0.08);
}

.settings-form-builder-screen {
  padding: 0.95rem;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.09), transparent 34%),
    #f8fbfb;
}

.settings-form-builder-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 122, 116, 0.1);
}

.settings-form-builder-hero span {
  color: var(--brand-dark);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-form-builder-hero h6 {
  margin: 0.08rem 0 0.18rem;
  color: var(--ink);
  font-weight: 900;
}

.settings-form-builder-hero p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.settings-existing-fields-panel {
  padding: 0.85rem;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(20, 48, 58, 0.045);
}

.settings-form-builder-screen .settings-existing-fields-panel {
  margin-bottom: 0.85rem;
}

.settings-existing-fields-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.settings-existing-fields-heading span,
.settings-existing-fields-heading small {
  display: block;
}

.settings-existing-fields-heading span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.settings-existing-fields-heading small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.settings-existing-fields-heading > i {
  color: var(--brand);
}

.settings-existing-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.settings-existing-field-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(15, 122, 116, 0.09);
  border-radius: 12px;
  background: #f8fbfb;
}

.settings-existing-field-card > div {
  min-width: 0;
  flex: 1;
}

.settings-existing-field-card strong,
.settings-existing-field-card code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-existing-field-card strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.settings-existing-field-card code,
.settings-field-api-preview {
  display: block;
  min-height: 15px;
  margin-top: 0.25rem;
  color: var(--brand-dark);
  font-size: 0.66rem;
  font-weight: 800;
}

.settings-existing-field-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(15, 122, 116, 0.1);
  color: var(--brand);
  font-size: 0.7rem;
}

.settings-existing-field-type {
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 850;
  text-transform: uppercase;
}

.settings-existing-fields-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.settings-custom-field-create {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 122, 116, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f7fbfa);
}

.settings-custom-field-create-head {
  margin-bottom: 0.85rem;
}

.settings-custom-field-create-head span,
.settings-custom-field-create-head small {
  display: block;
}

.settings-custom-field-create-head span {
  color: var(--ink);
  font-weight: 900;
}

.settings-custom-field-create-head small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.settings-manager-visibility {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(15, 122, 116, 0.1);
  border-radius: 12px;
  background: rgba(248, 251, 250, 0.9);
}

.settings-manager-visibility > span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.settings-manager-visibility > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
}

.settings-manager-visibility > small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.settings-object-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(15, 122, 116, 0.1);
  border-radius: 15px;
  background: #f3f8f7;
}

.settings-object-tab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.68rem 0.75rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  transition: 0.16s ease;
}

.settings-object-tab i {
  color: var(--brand);
}

.settings-object-tab span {
  overflow: hidden;
  flex: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-object-tab small {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(15, 122, 116, 0.09);
  color: var(--brand-dark);
  font-size: 0.64rem;
  font-weight: 900;
}

.settings-object-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.settings-object-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(20, 48, 58, 0.08);
}

.settings-object-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 90px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.settings-object-empty i {
  color: var(--brand);
}

.settings-custom-field-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.55rem;
}

.settings-custom-field-list-head span,
.settings-custom-field-list-head small {
  display: block;
}

.settings-custom-field-list-head span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.settings-custom-field-list-head small {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.settings-confirm-modal {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(20, 48, 58, 0.2);
}

.settings-confirm-modal .modal-header {
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-bottom-color: rgba(20, 48, 58, 0.08);
}

.settings-confirm-eyebrow {
  display: block;
  margin-bottom: 0.08rem;
  color: #b42318;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-confirm-modal .modal-title {
  color: var(--ink);
  font-weight: 900;
}

.settings-confirm-content {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.settings-confirm-danger-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(180, 35, 24, 0.09);
  color: #b42318;
}

.settings-confirm-content strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-weight: 900;
}

.settings-confirm-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.settings-api-name-control {
  position: relative;
}

.settings-api-name-control i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0.75rem;
  color: var(--brand);
  transform: translateY(-50%);
}

.settings-api-name-control input {
  padding-left: 2.1rem;
  background: #f2f7f6;
  color: var(--brand-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.settings-form-field-summary {
  min-height: 52px;
}

.settings-form-empty-state {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px dashed rgba(15, 122, 116, 0.18);
  border-radius: 13px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.settings-form-empty-state i {
  color: var(--brand-dark);
}

.settings-form-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.settings-form-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid rgba(15, 122, 116, 0.1);
  border-radius: 13px;
  background: #fff;
}

.settings-form-summary-card strong,
.settings-form-summary-card span {
  display: block;
}

.settings-form-summary-card strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.settings-form-summary-card span {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.settings-form-summary-card i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(15, 122, 116, 0.09);
  color: var(--brand-dark);
  font-size: 0.72rem;
}

.settings-form-field-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(125px, 0.7fr) minmax(145px, 0.8fr) minmax(185px, 1fr) 38px;
  align-items: start;
  gap: 0.7rem;
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(15, 122, 116, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 15px rgba(20, 48, 58, 0.035);
}

.settings-form-field-row .form-group label,
.settings-form-required-field > span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.settings-form-field-visibility > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.settings-field-visibility-options {
  display: grid;
  gap: 0.15rem;
}

.settings-field-visibility-options .custom-control-label {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.settings-form-field-row .form-group label {
  margin-bottom: 0.5rem;
}

.settings-form-options {
  grid-column: 1 / -1;
}

.settings-form-required-field .custom-control {
  min-height: 31px;
  display: flex;
  align-items: center;
}

.settings-form-required-field .custom-control-label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.settings-form-field-remove {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 69, 69, 0.18);
  border-radius: 11px;
  background: rgba(214, 69, 69, 0.08);
  color: #b42318;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.55rem;
  transition: all 0.16s ease;
}

.settings-form-field-remove:hover {
  background: rgba(214, 69, 69, 0.14);
  transform: translateY(-1px);
}

.settings-table-panel {
  overflow: hidden;
}

.settings-table-panel .table {
  margin-bottom: 0;
}

.settings-table-panel thead th {
  border-top: 0;
  background: #f8fbfb;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.settings-theme-card {
  overflow: hidden;
}

.settings-theme-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.settings-theme-fields {
  display: grid;
  gap: 0.72rem;
}

.settings-theme-field {
  padding: 0.75rem;
  border: 1px solid rgba(215, 226, 228, 0.95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(20, 48, 58, 0.035);
}

.settings-theme-field-head {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

.settings-theme-picker {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.settings-theme-picker::-webkit-color-swatch-wrapper {
  padding: 4px;
}

.settings-theme-picker::-webkit-color-swatch {
  border: 0;
  border-radius: 9px;
}

.settings-theme-field label {
  margin-bottom: 0.05rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  display: block;
}

.settings-theme-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.settings-theme-preview {
  min-height: 100%;
  border: 1px solid rgba(15, 122, 116, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.95)),
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.1), transparent 36%);
  box-shadow: 0 8px 22px rgba(20, 48, 58, 0.055);
  overflow: hidden;
}

.settings-theme-preview-top {
  height: 38px;
  padding: 0 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 251, 0.78);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.settings-theme-preview-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(96, 113, 120, 0.25);
}

.settings-theme-preview-body {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.settings-theme-preview-title {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.settings-theme-preview-text {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.settings-theme-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.settings-whatsapp-license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.settings-whatsapp-license-grid > div {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem;
}

.settings-whatsapp-license-grid span,
.settings-whatsapp-license-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.settings-whatsapp-license-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0.25rem 0;
}

.quote-builder-section {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin-bottom: 14px;
}

.quote-builder-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.quote-builder-section-head > span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e7f8ef;
  color: #0f6b43;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.quote-builder-section-head strong,
.quote-builder-section-head small {
  display: block;
}

.quote-builder-section-head small {
  color: var(--muted);
}

.quote-client-summary {
  display: none;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 800;
  padding: 10px 12px;
}

.quote-client-collapsed .quote-client-summary {
  display: block;
}

.quote-client-collapsed .quote-client-fields,
.quote-client-collapsed #btn-unlock-quote-address {
  display: none;
}

.quote-wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.quote-wizard-steps span {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
  text-align: center;
}

.quote-wizard-steps span.active {
  border-color: rgba(18, 140, 74, .35);
  background: #e7f8ef;
  color: #0f6b43;
}

.quote-wizard-steps span.done {
  border-color: rgba(18, 140, 74, .2);
  color: #0f6b43;
}

.quote-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quote-review-grid > div {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.quote-review-grid small,
.quote-review-grid strong {
  display: block;
}

.quote-review-grid small {
  color: var(--muted);
  font-size: .76rem;
  margin-bottom: 4px;
}

.quote-review-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.quote-items-scroll {
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
}

.quote-items-scroll .quote-table {
  margin-bottom: 0 !important;
}

.quote-items-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.quote-remove-item-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(220, 53, 69, .18);
  border-radius: 8px;
  background: #fff5f5;
  color: #c92a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-remove-item-btn:hover {
  background: #ffe3e3;
  color: #a61e1e;
}

.quote-review-products {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
  margin-top: 12px;
  max-height: 240px;
  overflow: auto;
}

.quote-review-products-title {
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  color: var(--ink);
  font-weight: 900;
  padding: 10px 12px;
}

.quote-review-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.quote-review-product-row + .quote-review-product-row {
  border-top: 1px solid rgba(15, 23, 42, .06);
}

.quote-review-product-row strong,
.quote-review-product-row small {
  display: block;
}

.quote-review-product-row small,
.quote-review-products-empty {
  color: var(--muted);
}

.quote-review-product-row em {
  color: #0f6b43;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.quote-review-products-empty {
  padding: 14px;
  text-align: center;
}

.quote-inline-product-panel {
  border: 1px solid rgba(18, 140, 74, .16);
  border-radius: 8px;
  background: #f8fffb;
  padding: 12px;
  margin-bottom: 12px;
}

.quote-inline-product-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.quote-inline-product-tools-single {
  grid-template-columns: 1fr;
}

.quote-inline-product-list {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.quote-inline-product-row {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.quote-inline-product-row:hover,
.quote-inline-product-row.active {
  border-color: #18a65f;
  background: #eefaf4;
}

@media (max-width: 768px) {
  .quote-wizard-steps,
  .quote-review-grid {
    grid-template-columns: 1fr;
  }
}

/* Contracts follows the compact table/card pattern used by Payments. */
.contracts-shell .contracts-header {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(26, 43, 47, .06);
}

.contracts-shell .contracts-header-actions,
.contracts-shell .contracts-scope-wrap {
  display: flex;
  align-items: center;
}

.contracts-shell .contracts-header-actions { gap: .5rem; }
.contracts-shell .contracts-filter-card,
.contracts-shell .contracts-list-card { border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(26, 43, 47, .045); }
.contracts-shell .contracts-filter-card .card-body { padding: 1rem; }
.contracts-shell .contracts-page-tools { min-height: 32px; gap: .75rem; }
.contracts-shell .contracts-page-tools .module-action-btn { white-space: nowrap; }
.contracts-shell .contracts-scope-wrap { min-height: 38px; gap: .25rem; white-space: nowrap; }
.contracts-shell .contracts-list-card .table-responsive { overflow-x: auto; }
.contracts-shell .contracts-list-card .table thead th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.contracts-shell .contracts-list-card .table td { vertical-align: middle; }

@media (max-width: 767.98px) {
  .contracts-shell .contracts-header,
  .contracts-shell .contracts-filter-card,
  .contracts-shell .contracts-list-card { border-radius: 10px; }
  .contracts-shell .contracts-header { padding: 1rem; gap: .75rem; }
  .contracts-shell .contracts-header h2 { font-size: 1.25rem; }
  .contracts-shell .contracts-header .small-muted { font-size: .75rem; line-height: 1.3; }
  .contracts-shell .contracts-header-actions { width: 100%; }
  .contracts-shell .contracts-header-actions .module-action-btn { width: 100%; justify-content: center; }
  .contracts-shell .contracts-filter-card .card-body { padding: .85rem; }
  .contracts-shell .contracts-page-tools { align-items: center; margin-bottom: .35rem !important; }
  .contracts-shell .contracts-page-tools #btn-load-more-contracts { width: 36px; min-width: 36px; height: 36px; padding: 0; }
  .contracts-shell .contracts-page-tools #btn-load-more-contracts span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .contracts-shell .form-group { margin-bottom: .65rem; }
  .contracts-shell .contracts-scope-wrap { min-height: 38px; justify-content: flex-start; }
  .contracts-shell .contracts-scope-wrap .btn-link { padding-left: 0; }
  .contracts-shell .contracts-list-card .table-responsive { overflow-x: visible; }
  .contracts-shell .contracts-list-card table thead { display: none; }
  .contracts-shell .contracts-list-card table,
  .contracts-shell .contracts-list-card tbody,
  .contracts-shell .contracts-list-card tr,
  .contracts-shell .contracts-list-card td { display: block; width: 100%; }
  .contracts-shell .contracts-list-card tbody tr { margin-bottom: .75rem; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .contracts-shell .contracts-list-card tbody td { display: flex; justify-content: space-between; gap: .75rem; align-items: center; border: 0; padding: .25rem 0; }
  .contracts-shell .contracts-list-card tbody td:first-child { display: block; padding-top: 0; padding-bottom: .55rem; }
  .contracts-shell .contracts-list-card tbody td:last-child { justify-content: flex-end; padding-top: .65rem; margin-top: .3rem; border-top: 1px solid var(--line); }
  .contracts-shell .contract-primary-cell { align-items: flex-start; }
  .contracts-shell .contract-primary-copy strong { max-width: none; white-space: normal; line-height: 1.25; }
  .contracts-shell .contract-primary-copy small { white-space: normal; }
  .contracts-shell .contract-client-link,
  .contracts-shell .contract-date-range { max-width: 68%; justify-content: flex-end; text-align: right; white-space: normal; }
  .contracts-shell .contract-document-actions { justify-content: flex-end; }
  .contracts-shell .contract-actions { flex-wrap: wrap; justify-content: flex-end; }
}

.opportunities-shell .opp-toolbar {
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(26, 43, 47, .045);
}

.opportunities-shell .opp-table-card,
.products-shell > .card {
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(26, 43, 47, .045);
}

.opportunities-shell .opp-table td,
.products-shell table td { vertical-align: middle; }

@media (max-width: 767.98px) {
  .opportunities-shell .opp-header,
  .products-shell .module-page-header { align-items: flex-start; }
  .opportunities-shell .opp-header > div:first-child,
  .products-shell .module-page-header > div:first-child { flex: 1 1 auto; min-width: 0; }
  .opportunities-shell .opp-header .small-muted { display: block; max-width: 180px; }
  .opportunities-shell .opp-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .opportunities-shell .opp-summary-card { padding: .7rem; }
  .opportunities-shell .opp-summary-value { font-size: 1rem; }
  .opportunities-shell .opp-summary-hint { font-size: .7rem; }
  .opportunities-shell .opp-toolbar { padding: .75rem; border-radius: 10px; }
  .opportunities-shell .opp-toolbar-controls { grid-template-columns: 1fr; gap: .55rem; }
  .opportunities-shell .opp-table-card { border-radius: 10px; }
  .opportunities-shell .opp-table-card .table-responsive,
  .products-shell > .card .table-responsive { overflow-x: visible; }
  .opportunities-shell .opp-table thead,
  .products-shell table thead { display: none; }
  .opportunities-shell .opp-table,
  .opportunities-shell .opp-table tbody,
  .opportunities-shell .opp-table tr,
  .opportunities-shell .opp-table td,
  .products-shell table,
  .products-shell table tbody,
  .products-shell table tr,
  .products-shell table td { display: block; width: 100%; }
  .opportunities-shell .opp-table tbody tr,
  .products-shell table tbody tr { margin-bottom: .75rem; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .opportunities-shell .opp-table tbody td,
  .products-shell table tbody td { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border: 0; padding: .25rem 0; text-align: right; overflow-wrap: anywhere; }
  .opportunities-shell .opp-table tbody td:first-child,
  .products-shell table tbody td:first-child { display: block; padding-top: 0; padding-bottom: .55rem; text-align: left; }
  .opportunities-shell .opp-table tbody td:first-child::before,
  .products-shell table tbody td:first-child::before { display: none; }
  .opportunities-shell .opp-table tbody td:not(:first-child)::before,
  .products-shell table tbody td:not(:first-child)::before { flex: 0 0 auto; color: var(--muted); font-size: .64rem; font-weight: 900; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
  .opportunities-shell .opp-table tbody td:nth-child(2)::before { content: "Cliente"; }
  .opportunities-shell .opp-table tbody td:nth-child(3)::before { content: "Produtos"; }
  .opportunities-shell .opp-table tbody td:nth-child(4)::before { content: "Etapa"; }
  .opportunities-shell .opp-table tbody td:nth-child(5)::before { content: "Valor"; }
  .opportunities-shell .opp-table tbody td:nth-child(6)::before { content: "Responsavel"; }
  .opportunities-shell .opp-table tbody td:nth-child(7)::before { content: "Prevista"; }
  .opportunities-shell .opp-table tbody td:nth-child(8)::before { content: "Movimento"; }
  .products-shell table tbody td:nth-child(2)::before { content: "Preco base"; }
  .products-shell table tbody td:nth-child(3)::before { content: "Categoria"; }
  .products-shell table tbody td:nth-child(4)::before { content: "Status"; }
  .opportunities-shell .opp-table tbody td:not(:first-child) > *,
  .products-shell table tbody td:not(:first-child) > * { max-width: 68%; text-align: right; }
  .opportunities-shell .opp-table tbody td:nth-child(3) { align-items: flex-start; }
  .opportunities-shell .opp-table tbody td:nth-child(3) { white-space: normal; }
  .opportunities-shell .opp-table tbody td:nth-child(6) a { overflow-wrap: anywhere; }
  .opportunities-shell .opp-table tbody td:last-child,
  .products-shell table tbody td:last-child { padding-bottom: 0; }
  .products-shell .module-header-actions { flex-wrap: nowrap; }
  .products-shell .module-header-actions .module-action-btn { width: 36px; min-width: 36px; height: 36px; padding: 0; }
  .products-shell .module-header-actions .module-action-btn span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .products-shell > .d-flex { gap: .65rem; }
  .products-shell #products-page-info { min-width: 0; }
  .products-shell #btn-load-more-products { flex: 0 0 auto; }
  .opportunities-shell .opp-kanban-grid { grid-template-columns: 1fr; }
  .opportunities-shell .opp-kanban-lane .kanban-col { max-height: none; }
}

.quote-inline-product-row strong,
.quote-inline-product-row small {
  display: block;
}

.quote-inline-product-row small,
.quote-inline-product-empty {
  color: var(--muted);
}

.quote-inline-product-row em {
  color: #0f6b43;
  font-style: normal;
  font-weight: 900;
}

.mobile-columns-btn.dropdown-toggle::after {
  display: none;
}

.mobile-columns-menu {
  min-width: 210px;
  max-height: min(360px, 65vh);
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20, 48, 58, 0.18);
}

.mobile-columns-title {
  padding: 0.35rem 0.45rem 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-column-option {
  margin: 0;
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.mobile-column-option:hover {
  background: #eef8f7;
}

.mobile-column-option input {
  accent-color: var(--brand);
}

.mobile-overview-hero {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 16px 34px rgba(10, 91, 86, 0.2);
  overflow: hidden;
}

.mobile-overview-hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: -75px;
  right: -45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-overview-hero::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: -165px;
  left: 18%;
  border: 38px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}

.mobile-dashboard-hero {
  background: linear-gradient(135deg, #0f7a74, #084e4b);
}

.mobile-finance-hero {
  background: linear-gradient(135deg, #173f4a, #0f7a74);
}

.mobile-overview-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-overview-title {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
}

.mobile-overview-subtitle {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.mobile-overview-stats {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.mobile-overview-stats > div {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.mobile-overview-stats strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-overview-stats span {
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.58rem;
  white-space: nowrap;
}

#view-dashboard .metric-card,
#view-finance .metric-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 132px;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.1), transparent 42%);
  box-shadow: 0 10px 28px rgba(20, 48, 58, 0.07);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#dashboard-metrics,
#finance-metrics {
  align-items: stretch;
}

#dashboard-metrics > [class*="col-"],
#finance-metrics > [class*="col-"] {
  display: flex;
  min-width: 0;
}

#view-dashboard .metric-card .card-body,
#view-finance .metric-card .card-body {
  width: 100%;
  display: flex;
  align-items: stretch;
  padding: 1rem 1.05rem;
}

#view-dashboard .metric-card .metric-card-inner,
#view-finance .metric-card .metric-card-inner {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}

#view-dashboard .metric-card .metric-card-copy,
#view-finance .metric-card .metric-card-copy {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

#view-dashboard .metric-card .metric-label,
#view-finance .metric-card .metric-label {
  min-height: 0;
  max-width: calc(100% - 48px);
  display: flex;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  overflow: hidden;
}

#view-dashboard .metric-card .metric-value,
#view-finance .metric-card .metric-value {
  min-height: 1.35em;
  display: flex;
  align-items: center;
  max-width: 100%;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.18rem, 1.45vw, 1.52rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-dashboard .metric-card::before,
#view-finance .metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), rgba(229, 142, 43, 0.85));
}

#view-dashboard .metric-card::after,
#view-finance .metric-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(15, 122, 116, 0.055);
  pointer-events: none;
}

#view-dashboard .metric-card:hover,
#view-finance .metric-card:hover {
  border-color: rgba(15, 122, 116, 0.28);
  box-shadow: 0 16px 34px rgba(20, 48, 58, 0.11);
  transform: translateY(-2px);
}

#view-dashboard .metric-card .fa-lg,
#view-finance .metric-card .fa-lg {
  position: absolute;
  z-index: 2;
  top: 0.95rem;
  right: 1rem;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f4f2, #f4f8f8);
  color: var(--brand-dark) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

#dashboard-pulse .card,
#dashboard-funnel .card,
#dashboard-alerts .card,
#finance-insights .card {
  border-color: rgba(15, 122, 116, 0.12);
  box-shadow: 0 8px 22px rgba(20, 48, 58, 0.07);
}

#dashboard-pulse .card h5,
#dashboard-funnel .card h5,
#dashboard-alerts .card h5,
#finance-insights .card h5 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

#dashboard-pulse .card h5::after,
#dashboard-alerts .card h5::after,
#finance-insights .card h5::after {
  content: "";
  width: 24px;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  display: block;
}

.dashboard-funnel-card {
  position: relative;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.96)),
    radial-gradient(circle at 0% 0%, rgba(15, 122, 116, 0.08), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(229, 142, 43, 0.08), transparent 30%);
  overflow: hidden;
}

.dashboard-funnel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), rgba(229, 142, 43, 0.9));
}

.dashboard-funnel-card .card-body {
  padding: 1.15rem;
}

.dashboard-funnel-head {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-funnel-kicker {
  margin-bottom: 0.18rem;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-funnel-total {
  min-width: max-content;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 16px rgba(20, 48, 58, 0.05);
  text-align: right;
}

.dashboard-funnel-total strong {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
}

.dashboard-funnel-total span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-funnel-summary {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.dashboard-funnel-summary > div {
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(15, 122, 116, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 5px 14px rgba(20, 48, 58, 0.04);
}

.dashboard-funnel-summary span {
  margin-bottom: 0.16rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  display: block;
}

.dashboard-funnel-summary strong {
  min-width: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.dashboard-funnel-list {
  display: grid;
  gap: 0.72rem;
}

.dashboard-funnel-row {
  position: relative;
  padding: 0.78rem;
  border: 1px solid rgba(215, 226, 228, 0.85);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 5px 16px rgba(20, 48, 58, 0.035);
  overflow: hidden;
}

.dashboard-funnel-row::before {
  content: "";
  position: absolute;
  top: 0.78rem;
  bottom: 0.78rem;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.dashboard-funnel-row-top {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.dashboard-funnel-stage strong,
.dashboard-funnel-amount strong {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.15;
  display: block;
}

.dashboard-funnel-stage span,
.dashboard-funnel-amount span {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  display: block;
}

.dashboard-funnel-amount {
  min-width: max-content;
  text-align: right;
}

.dashboard-funnel-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(15, 122, 116, 0.09);
  overflow: hidden;
}

.dashboard-funnel-bar {
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--accent));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.dashboard-funnel-empty-stages {
  margin-top: 0.1rem;
  padding: 0.78rem;
  border: 1px dashed rgba(96, 113, 120, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.dashboard-funnel-empty-stages > span {
  margin-bottom: 0.48rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  display: block;
}

.dashboard-funnel-empty-stages > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.dashboard-funnel-empty-stages em {
  padding: 0.32rem 0.52rem;
  border: 1px solid rgba(96, 113, 120, 0.16);
  border-radius: 999px;
  background: rgba(248, 251, 251, 0.82);
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.dashboard-funnel-empty {
  min-height: 138px;
  padding: 1rem;
  border: 1px dashed rgba(15, 122, 116, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.dashboard-funnel-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e6f4f2, #fff7ed);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.dashboard-funnel-empty strong {
  color: var(--ink);
  font-weight: 850;
  display: block;
}

.dashboard-funnel-empty span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  display: block;
}

@media (min-width: 992px) {
  .mobile-overview-hero {
    min-height: 156px;
    padding: 1.45rem 1.6rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.75fr);
    grid-template-rows: auto auto 1fr;
    align-items: center;
    column-gap: 2rem;
  }

  .mobile-overview-kicker,
  .mobile-overview-title,
  .mobile-overview-subtitle {
    grid-column: 1;
  }

  .mobile-overview-title {
    font-size: 2rem;
  }

  .mobile-overview-stats {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    margin-top: 0;
  }

  .mobile-overview-stats > div {
    min-height: 78px;
    padding: 0.8rem;
    justify-content: center;
  }

  .mobile-overview-stats strong {
    font-size: 1rem;
  }

  .mobile-overview-stats span {
    font-size: 0.66rem;
  }
}

.nav-pills .nav-link {
  color: var(--ink);
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

.nav-pills .nav-link:hover {
  color: var(--brand-dark);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--brand-text);
}

a {
  color: var(--brand-dark);
}

a:hover {
  color: var(--brand);
}

.content-area {
  animation: fadeIn 0.5s ease;
  position: relative;
}

.mobile-app-header {
  display: none;
}

.global-search-shell {
  position: sticky;
  top: 0;
  z-index: 1029;
  background: rgba(248, 251, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.global-search-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.desktop-search-row {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-right: 104px;
}

.desktop-search-row .global-search-wrap {
  margin: 0 auto;
}

.desktop-toolbar-actions {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  align-items: center;
  gap: 0.5rem;
}

.desktop-profile-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(20, 48, 58, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.desktop-profile-btn:hover,
.desktop-profile-btn:focus {
  border-color: var(--brand);
  background: #eef8f7;
  outline: none;
}

.desktop-profile-btn.dropdown-toggle::after {
  display: none;
}

.profile-dropdown-menu {
  min-width: 190px;
  margin-top: 0.45rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 48, 58, 0.16);
}

.profile-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-dropdown-menu .dropdown-item i {
  width: 18px;
  color: var(--brand-dark);
  text-align: center;
}

.profile-dropdown-menu .profile-logout-item,
.profile-dropdown-menu .profile-logout-item i {
  color: var(--danger);
}

.sidebar > .mt-auto {
  display: none;
}

.global-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.global-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(20, 48, 58, 0.06);
  padding: 0 2.75rem 0 2.5rem;
  font: inherit;
  outline: none;
}

.global-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 122, 116, 0.12), 0 8px 22px rgba(20, 48, 58, 0.08);
}

.global-search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.global-search-clear:hover {
  background: #eef5f6;
  color: var(--ink);
}

.email-verification-banner {
  position: sticky;
  top: 0;
  z-index: 1031;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #b91c1c;
  color: #fff;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.email-verification-banner.d-none {
  display: none !important;
}

.email-verification-banner .btn {
  font-weight: 700;
  color: #991b1b;
}

.content-area:has(.email-verification-banner:not(.d-none)) .global-search-shell {
  top: 42px;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(20, 48, 58, 0.16);
  max-height: min(480px, 70vh);
  overflow-y: auto;
  padding: 0.35rem;
  z-index: 1040;
}

.global-search-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  text-align: left;
}

.global-search-result:hover,
.global-search-result:focus {
  background: #eef7f6;
  outline: none;
}

.global-search-result-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eaf4f3;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.global-search-result-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.global-search-result-title {
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-result-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-empty {
  padding: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

#alerts {
  position: fixed;
  top: 4.75rem;
  left: calc(16.666667% + 1rem);
  right: 1rem;
  z-index: 1080;
  margin-bottom: 0 !important;
  padding: 0;
  pointer-events: none;
}

#alerts .alert {
  margin-bottom: 0;
  margin-left: auto;
  max-width: 720px;
  box-shadow: 0 10px 24px rgba(20, 48, 58, 0.12);
  pointer-events: auto;
}

.content-inner {
  padding-top: 0.75rem;
}

@media (max-width: 991.98px) {
  #alerts {
    left: calc(25% + 0.75rem);
    right: 0.75rem;
  }

  .desktop-search-row {
    padding-right: 96px;
  }

  .desktop-toolbar-actions {
    gap: 0.35rem;
  }

  .desktop-profile-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767.98px) {
  .global-search-shell {
    position: relative;
    top: auto;
  }

  .global-search-results {
    max-height: 60vh;
  }

  #alerts {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
  }

  #alerts .alert {
    max-width: none;
  }
}

.card {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(20, 48, 58, 0.06);
}

.metric-card .metric-value {
  font-size: 1.75rem;
  font-weight: 800;
}

.metric-card-clickable .metric-value {
  color: var(--brand-dark);
}

.metric-card-clickable {
  cursor: pointer;
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge-soft {
  background: #eaf4f3;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: var(--brand-text);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--brand-text);
}

.btn-outline-primary {
  color: var(--brand-dark);
  border-color: var(--brand);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: var(--brand-text);
}

.kanban-col {
  min-height: 320px;
  background: #f8fbfb;
  border: 1px dashed #c6d6d9;
  border-radius: 12px;
  padding: 0.75rem;
}

.kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}

.opp-header {
  gap: 0.75rem;
}

.opp-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.opp-summary-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.85rem;
  box-shadow: 0 4px 14px rgba(20, 48, 58, 0.05);
}

.opp-summary-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.opp-summary-value {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
}

.opp-summary-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.opp-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.opp-filter-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.opp-toolbar-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.8fr) minmax(190px, 0.8fr);
  gap: 0.5rem;
  flex: 1 1 560px;
  max-width: 820px;
}

.opp-table-card {
  overflow: hidden;
}

.opp-table tbody tr {
  cursor: pointer;
}

.opp-table tbody tr:hover {
  background: #f4fbfa;
}

.opp-kanban-lane {
  min-width: 0;
}

.opp-kanban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem;
  align-items: start;
}

.opp-kanban-lane-head {
  min-height: 48px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.opp-kanban-lane-head h6 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.15;
}

.opp-kanban-lane-head small {
  font-size: 0.7rem;
}

.opp-kanban-lane-head strong {
  font-size: 0.78rem;
  white-space: nowrap;
}

.opp-kanban-lane .kanban-col {
  border-radius: 0 0 8px 8px;
  min-height: 220px;
  max-height: 520px;
  overflow-y: auto;
  padding: 0.5rem;
}

.opp-kanban-card {
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.45rem;
  border-left-width: 3px;
  position: relative;
  cursor: grab;
}

.opp-kanban-card strong {
  font-size: 0.82rem;
}

.opp-kanban-card a,
.opp-kanban-card select {
  cursor: pointer;
}

.opp-kanban-card[data-locked="true"] {
  cursor: default;
}

.opp-kanban-chosen {
  cursor: grabbing;
}

.opp-kanban-ghost {
  opacity: 0.45;
  background: #eef8f7;
}

.opp-kanban-card .small-muted,
.opp-kanban-card small {
  font-size: 0.7rem;
}

.opp-kanban-card .form-control-sm {
  height: 28px;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  font-size: 0.74rem;
}

.opp-kanban-empty {
  border: 1px dashed #c6d6d9;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 0.75rem 0.6rem;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

@media (max-width: 991.98px) {
  .opp-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opp-toolbar-controls {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .opp-summary-grid {
    grid-template-columns: 1fr;
  }

  .opp-kanban-grid {
    grid-template-columns: 1fr;
  }
}

.timeline {
  position: relative;
  margin-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d4e2e4;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
}

.small-muted {
  color: var(--muted);
}

.whatsapp-shell {
  min-height: calc(100vh - 150px);
  background: linear-gradient(180deg, #f8fafc 0%, #eef7f2 100%);
  border-radius: 8px;
}

.whatsapp-loading,
.whatsapp-login,
.whatsapp-mobile-block {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-login-panel {
  max-width: 440px;
  text-align: center;
}

.whatsapp-login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f8ef;
  color: #128c4a;
  font-size: 34px;
}

.whatsapp-login-panel h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.whatsapp-login-panel p {
  color: var(--muted);
  margin-bottom: 18px;
}

.whatsapp-qr-box {
  min-height: 290px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--muted);
}

.whatsapp-qr-box img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.whatsapp-inbox {
  height: calc(100vh - 150px);
  min-height: 560px;
  max-height: calc(100vh - 150px);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(220px, 280px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .12);
}

.whatsapp-inbox.no-side-panel {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.whatsapp-chat-list {
  border-right: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.whatsapp-chat-list-header,
.whatsapp-conversation-header {
  height: 78px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-brand-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #0f172a;
  font-size: .98rem;
  font-weight: 900;
}

.whatsapp-brand-mark i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #128c4a, #20c777);
  box-shadow: 0 8px 18px rgba(18, 140, 74, .25);
}

.whatsapp-header-actions {
  display: flex;
  gap: 8px;
}

.whatsapp-chat-list-header #whatsapp-status-label i {
  color: #18a65f;
  font-size: .55rem;
}

.whatsapp-chat-list-header span,
.whatsapp-chat-subtitle,
#whatsapp-chat-subtitle {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

.whatsapp-list-tools {
  padding: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}

.whatsapp-search {
  height: 42px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--muted);
}

.whatsapp-search input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  font-size: .9rem;
  background: transparent;
}

.whatsapp-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 12px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.whatsapp-filter {
  min-width: 0;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  text-align: left;
}

.whatsapp-filter i {
  width: 15px;
  flex: 0 0 15px;
  color: #94a3b8;
  text-align: center;
}

.whatsapp-filter:hover {
  color: #334155;
  background: #fff;
}

.whatsapp-filter.active {
  border-color: #b7dfc8;
  background: #fff;
  color: #0f6b3d;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08), inset 3px 0 0 #18a65f;
}

.whatsapp-filter.active i {
  color: #18a65f;
}

.whatsapp-inbox-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #475569;
  font-size: .72rem;
  line-height: 1.35;
}

.whatsapp-inbox-notice i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #2563eb;
}

.whatsapp-new-chat input {
  height: 38px;
}

.whatsapp-new-chat {
  position: relative;
}

.whatsapp-new-chat i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #16a05d;
  font-size: .8rem;
  z-index: 1;
}

.whatsapp-new-chat input {
  padding-left: 32px;
  border-color: rgba(18, 140, 74, .18);
  background: #fbfffd;
}

.whatsapp-chat-items {
  height: calc(100vh - 350px);
  overflow-y: auto;
}

.whatsapp-chat-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  background: #fff;
  padding: 13px 12px;
  text-align: left;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0 10px;
  align-items: center;
}

.whatsapp-chat-item:hover,
.whatsapp-chat-item.active {
  background: #eefaf4;
}

.whatsapp-chat-item.active {
  box-shadow: inset 3px 0 0 #18a65f;
}

.whatsapp-chat-avatar,
.whatsapp-avatar,
.whatsapp-side-avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, #128c4a, #1fc77a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.whatsapp-chat-avatar {
  width: 42px;
  height: 42px;
  font-size: .82rem;
}

.whatsapp-chat-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.whatsapp-chat-name {
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-chat-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whatsapp-status-flag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .64rem;
  font-weight: 900;
  line-height: 1.35;
  border: 1px solid transparent;
}

.whatsapp-chat-flags,
.whatsapp-commercial-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.whatsapp-status-flag.attendance {
  color: #1e40af;
  background: #dbeafe;
  border-color: #93c5fd;
}

.whatsapp-status-flag.waiting {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fdba74;
}

.whatsapp-status-flag.closed {
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.whatsapp-status-flag.lead {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.whatsapp-status-flag.client {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.whatsapp-status-flag.quote {
  color: #7c4a03;
  background: #fff7db;
  border-color: #f6d36f;
}

.whatsapp-status-flag.approved {
  color: #11633c;
  background: #def7e8;
  border-color: #99dfb8;
}

.whatsapp-chat-time {
  color: var(--muted);
  font-size: .74rem;
}

.whatsapp-chat-meta {
  min-width: 42px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.whatsapp-unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #18a65f;
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-chat-preview {
  color: var(--muted);
  font-size: .84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-chat-phone {
  color: #64748b;
  font-size: .74rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-conversation {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(245, 248, 246, .96), rgba(245, 248, 246, .96)),
    radial-gradient(circle at 20% 20%, rgba(18, 140, 74, .08) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(15, 23, 42, .05) 0 1px, transparent 1px);
  background-size: auto, 28px 28px, 34px 34px;
}

.whatsapp-conversation-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}

.whatsapp-current-contact {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.whatsapp-avatar {
  width: 42px;
  height: 42px;
}

.whatsapp-current-contact strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-conversation-actions {
  display: flex;
  gap: 8px;
}

.whatsapp-messages {
  flex: 1;
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.whatsapp-empty-state {
  height: 100%;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.whatsapp-empty-state i {
  color: #128c4a;
  font-size: 2.4rem;
}

.whatsapp-empty-state strong {
  color: var(--text);
  font-size: 1rem;
}

.whatsapp-list-empty {
  height: 180px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .9rem;
}

.whatsapp-message-row {
  display: flex;
  margin-bottom: 11px;
}

.whatsapp-message-row.from-me {
  justify-content: flex-end;
}

.whatsapp-message-bubble {
  max-width: min(620px, 82%);
  border-radius: 10px 10px 10px 3px;
  padding: 9px 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.whatsapp-message-row.from-me .whatsapp-message-bubble {
  background: #d9fdd3;
  border-radius: 10px 10px 3px 10px;
}

.whatsapp-message-text {
  display: block;
  line-height: 1.45;
}

.whatsapp-media-card {
  min-width: min(300px, 70vw);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .66);
  border-radius: 8px;
  padding: 10px;
  white-space: normal;
}

.whatsapp-message-row.from-me .whatsapp-media-card {
  background: rgba(255, 255, 255, .46);
}

.whatsapp-media-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f6b43;
  background: #dff8ea;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.whatsapp-media-video .whatsapp-media-icon {
  color: #7c2d12;
  background: #ffedd5;
}

.whatsapp-media-audio .whatsapp-media-icon {
  color: #1d4ed8;
  background: #dbeafe;
}

.whatsapp-media-document .whatsapp-media-icon {
  color: #5b21b6;
  background: #ede9fe;
}

.whatsapp-media-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.whatsapp-media-copy strong {
  color: #111827;
  font-size: .88rem;
}

.whatsapp-media-copy small {
  color: #64748b;
  font-size: .75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whatsapp-message-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  color: rgba(15, 23, 42, .55);
  font-size: .7rem;
  text-align: right;
}

.whatsapp-message-status {
  color: #64748b;
  font-size: .72rem;
  display: inline-flex;
  align-items: center;
}

.whatsapp-message-status.received {
  color: #94a3b8;
}

.whatsapp-message-status.read,
.whatsapp-message-status.delivered {
  color: #0ea5e9;
}

.whatsapp-composer {
  padding: 14px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: end;
}

.whatsapp-composer textarea {
  resize: none;
  min-height: 44px;
  max-height: 120px;
  border-radius: 8px;
  border-color: rgba(15, 23, 42, .1);
  background: #f8fafc;
}

.whatsapp-quick-wrap {
  position: relative;
}

.whatsapp-quick-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 270px;
  max-width: min(270px, 80vw);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(15, 23, 42, .18);
  padding: 8px;
  z-index: 20;
}

.whatsapp-quick-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f6b43;
  font-size: .78rem;
  font-weight: 900;
  padding: 6px 8px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  margin-bottom: 4px;
}

.whatsapp-quick-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.whatsapp-quick-menu button:hover {
  background: #eef7f2;
}

.whatsapp-quick-menu strong {
  color: #111827;
  font-size: .84rem;
}

.whatsapp-quick-menu span {
  color: #64748b;
  font-size: .75rem;
}

.whatsapp-side-panel {
  border-left: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
  padding: 14px;
  min-height: 0;
  overflow-y: auto;
}

.whatsapp-side-card {
  text-align: center;
  padding: 14px 12px 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.whatsapp-side-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  font-size: 1.05rem;
}

.whatsapp-side-card strong,
.whatsapp-side-card span {
  display: block;
}

.whatsapp-side-card span {
  color: var(--muted);
  font-size: .82rem;
}

.whatsapp-contact-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.whatsapp-contact-kind.lead {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.whatsapp-contact-kind.client {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.whatsapp-contact-kind.none {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.whatsapp-side-section {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-transfer-notice {
  margin-top: .65rem;
  padding: .7rem .8rem;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fff8e7;
  color: #765317;
  font-size: .78rem;
  line-height: 1.45;
}

.whatsapp-transfer-notice i { color: #b07816; }

.whatsapp-side-label {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.whatsapp-attendance-toggle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.whatsapp-attendance-option {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  padding: 9px 10px;
  font-size: .82rem;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.whatsapp-attendance-option:hover {
  border-color: #b6d8c4;
  background: #f7fbf8;
}

.whatsapp-attendance-option.active {
  border-color: #18a65f;
  background: #e7f8ef;
  color: #106b3c;
  box-shadow: inset 3px 0 0 #18a65f;
}

.whatsapp-attendance-option[data-attendance-status="closed"].active {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #334155;
  box-shadow: inset 3px 0 0 #64748b;
}

.whatsapp-attendance-option:disabled {
  opacity: .7;
  cursor: wait;
}

.whatsapp-summary-empty {
  color: var(--muted);
  font-size: .82rem;
}

.whatsapp-related-modal {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  max-height: min(760px, calc(100vh - 48px));
}

.whatsapp-related-modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #f8fbf9;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.whatsapp-related-modal-header h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
}

.whatsapp-related-modal-header span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 2px;
}

.whatsapp-related-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e7f8ef;
  color: #128c4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.whatsapp-related-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 170px);
}

.whatsapp-related-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.whatsapp-related-search {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: #94a3b8;
}

.whatsapp-related-search input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  font-size: .88rem;
}

.whatsapp-related-count {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.whatsapp-related-filters {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  background: #f8fafc;
  margin-bottom: 14px;
}

.whatsapp-related-filters button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 850;
}

.whatsapp-related-filters button.active {
  background: #fff;
  color: #106b3c;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.whatsapp-related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  max-height: min(480px, calc(100vh - 290px));
}

.whatsapp-related-row {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  text-align: left;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.whatsapp-related-row:hover {
  border-color: #b6d8c4;
  background: #f7fbf8;
}

.whatsapp-related-row strong {
  color: var(--text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-related-row small {
  color: var(--muted);
  font-size: .82rem;
}

.whatsapp-related-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-related-row-action {
  color: #94a3b8;
}

.whatsapp-related-row-main {
  min-width: 0;
}

.whatsapp-related-empty {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.whatsapp-related-empty i {
  display: block;
  font-size: 1.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.whatsapp-related-empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

@media (max-width: 767.98px) {
  .whatsapp-inbox {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }

  .whatsapp-chat-list {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .whatsapp-chat-items {
    height: 230px;
  }

  .whatsapp-messages {
    height: 420px;
    min-height: 320px;
  }

  .whatsapp-side-panel {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .whatsapp-inbox {
    grid-template-columns: minmax(260px, 330px) 1fr;
  }

  .whatsapp-side-panel {
    display: none;
  }
}

.table thead th {
  border-top: none;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quote-row-highlight {
  background: #fff7db;
  box-shadow: inset 4px 0 0 #f0b429;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  body {
    overscroll-behavior-y: none;
  }

  #app-shell .container-fluid,
  #app-shell .row {
    min-width: 0;
  }

  .sidebar {
    position: fixed;
    z-index: 1045;
    left: 0;
    right: auto;
    top: calc(58px + env(safe-area-inset-top));
    bottom: 0;
    width: 58px;
    max-width: 58px;
    height: auto;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) !important;
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid var(--line);
    border-top: 0;
    border-bottom: 0;
    box-shadow: 8px 0 28px rgba(20, 48, 58, 0.1);
    backdrop-filter: blur(16px);
  }

  .sidebar > .brand,
  .sidebar > .btn-notif,
  .sidebar > .mt-auto {
    display: none !important;
  }

  .sidebar .nav-pills {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    padding: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .sidebar .nav-pills::-webkit-scrollbar {
    display: none;
  }

  .sidebar .nav-pills .nav-link {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0 0 4px;
    padding: 0;
    border-radius: 12px;
    display: flex;
    flex: 0 0 48px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
  }

  .sidebar .nav-pills .nav-link i {
    margin-right: 0 !important;
    font-size: 1.1rem;
  }

  .sidebar .nav-pills .nav-link.active {
    background: #e3f2f0;
    color: var(--brand-dark);
    box-shadow: inset 0 0 0 1px rgba(15, 122, 116, 0.12);
  }

  .sidebar .nav-pills .nav-link[data-view="settings"] {
    display: none;
  }

  .mobile-app-header {
    position: fixed;
    z-index: 1044;
    top: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    background: rgba(248, 251, 251, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-app-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
  }

  .mobile-app-brand img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    border-radius: 9px;
  }

  .mobile-app-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-actions {
    display: flex;
    gap: 6px;
    margin-left: 8px;
  }

  .mobile-header-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-header-btn.dropdown-toggle::after {
    display: none;
  }

  .mobile-profile-menu {
    min-width: 180px;
    margin-top: 0.45rem;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(20, 48, 58, 0.16);
  }

  .mobile-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
  }

  .mobile-profile-menu .dropdown-item i {
    width: 18px;
    color: var(--brand-dark);
    text-align: center;
  }

  .mobile-profile-menu .mobile-logout-item,
  .mobile-profile-menu .mobile-logout-item i {
    color: var(--danger);
  }

  .content-area {
    width: calc(100% - 58px);
    max-width: calc(100% - 58px);
    flex: 0 0 calc(100% - 58px);
    margin-left: 58px;
    padding-top: calc(58px + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .content-inner {
    max-width: 100%;
    overflow-x: hidden;
  }

  .global-search-shell {
    padding: 0.65rem 0.75rem;
  }

  .desktop-search-row {
    display: block;
    padding-right: 0;
  }

  .email-verification-banner {
    position: relative;
    top: auto;
    flex-direction: column;
    gap: 0.4rem;
  }

  .content-area:has(.email-verification-banner:not(.d-none)) .global-search-shell {
    top: auto;
  }

  .dashboard-page-header {
    min-height: 38px;
    margin-bottom: 0.65rem !important;
    padding: 0 0.15rem;
  }

  .dashboard-page-header h2 {
    margin: 0 !important;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
  }

  .dashboard-refresh-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-color: transparent;
    border-radius: 50%;
    background: rgba(15, 122, 116, 0.08);
    box-shadow: none;
    color: var(--brand);
  }

  .dashboard-refresh-btn:hover,
  .dashboard-refresh-btn:focus {
    border-color: transparent;
    background: rgba(15, 122, 116, 0.14);
    box-shadow: none;
  }

  .dashboard-refresh-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .dashboard-refresh-btn i {
    font-size: 0.85rem;
  }

  .module-page-header {
    min-height: 42px;
    margin-bottom: 0.75rem;
    gap: 0.55rem;
  }

  .module-page-header > div:first-child {
    min-width: 0;
  }

  .module-page-header h2 {
    margin: 0 !important;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
  }

  .module-page-header .small-muted {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .opp-header h2 {
    font-size: 1.1rem;
  }

  .opp-header .small-muted {
    display: none;
  }

  .module-header-actions {
    flex: 0 0 auto;
    gap: 0.3rem;
    flex-wrap: nowrap;
  }

  .module-page-header .module-action-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 10px;
  }

  .module-page-header .module-action-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .module-segmented-control {
    padding: 2px;
    gap: 2px;
    border-radius: 10px;
  }

  .module-view-btn {
    min-width: 34px;
    min-height: 32px;
    padding: 0.4rem 0.5rem;
  }

  .module-view-btn span {
    display: none;
  }

  .module-icon-btn {
    width: 34px;
    height: 34px;
  }

  .module-today-btn {
    width: auto !important;
    min-width: 46px !important;
    padding: 0 0.55rem !important;
    font-size: 0.72rem;
  }

  .module-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .module-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .module-filter-btn {
    flex: 0 0 max-content;
    width: max-content;
    max-width: none;
    min-height: 34px;
  }

  .module-load-more-btn {
    min-height: 32px;
    padding: 0.4rem 0.6rem;
  }

  .module-inline-actions .module-action-btn {
    min-height: 36px;
    padding: 0.45rem 0.65rem;
  }

  .settings-hero {
    padding: 0.95rem;
    border-radius: 15px;
    flex-direction: column;
    align-items: stretch;
  }

  .settings-hero h2 {
    font-size: 1.35rem;
  }

  .settings-subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .settings-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .settings-overview-card .card-body {
    min-height: 94px;
    padding: 0.75rem;
  }

  .settings-overview-card strong {
    font-size: 0.92rem;
  }

  .settings-overview-card span {
    font-size: 0.7rem;
  }

  .settings-section-card {
    border-radius: 14px;
  }

  .settings-section-card > .card-body {
    padding: 0.9rem;
  }

  .settings-collapse-toggle {
    padding: 0.9rem;
    align-items: flex-start;
  }

  .settings-collapse-toggle strong {
    font-size: 0.95rem;
  }

  .settings-collapse-toggle small {
    font-size: 0.74rem;
  }

  .settings-collapse-meta {
    gap: 0.38rem;
  }

  .settings-collapse-meta .badge {
    display: none;
  }

  .settings-section-head {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    flex-direction: column;
    gap: 0.55rem;
  }

  .settings-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .settings-tabs::-webkit-scrollbar {
    display: none;
  }

  .settings-tabs .nav-link {
    white-space: nowrap;
  }

  .settings-form-panel {
    padding: 0.85rem;
  }

  .settings-form-builder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-form-wizard-steps {
    border-radius: 14px;
    flex-direction: column;
  }

  .settings-form-builder-hero {
    flex-direction: column;
  }

  .settings-existing-fields-grid {
    grid-template-columns: 1fr;
    max-height: 220px;
  }

  .settings-existing-field-card {
    padding: 0.58rem;
  }

  .settings-existing-fields-panel {
    padding: 0.72rem;
  }

  .settings-object-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-form-summary-grid {
    grid-template-columns: 1fr;
  }

  .settings-form-field-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .settings-form-field-remove {
    width: 100%;
    margin-top: 0;
  }

  .settings-theme-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .settings-theme-field {
    padding: 0.68rem;
  }

  .settings-theme-preview-body {
    padding: 0.85rem;
  }

  .settings-theme-actions {
    flex-direction: column;
  }

  .settings-theme-actions .module-action-btn {
    width: 100%;
  }

  .mobile-table-tools {
    display: flex;
  }

  .mobile-columns-btn {
    min-height: 34px;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
  }

  .mobile-table-card {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-table-card > .card-body,
  .mobile-table-card > .table-responsive,
  .mobile-table-card .card-body.table-responsive {
    padding: 0;
    overflow: visible;
  }

  .mobile-card-table,
  .mobile-card-table tbody {
    width: 100%;
    display: block;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody tr {
    width: 100%;
    margin-bottom: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 48, 58, 0.06);
    display: block;
    overflow: hidden;
  }

  .mobile-card-table tbody td {
    min-height: 40px;
    padding: 0.6rem 0.7rem;
    border-top: 1px solid #edf2f3;
    display: grid;
    grid-template-columns: minmax(86px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 0.65rem;
    overflow-wrap: anywhere;
    text-align: right;
    font-size: 0.8rem;
  }

  .mobile-card-table tbody td:first-child {
    border-top: 0;
    background: #f8fbfb;
    font-weight: 800;
  }

  .mobile-card-table tbody td::before {
    content: attr(data-column-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
  }

  .mobile-card-table .table-column-mobile-hidden {
    display: none !important;
  }

  #dashboard-metrics,
  #finance-metrics {
    margin-right: 0;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 0.55rem;
  }

  #dashboard-metrics > [class*="col-"],
  #finance-metrics > [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    margin-bottom: 0 !important;
    padding-right: 0;
    padding-left: 0;
  }

  #dashboard-pulse > .row,
  #finance-insights > .row,
  #dashboard-alerts {
    margin-right: 0;
    margin-left: 0;
    display: block;
  }

  #dashboard-pulse > .row > [class*="col-"],
  #finance-insights > .row > [class*="col-"],
  #dashboard-alerts > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  #dashboard-metrics .card,
  #finance-metrics .card {
    min-height: 112px;
    height: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 48, 58, 0.06);
  }

  #dashboard-metrics .card-body,
  #finance-metrics .card-body {
    padding: 0.78rem;
  }

  #dashboard-metrics .metric-card-inner,
  #finance-metrics .metric-card-inner {
    gap: 0.62rem;
    justify-content: space-between;
  }

  #dashboard-metrics .metric-card-copy,
  #finance-metrics .metric-card-copy {
    width: 100%;
    min-width: 0;
    gap: 0.42rem;
  }

  #dashboard-metrics .metric-value,
  #finance-metrics .metric-value {
    margin-top: 0;
    font-size: clamp(0.86rem, 3.55vw, 1.02rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
    white-space: nowrap;
    overflow-wrap: normal;
    text-overflow: ellipsis;
  }

  #dashboard-metrics .metric-label,
  #finance-metrics .metric-label {
    max-width: calc(100% - 34px);
    min-height: 2.45em;
    font-size: 0.61rem;
    letter-spacing: 0.035em;
    line-height: 1.22;
  }

  #dashboard-metrics .fa-lg,
  #finance-metrics .fa-lg {
    position: absolute;
    top: 0.68rem;
    right: 0.68rem;
    flex-basis: auto;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    margin-left: 0;
    font-size: 0.74rem;
    opacity: 1;
    transform: none;
    pointer-events: none;
  }

  #dashboard-pulse .card,
  #finance-insights .card {
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(20, 48, 58, 0.07);
  }

  #dashboard-pulse .dashboard-summary-item ~ .dashboard-summary-item ~ .dashboard-summary-item {
    display: none;
  }

  #dashboard-pulse .card-body,
  #finance-insights .card-body {
    padding: 0.85rem;
  }

  #dashboard-funnel .card-body {
    padding: 0.9rem;
  }

  #dashboard-funnel .dashboard-funnel-row {
    padding: 0.65rem;
  }

  .dashboard-funnel-head {
    margin-bottom: 0.85rem;
    align-items: stretch;
    gap: 0.7rem;
  }

  .dashboard-funnel-total {
    padding: 0.5rem 0.6rem;
  }

  .dashboard-funnel-total strong {
    font-size: 0.9rem;
  }

  .dashboard-funnel-summary {
    margin-bottom: 0.78rem;
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .dashboard-funnel-summary > div {
    padding: 0.58rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .dashboard-funnel-summary span {
    margin-bottom: 0;
    font-size: 0.61rem;
  }

  .dashboard-funnel-summary strong {
    max-width: 58%;
    font-size: 0.88rem;
    text-align: right;
  }

  .dashboard-funnel-row-top {
    gap: 0.6rem;
  }

  .dashboard-funnel-stage strong,
  .dashboard-funnel-amount strong {
    font-size: 0.86rem;
  }

  .dashboard-funnel-stage span,
  .dashboard-funnel-amount span {
    font-size: 0.68rem;
  }

  .dashboard-funnel-empty {
    min-height: 126px;
    padding: 0.85rem;
    align-items: flex-start;
  }

  .dashboard-funnel-empty-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .dashboard-funnel-empty-stages {
    padding: 0.65rem;
  }

  .dashboard-funnel-empty-stages em {
    padding: 0.28rem 0.44rem;
    font-size: 0.68rem;
  }

  #finance-filter-wrap select {
    height: 40px;
    border-color: var(--line);
    border-radius: 11px;
    background: #fff;
    font-size: 0.82rem;
  }
}

/* ─── Notification bell ─────────────────────────────────────────────────── */
.btn-notif {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.btn-notif:hover {
  background: var(--bg-2);
}
.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ─── Notification panel ────────────────────────────────────────────────── */
.notif-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 24px rgba(20,48,58,0.12);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.notif-panel-hidden {
  transform: translateX(-100%);
  pointer-events: none;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--bg-2);
  position: relative;
  transition: background 0.12s;
}
.notif-item:hover {
  background: var(--bg-1);
}
.notif-unread {
  background: #f0faf9;
}
.notif-read {
  opacity: 0.7;
}
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #2da49d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.notif-read .notif-icon {
  background: #c8d8da;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-name {
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.opp-path-wrap {
  gap: 0.5rem;
}

.opp-path-step {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.opp-path-step:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #eef8f7;
}

.opp-path-step.is-completed {
  background: #e8f5f3;
  border-color: #bfe1dd;
  color: var(--brand-dark);
}

.opp-path-step.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand-dark);
  color: #fff;
}

.opp-path-step.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.opp-path-sep {
  color: #9aaeb4;
  font-size: 0.75rem;
}

/* Opportunity 360 */
#view-opportunity-360 {
  --opp360-border: rgba(15, 122, 116, 0.13);
  --opp360-shadow: 0 12px 32px rgba(20, 48, 58, 0.07);
}

.opp360-shell {
  width: 100%;
}

.opp360-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 144px;
  padding: 1.4rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--opp360-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 110%, rgba(229, 142, 43, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f2faf9 100%);
  box-shadow: var(--opp360-shadow);
}

.opp360-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.opp360-hero-copy,
.opp360-hero-actions {
  position: relative;
  z-index: 1;
}

.opp360-hero-copy {
  min-width: 0;
}

.opp360-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opp360-stage-chip {
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(15, 122, 116, 0.16);
  border-radius: 999px;
  background: rgba(15, 122, 116, 0.08);
  letter-spacing: 0.02em;
}

.opp360-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.opp360-title-row h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.opp360-icon-button,
.opp360-remove-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(15, 122, 116, 0.15);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.opp360-icon-button:hover,
.opp360-remove-button:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 15px rgba(15, 122, 116, 0.12);
  transform: translateY(-1px);
}

.opp360-client {
  width: min(100%, 440px);
  margin-top: 0.85rem;
}

.opp360-client a,
.opp360-client-empty {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(15, 122, 116, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.opp360-client a:hover {
  border-color: rgba(15, 122, 116, 0.3);
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 122, 116, 0.09);
  color: var(--brand-dark);
  text-decoration: none;
}

.opp360-client-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(15, 122, 116, 0.1);
  color: var(--brand-dark);
}

.opp360-client-copy {
  display: block;
  min-width: 0;
  line-height: 1.15;
}

.opp360-client-copy small,
.opp360-client-copy strong {
  display: block;
}

.opp360-client-copy small {
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.opp360-client-copy strong {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opp360-client-open {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  color: var(--brand-dark);
  font-size: 0.69rem;
  font-weight: 850;
  white-space: nowrap;
}

.opp360-hero-actions,
.opp360-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.opp360-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.opp360-metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  min-height: 94px;
  padding: 1rem;
  border: 1px solid var(--opp360-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 48, 58, 0.05);
}

.opp360-metric-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 122, 116, 0.09);
  color: var(--brand-dark);
}

.opp360-metric > div:nth-child(2) {
  min-width: 0;
}

.opp360-metric span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.opp360-metric strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.opp360-metric-value strong {
  font-size: 1.12rem;
  white-space: nowrap;
}

.opp360-metric .opp360-icon-button {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 0;
  background: rgba(15, 122, 116, 0.07);
  font-size: 0.72rem;
}

.opp360-panel,
#view-opportunity-360 > .opp360-shell > .card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--opp360-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 48, 58, 0.055);
}

#view-opportunity-360 > .opp360-shell > .card .card-body {
  padding: 0;
}

.opp360-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.opp360-section-eyebrow {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--brand-dark);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.opp360-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.opp360-section-heading p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.opp360-section-hint {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.opp360-path-panel {
  overflow: hidden;
}

.opp-path-wrap {
  display: grid;
  grid-template-columns: repeat(var(--opp-stage-count), minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  overflow: hidden;
  border-radius: 11px;
}

.opp-path-step {
  position: relative;
  min-width: 0;
  min-height: 42px;
  padding: 0.45rem 0.25rem 0.45rem 0.55rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf2f2;
  color: #52666b;
  font-size: clamp(0.62rem, 0.8vw, 0.76rem);
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
}

.opp-path-step:first-child {
  padding-left: 0.25rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}

.opp-path-step:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
}

.opp-path-step:hover:not(:disabled) {
  border: 0;
  background: #dcebea;
  color: var(--brand-dark);
  transform: none;
}

.opp-path-step.is-completed {
  background: #d8eeeb;
  color: var(--brand-dark);
}

.opp-path-step.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: none;
}

.opp-path-label-short {
  display: none;
}

.opp360-final-notice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(229, 142, 43, 0.2);
  border-radius: 13px;
  background: rgba(229, 142, 43, 0.07);
  color: #76511f;
  font-size: 0.84rem;
}

.opp360-product-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.opp360-product-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(15, 122, 116, 0.1);
  border-radius: 12px;
  background: #f9fbfb;
}

.opp360-product-list li > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.opp360-product-list li span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.opp360-remove-button {
  width: 32px;
  height: 32px;
  border-color: rgba(190, 55, 55, 0.13);
  color: #b83b3b;
}

.opp360-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.opp360-task-list {
  display: grid;
  gap: 0.45rem;
}

.opp360-task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f7faf9;
  color: var(--ink);
}

.opp360-task-item:hover {
  border-color: var(--opp360-border);
  color: var(--brand-dark);
  text-decoration: none;
}

.opp360-task-item strong,
.opp360-task-item small {
  display: block;
}

.opp360-task-item small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.opp360-task-status {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 122, 116, 0.09);
  color: var(--brand);
}

.opp360-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 90px;
  border: 1px dashed rgba(15, 122, 116, 0.18);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.opp360-timeline {
  max-height: 350px;
  padding-right: 0.25rem;
  overflow: auto;
}

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

@media (max-width: 767.98px) {
  .opp360-hero {
    min-height: 0;
    padding: 1.1rem;
    align-items: stretch;
    flex-direction: column;
  }

  .opp360-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .opp360-hero-actions .module-action-btn {
    justify-content: center;
  }

  .opp360-metrics {
    gap: 0.55rem;
  }

  .opp360-metric {
    min-height: 82px;
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .opp360-metric-icon {
    width: 34px;
    height: 34px;
  }

  .opp360-metric span {
    font-size: 0.59rem;
  }

  .opp360-metric strong,
  .opp360-metric-value strong {
    font-size: 0.86rem;
  }

  .opp360-panel,
  #view-opportunity-360 > .opp360-shell > .card {
    padding: 0.9rem;
    border-radius: 15px;
  }

  .opp360-section-heading {
    align-items: flex-start;
  }

  .opp360-section-hint {
    font-size: 0.68rem;
  }

  .opp-path-wrap {
    gap: 2px;
  }

  .opp-path-step {
    min-height: 38px;
    padding-right: 0.1rem;
    padding-left: 0.35rem;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 6px 50%);
  }

  .opp-path-step:first-child {
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
  }

  .opp-path-step:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6px 50%);
  }

  .opp-path-label {
    display: none;
  }

  .opp-path-label-short {
    display: inline;
    font-size: clamp(0.48rem, 2.1vw, 0.68rem);
    text-transform: uppercase;
  }

  .opp360-lower-grid {
    grid-template-columns: 1fr;
  }

  .opp360-products-summary .opp360-section-heading {
    align-items: center;
  }
}

@media (max-width: 420px) {
  .opp360-metric-icon {
    display: none;
  }

  .opp360-inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .opp360-inline-actions .module-action-btn {
    margin-right: 0 !important;
    justify-content: center;
  }

  .opp360-client-open span {
    display: none;
  }
}

/* Shared professional layout for Client, Product and Task 360 */
.record360-shell {
  --record360-border: rgba(15, 122, 116, 0.13);
  --record360-shadow: 0 10px 28px rgba(20, 48, 58, 0.065);
}

.record360-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 136px;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--record360-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 115%, rgba(229, 142, 43, 0.14), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f3faf9 100%);
  box-shadow: var(--record360-shadow);
}

.record360-product .record360-hero {
  background:
    radial-gradient(circle at 90% 115%, rgba(67, 121, 214, 0.13), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f4f8fb 100%);
}

.record360-task .record360-hero {
  background:
    radial-gradient(circle at 90% 115%, rgba(229, 142, 43, 0.15), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fbf8f2 100%);
}

.record360-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.record360-hero-copy,
.record360-hero-actions {
  position: relative;
  z-index: 1;
}

.record360-hero-copy {
  min-width: 0;
}

.record360-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.48rem;
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.record360-status-chip {
  max-width: 180px;
  padding: 0.24rem 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(15, 122, 116, 0.15);
  border-radius: 999px;
  background: rgba(15, 122, 116, 0.08);
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record360-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.record360-title-row h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.35vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.record360-subtitle {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.record360-hero-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.record360-icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(15, 122, 116, 0.15);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.record360-icon-button:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 15px rgba(15, 122, 116, 0.12);
  transform: translateY(-1px);
}

.record360-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.record360-task-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record360-metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 92px;
  padding: 0.95rem;
  border: 1px solid var(--record360-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 48, 58, 0.05);
}

.record360-metric-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 122, 116, 0.09);
  color: var(--brand-dark);
}

.record360-product .record360-metric-icon {
  background: rgba(67, 121, 214, 0.09);
  color: #3766ac;
}

.record360-task .record360-metric-icon {
  background: rgba(229, 142, 43, 0.1);
  color: #a86114;
}

.record360-metric > div {
  min-width: 0;
}

.record360-metric small,
.record360-info-item > small,
.record360-owner-panel small {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.record360-metric strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.record360-metric .record360-icon-button {
  width: 29px;
  height: 29px;
  margin-left: auto;
  border: 0;
  background: rgba(15, 122, 116, 0.07);
  font-size: 0.7rem;
}

.record360-phone-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-left: 6px;
}

.record360-metric .record360-phone-actions .record360-icon-button {
  margin-left: 0;
}

.record360-metric .record360-phone-whatsapp {
  border: 1px solid #b7e4c7;
  background: #e9f8ef;
  color: #128c4a;
}

.record360-metric .record360-phone-whatsapp:hover {
  border-color: #20a860;
  background: #d9f4e4;
  color: #0b6b38;
}

.record360-metric .record360-phone-edit {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.record360-metric .record360-phone-edit:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #334155;
}

.record360-panel,
.record360-shell > .card,
.record360-shell > .row .card {
  border: 1px solid var(--record360-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--record360-shadow);
}

.record360-panel {
  padding: 1.05rem 1.15rem;
}

.record360-shell > .card,
.record360-shell > .row .card {
  overflow: hidden;
}

.record360-shell > .card > .card-body,
.record360-shell > .row .card > .card-body {
  padding: 1.05rem 1.15rem;
}

.record360-shell .card h5 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.015em;
}

.record360-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.record360-info-item {
  position: relative;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(15, 122, 116, 0.09);
  border-radius: 12px;
  background: #f8fbfa;
}

.record360-info-item > strong {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

.record360-info-item p {
  margin: 0;
  color: #4d6065;
  font-size: 0.86rem;
  line-height: 1.55;
}

.record360-info-wide {
  grid-column: span 2;
}

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

.record360-edit-link {
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.record360-edit-link:hover {
  text-decoration: underline;
}

.record360-owner-panel {
  display: block;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.055), transparent 32%),
    #fff;
}

.record360-owner-panel strong {
  color: var(--ink);
  font-weight: 850;
}

.record360-owner-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(15, 122, 116, 0.09);
}

.record360-owner-heading-copy {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.record360-owner-heading-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 11px;
  background: rgba(15, 122, 116, 0.09);
  color: var(--brand-dark);
}

.record360-owner-heading small {
  display: block;
  margin: 0 0 0.05rem;
  color: var(--brand-dark);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record360-owner-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.record360-owner-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  min-width: 0;
  padding: 1.05rem 1.15rem 1.15rem;
}

.record360-owner-details > div {
  min-width: 0;
  padding: 0;
}

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

.record360-owner-details strong {
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.record360-lead-notes {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 122, 116, 0.12);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 122, 116, 0.055), rgba(255, 255, 255, 0.95));
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-line;
}

.record360-form-responses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.record360-form-responses > div {
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(15, 122, 116, 0.09);
  border-radius: 12px;
  background: #f8fbfa;
}

.record360-form-responses small,
.record360-form-responses strong {
  display: block;
}

.record360-form-responses small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.record360-form-responses strong {
  margin-top: 0.16rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.record360-fields-card {
  overflow: hidden;
}

.record360-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.record360-field-tile {
  min-height: 74px;
  padding: 0.78rem 0.84rem;
  border: 1px solid rgba(15, 122, 116, 0.09);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.96));
}

.record360-field-tile small,
.record360-field-tile strong {
  display: block;
}

.record360-field-tile small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.record360-field-tile strong {
  margin-top: 0.22rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-source-panel {
  margin: 0.3rem 0 1.1rem;
  padding: 1.15rem;
  border: 1px solid rgba(15, 122, 116, 0.13);
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 122, 116, 0.07), transparent 32%),
    #fff;
  box-shadow: 0 10px 28px rgba(20, 48, 58, 0.06);
}

.dashboard-source-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.dashboard-source-heading > div:first-child > span {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--brand-dark);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-source-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.dashboard-source-heading p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-source-summary {
  flex: 0 0 auto;
  min-width: 165px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(15, 122, 116, 0.11);
  border-radius: 12px;
  background: #f7fbfa;
}

.dashboard-source-summary small,
.dashboard-source-summary strong,
.dashboard-source-summary span {
  display: block;
}

.dashboard-source-summary small,
.dashboard-source-stat small {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-source-summary strong {
  margin: 0.12rem 0;
  color: var(--ink);
  font-size: 0.88rem;
}

.dashboard-source-summary span {
  color: var(--muted);
  font-size: 0.68rem;
}

.dashboard-source-list {
  display: grid;
  gap: 0.45rem;
}

.dashboard-source-row {
  display: grid;
  grid-template-columns: 28px minmax(150px, 1fr) repeat(3, minmax(70px, auto)) minmax(105px, auto);
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(15, 122, 116, 0.08);
  border-radius: 12px;
  background: #fafcfc;
}

.dashboard-source-rank {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: rgba(15, 122, 116, 0.09);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.dashboard-source-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.38rem;
}

.dashboard-source-name strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.dashboard-source-name span {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.dashboard-source-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9efef;
}

.dashboard-source-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.dashboard-source-stat strong {
  display: block;
  margin-top: 0.14rem;
  color: var(--ink);
  font-size: 0.78rem;
  white-space: nowrap;
}

.dashboard-source-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 110px;
  border: 1px dashed rgba(15, 122, 116, 0.18);
  border-radius: 13px;
  color: var(--muted);
}

.dashboard-source-empty i {
  font-size: 1.35rem;
  color: var(--brand);
}

.dashboard-source-empty strong,
.dashboard-source-empty span {
  display: block;
}

.dashboard-source-empty strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.dashboard-source-empty span {
  margin-top: 0.15rem;
  font-size: 0.72rem;
}

.record360-owner-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15, 122, 116, 0.08);
  color: var(--brand-dark);
}

.record360-owner-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.record360-related-grid ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record360-related-grid li {
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(15, 122, 116, 0.08);
  border-radius: 10px;
  background: #f8fbfa;
  font-size: 0.82rem;
}

.record360-client > .row ul,
.record360-activity-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record360-client > .row li,
.record360-activity-card li {
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(15, 122, 116, 0.08);
  border-radius: 10px;
  background: #f8fbfa;
  font-size: 0.82rem;
  line-height: 1.45;
}

.record360-shell > .card .d-flex > h5,
.record360-shell > .row .d-flex > h5 {
  align-self: center;
}

.record360-client .timeline,
.record360-activity-card {
  max-height: 430px;
  overflow: auto;
}

.record360-card-heading span {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--brand-dark);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.record360-card-heading h5 {
  margin-bottom: 0.9rem;
}

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

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

@media (max-width: 767.98px) {
  .record360-hero {
    min-height: 0;
    padding: 1.1rem;
    align-items: stretch;
    flex-direction: column;
  }

  .record360-hero-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .record360-hero-actions .module-action-btn {
    justify-content: center;
  }

  .record360-metrics,
  .record360-task-metrics {
    gap: 0.55rem;
  }

  .record360-metric {
    min-height: 82px;
    padding: 0.72rem;
    gap: 0.55rem;
  }

  .record360-metric-icon {
    width: 34px;
    height: 34px;
  }

  .record360-metric small {
    font-size: 0.56rem;
  }

  .record360-metric strong {
    font-size: 0.8rem;
  }

  .record360-panel,
  .record360-shell > .card > .card-body,
  .record360-shell > .row .card > .card-body {
    padding: 0.88rem;
  }

  .record360-info-grid {
    gap: 0.55rem;
  }

  .record360-owner-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
    padding: 0.35rem 0.88rem 0.65rem;
  }

  .record360-owner-panel {
    padding: 0;
  }

  .record360-owner-heading {
    padding: 0.78rem 0.88rem;
  }

  .record360-owner-heading .module-action-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
  }

  .record360-owner-heading .module-action-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .record360-owner-details > div {
    min-height: 58px;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(15, 122, 116, 0.09);
  }

  .record360-owner-details > div:nth-child(-n + 2) {
    border-top: 0;
  }

  .record360-owner-details strong {
    font-size: 0.8rem;
  }

  .record360-form-responses {
    grid-template-columns: 1fr;
  }

  .record360-fields-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-source-panel {
    padding: 0.9rem;
  }

  .dashboard-source-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-source-summary {
    min-width: 0;
  }

  .dashboard-source-row {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 0.6rem;
  }

  .dashboard-source-stat {
    display: none;
  }

  .dashboard-source-stat.dashboard-source-revenue {
    display: block;
    text-align: right;
  }
}

@media (max-width: 420px) {
  .record360-metric-icon {
    display: none;
  }

  .record360-info-grid {
    grid-template-columns: 1fr;
  }

  .record360-info-wide,
  .record360-info-full {
    grid-column: auto;
  }
}

.auth-logo {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.auth-split-card {
  display: flex;
  width: 1100px;
  max-width: 98vw;
  min-height: 680px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fafbf8;
}

.auth-split-left {
  flex: 0 0 42%;
  padding: 4rem 3.5rem;
  background-color: #fafbf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-split-divider {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, transparent, #8BAEC8 20%, #8BAEC8 80%, transparent);
}

.auth-split-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0; /* <- isso corrige o flex ignorando o overflow */
}

.auth-split-right img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Responsivo: empilha no mobile */
@media (max-width: 600px) {
  .auth-split-card {
    flex-direction: column;
  }
  .auth-split-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #8BAEC8 20%, #8BAEC8 80%, transparent);
  }
  .auth-split-right {
    min-height: 220px;
  }
}

.auth-title{
  text-align:center;
}

.agenda-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}

.agenda-calendar-head {
  margin-bottom: 1px;
  color: #5f6e85;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.agenda-calendar-head > div {
  padding: 0.45rem 0.25rem;
  background: #f5f7fb;
}

.agenda-calendar-day {
  position: relative;
  min-height: 128px;
  padding: 0.5rem;
  border: 1px solid #e5ebf3;
  background: #fff;
  color: inherit;
  text-align: left;
  overflow: hidden;
}

.agenda-calendar-day:hover {
  background: #f8fbff;
  border-color: var(--brand);
}

.agenda-calendar-day-muted {
  background: #f7f8fa;
  color: #8a97aa;
}

.agenda-calendar-day-today {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.agenda-calendar-number {
  display: inline-block;
  font-weight: 800;
  margin-right: 0.25rem;
}

.agenda-calendar-events {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

.agenda-calendar-event {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.08rem 0;
}

.agenda-calendar-event-past {
  color: #8a97aa;
  text-decoration: line-through;
}

.agenda-modal .modal-content,
.agenda-modal {
  border: 0;
}

.agenda-modal-header {
  align-items: center;
  border-bottom: 1px solid #e6edf5;
  background: #f8fafc;
}

.agenda-modal-stats {
  margin-left: auto;
  white-space: nowrap;
}

.agenda-modal-body {
  background: #f5f7fb;
}

.agenda-modal-list,
.agenda-modal-form {
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 1rem;
  min-height: 100%;
}

.agenda-modal-item {
  border: 1px solid #e6edf5;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.agenda-modal-item-past {
  border-left-color: #b6c0ce;
  background: #f8f9fb;
}

.agenda-modal-item-past .agenda-modal-title,
.agenda-modal-item-past .agenda-modal-desc {
  color: #7d8a9d;
}

.agenda-modal-time {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.agenda-modal-title {
  font-size: 1rem;
  font-weight: 800;
}

.agenda-modal-client {
  font-size: 0.86rem;
}

.agenda-modal-desc {
  margin-top: 0.55rem;
  color: #334155;
}

.import-shell {
  border: 1px solid #e5eaf1;
  box-shadow: 0 10px 30px rgba(24, 39, 75, .05);
}

.import-stepper {
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: .85rem;
  overflow-x: auto;
}

.import-stepper span {
  color: #8a96a8;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.import-stepper b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf1f6;
  margin-right: .35rem;
}

.import-stepper span.active { color: var(--brand); }
.import-stepper span.active b { color: #fff; background: var(--brand); }
.import-stepper span.done { color: #3d8a68; }
.import-stepper span.done b { color: #fff; background: #3d8a68; }

.import-dropzone {
  border: 1px dashed #b9c6d8;
  border-radius: 10px;
  padding: 3.25rem 1rem;
  text-align: center;
  background: #fbfcfe;
}

.import-dropzone > i { color: var(--brand); font-size: 2.4rem; margin-bottom: 1rem; }
.import-dropzone h4 { font-size: 1.1rem; font-weight: 800; }
.import-stat { border: 1px solid #e6ebf2; border-radius: 8px; padding: .7rem .85rem; background: #fff; }
.import-stat span { display: block; color: #728096; font-size: .75rem; }
.import-stat strong { font-size: 1.25rem; }
.import-preview-table { max-height: 430px; overflow: auto; border: 1px solid #e7ebf1; border-radius: 8px; }
.import-preview-table thead th { position: sticky; top: 0; z-index: 1; background: #f7f9fc; white-space: nowrap; }
.import-result { padding: 3rem 1rem; }
.import-result > i { font-size: 3.5rem; margin-bottom: 1rem; }

.agenda-modal-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b778a;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .agenda-calendar-day {
    min-height: 88px;
    padding: 0.35rem;
  }

  .agenda-calendar-events {
    font-size: 0.72rem;
  }
}

/* Final mobile overrides for Opportunities. These must stay after the shared module rules. */
@media (max-width: 767.98px) {
  .opportunities-shell {
    min-width: 0;
  }

  .opportunities-shell .opp-header {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
  }

  .opportunities-shell .opp-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .opportunities-shell .opp-header .module-header-actions {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .3rem;
    flex-wrap: nowrap;
  }

  .opportunities-shell .opp-header .module-header-actions .module-action-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }

  .opportunities-shell .opp-header .module-view-btn {
    min-width: 34px;
    min-height: 32px;
    padding: .4rem .5rem;
  }

  .opportunities-shell .opp-header .module-view-btn span,
  .opportunities-shell .opp-header .module-action-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .opportunities-shell .opp-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .opportunities-shell .opp-summary-card {
    min-width: 0;
    padding: .7rem;
  }

  .opportunities-shell .opp-summary-value {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .opportunities-shell .opp-summary-hint {
    font-size: .7rem;
    line-height: 1.25;
  }

  .opportunities-shell .opp-toolbar {
    padding: .75rem;
    border-radius: 10px;
  }

  .opportunities-shell .opp-toolbar-controls {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: .55rem;
  }

  .opportunities-shell .opp-table-card {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .opportunities-shell .opp-table-card .table-responsive {
    overflow: visible;
  }

  .opportunities-shell .opp-table,
  .opportunities-shell .opp-table tbody,
  .opportunities-shell .opp-table tr,
  .opportunities-shell .opp-table td {
    display: block;
    width: 100%;
  }

  .opportunities-shell .opp-table thead {
    display: none;
  }

  .opportunities-shell .opp-table tbody tr {
    margin-bottom: .7rem;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 48, 58, .06);
  }

  .opportunities-shell .opp-table tbody td {
    display: grid !important;
    grid-template-columns: minmax(78px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: .65rem;
    min-height: 38px;
    padding: .42rem 0;
    border: 0;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .opportunities-shell .opp-table tbody td::before {
    display: block;
    content: attr(data-mobile-label);
    color: var(--muted);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
  }

  .opportunities-shell .opp-table tbody td:first-child {
    display: block !important;
    padding: 0 0 .65rem;
    border-bottom: 1px solid #edf2f3;
    text-align: left;
  }

  .opportunities-shell .opp-table tbody td:first-child::before {
    display: none;
  }

  .opportunities-shell .opp-mobile-value {
    display: block;
    min-width: 0;
    max-width: none !important;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .opportunities-shell .opp-products-value {
    white-space: normal;
  }

  .opportunities-shell .opp-table tbody td:last-child {
    padding-bottom: 0;
  }

  .opportunities-shell .opp-kanban-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .opportunities-shell .opp-kanban-lane .kanban-col {
    max-height: none;
  }
}

@media (max-width: 359.98px) {
  .opportunities-shell .opp-header .module-view-btn {
    min-width: 30px;
    padding-left: .38rem;
    padding-right: .38rem;
  }

  .opportunities-shell .opp-header .module-header-actions .module-action-btn {
    width: 34px;
    min-width: 34px;
  }
}
