/* 2026-08-27. COS-inspired dark and gold visual system for OroShop Back Office. */
:root {
  color-scheme: dark;
  --background: #090b0e;
  --surface: #111419;
  --surface-raised: #171b21;
  --surface-soft: #1c2129;
  --border: #2a3039;
  --border-soft: rgba(255, 255, 255, 0.07);
  --gold: #d5ad58;
  --gold-bright: #f0ce7a;
  --gold-muted: rgba(213, 173, 88, 0.14);
  --text: #f4f1e9;
  --text-soft: #a7adb7;
  --danger: #ff8f8f;
  --success: #6fd2a0;
  --sidebar-width: 270px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 10px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(213, 173, 88, 0.05), transparent 30%),
    var(--background);
  transition: grid-template-columns 180ms ease;
}

/* 2026-08-31. Collapsible desktop sidebar and persistent restore handle. */
.app-shell.sidebar-collapsed {
  grid-template-columns: 0 10px minmax(0, 1fr);
}

.sidebar-viewport {
  position: sticky;
  top: 0;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 28px 20px;
  background: rgba(14, 17, 21, 0.96);
  visibility: visible;
  transition: visibility 0s linear;
}

.sidebar-collapsed .sidebar {
  visibility: hidden;
  transition-delay: 180ms;
}

.sidebar-toggle {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  width: 10px;
  height: 100vh;
  place-items: center;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--border-soft);
  border-left: 1px solid var(--border-soft);
  background: rgba(20, 24, 30, 0.96);
  color: var(--text-soft);
  cursor: pointer;
  transition: 180ms ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  border-color: rgba(213, 173, 88, 0.65);
  outline: none;
  background: rgba(213, 173, 88, 0.18);
  color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(213, 173, 88, 0.14);
}

.sidebar-toggle:focus-visible {
  box-shadow:
    inset 0 0 0 2px rgba(240, 206, 122, 0.4),
    0 0 14px rgba(213, 173, 88, 0.14);
}

.sidebar-toggle-indicator {
  display: grid;
  width: 18px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  font-size: 19px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.sidebar-collapsed .sidebar-toggle-indicator {
  transform: rotate(180deg);
}

.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand {
  padding: 0 10px 34px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(240, 206, 122, 0.55);
  border-radius: 11px;
  background: linear-gradient(145deg, #332818, #17130d);
  box-shadow: 0 0 30px rgba(213, 173, 88, 0.08);
  color: var(--gold-bright);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark.large {
  width: 50px;
  height: 50px;
}

.brand-name,
.brand-area {
  display: block;
}

.brand-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-area {
  margin-top: 2px;
  color: var(--gold);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-entry {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
  transition: 160ms ease;
}

.nav-entry:hover:not(.disabled) {
  border-color: var(--border-soft);
  background: var(--surface-raised);
  color: var(--text);
}

.nav-entry.active {
  border-color: rgba(213, 173, 88, 0.23);
  background: linear-gradient(90deg, var(--gold-muted), rgba(213, 173, 88, 0.03));
  color: var(--gold-bright);
}

.nav-entry.active::before {
  position: absolute;
  left: -21px;
  width: 3px;
  height: 28px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
  content: "";
}

.nav-entry.disabled {
  cursor: not-allowed;
  opacity: 0.43;
}

.nav-entry .rzi {
  font-size: 21px;
}

.coming-soon,
.placeholder-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coming-soon {
  padding: 4px 7px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 18px 10px 2px;
  border-top: 1px solid var(--border-soft);
  color: #737a85;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
}

.environment-dot,
.status-pulse {
  display: inline-block;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(111, 210, 160, 0.55);
}

.environment-dot {
  width: 7px;
  height: 7px;
}

.content-shell {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 42px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(9, 11, 14, 0.76);
  backdrop-filter: blur(18px);
}

.topbar-title {
  display: grid;
  gap: 3px;
  font-size: 15px;
  font-weight: 600;
}

.eyebrow,
.user-label {
  color: var(--gold);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account-menu {
  position: relative;
  z-index: 20;
}

.account-menu-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 5px 9px 5px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.account-menu-trigger:hover,
.account-menu-trigger[aria-expanded="true"] {
  border-color: var(--border);
  background: var(--surface-raised);
}

.account-menu-trigger:focus-visible {
  border-color: var(--gold-bright);
  outline: 3px solid rgba(240, 206, 122, 0.32);
  outline-offset: 2px;
}

.user-avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--gold);
}

.user-copy {
  display: grid;
  min-width: 110px;
}

.user-copy strong {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
}

.account-menu-chevron {
  color: var(--text-soft);
  font-size: 20px;
}

.account-menu-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 220px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #171b21;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

.account-menu-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  transition: 150ms ease;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  border-color: rgba(213, 173, 88, 0.32);
  outline: none;
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.account-menu-item:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(240, 206, 122, 0.28);
}

.account-menu-item .rzi {
  color: var(--gold);
  font-size: 20px;
}

.password-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 42px 0;
  padding: 15px 18px;
  border: 1px solid rgba(213, 173, 88, 0.3);
  border-radius: 10px;
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.password-notice > .rzi {
  font-size: 22px;
}

.password-notice div {
  display: grid;
  gap: 3px;
}

.password-notice strong {
  font-size: 13px;
}

.password-notice span {
  color: #c6b98f;
  font-size: 12px;
}

.password-notice a {
  color: var(--gold-bright);
  font-weight: 650;
  text-underline-offset: 3px;
}

.password-notice a:hover {
  color: var(--text);
}

.password-notice a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(240, 206, 122, 0.4);
  outline-offset: 3px;
}

/* 2026-08-31. Let data-heavy pages use the full content column. */
.page-content {
  width: 100%;
  margin: 0 auto;
  padding: 46px 42px 60px;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.dashboard-header h1,
.profile-header h1,
.login-heading h1,
.error-card h1 {
  margin: 9px 0 8px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.dashboard-header p,
.profile-header p,
.login-heading p,
.error-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.market-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 270px;
  padding: 13px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(23, 27, 33, 0.7);
}

.status-pulse {
  width: 8px;
  height: 8px;
}

.market-status div {
  display: grid;
  gap: 3px;
}

.market-status strong {
  font-size: 12px;
}

.market-status span:last-child {
  color: var(--text-soft);
  font-size: 11px;
}

.quotation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quotation-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 60%),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.13);
}

.quotation-card::after {
  position: absolute;
  right: -30px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  filter: blur(45px);
  opacity: 0.09;
}

.quotation-card.gold {
  color: #e7bd62;
}

.quotation-card.silver {
  color: #c7ced8;
}

.quotation-card.platinum {
  color: #9ccbc7;
}

.quotation-card.palladium {
  color: #a8a8d6;
}

.quotation-topline,
.quotation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metal-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
}

.quotation-topline .rzi {
  font-size: 20px;
  opacity: 0.68;
}

.quotation-copy {
  display: grid;
  gap: 8px;
  margin: 26px 0 24px;
}

.quotation-copy > span {
  color: var(--text-soft);
  font-size: 13px;
}

.quotation-copy strong {
  overflow: hidden;
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quotation-copy small {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.quotation-meta {
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 10px;
}

.placeholder-chip {
  padding: 4px 7px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.panel {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 160px;
  padding: 25px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(17, 20, 25, 0.62);
}

.panel-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(213, 173, 88, 0.25);
  border-radius: 10px;
  background: var(--gold-muted);
  color: var(--gold);
}

.panel h2 {
  margin: 10px 0 7px;
  font-size: 17px;
  font-weight: 600;
}

.panel p {
  max-width: 480px;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

/* 2026-07-30. Account profile and password-change workspace. */
.profile-header {
  margin-bottom: 30px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  align-items: start;
  gap: 18px;
}

.profile-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(17, 20, 25, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.profile-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.profile-card-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(213, 173, 88, 0.28);
  border-radius: 11px;
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.profile-card-icon .rzi {
  font-size: 23px;
}

.profile-card h2 {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
}

.profile-details {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
}

.profile-details > div {
  display: grid;
  gap: 7px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.profile-details > div:last-child {
  border-bottom: 0;
}

.profile-details dt {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.profile-details dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.password-introduction {
  max-width: 600px;
  margin: 22px 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.password-card form {
  max-width: 600px;
}

.profile-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 600px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.profile-feedback .rzi {
  flex: 0 0 auto;
  font-size: 19px;
}

.profile-success {
  border-color: rgba(111, 210, 160, 0.3);
  background: rgba(111, 210, 160, 0.09);
  color: #8be5b7;
}

.profile-error {
  border-color: rgba(255, 143, 143, 0.24);
  background: rgba(255, 143, 143, 0.08);
  color: var(--danger);
}

.change-password-button.rz-button {
  min-height: 48px;
  margin-top: 4px;
  padding: 0 24px;
  border: 1px solid #e0b85e;
  border-radius: 9px;
  background: linear-gradient(135deg, #d5ad58, #b88b34);
  box-shadow: 0 10px 30px rgba(213, 173, 88, 0.13);
  color: #171109;
  font-weight: 700;
  text-transform: none;
}

.change-password-button.rz-button:hover {
  background: linear-gradient(135deg, #e2bd6b, #c69a43);
}

.change-password-button.rz-button:focus-visible {
  outline: 3px solid rgba(240, 206, 122, 0.42);
  outline-offset: 3px;
}

.login-layout {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 32px 20px;
  background:
    linear-gradient(rgba(9, 11, 14, 0.88), rgba(9, 11, 14, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.018) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, 0.018) 80px);
}

.login-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(213, 173, 88, 0.07);
  filter: blur(100px);
  pointer-events: none;
}

.login-glow-left {
  top: -180px;
  left: -130px;
}

.login-glow-right {
  right: -170px;
  bottom: -220px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 20, 25, 0.96);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.42);
}

.login-brand {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-soft);
}

.login-heading {
  padding: 30px 0 25px;
}

.login-heading h1 {
  font-size: 35px;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 143, 143, 0.24);
  border-radius: 9px;
  background: rgba(255, 143, 143, 0.08);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  color: #c8cbd0;
  font-size: 12px;
  font-weight: 600;
}

.form-field .rz-textbox,
.form-field .rz-password {
  min-height: 46px;
  border-color: var(--border);
  border-radius: 9px;
  background: #0d1014;
  color: var(--text);
  box-shadow: none;
}

.form-field .rz-textbox:focus,
.form-field .rz-password:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(213, 173, 88, 0.1);
}

.validation-message {
  color: var(--danger);
  font-size: 11px;
}

.login-button.rz-button {
  width: 100%;
  min-height: 47px;
  margin-top: 5px;
  border: 1px solid #e0b85e;
  border-radius: 9px;
  background: linear-gradient(135deg, #d5ad58, #b88b34);
  box-shadow: 0 10px 30px rgba(213, 173, 88, 0.13);
  color: #171109;
  font-weight: 700;
  text-transform: none;
}

.login-button.rz-button:hover {
  background: linear-gradient(135deg, #e2bd6b, #c69a43);
}

.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
  color: #707782;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 9px;
}

.login-security .rzi {
  color: var(--gold);
  font-size: 15px;
}

.error-card {
  text-align: center;
}

.error-card .panel-icon {
  margin: 0 auto 24px;
}

.error-card .login-button {
  margin-top: 26px;
}

.empty-state {
  display: grid;
  min-height: 55vh;
  place-items: center;
  align-content: center;
  color: var(--text-soft);
  text-align: center;
}

.empty-state .rzi {
  color: var(--gold);
  font-size: 42px;
}

.empty-state h1 {
  margin: 18px 0 8px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
}

/* 2026-07-31. Customer registry layout and detail card, aligned with the COS window. */
.registry-header {
  margin-bottom: 24px;
}

.registry-header h1 {
  margin: 9px 0 8px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.registry-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.registry-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 143, 143, 0.24);
  border-radius: 9px;
  background: rgba(255, 143, 143, 0.08);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.registry-workspace {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  gap: 14px;
  min-height: 630px;
}

.registry-search-panel,
.customer-detail-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(17, 20, 25, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.registry-search-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  overflow: hidden;
}

.registry-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0d1014;
  color: var(--text-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.registry-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(213, 173, 88, 0.1);
}

.registry-search > .rzi {
  color: var(--gold);
  font-size: 21px;
}

.registry-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.registry-search input::placeholder {
  color: #707782;
}

.registry-search-progress {
  --rz-progressbar-circular-stroke: var(--gold);
}

.customer-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.customer-rating-badge {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

.rating-unknown,
.status-unknown {
  background: #2d2d30;
}

.rating-easy,
.status-ok {
  background: #2e7d4f;
}

.rating-unsure,
.status-expired {
  background: #c77e2e;
}

.rating-expert,
.status-problem {
  background: #b03a3a;
}

.rating-attention {
  background: #101010;
  color: #fff;
}

.status-expiring {
  background: #c7b22e;
  color: #171109;
}

.customer-detail-card {
  overflow: auto;
}

.customer-detail-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

.customer-detail-empty .rzi {
  color: var(--gold);
  font-size: 34px;
}

.customer-detail-content {
  padding: 20px;
}

.customer-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-detail-header h2 {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.customer-detail-header > div:first-child > span {
  display: block;
  margin-top: 5px;
  color: var(--text-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.customer-detail-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.copy-customer-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
  transition: 150ms ease;
}

.copy-customer-button:hover,
.copy-customer-button.copied {
  border-color: rgba(213, 173, 88, 0.5);
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.copy-customer-button .rzi {
  font-size: 16px;
}

.customer-status-strip {
  display: grid;
  gap: 3px;
  margin: 15px 0 4px;
  padding: 9px 11px;
  border-radius: 5px;
  color: #fff;
}

.customer-status-strip strong {
  font-size: 12px;
  font-weight: 700;
}

.customer-status-strip span {
  font-size: 11px;
  line-height: 1.4;
}

.customer-status-strip.status-expiring {
  color: #171109;
}

.customer-detail-section {
  margin-top: 17px;
}

.customer-detail-section h3 {
  margin: 0 0 7px;
  color: var(--text-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-detail-section h3 span {
  color: #6f7681;
  font-weight: 500;
}

.customer-detail-section p {
  display: grid;
  grid-template-columns: minmax(94px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 3px 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.customer-detail-section p strong {
  color: #9097a2;
  font-weight: 500;
}

.customer-detail-section p span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-detail-section p.detail-wide-value {
  grid-template-columns: 1fr;
}

.customer-detail-section p.expiry-warning span {
  color: #e8b31a;
  font-weight: 650;
}

.detail-note {
  padding: 9px 10px !important;
  border-left: 2px solid rgba(213, 173, 88, 0.5);
  background: rgba(213, 173, 88, 0.05);
  white-space: pre-wrap;
}

.customer-registration {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  color: #747b86;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 9px;
}

/* 2026-07-31. Read-only shops workspace, detail card, and synchronized map. */
.shops-workspace {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 14px;
  min-height: 520px;
}

.shops-grid-panel,
.shop-detail-card,
.shops-map-panel {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(17, 20, 25, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.shops-grid-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 13px;
  min-height: 520px;
  padding: 16px;
  overflow: hidden;
}

.shops-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
}

.shops-panel-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.shops-panel-heading span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 10px;
}

.shops-panel-heading .rz-progressbar-circular {
  --rz-progressbar-circular-stroke: var(--gold);
}

.registry-search-panel .golden-data-grid-shell,
.shops-grid-panel .golden-data-grid-shell {
  width: 100%;
  min-width: 0;
}

.registry-search-panel .golden-data-grid.rz-data-grid,
.shops-grid-panel .golden-data-grid.rz-data-grid {
  width: 100%;
}

.shops-grid-panel .golden-data-grid.rz-data-grid {
  min-width: 650px;
}

.shops-grid-panel .golden-data-grid .rz-data-grid-data {
  min-height: 390px;
}

.shop-detail-card {
  overflow: auto;
}

.shop-detail-content {
  padding: 20px;
}

.shop-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shop-detail-header h2 {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.shop-detail-header > div:first-child > span {
  display: block;
  margin-top: 5px;
  color: var(--text-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
}

.shop-badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.shop-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.shop-badge.test {
  border-color: rgba(240, 206, 122, 0.45);
  background: rgba(213, 173, 88, 0.12);
  color: var(--gold-bright);
}

.shop-badge.hidden {
  border-color: rgba(255, 143, 143, 0.35);
  background: rgba(255, 143, 143, 0.09);
  color: var(--danger);
}

.shop-id-section span {
  color: var(--gold-bright);
  font-family: "Cascadia Code", "Consolas", monospace;
}

.shop-detail-card .customer-detail-section a {
  min-width: 0;
  color: var(--gold-bright);
  overflow-wrap: anywhere;
}

.shop-detail-card .customer-detail-section a:focus-visible,
.shops-unlocated button:focus-visible {
  outline: 3px solid rgba(240, 206, 122, 0.42);
  outline-offset: 2px;
}

.shop-closing-section span {
  color: #e8b31a;
  font-weight: 650;
}

.shop-audit {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}

.shops-map-panel {
  display: grid;
  gap: 13px;
  margin-top: 14px;
  padding: 16px;
}

.shops-unlocated {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.shops-unlocated strong {
  color: #c8cbd0;
  font-weight: 650;
}

.shops-unlocated button {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #0d1014;
  color: var(--gold-bright);
  cursor: pointer;
  font: inherit;
}

.shops-unlocated button:hover,
.shops-unlocated button.selected {
  border-color: rgba(213, 173, 88, 0.55);
  background: var(--gold-muted);
  color: #f0ce7a;
}

@media (max-width: 1050px) {
  :root {
    --sidebar-width: 220px;
  }

  .quotation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .page-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .registry-workspace {
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  }

  .shops-workspace {
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  }

  .profile-grid {
    grid-template-columns: minmax(260px, 0.8fr) minmax(390px, 1.2fr);
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar-viewport {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .sidebar-collapsed .sidebar {
    visibility: visible;
    transition: none;
  }

  .sidebar-toggle {
    display: none;
  }

  .brand {
    padding: 0 4px 18px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-entry {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 0 10px;
  }

  .coming-soon,
  .sidebar-footer {
    display: none;
  }

  .nav-entry.active::before {
    display: none;
  }

  .topbar {
    min-height: 72px;
    padding: 0 18px;
  }

  .topbar-title,
  .user-copy {
    display: none;
  }

  .password-notice {
    margin: 16px 18px 0;
  }

  .page-content {
    padding: 32px 18px 45px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-status {
    width: 100%;
  }

  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .registry-workspace {
    grid-template-columns: 1fr;
  }

  .shops-workspace {
    grid-template-columns: 1fr;
  }

  .registry-search-panel,
  .customer-detail-card,
  .shops-grid-panel,
  .shop-detail-card {
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .nav-entry.disabled {
    display: none;
  }

  .quotation-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 28px 22px;
  }

  .profile-card {
    padding: 22px 18px;
  }

  .change-password-button.rz-button {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2026-08-06. Utenti section (unified BackOffice) — styles ported from the
   frozen OroShop.AdminBackOffice app.css. Only classes NOT already present
   here were ported; shared ones (.form-field, .eyebrow, .panel-icon, ...)
   keep this app's definitions. Trimmed co-selectors (.login-heading h1 etc.)
   were dropped to avoid restyling existing pages.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --warning: #ffd17a;
}

.page-header {
  margin-bottom: 26px;
}

.page-header h1 {
  margin: 9px 0 8px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.page-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.users-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.primary-action,
.secondary-button,
.action-button,
.icon-button {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  transition: 150ms ease;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-color: #d8af58;
  border-radius: 9px;
  background: linear-gradient(135deg, #d5ad58, #b88b34);
  color: #171109;
  font-size: 13px;
  font-weight: 700;
}

.primary-action:hover {
  background: linear-gradient(135deg, #e2bd6b, #c69a43);
}

.panel-card,
.users-grid-panel,
.user-detail-card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(17, 20, 25, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.panel-card {
  padding: 26px;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.panel-heading h2 {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
}

.detail-list {
  display: grid;
  margin: 8px 0 0;
}

.detail-list > div {
  display: grid;
  gap: 7px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border-soft);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.detail-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  margin-top: 17px;
}

.feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.feedback .rzi {
  flex: 0 0 auto;
  font-size: 19px;
}

.feedback-success {
  border-color: rgba(111, 210, 160, 0.35);
  background: rgba(111, 210, 160, 0.1);
  color: #9ce9bf;
}

.feedback-error {
  border-color: rgba(255, 143, 143, 0.28);
  background: rgba(255, 143, 143, 0.09);
  color: var(--danger);
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: #0d1014;
  color: var(--text);
  box-shadow: none;
}

select.form-control {
  color-scheme: dark;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(213, 173, 88, 0.1);
}

.form-control:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.form-textarea {
  min-height: 92px;
  resize: vertical;
}

.field-help {
  color: #9299a4;
  font-size: 10px;
  line-height: 1.45;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

.primary-button.rz-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #e0b85e;
  border-radius: 9px;
  background: linear-gradient(135deg, #d5ad58, #b88b34);
  box-shadow: 0 10px 30px rgba(213, 173, 88, 0.13);
  color: #171109;
  font-weight: 700;
  text-transform: none;
}

.primary-button.rz-button:hover {
  background: linear-gradient(135deg, #e2bd6b, #c69a43);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.secondary-button {
  min-height: 46px;
  padding: 0 17px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}

.secondary-button:hover {
  border-color: rgba(213, 173, 88, 0.45);
  color: var(--gold-bright);
}

.create-user-panel {
  margin-bottom: 18px;
}

.create-user-panel form {
  margin-top: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.users-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(350px, 0.85fr);
  gap: 14px;
  min-height: 660px;
}

.users-grid-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 660px;
  padding: 16px;
  overflow: hidden;
}

.users-grid-panel .golden-data-grid-shell {
  height: 100%;
}

.grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.grid-toolbar > div {
  display: grid;
  gap: 3px;
}

.grid-toolbar strong {
  font-size: 13px;
}

.grid-toolbar span {
  color: var(--text-soft);
  font-size: 10px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}

.icon-button:hover {
  border-color: rgba(213, 173, 88, 0.45);
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.loading-state {
  display: grid;
  flex: 1;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 12px;
}

.loading-state .rz-progressbar-circular {
  --rz-progressbar-circular-stroke: var(--gold);
}

.user-detail-card {
  overflow: auto;
}

.detail-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

.detail-empty .rzi {
  color: var(--gold);
  font-size: 34px;
}

.user-detail-content {
  padding: 20px;
}

.user-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-detail-header h2 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 19px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.user-detail-header > div > span {
  display: block;
  margin-top: 5px;
  color: var(--text-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
}

.status-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.status-active {
  background: #246642;
}

.status-blocked {
  background: #8c3434;
}

.warning-text {
  color: var(--warning) !important;
}

.user-actions {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.user-actions > h3,
.inline-action-panel > h3 {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 11px;
  text-align: left;
}

.action-button:hover {
  border-color: rgba(213, 173, 88, 0.42);
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.action-button .rzi {
  color: var(--gold);
  font-size: 18px;
}

.danger-action .rzi {
  color: var(--danger);
}

.success-action .rzi {
  color: var(--success);
}

.inline-action-panel {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(213, 173, 88, 0.24);
  border-radius: 10px;
  background: rgba(213, 173, 88, 0.05);
}

.inline-action-panel > p {
  margin: -4px 0 15px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.inline-action-panel .form-field {
  margin-bottom: 14px;
}

.inline-action-panel .form-control {
  min-height: 42px;
}

.inline-action-panel .form-textarea {
  min-height: 76px;
}

.inline-warning {
  padding: 10px;
  border-left: 2px solid var(--warning);
  background: rgba(255, 209, 122, 0.08);
  color: var(--warning) !important;
}

.compact-actions {
  flex-wrap: wrap;
  margin-top: 3px;
}

@media (max-width: 1180px) {
  .users-workspace {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .users-workspace {
    grid-template-columns: 1fr;
  }

  .users-grid-panel,
  .user-detail-card {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .users-header {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-card {
    padding: 26px 20px;
  }

  .primary-action {
    justify-content: center;
  }

  .form-grid,
  .detail-list.compact,
  .action-buttons {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* 2026-08-06. Permission-driven administration section in the sidebar navigation. */
.sidebar-section-divider {
  margin: 12px 10px 0;
  border-top: 1px solid var(--border-soft);
}

.sidebar-section-label {
  padding: 4px 14px 0;
  color: #737a85;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* 2026-08-31. Server-paged shop-activity report and typed detail panel. */
.activity-header {
  margin-bottom: 24px;
}

.activity-filters {
  margin-bottom: 16px;
  padding: 20px;
}

.activity-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.activity-filter-heading h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
}

.activity-filter-heading .rz-progressbar-circular {
  --rz-progressbar-circular-stroke: var(--gold);
}

.activity-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 0 14px;
}

.activity-filter-grid .form-field {
  min-width: 0;
  margin-bottom: 14px;
}

.activity-filter-control.rz-dropdown,
.activity-filter-control.rz-datepicker {
  width: 100%;
}

.activity-filter-control.rz-dropdown,
.activity-filter-control.rz-datepicker .rz-inputtext {
  min-height: 44px;
  border-color: var(--border);
  border-radius: 9px;
  background: #0d1014;
  color: var(--text);
  box-shadow: none;
}

.activity-filter-control.rz-dropdown:focus-within,
.activity-filter-control.rz-datepicker:focus-within .rz-inputtext {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(213, 173, 88, 0.1);
}

.activity-filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.activity-workspace {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 2.25fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 14px;
}

.activity-grid-panel {
  width: 100%;
  min-width: 0;
  min-height: 570px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(17, 20, 25, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.activity-grid-shell {
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}

.activity-grid.rz-data-grid {
  width: 100%;
  min-width: 1510px;
}

.activity-copy-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
  transition: 150ms ease;
}

.activity-copy-button:hover,
.activity-copy-button:focus-visible,
.activity-copy-button.copied {
  border-color: rgba(213, 173, 88, 0.5);
  outline: none;
  background: var(--gold-muted);
  color: var(--gold-bright);
}

.activity-copy-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(240, 206, 122, 0.28);
}

.activity-copy-button .rzi {
  font-size: 15px;
}

.activity-grid .rz-data-grid-data {
  min-height: 410px;
}

.activity-grid .rz-grid-table tbody tr {
  cursor: pointer;
}

.activity-grid td small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 9px;
}

.activity-primary-cell {
  color: var(--text);
  font-weight: 600;
}

.activity-detail-card {
  min-height: 570px;
}

.activity-competitor {
  padding: 9px 10px !important;
  border-left: 2px solid rgba(213, 173, 88, 0.5);
  background: rgba(213, 173, 88, 0.05);
}

.customer-detail-section p.activity-offer {
  margin: 7px 0;
  padding: 10px;
  border: 1px solid rgba(213, 173, 88, 0.3);
  border-radius: 6px;
  background: rgba(213, 173, 88, 0.09);
}

.customer-detail-section p.activity-offer strong,
.customer-detail-section p.activity-offer span {
  color: var(--gold-bright);
  font-weight: 700;
}

.activity-json-fallback pre {
  max-height: 320px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: #0d1014;
  color: #dce1e8;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .activity-workspace {
    grid-template-columns: 1fr;
  }

  .activity-detail-card {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .activity-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .activity-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
