:root {
  --app-bg: #f5f5f2;
  --app-surface: #ffffff;
  --app-border: #e8ece7;
  --app-text: #373a36;
  --app-muted: #9aa19b;
  --app-primary: #ff6a00;
  --app-primary-dark: #c73f3f;
  --app-primary-soft: #fdeaea;
  --app-dark: #2f302f;
  --app-danger: #ef8d83;
  --bs-success: #ff6a00;
  --bs-success-rgb: 231, 83, 83;
  --bs-success-text-emphasis: #8e2d2d;
  --bs-success-bg-subtle: #fdeaea;
  --bs-success-border-subtle: #f4b7b7;
  --app-shadow: 0 16px 40px rgba(74, 83, 77, 0.08);
  --app-radius: 24px;
  --app-sidebar: 92px;
  --app-sidebar-wide: 320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--app-text);
  background: var(--app-bg);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.app-sidebar {
  width: var(--app-sidebar);
  min-width: var(--app-sidebar);
  background: linear-gradient(180deg, #f06a6a 0%, #ff6a00 100%);
  color: #fff;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  transition: width 0.2s ease, min-width 0.2s ease, padding 0.2s ease;
}

.app-sidebar--wide {
  width: var(--app-sidebar-wide);
  min-width: var(--app-sidebar-wide);
  align-items: stretch;
  padding-inline: 24px;
}

.app-shell > .app-sidebar[data-sidebar] {
  width: var(--app-sidebar-wide);
  min-width: var(--app-sidebar-wide);
  align-items: stretch;
  padding-inline: 24px;
}

.sidebar-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  width: 132px;
  flex: 0 0 auto;
  position: relative;
}

.brand-logo {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
}

.brand-logo--mark {
  display: none;
  width: 38px;
  height: 46px;
}

.sidebar-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f89892;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1085;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle:hover {
  background: #f48b85;
}

.sidebar-toggle i {
  font-size: 1.1rem;
}

.sidebar-item {
  width: 100%;
  min-height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.88);
  transition: background-color 0.2s ease;
}

.app-sidebar--wide .sidebar-item,
.app-shell > .app-sidebar[data-sidebar] .sidebar-item {
  justify-content: flex-start;
  padding: 0 14px;
  min-height: 48px;
}

.sidebar-item.active,
.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-item i {
  font-size: 1.3rem;
}

.sidebar-item-label {
  white-space: nowrap;
}

.sidebar-spacer {
  flex: 1;
}

body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar],
html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] {
  width: var(--app-sidebar);
  min-width: var(--app-sidebar);
  align-items: center;
  padding-inline: 18px;
}

body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-head,
html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-head {
  justify-content: center;
}

body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .brand-logo-shell,
html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .brand-logo-shell {
  width: 38px;
}

body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .brand-logo--full,
html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .brand-logo--full {
  display: none;
}

body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .brand-logo--mark,
html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .brand-logo--mark {
  display: block;
}

body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-toggle,
html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-toggle {
  position: absolute;
  left: calc(100% - 20px);
  top: 14px;
  z-index: 1085;
  box-shadow: var(--app-shadow);
}

body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-item,
html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-item {
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-item-label,
html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-item-label {
  display: none;
}

.app-main {
  flex: 1;
  min-width: 0;
}

.app-topbar {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--app-border);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

html.embedded-view,
html.embedded-view body {
  background: transparent;
}

html.embedded-view .app-sidebar,
html.embedded-view .app-topbar,
html.embedded-view .mobile-bottom-nav,
html.embedded-view #mobileSectionsCanvas {
  display: none !important;
}

html.embedded-view .app-shell,
html.embedded-view .app-main {
  display: block;
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 0;
}

html.embedded-view .page-wrap {
  padding: 0;
}

.app-topbar > .d-flex.align-items-center.gap-4 > .fw-semibold.text-end {
  display: none;
}

.profile-menu-toggle {
  border: 0;
  background: transparent;
  padding: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.notification-toggle {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--app-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f4f4;
  border: 1px solid #e5e8e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6a00;
  box-shadow: 0 0 0 0 rgba(231, 83, 83, 0.45);
  animation: notification-pulse 1.4s infinite;
}

@keyframes notification-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(231, 83, 83, 0.45);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(231, 83, 83, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(231, 83, 83, 0);
  }
}

.notification-menu {
  width: 340px;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--app-shadow);
  padding: 14px;
}

.support-menu {
  width: 280px;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--app-shadow);
  padding: 14px;
}

.notification-menu-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.support-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 12px;
  color: var(--app-text);
}

.support-menu-item:hover {
  background: #f7f7f5;
  color: var(--app-text);
}

.support-menu-item i {
  width: 20px;
  text-align: center;
  color: var(--app-primary);
}

.notification-menu-item {
  display: block;
  border-radius: 14px;
  padding: 10px 12px;
}

.notification-menu-item:hover {
  background: #f7f7f5;
}

.notification-menu-time {
  font-size: 0.82rem;
  color: var(--app-muted);
  margin-bottom: 4px;
}

.notification-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--app-primary);
  font-weight: 600;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f4f4;
  border: 1px solid #e5e8e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--app-text);
}

.profile-menu {
  width: 300px;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--app-shadow);
  padding: 16px;
}

.profile-menu-company {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 14px;
}

.profile-menu-balance {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f7f5;
  color: var(--app-text);
}

.profile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--app-text);
}

.profile-menu-link:hover {
  background: #f7f7f5;
}

.profile-menu-exit {
  margin-top: 10px;
  width: 100%;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--app-primary);
  color: #fff;
}

.profile-menu-exit:hover {
  background: var(--app-primary-dark);
  color: #fff;
}

.contract-pill,
.ghost-pill,
.primary-pill,
.dark-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.contract-pill {
  background: var(--app-primary);
  color: #fff;
}

.ghost-pill {
  background: #fff;
  border-color: #f1aaaa;
  color: var(--app-primary-dark);
}

.primary-pill {
  background: var(--app-primary);
  color: #fff;
}

.dark-pill {
  background: #363636;
  color: #fff;
}

.page-wrap {
  padding: 28px 30px 36px;
}

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

.page-title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 500;
}

.card-surface {
  background: var(--app-surface);
  border: 1px solid rgba(228, 232, 227, 0.9);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.metric-card,
.section-card {
  background: #fff;
  border: 1px solid rgba(228, 232, 227, 0.9);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.metric-card {
  padding: 22px 24px;
}

.search-shell,
.field-shell {
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.search-shell input,
.field-shell input,
.field-shell select,
.field-shell textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--app-text);
}

.table-card {
  overflow: hidden;
}

.app-table {
  margin: 0;
  width: 100%;
  color: var(--app-text);
}

.app-table thead th {
  font-weight: 400;
  font-size: 0.86rem;
  color: #b0b5af;
  padding: 16px 18px;
  border-bottom: 1px solid #eff2ee;
  white-space: nowrap;
}

.app-table tbody td {
  padding: 16px 18px;
  vertical-align: middle;
  border-bottom: 1px solid #eff2ee;
}

.app-table tbody tr:last-child td {
  border-bottom: 0;
}

.soft-banner {
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 198, 198, 0.45), transparent 18%),
    linear-gradient(135deg, #f2a3a3 0%, #ff6a00 60%, #c73f3f 100%);
  box-shadow: 0 18px 40px rgba(231, 83, 83, 0.24);
}

.soft-banner .divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  background: #fff;
  border: 1px solid #edf1ed;
  border-radius: 18px;
  padding: 14px 16px;
}

.pill-status {
  color: var(--app-primary);
  font-size: 0.9rem;
}

.nav-tabs.app-tabs {
  border-bottom: 0;
  gap: 18px;
}

.nav-tabs.app-tabs .nav-link {
  color: #838983;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-radius: 0;
  padding: 0 0 10px;
}

.nav-tabs.app-tabs .nav-link.active {
  color: var(--app-text);
  border-color: #363636;
  background: transparent;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--app-radius);
  overflow: hidden;
  border: 1px solid #edf1ed;
  background: #fff;
}

.summary-strip > div {
  padding: 22px 24px;
  border-right: 1px solid #edf1ed;
}

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

.summary-strip--stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-strip--stats .display-6 {
  margin: 0;
  text-align: right;
  flex: 0 0 auto;
}

.contract-connect-modal {
  background: #f7f7f5;
}

.contract-connect-modal__header,
.contract-connect-modal__footer {
  padding: 24px 30px;
}

.contract-connect-modal__body {
  padding: 0 30px 30px;
}

.contract-connect-modal__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.contract-connect-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #edf1ed;
  color: var(--app-text);
  white-space: nowrap;
}

.contract-connect-modal__grid {
  display: grid;
  gap: 18px;
}

.contract-connect-modal__section {
  background: #fff;
  border: 1px solid #edf1ed;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--app-shadow);
}

.contract-connect-modal__title {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 500;
}

.contract-connect-modal__textarea {
  border-radius: 24px;
  align-items: stretch;
  padding: 14px 16px;
}

.contract-connect-modal__textarea textarea {
  width: 100%;
  min-height: 140px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: var(--app-text);
}

.toolbar-action-pill {
  white-space: nowrap;
}

.offcanvas.offcanvas-end {
  width: min(390px, 100%);
  border-left: 0;
}

.offcanvas.offcanvas-end.offcanvas-wide {
  width: min(760px, 100%);
}

.offcanvas.offcanvas-start {
  width: min(320px, 100%);
  border-right: 0;
}

.mobile-bottom-nav {
  display: none;
}

.company-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 24px;
}

.company-embedded-card {
  overflow: hidden;
}

.administrative-overview-action {
  min-height: 168px;
}

.company-inner-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.company-inner-tabs::-webkit-scrollbar {
  height: 6px;
}

.company-inner-tabs::-webkit-scrollbar-thumb {
  background: #e4e8e3;
  border-radius: 999px;
}

.company-embed-shell {
  border: 1px solid #edf1ed;
  border-radius: 24px;
  overflow: hidden;
  background: #f7f8f5;
}

.company-embed-frame {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
  background: transparent;
}

.calendar-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
}

.calendar-time-row .field-shell {
  min-width: 96px;
  padding: 0 14px;
}

.offcanvas-header {
  padding: 20px 24px 0;
}

.offcanvas-body {
  padding: 20px 24px 28px;
}

.support-chat-canvas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.support-chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
}

.support-chat-day {
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f6f3;
  color: var(--app-muted);
  font-size: 0.88rem;
}

.support-chat-message {
  display: flex;
}

.support-chat-message--self {
  justify-content: flex-end;
}

.support-chat-bubble {
  max-width: 86%;
  border-radius: 20px;
  background: #f7f7f5;
  padding: 14px 16px;
  color: var(--app-text);
}

.support-chat-message--self .support-chat-bubble {
  background: #fbe9e9;
}

.support-chat-author {
  font-weight: 600;
  margin-bottom: 6px;
}

.support-chat-time {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--app-muted);
}

.support-chat-files,
.support-chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-chat-file-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f3f0;
  color: var(--app-text);
  font-size: 0.9rem;
}

.support-chat-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid #eef1ed;
}

.support-chat-input-shell {
  width: 100%;
}

.support-chat-input-shell textarea {
  width: 100%;
  border: 0;
  background: transparent;
  resize: none;
  min-height: 80px;
  max-height: 240px;
  padding: 6px 0;
}

.support-chat-input-shell textarea:focus {
  outline: none;
}

.support-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-chat-file-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e8e4;
}

.support-chat-launch {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f4;
  border: 1px solid #e5e8e4;
  color: var(--app-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-chat-launch:hover {
  background: #ecefe9;
  color: var(--app-text);
}

.support-connect-button {
  border: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 18px 36px rgba(185, 65, 65, 0.24);
}

.support-connect-button i {
  font-size: 1.2rem;
}

.support-connect-button--inline {
  width: 42px;
  height: 42px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(185, 65, 65, 0.18);
}

.support-connect-label {
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #2f2f2f;
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.support-connect-button:hover .support-connect-label {
  opacity: 1;
  visibility: visible;
}

.support-chat-actions-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.offcanvas-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.canvas-field-label {
  display: block;
  margin-bottom: 8px;
  color: #777f78;
  font-size: 0.95rem;
}

.info-banner-dark {
  background: #2f2f2f;
  color: #fff;
  border-radius: 26px;
  padding: 28px 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  background: #fff;
  border: 1px solid #edf1ed;
  border-radius: 20px;
  padding: 18px 22px;
}

.timeline-step {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: #505652;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d8d2;
}

.timeline-step.active::before {
  background: var(--app-primary);
}

.timeline-step::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  bottom: -16px;
  width: 2px;
  background: #dfe4df;
}

.timeline-step:last-child::after {
  display: none;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(420px, 0.8fr);
}

.auth-promo {
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 190, 190, 0.45), transparent 22%),
    linear-gradient(130deg, #8e2d2d 0%, #ff6a00 45%, #6f2121 100%);
  color: #fff;
  padding: 42px 48px;
  display: flex;
  flex-direction: column;
}

.auth-promo-carousel {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.auth-promo-carousel .carousel-inner {
  flex: 1;
}

.auth-promo-slide {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.auth-promo-carousel__indicators {
  position: static;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 28px;
}

.auth-promo-carousel__indicators button {
  width: 56px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.auth-promo-carousel__indicators button.active {
  background: rgba(255, 255, 255, 0.92);
}

.auth-promo-carousel__actions {
  margin-top: 28px;
  display: inline-flex;
  gap: 12px;
}

.auth-promo-carousel__control {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-preview {
  margin-top: auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  padding: 12px;
}

.auth-preview-inner {
  min-height: 320px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  padding: 24px;
  color: #2f302f;
}

.auth-panel {
  background: #fff;
  padding: 42px 48px;
  display: flex;
  flex-direction: column;
}

.auth-form-shell {
  max-width: 360px;
  width: 100%;
  margin: auto;
}

.auth-panel-home-link {
  display: none;
  align-items: center;
  gap: 8px;
  color: #ff6a00;
}

.registration-form-shell {
  max-width: 520px;
}

.auth-form-note {
  text-align: center;
  color: #ff6a00;
  font-size: 0.95rem;
  font-weight: 600;
}

.registration-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.registration-step-chip {
  border-radius: 999px;
  padding: 8px 14px;
  background: #f4f1ee;
  color: #8b8f8b;
  font-size: 0.92rem;
}

.registration-step-chip.is-active {
  background: rgba(255, 106, 0, 0.12);
  color: #ff6a00;
}

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

.registration-form-grid__full {
  grid-column: 1 / -1;
}

.registration-step-pane[hidden] {
  display: none !important;
}

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

.registration-actions .auth-submit-btn {
  width: auto;
  min-width: 220px;
}

.registration-confirm-card {
  border-radius: 24px;
  padding: 24px;
  background: #faf7f4;
}

.registration-confirm-list {
  display: grid;
  gap: 14px;
}

.registration-confirm-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.registration-confirm-placeholder {
  margin-bottom: 16px;
}

.auth-segment {
  background: #e5e8e4;
  padding: 4px;
  border-radius: 999px;
  display: flex;
}

.auth-segment .btn {
  border-radius: 999px;
  border: 0;
  color: #959995;
  flex: 1;
}

.auth-segment .btn.is-active {
  background: #fff;
  color: #ff6a00;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.12);
}

.registration-type-switch {
  margin-inline: auto;
  max-width: 360px;
}

.auth-segment .btn.active {
  background: #4a4a4a;
  color: #fff;
}

.auth-login-pane[hidden] {
  display: none !important;
}

.auth-login-pane.is-active {
  display: block;
}

.auth-submit-btn {
  background: #ff6a00;
  border-color: #ff6a00;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus,
.auth-submit-btn:active {
  background: #ff6a00 !important;
  border-color: #ff6a00 !important;
}

.auth-submit-btn:disabled,
.auth-submit-btn.disabled {
  background: #ff6a00 !important;
  border-color: #ff6a00 !important;
  color: #fff !important;
  opacity: 1;
}

.top-public {
  background: linear-gradient(90deg, #ee6666 0%, #d94747 100%);
  color: #fff;
}

.registration-hero {
  min-height: calc(100vh - 180px);
}

.map-stage {
  min-height: 540px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0.4)),
    radial-gradient(circle at 22% 36%, rgba(147, 201, 255, 0.55), transparent 12%),
    radial-gradient(circle at 56% 62%, rgba(147, 201, 255, 0.5), transparent 16%),
    linear-gradient(180deg, #eaf3df, #eff2e8);
  position: relative;
  overflow: hidden;
}

.map-stage::before,
.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
}

.map-stage::before {
  background:
    linear-gradient(20deg, transparent 28%, rgba(235, 163, 90, 0.55) 29%, rgba(235, 163, 90, 0.55) 30%, transparent 31%),
    linear-gradient(120deg, transparent 46%, rgba(235, 163, 90, 0.55) 47%, rgba(235, 163, 90, 0.55) 48%, transparent 49%),
    linear-gradient(75deg, transparent 60%, rgba(235, 163, 90, 0.48) 61%, rgba(235, 163, 90, 0.48) 62%, transparent 63%);
}

.map-stage::after {
  background:
    radial-gradient(circle at 15% 24%, rgba(79, 164, 232, 0.55), transparent 9%),
    radial-gradient(circle at 63% 50%, rgba(79, 164, 232, 0.55), transparent 10%),
    radial-gradient(circle at 82% 72%, rgba(79, 164, 232, 0.55), transparent 10%);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1ed;
}

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pagination-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 0;
}

.mini-page {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #cbd2cb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.muted {
  color: var(--app-muted);
}

.text-soft {
  color: #d89c9c;
}

.table-legend {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}

.table-legend .ok {
  color: #ff6a00;
}

.table-legend .no {
  color: #d36b61;
}

.toolbar-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-inline .search-shell {
  flex: 1 1 420px;
}

.dropdown-pill {
  min-width: 140px;
  justify-content: space-between;
}

.dropdown-pill-menu {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--app-shadow);
  padding: 10px 0;
  min-width: 140px;
}

.dropdown-pill-menu .dropdown-item {
  padding: 10px 18px;
}

.users-tabs {
  margin-bottom: 22px;
}

.users-table-card {
  border-radius: 20px;
  overflow: hidden;
}

.users-table thead th:first-child,
.users-table tbody td:first-child {
  width: 44px;
}

.users-table thead th:last-child,
.users-table tbody td:last-child {
  width: 120px;
  text-align: right;
}

.table-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #cfd5d0;
  appearance: none;
  background: #fff;
  display: inline-block;
  vertical-align: middle;
}

.table-checkbox:checked {
  appearance: auto;
  accent-color: #4caf87;
}

.table-next {
  color: var(--app-primary);
  font-size: 1.15rem;
}

.table-next-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
}

.users-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

.users-selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--app-text);
}

.users-selection-minus {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 6px;
  background: #f2f2f0;
  color: #8b8f8b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.users-table tbody tr.is-selected td {
  background: #fff;
}

.support-table td:last-child,
.support-table th:last-child {
  text-align: right;
  width: 72px;
}

.support-topic {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-topic strong {
  font-weight: 600;
}

.support-meta {
  font-size: 0.9rem;
  color: var(--app-muted);
}

.support-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-text);
}

.support-channel i {
  color: var(--app-primary);
}

.support-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.support-status--open {
  background: rgba(185, 65, 65, 0.12);
  color: var(--app-primary);
}

.support-status--progress {
  background: rgba(232, 184, 82, 0.16);
  color: #9f6a08;
}

.support-status--closed {
  background: rgba(76, 175, 135, 0.16);
  color: #2d7e60;
}

.statistics-table td:nth-child(6),
.statistics-table th:nth-child(6) {
  white-space: nowrap;
}

.statistics-filters-shell {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 280px;
  margin-bottom: -256px;
}

.statistics-search-toggle,
.statistics-search-trigger {
  display: none;
}

.statistics-toolbar__search {
  display: flex;
}

.settings-inline-save__button i {
  display: none;
}

.statistics-filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: max-content;
  position: relative;
  z-index: 2;
}

.statistics-filter-item {
  flex: 0 0 220px;
  min-width: 220px;
}

.statistics-filter-item--date {
  flex-basis: 260px;
  min-width: 260px;
}

.statistics-date-trigger {
  width: 100%;
  color: var(--app-text);
}

.statistics-calendar-popover {
  min-width: 320px;
}

.statistics-time-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef1ed;
}

.statistics-time-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.statistics-time-label {
  font-size: 0.88rem;
  color: var(--app-muted);
}

.statistics-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.statistics-user strong {
  font-weight: 600;
}

.statistics-meta {
  font-size: 0.9rem;
  color: var(--app-muted);
}

.statistics-action {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.statistics-action--create {
  background: rgba(76, 175, 135, 0.16);
  color: #2d7e60;
}

.statistics-action--update {
  background: rgba(232, 184, 82, 0.16);
  color: #9f6a08;
}

.statistics-action--delete {
  background: rgba(185, 65, 65, 0.12);
  color: var(--app-primary);
}

.users-footer .pagination-shell {
  flex: 1;
  padding-top: 0;
}

.offcanvas-section {
  padding-top: 8px;
  margin-top: 20px;
  border-top: 1px solid #eef1ed;
}

.offcanvas-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.offcanvas-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1ed;
}

.offcanvas-list-item:last-child {
  border-bottom: 0;
}

.offcanvas-meta-action {
  color: var(--app-primary);
  font-size: 0.95rem;
}

.attach-card-list {
  display: flex;
  flex-direction: column;
}

.attach-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  border-bottom: 1px solid #eef1ed;
  font-size: 1.05rem;
  font-weight: 500;
  color: #4b4f4b;
}

.attach-card-item:last-child {
  border-bottom: 0;
}

.attach-card-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #4caf87;
}

.field-shell[disabled],
.field-shell input:disabled,
.field-shell textarea:disabled {
  color: #aeb3ae;
}

.soft-action {
  background: #eef7f3;
  color: #78b6a1;
  border: 0;
}

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

.stats-card {
  padding: 22px 24px;
}

.stats-card-value {
  margin-top: 16px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.referral-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.referral-link-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.referral-steps {
  border-radius: 24px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.referral-steps .timeline-step {
  color: #fff;
}

.referral-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.referral-progress-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.referral-progress-item strong {
  font-weight: 500;
}

.referral-progress {
  height: 10px;
  border-radius: 999px;
  background: #f3d3d3;
  overflow: hidden;
}

.referral-progress .progress-bar {
  background: linear-gradient(90deg, #f06a6a 0%, #ff6a00 100%);
}

.referral-note {
  border-radius: 20px;
  padding: 18px 20px;
  background: #faf8f6;
  border: 1px solid #edf1ed;
}

.referral-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.cart-table-link {
  color: inherit;
  text-decoration: none;
}

.cart-table-link:hover {
  color: var(--app-primary-dark);
}

.cart-back-row {
  margin-bottom: 10px;
}

.cart-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--app-primary);
  font-weight: 500;
}

.cart-detail-title {
  font-size: 2.1rem;
  font-weight: 500;
}

.cart-detail-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.cart-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-text);
}

.action-menu {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.card-overview-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr) minmax(320px, 1.5fr);
  gap: 18px;
  align-items: stretch;
}

.fuel-card-visual {
  min-height: 170px;
  border-radius: 22px;
  padding: 18px 18px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(15, 22, 29, 0.95) 0%, rgba(20, 37, 42, 0.92) 28%, rgb(255 106 0) 74%, rgb(216 123 57) 100%);
}

.fuel-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 34%, rgba(0, 0, 0, 0.55) 42%, transparent 60%);
  pointer-events: none;
}

.fuel-card-number,
.fuel-card-meta,
.fuel-card-date,
.fuel-card-type {
  position: relative;
  z-index: 1;
}

.fuel-card-number {
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.fuel-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  max-width: 140px;
  line-height: 1.1;
}

.fuel-card-date {
  position: absolute;
  right: 20px;
  top: 52px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  font-size: 0.95rem;
}

.fuel-card-type {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 1rem;
}

.driver-cards-carousel {
  max-width: 560px;
}

.driver-cards-carousel__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.driver-cards-carousel__control {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--app-text);
  box-shadow: 0 10px 24px rgba(74, 83, 77, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.driver-cards-carousel .carousel-indicators {
  justify-content: center;
}

.driver-cards-carousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #d6dbd6;
  opacity: 1;
}

.driver-cards-carousel .carousel-indicators button.active {
  background: var(--app-primary);
}

.driver-card-stack {
  position: relative;
  padding-top: 28px;
  padding-bottom: 14px;
}

.driver-card-stack__layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 56px);
  border-radius: 24px;
  background: #fff4f4;
  border: 1px solid #f4dcdc;
  box-shadow: 0 14px 28px rgba(74, 83, 77, 0.08);
}

.driver-card-stack__layer--back {
  top: 0;
  height: calc(100% - 48px);
  opacity: 0.55;
}

.driver-card-stack__layer--mid {
  top: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 30px);
  background: #fff;
  border-color: #efe4e4;
}

.driver-card-stack__front {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.driver-card-stack__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.driver-card-stack__status {
  flex: 0 0 auto;
}

.driver-fuel-card {
  min-height: 210px;
  padding: 22px 22px 20px;
  border-radius: 26px;
}

.driver-fuel-card--primary {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #101827 0%, #17314d 34%, #1f7c6b 72%, #41b69b 100%);
}

.driver-fuel-card--reserve {
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #2b1a34 0%, #4f285e 36%, #8f4f86 70%, #d07f87 100%);
}

.driver-fuel-card__brand {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
}

.driver-fuel-card__glow {
  position: absolute;
  inset: auto -36px -64px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(14px);
}

.driver-fuel-card__chip {
  position: absolute;
  left: 22px;
  top: 58px;
  width: 38px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 214, 137, 0.95), rgba(214, 156, 68, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.driver-fuel-card .fuel-card-number {
  margin-top: 44px;
  font-size: 1.62rem;
}

.driver-fuel-card .fuel-card-meta {
  max-width: 180px;
}
}

.card-overview-action {
  border: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 170px;
  color: var(--app-primary-dark);
  background: var(--app-primary-soft);
}

.card-overview-action i {
  font-size: 1.35rem;
}

.card-limit-summary {
  min-height: 170px;
  display: flex;
  flex-direction: column;
}

.cart-empty-state {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4f4a;
  font-size: 1.1rem;
}

.cart-limit-note {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px 32px;
  background: #fff;
  border: 1px solid #edf1ed;
  border-radius: 20px;
  padding: 18px 20px;
}

.cart-limit-note-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
}

.cart-badge--danger {
  color: #d36b61;
}

.cart-badge--ok {
  color: #67bca2;
}

.cart-click-row {
  cursor: pointer;
}

.cart-click-row:hover td {
  background: #fbfbfa;
}

.cart-limit-actions {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cart-limit-row:hover .cart-limit-actions {
  opacity: 1;
}

.cart-limit-actions i {
  cursor: pointer;
}

.cart-icon-button {
  border: 0;
  background: transparent;
  color: #7d837d;
  padding: 0;
}

.car-edit-row {
  cursor: pointer;
}

.car-edit-row:hover td {
  background: #fbfbfa;
}

.cart-date-pill {
  min-width: 180px;
  justify-content: space-between;
}

.date-dropdown-menu {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--app-shadow);
  min-width: 236px;
}

.calendar-popover {
  padding: 16px;
}

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

.calendar-nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8e958f;
}

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

.calendar-grid--labels {
  margin-bottom: 10px;
  color: #c0c4c0;
  font-size: 0.82rem;
  text-align: center;
}

.calendar-day {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #4a4f4a;
  font-size: 0.9rem;
  margin: 0 auto;
}

.calendar-day.is-active,
.calendar-day.is-selected {
  background: #3a3a3a;
  color: #fff;
}

.calendar-day.is-range {
  background: #f1f3f0;
  color: #767d77;
}

.calendar-day.is-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4d7d4;
  font-size: 0.9rem;
  margin: 0 auto;
}

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

.cart-transactions-table tbody td:nth-child(4) {
  white-space: normal;
}

.cart-summary-row td {
  color: var(--app-primary);
  font-weight: 600;
}

.group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4c2c2;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.group-comment-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}

.cart-groups-table thead th:first-child,
.cart-groups-table tbody td:first-child {
  width: 46px;
}

.cart-picker-list {
  display: flex;
  flex-direction: column;
}

.cart-picker-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px;
  border-bottom: 1px solid #eef1ed;
}

.cart-picker-item:last-child {
  border-bottom: 0;
}

.cart-textarea-shell {
  height: auto;
  padding-block: 14px;
  border-radius: 24px;
}

.report-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-file-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #edf1ed;
  border-radius: 18px;
}

.filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #edf1ed;
}

.filter-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--app-primary);
  font-weight: 500;
}

.cart-picker-item .muted.small {
  color: var(--app-primary);
}

.offcanvas-body .soft-action {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.filter-scroll {
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.filter-check-row {
  display: block;
  margin-bottom: 12px;
}

.filter-check-row span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.transaction-detail-list {
  display: flex;
  flex-direction: column;
}

.transaction-detail-item {
  padding: 18px 0;
  border-bottom: 1px solid #eef1ed;
}

.transaction-detail-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--app-text);
}

.transaction-detail-text {
  font-weight: 400;
  line-height: 1.45;
}

.staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.staff-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 180px 180px 120px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #edf1ed;
  border-radius: 20px;
  background: #fff;
}

.staff-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.staff-meta {
  color: var(--app-muted);
  font-size: 0.95rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.status-chip--ok {
  background: #eef7f3;
  color: #3b8d6e;
}

.status-chip--warn {
  background: #fff4e8;
  color: #c77635;
}

.role-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-panel {
  padding: 22px;
  border: 1px solid #edf1ed;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff9f8, #fff);
}

.role-panel h3 {
  margin: 0 0 10px;
}

.role-panel p {
  margin: 0;
  color: var(--app-muted);
  line-height: 1.65;
}

.role-panel ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--app-muted);
  line-height: 1.65;
}

.permission-table-shell {
  overflow: hidden;
}

.permission-table td:last-child,
.permission-table th:last-child {
  text-align: right;
}

.access-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.access-pill--full {
  background: #eef7f3;
  color: #3b8d6e;
}

.access-pill--view {
  background: #fff4e8;
  color: #c77635;
}

.access-pill--none {
  background: #fdeaea;
  color: #c73f3f;
}

.role-permission-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.role-permission-table th,
.role-permission-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1ed;
  vertical-align: middle;
}

.role-permission-table th {
  color: var(--app-muted);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

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

.permission-check {
  width: 18px;
  height: 18px;
  accent-color: var(--app-primary);
}

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

.permission-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-promo {
    min-height: 420px;
  }

  .page-wrap {
    padding: 24px 20px 30px;
  }

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

  .users-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .staff-layout,
  .referral-layout {
    grid-template-columns: 1fr 1fr;
  }

  .card-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991.98px) {
  .company-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .app-shell > .app-sidebar {
    display: none;
  }

  .app-main {
    padding-top: 88px;
    padding-bottom: 92px;
  }

  .topbar-balance {
    display: none;
  }

  body.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-toggle,
  html.sidebar-collapsed .app-shell > .app-sidebar[data-sidebar] .sidebar-toggle {
    position: static;
    box-shadow: none;
  }

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

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

  .stats-grid,
  .staff-layout,
  .referral-layout,
  .staff-row {
    grid-template-columns: 1fr;
  }

  .card-overview-grid,
  .cart-limit-note {
    grid-template-columns: 1fr;
  }

  .cart-detail-actions {
    gap: 14px;
  }

  .cart-transactions-table {
    min-width: 980px;
  }

  .referral-link-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .car-page-header {
    flex-direction: row;
    align-items: center;
  }

  .car-filters-toolbar {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .car-filters-toolbar .search-shell {
    flex: 1 1 132px;
  }

  .car-date-pill {
    min-width: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .car-date-pill__label {
    display: none;
  }

  .app-topbar > .d-flex.align-items-center.gap-3 {
    min-width: 0;
    flex-wrap: nowrap;
  }

  .topbar-actions {
    margin-left: auto;
    gap: 10px;
  }

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1045;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(74, 83, 77, 0.14);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav__item {
    min-height: 100%;
    height: 100%;
    align-self: stretch;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #7d847d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  .mobile-bottom-nav__item i {
    font-size: 1.2rem;
    flex: 0 0 auto;
    margin: 10px;
  }

  .mobile-bottom-nav__item.active {
    background: #fdeaea;
    color: var(--app-primary);
  }

  .mobile-sections-sheet {
    height: 100vh !important;
    top: 65px;
    border-radius: 0;
  }

  .mobile-sections-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-section-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7f7f5;
    color: var(--app-text);
  }

  .mobile-section-link.active {
    background: #fdeaea;
    color: var(--app-primary);
  }
}

@media (max-width: 767.98px) {
  .auth-panel,
  .auth-promo {
    padding: 28px 22px;
  }

  .auth-promo {
    display: none;
  }

  .auth-panel-home-link {
    display: inline-flex;
    margin-bottom: 20px;
  }

  .registration-form-shell {
    max-width: 100%;
  }

  .registration-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .registration-form-grid__full {
    grid-column: auto;
  }

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

  .registration-actions .auth-submit-btn,
  .registration-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .company-embed-shell {
    border-radius: 18px;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .cart-detail-title {
    font-size: 1.7rem;
  }

  .soft-banner .divider {
    display: none;
  }

  .referral-payout-grid {
    grid-template-columns: 1fr;
  }

  .cart-date-pill {
    min-width: auto;
    padding-inline: 12px;
  }

  .cart-date-pill__label {
    display: none;
  }

  .search-shell {
    flex: 1 1 180px;
    min-width: 0;
    padding-inline: 12px;
  }

  .search-shell input::placeholder {
    font-size: 0.9rem;
  }

  .toolbar-action-pill {
    min-width: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    gap: 0;
    flex: 0 0 48px;
  }

  .toolbar-action-pill__label {
    display: none;
  }

  .cart-list-toolbar {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .cart-list-toolbar .search-shell {
    flex: 1 1 auto;
  }

  .cart-transactions-toolbar {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .cart-transactions-toolbar .search-shell {
    flex: 1 1 132px;
  }

  .user-dogovor-toolbar {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .user-dogovor-toolbar .search-shell {
    flex: 1 1 132px;
  }

  .users-drivers-toolbar {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .users-drivers-toolbar .search-shell {
    flex: 1 1 132px;
  }

  .users-operators-toolbar {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .users-operators-toolbar .search-shell {
    flex: 1 1 132px;
  }

  .statistics-toolbar {
    flex-wrap: wrap !important;
    align-items: center;
    overflow: visible;
  }

  .statistics-toolbar .search-shell {
    flex: 1 1 176px;
    min-width: 176px;
  }

  .statistics-toolbar .dropdown {
    flex: 0 0 auto;
  }

  .statistics-search-toggle {
    display: none;
  }

  .statistics-search-trigger {
    display: inline-flex;
  }

  .statistics-toolbar__search {
    display: none;
    order: 10;
    flex: 1 0 100%;
    min-width: 0;
  }

  .statistics-search-toggle:checked ~ .statistics-toolbar__search {
    display: flex;
  }

  .settings-inline-save {
    align-items: center;
  }

  .settings-inline-save__button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
  }

  .settings-inline-save__label {
    display: none;
  }

  .settings-inline-save__button i {
    display: inline-block;
  }

  .users-toolbar-filter-pill,
  .users-toolbar-date-pill,
  .statistics-filter-pill {
    background: #fff;
    color: var(--app-primary-dark);
    border-color: #f1aaaa;
    justify-content: center;
  }

  .cart-list-toolbar__filter {
    display: block;
  }

  .cart-create-pill {
    background: var(--app-primary);
    color: #fff;
  }

  .cart-filter-pill {
    background: #fff;
    color: var(--app-primary-dark);
    border-color: #f1aaaa;
    justify-content: center;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table,
  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td {
    display: block;
    width: 100%;
  }

  .mobile-card-table tbody {
    padding: 12px;
  }

  .mobile-card-table tbody tr {
    border: 1px solid #edf1ed;
    border-radius: 20px;
    padding: 18px;
    background: #fff;
  }

  .mobile-card-table tbody tr + tr {
    margin-top: 14px;
  }

  .mobile-card-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    margin-top: 12px;
    text-align: right;
  }

  .mobile-card-table tbody td:first-child {
    margin-top: 0;
  }

  .mobile-card-table tbody td::before {
    content: attr(data-label);
    color: var(--app-muted);
    font-size: 0.9rem;
    text-align: left;
    flex: 0 0 42%;
  }

  .mobile-card-table tbody td[data-label=""]::before {
    display: none;
  }

  .mobile-card-table tbody td[data-label=""] {
    justify-content: flex-end;
  }

  .supplier-table thead {
    display: none;
  }

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

  .supplier-table tbody {
    padding: 12px;
  }

  .supplier-table tbody tr {
    border: 1px solid #edf1ed;
    border-radius: 20px;
    padding: 18px;
    background: #fff;
  }

  .supplier-table tbody tr + tr {
    margin-top: 14px;
  }

  .supplier-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    margin-top: 12px;
  }

  .supplier-table tbody td:first-child {
    margin-top: 0;
  }

  .supplier-table tbody td::before {
    color: var(--app-muted);
    font-size: 0.9rem;
    flex: 0 0 46%;
  }

  .supplier-table tbody td:nth-child(1)::before {
    content: "Срок действия";
  }

  .supplier-table tbody td:nth-child(2)::before {
    content: "Вступил в силу";
  }

  .supplier-table tbody td:nth-child(3)::before {
    content: "Балланс";
  }

  .supplier-table tbody td:nth-child(4)::before {
    content: "Поставщик";
  }

  .supplier-table tbody td:nth-child(5)::before {
    content: "УИН";
  }

  .supplier-table tbody td:nth-child(6)::before {
    content: "Статус";
  }

  .supplier-table tbody td:last-child .primary-pill {
    width: 100%;
  }

  .transaction-table thead {
    display: none;
  }

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

  .transaction-table tbody {
    padding: 12px;
  }

  .transaction-table tbody tr {
    border: 1px solid #edf1ed;
    border-radius: 20px;
    padding: 18px;
    background: #fff;
  }

  .transaction-table tbody tr + tr {
    margin-top: 14px;
  }

  .transaction-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    margin-top: 12px;
    text-align: right;
  }

  .transaction-table tbody td:first-child {
    margin-top: 0;
  }

  .transaction-table tbody td::before {
    color: var(--app-muted);
    font-size: 0.9rem;
    text-align: left;
    flex: 0 0 42%;
  }

  .transaction-table tbody td:nth-child(1)::before {
    content: "Дата и время";
  }

  .transaction-table tbody td:nth-child(2)::before {
    content: "Способ пополнения";
  }

  .transaction-table tbody td:nth-child(3)::before {
    content: "Источник";
  }

  .transaction-table tbody td:nth-child(4)::before {
    content: "Номер платежа / счета";
  }

  .transaction-table tbody td:nth-child(5)::before {
    content: "Статус";
  }

  .transaction-table tbody td:nth-child(6)::before {
    content: "Сумма";
  }

  .cards-list-table thead {
    display: none;
  }

  .cards-list-table,
  .cards-list-table tbody,
  .cards-list-table tr,
  .cards-list-table td {
    display: block;
    width: 100%;
  }

  .cards-list-table tbody {
    padding: 12px;
  }

  .cards-list-table tbody tr {
    position: relative;
    border: 1px solid #edf1ed;
    border-radius: 20px;
    padding: 18px;
    background: #fff;
  }

  .cards-list-table tbody tr + tr {
    margin-top: 14px;
  }

  .cards-list-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    margin-top: 12px;
    text-align: right;
  }

  .cards-list-table tbody td:first-child {
    margin-top: 0;
    justify-content: flex-end;
  }

  .cards-list-table tbody td:first-child::before {
    display: none;
  }

  .cards-list-table tbody td::before {
    color: var(--app-muted);
    font-size: 0.9rem;
    text-align: left;
    flex: 0 0 42%;
  }

  .cards-list-table tbody td:nth-child(2)::before {
    content: "Номер карты";
  }

  .cards-list-table tbody td:nth-child(3)::before {
    content: "Водитель";
  }

  .cards-list-table tbody td:nth-child(4)::before {
    content: "Номер автомобиля";
  }

  .cards-list-table tbody td:nth-child(5)::before {
    content: "Группа";
  }

  .cards-list-table tbody td:nth-child(6)::before {
    content: "Тип карты";
  }

  .cards-list-table tbody td:nth-child(7)::before {
    content: "Баланс";
  }

  .cart-transactions-table thead,
  .cart-groups-table thead,
  .group-cards-table thead,
  .cart-limit-table thead {
    display: none;
  }

  .cart-transactions-table,
  .cart-transactions-table tbody,
  .cart-transactions-table tr,
  .cart-transactions-table td,
  .cart-groups-table,
  .cart-groups-table tbody,
  .cart-groups-table tr,
  .cart-groups-table td,
  .group-cards-table,
  .group-cards-table tbody,
  .group-cards-table tr,
  .group-cards-table td,
  .cart-limit-table,
  .cart-limit-table tbody,
  .cart-limit-table tr,
  .cart-limit-table td {
    display: block;
    width: 100%;
  }

  .cart-transactions-table tbody,
  .cart-groups-table tbody,
  .group-cards-table tbody,
  .cart-limit-table tbody {
    padding: 12px;
  }

  .cart-transactions-table tbody tr,
  .cart-groups-table tbody tr,
  .group-cards-table tbody tr,
  .cart-limit-table tbody tr {
    border: 1px solid #edf1ed;
    border-radius: 20px;
    padding: 18px;
    background: #fff;
  }

  .cart-transactions-table tbody tr + tr,
  .cart-groups-table tbody tr + tr,
  .group-cards-table tbody tr + tr,
  .cart-limit-table tbody tr + tr {
    margin-top: 14px;
  }

  .cart-transactions-table tbody td,
  .cart-groups-table tbody td,
  .group-cards-table tbody td,
  .cart-limit-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    margin-top: 12px;
    text-align: right;
  }

  .cart-transactions-table tbody td:first-child,
  .cart-groups-table tbody td:first-child,
  .group-cards-table tbody td:first-child,
  .cart-limit-table tbody td:first-child {
    margin-top: 0;
  }

  .cart-transactions-table tbody td::before,
  .cart-groups-table tbody td::before,
  .group-cards-table tbody td::before,
  .cart-limit-table tbody td::before {
    color: var(--app-muted);
    font-size: 0.9rem;
    text-align: left;
    flex: 0 0 42%;
  }

  .cart-transactions-table .cart-summary-row td::before {
    display: none;
  }

  .cart-transactions-table .cart-summary-row td {
    text-align: left;
  }

  .cart-transactions-table tbody td:nth-child(1)::before {
    content: "Время";
  }

  .cart-transactions-table tbody td:nth-child(2)::before {
    content: "Номер карты и АЗС";
  }

  .cart-transactions-table tbody td:nth-child(3)::before {
    content: "Водитель и авто";
  }

  .cart-transactions-table tbody td:nth-child(4)::before {
    content: "Товары и количество";
  }

  .cart-transactions-table tbody td:nth-child(5)::before {
    content: "Цена";
  }

  .cart-transactions-table tbody td:nth-child(6)::before {
    content: "Сумма";
  }

  .cart-groups-table tbody td:first-child,
  .group-cards-table tbody td:first-child {
    justify-content: flex-end;
  }

  .cart-groups-table tbody td:first-child::before,
  .group-cards-table tbody td:first-child::before {
    display: none;
  }

  .cart-groups-table tbody td:nth-child(2)::before {
    content: "Название группы";
  }

  .cart-groups-table tbody td:nth-child(3)::before {
    content: "Комментарий";
  }

  .cart-groups-table tbody td:nth-child(4)::before {
    content: "Количество карт";
  }

  .group-cards-table tbody td:nth-child(2)::before {
    content: "Номер карты";
  }

  .group-cards-table tbody td:nth-child(3)::before {
    content: "Водитель";
  }

  .group-cards-table tbody td:nth-child(4)::before {
    content: "Номер автомобиля";
  }

  .group-cards-table tbody td:nth-child(5)::before {
    content: "Тип карты";
  }

  .cart-limit-table tbody td:nth-child(1)::before {
    content: "Категория/Группа/Товар";
  }

  .cart-limit-table tbody td:nth-child(2)::before {
    content: "Тип ограничителя";
  }

  .cart-limit-table tbody td:nth-child(3)::before {
    content: "Лимит";
  }

  .cart-limit-table tbody td:nth-child(4)::before {
    content: "Дни и время работы";
  }

  .cart-limit-table tbody td:nth-child(5)::before {
    content: "Количество транзакций";
  }

  .cart-history-action__full {
    display: none !important;
  }

  .cart-history-action__short {
    display: inline !important;
  }

  .doc-await-tab__full {
    display: none !important;
  }

  .doc-await-tab__short {
    display: inline !important;
  }
}

.cart-history-action__short {
  display: none;
}

.doc-await-tab__short {
  display: none;
}
