.nr {
  font-size: 14px;
  color: #22364a;
}
.nr h1 {
  font-size: 27px;
  letter-spacing: -0.5px;
  margin: 0;
}
.nr h2 {
  font-size: 18px;
  margin: 0;
}
.nr p {
  margin: 7px 0;
  color: #6b7c8e;
}
.nr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.nr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nr button,
.nr input,
.nr select {
  font: inherit;
}
.nr button {
  border: 1px solid #d6e0e9;
  border-radius: 8px;
  padding: 9px 13px;
  min-height: 38px;
  background: white;
  color: #254b6c;
  cursor: pointer;
  font-weight: 600;
}
.nr button:hover {
  border-color: #96b6d0;
  background: #f3f8fc;
}
.nr button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.nr button.nr-primary {
  background: #176eaf;
  border-color: #176eaf;
  color: white;
}
.nr button.nr-danger {
  color: #b42335;
}
.nr-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid #e0e7ee;
  border-radius: 12px;
  margin-bottom: 18px;
}
.nr label {
  font-size: 12px;
  display: grid;
  gap: 6px;
  margin: 0;
  color: #63768a;
  font-weight: 600;
}
.nr input,
.nr select {
  margin: 0;
  min-height: 38px;
  border-radius: 7px;
  padding: 8px 11px;
  max-width: 100%;
  border: 1px solid #d4dee8;
  color: #22364a;
}
.nr input[type="checkbox"] {
  min-height: 0;
  width: 16px;
  height: 16px;
}
.nr-search {
  min-width: 230px;
  flex: 1;
}
.nr-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  border-bottom: 1px solid #dce5ed;
  margin: 22px 0;
}
.nr-tabs button {
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 13px 15px;
  color: #6a7c8f;
  font-weight: 500;
}
.nr-tabs button[aria-selected="true"] {
  color: #126aab;
  box-shadow: inset 0 -3px #176eaf;
  font-weight: 700;
}
.nr-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.nr-stat {
  padding: 18px 20px;
  background: white;
  border: 1px solid #e0e7ee;
  border-radius: 12px;
}
.nr-stat span {
  color: #718397;
  font-size: 12px;
  display: block;
}
.nr-stat strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.6px;
  margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
.nr-stat small {
  color: #718397;
}
.nr-stat:last-child {
  border-top: 3px solid #e41478;
}
.nr-card {
  background: white;
  border: 1px solid #e0e7ee;
  border-radius: 12px;
  overflow: hidden;
}
.nr-card-head {
  padding: 18px 20px;
  border-bottom: 1px solid #e8eef4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.nr-card-head p {
  font-size: 12px;
}
.nr-table-wrap {
  overflow-x: auto;
}
.nr table {
  font-size: 13px;
  min-width: 750px;
  white-space: nowrap;
}
.nr th {
  font-weight: 600;
  background: #f7f9fc;
  font-size: 11px;
  color: #78889b;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  padding: 13px 17px;
}
.nr td {
  padding: 13px 17px;
  border-color: #edf1f5;
  vertical-align: middle;
}
.nr tbody tr:hover {
  background: #f9fbfe;
}
.nr td small {
  font-size: 11px;
  color: #8794a3;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nr td.nr-name {
  white-space: normal;
  min-width: 170px;
  max-width: 250px;
  font-weight: 600;
  color: #223d57;
}
.nr .nr-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.nr .nr-red {
  color: #c73345;
}
.nr .nr-green {
  color: #148462;
}
.nr-badge {
  display: inline-flex;
  border-radius: 5px;
  padding: 4px 7px;
  background: #edf3f8;
  font-size: 11px;
  color: #587086;
  white-space: nowrap;
}
.nr-badge.bad {
  background: #fff0f1;
  color: #be3549;
}
.nr-badge.warn {
  background: #fff6e6;
  color: #a56a11;
}
.nr-badge.good {
  background: #edf8f3;
  color: #16825e;
}
.nr-link {
  background: none !important;
  border: 0 !important;
  color: #146cab !important;
  padding: 0 !important;
  min-height: 0 !important;
  text-align: left;
}
.nr-pagination {
  padding: 14px 18px;
  border-top: 1px solid #e8eef4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7b8b9c;
  font-size: 12px;
}
.nr-pagination button {
  padding: 5px 10px;
  min-height: 30px;
}
.nr-empty {
  text-align: center;
  padding: 55px 20px;
  color: #8494a5;
}
.nr-toast {
  padding: 12px 16px;
  border: 1px solid #c5e8d9;
  border-radius: 8px;
  background: #effaf5;
  color: #237254;
  margin-bottom: 15px;
}
.nr-toast.error {
  border-color: #f1c6cd;
  background: #fff3f5;
  color: #ad3044;
}
.nr-toast[hidden] {
  display: none;
}
.nr-loading {
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3f6f9, #fff, #f3f6f9);
  color: #7d8fa2;
}
.nr-dialog {
  width: 860px;
  max-width: calc(100vw - 40px);
  max-height: 90dvh;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
}
.nr-dialog .nr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid #e5ecf2;
}
.nr-dialog .nr-modal-body {
  padding: 24px;
}
.nr-dialog .nr-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid #e5ecf2;
}
.nr-dialog .nr-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.nr-dialog .nr-form label {
  font-size: 12px;
}
.nr-dialog textarea {
  font: inherit;
  min-height: 90px;
  padding: 10px;
  border: 1px solid #d4dee8;
  border-radius: 7px;
}
.nr-dialog .nr-wide {
  grid-column: 1/-1;
}
.nr-dialog::backdrop {
  background: #112c4670;
  backdrop-filter: blur(2px);
}
.nr-upload {
  padding: 35px;
  text-align: center;
  border: 1px dashed #b1c9dc;
  background: #f8fbfe;
  border-radius: 10px;
}
.nr-settings {
  padding: 20px;
  max-width: 900px;
}
.nr-settings .nr-filters {
  border: 0;
  padding: 0;
}
.nr-subtle {
  font-size: 12px;
  color: #8696a6;
}
.nr-file-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.nr-file {
  border: 1px solid #e3eaf1;
  padding: 13px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.nr-skeleton {
  display: grid;
  gap: 16px;
}
.nr-dots {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: #1777b5;
  animation: nrPulse 1s infinite;
  margin-right: 8px;
}
@keyframes nrPulse {
  50% {
    opacity: 0.25;
  }
}
@media (max-width: 1100px) {
  .nr-stats {
    grid-template-columns: 1fr 1fr;
  }
  .nr-header {
    align-items: flex-start;
  }
  .nr-stat strong {
    font-size: 22px;
  }
  .nr table {
    min-width: 700px;
  }
}
@media (max-width: 720px) {
  .nr-header {
    display: block;
  }
  .nr-header .nr-actions {
    margin-top: 15px;
  }
  .nr h1 {
    font-size: 23px;
  }
  .nr-filters {
    padding: 12px;
    gap: 10px;
  }
  .nr-filters label {
    flex: 1;
    min-width: 130px;
  }
  .nr-stats {
    gap: 8px;
  }
  .nr-stat {
    padding: 13px;
  }
  .nr-stat strong {
    font-size: 20px;
  }
  .nr-tabs {
    margin-top: 14px;
  }
  .nr-tabs button {
    padding: 12px 10px;
  }
  .nr-dialog .nr-form {
    grid-template-columns: 1fr;
  }
  .nr-dialog .nr-modal-body {
    padding: 16px;
  }
  .nr-card-head {
    padding: 15px;
  }
}

/* Nam Hải report header, shared by embedded and native reports. */
#page.report-open .nh-report-brand {
  display:flex; align-items:center; gap:16px; flex:none;
  padding:12px 18px; margin:0 0 12px; border-radius:14px;
  background:radial-gradient(ellipse at 100% 120%,#245f8b 0%,transparent 55%),linear-gradient(110deg,#102941,#17466d);
  color:#fff; box-shadow:0 5px 16px #122f491a;
}
#page.report-open .nh-report-brand img {
  display:block; width:100px; height:52px; object-fit:contain;
  padding:5px; box-sizing:border-box; background:#fff; border-radius:9px; flex:none;
}
#page.report-open .nh-report-brand p {
  margin:0 0 3px; color:#f4b9d5; font-size:11px; font-weight:700;
}
#page.report-open .nh-report-brand h1 {
  margin:0; color:#fff; font-weight:700; letter-spacing:-.02em;
  font-size:clamp(17px,2vw,26px); line-height:1.25; overflow-wrap:anywhere;
}
#page.report-open .embedded-report {
  border-radius:12px; background:#fff; box-shadow:0 3px 14px #183b5c0d;
}
@media(max-width:600px) {
  #page.report-open .nh-report-brand {padding:9px 12px;gap:11px;margin-bottom:8px}
  #page.report-open .nh-report-brand img {width:76px;height:40px}
}
