@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap");
:root {
  --font-body: "Poppins", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  /* RSD HRMC shared brand system.  Keep these aliases for existing modules. */
  --rsd-primary: #fdbd5a;
  --rsd-primary-hover: #e6a849;
  --rsd-primary-light: #fff3df;
  --rsd-neutral-900: #2f2f2f;
  --rsd-neutral-700: #5f5f5f;
  --rsd-neutral-500: #8b8b8b;
  --rsd-neutral-200: #dedede;
  --rsd-surface: #ffffff;
  --rsd-page-background: #f7f7f5;
  --rsd-border: #d8d8d4;
  --ink: var(--rsd-neutral-900);
  --muted: var(--rsd-neutral-700);
  --line: var(--rsd-border);
  --paper: var(--rsd-page-background);
  --card: var(--rsd-surface);
  --brand: var(--rsd-primary);
  --brand-dark: var(--rsd-neutral-900);
  --accent: var(--rsd-primary);
  --danger: #b84f43;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong,
th,
label,
.eyebrow,
.button,
.badge,
.brand-mark,
.executive-user,
.executive-return-user,
.executive-filters .field span,
.executive-type,
.executive-kicker,
.executive-conversions span,
.executive-result-summary,
.executive-detail-field dt,
.executive-nav a.active,
.client-card-fields dt,
.it-nav-label,
.it-help-queue-link,
.it-status,
.status-pill,
.metric,
.status-tab.active,
.campaign-action.primary,
.stat-card strong,
.summary strong,
.period,
.field label,
.day > span {
  font-family: var(--font-heading);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
.brand-mark {
  font: 700 24px var(--font-heading);
  letter-spacing: 1px;
}
.stat strong {
  display: block;
  font: 700 34px var(--font-heading);
  margin-top: 13px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
.shell {
  display: flex;
  height: 100vh;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: var(--brand-dark);
  color: #f8f4ee;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.brand {
  padding: 0 14px 34px;
}
.brand small {
  display: block;
  color: #f1e4d3;
  margin-top: 5px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav a {
  color: #f2e5d0;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 9px;
}
.nav a.active,
.nav a:hover {
  background: #fdbd5a;
  color: #2f2f2f;
}
.logout {
  margin-top: auto;
  color: #2f2f2f;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
}
.main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100vh;
  padding: 38px clamp(22px, 5vw, 64px);
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}
#page {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.topbar p {
  color: var(--muted);
  margin: 8px 0 0;
}
.button {
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.primary {
  background: var(--accent);
  color: #2f2f2f;
}
.secondary {
  background: #d2d2d2;
  border: 1px solid var(--line);
  color: var(--ink);
}
.danger {
  color: var(--danger);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.stat {
  padding: 22px;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.panel {
  padding: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.table-wrap {
  overflow: auto;
  min-height: 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 14px 10px;
  border-bottom: 1px solid #edf1ef;
  font-size: 14px;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  background: #e6f3ef;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
}
.empty {
  color: var(--muted);
  padding: 25px 0;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.toolbar input,
.toolbar select {
  min-width: 180px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #0b272540;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-card {
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  min-height: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.hidden {
  display: none !important;
}
@media (max-width: 760px) {
  .shell {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    width: auto;
    flex: 0 0 auto;
    padding: 18px;
    position: static;
    overflow: hidden;
  }
  .brand {
    padding: 0 0 16px;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav a {
    white-space: nowrap;
  }
  .logout {
    position: absolute;
    right: 15px;
    top: 14px;
  }
  .main {
    width: 100%;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 28px 16px;
  }
  .cards,
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    display: block;
  }
  #page {
    overflow: auto;
  }
  .topbar .button {
    margin-top: 18px;
  }
}

/* Clients page responsive presentation */
.clients-route .main {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.clients-page {
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.clients-toolbar {
  align-items: center;
}
.clients-toolbar .clients-search {
  flex: 1 1 260px;
  min-width: min(260px, 100%);
}
.clients-toolbar #status {
  flex: 0 1 180px;
}
.clients-toolbar .button {
  white-space: nowrap;
}
.clients-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  scrollbar-width: thin;
}
.clients-table-wrap .table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}
.clients-table-wrap .table {
  min-width: 940px;
}
.clients-table-wrap .table th,
.clients-table-wrap .table td {
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.clients-table-wrap .table th:nth-child(1) {
  min-width: 170px;
}
.clients-table-wrap .table th:nth-child(2) {
  min-width: 145px;
}
.clients-table-wrap .table th:nth-child(3) {
  min-width: 190px;
}
.clients-table-wrap .table th:nth-child(4),
.clients-table-wrap .table th:nth-child(5) {
  min-width: 170px;
}
.client-name-button {
  max-width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.client-name-button:hover {
  color: var(--brand-dark);
}
.client-poc {
  min-width: 0;
  overflow-wrap: anywhere;
}
.client-poc strong,
.client-poc small {
  display: block;
  overflow-wrap: anywhere;
}
.client-poc small {
  margin-top: 3px;
  color: var(--muted);
}
.client-email {
  word-break: break-word;
}
.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}
.client-actions .button {
  padding: 8px 10px;
  font-size: 12px;
}
.client-cards {
  display: none;
}
.client-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e0e0e0;
}
.client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.client-card-fields {
  display: grid;
  gap: 12px;
  margin: 0;
}
.client-card-fields > div {
  min-width: 0;
}
.client-card-fields dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.client-card-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.client-empty {
  margin: 0;
}
.client-modal {
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.client-modal-card,
.client-detail-card {
  width: min(760px, 100%);
  min-width: 0;
}
.client-modal-card .panel-head,
.client-detail-card .panel-head {
  align-items: flex-start;
  gap: 12px;
}
.client-modal-card .panel-head h2,
.client-detail-card .panel-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.client-form {
  min-width: 0;
}
.client-detail-card .grid {
  align-items: start;
}
.client-detail-card .field > div {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.client-activity-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.client-activity-item strong {
  min-width: 0;
  flex: 1 1 220px;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .clients-route .main {
    padding-inline: 28px;
  }
  .clients-page {
    padding: 18px;
  }
  .clients-toolbar .clients-search {
    flex-basis: 220px;
  }
}

@media (max-width: 760px) {
  .clients-route .main {
    padding: 20px 14px 28px;
  }
  .clients-page {
    padding: 14px;
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
  .clients-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .clients-toolbar .clients-search,
  .clients-toolbar #status {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .clients-toolbar .button {
    width: 100%;
  }
  .clients-table-wrap {
    display: none;
  }
  .client-cards {
    display: grid;
    gap: 12px;
  }
  .client-modal {
    place-items: start center;
    padding: 10px;
  }
  .client-modal-card,
  .client-detail-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 18px;
  }
  .client-modal-card .panel-head,
  .client-detail-card .panel-head {
    flex-wrap: wrap;
  }
  .client-modal-card .panel-head h2,
  .client-detail-card .panel-head h2 {
    flex: 1 1 100%;
  }
  .client-form {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .client-form .modal-actions {
    position: sticky;
    bottom: -18px;
    padding: 12px 0 2px;
    background: #fff;
  }
  .client-form .modal-actions .button {
    flex: 1 1 0;
  }
  .client-detail-card .grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .client-actions {
    min-width: 0;
  }
  .client-actions .button {
    flex: 1 1 0;
    min-width: 78px;
  }
}

@media (max-width: 420px) {
  .clients-route .main {
    padding-inline: 10px;
  }
  .clients-page {
    padding: 10px;
    border-radius: 9px;
  }
  .clients-toolbar {
    grid-template-columns: 1fr;
  }
  .clients-toolbar .button {
    grid-column: 1;
  }
  .client-card {
    padding: 13px;
  }
  .client-card-header {
    display: grid;
    gap: 8px;
  }
  .client-modal-card,
  .client-detail-card {
    padding: 14px;
  }
  .client-form .modal-actions {
    bottom: -14px;
  }
}

.executive-shell {
  background: var(--paper);
}
.executive-main {
  width: 100%;
  max-width: none;
  min-width: 0;
  gap: 0;
}
.executive-main .topbar {
  align-items: center;
}
.executive-header-back {
  margin: 0 0 10px;
}
.executive-return-button {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  text-decoration: none;
}
.executive-home-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}
.executive-home-link:hover,
.executive-home-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.executive-user {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.executive-user:hover,
.executive-return-user:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.executive-return-user {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.executive-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.executive-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}
.executive-stats .stat {
  min-width: 0;
}
.executive-stats .stat strong {
  overflow-wrap: anywhere;
}
.executive-stats .stat strong small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.executive-stats .stat > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.executive-activity-panel {
  min-width: 0;
}
.executive-panel-head {
  align-items: flex-start;
  gap: 16px;
}
.executive-panel-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.executive-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.executive-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(125px, 1fr));
  gap: 10px;
  align-items: end;
}
.executive-filters .field {
  min-width: 0;
}
.executive-filters .field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.executive-filters select,
.executive-filters input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}
.executive-table-wrap {
  width: 100%;
  max-height: min(58vh, 740px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  scrollbar-width: thin;
}
.executive-table {
  min-width: 1040px;
}
.executive-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
}
.executive-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.executive-table td:first-child {
  min-width: 155px;
  white-space: nowrap;
}
.executive-table td:nth-child(2) {
  min-width: 150px;
}
.executive-table td:nth-child(3),
.executive-table td:nth-child(4) {
  min-width: 130px;
}
.executive-table td:nth-child(5) {
  min-width: 260px;
}
.executive-table td:last-child {
  min-width: 120px;
}
.executive-type {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  background: #ece5d9;
  color: #55432c;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.executive-cell-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.executive-description {
  max-width: 520px;
}
.executive-ip {
  white-space: nowrap;
}
.executive-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.executive-pagination > div {
  display: flex;
  gap: 8px;
}
.executive-pagination button:disabled,
.executive-toolbar-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.executive-loading,
.executive-error {
  padding: 24px;
}
.executive-error {
  border-color: #b84f43;
  color: #7f3028;
}
.executive-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.executive-section-heading h2 {
  margin: 4px 0 0;
}
.executive-section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}
.executive-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.executive-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.executive-conversions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.executive-conversions article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px 17px;
  background: var(--card);
}
.executive-conversions span,
.executive-result-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.executive-conversions strong {
  color: var(--ink);
  font-size: 22px;
}
.executive-clickable {
  cursor: pointer;
}
.executive-clickable:hover,
.executive-clickable:focus-visible {
  background: var(--rsd-primary-light);
  outline: 2px solid var(--rsd-primary);
  outline-offset: -2px;
}
.executive-performance-table {
  min-width: 1150px;
}
.executive-talent-table {
  min-width: 1050px;
}
.executive-talent-table td:nth-child(2) {
  min-width: 170px;
}
.executive-talent-table td:nth-child(3),
.executive-talent-table td:nth-child(4) {
  min-width: 145px;
}
.executive-result-summary {
  margin: 13px 0;
}
.executive-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.executive-quick-links .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.executive-quick-links .panel span {
  color: var(--muted);
  font-size: 13px;
}
.executive-detail-panel {
  min-width: 0;
}
.executive-detail-panel h2 {
  margin: 0 0 16px;
}
.executive-detail-panel > p {
  margin: 0;
  color: var(--muted);
}
.executive-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.executive-detail-field {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .48);
}
.executive-detail-field dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.executive-detail-field dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.executive-nav a.active {
  font-weight: 800;
}

@media (max-width: 1100px) {
  .executive-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .executive-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .executive-conversions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .executive-shell {
    height: 100vh;
    min-height: 0;
  }
  .executive-shell .sidebar {
    flex: 0 0 auto;
    padding: 14px 16px;
  }
  .executive-shell .brand {
    padding-bottom: 10px;
  }
  .executive-shell .nav {
    display: flex;
    overflow-x: auto;
  }
  .executive-shell .logout {
    top: 12px;
    right: 12px;
  }
  .executive-main {
    height: auto;
    min-height: 0;
    padding: 18px 14px;
  }
  .executive-main .topbar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }
  .executive-main .topbar h1 {
    font-size: 24px;
  }
  .executive-user {
    max-width: 34%;
    padding-top: 22px;
    font-size: 12px;
  }
  .executive-stats {
    grid-template-columns: 1fr 1fr;
  }
  .executive-stats .stat:last-child {
    grid-column: auto;
  }
  .executive-stats .stat:last-child {
    grid-column: 1 / -1;
  }
  .executive-stats .stat {
    padding: 15px;
  }
  .executive-stats .stat strong {
    font-size: 26px;
  }
  .executive-activity-panel {
    padding: 16px;
  }
  .executive-panel-head {
    flex-wrap: wrap;
  }
  .executive-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .executive-detail-grid {
    grid-template-columns: 1fr;
  }
  .executive-conversions {
    grid-template-columns: 1fr 1fr;
  }
  .executive-quick-links {
    grid-template-columns: 1fr;
  }
  .executive-toolbar-actions {
    width: 100%;
  }
  .executive-toolbar-actions .button {
    flex: 1;
  }
  .executive-filters {
    grid-template-columns: 1fr 1fr;
  }
  .executive-filters .field:nth-child(-n+4) {
    grid-column: 1 / -1;
  }
  .executive-table-wrap {
    max-height: 54vh;
  }
  .executive-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .executive-shell .sidebar {
    padding: 12px;
  }
  .executive-main {
    padding-inline: 10px;
  }
  .executive-main .topbar h1 {
    font-size: 21px;
  }
  .executive-filters {
    grid-template-columns: 1fr;
  }
  .executive-conversions {
    grid-template-columns: 1fr;
  }
  .executive-filters .field:nth-child(-n+4) {
    grid-column: auto;
  }
  .executive-pagination > div {
    width: 100%;
  }
  .executive-pagination .button {
    flex: 1;
  }
}
