html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f6f7f9;
  color: #18202a;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-nav {
  box-shadow: 0 1px 8px rgb(20 28 38 / 8%);
}

.app-nav > .app-container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.app-nav .nav-link.active {
  color: #245ac8;
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .app-nav .signed-context {
    align-self: start;
    border-left: 0;
    margin: 12px 0;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }
}

.app-container {
  margin-inline: auto;
  max-width: 1680px;
  padding-inline: 24px;
  width: 100%;
}

.signed-context {
  align-self: center;
  border-left: 1px solid #dde3ea;
  display: grid;
  line-height: 1.15;
  margin-right: 10px;
  max-width: 300px;
  min-width: 180px;
  padding: 0 12px;
}

.signed-company,
.signed-user {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signed-company {
  color: #18202a;
  font-size: .86rem;
  font-weight: 800;
}

.signed-user {
  color: #657386;
  font-size: .76rem;
  font-weight: 600;
}

.app-shell {
  padding-top: 28px;
}

.supplier-import-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.supplier-import-controls form {
  align-items: end;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.supplier-import-controls form > div {
  flex: 1 1 260px;
  min-width: 0;
}

.supplier-import-summary {
  flex-wrap: wrap;
  gap: 16px;
}

.supplier-import-table {
  min-width: 850px;
  table-layout: fixed;
}

.supplier-import-table th:first-child { width: 72px; }
.supplier-import-table th:nth-child(2) { width: 56px; }
.supplier-import-table th:nth-child(3) { width: 145px; }
.supplier-import-table th:last-child { width: 30%; }
.supplier-import-table td { overflow-wrap: anywhere; }

.import-status-icon {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.import-status-valid { background: #18834b; }
.import-status-error { background: #c9303e; }

.workspace-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.workspace-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

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

.icon-button {
  align-items: center;
  background: #2f6fed;
  border: 1px solid #2f6fed;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 38px;
}

.icon-button:hover {
  background: #255bc5;
  border-color: #255bc5;
}

.section-label,
.module-kicker {
  color: #657386;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.status-pill {
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  padding: 8px 12px;
  white-space: nowrap;
}

.status-pending {
  background: #fff4d7;
  color: #7a5200;
}

.status-active {
  background: #dff6e7;
  color: #17643a;
}

.status-rejected {
  background: #ffe3e3;
  color: #932323;
}

.access-banner {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-left: 6px solid #2f6fed;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 22px;
}

.access-banner h2,
.module-card h2,
.worklist h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.access-banner p,
.module-card p {
  color: #536173;
  margin: 0;
}

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

.metric-card {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  min-height: 238px;
  padding: 18px;
}

.metric-card-wide {
  grid-column: span 2;
}

.metric-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.metric-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.metric-period {
  background: #edf2f7;
  border-radius: 999px;
  color: #4d5b6d;
  font-size: .8rem;
  font-weight: 800;
  padding: 6px 10px;
}

.metric-header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.metric-link {
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.metric-main {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.metric-main strong {
  color: #13202f;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.metric-main span {
  color: #536173;
  font-weight: 700;
}

.mini-bar-chart {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 92px;
}

.mini-bar-item {
  align-items: center;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mini-bar-track {
  align-items: end;
  background: #eef2f5;
  border-radius: 6px;
  display: flex;
  height: 72px;
  overflow: hidden;
  width: 100%;
}

.mini-bar-fill {
  background: #2f8f78;
  border-radius: 6px 6px 0 0;
  display: block;
  min-height: 4px;
  width: 100%;
}

.mini-bar-item > span {
  color: #657386;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.module-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.module-card,
.pricing-card,
.empty-state,
.worklist {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 18px;
}

.module-action {
  display: inline-block;
  font-weight: 700;
  margin-top: 14px;
  text-decoration: none;
}

.worklist-header {
  align-items: center;
  border-bottom: 1px solid #e7ebf0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.worklist-header span {
  color: #657386;
  font-size: .875rem;
}

.worklist ul {
  columns: 2;
  margin: 0;
  padding-left: 18px;
}

.worklist li {
  break-inside: avoid;
  margin-bottom: 8px;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.pricing-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.price {
  color: #18202a;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0;
}

.price span {
  color: #657386;
  font-size: .875rem;
  font-weight: 600;
}

.plan-limits {
  display: grid;
  gap: 10px;
  margin: 0;
}

.plan-limits div {
  align-items: center;
  border-bottom: 1px solid #eef1f5;
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
}

.plan-limits dt {
  color: #657386;
  font-weight: 600;
}

.plan-limits dd {
  font-weight: 700;
  margin: 0;
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.registration-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.form-panel,
.checkout-panel,
.filter-panel {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 18px;
}

.form-panel {
  grid-column: 1;
}

.form-panel h2,
.checkout-panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.checkout-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 18px;
}

.checkout-panel h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.payment-options {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.payment-option {
  align-items: center;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.payment-option span {
  font-weight: 700;
}

.invite-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-layout {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

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

.profile-actions {
  display: flex;
  justify-content: flex-end;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary-list div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.summary-list dt {
  color: #657386;
  font-weight: 600;
}

.summary-list dd {
  font-weight: 800;
  margin: 0;
}

.fiscal-note p {
  color: #536173;
  margin: 0;
}

.auth-layout {
  display: grid;
  min-height: 55vh;
  place-items: center;
}

.auth-panel {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  max-width: 440px;
  padding: 24px;
  width: 100%;
}

.auth-panel h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 20px;
}

.auth-links {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.auth-secondary-action {
  margin-top: 10px;
  text-align: center;
}

.security-settings-layout {
  display: grid;
  gap: 16px;
  max-width: 960px;
}

.security-section-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.security-section-header h2,
.security-section-header h3 {
  margin-bottom: 4px;
}

.security-section-header p,
.security-meta {
  color: #616161;
  margin: 0;
}

.mfa-setup-grid {
  align-items: center;
  border-top: 1px solid #e0e0e0;
  display: grid;
  gap: 24px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-top: 20px;
  padding-top: 20px;
}

.mfa-qr {
  background: #fff;
  border: 1px solid #d1d1d1;
  padding: 10px;
}

.mfa-qr svg {
  display: block;
  height: auto;
  width: 100%;
}

.mfa-manual-key {
  display: block;
  font-size: .875rem;
  overflow-wrap: anywhere;
  padding: 10px 0;
}

.mfa-confirm-form {
  margin-top: 14px;
  max-width: 380px;
}

.mfa-password-confirmation {
  margin-bottom: 12px;
  max-width: 380px;
}

.security-code-input {
  font-family: Consolas, monospace;
  letter-spacing: .18em;
}

.recovery-codes-panel {
  background: #f5f5f5;
  border: 1px solid #d1d1d1;
  margin-top: 20px;
  padding: 16px;
}

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

.recovery-code-grid code {
  color: #242424;
  font-size: .95rem;
}

.security-protected-action {
  border-top: 1px solid #e0e0e0;
  margin-top: 18px;
  padding-top: 14px;
}

.security-protected-action summary {
  cursor: pointer;
  font-weight: 600;
}

.security-protected-action form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin-top: 14px;
}

.danger-action summary { color: #b10e1c; }

.security-password-panel {
  max-width: 560px;
}

@media (max-width: 640px) {
  .security-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mfa-setup-grid,
  .security-protected-action form {
    grid-template-columns: 1fr;
  }

  .mfa-qr { max-width: 220px; }
  .recovery-code-grid { grid-template-columns: 1fr; }
}

.muted-copy {
  color: #536173;
}

.email-callout {
  background: #f0f5ff;
  border: 1px solid #c8d8ff;
  border-radius: 8px;
  color: #214ea3;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 12px;
  text-align: center;
}

.admin-payment-list {
  display: grid;
  gap: 16px;
}

.admin-payment-row {
  align-items: start;
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 18px;
}

.admin-payment-row h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.compact-summary {
  margin-top: 14px;
}

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

.review-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.invoice-filters {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(170px, .8fr)) auto;
}

.filter-panel {
  margin-bottom: 16px;
}

.filter-note {
  margin: 12px 0 0;
}

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

.invoice-list {
  display: grid;
}

.invoice-list-header,
.invoice-list-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.3fr .9fr .8fr 1.4fr .7fr .7fr .9fr .9fr .65fr 36px;
  padding: 12px 10px;
}

.invoice-list-header {
  border-bottom: 1px solid #dde3ea;
  color: #657386;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-list-row {
  border-bottom: 1px solid #eef1f5;
}

.invoice-list-row:last-child {
  border-bottom: 0;
}

.invoice-list-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.invoice-list-row strong,
.invoice-list-row small {
  display: block;
}

.invoice-actions {
  display: flex;
  justify-content: flex-end;
}

.invoice-actions-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #424242;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  padding: 0 8px 7px;
  width: 32px;
}

.invoice-actions-button:hover,
.invoice-actions-button[aria-expanded="true"] {
  background: #e9e9e9;
  border-color: #d1d1d1;
}

.invoice-actions-button:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0f6cbd;
  outline: none;
}

.cfdi-viewer-subtitle {
  color: #616161;
  font-size: 13px;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.cfdi-summary-band {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.cfdi-summary-band > div {
  border-right: 1px solid #e0e0e0;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.cfdi-summary-band > div:last-child {
  border-right: 0;
}

.cfdi-summary-band span {
  color: #616161;
  font-size: 12px;
}

.cfdi-summary-band strong {
  color: #242424;
  font-size: 18px;
  font-weight: 600;
}

.cfdi-summary-band .cfdi-summary-total {
  background: #ebf3fc;
}

.cfdi-summary-band .cfdi-summary-total strong {
  color: #0c3b5e;
}

.cfdi-viewer-flow {
  display: grid;
  gap: 16px;
}

.cfdi-concepts-panel {
  min-width: 0;
}

.cfdi-concepts-table {
  min-width: 760px;
}

.cfdi-concepts-table th:nth-child(1) {
  width: 116px;
}

.cfdi-concepts-table th:nth-child(3) {
  width: 90px;
}

.cfdi-concepts-table th:nth-child(4) {
  width: 110px;
}

.cfdi-concepts-table th:nth-child(5),
.cfdi-concepts-table th:nth-child(6) {
  width: 128px;
}

.cfdi-concepts-table td small {
  color: #616161;
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.cfdi-concept-description {
  min-width: 220px;
  overflow-wrap: anywhere;
}

.cfdi-info-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cfdi-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.cfdi-detail-list > div {
  border-bottom: 1px solid #ededed;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
  padding: 9px 0;
}

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

.cfdi-detail-list dt {
  color: #616161;
  font-weight: 400;
}

.cfdi-detail-list dd {
  color: #242424;
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.cfdi-validation-message {
  background: #f5f5f5;
  border-left: 3px solid #0f6cbd;
  color: #424242;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.pagination-bar {
  align-items: center;
  border-top: 1px solid #e0e0e0;
  color: #616161;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
}

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

.verification-notice {
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  bottom: 24px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  color: #242424;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px;
  position: fixed;
  right: 24px;
  z-index: 1080;
}

.verification-notice-details {
  display: grid;
  gap: 5px 12px;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 0;
}

.verification-notice-details dt {
  font-weight: 400;
  text-align: right;
}

.verification-notice-details dd {
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
}

.verification-notice-success {
  background: #f1faf1;
  border-color: #9fd89f;
}

.verification-notice-warning {
  background: #fff9e8;
  border-color: #f8d22a;
}

.verification-notice-error {
  background: #fdf3f4;
  border-color: #eeacb2;
  color: #8a0913;
}

.status-pill[data-status-detail]:not([data-status-detail=""]) {
  cursor: help;
  position: relative;
}

.status-pill[data-status-detail]:not([data-status-detail=""])::after {
  background: #242424;
  border-radius: 4px;
  bottom: calc(100% + 7px);
  color: #fff;
  content: attr(data-status-detail);
  font-size: 12px;
  font-weight: 400;
  left: 50%;
  max-width: 220px;
  opacity: 0;
  padding: 6px 8px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity .12s ease;
  visibility: hidden;
  white-space: normal;
  width: max-content;
  z-index: 20;
}

.status-pill[data-status-detail]:not([data-status-detail=""]):hover::after,
.status-pill[data-status-detail]:not([data-status-detail=""]):focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.invoice-list-row small {
  color: #657386;
  font-size: .78rem;
  margin-top: 2px;
}

.mono-cell {
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: .78rem;
}

.relationship-list {
  display: grid;
  gap: 10px;
}

.relationship-row {
  align-items: center;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px;
}

.relationship-row h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.relationship-row p,
.relationship-row small {
  color: #657386;
  margin: 0;
}

.provider-list {
  display: grid;
  gap: 0;
}

.provider-list-header,
.provider-list-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.25fr 1.15fr .7fr .85fr 1.15fr;
  padding: 12px 10px;
}

.provider-list-header {
  border-bottom: 1px solid #dde3ea;
  color: #657386;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.provider-list-row {
  border-bottom: 1px solid #eef1f5;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease;
}

.provider-list-row:last-child {
  border-bottom: 0;
}

.provider-list-row:hover {
  background: #f8fafc;
  color: inherit;
}

.provider-list-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.supplier-config-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-config-summary .metric-card {
  min-height: 140px;
}

.supplier-config-summary .metric-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.supplier-project-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.supplier-upload-layout {
  align-items: start;
  display: block;
  margin-bottom: 16px;
}

.supplier-onboarding-panel {
  max-width: 520px;
}

.supplier-upload-form {
  display: grid;
}

.session-upload-panel {
  min-width: 0;
  overflow-x: auto;
}

.session-invoice-list {
  display: grid;
  min-width: 1280px;
}

.session-invoice-header,
.session-invoice-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, .95fr) minmax(190px, 1.35fr) minmax(76px, .45fr) repeat(4, minmax(92px, .65fr)) minmax(130px, .75fr) minmax(120px, .7fr) 40px;
  padding: 11px 8px;
}

.session-invoice-header {
  border-bottom: 1px solid #dde3ea;
  color: #657386;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.session-invoice-row {
  border-bottom: 1px solid #eef1f5;
}

.session-invoice-row:last-child {
  border-bottom: 0;
}

.session-invoice-row span,
.session-invoice-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.session-invoice-row form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.icon-danger-button {
  align-items: center;
  background: #fff1f1;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  color: #a52828;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 34px;
}

.icon-danger-button:hover {
  background: #ffe2e2;
  border-color: #ffbaba;
}

.empty-session-list {
  border: 1px dashed #cfd7e2;
  border-radius: 8px;
  padding: 22px;
  text-align: center;
}

.empty-session-list h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.empty-session-list p {
  color: #657386;
  margin: 0;
}

.session-total {
  align-items: center;
  border-top: 1px solid #dde3ea;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 8px 0;
}

.session-total span {
  color: #657386;
  font-weight: 700;
}

.session-total strong {
  color: #13202f;
  font-size: 1.1rem;
}

.sent-invoice-list {
  display: grid;
  min-width: 1040px;
}

.sent-invoice-panel {
  overflow-x: auto;
}

.sent-invoice-header,
.sent-invoice-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, .95fr) minmax(130px, .75fr) minmax(190px, 1.25fr) minmax(82px, .55fr) minmax(82px, .55fr) minmax(118px, .72fr) minmax(70px, .4fr) minmax(92px, .62fr) minmax(92px, .55fr);
  padding: 11px 8px;
}

.sent-invoice-header {
  border-bottom: 1px solid #dde3ea;
  color: #657386;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sent-invoice-row {
  border-bottom: 1px solid #eef1f5;
}

.sent-invoice-row:last-child {
  border-bottom: 0;
}

.sent-invoice-row span,
.sent-invoice-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sent-invoice-row strong,
.sent-invoice-row small {
  display: block;
}

.sent-invoice-row small {
  color: #657386;
  font-size: .78rem;
  margin-top: 2px;
}

.upload-drawer-open {
  overflow: hidden;
}

.upload-drawer-overlay,
.customers-drawer-overlay {
  background: rgb(15 23 42 / 32%);
  inset: 0;
  position: fixed;
  z-index: 1030;
}

.upload-drawer,
.customers-drawer {
  background: #ffffff;
  border-left: 1px solid #dde3ea;
  box-shadow: -12px 0 34px rgb(15 23 42 / 16%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  max-width: 100%;
  overflow-y: auto;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform .2s ease;
  width: 430px;
  z-index: 1040;
}

.upload-drawer[aria-hidden="false"],
.customers-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.upload-drawer-header {
  align-items: flex-start;
  border-bottom: 1px solid #e7ebf0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.upload-drawer-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
}

.customers-drawer {
  width: 480px;
}

.customers-drawer .relationship-list {
  gap: 12px;
}

.customers-drawer .relationship-row {
  align-items: flex-start;
}

@media (max-width: 992px) {
  .app-container {
    padding-inline: 18px;
  }

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

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

  .metric-card-wide {
    grid-column: auto;
  }

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

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

  .form-panel,
  .checkout-panel {
    grid-column: 1;
  }

  .checkout-panel {
    grid-row: auto;
    position: static;
  }

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

  .review-actions {
    justify-content: stretch;
  }

  .review-actions .btn {
    flex: 1;
  }

  .invite-form,
  .invoice-filters,
  .supplier-project-layout,
  .supplier-upload-layout {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: flex-start;
  }

  .invoice-list-header,
  .sent-invoice-header {
    display: none;
  }

  .invoice-list-row,
  .sent-invoice-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .sent-invoice-list {
    min-width: 0;
  }

  .session-invoice-header {
    display: none;
  }

  .session-invoice-list {
    min-width: 0;
  }

  .session-invoice-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .session-invoice-row form {
    justify-content: flex-start;
  }

  .relationship-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .provider-list-header {
    display: none;
  }

  .provider-list-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .taxpayer-options {
    grid-template-columns: 1fr;
  }

  .upload-drawer,
  .customers-drawer {
    border-left: 0;
    width: 100%;
  }

  .invoice-list-row {
    gap: 0;
    padding: 8px 12px;
  }

  .invoice-list-row > span {
    align-items: start;
    border-bottom: 1px solid #ededed;
    display: grid;
    gap: 12px;
    grid-template-columns: 118px minmax(0, 1fr);
    padding: 9px 0;
  }

  .invoice-list-row > span::before {
    color: #616161;
    content: attr(data-label);
    font-family: "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 400;
  }

  .invoice-actions {
    padding-top: 8px;
  }

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

  .cfdi-info-grid > section:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding-inline: 12px;
  }

  .access-banner,
  .workspace-header,
  .worklist-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .signed-context {
    border-left: 0;
    border-top: 1px solid #dde3ea;
    margin: 8px 0 0;
    max-width: none;
    padding: 10px 0 0;
    width: 100%;
  }

  .mini-bar-chart {
    gap: 5px;
  }

  .mini-bar-item > span {
    font-size: .65rem;
  }

  .worklist ul {
    columns: 1;
  }

  .cfdi-summary-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfdi-summary-band > div:nth-child(2) {
    border-right: 0;
  }

  .cfdi-summary-band > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e0e0e0;
  }

  .cfdi-summary-band strong {
    font-size: 16px;
  }

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

  .cfdi-info-grid > section:last-child {
    grid-column: auto;
  }

  .cfdi-detail-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .cfdi-detail-list dd {
    text-align: left;
  }

  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .pagination-actions .btn {
    flex: 1;
  }

  .verification-notice {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

/* Fluent 2 application shell and component tokens */
:root {
  --fluent-font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --fluent-color-brand: #0f6cbd;
  --fluent-color-brand-hover: #115ea3;
  --fluent-color-brand-pressed: #0c3b5e;
  --fluent-color-brand-subtle: #ebf3fc;
  --fluent-color-bg-1: #ffffff;
  --fluent-color-bg-2: #f5f5f5;
  --fluent-color-bg-3: #fafafa;
  --fluent-color-fg-1: #242424;
  --fluent-color-fg-2: #424242;
  --fluent-color-fg-3: #616161;
  --fluent-color-stroke-1: #d1d1d1;
  --fluent-color-stroke-2: #e0e0e0;
  --fluent-color-success: #107c10;
  --fluent-color-warning: #8a5d00;
  --fluent-color-danger: #c50f1f;
  --fluent-shadow-2: 0 1px 2px rgb(0 0 0 / 8%);
  --fluent-shadow-8: 0 4px 8px rgb(0 0 0 / 14%);
  --fluent-radius-small: 4px;
  --fluent-radius-medium: 6px;
  --fluent-header-height: 48px;
  --fluent-nav-width: 232px;
  --fluent-font-size-body: 13px;
  --fluent-font-size-caption: 12px;
}

html {
  font-family: var(--fluent-font-family);
  font-size: 16px;
}

body {
  background: var(--fluent-color-bg-2);
  color: var(--fluent-color-fg-1);
  font-family: var(--fluent-font-family);
  font-size: var(--fluent-font-size-body);
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--fluent-color-brand);
}

a:hover {
  color: var(--fluent-color-brand-hover);
}

.app-header {
  align-items: center;
  background: var(--fluent-color-bg-1);
  border-bottom: 1px solid var(--fluent-color-stroke-2);
  display: flex;
  height: var(--fluent-header-height);
  inset: 0 0 auto;
  justify-content: space-between;
  padding: 0 16px;
  position: fixed;
  z-index: 1025;
}

.app-brand {
  align-items: center;
  color: var(--fluent-color-fg-1);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.app-brand:hover {
  color: var(--fluent-color-fg-1);
}

.app-brand-mark {
  align-items: center;
  background: var(--fluent-color-brand);
  border-radius: var(--fluent-radius-small);
  color: #fff;
  display: inline-flex;
  font-size: .875rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.app-header-context,
.public-navigation {
  align-items: center;
  display: flex;
  gap: 8px;
}

.public-navigation > a:not(.btn) {
  color: var(--fluent-color-fg-2);
  font-size: var(--fluent-font-size-body);
  padding: 8px 10px;
  text-decoration: none;
}

.signed-context {
  border: 0;
  border-right: 1px solid var(--fluent-color-stroke-2);
  display: grid;
  line-height: 1.15;
  margin: 0 4px 0 0;
  max-width: 360px;
  min-width: 180px;
  padding: 0 12px 0 0;
  text-align: right;
}

.signed-company {
  color: var(--fluent-color-fg-1);
  font-size: var(--fluent-font-size-body);
  font-weight: 600;
}

.signed-user {
  color: var(--fluent-color-fg-3);
  font-size: var(--fluent-font-size-caption);
  font-weight: 400;
}

.account-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--fluent-radius-small);
  color: var(--fluent-color-fg-2);
  display: inline-flex;
  font-size: var(--fluent-font-size-body);
  gap: 8px;
  min-height: 36px;
  padding: 4px 8px;
}

.account-button:hover,
.account-button[aria-expanded="true"] {
  background: #f0f0f0;
}

.account-avatar {
  align-items: center;
  background: #cfe4fa;
  border-radius: 50%;
  color: #0c3b5e;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.portal-nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--fluent-radius-small);
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.portal-nav-toggle:hover {
  background: #f0f0f0;
}

.portal-nav-toggle span {
  background: var(--fluent-color-fg-2);
  display: block;
  height: 1px;
  width: 17px;
}

.portal-frame {
  display: grid;
  grid-template-columns: var(--fluent-nav-width) minmax(0, 1fr);
  min-height: 100vh;
  padding-top: var(--fluent-header-height);
}

.portal-sidebar {
  background: var(--fluent-color-bg-3);
  border-right: 1px solid var(--fluent-color-stroke-2);
  height: calc(100vh - var(--fluent-header-height));
  left: 0;
  overflow-y: auto;
  position: sticky;
  top: var(--fluent-header-height);
}

.portal-navigation {
  display: grid;
  gap: 2px;
  padding: 16px 8px;
}

.portal-navigation-label {
  color: var(--fluent-color-fg-3);
  font-size: .6875rem;
  font-weight: 600;
  margin: 0;
  padding: 4px 12px 8px;
  text-transform: uppercase;
}

.portal-navigation-link,
.portal-navigation-group-title {
  align-items: center;
  border-radius: var(--fluent-radius-small);
  color: var(--fluent-color-fg-2);
  display: flex;
  font-size: var(--fluent-font-size-body);
  line-height: 20px;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

.portal-navigation-link:hover {
  background: #e9e9e9;
  color: var(--fluent-color-fg-1);
}

.portal-navigation-link.active {
  background: var(--fluent-color-brand-subtle);
  color: #0c3b5e;
  font-weight: 600;
  position: relative;
}

.portal-navigation-link.active::before {
  background: var(--fluent-color-brand);
  border-radius: 2px;
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  width: 3px;
}

.portal-navigation-group {
  display: grid;
  gap: 2px;
}

.portal-navigation-group-title {
  color: var(--fluent-color-fg-3);
  font-size: .75rem;
  font-weight: 600;
  min-height: 30px;
  padding-bottom: 3px;
  text-transform: uppercase;
}

.portal-navigation-child {
  padding-left: 24px;
}

.portal-sidebar-footer {
  bottom: 0;
  color: var(--fluent-color-fg-3);
  font-size: .75rem;
  padding: 16px 20px;
  position: absolute;
}

.portal-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - var(--fluent-header-height));
}

.app-container {
  margin-inline: auto;
  max-width: 1760px;
  padding-inline: 28px;
  width: 100%;
}

.app-shell {
  flex: 1;
  padding-bottom: 32px;
  padding-top: 24px;
}

.public-content {
  min-height: calc(100vh - 104px);
  padding-top: calc(var(--fluent-header-height) + 24px);
}

.app-footer {
  border-top: 1px solid var(--fluent-color-stroke-2);
  color: var(--fluent-color-fg-3);
  font-size: .75rem;
  line-height: 44px;
  min-height: 44px;
}

.public-footer {
  background: var(--fluent-color-bg-1);
}

.workspace-header {
  margin-bottom: 20px;
}

.workspace-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 32px;
}

.section-label,
.module-kicker {
  color: var(--fluent-color-fg-3);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.btn {
  align-items: center;
  border-radius: var(--fluent-radius-small);
  display: inline-flex;
  font-size: var(--fluent-font-size-body);
  font-weight: 600;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
}

.btn-primary,
.icon-button {
  background: var(--fluent-color-brand);
  border-color: var(--fluent-color-brand);
  color: #fff;
}

.btn-primary:hover,
.icon-button:hover {
  background: var(--fluent-color-brand-hover);
  border-color: var(--fluent-color-brand-hover);
  color: #fff;
}

.btn-primary:active,
.icon-button:active {
  background: var(--fluent-color-brand-pressed) !important;
  border-color: var(--fluent-color-brand-pressed) !important;
}

.btn-outline-primary {
  border-color: var(--fluent-color-brand);
  color: var(--fluent-color-brand);
}

.btn-outline-primary:hover {
  background: var(--fluent-color-brand-subtle);
  border-color: var(--fluent-color-brand-hover);
  color: var(--fluent-color-brand-hover);
}

.btn-outline-secondary {
  background: var(--fluent-color-bg-1);
  border-color: var(--fluent-color-stroke-1);
  color: var(--fluent-color-fg-1);
}

.btn-outline-secondary:hover {
  background: #f0f0f0;
  border-color: #b3b3b3;
  color: var(--fluent-color-fg-1);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.account-button:focus-visible,
.portal-nav-toggle:focus-visible {
  border-color: var(--fluent-color-brand);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fluent-color-brand);
  outline: none;
}

.icon-button {
  border-radius: var(--fluent-radius-small);
  font-size: 1.25rem;
  height: 34px;
  width: 34px;
}

.form-label {
  color: var(--fluent-color-fg-2);
  font-size: var(--fluent-font-size-body);
  font-weight: 600;
  margin-bottom: 5px;
}

.form-control,
.form-select {
  background-color: var(--fluent-color-bg-1);
  border-color: #b3b3b3;
  border-radius: var(--fluent-radius-small);
  color: var(--fluent-color-fg-1);
  font-size: var(--fluent-font-size-body);
  min-height: 34px;
}

.form-control:hover,
.form-select:hover {
  border-color: #8a8a8a;
}

.metric-card,
.module-card,
.pricing-card,
.empty-state,
.worklist,
.form-panel,
.checkout-panel,
.filter-panel,
.auth-panel,
.admin-payment-row,
.access-banner {
  border-color: var(--fluent-color-stroke-2);
  border-radius: var(--fluent-radius-medium);
  box-shadow: var(--fluent-shadow-2);
}

.metric-card,
.module-card,
.worklist,
.form-panel,
.checkout-panel,
.filter-panel,
.auth-panel,
.admin-payment-row {
  background: var(--fluent-color-bg-1);
}

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

.metric-header h2,
.module-card h2,
.worklist h2,
.form-panel h2,
.checkout-panel h2 {
  color: var(--fluent-color-fg-1);
  font-weight: 600;
}

.metric-main strong {
  color: var(--fluent-color-fg-1);
  font-size: 2.75rem;
  font-weight: 600;
}

.metric-period,
.status-pill {
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.mini-bar-fill {
  background: var(--fluent-color-brand);
  border-radius: 3px 3px 0 0;
}

.mini-bar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--fluent-color-fg-1);
  border-color: var(--fluent-color-stroke-2);
  font-size: var(--fluent-font-size-body);
}

.table > thead > tr > th,
.provider-list-header,
.invoice-list-header,
.session-invoice-header,
.sent-invoice-header {
  background: var(--fluent-color-bg-3);
  color: var(--fluent-color-fg-2);
  font-size: .75rem;
  font-weight: 600;
}

.table > :not(caption) > * > * {
  padding: 10px 12px;
}

.provider-list-row:hover,
.invoice-list-row:hover,
.sent-invoice-row:hover {
  background: #f5f5f5;
}

.dropdown-menu {
  border-color: var(--fluent-color-stroke-2);
  border-radius: var(--fluent-radius-medium);
  box-shadow: var(--fluent-shadow-8);
  columns: auto;
  font-size: var(--fluent-font-size-body);
  padding: 4px;
}

.worklist .dropdown-menu {
  columns: 1;
}

.user-plan-summary {
  align-items: center;
  background: var(--fluent-color-bg-3);
  border: 1px solid var(--fluent-color-stroke-2);
  border-radius: var(--fluent-radius-medium);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(190px, auto) minmax(180px, 360px) auto;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.user-plan-summary > div:first-child {
  display: grid;
  gap: 2px;
}

.user-plan-label,
.user-plan-limit {
  color: var(--fluent-color-fg-3);
  font-size: .75rem;
}

.user-plan-summary strong {
  font-size: .875rem;
  font-weight: 600;
}

.user-plan-meter {
  background: #e0e0e0;
  border-radius: 2px;
  height: 4px;
  overflow: hidden;
}

.user-plan-meter span {
  background: var(--fluent-color-brand);
  display: block;
  height: 100%;
}

.user-plan-limit {
  color: #a4262c;
  font-weight: 600;
}

.user-worklist {
  min-height: 260px;
  overflow: visible;
  padding: 0;
}

.user-table-container {
  overflow: visible;
}

.user-list-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.user-list-heading h2 {
  font-size: 1rem;
  margin: 0 0 2px;
}

.user-list-heading p {
  color: var(--fluent-color-fg-3);
  font-size: .75rem;
  margin: 0;
}

.user-table td,
.user-table th {
  white-space: nowrap;
}

.user-identity-cell {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 260px;
}

.user-identity-cell > span:last-child {
  display: grid;
  gap: 1px;
}

.user-identity-cell strong {
  font-weight: 600;
}

.user-identity-cell small {
  color: var(--fluent-color-fg-3);
}

.user-list-avatar {
  align-items: center;
  background: var(--fluent-color-brand-subtle);
  border-radius: 50%;
  color: #0c3b5e;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: .75rem;
  font-weight: 600;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.membership-status {
  align-items: center;
  display: inline-flex;
  font-size: .75rem;
  gap: 6px;
}

.membership-status::before {
  background: #8a8886;
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.membership-status.active::before {
  background: #107c10;
}

.membership-status.pending::before {
  background: #f7630c;
}

.membership-status.inactive {
  color: var(--fluent-color-fg-3);
}

.user-actions-column {
  width: 48px;
}

.user-menu-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--fluent-radius-small);
  color: var(--fluent-color-fg-2);
  display: inline-flex;
  font-size: 1.25rem;
  height: 30px;
  justify-content: center;
  line-height: 1;
  width: 30px;
}

.user-menu-button:hover,
.user-menu-button:focus-visible {
  background: #e9e9e9;
  border-color: var(--fluent-color-stroke-2);
  outline: none;
}

.user-table .dropdown-menu {
  min-width: 220px;
}

.user-action-explanation {
  color: var(--fluent-color-fg-3);
  display: block;
  font-size: .75rem;
  line-height: 16px;
  max-width: 220px;
  padding: 0 10px 8px;
  white-space: normal;
}

.company-switcher {
  max-width: 760px;
  padding: 0;
}

.company-access-list {
  border-top: 1px solid var(--fluent-color-stroke-2);
}

.company-access-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 12px 16px;
}

.company-access-row + .company-access-row {
  border-top: 1px solid var(--fluent-color-stroke-2);
}

.company-access-row > span:first-of-type {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.company-access-row strong,
.company-access-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-access-row small {
  color: var(--fluent-color-fg-3);
}

@media (max-width: 767.98px) {
  .user-plan-summary {
    grid-template-columns: 1fr;
  }

  .user-table-container {
    overflow-x: auto;
  }

  .user-table .dropdown-menu.show {
    margin-left: auto !important;
    position: static !important;
    transform: none !important;
  }
}

.dropdown-item {
  border-radius: var(--fluent-radius-small);
  color: var(--fluent-color-fg-1);
  min-height: 34px;
  padding: 7px 10px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #f0f0f0;
  color: var(--fluent-color-fg-1);
}

.modal-content {
  border: 1px solid var(--fluent-color-stroke-2);
  border-radius: var(--fluent-radius-medium);
  box-shadow: 0 14px 28px rgb(0 0 0 / 24%);
}

.modal-header,
.modal-footer {
  border-color: var(--fluent-color-stroke-2);
}

.modal-title {
  font-weight: 600;
}

.alert {
  border-radius: var(--fluent-radius-small);
  font-size: var(--fluent-font-size-body);
}

.alert-success {
  background: #f1faf1;
  border-color: #9fd89f;
  color: #0e700e;
}

.alert-warning {
  background: #fff9e8;
  border-color: #f8d22a;
  color: #6d4b00;
}

.alert-danger {
  background: #fdf3f4;
  border-color: #eeacb2;
  color: #b10e1c;
}

.status-active {
  background: #dff6dd;
  color: #0e700e;
}

.status-pending {
  background: #fff4ce;
  color: #6d4b00;
}

.status-rejected {
  background: #fde7e9;
  color: #b10e1c;
}

.import-status-icon {
  color: #fff;
}

.import-status-valid {
  background: #107c10;
}

.import-status-error {
  background: #c50f1f;
}

.upload-drawer,
.customers-drawer {
  border-color: var(--fluent-color-stroke-2);
  box-shadow: -8px 0 24px rgb(0 0 0 / 18%);
}

@media (max-width: 1199.98px) {
  .portal-frame {
    display: block;
  }

  .portal-nav-toggle {
    display: inline-flex;
  }

  .portal-sidebar {
    box-shadow: var(--fluent-shadow-8);
    height: calc(100vh - var(--fluent-header-height));
    left: 0;
    position: fixed;
    top: var(--fluent-header-height);
    width: min(300px, 86vw);
    z-index: 1020;
  }

  .portal-sidebar.collapsing {
    height: calc(100vh - var(--fluent-header-height));
    transition: width .18s ease;
    width: 0;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding-inline: 12px;
  }

  .app-brand {
    font-size: .9375rem;
  }

  .signed-context,
  .account-label {
    display: none;
  }

  .account-button {
    padding: 3px;
  }

  .app-container {
    padding-inline: 12px;
  }

  .app-shell {
    padding-top: 18px;
  }

  .public-navigation > a:not(.btn) {
    display: none;
  }

  .public-navigation .btn {
    font-size: .8125rem;
    padding-inline: 10px;
  }
}
