/* NU HERITAGE FINANCE LTD - brand colours sampled from the official logo */
:root {
  --primary: #202050;
  --secondary: #202050;
  --accent: #E0A020;
  --primary-fg: #ffffff;
  --header-bg: #202050;
  --header-color: #ffffff;
  --header-branding-color: #E0A020;
  --header-link-color: #ffffff;
  --breadcrumbs-bg: #E0A020;
  --breadcrumbs-fg: #202050;
  --breadcrumbs-link-fg: #202050;
  --link-fg: #202050;
  --link-hover-color: #B8800F;
  --button-bg: #202050;
  --button-hover-bg: #34347a;
  --default-button-bg: #E0A020;
  --default-button-hover-bg: #c88c14;
  --object-tools-bg: #202050;
  --object-tools-hover-bg: #34347a;
  --selected-row: #fdf3dc;
  --module-header-bg: #202050;
}
#header { border-bottom: 4px solid #E0A020; }
.nuh-brand { display: flex; align-items: center; gap: 14px; }
.nuh-brand img { height: 58px; width: 58px; background: #fff; border-radius: 50%; padding: 2px; }
.nuh-tag { color: #E0A020; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
#site-name a { color: #fff !important; }
div.breadcrumbs { font-weight: 600; }
.module h2, .module caption, .inline-group h2 { background: #202050; color: #fff; }
.module h2 a, .module caption a { color: #E0A020; }
.nuh-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 22px; }
.nuh-kpi { background: #fff; border-left: 6px solid #E0A020; border-radius: 6px; padding: 12px 16px;
           box-shadow: 0 1px 4px rgba(32, 32, 80, .18); }
.nuh-kpi b { display: block; color: #202050; font-size: 26px; }
.nuh-kpi span { color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.nuh-live { color: #1b7f3b; font-weight: 700; font-size: 12px; }
.nuh-note { background: #fdf3dc; border: 1px solid #E0A020; border-radius: 6px; padding: 10px 14px; margin: 0 0 18px; }
.nuh-table { width: 100%; }
.nuh-table td, .nuh-table th { padding: 6px 10px; }
.nuh-trig { color: #1b7f3b; font-weight: 700; }

/* ---- bell panel and notification colours (Step 7e) ---- */
.nuh-bell { display: inline-block; position: relative; margin-right: 14px; vertical-align: middle; }
.nuh-bell > summary { list-style: none; cursor: pointer; font-size: 20px; color: #fff; position: relative; padding: 0 4px; }
.nuh-bell > summary::-webkit-details-marker { display: none; }
.nuh-bell-count { position: absolute; top: -8px; right: -10px; background: #d62828; color: #fff; font-size: 11px; font-weight: 800;
                  min-width: 19px; height: 19px; line-height: 19px; text-align: center; border-radius: 10px; padding: 0 4px;
                  border: 2px solid #202050; }
.nuh-bell-panel { position: absolute; right: 0; top: 34px; width: 380px; max-height: 70vh; overflow-y: auto; z-index: 1000;
                  background: #fff; color: #222; border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); text-align: left; }
.nuh-bell-head { background: #202050; color: #fff; padding: 10px 14px; display: flex; justify-content: space-between; border-radius: 8px 8px 0 0; }
.nuh-linkbtn { background: none; border: 0; color: #E0A020; cursor: pointer; font-weight: 700; text-transform: none; padding: 0; }
.nuh-bell-empty { padding: 18px 14px; color: #666; margin: 0; }
.nuh-bell-foot { padding: 10px 14px; text-align: center; border-top: 1px solid #eee; }
.nuh-bell-foot a { color: #202050; font-weight: 700; }
.nuh-n { display: block; padding: 10px 14px 10px 16px; border-left: 7px solid #8a8aa8; border-bottom: 1px solid #eee; color: #222 !important;
         text-decoration: none; background: #f6f6fa; }
.nuh-n b { display: block; font-size: 13px; }
.nuh-n span { display: block; font-size: 12px; color: #444; margin-top: 2px; }
.nuh-n em { display: block; font-size: 11px; color: #777; font-style: normal; margin-top: 3px; }
.nuh-n.unread { font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.nuh-n.unread b::before { content: "\25CF  "; font-size: 10px; }
.nuh-n:hover { filter: brightness(.96); }
.nuh-n-action { border-left-color: #E0A020; background: #fff3d1; }
.nuh-n-action b { color: #8a5a00; }
.nuh-n-success { border-left-color: #1b9a4b; background: #e3f6ea; }
.nuh-n-success b { color: #12683a; }
.nuh-n-warning { border-left-color: #e67e22; background: #ffeedd; }
.nuh-n-warning b { color: #a04e00; }
.nuh-n-danger { border-left-color: #d62828; background: #fde6e6; }
.nuh-n-danger b { color: #a01818; }
.nuh-n-info { border-left-color: #2f5fd0; background: #e6eeff; }
.nuh-n-info b { color: #1d3f94; }
.nuh-n:not(.unread) { opacity: .72; }
/* messages and statuses in strong, readable colours */
ul.messagelist li.success { background: #d6f3df; color: #0d5a30; border-left: 6px solid #1b9a4b; }
ul.messagelist li.error { background: #fbdcdc; color: #8c1111; border-left: 6px solid #d62828; }
ul.messagelist li.warning { background: #ffe9cf; color: #8a4a00; border-left: 6px solid #e67e22; }
ul.messagelist li.info { background: #e1ebff; color: #17388a; border-left: 6px solid #2f5fd0; }
.nuh-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.nuh-pill-draft { background: #e9e9f1; color: #4a4a68; }
.nuh-pill-review, .nuh-pill-inreview, .nuh-pill-submitted { background: #fff0c2; color: #8a5a00; }
.nuh-pill-disbursed { background: #d4e4ff; color: #17388a; }
.nuh-pill-approved { background: #cdeed9; color: #0d5a30; }
.nuh-pill-rejected { background: #f9cfcf; color: #8c1111; }
.nuh-pill-withdrawn { background: #e6e6e6; color: #555; }
.nuh-pill-pending { background: #fff0c2; color: #8a5a00; }
.nuh-pill-returned { background: #ffe0c2; color: #9a4a00; }
.nuh-pill-cancelled { background: #e6e6e6; color: #555; }
.nuh-step-current td { background: #fff3d1 !important; font-weight: 700; }
.nuh-step-approved td:nth-child(3) { color: #0d5a30; font-weight: 800; }
.nuh-step-rejected td:nth-child(3) { color: #8c1111; font-weight: 800; }
.nuh-step-returned td:nth-child(3) { color: #9a4a00; font-weight: 800; }
.nuh-section { background: #202050; color: #fff; padding: 7px 14px; font-weight: 700; letter-spacing: .5px; margin: 18px 0 0; border-radius: 6px 6px 0 0; }
.nuh-section small { color: #E0A020; font-weight: 600; margin-left: 8px; }
.nuh-form td, .nuh-form th { padding: 7px 10px; vertical-align: top; }
.nuh-form th { text-align: left; width: 230px; color: #202050; }
.nuh-form input[type=text], .nuh-form input[type=date], .nuh-form input[type=number], .nuh-form select { width: 100%; max-width: 420px; }
.nuh-req { color: #d62828; font-weight: 800; }
.nuh-hint { color: #666; font-size: 12px; display: block; margin-top: 2px; }
.nuh-bnr { display: inline-block; background: #fdf3dc; color: #8a5a00; border: 1px solid #E0A020; border-radius: 4px; font-size: 10px; font-weight: 800; padding: 0 5px; margin-left: 6px; }
.nuh-big-action { display: inline-block; background: #E0A020; color: #202050 !important; padding: 9px 18px; border-radius: 6px; font-weight: 800; text-decoration: none; }
.nuh-big-action:hover { background: #c88c14; }
.nuh-backup-alerts { margin: 0 0 16px; }
.nuh-backup-alert { padding: 12px 16px; margin: 0 0 6px; border-radius: 6px; font-size: 14px; }
.nuh-backup-fail { background: #fbdcdc; color: #8c1111; border-left: 8px solid #d62828; }
.nuh-backup-warn { background: #ffe9cf; color: #8a4a00; border-left: 8px solid #e67e22; }
.nuh-backup-how { font-size: 12px; color: #666; }
