#root .staff-portal.staff-v2 .commercial-mobile-cards{display:none}
@media(max-width:639px){
#root .staff-portal.staff-v2 .commercial-mobile-screen{min-width:0;overflow-wrap:anywhere}
#root .staff-portal.staff-v2 .commercial-mobile-screen .workspace-page-header{padding:16px;border-radius:8px;gap:12px}
#root .staff-portal.staff-v2 .commercial-mobile-screen .workspace-page-header h1{font-size:21px;line-height:1.4}
#root .staff-portal.staff-v2 .commercial-mobile-screen .workspace-surface{border-radius:8px}
#root .staff-portal.staff-v2 .commercial-mobile-screen .workspace-toolbar{display:flex;flex-wrap:wrap;gap:12px;padding:16px}
#root .staff-portal.staff-v2 .commercial-mobile-screen .workspace-field{min-width:0;width:100%}
#root .staff-portal.staff-v2 .commercial-mobile-screen .commercial-desktop-table{display:none}
#root .staff-portal.staff-v2 .commercial-mobile-screen .commercial-mobile-cards{display:grid;gap:12px;padding:12px}
#root .staff-portal.staff-v2 .commercial-mobile-cards article{border:1px solid #d6e2f1;border-radius:8px;background:#fff;padding:16px}
#root .staff-portal.staff-v2 .commercial-mobile-cards article.is-selected{border-color:#2454a4;background:#f7faff}
#root .staff-portal.staff-v2 .commercial-mobile-cards dl{display:grid;gap:8px;margin:0 0 12px}
#root .staff-portal.staff-v2 .commercial-mobile-cards dl>div{display:grid;grid-template-columns:minmax(80px,.7fr) minmax(0,1.3fr);gap:8px}
#root .staff-portal.staff-v2 .commercial-mobile-cards dt{font-size:13px;color:#52647a}
#root .staff-portal.staff-v2 .commercial-mobile-cards dd{margin:0;font-size:13px;min-width:0}
#root .staff-portal.staff-v2 .commercial-mobile-cards small{display:block}
#root .staff-portal.staff-v2 .commercial-mobile-screen button,#root .staff-portal.staff-v2 .commercial-mobile-screen .prototype-button,#root .staff-portal.staff-v2 .commercial-mobile-screen .customer-record-open{min-height:44px;white-space:normal}
#root .staff-portal.staff-v2 .commercial-mobile-screen input,#root .staff-portal.staff-v2 .commercial-mobile-screen select{min-height:40px;max-width:100%}
#root .staff-portal.staff-v2 .commercial-mobile-screen .commercial-inline-detail{margin-top:12px;min-width:0}
#root .staff-portal.staff-v2 .commercial-mobile-screen[dir=rtl],#root .staff-portal.staff-v2 [dir=rtl] .commercial-mobile-screen{line-height:1.65}
}

/* Platform v2 · staff workspace visual layer (Figma Batch 4 Group C, index 161:370).
   Presentation only: no behaviour, permission or data changes. Scoped to .staff-v2. */
#root .staff-portal.staff-v2-shell {
  --v2-midnight: #020e2d;
  --v2-blue: #035ef7;
  --v2-blue-deep: #0047c2;
  --v2-muted: #4b5568;
  --v2-line: #e1e5ec;
  --v2-paper: #f5f7fb;
  --v2-mist: #e6effe;
  --v2-gold: #c49a35;
  --v2-gold-tint: #fff8e8;
}

#root .staff-portal.staff-v2 {
  background: var(--v2-paper);
  color: var(--v2-midnight);
}

/* Shell: Midnight role-filtered sidebar, active item #0B2A66 with a gradient bar. */
#root .staff-portal.staff-v2-shell > aside {
  background: var(--v2-midnight);
  border-color: #0b1f4a;
}
#root .staff-portal.staff-v2-shell > aside nav a {
  position: relative;
  color: #c9d6ee;
}
#root .staff-portal.staff-v2-shell > aside nav a[aria-current="page"] {
  background: #0b2a66;
  color: #fff;
  box-shadow: none;
  border-inline-start: 0; /* gold is reserved for actions due from the viewer */
}
#root .staff-portal.staff-v2-shell > aside nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset-block: 9px;
  inset-inline-start: 4px;
  inline-size: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0096ff, #0050f0);
}
#root .staff-portal.staff-v2-shell > aside nav > div > button {
  color: #7f8fb0;
  letter-spacing: .06em;
}
#root .staff-portal.staff-v2-shell > div > header {
  /* Mobile: Midnight bar with the menu button (Figma staff mobile). */
  background: var(--v2-midnight);
  border-color: var(--v2-midnight);
}
#root .staff-portal.staff-v2-shell > div > header :is(p, .text-muted-foreground) {
  color: #c9d6ee;
}
@media (min-width: 1024px) {
  /* Desktop: white top bar with Midnight text and light controls (Figma staff desktop). */
  #root .staff-portal.staff-v2-shell > div > header {
    background: #fff;
    color: var(--v2-midnight);
    border-bottom: 1px solid var(--v2-line);
    box-shadow: none;
  }
  #root .staff-portal.staff-v2-shell > div > header p:first-child {
    color: var(--v2-midnight);
  }
  #root .staff-portal.staff-v2-shell > div > header :is(p:not(:first-child), .text-muted-foreground:not(:first-child)) {
    color: var(--v2-muted);
  }
  #root .staff-portal.staff-v2-shell > div > header :is(button, a):not(.rounded-full) {
    background: #fff;
    color: var(--v2-midnight);
    border: 1px solid #c9d1dd;
    border-radius: 999px;
  }
  #root .staff-portal.staff-v2-shell > div > header :is(button, a):not(.rounded-full) * {
    color: inherit;
  }
  #root .staff-portal.staff-v2-shell > div > header .rounded-full.bg-secondary {
    background: var(--v2-mist);
    color: var(--v2-midnight);
  }
}

/* Page headers: light title on Paper instead of the navy banner. */
#root .staff-portal.staff-v2 #staff-main .workspace-page-header {
  background: transparent;
  color: var(--v2-midnight);
  border: 0;
  padding: 4px 0 8px;
}
#root .staff-portal.staff-v2 #staff-main .workspace-page-header::before {
  display: none;
}
#root .staff-portal.staff-v2 #staff-main .workspace-page-header :is(h1, h2) {
  color: var(--v2-midnight);
  font-family: 'Silsila Editorial', 'Silsila Arabic', sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.2;
}
#root .staff-portal.staff-v2[dir="rtl"] #staff-main .workspace-page-header :is(h1, h2) {
  font-family: 'Silsila Arabic', sans-serif;
  font-weight: 800;
  font-size: 27px;
  line-height: 1.45;
}
#root .staff-portal.staff-v2 #staff-main .workspace-page-header :is(p, label, .text-muted-foreground) {
  color: var(--v2-muted);
}
@media (max-width: 640px) {
  #root .staff-portal.staff-v2 #staff-main .workspace-page-header :is(h1, h2) { font-size: 24px; }
}

/* Surfaces: content cards radius 18, line #E1E5EC. */
#root .staff-portal.staff-v2 #staff-main :is(.bg-card, .workspace-surface) {
  border-radius: 18px;
  border-color: var(--v2-line);
  box-shadow: none;
}

/* Inputs: radius 12, stroke #C9D1DD. */
#root .staff-portal.staff-v2 #staff-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  border-radius: 12px;
  border-color: #c9d1dd;
}

/* Primary actions use the v2 blue gradient; secondary stay white with Midnight outline. */
#root .staff-portal.staff-v2 #staff-main :is(.workspace-primary-action, .bg-primary):is(button, a):not(:disabled) {
  background: linear-gradient(105deg, var(--v2-blue), var(--v2-blue-deep));
  border-color: var(--v2-blue-deep);
  color: #fff;
}

/* Filter pills (approvals, my work, notifications). */
#root .staff-portal.staff-v2 #staff-main :is(.staff-approval-filters button, .pr-release-nav a) {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--v2-line);
  background: #fff;
  color: var(--v2-midnight);
}
#root .staff-portal.staff-v2 #staff-main :is(.staff-approval-filters button[aria-pressed="true"], .pr-release-nav a[aria-current="page"]) {
  background: var(--v2-midnight);
  border-color: var(--v2-midnight);
  color: #fff;
}

@media (max-width: 719px) {
  /* These rows use cards on phones, so the staff table minimum no longer applies. */
  #root .staff-portal.staff-v2 #staff-main .staff-approval-table {
    min-width: 0;
  }
}

/* Status line and loaded-record notes. */
#root .staff-portal.staff-v2 #staff-main .workspace-update-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--v2-mist);
  color: var(--v2-blue-deep);
  font-size: 12.5px;
  font-weight: 600;
}
#root .staff-portal.staff-v2 #staff-main .workspace-loaded-note {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--v2-muted);
}

/* Homepage alignment: logo as is on a white chip, Archivo headings, pill buttons with the homepage blue gradient. */
#root .staff-portal.staff-v2-shell .portal-wordmark .staff-v2-logo {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
}
#root .staff-portal.staff-v2-shell .portal-wordmark .staff-v2-logo img {
  display: block;
  inline-size: 132px;
  block-size: auto;
}
#root .staff-portal.staff-v2-shell .portal-wordmark strong {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#root .staff-portal.staff-v2-shell .portal-wordmark > span:not(.staff-v2-logo) {
  display: block;
  margin-top: 6px;
  color: #7f8fb0;
  letter-spacing: .06em;
}
#root .staff-portal.staff-v2 #staff-main :is(h2, h3) {
  font-family: 'Silsila Editorial', 'Silsila Arabic', sans-serif;
  color: var(--v2-midnight);
}
#root .staff-portal.staff-v2[dir="rtl"] #staff-main :is(h2, h3) {
  font-family: 'Silsila Arabic', sans-serif;
}
#root .staff-portal.staff-v2 #staff-main :is(.workspace-primary-action, .workspace-secondary-action, [data-ui="button"], .my-work-page button, .staff-approvals-queue button, .wx-stack button):is(button, a) {
  border-radius: 999px;
}
#root .staff-portal.staff-v2 #staff-main :is(.workspace-secondary-action, .my-work-page button:not([aria-pressed="true"])):is(button, a):not(:disabled) {
  background: #fff;
  border: 1.5px solid var(--v2-midnight);
  color: var(--v2-midnight);
}
#root .staff-portal.staff-v2 #staff-main .my-work-page button[aria-pressed="true"] {
  background: var(--v2-midnight);
  border-color: var(--v2-midnight);
  color: #fff;
}
#root .staff-portal.staff-v2 #staff-main :is(button, a):disabled,
#root .staff-portal.staff-v2 #staff-main [aria-disabled="true"] {
  background: #dbe2ee;
  border-color: #dbe2ee;
  color: #53657e;
}

#root .staff-portal.staff-v2-shell .staff-platform-header {
  gap: 10px;
  min-height: 60px;
  padding-inline: clamp(10px, 2vw, 20px);
}
.staff-v2-shell .staff-mobile-logo {
  margin-inline-end: auto;
  flex-shrink: 0;
  padding: 4px 7px;
  border-radius: 8px;
  background: #fff;
}
.staff-v2-shell .staff-mobile-logo img {
  display: block;
  width: clamp(74px, 22vw, 110px);
  height: auto;
}
.staff-v2-shell .staff-drawer-tools {
  margin-block-start: 16px;
  padding: 12px 8px;
  border-top: 1px solid #ffffff29;
}
.staff-v2-shell .staff-drawer-tools > * {
  display: flex;
  margin-block: 4px;
}
.staff-v2-shell .staff-header-controls .silsila-language-control {
  border-radius: 999px;
  padding: 2px;
}
.staff-v2-shell .staff-header-controls .silsila-language-control button {
  min-width: 0;
  min-height: 44px;
  padding: 4px 9px;
  font-size: 12px;
  border-radius: 999px;
}
.staff-v2-shell .staff-header-controls .silsila-language-control button[aria-pressed="true"] {
  border-color: transparent;
  color: #fff;
  background: #17346b;
}
@media (max-width: 1023px) {
  #root .staff-portal.staff-v2-shell .staff-platform-header { gap: 4px; }
  .staff-v2-shell .staff-header-controls { gap: 4px; }
}

.staff-portal .company-name-line {
  display: inline-flex;
  gap: 5px 8px;
  align-items: center;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.staff-portal .company-verified-badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  color: #0757c6;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
}
.staff-portal .company-verified-badge svg {
  inline-size: 1rem;
  block-size: 1rem;
  padding: 2px;
  border-radius: 50%;
  color: white;
  background: #0757c6;
}

.staff-v2 .staff-ops-filters {
  display: grid;
  gap: 12px;
}
.staff-v2 .staff-ops-pills, .staff-v2 .staff-next-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#root .staff-portal.staff-v2 #staff-main .staff-ops-pills button {
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 650;
  font-size: .8rem;
}
#root .staff-portal.staff-v2 #staff-main .staff-ops-pills button[aria-pressed="true"] {
  color: #fff;
  background: var(--v2-midnight);
}
.staff-v2 .staff-ops-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px;
}
.staff-v2 .staff-next-card {
  display: grid;
  gap: 5px;
  overflow-wrap: anywhere;
}
.staff-v2 .staff-next-card p {
  margin: 0;
  font-size: .8125rem;
  color: var(--v2-muted);
}
.staff-v2 .staff-next-card-actions {
  justify-content: space-between;
}
@media (max-width: 639px) {
  .staff-v2 .staff-ops-toolbar { grid-template-columns: minmax(0, 1fr); }
  .staff-v2 :is(.staff-enquiry-records, .staff-ops-records) .commercial-mobile-cards article {
    border-radius: 14px;
  }
}

#root .staff-portal.staff-v2 #staff-main .customer-card-records .commercial-mobile-cards {
  display: none;
}
#root .staff-portal.staff-v2 #staff-main .staff-enquiry-records .commercial-desktop-table {
  display: none;
}
#root .staff-portal.staff-v2 #staff-main .staff-enquiry-records .commercial-mobile-cards {
  display: grid;
  gap: 10px;
}
.staff-v2 .staff-enquiry-records .commercial-mobile-cards article {
  padding: 12px;
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  background: #fff;
}
.staff-v2 .staff-enquiry-records .commercial-mobile-cards article.is-selected {
  border-color: var(--v2-blue);
  background: #f7faff;
}
@media (max-width: 639px) {
  #root .staff-portal.staff-v2 #staff-main .customer-card-records .commercial-desktop-table {
    display: none;
  }
  #root .staff-portal.staff-v2 #staff-main .customer-card-records .commercial-mobile-cards {
    display: grid;
    gap: 10px;
  }
  .staff-v2 .customer-card-records .commercial-mobile-cards article {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--v2-line);
    border-radius: 14px;
    background: #fff;
    overflow-wrap: anywhere;
  }
  .staff-v2 .customer-card-records .commercial-mobile-cards article.is-selected {
    border-color: var(--v2-blue);
  }
  .staff-v2 .commercial-mobile-cards dl {
    display: grid;
    gap: 7px;
    margin-block-end: 8px;
  }
  .staff-v2 .commercial-mobile-cards dl dt {
    color: var(--v2-muted);
    font-size: .75rem;
  }
}
