/* Complete, readable content. Long rows are paged by their measured height. */
body.app-loading .app-shell {
  visibility: hidden;
}
body.app-loading::after {
  content: "Открываем рабочее пространство…";
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.brand-name,
.brand-caption {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.brand-caption {
  line-height: 1.35;
}
.workspace-copy b {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.4;
}
.workspace-switcher {
  height: auto;
  min-height: 52px;
}
.nav-label {
  letter-spacing: 0.08em;
}
.header-title {
  font-size: 18px;
  line-height: 1.25;
}
.topbar {
  flex-shrink: 0;
}
[data-table] th,
[data-table] td {
  height: auto;
  min-height: 48px;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  line-height: 1.5;
  vertical-align: middle;
}
[data-table] th {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.35;
}
[data-table] td {
  padding-top: 12px;
  padding-bottom: 12px;
}
.table-toolbar {
  height: auto !important;
  min-height: 40px;
}
.table-toolbar h3 {
  white-space: normal;
  line-height: 1.5;
}
.person-cell b,
.person-cell small,
.people-wrap,
.inventory-muted,
.inventory-link {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
}
.person-cell > div {
  min-width: 0;
}
.person-cell {
  align-items: center;
}
.person-cell b {
  line-height: 1.4;
}
.person-cell small {
  line-height: 1.4;
}
.row-action-cell .button:first-child {
  max-width: none;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.row-action-cell .button {
  font-size: 10px !important;
}
.table-row-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 6px;
}
.table-row-summary b {
  white-space: normal;
  overflow-wrap: anywhere;
}
.table-row-summary .button {
  flex-shrink: 0;
}
.friendly-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.friendly-details .report-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 42px;
  line-height: 1.6;
}
.friendly-details .report-item > span {
  flex: 0 0 32%;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.friendly-details .report-item > div {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.settings-form > p {
  font-size: 12px;
  line-height: 1.6;
}
.workspace-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.field label {
  line-height: 1.5;
}
.dialog-scroll .report-item {
  white-space: normal;
  line-height: 1.6;
}
.global-search input {
  min-width: 0;
}
@media (max-width: 650px) {
  .header-title {
    font-size: 16px;
  }
  .mobile-detail-cell {
    width: 94px !important;
    white-space: nowrap !important;
  }
  .mobile-detail-cell .button {
    white-space: normal !important;
  }
  .friendly-details .report-item {
    gap: 10px;
  }
  .brand-name {
    font-size: 16px;
  }
  [data-table] td {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .person-cell small {
    font-size: 11px;
  }
  .header-actions {
    max-width: 96px;
  }
}
@media (max-width: 400px) {
  .topbar[data-view="inventory"] .header-actions .button:first-child {
    font-size: 0;
  }
  .header-title {
    font-size: 15px;
  }
}

.tool-window .button {
  white-space: normal !important;
  line-height: 1.25;
  min-width: 38px;
}
.header-actions {
  overflow: visible !important;
}
.header-actions .button {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.global-search input {
  min-width: 0;
}
.filter-value-caption {
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.sidebar-bottom .profile-mini b {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.4;
}
@media (max-width: 370px) {
  .topbar-main {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    row-gap: 2px;
    padding: 5px 0;
  }
  .header-title {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .topbar-actions {
    grid-column: 1/-1;
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
  .topbar .global-search:focus-within {
    top: 38px;
  }
}
.row-action-cell .button:last-child,
.mobile-detail-cell .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  max-width: none !important;
  white-space: nowrap !important;
  word-break: normal;
  overflow-wrap: normal;
  font-size: 11px !important;
  padding: 6px 8px !important;
  line-height: 1.3;
}
.sidebar > .sidebar-close {
  align-self: flex-end;
  flex-shrink: 0;
  margin: 0 0 8px;
}
.workspace-copy {
  flex: 1;
  min-width: 0;
}
.header-actions .button::before {
  content: none !important;
}
@media (max-width: 650px) {
  .header-actions .button-primary {
    font-size: 10px !important;
    width: auto;
  }
  .header-actions .button[data-icon="+"] {
    font-size: 17px !important;
    width: 30px;
    min-width: 30px;
    padding: 5px !important;
    line-height: 1;
  }
}
@media (max-height: 430px) {
  body.desk-panel .view-overview > .metric-grid {
    display: none;
  }
}

/* Account actions share an identity summary rather than a toolbar of buttons. */
.account-profile {
  display: grid;
  gap: 18px;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.account-identity > div {
  min-width: 0;
}
.account-identity-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  font-size: 19px;
  font-weight: 650;
}
.account-identity-avatar svg {
  width: 28px;
  height: 28px;
}
.account-identity h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.account-identity p {
  margin: 0;
  color: var(--muted);
}
.account-login {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.account-workspace {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  color: var(--muted);
}
.account-workspace svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.account-actions,
.workspace-picker {
  display: grid;
  gap: 7px;
}
.account-action,
.workspace-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font: inherit;
  transition: background 120ms, border-color 120ms;
}
.account-action:hover,
.workspace-picker-item:hover {
  background: var(--bg);
}
.account-action:focus-visible,
.workspace-picker-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.account-action-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.account-action-icon svg {
  width: 20px;
  height: 20px;
}
.account-action-copy,
.workspace-picker-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.account-action b,
.workspace-picker-item b {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.account-action small,
.workspace-picker-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.account-action-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 22px;
  flex-shrink: 0;
}
.account-exit {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.account-exit .account-action-icon {
  color: var(--muted);
}
.workspace-picker-caption {
  margin: 0 0 8px;
  color: var(--muted);
}
.workspace-picker-item {
  border-color: var(--line);
}
.workspace-picker-item.selected {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.workspace-picker-check {
  width: 20px;
  color: var(--accent);
  text-align: center;
  flex-shrink: 0;
}
.top-avatar.is-login {
  width: auto;
  min-width: 68px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 12px;
}
.auth-password-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.auth-password-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.auth-password-control input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.auth-password-toggle {
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.auth-password-toggle:hover {
  color: var(--accent);
}
.auth-back {
  display: inline-flex;
  margin: 17px 0 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.auth-back:hover {
  text-decoration: underline;
}
.auth-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}
.auth-back:disabled {
  color: var(--muted);
  cursor: default;
}
.directory-only .global-search,
.directory-only #notificationButton {
  display: none !important;
}
.directory-only [data-table="people.directory"] .people-contacts-col {
  text-align: left;
}
.directory-only [data-table="people.directory"] .people-contacts {
  align-items: flex-start;
}
@media (min-width: 651px) {
  .directory-only [data-table="people.directory"] .people-contacts-col {
    width: min(32%, 380px) !important;
  }
  .directory-only [data-table="people.directory"] .people-department-col {
    width: 30% !important;
  }
}
@media (max-width: 650px) {
  .account-identity-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
  .account-identity h3 {
    font-size: 16px;
  }
  .account-action {
    padding: 10px 7px;
  }
  .auth-password-control input {
    font-size: 16px;
  }
}
