:root {
  --office-bg: #eef4fb;
  --office-dark: #0f172a;
  --office-muted: #64748b;
  --office-card: #ffffff;
  --office-line: #dbe4f0;
  --office-blue: #2563eb;
  --office-green: #16a34a;
  --office-red: #ef4444;
  --office-soft: #f8fafc;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--office-dark);
  background:
    radial-gradient(circle at 8% 18%, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 92% 76%, rgba(34, 197, 94, 0.22), transparent 25%),
    var(--office-bg);
  overflow-x: hidden;
}

.office-bg {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(35px);
  opacity: 0.55;
  pointer-events: none;
}

.office-bg-one {
  left: -130px;
  top: 110px;
  background: rgba(37, 99, 235, 0.20);
}

.office-bg-two {
  right: -90px;
  bottom: 20px;
  background: rgba(34, 197, 94, 0.24);
}

.office-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #0b1324;
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.office-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  min-width: 220px;
}

.office-logo {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.office-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.office-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
}

.office-nav a:hover,
.office-nav a.active {
  color: #ffffff;
}

.office-nav .office-admin-link {
  padding: 9px 14px;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.25);
}

.office-session {
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-session-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
}

.office-session-box b {
  color: #fff;
}

.office-session button,
.office-session a {
  border: 0;
  cursor: pointer;
  border-radius: 11px;
  padding: 9px 13px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  background: #ef4444;
}

#officeLoginTopBtn {
  background: #2563eb;
}

.office-page {
  width: min(1480px, calc(100vw - 88px));
  margin: 0 auto;
  padding: 74px 0 88px;
}

.office-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.office-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--office-blue);
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 14px;
}

.office-hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.office-hero p {
  margin: 12px 0 0;
  color: var(--office-muted);
  font-size: 16px;
  font-weight: 650;
}

.office-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 13px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.office-root {
  min-height: 420px;
}

.office-panel {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 30px;
  background: rgba(248, 250, 252, 0.92);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  padding: 32px;
}

.office-dashboard {
  display: grid;
  gap: 18px;
}

.office-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 30%, rgba(34, 197, 94, 0.16), transparent 26%),
    linear-gradient(135deg, #eff6ff, #f0fdf4);
}

.office-dashboard-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.office-dashboard-head p {
  margin: 8px 0 0;
  color: var(--office-muted);
  font-weight: 700;
}

.office-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.office-status {
  font-size: 13px;
  font-weight: 900;
  color: #15803d;
}

.office-btn {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 950;
  color: #fff;
  background: var(--office-blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.office-btn.green {
  background: var(--office-green);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.22);
}

.office-btn.ghost {
  background: #e2e8f0;
  color: #334155;
  box-shadow: none;
}

.office-btn.full {
  width: 100%;
}

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

.office-stat {
  background: #fff;
  border: 1px solid var(--office-line);
  border-radius: 18px;
  padding: 18px;
}

.office-stat span {
  display: block;
  color: var(--office-muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.office-stat b {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.office-tabs {
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--office-line);
  border-radius: 18px;
  background: #edf2f7;
}

.office-tab {
  border: 0;
  cursor: pointer;
  min-height: 39px;
  padding: 0 18px;
  border-radius: 13px;
  background: transparent;
  color: #334155;
  font-weight: 950;
}

.office-tab.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.office-pane {
  display: none;
}

.office-pane.active {
  display: block;
}

.office-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 18px;
}

.office-card {
  background: #fff;
  border: 1px solid var(--office-line);
  border-radius: 22px;
  padding: 22px;
}

.office-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.office-card p {
  margin: 0 0 16px;
  color: var(--office-muted);
  font-weight: 650;
}

.office-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.office-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  background: #f8fafc;
}

.office-activity-list,
.office-table-scroll {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.office-activity-item,
.office-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.office-activity-item b,
.office-row b {
  display: block;
  font-size: 14px;
}

.office-activity-item span,
.office-row span {
  display: block;
  margin-top: 4px;
  color: var(--office-muted);
  font-size: 12px;
  font-weight: 700;
}

.office-activity-item time,
.office-row time {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.office-empty {
  color: var(--office-muted);
  font-weight: 750;
  padding: 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.office-auth-card {
  width: min(900px, 100%);
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  padding: 32px;
}

.office-auth-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.office-auth-head h2 {
  margin: 0;
  font-size: 30px;
}

.office-auth-head p {
  margin: 8px 0 0;
  color: var(--office-muted);
  font-weight: 650;
}

.office-auth-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: #eef3f9;
  height: max-content;
}

.office-auth-tab {
  border: 0;
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 950;
  background: transparent;
  color: #334155;
}

.office-auth-tab.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.office-auth-form {
  display: none;
}

.office-auth-form.active {
  display: grid;
  gap: 12px;
}

.office-auth-form label {
  font-weight: 900;
  color: #1e293b;
}

.office-message {
  min-height: 22px;
  font-weight: 850;
  color: var(--office-muted);
}

.office-message.error {
  color: #dc2626;
}

.office-message.success {
  color: #16a34a;
}

.office-loading {
  color: var(--office-muted);
  font-weight: 850;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
}

.office-toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: none;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: #0f172a;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.25);
}

.office-toast.show {
  display: block;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .office-topbar {
    padding: 0 18px;
    gap: 14px;
  }

  .office-brand {
    min-width: auto;
  }

  .office-nav {
    gap: 12px;
  }

  .office-page {
    width: calc(100vw - 32px);
    padding-top: 48px;
  }

  .office-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-hero h1 {
    font-size: 34px;
  }

  .office-stats,
  .office-grid {
    grid-template-columns: 1fr;
  }

  .office-form-row {
    grid-template-columns: 1fr;
  }

  .office-auth-head {
    flex-direction: column;
  }
}


/* AURELION_OFFICE_HIDE_BACK_BUTTON_START */
.office-back {
  display: none !important;
}
/* AURELION_OFFICE_HIDE_BACK_BUTTON_END */


/* AURELION_OFFICE_BELL_UPDATED_TIME_TG_RIGHT_START */
.office-status-block {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.office-status-time {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.office-notification-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.20);
  transition: transform 0.15s ease, background 0.15s ease;
}

.office-notification-bell:hover {
  background: rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

.office-notification-bell.has-notification {
  background: rgba(37, 99, 235, 0.34);
}

.office-notification-bell i {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px #0b1324;
  display: none;
}

.office-notification-bell i.show {
  display: block;
}

.office-toast {
  right: 190px;
  top: 78px;
  bottom: auto;
  z-index: 120;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.25);
}

/* Поддержка Telegram остаётся снизу справа */
.telegram-support-floating,
.telegram-support-link,
.telegram-support-button,
.aurelion-telegram-safe-with-icon,
.aurelion-exact-telegram-button,
a[href*="t.me/AurelionSupportBot"] {
  right: 28px !important;
  left: auto !important;
  bottom: 24px !important;
}
/* AURELION_OFFICE_BELL_UPDATED_TIME_TG_RIGHT_END */


/* AURELION_OFFICE_PROFILE_TABS_2FA_START */
.office-main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--office-line);
  border-radius: 18px;
  background: #edf2f7;
}

.office-main-tab {
  border: 0;
  cursor: pointer;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 13px;
  background: transparent;
  color: #334155;
  font-weight: 950;
}

.office-main-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.office-main-pane {
  display: none;
}

.office-main-pane.active {
  display: block;
}

.office-overview-grid {
  display: grid;
  gap: 18px;
}

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

.office-profile-summary img {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  object-fit: cover;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.30);
}

.office-profile-summary h3 {
  margin: 0 0 4px;
  font-size: 24px;
}

.office-profile-summary p {
  margin: 0 0 6px;
}

.office-profile-summary span {
  color: var(--office-muted);
  font-weight: 800;
}

.office-required-profile {
  margin-bottom: 22px;
}

.office-required-profile h2 {
  margin: 8px 0;
  font-size: 32px;
}

.office-profile-form {
  display: grid;
  gap: 16px;
}

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

.office-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
}

.office-profile-meta b {
  color: #0f172a;
}

.office-avatar-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.office-avatar-choice {
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 18px;
  padding: 5px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24);
}

.office-avatar-choice:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

.office-avatar-choice.selected {
  border-color: var(--office-blue);
  background: #eff6ff;
}

.office-avatar-choice img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.office-history-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.office-mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: #eef3f9;
}

.office-mode-switch button {
  border: 0;
  cursor: pointer;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  font-weight: 950;
}

.office-mode-switch button.active {
  background: #2563eb;
  color: #fff;
}

.office-history-scroll {
  max-height: 620px;
}

.office-history-lite-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #f8fafc;
}

.office-history-lite-item b {
  display: block;
  margin-bottom: 6px;
}

.office-history-lite-item p {
  margin: 0;
  color: #334155;
  font-weight: 700;
}

.office-history-lite-item time,
.office-history-lite-item span {
  display: block;
  text-align: right;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.office-full-check {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.office-full-check + .office-full-check {
  margin-top: 12px;
}

.office-full-check summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  font-weight: 950;
}

.office-full-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.office-full-main div,
.office-provider-grid div {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
}

.office-full-main b,
.office-provider-grid b {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.office-provider-calls {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.office-provider-call {
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #fbfdff;
  padding: 14px;
}

.office-provider-call-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.office-provider-call-head b {
  color: #1d4ed8;
}

.office-provider-call-head span {
  color: #64748b;
  font-weight: 850;
}

.office-provider-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.office-provider-error {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 850;
}

.office-provider-call pre,
.office-full-check pre {
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  white-space: pre-wrap;
}

.office-2fa-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 950;
  margin-bottom: 16px;
}

.office-2fa-status.enabled {
  background: #dcfce7;
  color: #166534;
}

.office-secret-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  margin-bottom: 14px;
}

.office-secret-box code {
  display: block;
  user-select: all;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 950;
  word-break: break-all;
}

.office-2fa-setup details {
  margin-bottom: 14px;
}

.office-backup-codes {
  display: grid;
  gap: 12px;
}

.office-backup-codes div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.office-backup-codes code {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-weight: 950;
  user-select: all;
}

.office-session-box img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: cover;
}

.office-notification-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.20);
}

.office-notification-bell i {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px #0b1324;
  display: none;
}

.office-notification-bell i.show {
  display: block;
}

.office-toast {
  right: 190px;
  top: 78px;
  bottom: auto;
}

.telegram-support-floating,
.telegram-support-link,
.telegram-support-button,
.aurelion-telegram-safe-with-icon,
.aurelion-exact-telegram-button,
a[href*="t.me/AurelionSupportBot"] {
  right: 28px !important;
  left: auto !important;
  bottom: 24px !important;
}

@media (max-width: 1100px) {
  .office-two-cols,
  .office-full-main,
  .office-provider-grid,
  .office-backup-codes div {
    grid-template-columns: 1fr;
  }

  .office-avatar-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .office-history-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* AURELION_OFFICE_PROFILE_TABS_2FA_END */


/* AURELION_OFFICE_TIMER_HEIGHT_LITE_FULL_CARDS_START */

/* Одинаковая высота вкладок, чтобы экран не прыгал */
.office-dashboard {
  min-height: 790px;
}

.office-main-pane {
  min-height: 610px;
}

.office-main-pane > .office-card,
.office-main-pane > .office-grid,
.office-overview-grid {
  min-height: 610px;
}

.office-grid > .office-card {
  min-height: 430px;
}

.office-history-scroll,
.office-admin-full-list {
  min-height: 535px;
  max-height: 535px;
  overflow: auto;
  padding-right: 4px;
}

.office-activity-list {
  min-height: 420px;
  max-height: 420px;
}

/* Таймер оплаты */
.office-topup-row.waiting {
  align-items: start;
}

.office-payment-countdown,
.office-payment-done {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 950;
}

.office-payment-countdown {
  color: #2563eb;
}

.office-payment-countdown.expired {
  color: #dc2626;
}

.office-payment-done {
  color: #16a34a;
}

/* Lite-отчёт как строка из софта */
.office-history-lite-copy {
  grid-template-columns: minmax(0, 1fr) 145px;
  align-items: start;
}

.office-lite-report-text {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 850;
}

.office-lite-report-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.office-lite-report-meta time,
.office-lite-report-meta span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

/* Full-отчёт в стиле админских карточек */
.office-admin-full-list {
  display: grid;
  gap: 14px;
}

.office-admin-full-card {
  border: 1px solid #bfdbfe;
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.office-admin-full-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
}

.office-admin-full-head h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.office-admin-full-head time {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.office-admin-full-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.office-admin-full-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.office-admin-full-chips span.good {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.office-admin-full-chips span.bad {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.office-admin-full-chips span.neutral {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.office-admin-full-result {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.office-admin-full-result span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.office-admin-full-result b {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 950;
}

.office-admin-full-used {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.office-admin-full-used > b {
  color: #334155;
  font-size: 13px;
  font-weight: 950;
}

.office-admin-full-used > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.office-provider-used-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.office-provider-used-badge em {
  font-style: normal;
  padding-left: 7px;
  border-left: 1px solid currentColor;
  opacity: 0.75;
}

.office-provider-used-badge.core {
  border-color: #facc15;
  background: #fef9c3;
  color: #713f12;
}

.office-provider-used-badge.signal {
  border-color: #c4b5fd;
  background: #f3e8ff;
  color: #6d28d9;
}

.office-provider-used-badge.carrier {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
}

.office-provider-used-badge.route {
  border-color: #5eead4;
  background: #ccfbf1;
  color: #0f766e;
}

.office-provider-used-empty {
  color: #64748b;
  font-weight: 850;
}

.office-admin-provider-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.office-admin-provider-card {
  border: 1px solid #cbd5e1;
  border-top: 5px solid #2563eb;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.office-admin-provider-card.core {
  border-top-color: #eab308;
}

.office-admin-provider-card.signal {
  border-top-color: #7c3aed;
}

.office-admin-provider-card.carrier {
  border-top-color: #e11d48;
}

.office-admin-provider-card.route {
  border-top-color: #0d9488;
}

.office-admin-provider-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.office-admin-provider-title b {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.office-admin-provider-title span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
}

.office-admin-provider-card h4 {
  margin: 12px 0 18px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.office-admin-provider-kv {
  display: grid;
  gap: 8px;
}

.office-admin-provider-kv div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: #0f172a;
}

.office-admin-provider-kv span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.office-admin-provider-kv b {
  margin: 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.office-admin-provider-error {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 850;
}

.office-admin-provider-raw {
  margin-top: 12px;
}

.office-admin-provider-raw summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 900;
}

.office-admin-provider-raw pre {
  max-height: 180px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  white-space: pre-wrap;
}

.office-admin-provider-cost {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 950;
}

.office-admin-full-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.office-admin-full-foot b {
  color: #0f172a;
}

@media (max-width: 1100px) {
  .office-dashboard,
  .office-main-pane,
  .office-main-pane > .office-card,
  .office-main-pane > .office-grid,
  .office-overview-grid {
    min-height: auto;
  }

  .office-history-scroll,
  .office-admin-full-list,
  .office-activity-list {
    min-height: 380px;
    max-height: 520px;
  }

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

  .office-admin-full-head,
  .office-admin-full-used {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-history-lite-copy {
    grid-template-columns: 1fr;
  }

  .office-lite-report-meta {
    justify-items: start;
  }

  .office-lite-report-meta time,
  .office-lite-report-meta span {
    text-align: left;
  }
}
/* AURELION_OFFICE_TIMER_HEIGHT_LITE_FULL_CARDS_END */


/* AURELION_OFFICE_FORGOT_PASSWORD_UI_START */
.office-auth-helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 2px;
}

.office-link-button {
  border: 0;
  cursor: pointer;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.office-link-button:hover {
  text-decoration: underline;
}
/* AURELION_OFFICE_FORGOT_PASSWORD_UI_END */


/* AURELION_AUTH_UI_POLISH_SHARED_START */
.office-auth-helper-row {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  margin-top: -4px;
  margin-bottom: 2px;
}

.office-required-star {
  color: #ef4444;
  font-weight: 950;
}

.office-telegram-support-fallback {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0ea5e9;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.28);
}

.office-telegram-support-fallback span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.20);
  font-size: 13px;
}

.office-notification-bell.hidden {
  display: none !important;
}
/* AURELION_AUTH_UI_POLISH_SHARED_END */


/* AURELION_SINGLE_WORKING_TELEGRAM_SUPPORT_START */

/* Скрываем все старые/дублирующие Telegram-кнопки */
.telegram-support-floating:not([data-office-telegram-support="yes"]),
.telegram-support-link:not([data-office-telegram-support="yes"]),
.telegram-support-button:not([data-office-telegram-support="yes"]),
.aurelion-telegram-safe-with-icon:not([data-office-telegram-support="yes"]),
.aurelion-exact-telegram-button:not([data-office-telegram-support="yes"]),
a[href*="t.me/AurelionSupportBot"]:not([data-office-telegram-support="yes"]),
a[href*="telegram"]:not([data-office-telegram-support="yes"]),
button[class*="telegram"]:not([data-office-telegram-support="yes"]),
div[class*="telegram-support"]:not([data-office-telegram-support="yes"]) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Единственная рабочая кнопка */
.office-telegram-support-fallback[data-office-telegram-support="yes"] {
  position: fixed !important;
  right: 28px !important;
  bottom: 24px !important;
  left: auto !important;
  z-index: 99999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: #0ea5e9 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.28) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.office-telegram-support-fallback[data-office-telegram-support="yes"] span {
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.20) !important;
  font-size: 13px !important;
}
/* AURELION_SINGLE_WORKING_TELEGRAM_SUPPORT_END */


/* AURELION_2FA_POLISH_START */

.aurelion-2fa-polished-panel .aurelion-2fa-original-hidden {
  display: none !important;
}

.aurelion-2fa-qr-card {
  display: grid !important;
  grid-template-columns: 1fr 210px !important;
  gap: 18px !important;
  align-items: center !important;
  margin: 14px 0 16px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(236, 253, 245, 0.90)) !important;
}

.aurelion-2fa-qr-title {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
}

.aurelion-2fa-qr-subtitle {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  line-height: 1.45 !important;
}

.aurelion-2fa-steps {
  margin: 12px 0 0 18px !important;
  padding: 0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
}

.aurelion-2fa-qr-box {
  width: 196px !important;
  min-height: 196px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  display: grid !important;
  place-items: center !important;
  padding: 12px !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10) !important;
}

.aurelion-2fa-qr-svg,
.aurelion-2fa-qr-svg svg {
  width: 172px !important;
  height: 172px !important;
  display: block !important;
}

.aurelion-2fa-qr-loading,
.aurelion-2fa-qr-error {
  text-align: center !important;
  color: #64748b !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.aurelion-2fa-details {
  margin: 10px 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
}

.aurelion-2fa-details summary {
  cursor: pointer !important;
  list-style: none !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
}

.aurelion-2fa-details summary::-webkit-details-marker {
  display: none !important;
}

.aurelion-2fa-details summary::before {
  content: "▸" !important;
  display: inline-block !important;
  margin-right: 8px !important;
  color: #2563eb !important;
}

.aurelion-2fa-details[open] summary::before {
  content: "▾" !important;
}

.aurelion-2fa-manual {
  padding: 0 14px 14px !important;
  display: grid !important;
  gap: 10px !important;
}

.aurelion-2fa-manual-title {
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
}

.aurelion-2fa-secret,
.aurelion-2fa-otpauth {
  display: block !important;
  width: 100% !important;
  overflow-wrap: anywhere !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.30) !important;
  padding: 10px 12px !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.aurelion-2fa-copy-secret,
.aurelion-2fa-copy-url {
  height: 38px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

@media (max-width: 900px) {
  .aurelion-2fa-qr-card {
    grid-template-columns: 1fr !important;
  }

  .aurelion-2fa-qr-box {
    width: 100% !important;
  }
}

/* AURELION_2FA_POLISH_END */


/* AURELION_2FA_PLACEMENT_FIX_START */

.aurelion-2fa-polished-panel .aurelion-2fa-original-hidden {
  display: none !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-qr-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 14px 0 16px !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-manual-wrap {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-details {
  width: 100% !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-qr-card + .aurelion-2fa-manual-wrap {
  margin-top: 10px !important;
}

/* AURELION_2FA_PLACEMENT_FIX_END */


/* AURELION_2FA_HIDE_TECHNICAL_LINK_START */

.aurelion-2fa-technical,
.aurelion-2fa-copy-url,
.aurelion-2fa-otpauth {
  display: none !important;
}

/* AURELION_2FA_HIDE_TECHNICAL_LINK_END */


/* AURELION_2FA_FINAL_LAYOUT_START */

.aurelion-2fa-polished-panel .aurelion-2fa-original-hidden {
  display: none !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-top {
  margin: 6px 0 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-description {
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  width: fit-content !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-pill.is-off {
  color: #b91c1c !important;
  background: #fee2e2 !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-pill.is-on {
  color: #166534 !important;
  background: #dcfce7 !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-qr-card,
.aurelion-2fa-polished-panel .aurelion-2fa-manual-wrap,
.aurelion-2fa-polished-panel .aurelion-2fa-code-zone {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-code-zone {
  margin-top: 14px !important;
  display: grid !important;
  gap: 10px !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-code-label {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-code-zone input {
  width: 100% !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-code-zone button {
  width: 100% !important;
}

.aurelion-2fa-technical,
.aurelion-2fa-copy-url,
.aurelion-2fa-otpauth {
  display: none !important;
}

/* AURELION_2FA_FINAL_LAYOUT_END */


/* AURELION_2FA_STABLE_DETAILS_CODE_START */

.aurelion-2fa-polished-panel .aurelion-2fa-original-hidden {
  display: none !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-top {
  margin: 6px 0 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-description {
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  width: fit-content !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-pill.is-off {
  color: #b91c1c !important;
  background: #fee2e2 !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-status-pill.is-on {
  color: #166534 !important;
  background: #dcfce7 !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-qr-card,
.aurelion-2fa-polished-panel .aurelion-2fa-manual-wrap,
.aurelion-2fa-polished-panel .aurelion-2fa-code-zone {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-code-zone {
  margin-top: 14px !important;
  display: grid !important;
  gap: 10px !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-code-label {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-code-input-shell input {
  width: 100% !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-code-button-shell button {
  width: 100% !important;
}

.aurelion-2fa-technical,
.aurelion-2fa-copy-url,
.aurelion-2fa-otpauth {
  display: none !important;
}

/* AURELION_2FA_STABLE_DETAILS_CODE_END */


/* AURELION_2FA_NATIVE_HANDLER_SAFE_START */

.aurelion-2fa-polished-panel .aurelion-2fa-original-hidden {
  display: none !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-qr-card,
.aurelion-2fa-polished-panel .aurelion-2fa-manual-wrap {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.aurelion-2fa-polished-panel .aurelion-2fa-manual-wrap {
  margin: 10px 0 14px !important;
}

.aurelion-2fa-polished-panel input[placeholder="Введите 6-значный код"] {
  width: 100% !important;
}

.aurelion-2fa-technical,
.aurelion-2fa-copy-url,
.aurelion-2fa-otpauth {
  display: none !important;
}

/* AURELION_2FA_NATIVE_HANDLER_SAFE_END */


/* AURELION_2FA_BACKUP_COPY_ALL_START */

.aurelion-2fa-copy-all-backup-codes {
  width: 100% !important;
  height: 42px !important;
  margin: 12px 0 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16) !important;
}

.aurelion-2fa-copy-all-backup-codes:hover {
  filter: brightness(1.08) !important;
}

/* AURELION_2FA_BACKUP_COPY_ALL_END */


/* AURELION_LITE_HISTORY_INTEGRATED_START */

.office-lite-history-integrated-table {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 16px !important;
  overflow: visible !important;
}

.office-lite-history-integrated-head,
.office-lite-history-integrated-row {
  display: grid !important;
  grid-template-columns: 150px 150px minmax(240px, 1fr) 210px 135px 74px !important;
  gap: 10px !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.office-lite-history-integrated-head {
  min-height: 34px !important;
  padding: 0 14px !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.045em !important;
}

.office-lite-history-integrated-body {
  display: grid !important;
  gap: 8px !important;
}

.office-lite-history-integrated-row {
  min-height: 58px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

.office-lite-history-integrated-row .office-lite-cell {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  color: #334155 !important;
  font-weight: 500 !important;
}

.office-lite-history-integrated-row .office-lite-phone {
  color: #0f172a !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.office-lite-history-integrated-row .office-lite-status {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.office-lite-history-integrated-row .office-lite-date,
.office-lite-history-integrated-row .office-lite-price {
  text-align: right !important;
  color: #64748b !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
}

.office-history-empty {
  margin-top: 16px !important;
  padding: 18px !important;
  border: 1px dashed rgba(148, 163, 184, 0.35) !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

@media (max-width: 1320px) {
  .office-lite-history-integrated-head {
    display: none !important;
  }

  .office-lite-history-integrated-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .office-lite-history-integrated-row .office-lite-cell {
    text-align: left !important;
    white-space: normal !important;
  }

  .office-lite-history-integrated-row .office-lite-phone::before {
    content: "Номер: " !important;
    color: #64748b !important;
  }

  .office-lite-history-integrated-row .office-lite-status::before {
    content: "Статус: " !important;
    color: #64748b !important;
  }

  .office-lite-history-integrated-row .office-lite-comment::before {
    content: "Комментарий: " !important;
    color: #64748b !important;
  }

  .office-lite-history-integrated-row .office-lite-operator::before {
    content: "Оператор: " !important;
    color: #64748b !important;
  }

  .office-lite-history-integrated-row .office-lite-date::before {
    content: "Дата: " !important;
    color: #64748b !important;
  }

  .office-lite-history-integrated-row .office-lite-price::before {
    content: "Списано: " !important;
    color: #64748b !important;
  }
}

/* AURELION_LITE_HISTORY_INTEGRATED_END */


/* AURELION_LITE_HISTORY_SCROLL_LIKE_FULL_START */

.office-lite-history-scroll-integrated {
  max-height: min(560px, calc(100vh - 430px)) !important;
  min-height: 360px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  padding-right: 6px !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}

.office-lite-history-scroll-integrated .office-lite-history-integrated-table {
  min-width: 1120px !important;
}

.office-lite-history-scroll-integrated::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}

.office-lite-history-scroll-integrated::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55) !important;
  border-radius: 999px !important;
  border: 2px solid rgba(248, 250, 252, 0.9) !important;
}

.office-lite-history-scroll-integrated::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.75) !important;
  border-radius: 999px !important;
}

/* AURELION_LITE_HISTORY_SCROLL_LIKE_FULL_END */


/* AURELION_OFFICE_EQUAL_TAB_PANES_START */

/*
  Один визуальный размер для вкладок личного кабинета.
  За основу берём высоту "Обзор": остальные вкладки не становятся ниже.
*/

.office-main-pane {
  min-height: 650px !important;
  box-sizing: border-box !important;
}

.office-main-pane.active {
  min-height: 650px !important;
}

.office-main-pane > .office-card,
.office-main-pane > .office-section,
.office-main-pane > .office-panel,
.office-main-pane > .office-grid,
.office-main-pane > .office-history-card,
.office-main-pane > .office-profile-card,
.office-main-pane > .office-security-grid,
.office-main-pane > .office-topup-grid {
  min-height: 100% !important;
  box-sizing: border-box !important;
}

/* Профиль / Пополнения / Безопасность — чтобы не выглядели короткими */
.office-main-pane .office-profile-form,
.office-main-pane .office-topup-grid,
.office-main-pane .office-security-grid,
.office-main-pane .office-history-section {
  min-height: 560px !important;
}

/* История Lite и Full: высота как у остальных, список скроллится внутри */
.office-main-pane .office-history-scroll,
.office-main-pane .office-table-scroll,
.office-lite-history-scroll-integrated {
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}

/* Чтобы карточка истории не растягивала всю страницу */
.office-lite-history-integrated-table {
  margin-top: 0 !important;
}

/* Если на маленьком экране места меньше — сохраняем аккуратный размер */
@media (max-height: 820px) {
  .office-main-pane,
  .office-main-pane.active {
    min-height: 590px !important;
  }

  .office-main-pane .office-history-scroll,
  .office-main-pane .office-table-scroll,
  .office-lite-history-scroll-integrated {
    height: 455px !important;
    min-height: 455px !important;
    max-height: 455px !important;
  }
}

@media (max-width: 900px) {
  .office-main-pane,
  .office-main-pane.active {
    min-height: 620px !important;
  }

  .office-main-pane .office-history-scroll,
  .office-main-pane .office-table-scroll,
  .office-lite-history-scroll-integrated {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }
}

/* AURELION_OFFICE_EQUAL_TAB_PANES_END */


/* AURELION_PROFILE_AVATAR_SMALLER_START */

/* Компактная сетка аватарок в профиле */
.office-main-pane .office-avatar-grid,
.office-main-pane .avatar-grid,
.office-main-pane .profile-avatar-grid,
.office-main-pane .office-profile-avatar-grid,
.office-main-pane .office-avatars-grid,
.office-main-pane [class*="avatar"][class*="grid"] {
  display: grid !important;
  grid-template-columns: repeat(10, 64px) !important;
  grid-auto-rows: 64px !important;
  justify-content: start !important;
  align-content: start !important;
  gap: 10px !important;
  row-gap: 10px !important;
  column-gap: 10px !important;
}

.office-main-pane .office-avatar-option,
.office-main-pane .avatar-option,
.office-main-pane .profile-avatar-option,
.office-main-pane .office-profile-avatar-option,
.office-main-pane .office-avatar-tile,
.office-main-pane [class*="avatar"][class*="option"],
.office-main-pane [class*="avatar"][class*="tile"] {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  padding: 5px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

.office-main-pane .office-avatar-option img,
.office-main-pane .avatar-option img,
.office-main-pane .profile-avatar-option img,
.office-main-pane .office-profile-avatar-option img,
.office-main-pane .office-avatar-tile img,
.office-main-pane [class*="avatar"][class*="option"] img,
.office-main-pane [class*="avatar"][class*="tile"] img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* fallback, если контейнер внезапно flex */
.office-main-pane .office-avatar-grid,
.office-main-pane .avatar-grid,
.office-main-pane .profile-avatar-grid,
.office-main-pane .office-profile-avatar-grid,
.office-main-pane .office-avatars-grid {
  justify-items: start !important;
}

/* AURELION_PROFILE_AVATAR_SMALLER_END */

/* AURELION_OFFICE_HISTORY_DATE_PRICE_ALIGN_V1_START */

/*
  Fix Lite history table alignment:
  Номер | Статус | Комментарий | Оператор | Дата | Списано
*/
.office-lite-history-integrated-table {
  min-width: 1120px !important;
  width: 100% !important;
}

.office-lite-history-integrated-head,
.office-lite-history-integrated-row {
  display: grid !important;
  grid-template-columns:
    minmax(145px, 1.05fr)
    minmax(145px, 1fr)
    minmax(360px, 2.2fr)
    minmax(230px, 1.35fr)
    118px
    82px !important;
  column-gap: 18px !important;
  align-items: center !important;
}

.office-lite-history-integrated-head > div,
.office-lite-history-integrated-row > div {
  min-width: 0 !important;
}

.office-lite-history-integrated-head > div:nth-child(5),
.office-lite-history-integrated-row > div:nth-child(5) {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  text-align: center !important;
  justify-self: center !important;
  white-space: nowrap !important;
}

.office-lite-history-integrated-head > div:nth-child(6),
.office-lite-history-integrated-row > div:nth-child(6) {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  text-align: right !important;
  justify-self: end !important;
  white-space: nowrap !important;
}

.office-history-scroll,
.office-lite-history-scroll-integrated {
  overflow-x: auto !important;
}

/* AURELION_OFFICE_HISTORY_DATE_PRICE_ALIGN_V1_END */

/* AURELION_OFFICE_FULL_PROVIDERS_ADMIN_LIKE_V1_START */

.office-admin-provider-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
  min-width: 1120px !important;
}

.office-admin-provider-card {
  min-width: 0 !important;
  height: 100% !important;
}

.office-admin-provider-card details,
.office-admin-provider-raw,
.office-admin-provider-cost {
  display: none !important;
}

.office-admin-provider-title b {
  font-size: 15px !important;
}

.office-admin-provider-kv {
  grid-template-columns: 105px minmax(0, 1fr) !important;
  gap: 7px 10px !important;
}

.office-admin-provider-kv span,
.office-admin-provider-kv b {
  min-width: 0 !important;
}

.office-admin-provider-kv b {
  overflow-wrap: anywhere !important;
}

@media (max-width: 1300px) {
  .office-admin-provider-cards {
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
    min-width: 720px !important;
  }
}

@media (max-width: 760px) {
  .office-admin-provider-cards {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }
}

/* AURELION_OFFICE_FULL_PROVIDERS_ADMIN_LIKE_V1_END */

/* AURELION_OFFICE_FULL_PROVIDERS_VISUAL_FIX_V2_START */

/* Full history: show providers like admin panel, but inside smaller office page */
.office-admin-full-card {
  overflow-x: auto !important;
}

.office-admin-provider-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(285px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
  min-width: 1240px !important;
  width: max-content !important;
  padding-bottom: 4px !important;
}

.office-admin-provider-card {
  min-width: 285px !important;
  max-width: 310px !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.office-admin-provider-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.office-admin-provider-title b {
  font-size: 15px !important;
  white-space: nowrap !important;
}

.office-admin-provider-title span {
  white-space: nowrap !important;
}

.office-admin-provider-card h4 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.office-admin-provider-kv {
  display: block !important;
}

.office-admin-provider-kv > div {
  display: grid !important;
  grid-template-columns: 94px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: baseline !important;
  margin-bottom: 7px !important;
}

.office-admin-provider-kv span {
  white-space: nowrap !important;
}

.office-admin-provider-kv b {
  min-width: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: left !important;
}

.office-admin-provider-card details,
.office-admin-provider-raw,
.office-admin-provider-cost {
  display: none !important;
}

@media (max-width: 1300px) {
  .office-admin-provider-cards {
    grid-template-columns: repeat(4, minmax(285px, 1fr)) !important;
    min-width: 1240px !important;
  }
}

@media (max-width: 760px) {
  .office-admin-provider-cards {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .office-admin-provider-card {
    max-width: none !important;
    width: 100% !important;
  }
}

/* AURELION_OFFICE_FULL_PROVIDERS_VISUAL_FIX_V2_END */

/* AURELION_OFFICE_FULL_COMPACT_ADMIN_LIKE_V3_START */

/* Compact full history header: phone + final result in one row */
.office-admin-full-head-compact {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding-bottom: 10px !important;
}

.office-admin-full-phone-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
}

.office-admin-full-status-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-width: max-content !important;
}

.office-admin-full-mini-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.office-admin-full-mini-meta span {
  border: 1px solid rgba(148, 163, 184, .45) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  background: rgba(255,255,255,.72) !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Remove old big result/used blocks if any cached markup remains */
.office-admin-full-result,
.office-admin-full-used,
.office-admin-full-chips {
  display: none !important;
}

/* 4 provider cards, exactly like admin style but fitting office page */
.office-admin-provider-cards,
.office-admin-provider-cards-compact {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.office-admin-provider-card {
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.office-admin-provider-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.office-admin-provider-title b,
.office-admin-provider-title span {
  white-space: nowrap !important;
}

.office-admin-provider-card h4 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.office-admin-provider-kv {
  display: block !important;
}

.office-admin-provider-kv > div {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: baseline !important;
  margin-bottom: 6px !important;
}

.office-admin-provider-kv span {
  white-space: nowrap !important;
}

.office-admin-provider-kv b {
  min-width: 0 !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

.office-admin-provider-card details,
.office-admin-provider-raw,
.office-admin-provider-cost {
  display: none !important;
}

@media (max-width: 1280px) {
  .office-admin-provider-cards,
  .office-admin-provider-cards-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .office-admin-full-head-compact,
  .office-admin-full-phone-line {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .office-admin-full-mini-meta {
    flex-wrap: wrap !important;
  }

  .office-admin-provider-cards,
  .office-admin-provider-cards-compact {
    grid-template-columns: 1fr !important;
  }
}

/* AURELION_OFFICE_FULL_COMPACT_ADMIN_LIKE_V3_END */

/* AURELION_OFFICE_HISTORY_SEARCH_AND_STATUS_V1_START */

.office-history-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.office-history-head-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-left: auto !important;
}

.office-history-search-wrap {
  display: flex !important;
  align-items: center !important;
}

.office-history-search-input {
  width: 220px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, .45) !important;
  background: rgba(255,255,255,.96) !important;
  padding: 0 14px !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.office-history-search-input:focus {
  border-color: rgba(59, 130, 246, .55) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .10) !important;
}

.office-admin-full-left-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.office-admin-full-phone-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.office-history-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  min-width: max-content !important;
}

.office-history-status-badge.green {
  color: #166534 !important;
  background: rgba(187, 247, 208, .95) !important;
  border: 1px solid rgba(134, 239, 172, .95) !important;
}

.office-history-status-badge.orange {
  color: #9a3412 !important;
  background: rgba(254, 215, 170, .95) !important;
  border: 1px solid rgba(253, 186, 116, .95) !important;
}

.office-history-status-badge.red {
  color: #991b1b !important;
  background: rgba(254, 202, 202, .95) !important;
  border: 1px solid rgba(252, 165, 165, .95) !important;
}

.office-history-status-badge.gray {
  color: #334155 !important;
  background: rgba(226, 232, 240, .95) !important;
  border: 1px solid rgba(203, 213, 225, .95) !important;
}

@media (max-width: 900px) {
  .office-history-search-input {
    width: 180px !important;
  }
}

@media (max-width: 760px) {
  .office-history-head-controls {
    width: 100% !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }

  .office-history-search-input {
    width: 100% !important;
    min-width: 0 !important;
  }

  .office-history-search-wrap {
    width: 100% !important;
  }
}

/* AURELION_OFFICE_HISTORY_SEARCH_AND_STATUS_V1_END */

/* AURELION_OFFICE_HISTORY_HEIGHT_SEARCH_DATE_V2_START */

/* Make history block much taller for Lite and Full */
.office-history-card-expanded {
  min-height: 760px !important;
}

.office-history-card-expanded .office-history-scroll,
.office-history-card-expanded .office-lite-history-scroll-integrated,
.office-history-card-expanded .office-admin-full-list {
  max-height: 620px !important;
  min-height: 520px !important;
  overflow-y: auto !important;
}

/* Normal Lite / Full buttons */
.office-history-head-controls {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
}

.office-history-mode {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px !important;
  background: #eef4fb !important;
  border-radius: 14px !important;
  border: 1px solid rgba(203, 213, 225, .8) !important;
}

.office-history-mode button {
  min-width: 52px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.office-history-mode button.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22) !important;
}

/* Search input should look like part of header */
.office-history-search-input {
  width: 240px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, .55) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Full header: phone + result left, date/provider counters right */
.office-admin-full-head-compact {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.office-admin-full-left-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.office-admin-full-phone-block h4 {
  margin: 0 !important;
  white-space: nowrap !important;
}

.office-admin-full-mini-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.office-admin-full-mini-meta span {
  display: inline-flex !important;
  align-items: center !important;
  height: 30px !important;
  border: 1px solid rgba(148, 163, 184, .45) !important;
  border-radius: 999px !important;
  padding: 0 11px !important;
  background: rgba(255, 255, 255, .8) !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .office-history-card-expanded {
    min-height: 680px !important;
  }

  .office-history-card-expanded .office-history-scroll,
  .office-history-card-expanded .office-lite-history-scroll-integrated,
  .office-history-card-expanded .office-admin-full-list {
    max-height: 540px !important;
    min-height: 440px !important;
  }

  .office-history-head-controls {
    width: 100% !important;
    justify-content: space-between !important;
    margin-left: 0 !important;
  }

  .office-history-search-input {
    width: 100% !important;
  }

  .office-history-search-wrap {
    flex: 1 !important;
  }

  .office-admin-full-head-compact {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .office-admin-full-mini-meta {
    flex-wrap: wrap !important;
  }
}

/* AURELION_OFFICE_HISTORY_HEIGHT_SEARCH_DATE_V2_END */

/* AURELION_OFFICE_HISTORY_TALL_MODAL_V4_START */

/*
  Make the white History card much taller.
  Works both through JS class and direct :has() fallback.
*/
.office-history-card-tall-v4,
.office-history-card-expanded,
.office-card:has(.office-history-head) {
  min-height: 900px !important;
  height: auto !important;
  padding-bottom: 28px !important;
}

.office-history-card-tall-v4 .office-history-scroll,
.office-history-card-tall-v4 .office-lite-history-scroll-integrated,
.office-history-card-tall-v4 .office-admin-full-list,
.office-history-card-expanded .office-history-scroll,
.office-history-card-expanded .office-lite-history-scroll-integrated,
.office-history-card-expanded .office-admin-full-list,
.office-card:has(.office-history-head) .office-history-scroll,
.office-card:has(.office-history-head) .office-lite-history-scroll-integrated,
.office-card:has(.office-history-head) .office-admin-full-list {
  min-height: 720px !important;
  max-height: 720px !important;
  overflow-y: auto !important;
}

.office-history-card-tall-v4 .office-table-scroll,
.office-history-card-expanded .office-table-scroll,
.office-card:has(.office-history-head) .office-table-scroll {
  min-height: 720px !important;
  max-height: 720px !important;
  overflow-y: auto !important;
}

/* Keep Lite/Full buttons polished if older CSS overrides them */
.office-history-mode {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px !important;
  background: #eef4fb !important;
  border-radius: 14px !important;
  border: 1px solid rgba(203, 213, 225, .8) !important;
}

.office-history-mode button {
  min-width: 52px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.office-history-mode button.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22) !important;
}

@media (max-width: 900px) {
  .office-history-card-tall-v4,
  .office-history-card-expanded,
  .office-card:has(.office-history-head) {
    min-height: 780px !important;
  }

  .office-history-card-tall-v4 .office-history-scroll,
  .office-history-card-tall-v4 .office-lite-history-scroll-integrated,
  .office-history-card-tall-v4 .office-admin-full-list,
  .office-history-card-expanded .office-history-scroll,
  .office-history-card-expanded .office-lite-history-scroll-integrated,
  .office-history-card-expanded .office-admin-full-list,
  .office-card:has(.office-history-head) .office-history-scroll,
  .office-card:has(.office-history-head) .office-lite-history-scroll-integrated,
  .office-card:has(.office-history-head) .office-admin-full-list {
    min-height: 600px !important;
    max-height: 600px !important;
  }
}

/* AURELION_OFFICE_HISTORY_TALL_MODAL_V4_END */

/* AURELION_OFFICE_HISTORY_AUTO_GROW_V5_START */

/*
  History card should not be fixed-height.
  It starts with normal height, grows with records, and only then scrolls.
*/
.office-history-card-auto-v5,
.office-card:has(.office-history-head) {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  padding-bottom: 26px !important;
}

/* Remove previous forced tall/fixed heights */
.office-history-card-auto-v5 .office-history-scroll,
.office-history-card-auto-v5 .office-lite-history-scroll-integrated,
.office-history-card-auto-v5 .office-admin-full-list,
.office-history-card-auto-v5 .office-table-scroll,
.office-card:has(.office-history-head) .office-history-scroll,
.office-card:has(.office-history-head) .office-lite-history-scroll-integrated,
.office-card:has(.office-history-head) .office-admin-full-list,
.office-card:has(.office-history-head) .office-table-scroll {
  height: auto !important;
  min-height: 0 !important;
  max-height: 860px !important;
  overflow-y: auto !important;
}

/* If there are many rows/cards, allow the white block to grow lower */
.office-admin-full-list,
.office-lite-history-scroll-integrated,
.office-history-scroll {
  height: auto !important;
  min-height: 0 !important;
  max-height: 860px !important;
  overflow-y: auto !important;
}

/* Lite search support: hide rows correctly */
.aurelion-lite-clean-row-v6[style*="display: none"],
.aurelion-lite-clean-row-v5[style*="display: none"],
.aurelion-lite-clean-row-v4[style*="display: none"],
.aurelion-lite-clean-row-v3[style*="display: none"],
.office-lite-history-integrated-row[style*="display: none"] {
  display: none !important;
}

@media (min-height: 900px) {
  .office-history-card-auto-v5 .office-history-scroll,
  .office-history-card-auto-v5 .office-lite-history-scroll-integrated,
  .office-history-card-auto-v5 .office-admin-full-list,
  .office-history-card-auto-v5 .office-table-scroll,
  .office-card:has(.office-history-head) .office-history-scroll,
  .office-card:has(.office-history-head) .office-lite-history-scroll-integrated,
  .office-card:has(.office-history-head) .office-admin-full-list,
  .office-card:has(.office-history-head) .office-table-scroll {
    max-height: 980px !important;
  }
}

@media (max-height: 820px) {
  .office-history-card-auto-v5 .office-history-scroll,
  .office-history-card-auto-v5 .office-lite-history-scroll-integrated,
  .office-history-card-auto-v5 .office-admin-full-list,
  .office-history-card-auto-v5 .office-table-scroll,
  .office-card:has(.office-history-head) .office-history-scroll,
  .office-card:has(.office-history-head) .office-lite-history-scroll-integrated,
  .office-card:has(.office-history-head) .office-admin-full-list,
  .office-card:has(.office-history-head) .office-table-scroll {
    max-height: 720px !important;
  }
}

/* AURELION_OFFICE_HISTORY_AUTO_GROW_V5_END */

/* AURELION_OFFICE_HISTORY_PAGINATION_STICKY_V6_START */

/* Search input with clear X */
.office-history-search-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.office-history-search-input {
  padding-right: 38px !important;
}

.office-history-search-clear {
  position: absolute !important;
  right: 7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(148, 163, 184, .18) !important;
  color: #334155 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.office-history-search-clear:hover {
  background: rgba(239, 68, 68, .14) !important;
  color: #991b1b !important;
}

/* Lite sticky table header */
.office-lite-history-integrated-head,
.aurelion-lite-clean-head-v6,
.aurelion-lite-clean-head-v5,
.aurelion-lite-clean-head-v4,
.aurelion-lite-clean-head-v3 {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  background: rgba(248, 251, 255, .98) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 1px 0 rgba(203, 213, 225, .75), 0 8px 18px rgba(15, 23, 42, .04) !important;
}

/* Pagination */
.office-history-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 14px !important;
  padding: 12px !important;
  border: 1px solid rgba(203, 213, 225, .8) !important;
  border-radius: 16px !important;
  background: rgba(248, 251, 255, .88) !important;
}

.office-history-pagination button {
  height: 36px !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 0 16px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.office-history-pagination button:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
}

.office-history-pagination-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  min-width: 190px !important;
  color: #334155 !important;
}

.office-history-pagination-info b {
  font-size: 13px !important;
  font-weight: 900 !important;
}

.office-history-pagination-info span {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #64748b !important;
}

/* Wider Lite balance column */
.office-lite-history-integrated-head,
.office-lite-history-integrated-row {
  grid-template-columns:
    minmax(145px, 1.05fr)
    minmax(145px, 1fr)
    minmax(330px, 2.1fr)
    minmax(210px, 1.25fr)
    118px
    130px !important;
}

.office-lite-history-integrated-head > div:nth-child(6),
.office-lite-history-integrated-row > div:nth-child(6) {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
}

/* AURELION_OFFICE_HISTORY_PAGINATION_STICKY_V6_END */

/* AURELION_OFFICE_HISTORY_PAGINATION_OUTSIDE_V1_START */

/* Pagination moved below the white History card */
.office-history-pagination-outside {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 14px 0 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(203, 213, 225, .85) !important;
  background: rgba(248, 251, 255, .92) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .06) !important;
}

/* Remove extra bottom feeling inside the history card after pagination is moved */
.office-card:has(.office-history-head) {
  padding-bottom: 18px !important;
}

/* Keep pagination centered and compact below card */
.office-history-pagination-outside .office-history-pagination-info {
  min-width: 220px !important;
}

.office-history-pagination-outside button {
  min-width: 112px !important;
}

@media (max-width: 760px) {
  .office-history-pagination-outside {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .office-history-pagination-outside button {
    width: 100% !important;
  }
}

/* AURELION_OFFICE_HISTORY_PAGINATION_OUTSIDE_V1_END */

/* AURELION_FULL_HEADER_PHONE_STATUS_SIZE_V1_START */

/* Full history: make country+phone and final status visually match provider/api chips */
.office-admin-full-phone-block h4 {
  font-size: 12px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

.office-history-status-badge {
  font-size: 12px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  padding: 6px 11px !important;
  min-height: 24px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.office-admin-full-left-meta {
  gap: 9px !important;
  align-items: center !important;
}

/* AURELION_FULL_HEADER_PHONE_STATUS_SIZE_V1_END */

/* AURELION_FULL_PHONE_SIZE_TINY_BUMP_V1_START */

/* Full history: make country + phone a little larger */
.office-admin-full-phone-block h4 {
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

/* AURELION_FULL_PHONE_SIZE_TINY_BUMP_V1_END */

/* AURELION_OFFICE_OVERVIEW_STATE_PILLS_V1_START */

.office-overview-state-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.office-overview-state-pill.green {
  color: #047857 !important;
  background: rgba(16, 185, 129, .14) !important;
  border: 1px solid rgba(16, 185, 129, .28) !important;
}

.office-overview-state-pill.red {
  color: #b91c1c !important;
  background: rgba(239, 68, 68, .13) !important;
  border: 1px solid rgba(239, 68, 68, .28) !important;
}

/* AURELION_OFFICE_OVERVIEW_STATE_PILLS_V1_END */

/* AURELION_OFFICE_ACTIVITY_CHART_V1_START */

.office-activity-chart-card {
  overflow: hidden !important;
}

.office-activity-chart-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

.office-activity-chart-head h3 {
  margin: 0 0 6px !important;
}

.office-activity-chart-head p {
  margin: 0 !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

.office-activity-period-switch {
  display: inline-flex !important;
  gap: 6px !important;
  padding: 5px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, .05) !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  white-space: nowrap !important;
}

.office-activity-period-switch button {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 8px 13px !important;
  font-weight: 900 !important;
  color: #475569 !important;
  background: transparent !important;
  cursor: pointer !important;
}

.office-activity-period-switch button.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #22c55e) !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .18) !important;
}

.office-activity-chart-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
}

.office-activity-chart-summary > div {
  padding: 13px 14px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(248, 250, 252, .98), rgba(241, 245, 249, .75)) !important;
  border: 1px solid rgba(148, 163, 184, .23) !important;
}

.office-activity-chart-summary span {
  display: block !important;
  margin-bottom: 6px !important;
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

.office-activity-chart-summary b {
  color: #0f172a !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.office-activity-chart-wrap {
  min-height: 310px !important;
  padding: 10px 8px 0 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 99, 235, .08), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(34, 197, 94, .10), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .9)) !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
}

.office-activity-chart-svg {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  color: #2563eb !important;
}

.office-activity-grid-line {
  stroke: rgba(148, 163, 184, .25) !important;
  stroke-width: 1 !important;
}

.office-activity-axis-line {
  stroke: rgba(15, 23, 42, .18) !important;
  stroke-width: 1.4 !important;
}

.office-activity-axis-label {
  fill: #64748b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.office-activity-x-label {
  fill: #64748b !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.office-activity-bar {
  fill: url(#officeActivityBarGradient) !important;
  color: #2563eb !important;
  filter: drop-shadow(0 8px 10px rgba(37, 99, 235, .13)) !important;
}

.office-activity-line {
  fill: none !important;
  stroke: #10b981 !important;
  stroke-width: 4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 7px 8px rgba(16, 185, 129, .22)) !important;
}

.office-activity-dot {
  fill: #ffffff !important;
  stroke: #10b981 !important;
  stroke-width: 3 !important;
}

.office-activity-chart-legend {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 13px !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.office-activity-chart-legend span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.office-activity-chart-legend i {
  width: 13px !important;
  height: 13px !important;
  border-radius: 5px !important;
  display: inline-block !important;
}

.office-activity-chart-legend i.bars {
  background: #2563eb !important;
}

.office-activity-chart-legend i.line {
  background: #10b981 !important;
  border-radius: 999px !important;
}

.office-activity-chart-skeleton {
  min-height: 310px !important;
  border-radius: 22px !important;
  background: linear-gradient(90deg, #f1f5f9, #ffffff, #f1f5f9) !important;
  background-size: 220% 100% !important;
  animation: officeActivitySkeleton 1.2s ease-in-out infinite !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
}

@keyframes officeActivitySkeleton {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

@media (max-width: 820px) {
  .office-activity-chart-head {
    flex-direction: column !important;
  }

  .office-activity-chart-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* AURELION_OFFICE_ACTIVITY_CHART_V1_END */

/* AURELION_ACTIVITY_CHART_TOOLTIP_V56_START */

.office-activity-chart-wrap {
  position: relative !important;
  overflow: visible !important;
}

.office-activity-point-wrap {
  cursor: pointer !important;
}

.office-activity-hit-point {
  fill: transparent !important;
  stroke: transparent !important;
  pointer-events: all !important;
  cursor: pointer !important;
}

.office-activity-hover-guide {
  opacity: 0 !important;
  stroke: rgba(16, 185, 129, .42) !important;
  stroke-width: 2 !important;
  stroke-dasharray: 6 7 !important;
  transition: opacity .16s ease, stroke-width .16s ease !important;
  pointer-events: none !important;
}

.office-activity-point-wrap .office-activity-dot {
  transform-box: fill-box !important;
  transform-origin: center !important;
  transition:
    transform .16s ease,
    filter .16s ease,
    stroke-width .16s ease !important;
}

.office-activity-point-wrap.active .office-activity-hover-guide {
  opacity: 1 !important;
  stroke-width: 2.6 !important;
}

.office-activity-point-wrap.active .office-activity-dot {
  transform: scale(1.65) !important;
  stroke-width: 4.5 !important;
  filter:
    drop-shadow(0 0 0 rgba(16, 185, 129, .85))
    drop-shadow(0 10px 16px rgba(16, 185, 129, .42)) !important;
}

.office-activity-point-wrap.active .office-activity-hit-point {
  fill: rgba(16, 185, 129, .10) !important;
}

.office-activity-tooltip-v56 {
  position: absolute !important;
  z-index: 20 !important;
  min-width: 210px !important;
  padding: 13px 14px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)) !important;
  border: 1px solid rgba(148, 163, 184, .34) !important;
  box-shadow:
    0 22px 50px rgba(15, 23, 42, .18),
    0 8px 18px rgba(15, 23, 42, .08) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(6px) scale(.98) !important;
  transition:
    opacity .14s ease,
    transform .14s ease !important;
}

.office-activity-tooltip-v56.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.office-activity-tooltip-title {
  margin-bottom: 10px !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
}

.office-activity-tooltip-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 7px 0 !important;
  border-top: 1px solid rgba(148, 163, 184, .18) !important;
}

.office-activity-tooltip-row span {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.office-activity-tooltip-row b {
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

/* AURELION_ACTIVITY_CHART_TOOLTIP_V56_END */

/* AURELION_OFFICE_UI_POLISH_V60_START */

/* Overview/Security status values: same size/view as normal stat values, only color changes */
.office-overview-state-pill,
.office-2fa-status.office-overview-state-pill {
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
}

.office-overview-state-pill.green,
.office-2fa-status.office-overview-state-pill.green {
  color: #16a34a !important;
}

.office-overview-state-pill.red,
.office-2fa-status.office-overview-state-pill.red {
  color: #dc2626 !important;
}

/* Security 2FA block should not look like a separate huge badge */
.office-2fa-status {
  margin: 0 0 16px !important;
}

/* Full provider cards: labels bold, values regular */
.office-admin-provider-kv span {
  font-weight: 950 !important;
}

.office-admin-provider-kv b {
  font-weight: 500 !important;
}

/* History footer: only Lite/Full is bold */
.office-history-pagination-info .office-history-pagination-title {
  font-weight: 500 !important;
}

.office-history-pagination-info .office-history-pagination-title b {
  font-weight: 950 !important;
}

/* Chart peak day: word "Проверок" not bold */
.office-activity-peak-unit {
  font-weight: 500 !important;
}

/* AURELION_OFFICE_UI_POLISH_V60_END */

/* AURELION_OFFICE_UI_POLISH_V61_START */

/* Force 2FA / Telegram in Overview and 2FA in Security to look like normal stat values */
.office-stat b.office-overview-state-pill,
.office-2fa-status.office-overview-state-pill {
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
}

.office-stat b.office-overview-state-pill.green,
.office-2fa-status.office-overview-state-pill.green {
  color: #16a34a !important;
}

.office-stat b.office-overview-state-pill.red,
.office-2fa-status.office-overview-state-pill.red {
  color: #dc2626 !important;
}

.office-2fa-status.office-overview-state-pill {
  margin: 0 0 16px !important;
}

/* Pagination: only Lite/Full bold */
.office-history-pagination-info > b {
  font-weight: 500 !important;
}

.office-history-pagination-info .office-history-pagination-title {
  font-weight: 500 !important;
}

.office-history-pagination-info .office-history-pagination-title b {
  font-weight: 950 !important;
}

/* Full provider cards: labels bold, values regular */
.office-admin-provider-kv span {
  font-weight: 950 !important;
}

.office-admin-provider-kv b {
  font-weight: 500 !important;
}

/* Chart peak day unit */
.office-activity-peak-unit {
  font-weight: 500 !important;
}

/* AURELION_OFFICE_UI_POLISH_V61_END */

/* AURELION_OFFICE_UI_HARD_FIX_V62_START */

/* Overview 2FA/Telegram values: same visual scale as normal large stat values */
.office-stats .office-stat > b.office-overview-state-pill {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  letter-spacing: -.03em !important;
  text-transform: none !important;
}

/* Security 2FA value: match Overview status value styling */
.office-2fa-status.office-overview-state-pill {
  display: block !important;
  width: auto !important;
  margin: 8px 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  letter-spacing: -.03em !important;
  text-transform: none !important;
}

.office-stats .office-stat > b.office-overview-state-pill.green,
.office-2fa-status.office-overview-state-pill.green {
  color: #059669 !important;
}

.office-stats .office-stat > b.office-overview-state-pill.red,
.office-2fa-status.office-overview-state-pill.red {
  color: #dc2626 !important;
}

/* Pagination: only Lite / Full should be bold */
.office-history-pagination-info,
.office-history-pagination-info * {
  font-weight: 500 !important;
}

.office-history-pagination-info .office-history-pagination-title > b {
  font-weight: 950 !important;
}

/* Full provider cards: labels bold, values regular */
.office-admin-provider-kv span {
  font-weight: 950 !important;
}

.office-admin-provider-kv b {
  font-weight: 500 !important;
}

/* Peak day: keep unit inline, same color/size, only less bold */
.office-activity-chart-summary b.office-activity-peak-value {
  white-space: nowrap !important;
}

.office-activity-chart-summary b .office-activity-peak-unit {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 500 !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

/* AURELION_OFFICE_UI_HARD_FIX_V62_END */

/* AURELION_OVERVIEW_PILLS_REFRESH_V65_START */

/* Overview 2FA / Telegram: small soft color pills */
.office-stats .office-stat > b.office-overview-state-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 2px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

/* Security 2FA: same soft pill */
.office-2fa-status.office-overview-state-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin: 8px 0 16px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.office-stats .office-stat > b.office-overview-state-pill.green,
.office-2fa-status.office-overview-state-pill.green {
  color: #047857 !important;
  background: rgba(16, 185, 129, .12) !important;
  border-color: rgba(16, 185, 129, .24) !important;
}

.office-stats .office-stat > b.office-overview-state-pill.red,
.office-2fa-status.office-overview-state-pill.red {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, .11) !important;
  border-color: rgba(239, 68, 68, .24) !important;
}

/* Refresh should not look like page reload state */
#officeRefreshBtn {
  transition: transform .12s ease, opacity .12s ease !important;
}

#officeRefreshBtn:active {
  transform: translateY(1px) !important;
}

/* Pagination: force regular text except Lite/Full */
.office-history-pagination-info,
.office-history-pagination-info span,
.office-history-pagination-info .office-history-pagination-title span {
  font-weight: 500 !important;
}

.office-history-pagination-info .office-history-pagination-title > b {
  font-weight: 950 !important;
}

/* Peak day unit: same line and same color, only regular weight */
.office-activity-chart-summary b.office-activity-peak-value {
  white-space: nowrap !important;
}

.office-activity-chart-summary b.office-activity-peak-value .office-activity-peak-unit {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 500 !important;
  letter-spacing: inherit !important;
  white-space: nowrap !important;
}

/* AURELION_OVERVIEW_PILLS_REFRESH_V65_END */

/* AURELION_FULL_HISTORY_SAVED_WEIGHT_V66_START */

.office-admin-full-foot .office-admin-full-foot-value {
  font-weight: 500 !important;
}

/* AURELION_FULL_HISTORY_SAVED_WEIGHT_V66_END */

/* AURELION_SOFT_STATUS_PILLS_V67_START */

/* Overview 2FA / Telegram + Security 2FA: soft pills */
.office-stat > b.office-overview-state-pill,
.office-stats .office-stat > b.office-overview-state-pill,
.office-2fa-status.office-overview-state-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 3px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.office-2fa-status.office-overview-state-pill {
  margin: 8px 0 16px !important;
}

.office-stat > b.office-overview-state-pill.green,
.office-stats .office-stat > b.office-overview-state-pill.green,
.office-2fa-status.office-overview-state-pill.green {
  color: #047857 !important;
  background: rgba(16, 185, 129, .13) !important;
  border-color: rgba(16, 185, 129, .28) !important;
}

.office-stat > b.office-overview-state-pill.red,
.office-stats .office-stat > b.office-overview-state-pill.red,
.office-2fa-status.office-overview-state-pill.red {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, .12) !important;
  border-color: rgba(239, 68, 68, .28) !important;
}

/* AURELION_SOFT_STATUS_PILLS_V67_END */

/* AURELION_OVERVIEW_STATUS_PILLS_SIZE_V68_START */

/* 2FA / Telegram values: one visual step larger */
.office-stat > b.office-overview-state-pill,
.office-stats .office-stat > b.office-overview-state-pill,
.office-2fa-status.office-overview-state-pill {
  font-size: 14px !important;
  line-height: 1.05 !important;
  padding: 6px 11px !important;
  font-weight: 850 !important;
}

/* AURELION_OVERVIEW_STATUS_PILLS_SIZE_V68_END */

/* AURELION_OVERVIEW_STATUS_PILLS_15PX_V69_START */

.office-stat > b.office-overview-state-pill,
.office-stats .office-stat > b.office-overview-state-pill,
.office-2fa-status.office-overview-state-pill {
  font-size: 15px !important;
  line-height: 1.05 !important;
  padding: 6px 12px !important;
  font-weight: 850 !important;
}

/* AURELION_OVERVIEW_STATUS_PILLS_15PX_V69_END */

/* AURELION_OVERVIEW_STATUS_PILLS_16PX_V70_START */

.office-stat > b.office-overview-state-pill,
.office-stats .office-stat > b.office-overview-state-pill,
.office-2fa-status.office-overview-state-pill {
  font-size: 16px !important;
  line-height: 1.05 !important;
  padding: 7px 13px !important;
  font-weight: 850 !important;
}

/* AURELION_OVERVIEW_STATUS_PILLS_16PX_V70_END */


/* AURELION_NATIVE_LITE_COUNTRY_COLUMN_V535 */
.office-lite-history-integrated-table {
  min-width: 1180px !important;
}

.office-lite-history-integrated-head,
.office-lite-history-integrated-row {
  grid-template-columns:
    minmax(150px, 1.05fr)
    minmax(145px, 0.95fr)
    minmax(125px, 0.8fr)
    minmax(250px, 1.55fr)
    minmax(150px, 0.95fr)
    minmax(135px, 0.85fr)
    minmax(115px, 0.75fr) !important;
}

.office-lite-country {
  white-space: nowrap !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}


/* AURELION_LITE_HISTORY_PRICE_COLUMN_FIX_V538 */
.office-lite-history-integrated-head,
.office-lite-history-integrated-row {
  grid-template-columns:
    minmax(150px, 1.05fr)
    minmax(145px, 0.95fr)
    minmax(120px, 0.78fr)
    minmax(260px, 1.6fr)
    minmax(160px, 0.95fr)
    minmax(135px, 0.82fr)
    minmax(90px, 0.55fr) !important;
}

.office-lite-history-integrated-head > div:last-child,
.office-lite-price {
  text-align: right !important;
  white-space: nowrap !important;
}

.office-lite-history-integrated-head > div {
  white-space: nowrap !important;
}
