:root {
  --app-primary: #2563eb;
  --app-primary-dark: #1d4ed8;
  --app-menu-active-background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(79, 70, 229, 0.86));
  --app-menu-active-color: #ffffff;
  --app-menu-active-shadow: 0 7px 16px rgba(30, 64, 175, 0.24);
  --app-text: #172033;
  --app-text-muted: #667085;
  --app-border: #e4e7ec;
  --app-surface: #ffffff;
  --app-background: #f4f7fb;
  --app-radius: 14px;
  --app-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --app-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --app-sidebar-width: 252px;
  --app-topbar-height: 72px;
}

body.app-page {
  min-height: 100vh;
  padding-top: 0;
  color: var(--app-text);
  background: var(--app-background);
  font-family: var(--app-font-family);
}

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

.app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  width: var(--app-sidebar-width);
  color: #dbeafe;
  background: #101a33;
  box-shadow: 8px 0 26px rgba(15, 23, 42, 0.06);
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--app-topbar-height);
  padding: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.app-brand:hover,
.app-brand:focus {
  color: #fff;
  text-decoration: none;
}

.app-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
}

.app-brand__mark img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.app-brand--logo-only {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--app-topbar-height);
}

.app-brand--logo-only .app-brand__mark {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
}

.app-brand--logo-only .app-brand__mark img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0;
}

.app-brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-sidebar__body {
  flex: 1;
  padding: 26px 14px 18px;
  overflow-y: auto;
}

.app-nav__label {
  margin: 0 12px 9px;
  color: #7f91b4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.app-nav__label:not(:first-child) {
  margin-top: 25px;
}

.app-nav {
  display: grid;
  gap: 4px;
}

.app-nav__group {
  display: grid;
  gap: 4px;
}

.app-nav__group-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: #aebbd5;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease;
}

.app-nav__group-toggle:hover,
.app-nav__group-toggle:focus,
.app-nav__group-toggle.is-active {
  color: #fff;
  background: rgba(var(--app-primary-rgb, 96, 165, 250), 0.12);
  outline: none;
}

.app-nav__group-toggle .app-nav__arrow {
  margin-left: auto;
  color: #91a7cf;
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.app-nav__group.is-open .app-nav__group-toggle .app-nav__arrow {
  transform: rotate(90deg);
}

.app-nav__submenu {
  display: grid;
  gap: 4px;
  padding-left: 12px;
}

.app-nav__submenu[hidden] {
  display: none;
}

.app-nav__link--child {
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 18px;
  font-size: 12px;
}

.app-nav__link,
.app-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 12px;
  color: #aebbd5;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.app-nav__link:hover,
.app-nav__link:focus,
.app-logout:hover,
.app-logout:focus {
  color: #fff;
  background: rgba(var(--app-primary-rgb, 96, 165, 250), 0.12);
  text-decoration: none;
}

.app-nav__link.is-active {
  color: var(--app-menu-active-color, #ffffff);
  background: var(--app-menu-active-background, linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(79, 70, 229, 0.86)));
  box-shadow: var(--app-menu-active-shadow, 0 7px 16px rgba(30, 64, 175, 0.24));
}

.app-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  min-width: 19px;
  color: #91a7cf;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.app-nav__group-toggle.is-active .app-nav__icon,
.app-nav__link:hover .app-nav__icon,
.app-nav__link:focus .app-nav__icon,
.app-logout:hover .app-nav__icon,
.app-logout:focus .app-nav__icon {
  color: #dbeafe;
}

.app-nav__link.is-active .app-nav__icon {
  color: var(--app-menu-active-color, #dbeafe);
}

.app-menu-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.app-menu-editor__panel,
.app-menu-editor__reset {
  padding: 24px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.app-menu-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.app-menu-editor__header h2,
.app-menu-editor__reset h2 {
  margin: 0;
  color: var(--app-text);
  font-size: 18px;
  font-weight: 800;
}

.app-menu-editor__header p,
.app-menu-editor__reset p {
  margin: 7px 0 0;
  color: var(--app-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.app-menu-editor__add {
  display: grid;
  gap: 10px;
}

.app-menu-editor__add label {
  margin: 0;
  color: var(--app-text);
  font-size: 12px;
  font-weight: 700;
}

.app-menu-editor__hint {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 13px 14px;
  color: var(--app-text-muted);
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.app-menu-editor__hint strong {
  color: var(--app-text);
  font-size: 12px;
}

.app-menu-editor__rows {
  display: grid;
  gap: 10px;
}

.app-menu-editor__row {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(480px, 1.55fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 10px;
}

.app-menu-editor__row--group {
  background: #f8fbff;
  border-color: #b9d1f1;
}

.app-menu-editor__row-meta,
.app-menu-editor__row-settings,
.app-menu-editor__row-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.app-menu-editor__row-settings {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 200px max-content;
  gap: 10px;
}

.app-menu-editor__row-meta {
  display: grid;
  gap: 5px;
}

.app-menu-editor__row-title {
  color: var(--app-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-menu-editor__row-meta strong {
  overflow: hidden;
  color: var(--app-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-menu-editor__title,
.app-menu-editor__parent,
.app-menu-editor__icon {
  min-width: 0;
  height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 12px;
}

.app-menu-editor__parent {
  flex: 1;
}

.app-menu-editor__icon {
  width: auto;
  flex: 1 1 auto;
  text-align: left;
}

.app-menu-editor__icon-control {
  display: flex;
  align-items: center;
  width: 200px;
  flex: 0 0 200px;
  min-width: 0;
  gap: 8px;
}

.app-menu-editor__icon-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  color: var(--app-primary);
  background: #f1f5f9;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  font-size: 16px;
  line-height: 1;
}

.app-menu-editor__icon-preview.fa {
  font-family: FontAwesome;
}

.app-menu-editor__visibility,
.app-menu-editor__root-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  color: var(--app-text-muted);
  font-size: 11px;
  white-space: nowrap;
  gap: 5px;
}

.app-menu-editor__visibility input {
  flex: 0 0 auto;
  margin: 0;
}

.app-menu-editor__row-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.app-menu-editor__move {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.app-menu-editor__empty {
  padding: 24px;
  color: var(--app-text-muted);
  background: #f8fafc;
  border: 1px dashed var(--app-border);
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
}

.app-menu-editor__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.app-menu-editor__reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.app-menu-editor__reset form {
  flex: 0 0 auto;
  margin: 0;
}

.app-sidebar__footer {
  padding: 17px 14px 19px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.app-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px 12px;
}

.app-user-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  color: #dbeafe;
  background: #28447c;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.app-user-card__details {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.app-user-card__details strong,
.app-user-card__details small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-card__details strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.app-user-card__details small {
  color: #8294b7;
  font-size: 10px;
}

.app-logout {
  min-height: 38px;
  color: #8294b7;
  font-size: 12px;
}

.app-sidebar-overlay {
  display: none;
}

.app-main {
  min-height: 100vh;
  margin-left: var(--app-sidebar-width);
  padding-top: var(--app-topbar-height);
}

.app-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--app-sidebar-width);
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--app-topbar-height);
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
}

.app-topbar__context {
  display: grid;
  gap: 3px;
}

.app-topbar__eyebrow {
  color: var(--app-primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.app-topbar__context strong {
  color: var(--app-text);
  font-size: 14px;
  font-weight: 700;
}

.app-topbar__profile {
  display: grid;
  gap: 3px;
  text-align: right;
}

.app-topbar__profile-name {
  color: var(--app-text);
  font-size: 13px;
  font-weight: 700;
}

.app-topbar__profile-role {
  color: var(--app-text-muted);
  font-size: 11px;
}

.app-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.app-menu-toggle:focus,
.app-menu-toggle:hover {
  background: #eef4ff;
  outline: 0;
}

.app-menu-toggle__line {
  display: block;
  width: 19px;
  height: 2px;
  margin: 2px 0;
  background: var(--app-text);
  border-radius: 2px;
}

body.app-page .app-main > .container,
body.app-page .app-main > .container-fluid {
  width: auto;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-top: 28px !important;
  padding-right: 36px;
  padding-bottom: 42px;
  padding-left: 36px;
}

.app-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.app-page-heading__eyebrow,
.app-welcome-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--app-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.app-page-heading h1 {
  margin: 0 0 8px;
  color: var(--app-text);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.app-page-heading p {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 14px;
}

.app-dashboard__cards {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.app-dashboard__cards > [class*="col-"] {
  display: flex;
  margin-bottom: 20px;
}

.app-stat-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 188px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.app-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 19px;
  border-radius: 10px;
  font-size: 18px;
}

.app-stat-card__icon--blue {
  color: #2563eb;
  background: #eff6ff;
}

.app-stat-card__icon--green {
  color: #059669;
  background: #ecfdf5;
}

.app-stat-card__icon--purple {
  color: #7c3aed;
  background: #f5f3ff;
}

.app-stat-card__label {
  color: var(--app-text-muted);
  font-size: 12px;
}

.app-stat-card__value {
  margin-top: 4px;
  color: var(--app-text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.app-stat-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  color: var(--app-primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.app-stat-card__link:hover,
.app-stat-card__link:focus {
  color: var(--app-primary-dark);
  text-decoration: none;
}

.app-welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px;
  color: #fff;
  background: linear-gradient(110deg, #173b8f, #2563eb 65%, #4f46e5);
  border-radius: var(--app-radius);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.18);
}

.app-welcome-card__eyebrow {
  margin-bottom: 7px;
  color: #bfdbfe;
}

.app-welcome-card h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.app-welcome-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.app-button--primary {
  color: #fff;
  background: var(--app-primary);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.app-button--primary:hover,
.app-button--primary:focus {
  color: #fff;
  background: var(--app-primary-dark);
  text-decoration: none;
}

.app-welcome-card .app-button--primary {
  color: #1e3a8a;
  background: #fff;
  box-shadow: none;
}

.app-welcome-card .app-button--primary:hover,
.app-welcome-card .app-button--primary:focus {
  color: #172554;
  background: #eff6ff;
}

.app-button--secondary {
  color: #475467;
  background: #fff;
  border-color: var(--app-border);
}

.app-button--secondary:hover,
.app-button--secondary:focus {
  color: var(--app-text);
  background: #f8fafc;
  border-color: #cbd5e1;
  text-decoration: none;
}

.app-page-heading__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-table-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.app-table-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf0f4;
}

.app-table-card__header h2 {
  margin: 0 0 5px;
  color: var(--app-text);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.app-table-card__header p {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 12px;
}

.app-table-card__body {
  padding: 24px;
}

.app-visibility-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  color: var(--app-text);
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
}

.app-visibility-option input[type="checkbox"] {
  position: static;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.app-visibility-option span {
  min-width: 0;
}

.app-contract-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #f8fafc;
}

.app-contract-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.app-contract-logo-preview span {
  padding: 4px;
  color: var(--app-text-muted);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.app-mobile-user-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: var(--app-primary);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 750;
}

.app-mobile-user-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-catalog-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: var(--app-primary);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  vertical-align: middle;
}

.app-catalog-logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.app-catalog-file-preview {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 4px;
  overflow: hidden;
  max-width: 240px;
  max-height: 160px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #f8fafc;
  vertical-align: middle;
}

.app-catalog-file-preview img {
  display: block;
  max-width: 230px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.app-table-card__body > .row {
  margin-right: 0;
  margin-left: 0;
}

.app-table-card__body > .row > [class*="col-"] {
  padding-right: 8px;
  padding-left: 8px;
}

.app-table-card__body > .row:first-child {
  margin-top: 0;
}

.app-table-card__body > .row:last-child {
  margin-bottom: 0;
}

.app-form-context-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
  padding: 14px 18px;
  color: var(--app-text-muted);
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  font-size: 13px;
}

.app-form-context-note strong {
  color: var(--app-text);
  font-size: 13px;
}

.app-table-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 19px 24px;
  background: #fbfcfe;
  border-bottom: 1px solid #edf0f4;
}

.app-filter-field {
  flex: 1 1 150px;
  min-width: 130px;
}

.app-filter-field--search {
  flex-basis: 240px;
}

.app-filter-field--range {
  flex-basis: 280px;
  min-width: 260px;
}

.app-filter-field--direction,
.app-filter-field--per-page {
  flex-basis: 115px;
  min-width: 105px;
}

.app-filter-field label {
  display: block;
  margin-bottom: 6px;
  color: #475467;
  font-size: 11px;
  font-weight: 750;
}

.app-filter-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.app-filter-label-row label {
  margin-bottom: 0;
}

.app-filter-help {
  padding: 0;
  color: #667085;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: help;
}

.app-filter-help:hover,
.app-filter-help:focus {
  color: var(--app-primary);
}

.app-filter-help:focus {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.app-filter-field .form-control {
  min-height: 39px;
  background: #fff;
  font-size: 12px;
}

.app-filter-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}

.app-filter-range > .form-control {
  min-width: 0;
  width: 100%;
}

.app-filter-field .app-select-search.bootstrap-select,
.form-group .app-select-search.bootstrap-select,
.form-builder-condition .app-select-search.bootstrap-select {
  display: block !important;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100% !important;
}

.app-select-search.bootstrap-select > .dropdown-toggle {
  display: flex;
  float: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.4;
}

.app-filter-field .app-select-search.bootstrap-select > .dropdown-toggle {
  min-height: 39px;
  font-size: 12px;
}

.app-select-search.bootstrap-select > .dropdown-toggle:hover,
.app-select-search.bootstrap-select.open > .dropdown-toggle,
.app-select-search.bootstrap-select > .dropdown-toggle:focus {
  color: #344054;
  background: #fff;
  border-color: var(--app-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.app-select-search.bootstrap-select > .dropdown-toggle .filter-option {
  position: static;
  display: block;
  width: auto;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-select-search.bootstrap-select > .dropdown-toggle .bs-caret {
  position: static;
  margin-left: 10px;
}

.app-select-search.bootstrap-select > .dropdown-toggle .caret {
  color: #667085;
}

.app-select-search.bootstrap-select .dropdown-menu {
  z-index: 1100;
  min-width: 100%;
  padding: 6px 0;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.app-select-search.bootstrap-select .bs-searchbox {
  padding: 7px 9px;
}

.app-select-search.bootstrap-select .bs-searchbox .form-control {
  min-height: 38px;
  padding: 8px 10px;
  border-color: var(--app-border);
  border-radius: 7px;
  box-shadow: none;
  font-size: 12px;
}

.app-select-search.bootstrap-select .bs-searchbox .form-control:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.app-select-search.bootstrap-select .dropdown-menu > .inner > li > a {
  padding: 9px 13px;
  color: #344054;
  font-size: 12px;
}

.app-select-search.bootstrap-select .dropdown-menu > .inner > li > a:hover,
.app-select-search.bootstrap-select .dropdown-menu > .inner > li.active > a,
.app-select-search.bootstrap-select .dropdown-menu > .inner > li.selected > a {
  color: #1d4ed8;
  background: #eff6ff;
}

.app-select-search.bootstrap-select .dropdown-menu .no-results {
  margin: 0 9px;
  padding: 9px 10px;
  color: #667085;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 11px;
  white-space: normal;
}

.app-table-filters__actions {
  display: flex;
  gap: 7px;
}

.app-table-filters__actions .app-button {
  min-height: 39px;
  padding: 9px 14px;
  font-size: 12px;
}

.app-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 17px 24px 0;
}

.app-table-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.app-table-toolbar__actions form {
  margin: 0;
}

.app-table-summary {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 12px;
}

.app-table-card .table-responsive {
  margin-top: 13px;
}

.app-table-card .table {
  margin-bottom: 0;
  border: 0;
}

.app-table-card .table > thead > tr > th:first-child,
.app-table-card .table > tbody > tr > td:first-child {
  padding-left: 24px;
}

.app-table-card .table > thead > tr > th:last-child,
.app-table-card .table > tbody > tr > td:last-child {
  padding-right: 24px;
}

.app-table-card .table > thead > tr > th {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 0;
  white-space: nowrap;
}

.app-table-card .table > tbody > tr > td {
  padding-top: 14px;
  padding-bottom: 14px;
  vertical-align: middle;
}

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

.app-table-actions {
  white-space: nowrap;
}

.app-table-actions .btn {
  margin-left: 3px;
}

.app-inline-form {
  display: inline;
}

.app-table-actions .btn-xs {
  padding: 5px 8px;
  font-size: 11px;
}

.app-table-actions .app-table-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 30px;
  padding: 4px;
}

.app-table-actions .app-table-action-group {
  display: inline-flex;
  vertical-align: middle;
}

.app-table-actions .app-table-action-group .btn {
  margin-left: 0;
  border-radius: 0;
}

.app-table-actions .app-table-action-group > * + * {
  margin-left: -1px;
}

.app-table-actions .app-table-action-group > :first-child,
.app-table-actions .app-table-action-group > :first-child .btn {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.app-table-actions .app-table-action-group > :last-child,
.app-table-actions .app-table-action-group > :last-child .btn {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.app-table-action-label {
  display: none;
}

.app-device-notification {
  margin-top: 6px;
  white-space: nowrap;
}

.app-notification-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: help;
}

.app-notification-status:focus {
  outline: 2px solid rgba(37, 99, 235, .3);
  outline-offset: 3px;
}

.app-notification-status__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
}

.app-notification-status--ready {
  color: #047857;
}

.app-notification-status--unavailable {
  color: #98a2b3;
}

.app-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  vertical-align: middle;
}

.app-badge--info {
  color: #1d4ed8;
  background: #dbeafe;
}

.app-badge--warning {
  color: #b45309;
  background: #fef3c7;
}

.app-badge--success {
  color: #047857;
  background: #d1fae5;
}

.app-badge--muted {
  color: #667085;
  background: #f2f4f7;
}

.app-table-empty {
  display: grid;
  gap: 5px;
  padding: 34px 15px;
  color: var(--app-text-muted);
  text-align: center;
}

.app-table-empty strong {
  color: var(--app-text);
  font-size: 13px;
}

.app-table-empty span {
  font-size: 12px;
}

.app-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px 20px;
  border-top: 1px solid #edf0f4;
}

.app-table-pagination nav {
  margin-left: auto;
}

.pagination.app-pagination {
  margin: 0;
}

.pagination.app-pagination > li > a,
.pagination.app-pagination > li > span {
  min-width: 32px;
  padding: 7px 9px;
  color: #475467;
  background: #fff;
  border-color: var(--app-border);
  font-size: 11px;
  text-align: center;
}

.pagination.app-pagination > li > a:hover,
.pagination.app-pagination > li > a:focus {
  color: var(--app-primary);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.pagination.app-pagination > .active > span {
  color: #fff;
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.pagination.app-pagination > .disabled > span,
.pagination.app-pagination > .disabled > a {
  color: #98a2b3;
  background: #f8fafc;
}

body.app-page .table {
  background: #fff;
  border-color: var(--app-border);
  border-radius: 10px;
}

body.app-page .table > thead > tr > th {
  color: #475467;
  background: #f8fafc;
  border-bottom-color: var(--app-border);
  font-size: 12px;
  font-weight: 750;
}

body.app-page .table > tbody > tr > td {
  border-top-color: #edf0f4;
  color: #344054;
  font-size: 13px;
}

body.app-page .alert {
  border-radius: 10px;
}

body.app-page .form-control {
  min-height: 42px;
  padding: 9px 12px;
  border-color: var(--app-border);
  border-radius: 8px;
  box-shadow: none;
}

body.app-page .form-control:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.app-page .btn {
  border-radius: 8px;
  font-weight: 600;
}

body.app-page .panel {
  border-color: var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

body.app-page .panel-heading {
  color: var(--app-text);
  background: #f8fafc;
  border-bottom-color: var(--app-border);
  border-radius: var(--app-radius) var(--app-radius) 0 0;
}

@media (max-width: 767px) {
  .app-sidebar {
    left: calc(var(--app-sidebar-width) * -1);
    transition: left 180ms ease;
  }

  .app-sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1025;
    background: rgba(15, 23, 42, 0.42);
  }

  .app-sidebar-open .app-sidebar {
    left: 0;
  }

  .app-sidebar-open .app-sidebar-overlay {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar {
    left: 0;
    padding: 0 18px;
  }

  .app-menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .app-topbar__context {
    margin-right: auto;
    margin-left: 14px;
  }

  .app-topbar__profile {
    display: none;
  }

  body.app-page .app-main > .container,
  body.app-page .app-main > .container-fluid {
    padding-top: 24px !important;
    padding-right: 18px;
    padding-bottom: 28px;
    padding-left: 18px;
  }

  .app-page-heading h1 {
    font-size: 26px;
  }

  .app-welcome-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .app-button {
    width: 100%;
  }

  .app-page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .app-page-heading__actions,
  .app-page-heading__actions .app-button {
    width: 100%;
  }

  .app-menu-editor {
    grid-template-columns: 1fr;
  }

  .app-menu-editor__panel,
  .app-menu-editor__reset {
    padding: 18px;
  }

  .app-menu-editor__row {
    grid-template-columns: 1fr;
  }

  .app-menu-editor__row-settings,
  .app-menu-editor__row-actions {
    justify-content: flex-start;
  }

  .app-menu-editor__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-menu-editor__row-settings {
    grid-template-columns: minmax(120px, 1fr) 200px max-content;
  }

  .app-menu-editor__row-actions .app-menu-editor__move {
    flex: 1;
  }

  .app-menu-editor__row-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-menu-editor__icon-control {
    width: 100%;
    max-width: 260px;
    flex-basis: 220px;
  }

  .app-menu-editor__reset {
    align-items: stretch;
    flex-direction: column;
  }

  .app-menu-editor__reset .app-button {
    width: 100%;
  }

  .app-table-card__header,
  .app-table-filters,
  .app-table-toolbar,
  .app-table-pagination {
    padding-right: 18px;
    padding-left: 18px;
  }

  .app-table-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .app-filter-field,
  .app-filter-field--search,
  .app-filter-field--range,
  .app-filter-field--direction,
  .app-filter-field--per-page {
    min-width: 0;
  }

  .app-filter-field--search,
  .app-filter-field--range,
  .app-table-filters__actions {
    grid-column: 1 / -1;
  }

  .app-table-filters__actions .app-button {
    width: auto;
    flex: 1;
  }

  .app-table-actions .app-table-action-icon {
    width: auto;
    min-width: 32px;
    height: 32px;
    padding: 5px 8px;
  }

  .app-table-actions .app-table-action-label {
    display: inline;
    margin-left: 5px;
  }

  .app-table-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-table-pagination nav {
    margin-left: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .app-menu-editor__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-menu-editor__row-actions {
    justify-content: flex-start;
  }
}

.task-gps-card {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  background: #f8fafc;
}

.task-gps-card__title {
  margin-top: 0;
  margin-bottom: 4px;
}

.task-gps-card__description,
.task-gps-map__hint {
  color: var(--app-text-muted);
  font-size: 12px;
}

.task-gps-card__coordinates {
  margin-top: 14px;
}

.task-gps-card__coordinates dl {
  margin-bottom: 0;
}

.task-gps-card__coordinates code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.task-gps-map {
  margin-top: 16px;
}

.task-gps-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
  color: #475467;
  font-size: 12px;
}

.task-gps-map__legend-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
  vertical-align: -1px;
}

.task-gps-map__legend-marker--start {
  background: #15803d;
}

.task-gps-map__legend-marker--end {
  background: #dc2626;
}

.task-gps-map__legend-marker--mobile {
  background: #2563eb;
}

.task-gps-map__canvas {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #e8eef5;
}

.task-gps-map__status {
  margin-bottom: 8px;
  color: #475467;
  font-size: 12px;
}

.task-gps-map__status--error {
  color: #9f1239;
}

.task-gps-map__hint {
  margin-top: 8px;
  margin-bottom: 0;
}

.task-gps-map__unavailable {
  margin-top: 14px;
  padding: 12px;
  color: #667085;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.mobile-location-map__canvas {
  min-height: 420px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
}

.mobile-location-history-card .mobile-location-map__canvas {
  margin: 0 1.25rem 1.25rem;
}

.mobile-location-history-card__summary {
  display: grid;
  gap: 4px;
  margin: 14px 0 16px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.mobile-location-history-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mobile-location-history-card__heading h2 {
  margin-top: 0;
}

.mobile-location-history-card__summary-label {
  color: #65758b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mobile-location-history-card__summary .app-badge {
  margin-left: 0;
}

.mobile-location-history-card__events {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.mobile-location-history-event {
  padding: 12px 0;
  border-top: 1px solid #e5eaf0;
}

.mobile-location-history-event:first-child {
  padding-top: 0;
  border-top: 0;
}

.mobile-location-history-event__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mobile-location-history-event .app-badge {
  flex: 0 0 auto;
  margin-left: 0;
}

.mobile-location-history-event small {
  display: block;
  margin-top: 4px;
}

.mobile-location-history-event__coordinates {
  color: #475467;
  overflow-wrap: anywhere;
}

.mobile-location-map__avatar-icon {
  border: 0;
  background: transparent;
}

.mobile-location-map__avatar-marker {
  position: relative;
  display: block;
  width: 48px;
  height: 56px;
}

.mobile-location-map__avatar-marker::after {
  position: absolute;
  z-index: 1;
  bottom: 2px;
  left: 18px;
  width: 12px;
  height: 12px;
  content: '';
  transform: rotate(45deg);
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  background: #2563eb;
  box-shadow: 2px 2px 4px rgba(15, 23, 42, 0.25);
}

.mobile-location-map__avatar-frame {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.32);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.mobile-location-map__avatar-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-location-map__task-link {
  display: inline-block;
  margin: 2px 0;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-location-map__task-link:hover,
.mobile-location-map__task-link:focus {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e40af;
  text-decoration: none;
}

@media (max-width: 767px) {
  .task-gps-card {
    padding: 14px;
  }

  .task-gps-map__canvas {
    min-height: 260px;
  }

  .mobile-location-history-card__events {
    max-height: none;
  }
}

.mobile-location-monitor-card {
  overflow: visible;
}

.mobile-location-monitor__selection-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px 16px;
  padding: 0 1.25rem 14px;
}

.mobile-location-monitor__search-label {
  grid-column: 1 / -1;
  margin-bottom: -6px;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.mobile-location-monitor__selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-location-monitor__user-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 260px;
  overflow: auto;
  margin: 0 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.mobile-location-monitor__user-list > .app-table-empty {
  grid-column: 1 / -1;
}

.mobile-location-monitor__user {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  cursor: pointer;
}

.mobile-location-monitor__user[hidden] {
  display: none !important;
}

.mobile-location-monitor__user input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: #2563eb;
}

.mobile-location-monitor__user-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mobile-location-monitor__user-copy strong,
.mobile-location-monitor__user-copy small {
  overflow-wrap: anywhere;
}

.mobile-location-monitor__user-copy strong {
  color: #1f2937;
  font-size: 13px;
}

.mobile-location-monitor__user-copy small {
  color: #667085;
  font-size: 11px;
  font-weight: 400;
}

.mobile-location-monitor__selection-summary {
  margin: 10px 1.25rem 0;
  color: #667085;
  font-size: 12px;
}

.mobile-location-monitor__map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-location-monitor__progress {
  height: 5px;
  overflow: hidden;
  margin: 0 1.25rem 10px;
  border-radius: 999px;
  background: #e7edf5;
}

.mobile-location-monitor__progress [data-mobile-location-progress] {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.mobile-location-monitor__status,
.mobile-location-monitor__empty {
  min-height: 18px;
  margin: 0 1.25rem 8px;
  color: #667085;
  font-size: 12px;
}

.mobile-location-monitor__status.is-error {
  color: #9f1239;
}

.mobile-location-monitor__empty {
  padding: 8px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

@media (max-width: 767px) {
  .mobile-location-monitor__selection-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-location-monitor__search-label {
    grid-column: auto;
  }

  .mobile-location-monitor__user-list {
    grid-template-columns: minmax(0, 1fr);
    max-height: 300px;
  }

  .mobile-location-monitor__map-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-location-map__canvas {
    min-height: 300px;
  }
}
