html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: #f6f8fb;
  color: #14233a;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: #1a6fe0;
}

.platform-header {
  background: linear-gradient(180deg, #102a45 0%, #0c2138 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.platform-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 750;
}

.platform-brand:hover,
.platform-brand:focus,
.platform-header .nav-link:hover,
.platform-header .nav-link:focus {
  color: #f26122;
}

.platform-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 9px;
  background: #ffffff;
}

.platform-header .nav-link {
  color: #d7e4f4;
  font-weight: 650;
}

.platform-header .nav-link-strong {
  color: #ffffff;
}

.platform-menu {
  min-width: 220px;
  border: 1px solid rgba(20, 35, 58, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px -26px rgba(20, 35, 58, 0.45);
}

.platform-menu .dropdown-item {
  color: #14233a;
  font-weight: 700;
}

.platform-menu .dropdown-item:hover,
.platform-menu .dropdown-item:focus {
  background: #e7f0fd;
  color: #1a6fe0;
}

.account-nav {
  margin-left: 16px;
}

.logout-form {
  margin: 0;
}

.logout-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.company-switcher form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.company-switcher label {
  color: #d7e4f4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-switcher select {
  min-height: 34px;
  max-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #14233a;
  font-weight: 700;
}

.link-button {
  border: 0;
  background: transparent;
  color: #1a6fe0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  padding: 0;
}

.link-button:hover,
.link-button:focus {
  color: #f26122;
}

.platform-toggler {
  background: #e7f0fd;
}

.platform-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.portal-hero,
.workspace-preview,
.pricing-section,
.login-layout,
.workspace-shell {
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.05);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 36px;
}

.eyebrow,
.status-label {
  margin: 0 0 8px;
  color: #1a6fe0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-hero h1,
.workspace-heading h1,
.login-copy h1 {
  margin: 0;
  color: #14233a;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-section {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.portal-section h1,
.workspace-preview h2,
.pricing-section h2 {
  margin: 0;
  color: #14233a;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.section-copy,
.hero-copy,
.workspace-preview p,
.pricing-section p,
.login-copy p,
.login-note {
  max-width: 720px;
  margin: 10px 0 0;
  color: #4a5a72;
  line-height: 1.6;
}

.hero-copy {
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 0 18px;
  border-radius: 9px;
  font-weight: 750;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.button-primary {
  border: 1px solid #1a6fe0;
  background: #1a6fe0;
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus {
  border-color: #f26122;
  background: #f26122;
  color: #ffffff;
}

.button-secondary {
  border: 1px solid #1a6fe0;
  background: #ffffff;
  color: #1a6fe0;
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: #f26122;
  background: #f26122;
  color: #ffffff;
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.status-card {
  min-height: 176px;
  padding: 22px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.05);
}

.status-card strong {
  display: block;
  color: #14233a;
  font-size: 1.05rem;
}

.status-card p {
  margin: 10px 0 0;
  color: #4a5a72;
  line-height: 1.55;
}

.workspace-preview,
.pricing-section,
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: 30px;
}

.preview-window {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 16px;
  background: #f6f8fb;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: #eef3f9;
  border-right: 1px solid #e0e7f1;
}

.preview-sidebar span {
  padding: 9px 10px;
  border-radius: 10px;
  color: #4a5a72;
  font-size: 0.82rem;
  font-weight: 700;
}

.preview-sidebar span:first-child {
  background: #1a6fe0;
  color: #ffffff;
}

.preview-content {
  padding: 18px;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preview-kpis span,
.preview-table {
  display: block;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #ffffff;
}

.preview-kpis span {
  height: 70px;
}

.preview-table {
  height: 118px;
  margin-top: 14px;
}

.pricing-card,
.login-panel,
.workspace-panel,
.workspace-metrics article,
.admin-panel {
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.05);
}

.pricing-card {
  padding: 24px;
}

.pricing-card strong {
  display: block;
  color: #14233a;
  font-size: 1.3rem;
}

.pricing-card .button {
  margin-top: 12px;
}

.workspace-shell {
  display: block;
  padding: 28px;
}

.workspace-main {
  padding: 0;
}

.workspace-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.workspace-heading > div:first-child {
  min-width: 0;
}

.workspace-heading > .button,
.workspace-heading > a.button {
  flex: 0 0 auto;
}

.hero-actions form {
  display: flex;
  margin: 0;
}

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

.workspace-metrics article {
  padding: 18px;
}

.workspace-metrics span {
  display: block;
  color: #8190a6;
  font-weight: 700;
}

.workspace-metrics strong {
  display: block;
  margin-top: 8px;
  color: #14233a;
  font-size: 1.1rem;
}

.platform-metrics strong {
  font-size: 1.35rem;
}

.workspace-panel {
  margin-top: 18px;
  padding: 22px;
}

.list-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 10px;
  margin-top: 20px;
}

.list-toolbar input,
.list-toolbar select,
.customer-form textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  padding: 10px 12px;
  color: #14233a;
  background: #ffffff;
}

.list-toolbar input,
.list-toolbar select {
  min-height: 42px;
}

.customer-form {
  margin-top: 20px;
}

.customer-form textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workspace-panel h2,
.login-panel h2,
.admin-panel h2 {
  margin: 0 0 18px;
  color: #14233a;
  font-size: 1.15rem;
  font-weight: 800;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-list div {
  padding: 14px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #f6f8fb;
}

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

.module-list span {
  margin-top: 4px;
  color: #4a5a72;
}

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

.download-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #f6f8fb;
}

.download-card span,
.download-card dt {
  color: #8190a6;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.download-card strong,
.download-card small {
  display: block;
}

.download-card strong {
  margin-top: 6px;
  color: #14233a;
  font-size: 1.1rem;
}

.download-card small {
  margin-top: 4px;
  color: #4a5a72;
  overflow-wrap: anywhere;
}

.download-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.download-card dd {
  margin: 2px 0 0;
  color: #14233a;
  font-weight: 750;
}

.download-card .checksum {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.login-panel {
  padding: 26px;
}

.login-panel label,
.admin-panel label {
  display: block;
  margin: 16px 0 7px;
  color: #4a5a72;
  font-size: 0.86rem;
  font-weight: 750;
}

.login-panel input:not([type="checkbox"]),
.admin-panel select,
.admin-panel input,
.form-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  padding: 0 12px;
  color: #14233a;
  background: #ffffff;
}

.login-panel input:focus,
.admin-panel select:focus,
.admin-panel input:focus,
.form-control:focus {
  outline: 3px solid rgba(26, 111, 224, 0.18);
  border-color: #1a6fe0;
  box-shadow: none;
}

.password-input {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input input {
  padding-right: 68px !important;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1a6fe0;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 16px 0 !important;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.checkbox-field {
  display: flex;
  align-items: end;
}

.input-disabled {
  background: #eef2f7 !important;
  color: #8190a6 !important;
  cursor: not-allowed;
}

.file-drop-zone {
  display: grid !important;
  gap: 6px;
  margin-top: 6px !important;
  padding: 18px;
  border: 2px dashed #b9c7da;
  border-radius: 10px;
  background: #f6f8fb;
  color: #4a5a72;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.file-drop-zone input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.file-drop-zone.is-dragover,
.file-drop-zone:focus-within {
  border-color: #1a6fe0;
  background: #eaf2ff;
}

.file-drop-title {
  color: #14233a;
  font-weight: 800;
}

.file-drop-hint,
.file-drop-name {
  font-size: 0.84rem;
}

.file-drop-name {
  color: #1a6fe0;
  font-weight: 750;
}

.login-panel .button {
  width: 100%;
  border: 0;
}

.password-help {
  color: #4a5a72;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 6px;
  margin-bottom: 2px;
}

.password-help strong {
  color: #14233b;
  font-weight: 750;
}

.validation-message {
  display: block;
  margin-top: 4px;
  color: #d92d20;
  font-size: 0.84rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.admin-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.platform-admin-actions,
.platform-admin-nav,
.panel-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-admin-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.platform-admin-nav {
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 8px;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  background: #ffffff;
}

.platform-admin-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: #4a5a72;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.platform-admin-nav a:hover,
.platform-admin-nav a:focus,
.platform-admin-nav a.active {
  background: #eaf2ff;
  color: #1a6fe0;
}

.platform-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel-heading-row {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-heading-row h2 {
  margin: 0;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.metric-list div {
  padding: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  background: #f6f8fb;
}

.metric-list dt {
  color: #8190a6;
  font-size: 0.82rem;
  font-weight: 750;
}

.metric-list dd {
  margin: 5px 0 0;
  color: #14233a;
  font-size: 1.1rem;
  font-weight: 850;
}

.platform-management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.management-tile {
  display: block;
  min-height: 104px;
  padding: 18px;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #ffffff;
  color: #14233a;
  text-decoration: none;
}

.management-tile:hover,
.management-tile:focus {
  border-color: #1a6fe0;
  box-shadow: 0 14px 30px rgba(26, 111, 224, 0.12);
}

.management-tile span {
  display: block;
  color: #8190a6;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.management-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.admin-panel {
  padding: 22px;
}

.embedded-panel {
  margin-top: 0;
}

.compact-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.compact-form {
  display: grid;
  gap: 10px;
}

.compact-table-form {
  display: grid;
  gap: 8px;
  margin: 0;
}

.compact-form textarea,
.compact-table-form textarea,
.admin-panel textarea,
.table-inline-form input,
.table-inline-form select {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  padding: 10px 12px;
  color: #14233a;
  background: #ffffff;
}

.compact-table-form input,
.compact-table-form textarea {
  min-width: 0;
  width: 100%;
}

.table-inline-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}

.table-inline-form:last-child {
  margin-bottom: 0;
}

.platform-user-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  min-width: min(100%, 440px);
}

.platform-user-form .button {
  width: 100%;
}

.company-access-form {
  grid-template-columns: minmax(150px, 1fr) auto auto;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin: 0;
  color: #4a5a72;
  font-size: 0.84rem;
  font-weight: 750;
  white-space: normal;
}

.inline-check input {
  min-width: auto;
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #1a6fe0;
}

.platform-user-create {
  margin-top: 18px;
  max-width: 560px;
}

.permission-matrix-form {
  padding: 18px 0;
  border-top: 1px solid #e5eaf1;
}

.permission-matrix-form:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.permission-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.permission-matrix-head h3 {
  margin: 0;
  color: #14233a;
  font-size: 1.02rem;
  font-weight: 850;
}

.permission-matrix-head span {
  color: #8190a6;
  font-size: 0.84rem;
  font-weight: 700;
}

.permission-table th,
.permission-table td {
  text-align: center;
  white-space: nowrap;
}

.permission-table th:first-child,
.permission-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  background: #ffffff;
  text-align: left;
}

.permission-table input[type="checkbox"] {
  min-width: auto;
  width: 18px;
  height: 18px;
  accent-color: #1a6fe0;
}

.admin-panel .button {
  width: 100%;
  margin-top: 18px;
  border: 0;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

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

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #e5eaf1;
  text-align: left;
  vertical-align: middle;
  min-width: 0;
}

.admin-table th {
  color: #4a5a72;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-table td {
  color: #14233a;
}

.admin-table tfoot td {
  border-bottom: 0;
  font-weight: 750;
  text-align: right;
}

.admin-table select,
.admin-table input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-table input[type="checkbox"] {
  min-width: auto;
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #1a6fe0;
}

.admin-table textarea {
  max-width: 100%;
  resize: vertical;
}

/* Platform admin — subscription package board */
.pkg-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pkg-stat {
  padding: 15px 18px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #f6f8fb;
}

.pkg-stat span {
  display: block;
  color: #8190a6;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pkg-stat strong {
  display: block;
  margin-top: 5px;
  color: #14233a;
  font-size: 1.6rem;
  font-weight: 850;
}

.pkg-create {
  margin-top: 18px;
  border: 1px solid #d8e2ef;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.pkg-create > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  color: #1a6fe0;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.pkg-create > summary::-webkit-details-marker {
  display: none;
}

.pkg-create > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #eaf2ff;
  font-size: 1.15rem;
  line-height: 1;
}

.pkg-create[open] > summary::before {
  content: "\2212";
}

.pkg-create-body {
  padding: 6px 20px 22px;
  border-top: 1px solid #eef2f7;
}

.pkg-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pkg-span-2 {
  grid-column: 1 / -1;
}

.pkg-create-grid .button {
  min-width: 180px;
}

.pkg-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d8e2ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.05);
  overflow: hidden;
}

.pkg-card.is-inactive {
  border-style: dashed;
  background: #fbfcfe;
}

.pkg-card-head {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid #eef2f7;
}

.pkg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pkg-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #d8e2ef;
  background: #f2f6fc;
  color: #4a5a72;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pkg-badge--active {
  border-color: #1f9d57;
  background: #e4f4ea;
  color: #12703d;
}

.pkg-badge--inactive {
  border-color: #cfd8e6;
  background: #eef2f7;
  color: #8190a6;
}

.pkg-badge--paid {
  border-color: #1a6fe0;
  background: #eaf2ff;
  color: #1a6fe0;
}

.pkg-badge--free {
  border-color: #6b4ed8;
  background: #efeafd;
  color: #5a3fd0;
}

.pkg-badge--offer {
  border-color: #f26122;
  background: #fff0e8;
  color: #d94f13;
}

.pkg-name {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 4px 8px;
  margin: 0 -8px;
  color: #14233a;
  font-size: 1.25rem;
  font-weight: 850;
  background: transparent;
}

.pkg-name:hover {
  border-color: #e5eaf1;
}

.pkg-name:focus {
  border-color: #1a6fe0;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 111, 224, 0.12);
}

.pkg-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.pkg-price b {
  color: #14233a;
  font-size: 1.5rem;
  font-weight: 850;
}

.pkg-price s {
  color: #b0bbcb;
  font-weight: 700;
}

.pkg-price span {
  color: #8190a6;
  font-size: 0.85rem;
  font-weight: 700;
}

.pkg-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.pkg-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pkg-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pkg-field label {
  color: #8190a6;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pkg-field input,
.pkg-field select,
.pkg-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  padding: 9px 11px;
  color: #14233a;
  background: #ffffff;
  font: inherit;
}

.pkg-field textarea {
  resize: vertical;
  min-height: 56px;
}

.pkg-field input:focus,
.pkg-field select:focus,
.pkg-field textarea:focus {
  border-color: #1a6fe0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 111, 224, 0.12);
}

.pkg-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.pkg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 13px 18px;
  border-top: 1px solid #eef2f7;
  background: #fbfcfe;
}

.pkg-card-foot .button {
  margin: 0;
  width: auto;
}

.pkg-id {
  color: #aab4c4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pkg-foot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pkg-delete {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #b42318;
  font: inherit;
  font-weight: 750;
  font-size: 0.9rem;
  cursor: pointer;
}

.pkg-delete:hover,
.pkg-delete:focus {
  border-color: #f0c2bd;
  background: #fff4f2;
  color: #912018;
  outline: none;
}

.pkg-reset-row {
  margin-top: 8px;
}

.optional-hint {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #8190a6;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.pkg-empty {
  margin-top: 20px;
  padding: 26px;
  border: 1px dashed #cfd8e6;
  border-radius: 14px;
  background: #fbfcfe;
  color: #4a5a72;
  text-align: center;
}

@media (max-width: 620px) {
  .pkg-create-grid,
  .pkg-field-grid {
    grid-template-columns: 1fr;
  }
}

.tenant-assignment-form {
  grid-template-columns: minmax(180px, 1fr) minmax(86px, 0.35fr) auto;
}

.invoice-lines {
  margin-top: 4px;
}

.document-line-total {
  color: #14233a;
  font-weight: 850;
  white-space: nowrap;
}

.document-totals-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.document-totals-preview div {
  padding: 14px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #f6f8fb;
}

.document-totals-preview span {
  display: block;
  color: #8190a6;
  font-size: 0.82rem;
  font-weight: 800;
}

.document-totals-preview strong {
  display: block;
  margin-top: 5px;
  color: #14233a;
  font-size: 1.1rem;
}

.document-totals-preview .grand-total {
  border-color: #1a6fe0;
  background: #eaf2ff;
}

.delivery-points {
  display: grid;
  gap: 14px;
}

.delivery-point {
  padding: 14px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #f6f8fb;
}

.invoice-finalize {
  align-self: end;
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.invoice-detail-grid p {
  margin: 6px 0 0;
  color: #4a5a72;
  white-space: pre-line;
}

.receivables-panel {
  display: grid;
  gap: 18px;
}

.receivables-header,
.payment-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.receivables-header h2,
.payment-card-heading h3 {
  margin: 0;
  color: #14233a;
  font-weight: 800;
}

.payment-balance {
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #f6f8fb;
  text-align: right;
}

.payment-balance span,
.payment-card-heading span {
  display: block;
  color: #8190a6;
  font-size: 0.82rem;
  font-weight: 750;
}

.payment-balance strong {
  display: block;
  margin-top: 4px;
  color: #14233a;
  font-size: 1.25rem;
}

.payment-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.payment-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #ffffff;
}

.payment-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.payment-form label {
  display: block;
  margin: 0 0 6px;
  color: #4a5a72;
  font-size: 0.86rem;
  font-weight: 750;
}

.payment-form input,
.payment-form select,
.payment-form textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  padding: 10px 12px;
  color: #14233a;
  background: #ffffff;
}

.payment-form input,
.payment-form select {
  min-height: 42px;
}

.payment-form textarea {
  resize: vertical;
}

.payment-form input:focus,
.payment-form select:focus,
.payment-form textarea:focus {
  outline: 3px solid rgba(26, 111, 224, 0.18);
  border-color: #1a6fe0;
  box-shadow: none;
}

.payment-form .button {
  width: 100%;
  border: 0;
}

.compact-empty {
  margin-top: 16px;
}

.table-subtext {
  display: block;
  margin-top: 2px;
  color: #8190a6;
}

.empty-state {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #f6f8fb;
}

.empty-state strong {
  color: #14233a;
}

.empty-state span {
  color: #4a5a72;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: #4a5a72;
  font-weight: 700;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.two-factor-setup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.qr-code {
  width: 180px;
  height: 180px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #ffffff;
}

.setup-key {
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #f6f8fb;
  color: #14233a;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.recovery-code-grid code {
  padding: 10px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #f6f8fb;
  color: #14233a;
  font-weight: 800;
}

.btn-primary {
  border-color: #1a6fe0;
  background: #1a6fe0;
  font-weight: 750;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #f26122;
  background: #f26122;
  color: #ffffff;
}

.alert-panel {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 13px;
  border: 1px solid;
  background: #ffffff;
}

.alert-panel:empty {
  display: none;
}

.alert-panel strong {
  color: #14233a;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.alert-panel small {
  color: #4a5a72;
}

.alert-success {
  border-color: #1f9d57;
  background: #e4f4ea;
}

.alert-error {
  border-color: #d92d20;
  background: #fff4f2;
  color: #b42318;
}

.platform-footer {
  padding: 20px 0;
  color: #8190a6;
}

@media (max-width: 980px) {
  .portal-hero,
  .workspace-preview,
  .pricing-section,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .workspace-heading {
    flex-wrap: wrap;
  }

  .status-grid,
  .workspace-metrics,
  .platform-dashboard-grid,
  .platform-management-grid,
  .module-list,
  .download-grid,
  .form-grid,
  .document-totals-preview,
  .payment-workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-console-grid,
  .company-access-form,
  .platform-user-form,
  .table-inline-form {
    grid-template-columns: 1fr;
  }

  .platform-admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .platform-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .portal-hero,
  .workspace-preview,
  .pricing-section,
  .login-layout,
  .workspace-shell {
    padding: 22px;
  }

  .hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .hero-actions .button,
  .hero-actions form {
    flex: 1 1 180px;
  }

  .hero-actions form .button {
    width: 100%;
  }

  .portal-hero h1,
  .workspace-heading h1,
  .login-copy h1 {
    font-size: 2rem;
  }

  .status-grid,
  .workspace-metrics,
  .platform-dashboard-grid,
  .platform-management-grid,
  .metric-list,
  .module-list,
  .download-grid,
  .form-grid,
  .document-totals-preview,
  .payment-workspace,
  .list-toolbar,
  .preview-window {
    grid-template-columns: 1fr;
  }

  .receivables-header,
  .payment-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-balance {
    width: 100%;
    text-align: left;
  }

  .preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e0e7f1;
  }
}

/* Marketing home page */
.vx-marketing-page {
  --vx-navy: #1c2c59;
  --vx-navy-top: #26396e;
  --vx-orange: #f59321;
  --vx-orange-hover: #e07f10;
  --vx-blue: #1a6fe0;
  --vx-blue-hover: #155cc0;
  --vx-blue-tint: #e7f0fd;
  --vx-ink: #14233a;
  --vx-ink-2: #4a5a72;
  --vx-ink-3: #8190a6;
  --vx-line: #e5eaf1;
  --vx-line-strong: #cfd8e6;
  --vx-tint: #f6f8fb;
  --vx-success: #1f9d57;
  margin: 0;
  background: #ffffff;
  color: var(--vx-ink);
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.vx-marketing-page html,
.vx-marketing-page {
  scroll-behavior: smooth;
}

.vx-container {
  max-width: 1180px;
}

.vx-marketing-nav {
  border-bottom: 1px solid var(--vx-line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.vx-marketing-nav .navbar {
  min-height: 70px;
}

.vx-marketing-nav .nav-link,
.vx-signin {
  color: var(--vx-ink-2);
  font-weight: 650;
}

.vx-marketing-nav .nav-link:hover,
.vx-marketing-nav .nav-link:focus,
.vx-signin:hover,
.vx-signin:focus {
  color: var(--vx-ink);
}

.vx-logo-img {
  width: 142px;
  max-height: 42px;
  object-fit: contain;
}

.vx-signin {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  text-decoration: none;
}

.vx-marketing-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.vx-marketing-page .vx-btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.vx-btn-blue {
  border: 1px solid var(--vx-blue);
  background: var(--vx-blue);
  color: #ffffff;
  box-shadow: 0 10px 22px -10px rgba(26, 111, 224, 0.75);
}

.vx-btn-blue:hover,
.vx-btn-blue:focus {
  border-color: var(--vx-blue-hover);
  background: var(--vx-blue-hover);
  color: #ffffff;
}

.vx-btn-ghost {
  border: 1px solid var(--vx-line-strong);
  background: #ffffff;
  color: var(--vx-ink);
}

.vx-btn-ghost:hover,
.vx-btn-ghost:focus {
  border-color: var(--vx-ink-3);
  background: var(--vx-tint);
  color: var(--vx-ink);
}

.vx-btn-orange {
  border: 1px solid var(--vx-orange);
  background: var(--vx-orange);
  color: var(--vx-navy);
  box-shadow: 0 10px 22px -10px rgba(245, 147, 33, 0.8);
}

.vx-btn-orange:hover,
.vx-btn-orange:focus {
  border-color: var(--vx-orange-hover);
  background: var(--vx-orange-hover);
  color: var(--vx-navy);
}

.vx-btn-navy-outline {
  border: 1px solid var(--vx-navy);
  background: #ffffff;
  color: var(--vx-navy);
}

.vx-btn-navy-outline:hover,
.vx-btn-navy-outline:focus {
  background: var(--vx-navy);
  color: #ffffff;
}

.vx-btn-light {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.vx-btn-light:hover,
.vx-btn-light:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.vx-hero {
  overflow: hidden;
  padding: 84px 0 92px;
  border-bottom: 1px solid var(--vx-line);
  background:
    radial-gradient(900px 500px at 78% -8%, #f2f7fe 0%, rgba(242, 247, 254, 0) 62%),
    linear-gradient(180deg, #ffffff 0%, var(--vx-tint) 100%);
}

.vx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--vx-blue-tint);
  color: var(--vx-blue-hover);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vx-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vx-orange);
}

.vx-hero h1 {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--vx-ink);
  font-size: clamp(38px, 4.7vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
}

.vx-hero h1 span {
  position: relative;
  color: var(--vx-blue);
  white-space: nowrap;
}

.vx-hero h1 span::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -8px;
  height: 5px;
  border-radius: 999px;
  background: var(--vx-orange);
  opacity: 0.9;
}

.vx-lead {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--vx-ink-2);
  font-size: 1.18rem;
  line-height: 1.6;
}

.vx-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  color: var(--vx-ink-3);
  font-size: 0.92rem;
  font-weight: 650;
}

.vx-reassurance span::before,
.vx-trust-strip span::before,
.vx-trust-band span::before,
.vx-plan-card li::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--vx-success);
}

.vx-product-frame {
  overflow: hidden;
  border: 1px solid var(--vx-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 40px 80px -30px rgba(12, 33, 56, 0.4), 0 12px 30px -16px rgba(12, 33, 56, 0.25);
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
  transform-origin: left center;
}

.vx-window-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-bottom: 1px solid var(--vx-line);
  background: linear-gradient(#f1f4f8, #e9eef4);
}

.vx-window-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.vx-window-top i:nth-child(1) {
  background: #ff5f57;
}

.vx-window-top i:nth-child(2) {
  background: #febc2e;
}

.vx-window-top i:nth-child(3) {
  background: #28c840;
}

.vx-window-top span {
  flex: 1;
  max-width: 320px;
  height: 18px;
  margin-left: 14px;
  border: 1px solid var(--vx-line);
  border-radius: 6px;
  background: #ffffff;
}

.vx-appbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--vx-navy-top), var(--vx-navy));
}

.vx-appbar strong {
  color: #f15a22;
  font-size: 1.1rem;
  font-style: italic;
}

.vx-appbar strong span {
  color: #3f9bff;
  font-style: normal;
}

.vx-appbar em {
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #cfe0f5;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.vx-appbody {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 330px;
}

.vx-appbody aside {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 10px;
  border-right: 1px solid #e0e7f1;
  background: #eef3f9;
}

.vx-appbody aside span {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--vx-ink-2);
  font-size: 0.78rem;
  font-weight: 750;
}

.vx-appbody aside .active {
  background: var(--vx-blue);
  color: #ffffff;
}

.vx-appbody aside .active::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--vx-orange);
}

.vx-appbody section {
  padding: 18px;
  background: var(--vx-tint);
}

.vx-appbody h2 {
  margin: 0;
  color: var(--vx-ink);
  font-size: 1rem;
  font-weight: 800;
}

.vx-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0;
}

.vx-preview-stats article,
.vx-chart-card {
  border: 1px solid var(--vx-line);
  border-radius: 10px;
  background: #ffffff;
}

.vx-preview-stats article {
  padding: 11px;
}

.vx-preview-stats small {
  display: block;
  color: var(--vx-ink-3);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vx-preview-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--vx-ink);
  font-size: 1.2rem;
}

.vx-chart-card {
  padding: 13px;
}

.vx-chart-card > span {
  display: block;
  margin-bottom: 10px;
  color: var(--vx-ink-2);
  font-size: 0.7rem;
  font-weight: 800;
}

.vx-bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 84px;
}

.vx-bars i {
  display: block;
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--vx-blue-tint);
}

.vx-bars i:nth-child(1) { height: 38%; }
.vx-bars i:nth-child(2) { height: 50%; }
.vx-bars i:nth-child(3) { height: 64%; }
.vx-bars i:nth-child(4) { height: 46%; }
.vx-bars i:nth-child(5) { height: 80%; background: var(--vx-orange); }
.vx-bars i:nth-child(6) { height: 70%; }

.vx-trust-strip,
.vx-trust-band {
  border-bottom: 1px solid var(--vx-line);
  background: #ffffff;
}

.vx-trust-strip .vx-container,
.vx-trust-band .vx-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 38px;
  padding-top: 26px;
  padding-bottom: 26px;
  color: var(--vx-ink-3);
  font-weight: 750;
}

.vx-section {
  padding: 96px 0;
  background: #ffffff;
  scroll-margin-top: 88px;
}

.vx-tint-section,
.vx-trust-band {
  border-top: 1px solid var(--vx-line);
  background: var(--vx-tint);
}

.vx-section-head {
  max-width: 690px;
}

.vx-section-head h2 {
  margin: 16px 0 0;
  color: var(--vx-ink);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.vx-section-head p {
  margin: 14px 0 0;
  color: var(--vx-ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.vx-feature-card,
.vx-step-card,
.vx-plan-card {
  height: 100%;
  border: 1px solid var(--vx-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.06);
}

.vx-feature-card {
  padding: 26px;
  transition: box-shadow 0.16s, transform 0.16s, border-color 0.16s;
}

.vx-feature-card:hover {
  border-color: var(--vx-line-strong);
  box-shadow: 0 10px 30px -12px rgba(20, 35, 58, 0.18);
  transform: translateY(-3px);
}

.vx-feature-card div {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--vx-blue-tint);
}

.vx-orange-icon div {
  background: #fdeedd;
}

.vx-feature-card h3,
.vx-step-card h3,
.vx-plan-card h3 {
  margin: 0 0 8px;
  color: var(--vx-ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.vx-feature-card p,
.vx-step-card p {
  margin: 0;
  color: var(--vx-ink-2);
  line-height: 1.58;
}

.vx-step-card {
  padding: 30px 26px;
}

.vx-step-card > strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--vx-navy);
  color: #ffffff;
}

.vx-step-card span {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--vx-blue-tint);
  color: var(--vx-blue-hover);
  font-size: 0.78rem;
  font-weight: 800;
}

.vx-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: 22px;
}

.vx-plan-card.vx-popular {
  border: 2px solid var(--vx-orange);
  box-shadow: 0 10px 30px -12px rgba(20, 35, 58, 0.18);
}

.vx-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--vx-orange);
  color: var(--vx-navy);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.vx-ribbon {
  margin-bottom: 18px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--vx-orange);
  color: var(--vx-navy);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.vx-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
}

.vx-price span {
  color: var(--vx-ink-2);
  font-size: 1.25rem;
  font-weight: 800;
}

.vx-price strong {
  color: var(--vx-navy);
  font-size: 2.62rem;
  font-weight: 900;
  letter-spacing: 0;
}

.vx-price em {
  color: var(--vx-ink-3);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 650;
}

.vx-plan-card p {
  min-height: 42px;
  margin: 9px 0 0;
  color: var(--vx-ink-2);
  font-size: 0.86rem;
  font-weight: 650;
}

.vx-plan-card p b {
  color: var(--vx-navy);
}

.vx-plan-card ul {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  margin: 18px 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--vx-line);
  list-style: none;
}

.vx-plan-card li {
  color: var(--vx-ink-2);
  font-size: 0.9rem;
  line-height: 1.4;
}

.vx-plan-card .btn {
  width: 100%;
  margin-top: auto;
}

.vx-price-note {
  max-width: 650px;
  margin: 30px auto 0;
  color: var(--vx-ink-3);
  text-align: center;
}

.vx-enterprise-band,
.vx-final-cta,
.vx-marketing-footer {
  background: linear-gradient(180deg, var(--vx-navy-top), var(--vx-navy));
  color: #ffffff;
}

.vx-enterprise-band .vx-container {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.vx-enterprise-band div {
  flex: 1;
}

.vx-enterprise-band span {
  color: var(--vx-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vx-enterprise-band h2,
.vx-final-cta h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
}

.vx-enterprise-band p,
.vx-final-cta p {
  max-width: 780px;
  margin: 15px 0 0;
  color: #c2cee0;
  line-height: 1.65;
}

.vx-enterprise-band strong {
  display: inline-block;
  margin-top: 14px;
}

.vx-trust-band {
  border-bottom: 1px solid var(--vx-line);
}

.vx-trust-band small {
  color: var(--vx-ink-3);
  font-weight: 700;
}

.vx-trust-band b {
  color: #000000;
}

.vx-faq {
  max-width: 840px;
}

.vx-faq .accordion-item {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--vx-line);
  border-radius: 11px;
}

.vx-faq .accordion-button {
  color: var(--vx-navy);
  font-weight: 800;
}

.vx-faq .accordion-button:not(.collapsed) {
  background: var(--vx-blue-tint);
  color: var(--vx-navy);
  box-shadow: none;
}

.vx-faq .accordion-body {
  color: var(--vx-ink-2);
  line-height: 1.65;
}

.vx-final-cta {
  padding: 90px 0;
  text-align: center;
}

.vx-final-cta .vx-container {
  max-width: 720px;
}

.vx-final-cta h2 {
  margin-top: 0;
}

.vx-marketing-footer {
  padding: 64px 0 36px;
}

.vx-footer-logo {
  width: 148px;
  max-height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.vx-marketing-footer p {
  max-width: 340px;
  margin-top: 14px;
  color: #9fb2cc;
  line-height: 1.65;
}

.vx-marketing-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vx-marketing-footer a {
  display: block;
  margin-bottom: 11px;
  color: #9fb2cc;
  text-decoration: none;
}

.vx-marketing-footer a:hover,
.vx-marketing-footer a:focus {
  color: #ffffff;
}

.vx-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fb2cc;
  font-size: 0.86rem;
}

.vx-footer-bottom b {
  color: #ffffff;
}

@media (max-width: 991px) {
  .vx-hero {
    padding: 60px 0 70px;
  }

  .vx-product-frame {
    transform: none;
  }

  .vx-enterprise-band .vx-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
    padding-top: 46px;
    padding-bottom: 46px;
  }
}

@media (max-width: 640px) {
  .vx-marketing-page .btn {
    width: 100%;
  }

  .vx-hero h1 {
    font-size: 2.35rem;
  }

  .vx-appbody,
  .vx-preview-stats {
    grid-template-columns: 1fr;
  }

  .vx-appbody aside {
    display: none;
  }

  .vx-section {
    padding: 72px 0;
  }
}

/* Tenant dashboard */
.dashboard-page {
  --dash-navy: #1c2c59;
  --dash-blue: #1a6fe0;
  --dash-blue-light: #5b9bee;
  --dash-blue-tint: #e7f0fd;
  --dash-orange: #f59321;
  --dash-orange-dark: #e07f10;
  --dash-red: #d8443c;
  --dash-red-tint: #fbe6e4;
  --dash-green: #1f9d57;
  --dash-green-tint: #e4f4ea;
  --dash-line: #e5eaf1;
  --dash-line-2: #eef2f7;
  --dash-line-strong: #cfd8e6;
  --dash-ink: #14233a;
  --dash-ink-2: #4a5a72;
  --dash-ink-3: #8190a6;
  max-width: 1280px;
  margin: 0 auto;
  font-variant-numeric: tabular-nums;
}

.dashboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-head h1 {
  margin: 0;
  color: var(--dash-ink);
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: 0;
}

.dashboard-updated {
  margin: 8px 0 0;
  color: var(--dash-ink-3);
  font-size: 0.78rem;
}

.dashboard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(26, 111, 224, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: #14375f;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 36px -30px rgba(20, 35, 58, 0.48);
}

.dashboard-action:hover,
.dashboard-action:focus {
  border-color: rgba(26, 111, 224, 0.42);
  background: #eaf2ff;
  color: var(--dash-blue);
}

.dashboard-action.primary {
  border-color: var(--dash-blue);
  background: var(--dash-blue);
  color: #ffffff;
}

.dashboard-action.primary:hover,
.dashboard-action.primary:focus {
  background: #145dbe;
  color: #ffffff;
}

.dashboard-action.operator {
  border-color: rgba(242, 97, 34, 0.38);
  background: #fff4ee;
  color: #af3d0d;
}

.dashboard-action.operator:hover,
.dashboard-action.operator:focus {
  background: var(--dash-orange);
  color: #ffffff;
}

.dashboard-owner-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.05);
}

.dashboard-owner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-owner-head h2 {
  margin: 0;
  color: var(--dash-ink);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0;
}

.dashboard-owner-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--dash-blue-tint);
  color: var(--dash-blue);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.owner-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.owner-metric-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--dash-line-2);
  border-radius: 8px;
  background: #f8fafc;
}

.owner-metric-grid span,
.owner-metric-grid small {
  display: block;
  color: var(--dash-ink-3);
  font-size: 0.74rem;
  font-weight: 750;
}

.owner-metric-grid strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 6px 0 3px;
  color: var(--dash-ink);
  font-size: 1.08rem;
  font-weight: 850;
}

.dashboard-segment {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--dash-line-strong);
  border-radius: 9px;
  background: #ffffff;
}

.dashboard-segment button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--dash-ink-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0 13px;
}

.dashboard-segment button.active {
  background: var(--dash-blue);
  color: #ffffff;
}

.dashboard-segment-small button {
  min-height: 32px;
  padding: 0 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  min-width: 0;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.05);
}

.dashboard-card.span-3 { grid-column: span 3; }
.dashboard-card.span-4 { grid-column: span 4; }
.dashboard-card.span-5 { grid-column: span 5; }
.dashboard-card.span-7 { grid-column: span 7; }
.dashboard-card.span-8 { grid-column: span 8; }

.kpi-card {
  padding: 15px 16px 16px;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-top span {
  color: var(--dash-ink-3);
  font-size: 0.78rem;
  font-weight: 750;
}

.kpi-top small {
  font-weight: 550;
}

.kpi-top i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--dash-blue-tint);
}

.kpi-green .kpi-top i {
  background: var(--dash-green-tint);
}

.kpi-amber .kpi-top i {
  background: #fdeedd;
}

.kpi-red .kpi-top i {
  background: var(--dash-red-tint);
}

.kpi-card > strong {
  display: block;
  margin-top: 11px;
  color: var(--dash-ink);
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: 0;
}

.kpi-card p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  color: var(--dash-ink-3);
  font-size: 0.78rem;
}

.delta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.76rem;
  font-weight: 850;
}

.delta.good {
  background: var(--dash-green-tint);
  color: var(--dash-green);
}

.delta.bad {
  background: var(--dash-red-tint);
  color: var(--dash-red);
}

.delta.neutral {
  background: var(--dash-line-2);
  color: var(--dash-ink-2);
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 0;
}

.dashboard-card-head h2 {
  margin: 0;
  color: var(--dash-ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.dashboard-card-head p {
  margin: 3px 0 0;
  color: var(--dash-ink-3);
  font-size: 0.78rem;
}

.dashboard-card-head a {
  color: var(--dash-blue);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-chart,
.bar-chart,
.dashboard-table,
.ageing-summary,
.debtor-list,
.document-list,
.conversion-widget,
.split-widget,
.vat-widget {
  margin: 16px 18px 18px;
}

.dashboard-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-chart line {
  stroke: var(--dash-line-2);
  stroke-width: 1;
}

.dashboard-chart .area {
  fill: url(#dashSalesFill);
}

.dashboard-chart .line-main {
  fill: none;
  stroke: var(--dash-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.dashboard-chart .line-prev {
  fill: none;
  stroke: var(--dash-ink-3);
  stroke-dasharray: 4 4;
  stroke-width: 1.6;
}

.dashboard-chart circle {
  fill: #ffffff;
  stroke: var(--dash-blue);
  stroke-width: 2.5;
}

.dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--dash-ink-2);
  font-size: 0.78rem;
  font-weight: 650;
}

.dashboard-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dashboard-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.dashboard-legend .blue { background: var(--dash-blue); }
.dashboard-legend .grey { background: var(--dash-ink-3); }
.dashboard-legend .orange { background: var(--dash-orange); }

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-height: 172px;
}

.bar-chart div {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 172px;
}

.bar-chart span {
  width: 13px;
  border-radius: 4px 4px 0 0;
}

.bar-chart .sales { background: var(--dash-blue); }
.bar-chart .credits { background: var(--dash-orange); }

.dashboard-table {
  width: calc(100% - 36px);
  border-collapse: collapse;
  color: var(--dash-ink);
  font-size: 0.84rem;
}

.dashboard-table th {
  padding: 0 0 10px;
  color: var(--dash-ink-3);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.dashboard-table th:first-child,
.dashboard-table td:first-child {
  text-align: left;
}

.dashboard-table td {
  padding: 10px 0;
  border-top: 1px solid var(--dash-line-2);
  text-align: right;
}

.dashboard-table .total td {
  border-top: 2px solid var(--dash-line-strong);
  font-weight: 850;
}

.empty-cell,
.dashboard-empty {
  color: var(--dash-ink-3);
  font-weight: 650;
  text-align: left;
}

.ageing-summary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ageing-donut {
  position: relative;
  display: grid;
  flex: none;
  width: 140px;
  height: 140px;
  place-items: center;
  border: 18px solid var(--dash-blue);
  border-left-color: var(--dash-blue-light);
  border-bottom-color: var(--dash-orange);
  border-radius: 50%;
}

.ageing-donut span {
  display: grid;
  text-align: center;
}

.ageing-donut strong {
  color: var(--dash-ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.ageing-donut small {
  color: var(--dash-ink-3);
  font-size: 0.68rem;
}

.ageing-legend {
  display: grid;
  flex: 1;
  gap: 9px;
}

.ageing-legend p,
.split-widget p,
.vat-widget p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.ageing-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.ageing-legend p {
  color: var(--dash-ink-2);
  font-size: 0.82rem;
}

.ageing-legend p span {
  flex: 1;
}

.ageing-legend .b1 { background: var(--dash-blue); }
.ageing-legend .b2 { background: var(--dash-blue-light); }
.ageing-legend .b3 { background: var(--dash-orange); }
.ageing-legend .b4 { background: var(--dash-orange-dark); }
.ageing-legend .b5 { background: var(--dash-red); }

.debtor-list,
.document-list {
  display: grid;
}

.debtor-row,
.document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--dash-line-2);
  color: inherit;
  text-decoration: none;
}

.debtor-row:first-child,
.document-row:first-child {
  border-top: 0;
}

.avatar,
.doc-type {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
}

.avatar {
  background: linear-gradient(135deg, var(--dash-blue), #155cc0);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 850;
}

.debtor-row > div,
.document-row > div {
  flex: 1;
  min-width: 0;
}

.debtor-row strong,
.document-row strong {
  color: var(--dash-ink);
  font-size: 0.84rem;
}

.debtor-row i {
  display: block;
  overflow: hidden;
  height: 5px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--dash-line);
}

.debtor-row i b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--dash-blue);
}

.debtor-row p,
.document-row p {
  flex: none;
  min-width: 92px;
  margin: 0;
  text-align: right;
}

.debtor-row small,
.document-row small {
  display: block;
  color: var(--dash-ink-3);
  font-size: 0.74rem;
}

.debtor-row p small {
  color: var(--dash-red);
  font-weight: 750;
}

.doc-type {
  background: var(--dash-blue-tint);
}

.doc-type.credit-note {
  background: #fdeedd;
}

.doc-type.quote {
  background: #ecebfb;
}

.document-row em {
  flex: none;
  min-width: 82px;
  border-radius: 999px;
  background: var(--dash-line-2);
  color: var(--dash-ink-2);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  padding: 3px 9px;
  text-align: center;
}

.conversion-widget {
  display: flex;
  align-items: center;
  gap: 18px;
}

.conversion-ring {
  display: grid;
  flex: none;
  width: 108px;
  height: 108px;
  place-content: center;
  border: 12px solid var(--dash-line-2);
  border-top-color: var(--dash-blue);
  border-right-color: var(--dash-blue);
  border-radius: 50%;
  text-align: center;
}

.conversion-ring strong {
  font-size: 1.25rem;
  font-weight: 850;
}

.conversion-ring small,
.conversion-widget span {
  color: var(--dash-ink-3);
  font-size: 0.75rem;
}

.conversion-widget p {
  margin: 0;
  color: var(--dash-ink-2);
  font-size: 0.84rem;
}

.split-track {
  display: flex;
  overflow: hidden;
  height: 9px;
  margin-bottom: 14px;
  border-radius: 5px;
  background: var(--dash-line);
}

.split-track span {
  background: var(--dash-blue);
}

.split-track i {
  background: var(--dash-orange);
}

.split-widget {
  display: grid;
  gap: 14px;
}

.split-widget p,
.vat-widget p {
  color: var(--dash-ink-2);
  font-size: 0.84rem;
}

.split-widget .next {
  padding-top: 12px;
  border-top: 1px solid var(--dash-line-2);
}

.vat-widget > span {
  display: block;
  color: var(--dash-ink-3);
  font-size: 0.78rem;
  font-weight: 750;
}

.vat-widget > strong {
  display: block;
  margin: 4px 0 12px;
  color: var(--dash-ink);
  font-size: 1.5rem;
  font-weight: 850;
}

.vat-widget p {
  padding: 9px 0;
  border-top: 1px solid var(--dash-line-2);
}

.vat-widget small {
  display: block;
  margin-top: 12px;
  color: var(--dash-ink-3);
  font-size: 0.74rem;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .dashboard-card.span-3 { grid-column: span 6; }
  .dashboard-card.span-4,
  .dashboard-card.span-5,
  .dashboard-card.span-7,
  .dashboard-card.span-8 {
    grid-column: span 12;
  }

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

@media (max-width: 640px) {
  .dashboard-card.span-3 {
    grid-column: span 12;
  }

  .dashboard-head {
    align-items: stretch;
  }

  .dashboard-owner-head {
    flex-direction: column;
  }

  .owner-metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-controls,
  .dashboard-quick-actions,
  .dashboard-segment {
    width: 100%;
  }

  .dashboard-action {
    width: 100%;
  }

  .dashboard-segment button {
    flex: 1;
  }

  .ageing-summary,
  .conversion-widget {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-row,
  .debtor-row {
    align-items: flex-start;
  }
}
