:root {
  --navy: #0b1f3a;
  --navy-2: #123c69;
  --ink: #172033;
  --muted: #64748b;
  --line: #dfe3e8;
  --bg: #f3f5f7;
  --soft: #eef2f7;
  --card: #ffffff;
}

* {
  letter-spacing: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.public-home,
.public-access {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  background: #f7f9fc;
}

.public-home {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 4vw, 48px);
}

.home-copy {
  max-width: 760px;
}

.public-kicker,
.auth-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--navy-2);
  background: #e8f0f9;
  border: 1px solid rgba(18, 60, 105, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.home-copy h1 {
  margin: 18px 0 14px;
  color: var(--navy);
  font-size: 3.7rem;
  line-height: 0.95;
  font-weight: 600;
  max-width: 820px;
}

.home-copy p {
  max-width: 630px;
  color: #475569;
  font-size: 1rem;
  margin-bottom: 20px;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.home-proof div {
  padding: 12px;
  border: 1px solid rgba(11, 31, 58, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.home-proof strong,
.home-proof span {
  display: block;
}

.home-proof strong {
  color: var(--navy);
}

.home-proof span {
  color: #64748b;
  font-size: 0.88rem;
  margin-top: 4px;
}

.home-art {
  display: grid;
  place-items: center;
  min-width: 0;
}

.home-art img {
  width: min(40vw, 500px);
  max-height: 68dvh;
  object-fit: contain;
  filter: drop-shadow(0 28px 50px rgba(11, 31, 58, 0.16));
}

.public-access {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 500px);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  background: #fff;
}

.auth-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #07182e, #123c69);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
}

.auth-brand img {
  width: 260px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.22));
}

.auth-copy h1 {
  font-size: 4rem;
  font-weight: 600;
  max-width: 680px;
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  font-size: 1.05rem;
}

.auth-panel {
  display: flex;
  align-items: center;
  padding: 40px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  margin: auto;
}

.public-access .auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  align-content: center;
  gap: 34px;
  background:
    radial-gradient(circle at 24% 26%, rgba(18, 60, 105, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
  border-right: 1px solid rgba(11, 31, 58, 0.08);
}

.auth-home-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.auth-highlight {
  max-width: 780px;
}

.auth-highlight > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--navy-2);
  background: #e8f0f9;
  border: 1px solid rgba(18, 60, 105, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-highlight h1 {
  margin: 16px 0 12px;
  font-size: 4rem;
  line-height: 0.96;
  font-weight: 600;
  max-width: 700px;
  color: var(--navy);
}

.auth-highlight p {
  max-width: 620px;
  color: #475569;
  font-size: 1.06rem;
  margin: 0;
}

.auth-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  gap: 12px;
}

.auth-mini-grid div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 8px;
  padding: 16px;
}

.auth-mini-grid strong,
.auth-mini-grid span {
  display: block;
}

.auth-mini-grid strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.auth-mini-grid span {
  color: #64748b;
  font-size: 0.88rem;
  margin-top: 4px;
}

.public-access .auth-panel {
  min-height: 100dvh;
  padding: clamp(22px, 4vw, 48px);
  background: #fff;
  display: grid;
  align-items: center;
}

.auth-form-shell {
  max-width: 456px;
  padding: 0;
}

.auth-form-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.auth-form-shell h2 {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  margin: 12px 0 6px;
}

.auth-form-shell .form-label {
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 2;
}

.input-icon .form-control {
  padding-left: 44px;
  min-height: 52px;
  border-color: #d7deea;
  background: #fbfcfe;
}

.input-icon .form-control:focus {
  background: #fff;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 0.22rem rgba(18, 60, 105, 0.13);
}

.auth-submit {
  min-height: 52px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 28px rgba(11, 31, 58, 0.2);
}

.auth-demo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #475569;
  font-size: 0.9rem;
}

.auth-demo span {
  color: var(--navy-2);
  font-weight: 600;
}

.auth-demo strong {
  color: var(--ink);
}

.auth-demo small {
  color: #64748b;
  font-weight: 600;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 280px;
  background: var(--navy);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  margin-bottom: 24px;
}

.brand img {
  width: 178px;
  height: 92px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 10px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.app-main {
  margin-left: 280px;
  width: calc(100% - 280px);
}

.topbar {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-company,
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-company {
  flex: 1 1 auto;
  justify-content: flex-start;
  color: var(--navy);
}

.topbar-company i,
.topbar-user-info i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy-2);
  background: #e8f0f9;
  border-radius: 8px;
  font-size: 1.05rem;
}

.topbar-company strong,
.topbar-user-info strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.topbar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-user-info strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.topbar-user-info span {
  color: #94a3b8;
  font-weight: 600;
}

.content-wrap {
  padding: 28px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-head h1 {
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0;
}

.card-soft {
  background: var(--card);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.metric {
  padding: 18px;
  min-height: 126px;
}

.metric .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e6eef8;
  color: var(--navy-2);
  font-size: 1.25rem;
}

.metric span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 10px;
}

.dashboard-page {
  display: grid;
  gap: 18px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.97), rgba(18, 60, 105, 0.95)),
    radial-gradient(circle at 82% 20%, rgba(18, 60, 105, 0.38), transparent 28%);
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.18);
}

.dashboard-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #eef2f7;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 8px 0 6px;
  max-width: 760px;
  font-size: 1.62rem;
  line-height: 1.12;
  font-weight: 600;
}

.dashboard-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-hero-actions .btn-light {
  color: var(--navy);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card,
.quick-stat,
.chart-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.kpi-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  inset: auto -32px -42px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(18, 60, 105, 0.08);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.86rem;
}

.kpi-top i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy-2);
  background: #e8f0f9;
  border-radius: 8px;
  font-size: 1.2rem;
}

.kpi-card strong {
  display: block;
  margin: 14px 0 10px;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
}

.kpi-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.kpi-bar {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.kpi-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy-2);
}

.kpi-bar-placeholder {
  height: 7px;
  margin-top: 12px;
}

.tone-success .kpi-top i,
.tone-success .kpi-bar span {
  color: #15803d;
  background: #dcfce7;
}

.tone-success .kpi-bar span {
  background: #16a34a;
}

.tone-danger .kpi-top i,
.tone-danger .kpi-bar span {
  color: #b91c1c;
  background: #fee2e2;
}

.tone-danger .kpi-bar span {
  background: #ef4444;
}

.tone-info .kpi-top i {
  color: #123c69;
  background: #eef2f7;
}

.tone-dark .kpi-top i {
  color: #111827;
  background: #f1f5f9;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-stat {
  min-height: 102px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 5px;
}

.quick-stat i {
  color: var(--navy-2);
  font-size: 1.15rem;
}

.quick-stat span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.quick-stat strong {
  color: var(--ink);
  font-size: 1.02rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
}

.chart-card {
  padding: 18px;
  min-width: 0;
}

.chart-card-wide {
  grid-column: span 1;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-head span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.chart-head h2 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.chart-head a {
  color: var(--navy-2);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}

.chart-total {
  text-align: right;
}

.chart-total strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.chart-wrap {
  position: relative;
  height: 260px;
}

.chart-wrap-lg {
  height: 312px;
}

.chart-wrap-donut {
  height: 246px;
}

.cash-dashboard {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), #fff 34%),
    linear-gradient(
      135deg,
      rgba(11, 31, 58, 0.1),
      rgba(18, 60, 105, 0.08) 44%,
      rgba(100, 116, 139, 0.1)
    );
}

.cash-dashboard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--navy-2), #64748b, #cbd5e1);
}

.cash-filter-card {
  padding: 12px;
}

.cash-filter-card .form-label {
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.cash-filter-card .form-control,
.cash-filter-card .form-select {
  min-height: 38px;
}

.cash-dashboard .chart-head {
  margin-bottom: 12px;
}

.cash-dashboard .chart-head h2 {
  font-size: 1.08rem;
}

.cash-dashboard-body {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.cash-dashboard-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.cash-dashboard-summary div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.cash-dashboard-summary span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.cash-dashboard-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}

.cash-chart-panel {
  min-width: 0;
  padding: 12px 10px 4px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.cash-chart-wrap {
  height: 342px;
}

.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 24px;
  color: #64748b;
  text-align: center;
  border: 1px dashed #d8e2ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f7faff);
}

.chart-empty i {
  margin-bottom: 4px;
  color: var(--navy-2);
  font-size: 1.55rem;
}

.chart-empty strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.chart-empty span {
  max-width: 320px;
  font-size: 0.82rem;
}

.chart-legend,
.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.chart-legend span,
.status-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
}

.chart-legend i,
.status-list i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
}

.status-list {
  display: grid;
  gap: 8px;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status-list strong {
  color: var(--navy);
}

.alert-card {
  display: grid;
  align-content: start;
}

.alert-empty {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: #64748b;
  gap: 8px;
}

.alert-empty i {
  color: #16a34a;
  font-size: 2rem;
}

.alert-empty strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.alert-timeline {
  display: grid;
  gap: 12px;
}

.alert-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfdff;
}

.alert-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.alert-item strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--navy);
}

.alert-item small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-weight: 600;
}

.maintenance-card {
  display: grid;
  align-content: start;
}

.maintenance-summary {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.maintenance-summary strong {
  color: #dc2626;
  font-size: 1.28rem;
  line-height: 1;
}

.maintenance-summary span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.maintenance-list {
  display: grid;
  gap: 10px;
}

.maintenance-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.maintenance-item:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.maintenance-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.maintenance-item.is-expired .maintenance-status-dot {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.maintenance-item strong,
.maintenance-item small {
  display: block;
}

.maintenance-item strong {
  color: var(--navy);
}

.maintenance-item small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 600;
}

.maintenance-item > i {
  color: #94a3b8;
}

.maintenance-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.table-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.table > :not(caption) > * > * {
  padding: 14px 16px;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: #123c69;
  border-color: #123c69;
}

.btn-logout {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.btn-logout:hover,
.btn-logout:focus {
  color: #fff;
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.form-control,
.form-select {
  border-radius: 8px;
  min-height: 44px;
}

.form-grid-balanced {
  border-color: rgba(15, 23, 42, 0.07);
}

.form-grid-balanced .form-label {
  color: #334155;
  font-weight: 600;
  font-size: 0.86rem;
}

.form-grid-balanced .form-control,
.form-grid-balanced .form-select,
.modal-content .form-control,
.modal-content .form-select {
  min-height: 48px;
  border-color: #dbe3ef;
  background-color: #fbfdff;
}

.form-grid-balanced textarea.form-control,
.modal-content textarea.form-control {
  min-height: 116px;
}

.form-grid-balanced .form-control:focus,
.form-grid-balanced .form-select:focus,
.modal-content .form-control:focus,
.modal-content .form-select:focus {
  background: #fff;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 0.22rem rgba(18, 60, 105, 0.12);
}

.form-grid-balanced .form-text {
  color: #64748b;
  font-weight: 600;
}

.form-section-panel {
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e6edf6;
}

.form-section-head span {
  display: block;
  color: var(--navy-2);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.form-section-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.form-section-head i {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--navy-2);
  background: #e8f0f9;
  font-size: 1.2rem;
}

.os-team-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}

.os-team-roster {
  padding: 18px;
  border: 1px solid rgba(18, 60, 105, 0.2);
  border-radius: 10px;
  background: #edf4fb;
}

.os-team-roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.os-team-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.os-team-roster-head h3,
.os-team-add-head h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.os-team-count {
  padding: 7px 12px;
  border: 1px solid rgba(18, 60, 105, 0.16);
  border-radius: 999px;
  color: var(--navy-2);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.os-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.os-team-card {
  overflow: hidden;
  border: 1px solid #cad8e8;
  border-left: 4px solid var(--navy-2);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 60, 105, 0.09);
}

.os-team-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid #e2eaf3;
  background: linear-gradient(135deg, #f8fbff, #edf4fb);
}

.os-team-person-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), #245f92);
  font-size: 1.15rem;
}

.os-team-card-head span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.os-team-card-head strong {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-team-card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.os-team-field .form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #475569;
  font-size: 0.72rem;
}

.os-team-field .form-control {
  min-height: 40px;
  background: #fff;
}

.os-team-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 110px;
  padding: 20px;
  border: 1px dashed #aebfd2;
  border-radius: 9px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.65);
}

.os-team-empty > i {
  font-size: 1.8rem;
  color: var(--navy-2);
}

.os-team-empty strong,
.os-team-empty span {
  display: block;
}

.os-team-empty strong {
  color: var(--navy);
}

.os-team-empty span {
  margin-top: 2px;
  font-size: 0.84rem;
}

.os-team-add-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed #aebfd2;
  border-radius: 10px;
  background: #fff;
}

.os-team-add-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.os-team-add-head > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--navy-2);
  background: #e8f0f9;
  font-size: 1.08rem;
}

.os-team-add-head span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .os-team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .os-team-roster {
    padding: 13px;
  }

  .os-team-roster-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .os-team-card-fields {
    grid-template-columns: 1fr;
  }
}

.budget-manual-button {
  min-height: 42px;
}

.searchable-select {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.searchable-select-native {
  display: none !important;
}

.searchable-select-input {
  width: 100%;
  padding-right: 42px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.searchable-select-input::-webkit-search-cancel-button {
  margin-right: 18px;
}

.searchable-select-menu {
  position: absolute;
  z-index: 1055;
  top: calc(100% + 5px);
  left: 0;
  width: max(100%, 320px);
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.searchable-select-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1e293b;
  text-align: left;
  line-height: 1.3;
}

.searchable-select-option:hover,
.searchable-select-option.active {
  background: #e8f0f9;
  color: var(--navy);
}

.searchable-select-empty {
  padding: 10px;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 575.98px) {
  .searchable-select-menu {
    width: 100%;
  }
}

.os-budget-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #d7e6f5;
  border-radius: 8px;
  background: #f5f9fd;
  color: #31516c;
  font-size: 0.86rem;
  font-weight: 600;
}

.os-budget-loader.d-none {
  display: none !important;
}

.form-mini-panel {
  padding: 14px;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.form-mini-panel textarea.form-control {
  resize: vertical;
}

.cost-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  gap: 18px;
  align-items: start;
}

.cost-form-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.cost-form-aside {
  position: sticky;
  top: 92px;
}

.cost-guidance-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.1);
}

.cost-guidance-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #123c69;
  background: #eef2f7;
  border-radius: 8px;
  font-size: 1.18rem;
}

.cost-guidance-card > span {
  color: #123c69;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.cost-guidance-card strong {
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.08;
}

.cost-guidance-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.cost-help-button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 0.72rem;
  line-height: 1;
}

.material-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.material-form-main {
  display: grid;
  gap: 16px;
}

.material-image-panel {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(18, 60, 105, 0.13), transparent 30%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.material-image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.material-image-head span {
  display: block;
  color: var(--navy-2);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.material-image-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 600;
}

.material-image-head i {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--navy-2);
  background: #e8f0f9;
  font-size: 1.2rem;
}

.material-image-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fbff;
}

.material-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-image-preview.is-empty {
  border-style: dashed;
}

.material-image-placeholder {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.material-image-placeholder i {
  color: var(--navy-2);
  font-size: 2.4rem;
}

.material-image-placeholder strong {
  color: var(--navy);
  font-size: 1rem;
}

.material-image-placeholder span {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.material-upload-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  margin: 0;
  border: 1px solid var(--navy-2);
  border-radius: 8px;
  color: var(--navy-2);
  background: #eef6ff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
}

.material-upload-control:hover {
  color: #fff;
  background: var(--navy-2);
}

.material-upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.material-remove-image {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 0;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
}

.material-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 4px;
}

.material-thumb {
  width: 58px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: var(--navy-2);
  background: #eef4fb;
}

.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-thumb-button {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: zoom-in;
}

.material-thumb-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 46, 0);
  transition: background 0.18s ease;
}

.material-thumb-button:focus-visible {
  outline: 3px solid rgba(18, 60, 105, 0.35);
  outline-offset: -3px;
}

.material-thumb-button:hover::after,
.material-thumb-button:focus-visible::after {
  background: rgba(7, 24, 46, 0.38);
}

.material-thumb-zoom {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.material-thumb-button:hover .material-thumb-zoom,
.material-thumb-button:focus-visible .material-thumb-zoom {
  opacity: 1;
  transform: scale(1);
}

.material-photo-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(7, 24, 46, 0.28);
}

.material-photo-modal .modal-header {
  align-items: flex-start;
}

.material-photo-stage {
  min-height: 300px;
  max-height: calc(100dvh - 230px);
  display: grid;
  place-items: center;
  overflow: auto;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #edf2f7 25%, transparent 25%),
    linear-gradient(-45deg, #edf2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf2f7 75%),
    linear-gradient(-45deg, transparent 75%, #edf2f7 75%), #f8fafc;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}

.material-photo-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 230px);
  object-fit: contain;
}

@media (max-width: 575px) {
  .material-photo-modal .modal-dialog {
    margin: 0.75rem;
  }

  .material-photo-stage {
    min-height: 220px;
    max-height: calc(100dvh - 250px);
  }

  .material-photo-stage img {
    max-height: calc(100dvh - 250px);
  }
}

.material-thumb i {
  font-size: 1.25rem;
}

.material-view-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fbff;
}

.material-view-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
  align-items: start;
}

.company-form-main {
  display: grid;
  gap: 16px;
}

.company-map-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}

.company-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #e6edf6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.company-map-head span {
  display: block;
  color: var(--navy-2);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.company-map-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.company-map-head i {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--navy-2);
  background: #e8f0f9;
  font-size: 1.2rem;
}

.company-map-frame {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.company-map-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  color: #475569;
  border-top: 1px solid #e6edf6;
  background: #fbfdff;
  font-size: 0.9rem;
  font-weight: 600;
}

.company-map-meta i {
  color: var(--navy-2);
  margin-top: 2px;
}

.company-map-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  color: #64748b;
  text-align: center;
  background: #fbfdff;
}

.company-map-empty i {
  color: var(--navy-2);
  font-size: 2rem;
}

.company-map-empty strong {
  color: var(--navy);
}

.company-map-empty span {
  max-width: 280px;
  font-size: 0.92rem;
}

.company-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.address-status {
  min-height: 20px;
}

.address-panel {
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 98% 0%, rgba(18, 60, 105, 0.12), transparent 26%);
}

.address-panel-plain,
.address-panel-compact {
  padding: 0;
  border: 0;
  background: transparent;
}

.address-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.address-panel-head span,
.address-cep-copy strong {
  color: var(--navy-2);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.address-panel-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.address-panel-head i {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--navy-2);
  background: #e8f0f9;
  font-size: 1.15rem;
}

.address-cep-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.address-cep-card .form-label {
  color: var(--navy);
  font-weight: 600;
}

.address-cep-copy {
  min-height: 38px;
  display: grid;
  align-content: center;
  gap: 3px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.address-cep-copy strong {
  color: var(--navy);
}

.address-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr) minmax(96px, 0.38fr) minmax(0, 1fr) minmax(0, 0.82fr)
    minmax(0, 0.82fr) minmax(76px, 0.3fr);
  gap: 12px;
  margin-top: 14px;
}

.address-grid-company {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.82fr) minmax(76px, 0.3fr);
}

.address-field-wide {
  min-width: 0;
}

.address-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.address-panel-footer .address-status {
  margin: 0;
}

.pac-container {
  z-index: 2050;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.empty-state {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 42px 20px;
  text-align: center;
}

.empty-state > i {
  color: var(--navy-2);
  font-size: 1rem;
}

.empty-state h1,
.empty-state h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 12px;
}

.signature-pad {
  width: 100%;
  height: 180px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}

.print-sheet {
  background: #fff;
  border-radius: 8px;
  padding: 34px;
  border: 1px solid var(--line);
}

.print-company-brand {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.print-company-logo {
  display: block;
  width: auto;
  max-width: 190px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.print-block {
  margin-bottom: 22px;
}

.print-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.print-info-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fbff;
}

.print-info-title,
.print-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
}

.print-info-title {
  margin: 0 0 8px;
}

.print-section-title {
  margin: 0 0 10px;
}

.print-info-title i,
.print-section-title i {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--navy-2);
  background: #e8f0f9;
  font-size: 0.95rem;
}

.print-hide-unit-values .print-unit-value,
.print-hide-unit-values .print-money-value,
.print-hide-unit-values .print-financial-summary {
  display: none !important;
}

.money-head {
  text-align: center !important;
  white-space: nowrap;
}

.money-cell {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.money-cell .value-pill,
.money-cell strong {
  justify-content: flex-end;
}

[data-mask='money'] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.money-display {
  display: block;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.measure-head {
  text-align: center !important;
  white-space: nowrap;
}

.measure-cell {
  text-align: center !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.measure-cell .value-pill {
  justify-content: center;
}

[data-item-qty],
[data-item-unit],
[name='quantidade'],
[name='unidade_medida'] {
  text-align: center;
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 20px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.app-breadcrumb::-webkit-scrollbar {
  display: none;
}

.app-breadcrumb a,
.app-breadcrumb .active {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.app-breadcrumb a {
  color: #475569;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #e7ecf3;
}

.app-breadcrumb a:hover {
  color: var(--navy);
  border-color: rgba(18, 60, 105, 0.2);
}

.app-breadcrumb .active {
  color: var(--navy);
  background: #e8f0f9;
  border: 1px solid rgba(18, 60, 105, 0.14);
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 0.72rem;
}

.swal2-popup.orca-dialog {
  width: min(92vw, 420px);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.orca-dialog .swal2-title {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 600;
}

.orca-dialog .swal2-html-container {
  color: #475569;
  font-weight: 600;
}

.orca-dialog .swal2-actions {
  width: 100%;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}

.orca-dialog-confirm,
.orca-dialog-save-confirm,
.orca-dialog-cancel {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
  padding: 0.7rem 0.85rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  font-weight: 600 !important;
  line-height: 1.25;
  box-shadow: none !important;
}

.orca-dialog-confirm {
  background: #dc2626 !important;
}

.orca-dialog-save-confirm {
  background: var(--navy-2) !important;
}

.orca-dialog-cancel {
  color: var(--navy) !important;
  background: #eef2f7 !important;
}

.clients-page {
  display: grid;
  gap: 18px;
}

.clients-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.98), rgba(18, 60, 105, 0.94)),
    radial-gradient(circle at 88% 14%, rgba(34, 197, 94, 0.32), transparent 26%);
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.18);
}

.clients-hero h1 {
  max-width: 820px;
  margin: 8px 0 6px;
  font-size: 1.5rem;
  line-height: 1.14;
  font-weight: 600;
}

.clients-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.clients-hero .btn {
  flex: 0 0 auto;
  color: var(--navy);
}

.client-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-stat-card {
  min-height: 108px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.client-stat-card::after {
  content: '';
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: rgba(18, 60, 105, 0.07);
}

.client-stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: var(--navy-2);
  background: #e8f0f9;
  border-radius: 8px;
  font-size: 1rem;
}

.client-stat-card span,
.client-stat-card small {
  display: block;
  color: #64748b;
  font-weight: 600;
}

.client-stat-card span {
  font-size: 0.76rem;
}

.client-stat-card strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--navy);
  font-size: 1.34rem;
  line-height: 1;
}

.client-stat-card small {
  font-size: 0.72rem;
}

.client-stat-card.tone-success .client-stat-icon {
  color: #15803d;
  background: #dcfce7;
}

.client-stat-card.tone-info .client-stat-icon {
  color: #123c69;
  background: #eef2f7;
}

.client-stat-card.tone-danger .client-stat-icon {
  color: #b91c1c;
  background: #fee2e2;
}

.client-stat-card.tone-dark .client-stat-icon {
  color: #111827;
  background: #f1f5f9;
}

.clients-filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.clients-filter-card .form-label {
  color: #334155;
  font-weight: 600;
  font-size: 0.86rem;
}

.clients-filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  gap: 12px;
  align-items: end;
}

.search-control {
  position: relative;
}

.search-control i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 2;
}

.search-control .form-control {
  height: 50px;
  padding-left: 46px;
  border-color: #dbe3ef;
  background: #fbfdff;
}

.search-control .form-control:focus {
  background: #fff;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 0.22rem rgba(18, 60, 105, 0.12);
}

.clients-filter-actions {
  display: flex;
  gap: 10px;
}

.clients-filter-actions .btn {
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  color: #334155;
  background: #eef6ff;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.filter-chip a {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--navy);
  text-decoration: none;
  border-radius: 8px;
  background: #fff;
}

.clients-empty {
  padding: 52px 20px;
}

.clients-table-card {
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.clients-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
}

.clients-table-head span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.clients-table-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.clients-table-head strong {
  color: #475569;
  font-size: 0.88rem;
  white-space: nowrap;
}

.client-table thead th {
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.client-table tbody tr {
  transition: background 0.18s ease;
}

.client-table tbody tr:hover {
  background: #fbfdff;
}

.client-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.client-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}

.client-identity strong,
.client-contact strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.client-identity span,
.client-contact span {
  display: block;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.client-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}

.client-location i {
  color: var(--navy-2);
}

.document-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.client-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.client-actions .btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.list-page {
  display: grid;
  gap: 18px;
}

.list-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.98), rgba(18, 60, 105, 0.94)),
    radial-gradient(circle at 88% 14%, rgba(18, 60, 105, 0.3), transparent 26%);
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.18);
}

.list-hero h1 {
  max-width: 760px;
  margin: 8px 0 6px;
  font-size: 1.45rem;
  line-height: 1.14;
  font-weight: 600;
}

.list-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.list-hero .btn-light {
  color: var(--navy);
  flex: 0 0 auto;
}

.list-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.list-filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.list-filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.list-filter-fields-wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr) minmax(150px, 0.7fr);
}

.list-filter-card .form-label {
  color: #334155;
  font-weight: 600;
  font-size: 0.86rem;
}

.list-table-card {
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.list-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
}

.list-table-head span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.list-table-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.list-table-head strong {
  color: #475569;
  font-size: 0.88rem;
  white-space: nowrap;
}

.modern-table thead th {
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.modern-table tbody tr {
  transition: background 0.18s ease;
}

.modern-table tbody tr:hover {
  background: #fbfdff;
}

.entity-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.entity-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.entity-identity strong,
.entity-stack strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.entity-identity span,
.entity-stack span {
  display: block;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.row-actions .btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.quick-status-form {
  min-width: 160px;
}

.quick-status-select {
  min-height: 38px;
  padding: 6px 34px 6px 10px;
  border-width: 1px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: none;
}

.status-field-card {
  height: 100%;
  min-height: 104px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.08);
}

.form-with-status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 18px;
  align-items: start;
}

.form-main-fields {
  min-width: 0;
}

.form-status-aside {
  position: sticky;
  top: 92px;
}

.status-side-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.1);
}

.status-side-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #123c69;
  background: #eef2f7;
  border-radius: 8px;
  font-size: 1.2rem;
}

.status-side-card > span {
  color: #123c69;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-side-card strong {
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.05;
}

.status-side-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
}

.status-side-card.status-tone-aprovado,
.status-side-card.status-tone-concluida {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.status-side-card.status-tone-aprovado .status-side-icon,
.status-side-card.status-tone-concluida .status-side-icon {
  color: #15803d;
  background: #dcfce7;
}

.status-side-card.status-tone-recusado,
.status-side-card.status-tone-atrasada {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}

.status-side-card.status-tone-recusado .status-side-icon,
.status-side-card.status-tone-atrasada .status-side-icon {
  color: #b91c1c;
  background: #fee2e2;
}

.status-side-card.status-tone-cancelado,
.status-side-card.status-tone-cancelada {
  border-color: #d1d5db;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.status-side-card.status-tone-cancelado .status-side-icon,
.status-side-card.status-tone-cancelada .status-side-icon {
  color: #374151;
  background: #f3f4f6;
}

.status-field-card .form-label {
  display: block;
  margin-bottom: 7px;
  color: #123c69;
}

.status-field-card small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
}

.status-field-control {
  position: relative;
}

.status-field-control i {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  color: #123c69;
  transform: translateY(-50%);
}

.status-emphasis-select {
  min-height: 48px;
  padding-left: 38px;
  color: var(--navy);
  border-color: #cad8e8;
  background-color: #fff;
  font-weight: 600;
}

.quick-status-select.status-tone-rascunho,
.quick-status-select.status-tone-aberta {
  color: #123c69;
  border-color: #dbe3ef;
  background-color: #f8fafc;
}

.quick-status-select.status-tone-enviado,
.quick-status-select.status-tone-em_execucao {
  color: #123c69;
  border-color: #dbe3ef;
  background-color: #f8fafc;
}

.quick-status-select.status-tone-aprovado,
.quick-status-select.status-tone-concluida {
  color: #15803d;
  border-color: #bbf7d0;
  background-color: #f0fdf4;
}

.quick-status-select.status-tone-pausada {
  color: #92400e;
  border-color: #fde68a;
  background-color: #fffbeb;
}

.quick-status-select.status-tone-atrasada,
.quick-status-select.status-tone-recusado {
  color: #b91c1c;
  border-color: #fecaca;
  background-color: #fef2f2;
}

.quick-status-select.status-tone-cancelado,
.quick-status-select.status-tone-cancelada {
  color: #374151;
  border-color: #d1d5db;
  background-color: #f9fafb;
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.pagination-summary {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.pagination .page-link {
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border-color: #e2e8f0;
  font-weight: 600;
}

.pagination .page-item.active .page-link {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.event-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.event-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.event-card p {
  min-height: 44px;
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.event-time {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
}

.event-time i {
  color: var(--navy-2);
  margin-top: 1px;
}

@media print {
  @page {
    margin: 9mm;
  }

  .app-sidebar,
  .topbar,
  .app-breadcrumb,
  .no-print,
  .alert,
  .modal,
  .modal-backdrop {
    display: none !important;
  }

  .app-main {
    margin: 0;
    width: 100%;
  }

  .content-wrap {
    padding: 0;
  }

  body {
    background: #fff;
    color: #111827;
    font-size: 10px;
    line-height: 1.22;
  }

  .print-sheet {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 10px;
  }

  .print-sheet img {
    max-width: 112px !important;
    height: auto !important;
  }

  .print-company-brand {
    min-height: 42px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .print-company-logo {
    max-width: 112px !important;
    max-height: 48px !important;
  }

  .print-sheet h2 {
    font-size: 1rem !important;
    margin-bottom: 3px !important;
  }

  .print-sheet h3,
  .print-sheet .h6 {
    font-size: 0.72rem !important;
    margin-bottom: 4px !important;
  }

  .print-sheet p,
  .print-sheet .text-muted,
  .print-sheet small,
  .print-sheet span,
  .print-sheet td,
  .print-sheet th {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .print-sheet .mb-4 {
    margin-bottom: 9px !important;
  }

  .print-sheet .mt-3 {
    margin-top: 5px !important;
  }

  .print-sheet .pt-3 {
    padding-top: 6px !important;
  }

  .print-sheet .row,
  .print-sheet .list-stat-grid,
  .print-sheet .print-info-grid {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
  }

  .print-sheet .print-block {
    margin-bottom: 10px !important;
    page-break-inside: avoid;
  }

  .print-sheet .print-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px !important;
  }

  .print-sheet .print-info-card {
    padding: 8px;
    border-color: #dbe3ef;
    background: #fff;
    page-break-inside: avoid;
  }

  .print-sheet .print-info-title,
  .print-sheet .print-section-title {
    gap: 6px;
    margin-bottom: 5px !important;
  }

  .print-sheet .print-info-title i,
  .print-sheet .print-section-title i {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 0.68rem;
  }

  .print-sheet .list-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 9px !important;
  }

  .print-sheet .client-stat-card {
    min-height: 0;
    padding: 8px;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .print-sheet .client-stat-card::after {
    display: none;
  }

  .print-sheet .client-stat-icon,
  .print-sheet .entity-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    font-size: 0.78rem;
    border-radius: 6px;
  }

  .print-sheet .client-stat-card span,
  .print-sheet .client-stat-card small {
    font-size: 8.5px !important;
  }

  .print-sheet .client-stat-card strong {
    margin: 3px 0 2px;
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .print-sheet .card-soft {
    padding: 9px !important;
    border-color: #dbe3ef;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .print-sheet .table {
    margin-bottom: 8px !important;
  }

  .print-sheet .table > :not(caption) > * > * {
    padding: 5px 7px;
  }

  .print-sheet .badge,
  .print-sheet .value-pill,
  .print-sheet .dashboard-kicker {
    min-height: 0;
    padding: 3px 6px;
    font-size: 8.5px !important;
    border-radius: 6px;
  }

  .print-sheet .entity-identity {
    gap: 7px;
    min-width: 0;
  }

  .print-sheet .d-flex {
    gap: 8px !important;
  }

  .print-sheet [style*='max-width:360px'] {
    max-width: 230px !important;
  }
}

/* Client workspace */
.page-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clients-empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.client-form-page,
.client-detail-page,
.client-form-shell {
  display: grid;
  gap: 18px;
}

.client-form-head {
  margin-bottom: 0;
}

.client-form-shell {
  gap: 16px;
}

.client-form-section {
  padding: 24px;
}

.client-form-section .form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9eff5;
}

.client-form-section .form-section-head > div:last-child {
  min-width: 0;
}

.client-form-section .form-section-head span,
.client-section-head span:not(.client-count) {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.client-form-section .form-section-head h2,
.client-section-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}

.client-form-section .form-section-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

.form-section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy-2);
  background: #edf4fc;
  border-radius: 10px;
}

.client-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.client-profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 26px;
  color: #fff;
  border: 1px solid rgba(123, 167, 230, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 5%, rgba(76, 141, 255, 0.3), transparent 30%),
    linear-gradient(135deg, #071b32, #164c82);
  box-shadow: 0 20px 50px rgba(11, 31, 58, 0.18);
}

.client-profile-hero::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -155px;
  width: 310px;
  height: 310px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.025),
    0 0 0 70px rgba(255, 255, 255, 0.018);
}

.client-profile-main,
.client-profile-actions {
  position: relative;
  z-index: 1;
}

.client-profile-main {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.client-profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  font-weight: 700;
}

.client-profile-copy {
  min-width: 0;
}

.client-profile-kicker {
  color: #d9e8ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-profile-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 3px;
}

.client-profile-title h1 {
  min-width: 0;
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.client-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  color: rgba(229, 239, 255, 0.78);
  font-size: 0.84rem;
}

.client-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-profile-meta i {
  color: #b9d4ff;
}

.client-profile-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.client-profile-actions .btn-outline-light:hover {
  color: var(--navy);
}

.client-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.client-detail-stats article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.client-detail-stats article > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy-2);
  border-radius: 10px;
  background: #edf4fc;
}

.client-detail-stats strong,
.client-detail-stats span {
  display: block;
}

.client-detail-stats strong {
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
}

.client-detail-stats span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.client-overview-grid,
.client-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.client-overview-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.client-detail-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.client-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 16px 20px;
  border-bottom: 1px solid #e9eff5;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.client-section-head > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--navy-2);
  border-radius: 10px;
  background: #edf4fc;
}

.client-section-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.client-count {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--navy-2);
  border-radius: 999px;
  background: #e8f0f9;
  font-size: 0.78rem;
  font-weight: 700;
}

.client-data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 8px 20px 0;
}

.client-data-list > div {
  min-width: 0;
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid #edf1f5;
}

.client-data-list > div:nth-child(even) {
  padding-left: 12px;
}

.client-data-list dt {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-data-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.client-data-list .client-data-wide {
  grid-column: 1 / -1;
  padding-left: 0;
}

.client-notes {
  margin: 16px 20px 20px;
  padding: 14px;
  color: #475569;
  border-radius: 11px;
  background: #f8fafc;
}

.client-notes strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 0.78rem;
}

.client-notes p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.client-map-card {
  min-height: 100%;
}

.client-map-frame {
  display: block;
  width: calc(100% - 36px);
  min-height: 340px;
  margin: 18px;
  border: 0;
  border-radius: 12px;
}

.client-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  color: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

a.client-list-item:hover {
  color: inherit;
  border-color: #9fb9d6;
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.client-list-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy-2);
  border-radius: 9px;
  background: #edf4fc;
}

.client-list-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.client-list-copy strong,
.client-list-copy span,
.client-list-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.client-list-copy strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.client-list-copy span,
.client-list-copy small {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
}

.equipment-edit-shell,
.client-inline-form {
  min-width: 0;
}

.client-inline-form {
  padding: 14px;
  border: 1px solid #b8cae1;
  border-radius: 11px;
  background: #f8fbff;
}

.client-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.client-add-panel {
  margin-top: 4px;
  border: 1px dashed #b8cae1;
  border-radius: 11px;
  background: #f8fbff;
}

.client-add-panel summary {
  padding: 13px 15px;
  color: var(--navy-2);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
}

.client-add-panel summary::-webkit-details-marker {
  display: none;
}

.client-add-panel summary i {
  margin-right: 7px;
}

.client-add-panel form {
  padding: 0 15px 15px;
}

.client-upload-form {
  margin-top: 4px;
  padding: 14px;
  border: 1px dashed #b8cae1;
  border-radius: 11px;
  background: #f8fbff;
}

.client-upload-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.client-upload-row .form-control {
  flex: 1 1 0;
  min-width: 0;
  height: 45px;
  padding-block: 0;
  line-height: 43px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-upload-row .form-control::file-selector-button {
  height: 43px;
  margin-block: 0;
  padding-block: 0;
  line-height: 43px;
}

.client-upload-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  height: 45px;
  white-space: nowrap;
}

.client-upload-row .btn i {
  flex: 0 0 auto;
  line-height: 1;
}

.client-upload-form small {
  display: block;
  margin-top: 7px;
  color: #64748b;
}

.client-section-empty {
  display: grid;
  justify-items: center;
  padding: 28px 18px;
  color: #64748b;
  border: 1px dashed #d5dfeb;
  border-radius: 11px;
  background: #fafcff;
  text-align: center;
}

.client-section-empty i {
  margin-bottom: 10px;
  color: #8aa8c8;
  font-size: 1.55rem;
}

.client-section-empty strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.client-section-empty span {
  max-width: 390px;
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.client-linked-record {
  justify-content: space-between;
}

.client-linked-record .badge {
  width: fit-content;
  margin-top: 5px;
}

@media (max-width: 1199px) {
  .client-profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-profile-actions {
    justify-content: flex-start;
  }

  .client-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .client-form-section {
    padding: 18px;
  }

  .client-form-actions {
    padding: 15px;
  }

  .client-profile-hero {
    padding: 20px 18px;
    border-radius: 17px;
  }

  .client-profile-main {
    align-items: flex-start;
  }

  .client-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .client-profile-meta {
    flex-direction: column;
    gap: 6px;
  }

  .client-profile-actions {
    width: 100%;
  }

  .client-profile-actions .btn {
    flex: 1 1 140px;
  }

  .client-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-detail-grid {
    grid-template-columns: 1fr;
  }

  .client-map-frame {
    min-height: 280px;
  }

  .client-table,
  .client-table tbody,
  .client-table tr,
  .client-table td {
    display: block;
    width: 100%;
  }

  .client-table thead {
    display: none;
  }

  .client-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .client-table tbody tr {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  }

  .client-table tbody tr:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.065);
  }

  .client-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
    padding: 10px 13px;
    text-align: right !important;
    border-bottom: 1px solid #edf1f5;
  }

  .client-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 86px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
  }

  .client-table tbody td:first-child {
    display: block;
    padding: 14px;
    text-align: left !important;
    background: #f8fbff;
  }

  .client-table tbody td:first-child::before {
    display: none;
  }

  .client-table tbody td:last-child {
    border-bottom: 0;
  }

  .client-identity {
    min-width: 0;
  }

  .client-location,
  .document-pill {
    min-width: 0;
    white-space: normal;
  }

  .client-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 575px) {
  .clients-empty-actions,
  .client-form-actions,
  .client-upload-row,
  .client-inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .clients-empty-actions .btn,
  .client-form-actions .btn,
  .client-upload-row .btn,
  .client-inline-actions .btn {
    width: 100%;
  }

  .client-form-section .form-section-head {
    gap: 10px;
  }

  .form-section-icon {
    width: 38px;
    height: 38px;
  }

  .client-profile-main {
    flex-direction: column;
  }

  .client-profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-profile-actions .btn:first-child:last-child,
  .client-profile-actions .btn:nth-child(3) {
    grid-column: 1 / -1;
  }

  .client-detail-stats {
    grid-template-columns: 1fr;
  }

  .client-data-list {
    grid-template-columns: 1fr;
  }

  .client-data-list > div,
  .client-data-list > div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
  }

  .client-map-frame {
    width: calc(100% - 28px);
    min-height: 240px;
    margin: 14px;
  }

  .client-section-head,
  .client-section-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  .client-linked-record {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 992px) and (max-width: 1099px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .public-home,
  .public-access {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .public-home,
  .public-access {
    grid-template-columns: 1fr;
  }

  .public-home {
    padding: 20px;
    gap: 18px;
    align-content: center;
  }

  .home-copy h1 {
    font-size: 2.25rem;
    margin: 14px 0 10px;
  }

  .home-copy p {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .home-proof {
    display: none;
  }

  .home-art img {
    width: min(62vw, 220px);
    max-height: 24dvh;
  }

  .public-access .auth-visual {
    display: none;
  }

  .auth-highlight h1 {
    font-size: 2.2rem;
  }

  .auth-copy h1 {
    font-size: 2.1rem;
  }

  .auth-mini-grid {
    grid-template-columns: 1fr;
  }

  .public-access .auth-panel {
    min-height: 100dvh;
    padding: 18px;
  }

  .auth-form-logo {
    width: 108px;
    height: 108px;
    margin-bottom: 12px;
  }

  .auth-form-shell h2 {
    font-size: 1.55rem;
  }

  .input-icon .form-control {
    min-height: 46px;
  }

  .auth-form-shell .mb-3 {
    margin-bottom: 0.72rem !important;
  }

  .auth-submit {
    min-height: 48px;
  }

  .auth-demo {
    margin-top: 12px;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .auth-brand {
    min-height: 320px;
    padding: 34px;
  }

  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
    width: 100%;
  }

  .content-wrap {
    padding: 18px;
  }

  .topbar {
    padding: 0 16px;
  }

  .topbar-company {
    justify-content: flex-start;
  }

  .topbar-user-info strong {
    max-width: 170px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-breadcrumb {
    margin-bottom: 16px;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .dashboard-hero h1 {
    font-size: 1.42rem;
  }

  .dashboard-hero-actions {
    justify-content: flex-start;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .clients-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .clients-hero h1 {
    font-size: 1.38rem;
  }

  .client-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-filter-card {
    grid-template-columns: 1fr;
  }

  .list-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .list-hero h1 {
    font-size: 1.34rem;
  }

  .list-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-filter-card,
  .list-filter-fields {
    grid-template-columns: 1fr;
  }

  .form-with-status-layout {
    grid-template-columns: 1fr;
  }

  .form-status-aside {
    position: static;
    order: -1;
  }

  .company-form-layout,
  .cost-form-layout,
  .material-form-shell {
    grid-template-columns: 1fr;
  }

  .cost-form-aside {
    position: static;
    order: -1;
  }

  .material-image-panel {
    position: static;
  }

  .address-cep-card,
  .address-grid,
  .address-grid-company {
    grid-template-columns: 1fr;
  }

  .address-panel-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .address-panel-footer .btn {
    width: 100%;
  }

  .company-map-panel {
    position: static;
  }

  .company-map-frame,
  .company-map-empty {
    height: 300px;
    min-height: 300px;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-filter-actions {
    justify-content: stretch;
  }

  .clients-filter-actions .btn {
    flex: 1 1 0;
  }

  .chart-wrap,
  .chart-wrap-lg,
  .chart-wrap-donut {
    height: 260px;
  }

  .cash-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cash-dashboard-body {
    grid-template-columns: 1fr;
  }

  .cash-chart-wrap {
    height: 300px;
  }
}

@media (max-width: 575px) {
  .kpi-grid,
  .client-stat-grid,
  .list-stat-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero-actions .btn {
    width: 100%;
    padding-inline: 0.7rem;
  }

  .app-breadcrumb a,
  .app-breadcrumb .active {
    padding-inline: 9px;
  }

  .clients-filter-actions {
    flex-direction: column;
  }

  .clients-filter-actions .btn {
    width: 100%;
  }

  .clients-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-table-head,
  .pagination-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .chart-head {
    flex-direction: column;
  }

  .chart-total {
    text-align: left;
  }

  .topbar-user-info strong {
    max-width: 112px;
  }

  .topbar-user .btn {
    padding-inline: 9px;
  }

  .chart-wrap,
  .chart-wrap-lg,
  .chart-wrap-donut {
    height: 235px;
  }

  .cash-dashboard-summary {
    grid-template-columns: 1fr;
  }

  .cash-chart-wrap {
    height: 285px;
  }
}

@media (max-width: 359px) {
  .quick-strip,
  .dashboard-hero-actions {
    grid-template-columns: 1fr;
  }
}

.register-access,
.invite-access {
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}

.register-access .auth-panel,
.invite-access .auth-panel {
  align-items: start;
}

.plan-picker {
  display: grid;
  gap: 9px;
  margin: 16px 0 18px;
}

.plan-option,
.subscription-plan-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fbfdff;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.plan-option input,
.subscription-plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option.is-selected,
.subscription-plan-card.is-selected {
  border-color: var(--navy-2);
  background: #f4f8fd;
  box-shadow: 0 0 0 3px rgba(18, 60, 105, 0.09);
}

.plan-option-icon,
.subscription-plan-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #123c69;
  background: #eef2f7;
  border-radius: 8px;
}

.plan-option-copy {
  min-width: 0;
}

.plan-option-copy strong,
.plan-option-copy small {
  display: block;
}

.plan-option-copy strong,
.subscription-plan-card strong {
  color: var(--navy);
  font-weight: 600;
}

.plan-option-copy small,
.subscription-plan-card small,
.license-control span,
.subscription-note {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.license-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.license-control .form-control {
  text-align: center;
  font-weight: 600;
}

.plan-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #123c69);
  border-radius: 8px;
}

.plan-total span,
.plan-change-head span,
.subscription-current-head span,
.invite-panel-head span,
.license-summary-head span {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.plan-total strong {
  font-size: 1.2rem;
}

.license-dashboard,
.subscription-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.license-summary,
.invite-panel,
.subscription-current,
.plan-change-panel,
.pending-invites {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.license-summary-head,
.invite-panel-head,
.subscription-current-head,
.plan-change-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.license-summary-head strong,
.subscription-current-head strong,
.plan-change-head h2,
.invite-panel-head h2 {
  display: block;
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 600;
}

.license-summary-head i,
.subscription-current-head i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #123c69;
  background: #eef2f7;
  border-radius: 8px;
  font-size: 1.25rem;
}

.license-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.license-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #123c69, #123c69);
}

.license-summary-grid,
.subscription-current-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.subscription-current-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.license-summary-grid div,
.subscription-current-grid div {
  padding: 11px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfdff;
}

.license-summary-grid span,
.subscription-current-grid span {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.license-summary-grid strong,
.subscription-current-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 600;
}

.invite-fields {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(190px, 1fr) minmax(150px, 0.75fr) auto;
  gap: 10px;
  align-items: end;
}

.invite-fields .form-label,
.plan-change-panel .form-label {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
}

.invite-fields .btn {
  min-height: 48px;
}

.pending-invites {
  padding: 0;
  overflow: hidden;
}

.pending-invite-list {
  display: grid;
}

.pending-invite-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid #eef2f7;
}

.pending-invite-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.subscription-page {
  display: grid;
  gap: 18px;
}

.subscription-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.98), rgba(18, 60, 105, 0.92)),
    radial-gradient(circle at 88% 14%, rgba(18, 60, 105, 0.3), transparent 26%);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.18);
}

.subscription-hero h1 {
  max-width: 780px;
  margin: 8px 0 6px;
  font-size: 1.45rem;
  line-height: 1.14;
  font-weight: 600;
}

.subscription-hero p,
.subscription-current p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.subscription-current p {
  color: #64748b;
  margin-bottom: 14px;
  font-weight: 600;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.subscription-plan-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
}

.subscription-plan-card small {
  grid-column: 2;
}

.plan-change-head strong {
  color: #123c69;
  font-size: 1.28rem;
  white-space: nowrap;
}

.subscription-license-control {
  margin-bottom: 12px;
}

.subscription-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  margin-bottom: 12px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.subscription-note i {
  color: #123c69;
  margin-top: 2px;
}

@media (max-width: 991px) {
  .register-access,
  .invite-access {
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .register-access .auth-panel,
  .invite-access .auth-panel {
    min-height: 100dvh;
    align-items: start;
    overflow-y: auto;
  }

  .license-dashboard,
  .subscription-overview {
    grid-template-columns: 1fr;
  }

  .invite-fields {
    grid-template-columns: 1fr;
  }

  .invite-fields .btn {
    width: 100%;
  }

  .subscription-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
}

@media (max-width: 575px) {
  .license-control,
  .subscription-plan-grid,
  .license-summary-grid,
  .subscription-current-grid {
    grid-template-columns: 1fr;
  }

  .pending-invite-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .pending-invite-meta {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
  }
}

.landing-page {
  min-height: 100vh;
  color: #0f172a;
  background: #eef4f8;
}

.landing-hero {
  min-height: 88vh;
  padding: clamp(18px, 3vw, 34px);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(7, 24, 46, 0.96), rgba(18, 60, 105, 0.88)),
    url('../img/orcaflex.png') right 8% center / min(48vw, 620px) auto no-repeat;
  display: grid;
  align-content: start;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 600;
}

.landing-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.landing-nav-actions,
.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-nav .btn,
.landing-actions .btn,
.landing-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.landing-hero-grid {
  max-width: 1220px;
  width: 100%;
  margin: clamp(40px, 8vh, 88px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.72fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.landing-copy {
  max-width: 760px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  color: #eef2f7;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(204, 251, 241, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.landing-copy h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.92;
  font-weight: 600;
}

.landing-copy p {
  max-width: 640px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  font-weight: 600;
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 22px;
}

.landing-proof div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.landing-proof strong,
.landing-proof span {
  display: block;
}

.landing-proof strong {
  color: #fff;
  font-size: 1.08rem;
}

.landing-proof span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
}

.landing-product {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.landing-product > img {
  width: min(340px, 100%);
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.24));
}

.landing-product-panel {
  width: min(100%, 430px);
  padding: 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.18);
}

.landing-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.landing-panel-head span,
.landing-section-head span,
.landing-cta span {
  color: #123c69;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.landing-panel-head strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.landing-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landing-mini-metrics div {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.landing-mini-metrics span,
.landing-mini-metrics strong {
  display: block;
}

.landing-mini-metrics span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
}

.landing-mini-metrics strong {
  margin-top: 4px;
  color: var(--navy);
  font-size: 0.98rem;
}

.landing-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.landing-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.landing-briefing,
.landing-plans,
.landing-cta {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 3vw, 34px);
}

.landing-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.landing-section-head h2 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.02;
  font-weight: 600;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-feature-grid article,
.landing-plan-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.landing-feature-grid article {
  padding: 18px;
}

.landing-feature-grid i,
.landing-plan-card > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #123c69;
  background: #eef2f7;
  border-radius: 8px;
  font-size: 1.18rem;
}

.landing-feature-grid strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.landing-feature-grid p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.landing-plans {
  padding-top: 20px;
}

.landing-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-plan-card {
  position: relative;
  display: grid;
  align-content: start;
  padding: 18px;
  overflow: hidden;
}

.landing-plan-card.is-featured {
  border-color: #123c69;
  box-shadow: 0 22px 42px rgba(18, 60, 105, 0.14);
}

.plan-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.landing-plan-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 600;
}

.landing-plan-card p {
  min-height: 58px;
  margin: 8px 0 12px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.landing-plan-card strong {
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1;
}

.landing-plan-card strong small {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.landing-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.landing-plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
}

.landing-plan-card li i {
  color: #16a34a;
  margin-top: 1px;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #123c69);
  border-radius: 8px;
}

.landing-cta span {
  color: #eef2f7;
}

.landing-cta h2 {
  max-width: 760px;
  margin: 6px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 600;
}

@media (max-width: 991px) {
  .landing-hero {
    min-height: auto;
    background:
      linear-gradient(115deg, rgba(7, 24, 46, 0.96), rgba(18, 60, 105, 0.9)),
      url('../img/orcaflex.png') right 10px top 94px / 220px auto no-repeat;
  }

  .landing-hero-grid,
  .landing-feature-grid,
  .landing-plan-grid {
    grid-template-columns: 1fr;
  }

  .landing-product {
    justify-items: stretch;
  }

  .landing-product > img {
    display: none;
  }

  .landing-section-head,
  .landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav-actions,
  .landing-actions {
    width: 100%;
  }

  .landing-nav-actions .btn,
  .landing-actions .btn {
    flex: 1 1 0;
  }

  .landing-proof,
  .landing-mini-metrics {
    grid-template-columns: 1fr;
  }

  .landing-flow {
    align-items: flex-start;
    flex-direction: column;
  }
}

.clean-landing {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: #102033;
  background:
    radial-gradient(circle at 7% 20%, rgba(18, 60, 105, 0.11), transparent 25%),
    radial-gradient(circle at 92% 78%, rgba(18, 60, 105, 0.09), transparent 27%),
    linear-gradient(135deg, rgba(238, 246, 248, 0.96), rgba(248, 250, 252, 0.96)),
    linear-gradient(90deg, rgba(18, 60, 105, 0.12), rgba(18, 60, 105, 0.1));
}

.clean-nav {
  width: 100%;
  margin: 0 auto;
  padding: 14px clamp(18px, 2vw, 36px) 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.clean-register .clean-nav {
  width: min(100%, 1180px);
}

.clean-login .clean-nav {
  width: min(100%, 1080px);
}

.clean-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.topbar-company-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
}

.topbar-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-logo-settings {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(18, 60, 105, 0.09), transparent 34%),
    linear-gradient(145deg, #fff, #f8fbff);
}

.company-logo-preview {
  min-height: 220px;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.company-logo-preview img {
  width: min(100%, 240px);
  height: min(100%, 170px);
  object-fit: contain;
}

.company-logo-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.company-logo-content .company-logo-dropzone {
  flex: 1 1 auto;
}

.company-logo-content > p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.company-logo-head {
  margin-bottom: 8px;
}

.company-logo-dropzone {
  min-height: 96px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 2px 12px;
  padding: 14px;
  color: #475569;
  border: 1.5px dashed #a9b9c9;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.company-logo-dropzone:hover,
.company-logo-dropzone.is-dragging {
  transform: translateY(-2px);
  border-color: #123c69;
  background: #f5f7fb;
}

.company-logo-dropzone > span {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #123c69;
  border-radius: 10px;
  background: #eef2f7;
  font-size: 1.25rem;
}

.company-logo-dropzone strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.company-logo-dropzone small {
  color: #718096;
  font-size: 0.76rem;
}

.company-logo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.company-logo-meta > span {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .company-logo-settings {
    grid-template-columns: 1fr;
  }

  .company-logo-preview {
    min-height: 170px;
    height: 170px;
  }
}

@media (max-width: 575px) {
  .company-logo-settings {
    padding: 14px;
  }

  .company-logo-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.clean-brand img {
  width: 110px;
  height: 76px;
  object-fit: cover;
}

.clean-card-brand {
  width: fit-content;
  margin-bottom: 14px;
}

.clean-nav nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: clean-reveal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.clean-nav .btn,
.clean-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.clean-nav .btn:hover,
.clean-actions .btn:hover {
  transform: translateY(-2px);
}

.clean-primary-action {
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, var(--navy), #123c69);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.18);
}

.clean-primary-action:hover {
  box-shadow: 0 18px 36px rgba(11, 31, 58, 0.24);
}

.clean-primary-action i,
.clean-plan-cta i {
  transition: transform 0.2s ease;
}

.clean-primary-action:hover i,
.clean-plan-cta:hover i {
  transform: translateX(4px);
}

.clean-shell {
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 12px clamp(18px, 2vw, 36px) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, 0.95fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: stretch;
}

.clean-main,
.clean-side {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(12px);
  animation: clean-card-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.clean-main {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  display: grid;
  align-content: start;
  padding-top: 24px;
}

.clean-main::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -130px;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 60, 105, 0.1), transparent 68%);
}

.clean-main > * {
  position: relative;
  z-index: 1;
}

.clean-kicker {
  width: fit-content;
  padding: 7px 11px;
  color: #123c69;
  background: #eef2f7;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(18, 60, 105, 0.08);
}

.clean-main h1 {
  max-width: 720px;
  margin: 16px 0 12px;
  color: var(--navy);
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1;
  font-weight: 600;
}

.clean-main p {
  max-width: 640px;
  margin: 0;
  color: #506174;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 500;
}

.clean-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.clean-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

.clean-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clean-trust i {
  color: #123c69;
}

.clean-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.clean-feature-grid article {
  min-height: 122px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  animation: clean-feature-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.clean-feature-grid article:nth-child(2) {
  animation-delay: 0.06s;
}
.clean-feature-grid article:nth-child(3) {
  animation-delay: 0.12s;
}
.clean-feature-grid article:nth-child(4) {
  animation-delay: 0.18s;
}

.clean-feature-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 60, 105, 0.3);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.clean-feature-grid i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  color: #123c69;
  background: #eef2f7;
  border-radius: 9px;
  transition: transform 0.2s ease;
}

.clean-feature-grid article:hover > i {
  transform: rotate(-5deg) scale(1.08);
}

.clean-feature-grid strong,
.clean-feature-grid span {
  display: block;
}

.clean-feature-grid strong {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}

.clean-feature-grid span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}

.clean-side {
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 14px;
  animation-delay: 0.08s;
}

.clean-panel-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.clean-panel-head span {
  color: #123c69;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.clean-panel-head h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.08;
  font-weight: 600;
}

.clean-panel-head img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.12));
}

.clean-plan-list {
  display: grid;
  gap: 9px;
}

.clean-plan-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.clean-plan-row:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 60, 105, 0.4);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.clean-plan-row.is-highlight {
  border-color: #123c69;
  background: #f5f7fb;
  box-shadow: 0 0 0 3px rgba(18, 60, 105, 0.07);
}

.clean-plan-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #123c69;
  background: #eef2f7;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.clean-plan-row:hover .clean-plan-icon {
  transform: scale(1.08);
}

.clean-plan-row strong,
.clean-plan-row span {
  display: block;
}

.clean-plan-row strong {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 600;
}

.clean-plan-row span {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

.clean-plan-row em {
  color: #0f172a;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.clean-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.clean-note i {
  color: #123c69;
  margin-top: 1px;
}

.clean-plan-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), #123c69);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.clean-plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(11, 31, 58, 0.22);
}

@keyframes clean-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clean-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clean-feature-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clean-nav nav,
  .clean-main,
  .clean-side,
  .clean-feature-grid article {
    animation: none;
  }

  .clean-nav .btn,
  .clean-actions .btn,
  .clean-primary-action i,
  .clean-plan-cta,
  .clean-plan-cta i,
  .clean-feature-grid article,
  .clean-feature-grid i,
  .clean-plan-row,
  .clean-plan-icon {
    transition: none;
  }
}

@media (max-width: 991px) {
  .clean-landing {
    overflow: auto;
  }

  .clean-shell {
    grid-template-columns: 1fr;
  }

  .clean-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .clean-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .clean-nav nav,
  .clean-actions {
    width: 100%;
  }

  .clean-nav .btn,
  .clean-actions .btn {
    flex: 1 1 0;
  }

  .clean-feature-grid {
    grid-template-columns: 1fr;
  }

  .clean-plan-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .clean-plan-row em {
    grid-column: 2;
  }
}

.clean-register {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: auto;
  background:
    radial-gradient(circle at 8% 18%, rgba(18, 60, 105, 0.11), transparent 24%),
    radial-gradient(circle at 92% 76%, rgba(18, 60, 105, 0.09), transparent 26%),
    linear-gradient(135deg, rgba(238, 246, 248, 0.98), rgba(248, 250, 252, 0.98)),
    linear-gradient(90deg, rgba(18, 60, 105, 0.1), rgba(18, 60, 105, 0.08));
}

.clean-register .clean-nav {
  width: 100%;
  justify-content: space-between;
  padding-top: 10px;
}

.clean-register .clean-brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.clean-register .clean-brand span {
  font-weight: 600;
}

.register-shell {
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 12px clamp(18px, 2vw, 36px) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: stretch;
}

.register-card,
.register-plan-card {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(12px);
  animation: register-card-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.register-plan-card {
  animation-delay: 0.08s;
}

.register-card {
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  align-content: center;
}

.register-progress {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  margin-bottom: 24px;
  padding: 13px 15px 15px;
  overflow: hidden;
  border: 1px solid #dbe7ee;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #f5f7fb);
}

.register-progress-copy span,
.register-progress-copy strong {
  display: block;
}

.register-progress-copy span {
  color: #123c69;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.register-progress-copy strong {
  margin-top: 2px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.register-progress-percent {
  align-self: center;
  color: #123c69;
  font-size: 0.82rem;
  font-weight: 600;
}

.register-progress-track {
  grid-column: 1 / -1;
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8ee;
}

.register-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #123c69, #123c69);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.register-card-head span,
.register-plan-head span {
  color: #123c69;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.register-card-head h1 {
  max-width: 600px;
  margin: 8px 0 8px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1;
  font-weight: 600;
}

.register-card-head p {
  max-width: 560px;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 500;
}

.register-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.register-fields .form-label,
.register-license-box .form-label {
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
}

.register-fields .form-control {
  min-height: 54px;
  border-color: #d7e0e8;
  border-radius: 10px;
  background: #fbfdfe;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.register-fields .form-control::placeholder {
  color: #9aa8b6;
}

.register-field:focus-within .form-label {
  color: #123c69;
}

.register-field:focus-within .input-icon > i {
  color: #123c69;
}

.register-field .form-control:focus {
  border-color: #123c69;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 60, 105, 0.11);
}

.register-field.is-complete .form-control:not(:focus) {
  border-color: rgba(18, 60, 105, 0.36);
  background: #fcfffe;
}

.register-password-input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #64748b;
  border: 0;
  border-radius: 12px;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: #123c69;
  background: #eef2f7;
}

.password-toggle i {
  position: static;
  transform: none;
}

.password-strength {
  margin-top: 7px;
}

.password-strength > span {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.password-strength > span i {
  height: 3px;
  border-radius: 999px;
  background: #e2e8f0;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.password-strength small {
  display: block;
  margin-top: 5px;
  color: #8492a2;
  font-size: 0.72rem;
}

.password-strength[data-level='1'] > span i:nth-child(-n + 1) {
  background: #ef4444;
}
.password-strength[data-level='2'] > span i:nth-child(-n + 2) {
  background: #f59e0b;
}
.password-strength[data-level='3'] > span i:nth-child(-n + 3) {
  background: #123c69;
}
.password-strength[data-level='4'] > span i {
  background: #123c69;
}

.register-submit {
  margin-top: 18px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), #123c69);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.register-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(11, 31, 58, 0.24);
}

.register-submit i {
  transition: transform 0.2s ease;
}

.register-submit:hover i {
  transform: translateX(4px);
}

.register-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  color: #718096;
  font-size: 0.76rem;
}

.register-security-note i {
  color: #123c69;
}

.register-login-link {
  margin: 10px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

.register-login-link a {
  color: var(--navy-2);
  font-weight: 600;
}

.register-plan-card {
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.register-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.register-plan-head h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.1;
  font-weight: 600;
}

.register-plan-head strong {
  color: #123c69;
  font-size: 1.22rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.register-plan-head strong.is-updating {
  color: #123c69;
  transform: scale(1.08);
}

.register-plan-list {
  display: grid;
  gap: 9px;
}

.register-plan-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.register-plan-option:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.register-plan-option.is-selected {
  border-color: #123c69;
  background: #f5f7fb;
  box-shadow:
    0 0 0 3px rgba(18, 60, 105, 0.08),
    0 12px 28px rgba(18, 60, 105, 0.08);
}

.register-plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.register-plan-option > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #123c69;
  background: #eef2f7;
  border-radius: 8px;
}

.register-plan-option strong,
.register-plan-option small {
  display: block;
}

.register-plan-option strong {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 600;
}

.register-plan-option small {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

.register-plan-check {
  color: #123c69;
  opacity: 0;
  transform: scale(0.65);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.register-plan-option.is-selected .register-plan-check {
  opacity: 1;
  transform: scale(1);
}

.register-license-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.register-license-box span {
  display: block;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}

.register-license-stepper {
  display: grid;
  grid-template-columns: 34px 54px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d7e0e8;
  border-radius: 10px;
  background: #fff;
}

.register-license-stepper button {
  height: 42px;
  padding: 0;
  color: #123c69;
  border: 0;
  background: transparent;
  transition: background-color 0.16s ease;
}

.register-license-stepper button:hover {
  background: #eef2f7;
}

.register-license-stepper .form-control {
  min-height: 42px;
  padding: 0;
  text-align: center;
  font-weight: 600;
  border: 0;
  border-right: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
  appearance: textfield;
}

.register-license-stepper .form-control::-webkit-inner-spin-button,
.register-license-stepper .form-control::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.register-plan-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
}

.register-plan-note i {
  color: #123c69;
  margin-top: 1px;
}

@keyframes register-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-card,
  .register-plan-card {
    animation: none;
  }

  .register-progress-track span,
  .register-submit,
  .register-submit i,
  .register-plan-option,
  .register-plan-check,
  .register-plan-head strong {
    transition: none;
  }
}

@media (max-width: 991px) {
  .clean-register {
    overflow: auto;
  }

  .register-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .register-fields,
  .register-license-box {
    grid-template-columns: 1fr;
  }

  .clean-register .clean-nav {
    gap: 8px;
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .clean-register .clean-brand img {
    width: 44px;
    height: 44px;
  }

  .register-shell {
    padding-top: 6px;
    padding-bottom: 20px;
  }

  .register-progress {
    margin-bottom: 18px;
  }
}

@media (max-width: 359px) {
  .register-card {
    padding: 18px;
  }

  .register-submit {
    gap: 6px;
    font-size: 1rem;
    white-space: nowrap;
  }
}

.clean-login {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: auto;
  background:
    radial-gradient(circle at 12% 20%, rgba(18, 60, 105, 0.1), transparent 25%),
    radial-gradient(circle at 90% 78%, rgba(18, 60, 105, 0.11), transparent 27%),
    linear-gradient(135deg, rgba(238, 246, 248, 0.98), rgba(248, 250, 252, 0.98)),
    linear-gradient(90deg, rgba(18, 60, 105, 0.09), rgba(18, 60, 105, 0.1));
}

.clean-login .clean-nav {
  width: 100%;
  justify-content: space-between;
  padding-top: 10px;
}

.clean-login .clean-brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.clean-login .clean-brand span {
  font-weight: 600;
}

.login-shell {
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 12px clamp(18px, 2vw, 36px) 28px;
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: stretch;
}

.login-card,
.login-side {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(12px);
  animation: login-card-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-card {
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  align-content: center;
}

.login-card-head span,
.login-side-head span {
  color: #123c69;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.login-card-head h1 {
  margin: 8px 0 8px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1;
  font-weight: 600;
}

.login-card-brand {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(18, 60, 105, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #eef2f7);
  box-shadow: 0 12px 28px rgba(18, 60, 105, 0.1);
}

.login-card-logo {
  width: 70px;
  height: 70px;
  display: block;
  margin: 0;
  object-fit: cover;
}

.login-card-head p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 500;
}

.login-fields {
  display: grid;
  gap: 16px;
}

.login-fields .form-label {
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
}

.login-fields .form-control {
  min-height: 54px;
  border-color: #d7e0e8;
  border-radius: 10px;
  background: #fbfdfe;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.login-fields .form-control::placeholder {
  color: #9aa8b6;
}

.login-field:focus-within .form-label,
.login-field:focus-within .input-icon > i {
  color: #123c69;
}

.login-field .form-control:focus {
  border-color: #123c69;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 60, 105, 0.11);
}

.login-field.is-complete .form-control:not(:focus) {
  border-color: rgba(18, 60, 105, 0.36);
  background: #fcfffe;
}

.login-password-input {
  padding-right: 46px;
}

.login-submit {
  min-height: 52px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), #123c69);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(11, 31, 58, 0.24);
}

.login-submit i {
  transition: transform 0.2s ease;
}

.login-submit:hover i {
  transform: translateX(4px);
}

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
  color: #718096;
  font-size: 0.76rem;
}

.login-security-note i {
  color: #123c69;
}

.login-demo-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #f5f7fb);
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 500;
}

.login-demo-box span {
  color: #123c69;
  font-weight: 600;
}

.login-demo-box small {
  color: #64748b;
  line-height: 1.25;
}

.login-demo-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 10px;
  color: #123c69;
  border: 1px solid rgba(18, 60, 105, 0.24);
  border-radius: 9px;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.login-demo-box button:hover {
  transform: translateY(-1px);
  border-color: #123c69;
  background: #eef2f7;
}

.login-demo-box button.is-applied {
  color: #fff;
  border-color: #123c69;
  background: #123c69;
}

.login-register-link {
  margin: 14px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

.login-register-link a {
  color: var(--navy-2);
  font-weight: 600;
}

.login-side {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
  animation-delay: 0.08s;
}

.login-side-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.login-side-head h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.05;
  font-weight: 600;
}

.login-side-head img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.12));
}

.login-flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-flow-list article {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.login-flow-list article:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 60, 105, 0.3);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.login-flow-list i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #123c69;
  background: #eef2f7;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.login-flow-list article:hover > i {
  transform: rotate(-5deg) scale(1.08);
}

.login-flow-list strong,
.login-flow-list span {
  display: block;
}

.login-flow-list strong {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.login-flow-list span {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
}

.login-side-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
}

.login-side-note i {
  color: #123c69;
  margin-top: 1px;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card,
  .login-side {
    animation: none;
  }

  .login-submit,
  .login-submit i,
  .login-demo-box button,
  .login-flow-list article,
  .login-flow-list i {
    transition: none;
  }
}

@media (max-width: 991px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .login-demo-box,
  .login-flow-list,
  .login-side-head {
    grid-template-columns: 1fr;
  }
}

/* Employee profile */
.employee-page-head {
  align-items: flex-end;
}

.employee-page-head > div:first-child {
  max-width: 380px;
}

.employee-page-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--navy-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.employee-page-head h1 {
  color: var(--navy);
}

.employee-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: nowrap;
}

.employee-page-actions .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  font-weight: 600;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.employee-page-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.employee-icon-button {
  width: 42px;
  padding-right: 0;
  padding-left: 0;
}

.employee-profile {
  padding: 0;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
}

.employee-profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(18, 60, 105, 0.12), transparent 26%),
    linear-gradient(135deg, #ffffff, #f3f5f7);
}

.employee-profile-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--navy-2), #94a3b8);
}

.employee-profile-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 250px;
  height: 250px;
  border: 34px solid rgba(18, 60, 105, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.employee-profile-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.employee-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  box-shadow: 0 16px 30px rgba(11, 31, 58, 0.2);
  font-size: 1.24rem;
  font-weight: 600;
}

.employee-profile-copy {
  min-width: 0;
}

.employee-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: var(--navy-2);
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.employee-profile-copy h2 {
  margin: 10px 0 4px;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
  font-weight: 600;
}

.employee-profile-copy > p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
}

.employee-profile-meta {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.employee-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.employee-profile-meta i {
  color: var(--navy-2);
}

.employee-profile-side {
  position: relative;
  z-index: 1;
  min-width: 132px;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.employee-company-logo {
  width: auto;
  max-width: 126px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: right center;
}

.employee-status .badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.employee-stat-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -18px 26px 0;
}

.employee-stat-card {
  min-width: 0;
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.employee-stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 60, 105, 0.24);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.11);
}

.employee-stat-icon,
.employee-panel-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy-2);
  border-radius: 10px;
  background: var(--soft);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.28s ease,
    background-color 0.28s ease;
}

.employee-stat-card:hover .employee-stat-icon {
  transform: rotate(-4deg) scale(1.08);
  color: #fff;
  background: var(--navy-2);
}

.employee-stat-card span,
.employee-stat-card strong,
.employee-stat-card small {
  display: block;
}

.employee-stat-card span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.employee-stat-card strong {
  margin: 6px 0 4px;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.12;
  font-weight: 600;
}

.employee-stat-card small {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}

.employee-content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  padding: 26px;
}

.employee-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.employee-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 60, 105, 0.18);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.075);
}

.employee-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.employee-panel-head span,
.employee-panel-head h3 {
  display: block;
}

.employee-panel-head span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.employee-panel-head h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.employee-info-list {
  display: grid;
  gap: 8px;
}

.employee-info-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.22s ease;
}

.employee-info-row:hover {
  transform: translateX(4px);
  background: #f8fafc;
}

.employee-info-row > i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--navy-2);
  border-radius: 9px;
  background: var(--soft);
}

.employee-info-row span,
.employee-info-row strong,
.employee-info-row a {
  display: block;
}

.employee-info-row span,
.employee-address-summary span {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.employee-info-row strong,
.employee-info-row a {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.employee-info-row a:hover {
  color: var(--navy-2);
  text-decoration: underline;
}

.employee-address-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, 0.8fr) minmax(100px, 0.55fr);
  gap: 10px;
  margin-bottom: 14px;
}

.employee-address-summary > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #f8fafc;
}

.employee-address-summary strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.employee-map-frame {
  width: 100%;
  display: block;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  filter: saturate(0.72) contrast(0.96);
}

.employee-map-empty {
  min-height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  color: #64748b;
  border: 1px dashed #cad8e8;
  border-radius: 12px;
  background: #f8fafc;
}

.employee-map-empty > i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy-2);
  border-radius: 12px;
  background: var(--soft);
  font-size: 1.25rem;
}

.employee-map-empty strong,
.employee-map-empty span {
  display: block;
}

.employee-map-empty strong {
  color: var(--navy);
  font-size: 0.92rem;
}

.employee-map-empty span {
  max-width: 380px;
  margin-top: 3px;
  font-size: 0.8rem;
}

.employee-notes-panel {
  grid-column: 1 / -1;
}

.employee-notes-panel p {
  margin: 0;
  padding: 14px 16px;
  color: #475569;
  border-left: 3px solid var(--navy-2);
  border-radius: 0 10px 10px 0;
  background: #f8fafc;
  line-height: 1.6;
}

.employee-profile-hero,
.employee-stat-card,
.employee-panel {
  animation: employee-reveal 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.employee-stat-card:nth-child(1) {
  animation-delay: 0.06s;
}
.employee-stat-card:nth-child(2) {
  animation-delay: 0.1s;
}
.employee-stat-card:nth-child(3) {
  animation-delay: 0.14s;
}
.employee-stat-card:nth-child(4) {
  animation-delay: 0.18s;
}
.employee-panel:nth-child(1) {
  animation-delay: 0.2s;
}
.employee-panel:nth-child(2) {
  animation-delay: 0.24s;
}
.employee-panel:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes employee-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .employee-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-content-grid {
    grid-template-columns: 1fr;
  }

  .employee-notes-panel {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .employee-page-head {
    align-items: flex-start;
  }

  .employee-page-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .employee-profile-hero {
    align-items: flex-start;
    padding: 24px 20px 38px;
  }

  .employee-profile-main {
    align-items: flex-start;
  }

  .employee-profile-side {
    min-width: auto;
  }

  .employee-company-logo {
    max-width: 82px;
    max-height: 46px;
  }

  .employee-profile-meta {
    display: grid;
  }

  .employee-stat-grid {
    margin-right: 16px;
    margin-left: 16px;
  }

  .employee-content-grid {
    padding: 20px 16px;
  }

  .employee-address-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .employee-page-actions .btn:not(.employee-icon-button) {
    flex: 1 1 calc(50% - 9px);
  }

  .employee-profile-hero {
    flex-direction: column;
  }

  .employee-profile-main {
    flex-direction: column;
  }

  .employee-profile-side {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .employee-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .employee-profile-hero,
  .employee-stat-card,
  .employee-panel {
    animation: none;
  }

  .employee-page-actions .btn,
  .employee-stat-card,
  .employee-stat-icon,
  .employee-panel,
  .employee-info-row {
    transition: none;
  }
}

@media print {
  .employee-profile {
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .employee-profile-hero {
    padding: 0 0 12px;
    overflow: visible;
    border-bottom: 1px solid #dbe3ef;
    background: #fff;
  }

  .employee-profile-hero::before,
  .employee-profile-hero::after {
    display: none;
  }

  .employee-avatar {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-size: 0.8rem;
  }

  .employee-profile-copy h2 {
    margin-top: 5px !important;
  }

  .employee-profile-meta {
    margin-top: 5px;
  }

  .employee-company-logo {
    max-width: 100px !important;
    max-height: 42px !important;
  }

  .employee-status .badge {
    min-height: 0;
    box-shadow: none;
  }

  .employee-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0 0;
  }

  .employee-stat-card {
    min-height: 0;
    gap: 6px;
    padding: 8px;
    border-radius: 7px;
    box-shadow: none;
  }

  .employee-stat-icon,
  .employee-panel-icon,
  .employee-info-row > i {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    font-size: 0.7rem;
  }

  .employee-stat-card strong {
    margin: 2px 0;
    font-size: 0.76rem;
  }

  .employee-content-grid {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 8px;
    padding: 10px 0 0;
  }

  .employee-panel {
    padding: 9px;
    border-radius: 7px;
    box-shadow: none;
  }

  .employee-panel-head {
    gap: 6px;
    margin-bottom: 7px;
    padding-bottom: 6px;
  }

  .employee-info-list {
    gap: 2px;
  }

  .employee-info-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    padding: 3px;
  }

  .employee-address-summary {
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 0;
  }

  .employee-address-summary > div {
    padding: 5px 6px;
    border-radius: 5px;
  }

  .employee-map-frame,
  .employee-map-empty {
    display: none !important;
  }

  .employee-notes-panel {
    grid-column: 1 / -1;
  }

  .employee-notes-panel p {
    padding: 7px 9px;
  }

  .employee-profile-hero,
  .employee-stat-card,
  .employee-panel {
    animation: none;
    transform: none !important;
  }
}

/* OS: transportes e múltiplas viagens */
.os-transport-shell {
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.06);
}

.os-transport-toggle {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.os-transport-toggle-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.os-transport-toggle-copy strong,
.os-transport-toggle-copy small {
  display: block;
}

.os-transport-toggle-copy strong {
  color: var(--navy);
  font-size: 1rem;
}
.os-transport-toggle-copy small {
  margin-top: 3px;
  color: var(--muted);
}
.os-transport-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--navy-2);
  background: #fff;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.08);
}
.os-transport-toggle .form-check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.os-transport-toggle .form-check-input {
  width: 2.8rem;
  height: 1.45rem;
  margin: 0;
  cursor: pointer;
}
.os-transport-toggle .form-check-label {
  min-width: 28px;
  color: var(--navy);
  font-weight: 600;
}

.os-transport-panel {
  padding: 20px;
  border-top: 1px solid #dbe3ef;
  animation: osTransportReveal 0.28s ease both;
}
.os-transport-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.os-transport-head span {
  color: var(--navy-2);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.os-transport-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1.05rem;
}
.os-transport-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.os-transport-list {
  display: grid;
  gap: 12px;
}
.os-transport-trip {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fbfcfe;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.os-transport-trip:hover {
  border-color: #c5d2e3;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.07);
  transform: translateY(-1px);
}
.os-transport-trip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.os-transport-trip-head strong {
  color: var(--navy);
  font-size: 0.9rem;
}
.os-final-value {
  color: var(--navy);
  background: #eef3f9 !important;
  font-weight: 700;
}
.os-view-final-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
}
.os-view-final-total span {
  color: var(--muted);
}
.os-view-final-total strong {
  color: var(--navy);
  font-size: 1.3rem;
}
.os-view-final-total small {
  color: var(--muted);
}

@keyframes osTransportReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .os-transport-toggle,
  .os-transport-head {
    align-items: stretch;
    flex-direction: column;
  }
  .os-transport-toggle .form-check {
    justify-content: flex-end;
  }
  .os-transport-head .btn {
    width: 100%;
  }
  .os-view-final-total {
    align-items: flex-end;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-transport-panel {
    animation: none;
  }
  .os-transport-trip {
    transition: none;
  }
}

/* Balanced typography hierarchy */
.home-copy h1,
.auth-copy h1,
.dashboard-hero h1,
.clients-hero h1,
.landing-copy h1,
.landing-section-head h2,
.landing-cta h2,
.clean-main h1,
.register-card-head h1,
.login-card-head h1,
.login-side-head h2,
.page-head h1,
.employee-page-head h1,
.employee-profile-copy h2 {
  font-weight: 700;
}

/* Global UX refinement */
html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: #fff;
  background: var(--navy-2);
}

.app-main {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f8fa 0, var(--bg) 150px);
}

.topbar {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.035);
}

.sidebar-nav a {
  position: relative;
  overflow: hidden;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sidebar-nav a::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #fff;
  opacity: 0;
  transform: scaleY(0.35);
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sidebar-nav a:hover {
  transform: translateX(3px);
}

.sidebar-nav a.active::before {
  opacity: 0.9;
  transform: scaleY(1);
}

.sidebar-nav a i {
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sidebar-nav a:hover i,
.sidebar-nav a.active i {
  transform: scale(1.08);
}

.app-breadcrumb a,
.app-breadcrumb .active {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease;
}

.app-breadcrumb a:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055);
}

.page-head {
  padding: 2px 0;
}

.page-head h1 {
  color: var(--navy);
  letter-spacing: -0.018em;
  line-height: 1.12;
}

.page-head p {
  margin-top: 5px;
  line-height: 1.45;
}

.card-soft,
.table-card,
.list-filter-card,
.list-table-card,
.clients-filter-card,
.clients-table-card,
.chart-card,
.kpi-card,
.quick-stat,
.event-card {
  border-color: rgba(15, 23, 42, 0.075);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.kpi-card,
.quick-stat,
.client-stat-card,
.event-card,
.subscription-plan-card,
.landing-plan-card {
  transition:
    transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.kpi-card:hover,
.quick-stat:hover,
.client-stat-card:hover,
.event-card:hover,
.subscription-plan-card:hover,
.landing-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 60, 105, 0.18);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.085);
}

.btn {
  border-radius: 9px;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-outline-dark:hover {
  box-shadow: 0 8px 18px rgba(11, 31, 58, 0.14);
}

.btn i {
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn:hover i {
  transform: scale(1.06);
}

.form-label {
  margin-bottom: 6px;
  color: #475569;
}

.form-control,
.form-select {
  border-color: #dbe3ef;
  border-radius: 9px;
  background-color: #fbfcfe;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.form-control:hover:not(:disabled):not(:focus),
.form-select:hover:not(:disabled):not(:focus) {
  border-color: #b9c7d6;
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--navy-2);
  background-color: #fff;
  box-shadow: 0 0 0 0.22rem rgba(18, 60, 105, 0.11);
}

textarea.form-control {
  line-height: 1.55;
}

.input-icon > i {
  transition:
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.input-icon:focus-within > i {
  color: var(--navy-2);
  transform: translateY(-50%) scale(1.06);
}

.table-responsive {
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.modern-table thead th,
.table-card thead th {
  color: #64748b;
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
  letter-spacing: 0.025em;
}

.modern-table tbody tr,
.table-card tbody tr,
.table tbody tr {
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.modern-table tbody tr:hover,
.table-card tbody tr:hover {
  background: #f8fafc;
  box-shadow: inset 3px 0 0 var(--navy-2);
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.badge,
.value-pill,
.dashboard-kicker {
  letter-spacing: 0.01em;
}

.alert {
  border-width: 1px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.empty-state {
  border-radius: 12px;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.empty-state i {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.empty-state:hover i {
  transform: translateY(-3px) scale(1.04);
}

.modal-content {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.modal-header,
.modal-footer {
  border-color: #eef2f7;
}

.modal.show .modal-dialog {
  animation: ux-modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(18, 60, 105, 0.22);
  outline-offset: 2px;
}

.page-head,
.dashboard-hero,
.clients-hero,
.list-filter-card,
.list-table-card,
.form-grid-balanced,
.subscription-hero,
.content-wrap > .card-soft,
.content-wrap > .row,
.content-wrap > .print-sheet {
  animation: ux-page-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.content-wrap > *:nth-child(2) {
  animation-delay: 0.035s;
}
.content-wrap > *:nth-child(3) {
  animation-delay: 0.07s;
}
.content-wrap > *:nth-child(4) {
  animation-delay: 0.105s;
}

@keyframes ux-page-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ux-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .content-wrap {
    padding: 20px 16px;
  }

  .page-head {
    align-items: flex-start;
  }

  .page-head > .d-flex,
  .page-head > div:last-child:not(:first-child) {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .page-head,
  .dashboard-hero,
  .clients-hero,
  .list-filter-card,
  .list-table-card,
  .form-grid-balanced,
  .subscription-hero,
  .content-wrap > .card-soft,
  .content-wrap > .row,
  .content-wrap > .print-sheet {
    animation: none !important;
    transform: none !important;
  }
}

/* User profile photos */
.topbar-user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--navy-2) !important;
  border: 1px solid #dbe3ef;
  border-radius: 50%;
  background: var(--soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.topbar-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.user-photo-settings {
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
}

.user-photo-preview {
  min-height: 220px;
  background: linear-gradient(145deg, #fff, #f3f5f7);
}

.user-photo-preview img {
  width: 176px;
  height: 176px;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(11, 31, 58, 0.16);
}

.user-photo-placeholder {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  box-shadow: 0 16px 34px rgba(11, 31, 58, 0.16);
  font-size: 2rem;
  font-weight: 600;
}

.user-entity-avatar,
.user-profile-avatar {
  overflow: hidden;
  padding: 0;
  border-radius: 50%;
}

.user-entity-avatar img,
.user-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.user-profile-avatar {
  width: 62px;
  height: 62px;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.16);
  font-size: 1rem;
}

@media (max-width: 767px) {
  .user-photo-settings {
    grid-template-columns: 1fr;
  }

  .user-photo-preview {
    min-height: 190px;
  }

  .user-photo-preview img,
  .user-photo-placeholder {
    width: 148px;
    height: 148px;
  }
}

@media print {
  .user-profile-avatar {
    width: 34px !important;
    height: 34px !important;
    border: 0;
    box-shadow: none;
  }
}

.payroll-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.payroll-summary h2 {
  margin: 8px 0;
  font-size: 1.1rem;
}

.payroll-summary form {
  min-width: 230px;
}
