:root {
  --ink: #18332b;
  --muted: #536c62;
  --green: #165640;
  --teal: #267154;
  --paper: #f5f7f4;
  --line: #dbe4dc;
  --white: #fff;
  --accent: #d8ae60;
  --shade: #eef4ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.5;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: #154635;
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.75rem, 3vw, 2.52rem);
  letter-spacing: -0.04em;
  font-weight: 660;
  line-height: 1.13;
  margin-bottom: 0.38rem;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0;
}
h3 {
  font-size: 1rem;
  font-weight: 650;
}
small,
.muted {
  color: var(--muted);
}
small {
  display: block;
  font-size: 0.8rem;
}
.wrap {
  max-width: 1470px;
  width: 94%;
  margin: auto;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover {
  text-decoration: none;
}
.brand b {
  font-weight: 760;
  letter-spacing: 0.08em;
  font-size: 1.13rem;
}
.brand small {
  font-size: 0.8rem;
  line-height: 1.2;
}
.brandmark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #13513c;
  border-radius: 12px;
  color: #f0df9f;
}
.ico {
  width: 19px;
  height: 19px;
  flex: none;
}
.brandmark .ico {
  width: 28px;
  height: 28px;
}
.globalsearch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 0.7rem;
  width: min(30vw, 370px);
  color: #658071;
}
.globalsearch input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.52rem 0;
  font-size: 0.85rem;
  outline: 0;
}
.bell {
  position: relative;
  color: var(--green);
  padding: 0.5rem;
}
.bell span {
  position: absolute;
  top: -5px;
  right: -7px;
  background: #e5bd72;
  color: #322910;
  border-radius: 12px;
  font-size: 0.61rem;
  font-weight: 750;
  padding: 0 0.3rem;
}
.profile {
  position: relative;
}
.profile summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
}
.profile summary i {
  font-style: normal;
  background: #dceadb;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #23523d;
  font-weight: 700;
}
.profile summary span {
  font-size: 0.82rem;
  font-weight: 640;
}
.profile summary small {
  font-size: 0.71rem;
  font-weight: 400;
}
.profile > div {
  position: absolute;
  right: 0;
  top: 115%;
  background: #fff;
  box-shadow: 0 10px 35px #152e241e;
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 8px;
  min-width: 145px;
  z-index: 4;
}
.profile > div form {
  margin-top: 0.7rem;
}
nav {
  border-top: 1px solid #edf1ec;
}
.navrow,
.reporttabs {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  overflow-x: auto;
}
.navrow a,
.reporttabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #53685d;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 580;
  padding: 0.9rem 0 0.72rem;
  border-bottom: 3px solid transparent;
}
.navrow a.on,
.reporttabs a.selected {
  border-color: #246c4e;
  color: #15533c;
}
.navrow a .ico {
  width: 16px;
  height: 16px;
}
.main {
  padding: 1.9rem 0 2.5rem;
  min-height: 75vh;
}
.leadrow,
.sectiontitle,
.actions,
.entry,
.statline,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.leadrow {
  margin-bottom: 1.25rem;
}
.leadrow p,
.sectiontitle > span {
  color: var(--muted);
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0.54rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 610;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover,
.primary:focus {
  background: #103e2f;
  color: #fff;
}
.ghost,
.lightbtn {
  background: #fff;
  border: 1px solid #cbd8ce;
  color: var(--green);
}
.ghost:hover,
.lightbtn:hover {
  background: var(--shade);
  color: var(--ink);
}
.txtlink {
  font-size: 0.83rem;
  font-weight: 630;
}
.summarybanner {
  display: flex;
  align-items: center;
  gap: 1.08rem;
  padding: 1.15rem 1.45rem;
  border-radius: 12px;
  background: linear-gradient(110deg, #113d2d, #235d43 75%, #306b4a);
  color: white;
  margin-bottom: 1.1rem;
  border-left: 5px solid #d6af64;
}
.bannericon {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  background: #ffffff18;
  border: 1px solid #ffffff32;
  border-radius: 12px;
  color: #edce8e;
}
.bannericon .ico {
  width: 29px;
  height: 29px;
}
.summarybanner span {
  font-size: 0.78rem;
  color: #e2eddb;
}
.summarybanner h2 {
  color: white;
  font-size: 1.57rem;
  margin: 0.12rem 0;
}
.summarybanner p {
  margin: 0;
  color: #e8efe8;
  font-size: 0.83rem;
}
.summarybanner .btn {
  margin-left: auto;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.1rem 0;
}
.kpi,
.portalcard,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.kpi {
  padding: 0.95rem 1.15rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  min-height: 96px;
}
.kpi:hover,
.portalcard:hover {
  text-decoration: none;
  border-color: #9cb7a4;
}
.kpi strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 660;
  color: var(--ink);
}
.kpi .kpi-ico {
  grid-column: 2;
  grid-row: 1 / 3;
  background: #edf4ee;
  border-radius: 9px;
  padding: 0.55rem;
  color: #376850;
}
.amber .kpi-ico {
  background: #faf2df;
  color: #8b6325;
}
.rose .kpi-ico {
  background: #f8eee8;
  color: #914e3c;
}
.twocol {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
}
.panel {
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.sectiontitle {
  margin-bottom: 0.95rem;
  line-height: 1.3;
}
.sectiontitle > .actions {
  justify-content: flex-end;
}
.panel p:last-child {
  margin-bottom: 0;
}
.portallist > a,
.statline,
.entry {
  border-top: 1px solid #e4ebe5;
  padding: 0.7rem 0;
}
.portallist > a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.portallist > a .ico:last-child {
  margin-left: auto;
  color: #70917c;
}
.listicon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #edf4ec;
  color: #43754f;
  flex-shrink: 0;
}
.listicon .ico:last-child {
  margin: auto;
}
.portallist b,
.record {
  font-weight: 610;
  font-size: 0.92rem;
  color: #244d39;
}
.portallist small,
.entry small {
  margin: 0.14rem 0;
}
.statline strong {
  background: var(--shade);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}
.subsection {
  margin: 1.15rem 0 0.4rem;
}
.empty {
  background: #f6f8f5;
  padding: 0.9rem;
  border-radius: 7px;
  color: #5d7064;
  font-size: 0.85rem;
}
.filters,
.inlineform,
.formgrid,
.stack {
  display: flex;
  gap: 0.85rem;
  align-items: flex-end;
}
.filters {
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #eef3ed;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.filters label {
  max-width: 235px;
  flex: 1 1 120px;
}
.filters .txtlink {
  align-self: center;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.formgrid > .btn,
.stack > .btn {
  justify-self: start;
  align-self: flex-start;
}
.stack {
  flex-direction: column;
  align-items: stretch;
}
.inlineform {
  flex-wrap: wrap;
}
.inlineform label {
  flex: 1;
}
.narrow {
  max-width: 860px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: #435a4c;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0;
}
.check input {
  width: auto;
}
input,
select,
textarea {
  border: 1px solid #bdcec2;
  background: #fff;
  color: var(--ink);
  padding: 0.47rem 0.58rem;
  border-radius: 6px;
  min-width: 0;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 400;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #209366;
  outline-offset: 2px;
}
select[multiple] {
  min-height: 95px;
}
textarea {
  resize: vertical;
}
.portalgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.portalcard {
  color: var(--ink);
  padding: 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.portalcard h2 {
  margin: 0.8rem 0 0.35rem;
}
.portalcard p {
  color: var(--muted);
  font-size: 0.86rem;
}
.portalcard > div {
  display: flex;
  gap: 0.7rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  margin-top: auto;
  width: 100%;
  font-size: 0.77rem;
  color: #4b6555;
}
.portalcard > div .ico {
  margin-left: auto;
  width: 15px;
}
.tablewrap {
  max-height: 64vh;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th {
  position: sticky;
  top: 0;
  background: #eff4ef;
  color: #52685a;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 630;
  z-index: 1;
}
th,
td {
  padding: 0.65rem 0.62rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.nowrap {
  white-space: nowrap;
}
.tag {
  display: inline-flex;
  border-radius: 15px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 630;
  white-space: nowrap;
}
.neutral {
  background: #edf2ec;
  color: #496050;
}
.good {
  background: #dcefe1;
  color: #1f603c;
}
.warm {
  background: #fbefd2;
  color: #75561d;
}
.bad {
  background: #f7e2dc;
  color: #8a4134;
}
.metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.metadata dt {
  font-size: 0.75rem;
  color: #597063;
}
.metadata dd {
  margin: 0;
  font-size: 0.92rem;
}
.entry {
  align-items: flex-start;
}
.entry p {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}
.actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
}
.pager {
  justify-content: flex-end;
  margin-top: 1rem;
  font-size: 0.8rem;
}
.reporttabs {
  margin-bottom: 1rem;
}
.panel > summary {
  cursor: pointer;
  font-weight: 630;
}
.panel[open] > summary {
  margin-bottom: 0.8rem;
}
.flash {
  padding: 0.85rem 1rem;
  background: #e0efe3;
  border: 1px solid #b0d2b6;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.err {
  background: #ffefe9;
  border-color: #e8c1af;
  color: #813e2f;
}
footer {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
  background: white;
  font-size: 0.76rem;
  color: #5b6f61;
}
footer span {
  float: right;
}
.loginpage {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 1rem;
  background: #edf3ec;
}
.loginbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  max-width: 830px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px #254e3614;
}
.loginbox aside,
.loginbox section {
  padding: clamp(1.5rem, 4vw, 3rem);
}
.loginbox aside {
  background: #174c36;
  color: white;
}
.loginbox aside .brandmark {
  margin-bottom: 2.8rem;
  background: #ffffff15;
}
.loginbox aside strong {
  letter-spacing: 0.09em;
  color: #dfc88c;
}
.loginbox aside h1 {
  margin-top: 0.55rem;
}
.loginbox section > small {
  margin-top: 1.4rem;
}
.loginbox section h2 {
  font-size: 1.65rem;
}
.loginbox section > p {
  color: var(--muted);
  margin: 0.4rem 0 1.3rem;
}
.report-table {
  font-size: 0.78rem;
}
.report-table td {
  min-width: 80px;
}
.report-table td:nth-child(2) {
  min-width: 150px;
}
@media (max-width: 920px) {
  .navrow {
    gap: 1rem;
  }
  .portalgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wrap {
    width: 95%;
  }
  .top {
    min-height: 68px;
  }
}
@media (max-width: 700px) {
  .top {
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.6rem 0;
  }
  .globalsearch {
    order: 4;
    width: 100%;
  }
  .profile summary span {
    display: none;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .twocol,
  .formgrid,
  .metadata,
  .loginbox {
    grid-template-columns: 1fr;
  }
  .portalgrid {
    grid-template-columns: 1fr;
  }
  .wrap {
    width: 94%;
  }
  .leadrow,
  .summarybanner {
    flex-wrap: wrap;
  }
  .summarybanner .btn {
    margin-left: 0;
  }
  .panel {
    padding: 0.9rem;
  }
  .main {
    padding-top: 1.1rem;
  }
  .loginbox aside .brandmark {
    margin-bottom: 1rem;
  }
  .filters label {
    max-width: 100%;
  }
  footer span {
    float: none;
    display: block;
  }
  .metadata {
    grid-template-columns: 1fr 1fr;
  }
  .navrow a {
    font-size: 0.78rem;
  }
  .entry {
    flex-wrap: wrap;
  }
  .summarybanner h2 {
    font-size: 1.3rem;
  }
  .leadrow h1 {
    overflow-wrap: anywhere;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  header,
  footer,
  .filters,
  .reporttabs,
  .noprint,
  .flash,
  .leadrow > .btn,
  .pager {
    display: none !important;
  }
  .wrap,
  .main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  body,
  .panel {
    background: white;
    border: 0;
    font-size: 10pt;
  }
  h1 {
    font-size: 18pt;
  }
  .tablewrap {
    overflow: visible;
    max-height: none;
  }
  thead {
    display: table-header-group;
  }
  th {
    position: static;
  }
  .panel {
    padding: 0;
  }
  td,
  th {
    padding: 3px !important;
    word-break: break-word;
  }
  .report-table {
    table-layout: fixed;
    font-size: 8pt;
  }
  .report-table td {
    min-width: 0 !important;
  }
  tr {
    break-inside: avoid;
  }
  a {
    color: black;
  }
}

@media screen {
  .workspace-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 6px #18332b10; }
  html { scroll-padding-top: 10rem; }
}
@media screen and (max-width: 700px) {
  html { scroll-padding-top: 12rem; }
}
.naro-header-logo { width: auto; height: 48px; object-fit: contain; flex: none; }
.naro-login-logo { display: block; width: auto; height: 85px; object-fit: contain; margin-bottom: 1.75rem; }
.signin-password label { margin-bottom: .26rem; }
.password-input { position: relative; }
.password-input input { padding-right: 3rem; }
.password-eye { position: absolute; right: .15rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; padding: .45rem; color: var(--green); border: 0; background: transparent; border-radius: .35rem; }
.password-eye[hidden], .password-eye .eye-strike { display: none; }
.password-eye[aria-pressed="true"] .eye-strike { display: block; }
.password-eye svg { width: 21px; height: 21px; }
.auth-link { margin-top: 1rem; font-size: .86rem; }
.attachment-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.attachment-list li { margin-top: .35rem; overflow-wrap: anywhere; }
.attachment-list small { display: inline; margin-left: .4rem; }
