@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Rubik:wght@600;700;800&display=swap");

:root {
  --nr-black: #102a4c;
  --nr-ink: #102a4c;
  --nr-muted: #5d6f82;
  --nr-line: #cfd8dc;
  --nr-soft: #e6f4fa;
  --nr-paper: #ffffff;
  --nr-red: #102a4c;
  --nr-red-dark: #0b1d36;
  --nr-sidebar: #f8f9fb;
  --nr-table-head: #a1b1c0;
  --nr-radius: 8px;
  font-family: "Roboto", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f8f9fb;
  color: var(--nr-ink);
  font-family: "Roboto", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.customer-shell {
  min-height: 100vh;
  padding: 22px;
}

.customer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.customer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  padding: 0 12px;
  background: var(--nr-paper);
  color: var(--nr-muted);
  font-weight: 800;
}

.customer-nav a.active {
  border-color: var(--nr-red);
  background: var(--nr-red);
  color: var(--nr-paper);
}

.customer-login-page {
  min-height: calc(100vh - 130px);
}

.login-box.standalone {
  width: min(100%, 430px);
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  gap: 18px;
}

.login-shell {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  overflow: hidden;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.login-intro,
.login-box {
  padding: clamp(28px, 5vw, 64px);
}

.login-intro {
  display: flex;
  min-height: 640px;
  flex-direction: column;
  justify-content: space-between;
}

.login-box {
  display: grid;
  align-content: center;
  border-left: 1px solid var(--nr-line);
}

.brand-name,
.page-title,
.panel-title {
  font-family: "Rubik", Arial, sans-serif;
  letter-spacing: 0;
}

.brand-name {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 0.92;
  white-space: nowrap;
}

.brand-services {
  display: block;
}

.customer-shell .brand-name {
  font-size: clamp(28px, 4vw, 48px);
}

.kicker,
.brand-role,
.nav-title {
  color: var(--nr-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy {
  max-width: 560px;
  color: var(--nr-muted);
  font-size: 17px;
  line-height: 1.8;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--nr-muted);
  font-size: 13px;
}

.mini-table td {
  border-top: 1px solid var(--nr-line);
  padding: 14px 0;
}

.mini-table td:last-child {
  color: var(--nr-ink);
  font-weight: 700;
  text-align: right;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--nr-line);
  background: var(--nr-sidebar);
  padding: 22px;
}

.sidebar .brand-name {
  font-size: 28px;
}

.brand-lockup {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-toggle-label {
  display: none;
}

.sidebar nav {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cfcfcf transparent;
}

.sidebar nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cfcfcf;
}

.nav-section {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.nav-title {
  margin: 12px 0 4px;
  font-size: 12px;
}

.nav-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--nr-radius);
  padding: 0 12px;
  color: var(--nr-ink);
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover {
  background: var(--nr-soft);
  color: var(--nr-ink);
}

.nav-link.active {
  background: var(--nr-soft);
  color: var(--nr-ink);
}

.sidebar-footer {
  flex: 0 0 auto;
  margin-top: 16px;
  border-top: 1px solid var(--nr-line);
  padding-top: 18px;
  color: var(--nr-muted);
  font-size: 13px;
  line-height: 1.6;
}

.main {
  overflow-x: hidden;
  min-width: 0;
  padding: 24px;
}

.topbar,
.panel,
.metric {
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.04);
}

.topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--nr-soft);
  padding: 14px 18px;
}

.page-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
}

.page-subtitle {
  margin: 6px 0 0;
  color: var(--nr-muted);
  font-size: 14px;
}

.customer-shell .topbar .page-subtitle {
  display: none;
}

.customer-shell .topbar .page-title {
  display: none;
}

.customer-shell .topbar {
  min-height: 0;
  padding-block: 18px;
}

.actions,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  padding: 0 14px;
  background: var(--nr-paper);
  color: var(--nr-ink);
  cursor: pointer;
  font-weight: 700;
}

.btn.primary {
  border-color: var(--nr-red);
  background: var(--nr-red);
  color: var(--nr-paper);
}

.btn.primary:hover {
  background: var(--nr-red-dark);
}

.btn.danger {
  border-color: var(--nr-red);
  background: var(--nr-red);
  color: var(--nr-paper);
}

.btn.danger:hover {
  background: var(--nr-red-dark);
}

.btn.black {
  border-color: var(--nr-black);
  background: var(--nr-black);
  color: var(--nr-paper);
}

.btn.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.metric {
  min-width: 0;
  min-height: 126px;
  background: var(--nr-soft);
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--nr-muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 18px;
  font-family: "Rubik", Arial, sans-serif;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.customer-dashboard .metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.customer-dashboard .metric {
  min-height: 106px;
  padding: 16px 20px;
}

.customer-dashboard .metric strong {
  margin-top: 14px;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--nr-line);
  padding: 16px 18px;
}

.panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.panel-body {
  padding: 18px;
}

.panel-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--nr-line);
  padding: 16px 18px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--nr-line);
}

.wizard-steps span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--nr-line);
  color: var(--nr-muted);
  font-size: 13px;
  font-weight: 800;
}

.wizard-steps span:last-child {
  border-right: 0;
}

.wizard-steps .active {
  background: var(--nr-red);
  color: var(--nr-paper);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.choice-card {
  display: flex;
  min-height: 86px;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  padding: 14px;
  background: #fbfbfb;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--nr-red);
  background: #fff6f7;
  box-shadow: inset 0 0 0 1px var(--nr-red);
}

.choice-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--nr-red);
}

.choice-card span {
  display: grid;
  gap: 6px;
}

.choice-card strong {
  line-height: 1.35;
}

.choice-card small {
  color: var(--nr-muted);
  font-size: 12px;
  font-weight: 700;
}

.wizard-group {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.wizard-group h2 {
  margin: 0;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 18px;
}

.company-choice-list {
  display: grid;
  gap: 10px;
}

.company-choice {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 10px;
  align-items: center;
}

.company-choice.company-choice-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: #ffffff;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.company-choice.company-choice-card:has(.company-choice-check:checked) {
  background: var(--nr-soft);
  border-color: var(--nr-line);
  box-shadow: inset 0 0 0 1px rgba(16, 42, 76, 0.16);
}

.company-choice-main {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.company-choice-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.company-choice-check {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--nr-red);
}

.company-choice-meta {
  display: grid;
  gap: 6px;
}

.company-choice-meta strong {
  line-height: 1.35;
}

.company-choice-meta small {
  color: var(--nr-muted);
  font-size: 12px;
  font-weight: 700;
}

.company-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 30px;
}

.company-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--nr-line);
  border-radius: 999px;
  padding: 0 12px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.company-type-option:has(input:checked) {
  background: #ffffff;
  border-color: rgba(16, 42, 76, 0.3);
}

.company-type-option input {
  margin: 0;
  accent-color: var(--nr-red);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--nr-line);
  padding: 14px 12px;
  text-align: left;
}

.data-table th {
  background: var(--nr-table-head);
  color: var(--nr-ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table.compact {
  min-width: 680px;
}

.data-table.news-table {
  min-width: 1080px;
}

.data-table.compact th,
.data-table.compact td {
  padding: 12px;
  vertical-align: top;
}

.empty-state {
  margin: 0;
  color: var(--nr-muted);
  font-size: 14px;
  font-weight: 700;
}

.muted {
  color: var(--nr-muted);
  font-size: 12px;
}

.news-headline {
  display: inline-block;
  max-width: 380px;
  color: var(--nr-ink);
  font-weight: 700;
  line-height: 1.5;
}

.news-headline:hover,
.text-link:hover {
  color: var(--nr-red);
}

.text-link {
  color: var(--nr-red);
  font-size: 12px;
  font-weight: 700;
}

.icon-link {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  color: var(--nr-red);
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease;
}

.icon-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: var(--nr-red);
  background: var(--nr-soft);
  color: var(--nr-red-dark);
  transform: translateY(-1px);
}

.icon-link:focus-visible {
  outline: 2px solid var(--nr-red);
  outline-offset: 2px;
}

.news-detail {
  gap: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 0;
}

.detail-grid div {
  min-height: 78px;
  border: 1px solid #eeeeee;
  border-radius: var(--nr-radius);
  padding: 12px;
  background: #fbfbfb;
}

.detail-grid dt {
  color: var(--nr-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 8px 0 0;
  font-weight: 700;
  line-height: 1.45;
}

.article-copy {
  color: var(--nr-ink);
  line-height: 1.8;
  white-space: pre-wrap;
}

.article-copy h3 {
  margin: 0 0 8px;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 16px;
}

.article-copy p {
  margin: 0 0 18px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.image-item {
  overflow: hidden;
  border: 1px solid #eeeeee;
  border-radius: var(--nr-radius);
  background: #fbfbfb;
}

.image-item img,
.image-placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: var(--nr-muted);
  object-fit: cover;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.image-meta {
  display: grid;
  gap: 4px;
  padding: 10px;
  font-size: 12px;
}

.image-meta strong {
  overflow-wrap: anywhere;
}

.image-meta span {
  color: var(--nr-muted);
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.export-actions form {
  display: inline-flex;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.report-grid .panel {
  display: flex;
  flex-direction: column;
}

.report-grid .panel-body {
  flex: 1;
  background: #ffffff !important;
}

.report-grid .table-wrap {
  overflow-x: hidden;
}

.report-grid .data-table.compact {
  min-width: 0;
  table-layout: fixed;
}

.report-grid .data-table.compact th {
  background: var(--nr-table-head);
  color: var(--nr-ink);
}

.report-grid .data-table.compact th,
.report-grid .data-table.compact td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report-grid .data-table.compact th:nth-child(1),
.report-grid .data-table.compact td:nth-child(1) {
  width: 52%;
}

.report-grid .data-table.compact th:nth-child(2),
.report-grid .data-table.compact td:nth-child(2) {
  width: 18%;
}

.report-grid .data-table.compact th:nth-child(3),
.report-grid .data-table.compact td:nth-child(3) {
  width: 30%;
}

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

.export-preview .export-header {
  border-bottom: 2px solid var(--nr-red);
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.export-preview .export-news {
  border-bottom: 1px solid var(--nr-line);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.export-preview .export-media-head {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0 0 10px;
}

.export-preview .export-label-col {
  width: 14%;
}

.export-preview .export-value-col {
  width: 19%;
}

.export-preview .export-media-head th,
.export-preview .export-media-head td {
  border: 1px solid var(--nr-line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.export-preview .export-media-head th {
  background: var(--nr-soft);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.export-preview .export-logo {
  width: 96px;
  text-align: center;
  vertical-align: middle;
  background: #ffffff;
}

.export-preview .export-logo img,
.export-preview .export-mobile-logo img {
  max-width: 82px;
  max-height: 58px;
  width: auto;
  height: auto;
}

.export-preview .export-mobile-logo {
  display: none;
}

.export-preview .export-images {
  overflow-x: auto;
}

.export-preview .export-images .export-news-image {
  display: block;
  width: max(50vw, 800px) !important;
  min-width: max(50vw, 800px);
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 auto 14px;
}

.export-preview .export-companies span {
  display: inline-block;
  border: 1px solid var(--nr-line);
  border-radius: 999px;
  margin: 0 4px 6px 0;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--nr-soft);
  color: var(--nr-ink);
  font-size: 12px;
  font-weight: 700;
}

.status.dark {
  background: var(--nr-black);
  color: var(--nr-paper);
}

.status.red {
  background: #fff0f1;
  color: var(--nr-red);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(140px, 1fr)) auto;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--nr-line);
}

.filter-bar.news-filter {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-bar.export-filter {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-bar.customer-news-filter {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-bar .btn {
  width: 100%;
}

.filter-bar.news-filter .btn,
.filter-bar.export-filter .btn,
.filter-bar.customer-news-filter .btn {
  min-width: 160px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nr-line);
  background: #ffffff;
}

.bulk-select-all {
  flex-wrap: wrap;
}

.bulk-actions-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--nr-muted);
  font-size: 12px;
}

.image-preview-card {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.image-preview-card__image {
  max-width: 220px;
  max-height: 140px;
  width: auto;
  height: auto;
  display: block;
  padding: 10px;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  object-fit: contain;
}

.field input,
.field select,
.control {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  color: var(--nr-ink);
  padding: 0 12px;
  outline: none;
}

.textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

.check-row {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.check-stack {
  display: grid;
  gap: 6px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--nr-red);
}

.field input:focus,
.field select:focus,
.control:focus {
  border-color: var(--nr-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.multi-select {
  display: grid;
  gap: 8px;
}

.multi-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.multi-select-combobox {
  display: grid;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  padding: 10px;
  cursor: pointer;
}

.multi-select.open .multi-select-combobox,
.multi-select-combobox:focus-within {
  border-color: var(--nr-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.multi-select-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.multi-select-trigger {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nr-line);
  border-radius: 999px;
  background: var(--nr-paper);
  padding: 0 12px;
  color: var(--nr-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.multi-select-trigger::after {
  content: "▾";
  margin-left: 8px;
  font-size: 11px;
}

.multi-select.open .multi-select-trigger::after {
  content: "▴";
}

.multi-select-summary {
  color: var(--nr-muted);
  font-size: 13px;
  font-weight: 700;
}

.multi-select-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.multi-select-placeholder {
  color: var(--nr-muted);
  font-size: 14px;
}

.multi-select-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(193, 18, 31, 0.18);
  border-radius: 999px;
  background: #fff2f4;
  padding: 0 10px;
  color: var(--nr-red);
  font-size: 13px;
  font-weight: 700;
}

.multi-select-tag button {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(193, 18, 31, 0.12);
  color: var(--nr-red);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.multi-select-panel {
  display: none;
  gap: 10px;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: #fbfbfb;
  padding: 10px;
}

.multi-select.open .multi-select-panel {
  display: grid;
}

.multi-select-search {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  padding: 0 12px;
}

.multi-select-search:focus {
  border-color: var(--nr-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
  outline: none;
}

.multi-select-options {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.multi-select-option {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid #ececec;
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.multi-select-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--nr-red);
}

.multi-select-option.is-selected {
  border-color: rgba(193, 18, 31, 0.25);
  background: #fff5f6;
}

.multi-select-empty {
  border: 1px dashed var(--nr-line);
  border-radius: var(--nr-radius);
  padding: 12px;
  color: var(--nr-muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.alert {
  border-radius: var(--nr-radius);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.alert.success {
  border: 1px solid #bcd7c0;
  background: #f0faf2;
  color: #1b6b2a;
}

.alert.error {
  border: 1px solid #efb5bd;
  background: #fff0f1;
  color: var(--nr-red);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-modal.open {
  display: flex;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.confirm-dialog {
  position: relative;
  display: grid;
  width: min(100%, 420px);
  gap: 18px;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  padding: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.confirm-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--nr-red);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.confirm-title {
  margin: 0;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.confirm-message {
  margin: 8px 0 0;
  color: var(--nr-muted);
  font-size: 14px;
  line-height: 1.7;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pagination {
  padding: 16px 18px;
}

.pagination nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--nr-muted);
  font-size: 13px;
}

.pagination nav > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pagination span,
.pagination a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--nr-radius);
  color: inherit;
  line-height: 1;
}

.pagination a {
  border: 1px solid var(--nr-line);
  padding: 0 10px;
  background: var(--nr-paper);
  color: var(--nr-ink);
  font-weight: 700;
}

.pagination a:hover {
  border-color: var(--nr-red);
  color: var(--nr-red);
}

.pagination [aria-current="page"] span,
.pagination span[aria-current="page"] {
  border: 1px solid var(--nr-red);
  background: var(--nr-red);
  color: var(--nr-paper);
  padding: 0 10px;
  font-weight: 700;
}

.pagination [aria-disabled="true"] span {
  border: 1px solid #eeeeee;
  padding: 0 10px;
  color: #b7b7b7;
}

.pagination svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}

.pagination p {
  margin: 0;
}

@media (max-width: 1100px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    overflow: visible;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .login-shell,
  .form-grid,
  .filter-bar,
  .metrics {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: auto;
  }

  .login-box {
    border-left: 0;
    border-top: 1px solid var(--nr-line);
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--nr-line);
    padding: 18px;
  }

  .brand-lockup {
    margin-bottom: 14px;
  }

  .sidebar .brand-name {
    font-size: 24px;
  }

  .nav-toggle-label {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--nr-black);
    border-radius: var(--nr-radius);
    padding: 0 12px;
    background: var(--nr-black);
    color: var(--nr-paper);
    cursor: pointer;
    font-weight: 700;
  }

  .nav-toggle-label::after {
    content: "+";
    font-family: "Rubik", Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
  }

  .nav-toggle:checked + .nav-toggle-label::after {
    content: "-";
  }

  .sidebar nav,
  .sidebar .sidebar-footer {
    display: none;
  }

  .nav-toggle:checked ~ nav {
    display: block;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    margin-top: 14px;
  }

  .nav-toggle:checked ~ .sidebar-footer {
    display: block;
  }

  .main {
    width: 100%;
    padding: 14px;
  }

  .topbar,
  .customer-topbar,
  .customer-actions,
  .panel-header,
  .panel-footer,
  .bulk-actions,
  .bulk-actions-meta,
  .topbar-actions,
  .actions,
  .confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-nav,
  .customer-actions form,
  .customer-actions .btn {
    width: 100%;
  }

  .customer-nav a {
    flex: 1 1 0;
    justify-content: center;
  }

  .customer-shell {
    padding: 12px;
  }

  .panel-body {
    padding: 12px;
  }

  .export-preview {
    padding: 12px;
    overflow: hidden;
  }

  .export-preview .export-news {
    width: 100%;
  }

  .export-preview .export-mobile-logo {
    display: block;
    margin-bottom: 10px;
    text-align: center;
  }

  .export-preview .export-logo {
    display: none;
  }

  .export-preview .export-media-head,
  .export-preview .export-media-head tbody,
  .export-preview .export-media-head tr {
    display: block;
    width: 100%;
  }

  .export-preview .export-media-head th {
    display: none;
  }

  .export-preview .export-media-head td {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(108px, 34%) minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--nr-line);
    border-bottom: 0;
    padding: 8px 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .export-preview .export-media-head td:last-child {
    border-bottom: 1px solid var(--nr-line);
  }

  .export-preview .export-media-head td::before {
    content: attr(data-label);
    color: var(--nr-ink);
    font-weight: 800;
  }

  .export-preview .export-media-head td:not([data-label]) {
    display: none;
  }

  .export-preview .export-images {
    margin-top: 14px;
  }

  .export-preview .export-images img {
    max-width: 100% !important;
    max-height: none !important;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .wizard-steps span {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--nr-line);
    padding: 0 14px;
  }

  .company-choice {
    grid-template-columns: 1fr;
  }

  .brand-name {
    white-space: normal;
  }

  .multi-select-head {
    align-items: stretch;
    flex-direction: column;
  }

  .multi-select-trigger {
    width: 100%;
  }
}

/* Theme refresh: customer navy palette + sidebar scroll cleanup */
:root {
  --nr-black: #102a4c;
  --nr-blue: #102a4c;
  --nr-blue-strong: #0b1d36;
  --nr-blue-soft-2: #e6f4fa;
  --nr-blue-soft: #e6f4fa;
  --nr-ink: #102a4c;
  --nr-muted: #5d6f82;
  --nr-line: #cfd8dc;
  --nr-soft: #e6f4fa;
  --nr-red: #102a4c;
  --nr-red-dark: #0b1d36;
  --nr-sidebar: #f8f9fb;
  --nr-table-head: #a1b1c0;
}

body {
  background: #f8f9fb;
}

.sidebar {
  overflow: hidden;
  background: var(--nr-sidebar);
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 42, 76, 0.24) transparent;
}

.sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 12px;
}

.app-shell > .sidebar {
  overflow: hidden !important;
}

.app-shell > .sidebar nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  max-height: none !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(16, 42, 76, 0.24) transparent !important;
}

.app-shell > .sidebar nav::-webkit-scrollbar {
  width: 6px !important;
}

.app-shell > .sidebar nav::-webkit-scrollbar-track {
  background: transparent !important;
}

.app-shell > .sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(16, 42, 76, 0.24) !important;
}

.sidebar-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: var(--nr-paper);
}

.topbar,
.panel,
.metric {
  box-shadow: 0 12px 30px rgba(16, 42, 76, 0.08);
  border-color: var(--nr-line) !important;
  background: var(--nr-paper) !important;
}

.topbar,
.metric {
  background: var(--nr-soft) !important;
}

.topbar-accent {
  background:
    linear-gradient(135deg, rgba(230, 244, 250, 0.92) 0, rgba(230, 244, 250, 0.68) 52%, rgba(230, 244, 250, 0.82) 100%),
    var(--nr-blue-soft) !important;
}

.nav-link:hover {
  background: var(--nr-blue-soft);
  color: var(--nr-blue);
}

.btn.primary,
.btn.danger {
  background: var(--nr-blue) !important;
  border-color: var(--nr-blue) !important;
  color: var(--nr-paper) !important;
}

.nav-link.active {
  background: var(--nr-soft) !important;
  border-color: var(--nr-soft) !important;
  color: var(--nr-ink) !important;
}

.btn.primary:hover,
.btn.danger:hover {
  background: var(--nr-blue-strong) !important;
}

.btn.black,
.customer-nav a.active {
  background: var(--nr-blue-soft-2) !important;
  border-color: var(--nr-line) !important;
  color: var(--nr-ink) !important;
}

.metric {
  background: var(--nr-blue-soft) !important;
}

.status.blue {
  background: var(--nr-blue-soft);
  color: var(--nr-blue);
}

.choice-card:has(input:checked) {
  border-color: var(--nr-line);
  background: var(--nr-soft);
  box-shadow: inset 0 0 0 1px rgba(16, 42, 76, 0.16);
}

.btn {
  border-color: var(--nr-line) !important;
}

.panel-header,
.panel-footer,
.filter-bar,
.wizard-steps,
.wizard-steps span,
.data-table th,
.data-table td,
.mini-table td,
.detail-grid div,
.export-preview,
.export-preview .export-media-head th,
.export-preview .export-media-head td,
.multi-select-panel,
.multi-select-option {
  border-color: var(--nr-line) !important;
}

.panel-body,
.detail-grid div,
.image-item,
.export-preview,
.multi-select-panel,
.multi-select-option {
  background: rgba(255, 255, 255, 0.42);
}

.panel-body {
  background: #ffffff !important;
}

.table-wrap,
.data-table,
.data-table tbody,
.data-table tr,
.data-table td,
.mini-table,
.mini-table tr,
.mini-table td {
  background: #ffffff !important;
}

.data-table th,
.data-table td,
.mini-table td {
  border-color: var(--nr-line) !important;
}

.data-table {
  border: 1px solid var(--nr-line);
}

.data-table th {
  background: var(--nr-table-head) !important;
  color: var(--nr-ink);
}

.field input:focus,
.field select:focus,
.control:focus,
.multi-select.open .multi-select-combobox,
.multi-select-combobox:focus-within,
.multi-select-search:focus {
  border-color: var(--nr-blue);
  box-shadow: 0 0 0 3px rgba(16, 42, 76, 0.12);
}

.multi-select-trigger::after {
  content: "v";
}

.multi-select.open .multi-select-trigger::after {
  content: "^";
}

@media (max-width: 720px) {
  .nav-toggle-label {
    border-color: var(--nr-blue);
    background: var(--nr-blue);
  }
}

/* Client adjustment: match annotated navy/light-blue report direction */
:root {
  --nr-ink: #102a4c;
  --nr-muted: #5d6f82;
  --nr-line: #cfd8dc;
  --nr-soft: #e6f4fa;
  --nr-sidebar: #f8f9fb;
  --nr-table-head: #a1b1c0;
  --nr-menu-line: #5f6770;
}

body {
  background: #f8f9fb !important;
  color: #102a4c !important;
}

.sidebar {
  background: #f8f9fb !important;
  border-right: 1px solid var(--nr-menu-line) !important;
}

.sidebar-footer,
.sidebar nav,
.nav-section {
  background: #f8f9fb !important;
}

.brand-name,
.page-title,
.panel-title,
.metric strong {
  color: #102a4c !important;
}

.customer-shell .brand-name {
  color: #1E293B !important;
}

.brand-lockup,
.sidebar-footer {
  border-bottom: 1px solid var(--nr-menu-line);
}

.nav-section {
  gap: 6px;
  padding-bottom: 14px;
}

.nav-link {
  border: 1px solid transparent;
  border-bottom-color: rgba(95, 103, 112, 0.28);
  border-radius: var(--nr-radius);
  background: transparent;
  color: #102a4c !important;
}

.nav-link:hover,
.nav-link.active {
  border-color: #e6f4fa !important;
  background: #e6f4fa !important;
  color: #102a4c !important;
}

.topbar,
.metric {
  background: #e6f4fa !important;
  border-color: var(--nr-menu-line) !important;
  box-shadow: none !important;
}

.panel,
.metric,
.choice-card,
.detail-grid div,
.image-item,
.export-preview,
.multi-select-combobox,
.multi-select-panel,
.multi-select-option,
.login-shell,
.login-box.standalone,
.confirm-dialog {
  border-color: var(--nr-menu-line) !important;
}

.panel,
.panel-header,
.panel-body,
.panel-footer,
.filter-bar,
.form-grid,
.field,
.table-wrap,
.data-table,
.data-table thead,
.data-table tbody,
.data-table tr,
.data-table th,
.data-table td,
.mini-table,
.mini-table tr,
.mini-table td,
.detail-grid div,
.export-preview,
.multi-select-combobox,
.multi-select-panel,
.multi-select-option,
.choice-card,
.image-item {
  background: #ffffff !important;
}

.data-table {
  border: 1px solid var(--nr-menu-line);
}

.data-table th {
  border-bottom: 1px solid var(--nr-menu-line) !important;
  background: #a1b1c0 !important;
  color: #102a4c !important;
}

.data-table tbody td {
  transition: background-color 0.16s ease, color 0.16s ease;
}

.data-table tbody tr:hover td {
  background: var(--nr-soft) !important;
  color: var(--nr-ink) !important;
}

.field input,
.field select,
.field textarea,
.control,
.textarea,
.multi-select-search {
  background: #ffffff !important;
  border-color: #cfd8dc !important;
  color: #102a4c !important;
}

@media (max-width: 720px) {
  .sidebar {
    border-right: 0 !important;
    border-bottom: 1px solid var(--nr-menu-line) !important;
  }

  .nav-toggle-label {
    border-color: var(--nr-menu-line) !important;
    background: #f8f9fb !important;
    color: var(--nr-ink) !important;
  }
}

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

.customer-dashboard-filter {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  align-items: end;
  border-bottom: 0;
}

.customer-dashboard-date-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  box-shadow: 0 12px 30px rgba(16, 42, 76, 0.08);
}

.customer-dashboard-date-filter .customer-filter-field {
  min-width: 190px;
}

.customer-dashboard-filter__keyword {
  grid-column: span 2;
}

.customer-filter-field {
  display: grid;
  gap: 7px;
  color: var(--nr-ink);
  font-size: 13px;
  font-weight: 800;
}

.customer-filter-field > span {
  color: var(--nr-muted);
  letter-spacing: 0.02em;
}

.customer-dashboard-all-dates {
  min-height: 42px;
  padding: 0 4px;
}

.customer-dashboard-search {
  min-width: 150px;
}

.customer-dashboard-brand {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  padding: 18px 28px;
  background: var(--nr-paper);
  box-shadow: 0 12px 30px rgba(16, 42, 76, 0.08);
}

.customer-dashboard-brand img {
  display: block;
  max-width: min(100%, 520px);
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.customer-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.customer-dashboard-current-actions {
  margin-top: 0;
  padding: 14px 16px;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
  box-shadow: 0 12px 30px rgba(16, 42, 76, 0.08);
}

.customer-dashboard-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.customer-dashboard-summary .table-wrap {
  overflow-x: hidden;
}

.customer-dashboard-summary .data-table.compact {
  min-width: 0;
  table-layout: fixed;
}

.customer-dashboard-summary .data-table.compact th,
.customer-dashboard-summary .data-table.compact td {
  white-space: normal;
  word-break: break-word;
}

.customer-dashboard-summary .data-table.compact th:nth-child(1),
.customer-dashboard-summary .data-table.compact td:nth-child(1) {
  width: 72%;
}

.customer-dashboard-summary .data-table.compact th:nth-child(2),
.customer-dashboard-summary .data-table.compact td:nth-child(2) {
  width: 28%;
}

.customer-dashboard-summary .data-table.compact.has-word-export th:nth-child(1),
.customer-dashboard-summary .data-table.compact.has-word-export td:nth-child(1) {
  width: 60%;
}

.customer-dashboard-summary .data-table.compact.has-word-export th:nth-child(2),
.customer-dashboard-summary .data-table.compact.has-word-export td:nth-child(2) {
  width: 15%;
}

.customer-dashboard-summary .data-table.compact.has-word-export th:nth-child(3),
.customer-dashboard-summary .data-table.compact.has-word-export td:nth-child(3) {
  width: 25%;
}

.customer-dashboard-summary .has-word-export .btn {
  white-space: nowrap;
}

.customer-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.customer-dashboard-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--nr-line);
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--nr-ink);
  font-weight: 700;
}

.customer-dashboard-tab.active {
  border-color: var(--nr-ink);
  background: var(--nr-soft);
}

.customer-dashboard-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.customer-dashboard-print-copy {
  font-weight: 600;
}

.customer-dashboard-table td:nth-child(2) {
  min-width: 560px;
}

.customer-dashboard-table .news-headline {
  max-width: 560px;
}

.customer-news-table td:nth-child(2) {
  min-width: 560px;
}

.customer-news-table .news-headline {
  max-width: 560px;
}

.customer-shell .data-table th {
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: none;
}

.customer-shell .data-table.compact th {
  font-size: clamp(18px, 1.2vw, 22px);
}

@media (max-width: 720px) {
  .customer-dashboard-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-dashboard-filter__keyword {
    grid-column: auto;
  }

  .customer-dashboard-date-filter .customer-filter-field {
    width: 100%;
  }

  .customer-dashboard-tabs {
    gap: 8px;
  }

  .customer-dashboard-tab {
    width: 100%;
    justify-content: center;
  }

  .customer-dashboard-table td:nth-child(2) {
    min-width: 220px;
  }
}

/* Clean Slate & Teal client theme */
:root {
  --nr-black: #1e293b;
  --nr-ink: #0f172a;
  --nr-muted: #64748b;
  --nr-line: #cbd5e1;
  --nr-soft: #e2e8f0;
  --nr-paper: #ffffff;
  --nr-red: #47717a;
  --nr-red-dark: #365860;
  --nr-sidebar: #1e293b;
  --nr-table-head: #5a6a75;
  --nr-blue: #47717a;
  --nr-blue-strong: #365860;
  --nr-blue-soft: #e2e8f0;
  --nr-blue-soft-2: #e2e8f0;
  --nr-menu-line: #334155;
}

body {
  background: #f0f4f8 !important;
  color: var(--nr-ink) !important;
}

.sidebar,
.sidebar-footer,
.sidebar nav,
.nav-section {
  background: var(--nr-sidebar) !important;
}

.sidebar {
  border-right-color: var(--nr-menu-line) !important;
}

.brand-name,
.brand-role,
.nav-title,
.sidebar-footer,
.nav-link {
  color: var(--nr-muted) !important;
}

.brand-lockup,
.sidebar-footer {
  border-color: var(--nr-menu-line) !important;
}

.nav-link {
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--nr-soft) !important;
  background: var(--nr-soft) !important;
  color: var(--nr-ink) !important;
}

.topbar,
.topbar-accent {
  background: var(--nr-paper) !important;
  border-color: var(--nr-line) !important;
}

.panel,
.panel-header,
.panel-body,
.panel-footer,
.filter-bar,
.form-grid,
.field,
.table-wrap,
.data-table,
.data-table thead,
.data-table tbody,
.data-table tr,
.data-table td,
.mini-table,
.mini-table tr,
.mini-table td {
  background: var(--nr-paper) !important;
}

.panel,
.metric,
.choice-card,
.detail-grid div,
.image-item,
.export-preview,
.multi-select-combobox,
.multi-select-panel,
.multi-select-option,
.login-shell,
.login-box.standalone,
.confirm-dialog {
  border-color: var(--nr-line) !important;
}

.metric {
  background: var(--nr-sidebar) !important;
  border-color: var(--nr-sidebar) !important;
}

.metric span {
  color: #cbd5e1 !important;
}

.metric strong {
  color: var(--nr-paper) !important;
}

.data-table {
  border-color: var(--nr-line) !important;
}

.data-table th,
.report-grid .data-table.compact th,
.customer-shell .data-table th {
  background: var(--nr-table-head) !important;
  border-color: var(--nr-table-head) !important;
  color: var(--nr-paper) !important;
}

.data-table tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}

.data-table tbody tr:hover td {
  background: var(--nr-soft) !important;
  color: var(--nr-ink) !important;
}

.btn.primary {
  border-color: #47717a !important;
  background: #47717a !important;
  color: var(--nr-paper) !important;
}

.btn.primary:hover {
  border-color: #365860 !important;
  background: #365860 !important;
}

.status.waiting {
  background: #fde6d2 !important;
  color: #d97706 !important;
}

.status.live {
  background: #ecfdf5 !important;
  color: #10b981 !important;
}

.status.live::before {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #10b981;
  content: "";
}

.status.translated,
.status.blue {
  background: #e2e8f0 !important;
  color: #47717a !important;
}

.percentage,
.metric .percentage {
  color: #34d399 !important;
}

.field input:focus,
.field select:focus,
.control:focus,
.multi-select.open .multi-select-combobox,
.multi-select-combobox:focus-within,
.multi-select-search:focus {
  border-color: #47717a !important;
  box-shadow: 0 0 0 3px rgba(71, 113, 122, 0.18) !important;
}

@media (max-width: 720px) {
  .sidebar {
    border-bottom-color: var(--nr-menu-line) !important;
  }

  .nav-toggle-label {
    border-color: var(--nr-menu-line) !important;
    background: var(--nr-sidebar) !important;
    color: var(--nr-paper) !important;
  }
}

/* Compact dashboard layout for customers using the new frontend. */
.customer-topbar .brand-name {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
  white-space: nowrap !important;
  word-break: keep-all;
}

.customer-topbar > div:first-child {
  flex: 0 0 auto;
  min-width: max-content;
}

/* Keep the customer portal name compact and on a single line on every page. */
.customer-topbar .brand-services {
  display: inline !important;
  margin-left: 0.22em;
}

.customer-topbar .brand-role {
  margin-top: 6px;
  font-size: 11px;
}

.customer-dashboard-page-header--dashboard {
  display: none;
}

.customer-dashboard {
  width: 100%;
  margin-inline: 0;
  gap: 12px;
}

.customer-dashboard--group {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.customer-dashboard-overview {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

.customer-dashboard-overview .metrics {
  width: min(100%, 536px);
  flex: 0 1 536px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.customer-dashboard-overview .metric {
  min-height: 106px;
  text-align: center;
}

.customer-dashboard-overview-actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.customer-dashboard-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  background: var(--nr-paper);
}

.customer-dashboard-shortcuts .btn {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 13px;
}

.customer-dashboard-summary {
  gap: 12px;
}

.customer-dashboard-summary .panel-header {
  min-height: 58px;
  padding: 13px 18px;
}

.customer-dashboard-summary .panel-body {
  padding: 16px 18px 18px;
}

.customer-dashboard-summary .data-table.compact {
  font-size: 14px;
}

.customer-dashboard-summary .data-table.compact th,
.customer-dashboard-summary .data-table.compact td {
  padding: 11px 12px;
}

.customer-dashboard-summary .data-table.compact td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-dashboard-summary .data-table.compact.has-word-export th:nth-child(1),
.customer-dashboard-summary .data-table.compact.has-word-export td:nth-child(1) {
  width: 65%;
}

.customer-dashboard-summary .data-table.compact.has-word-export th:nth-child(2),
.customer-dashboard-summary .data-table.compact.has-word-export td:nth-child(2) {
  width: 15%;
  text-align: center;
}

.customer-dashboard-summary .data-table.compact.has-word-export th:nth-child(3),
.customer-dashboard-summary .data-table.compact.has-word-export td:nth-child(3) {
  width: 20%;
  text-align: center;
}

@media (max-width: 980px) {
  .customer-dashboard-overview {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-dashboard-overview .metrics {
    width: 100%;
    flex-basis: auto;
  }

  .customer-dashboard-overview-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .customer-dashboard-shortcuts {
    justify-content: flex-start;
  }
}

/* News Relations Services customer portal refresh. */
.customer-shell {
  --nr-ink: #111111;
  --nr-muted: #6b6b6b;
  --nr-line: #a6a6a6;
  --nr-soft: #fde8e9;
  --nr-paper: #ffffff;
  --nr-red: #e30613;
  --nr-red-dark: #bd0010;
  --nr-table-head: #a6a6a6;
  --nr-radius: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 40px;
  font-family: "MS Reference Sans Serif", Arial, sans-serif;
}

body:has(.customer-shell) {
  background: #ffffff !important;
  color: #111111 !important;
  font-family: "MS Reference Sans Serif", Arial, sans-serif;
}

.customer-shell .customer-topbar {
  min-height: 64px;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid #a6a6a6;
}

.customer-brand {
  display: inline-flex;
  align-items: center;
  max-width: min(470px, 40vw);
}

.customer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.customer-shell .customer-actions,
.customer-shell .customer-nav {
  gap: 0;
}

.customer-shell .customer-nav a,
.customer-shell .customer-logout {
  min-height: 42px;
  gap: 6px;
  border: 0;
  border-left: 1px solid #a6a6a6;
  border-radius: 0;
  padding: 0 16px;
  background: #ffffff;
  color: #111111;
  font-family: "MS Reference Sans Serif", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.customer-shell .customer-logout {
  border-right: 1px solid #a6a6a6;
}

.customer-shell .customer-nav a:hover {
  background: #fff5f5;
}

.customer-shell .customer-nav a.active {
  border-color: #efb4b9;
  background: #fde8e9;
  color: #111111;
}

.customer-shell .nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #e30613;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.customer-shell .customer-dashboard,
.customer-shell .content {
  gap: 22px;
  margin-top: 0;
}

.customer-shell .topbar,
.customer-shell .panel,
.customer-shell .metric,
.customer-shell .customer-dashboard-shortcuts {
  border-color: #a6a6a6 !important;
  border-radius: 0;
  background: #ffffff !important;
  box-shadow: none !important;
}

.customer-shell .topbar {
  padding: 14px 0;
  border-width: 0 0 1px;
}

.customer-shell .page-title,
.customer-shell .panel-title,
.customer-shell h1,
.customer-shell h2,
.customer-shell h3 {
  color: #111111 !important;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.customer-shell .panel-header {
  min-height: 44px;
  padding: 10px 16px;
  border-color: #a6a6a6;
}

.customer-shell .panel-title {
  font-size: 17px;
  text-transform: uppercase;
}

.customer-shell .panel-body {
  padding: 10px 16px;
}

/* Keep summary tables flush with their panel; only the surrounding text needs inset. */
.customer-shell .customer-dashboard-summary .panel-body {
  padding-right: 0;
  padding-left: 0;
}

.customer-shell .customer-dashboard-summary .empty-state {
  margin-right: 16px;
  margin-left: 16px;
}

.customer-shell .metric {
  min-height: 106px;
  border-color: #112b4a !important;
  background: #112b4a !important;
  padding: 15px;
}

.customer-shell .metric span,
.customer-shell .metric strong {
  color: #ffffff !important;
  font-family: "MS Reference Sans Serif", Arial, sans-serif;
  font-weight: 400;
}

.customer-shell .metric strong {
  margin-top: 8px;
  font-size: 29px;
}

.customer-shell .customer-dashboard-overview .metrics {
  gap: 78px;
}

.customer-shell .customer-dashboard-shortcuts {
  padding: 0;
  border: 0;
}

.customer-shell .btn {
  min-height: 34px;
  gap: 5px;
  border-color: #a6a6a6;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-family: "MS Reference Sans Serif", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.customer-shell .btn.primary,
.customer-shell .btn.black {
  border-color: #e30613 !important;
  background: #e30613 !important;
  color: #ffffff !important;
}

.customer-shell .btn.primary:hover,
.customer-shell .btn.black:hover {
  border-color: #bd0010 !important;
  background: #bd0010 !important;
}

.customer-shell .action-icon {
  color: #e30613;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 0;
}

.customer-shell .btn.primary .action-icon,
.customer-shell .btn.black .action-icon {
  color: #ffffff;
}

.customer-shell .customer-dashboard-date-filter {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.customer-shell .customer-filter-field > span,
.customer-shell .empty-state,
.customer-shell .muted {
  color: #6b6b6b;
  font-weight: 400;
}

.customer-shell .control {
  border-color: #a6a6a6;
  border-radius: 0;
  color: #111111;
  font-family: "MS Reference Sans Serif", Arial, sans-serif;
  font-weight: 400;
}

.customer-shell .data-table,
.customer-shell .data-table th,
.customer-shell .data-table td {
  border-color: #a6a6a6 !important;
  font-family: "MS Reference Sans Serif", Arial, sans-serif;
  font-weight: 400;
}

.customer-shell .data-table th {
  background: #a6a6a6 !important;
  color: #ffffff !important;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.customer-shell .data-table tbody tr:nth-child(even) td,
.customer-shell .data-table tbody tr:hover td {
  background: #ffffff !important;
  color: #111111 !important;
}

.customer-shell .status {
  border-radius: 0;
  background: #f1f1f1;
  color: #111111;
  font-family: "MS Reference Sans Serif", Arial, sans-serif;
  font-weight: 400;
}

@media (max-width: 980px) {
  .customer-shell { padding: 20px; }
  .customer-shell .customer-topbar { align-items: flex-start; flex-direction: column; }
  .customer-shell .customer-actions { flex-wrap: wrap; }
  .customer-brand { max-width: min(420px, 100%); }
  .customer-shell .customer-dashboard-overview .metrics { gap: 12px; }
}

@media (max-width: 620px) {
  .customer-shell { padding: 14px; }
  .customer-shell .customer-nav a, .customer-shell .customer-logout { padding: 0 10px; }
  .customer-shell .customer-dashboard-overview .metrics { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .customer-dashboard-overview .metrics {
    grid-template-columns: 1fr;
  }

  .customer-dashboard-overview-actions,
  .customer-dashboard-date-filter,
  .customer-dashboard-shortcuts {
    width: 100%;
  }

  .customer-dashboard-date-filter .customer-filter-field,
  .customer-dashboard-date-filter .btn,
  .customer-dashboard-shortcuts .btn {
    width: 100%;
  }
}
