:root {
  --usp-teal: #3ecad8;
  --usp-teal-deep: #2bb8c8;
  --usp-olive: #a9b34c;
  --usp-olive-dark: #8f9938;
  --usp-olive-deep: #7d862e;
  --usp-teal-active: #3aa3a8;
  --usp-content: #ecf0f5;
  --usp-orange: #f39c12;
  --usp-green: #00a65a;
  --usp-aqua: #00c0ef;
  --usp-text: #444;
  --usp-sidebar-w: 230px;
  --usp-header-h: 50px;
}

* { box-sizing: border-box; }
.usp-standalone, .usp-standalone body {
  margin: 0;
  height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--usp-text);
  background: var(--usp-content);
}
.usp-standalone button, .usp-standalone select, .usp-standalone input { font-family: inherit; }
.usp-standalone a { color: inherit; }

.usp-app {
  min-height: 100%;
  padding-top: var(--usp-header-h);
  padding-left: var(--usp-sidebar-w);
}
.usp-app.is-collapsed { padding-left: 0; }

.usp-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--usp-header-h);
  background: var(--usp-teal);
  color: #fff;
  display: flex;
  align-items: center;
  z-index: 1030;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.usp-brand {
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  padding: 0 18px;
  letter-spacing: .2px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.usp-hamburger {
  width: 44px;
  height: 100%;
  border: 0;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.usp-hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
}
.usp-marquee-wrap {
  flex: 1;
  overflow: hidden;
  height: 28px;
  margin: 0 16px;
  min-width: 80px;
  position: relative;
}
.usp-marquee {
  display: inline-block;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: #e53935;
  padding: 4px 28px;
  position: absolute;
  left: 0;
  top: 0;
  animation: usp-marquee 16s linear infinite;
}
@keyframes usp-marquee {
  0% { transform: translateX(30%); }
  100% { transform: translateX(-100%); }
}
.usp-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.usp-welcome svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.usp-welcome strong { font-weight: 600; }
.usp-gear {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  width: 34px;
  height: 34px;
}

.usp-sidebar {
  position: fixed;
  top: var(--usp-header-h);
  left: 0;
  bottom: 0;
  width: var(--usp-sidebar-w);
  background: var(--usp-olive);
  color: #fff;
  overflow-y: auto;
  z-index: 1020;
  box-shadow: inset -1px 0 0 rgba(0,0,0,.08);
}
.usp-app.is-collapsed .usp-sidebar { display: none; }

.usp-user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
}
.usp-user-seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.usp-user-seal img { width: 100%; height: 100%; object-fit: contain; display: block; }
.usp-user-name { font-size: 12px; font-weight: 700; letter-spacing: .2px; }
.usp-user-online { font-size: 12px; opacity: .95; display: flex; align-items: center; gap: 6px; }
.usp-online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00e676; display: inline-block;
}

.usp-nav-label {
  padding: 10px 14px 6px;
  font-size: 11px;
  letter-spacing: .6px;
  opacity: .92;
  font-weight: 600;
}
.usp-nav { padding-bottom: 8px; }
.usp-nav a, .usp-nav button.usp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
}
.usp-nav-item .usp-caret {
  margin-left: auto;
  font-size: 11px;
  opacity: .85;
}
.usp-nav-item.is-active { background: rgba(0,0,0,.12); }
.usp-nav-item.is-open { background: #2b9aa0; }
.usp-nav-item.is-blocked,
.usp-sub a.is-blocked { opacity: .7; }
.usp-nav-item:hover { background: rgba(0,0,0,.1); }

.usp-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-style: normal;
}
.usp-ico svg { width: 16px; height: 16px; fill: currentColor; }

.usp-sub {
  display: none;
  background: var(--usp-olive-dark);
  padding: 4px 0 8px;
}
.usp-sub.is-open { display: block; }
.usp-sub a {
  padding: 7px 14px 7px 36px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}
.usp-sub a:hover, .usp-sub a.is-current { background: rgba(0,0,0,.12); }
.usp-bullet {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.usp-fb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 8px;
}
.usp-fb-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: Tahoma, sans-serif;
}

.usp-main {
  min-height: calc(100vh - var(--usp-header-h));
  padding: 12px 16px 32px;
}
.usp-breadcrumb {
  text-align: right;
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
}
.usp-breadcrumb span { color: #777; }
.usp-page-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  color: #333;
}

.usp-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.usp-kpi {
  display: flex;
  color: #fff;
  min-height: 92px;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  position: relative;
  overflow: hidden;
}
.usp-kpi-icon {
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  opacity: .92;
}
.usp-kpi-body {
  flex: 1;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.usp-kpi-label { font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.usp-kpi-value { font-size: 22px; font-weight: 700; line-height: 1.2; margin: 2px 0 8px; }
.usp-kpi-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  opacity: .95;
}
.usp-kpi-link:hover { text-decoration: underline; }
.usp-kpi.is-billed { background: var(--usp-orange); }
.usp-kpi.is-paid { background: var(--usp-green); }
.usp-kpi.is-bal { background: var(--usp-aqua); }

.usp-dash-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}
.usp-card {
  background: #fff;
  border-top: 3px solid #d2d6de;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
}
.usp-card-h {
  padding: 10px 12px;
  border-bottom: 1px solid #f4f4f4;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #444;
}
.usp-card-tools { display: flex; gap: 8px; color: #b0b0b0; font-size: 13px; }
.usp-profile-body { padding: 18px 12px 14px; text-align: center; }
.usp-avatar {
  width: 148px;
  height: 148px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ff7a8a;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 3px #f3d0d6;
}
.usp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.usp-profile-name { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 14px; }
.usp-programme {
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-size: 12.5px;
  color: #555;
}
.usp-programme strong { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: #333; }
.usp-stage {
  margin-top: 16px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.usp-stage em { font-style: normal; color: #888; }

.usp-info-body { padding: 8px 0 4px; }
.usp-info-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  padding: 9px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid #f2f2f2;
}
.usp-info-row span { color: #666; }
.usp-update {
  background: #00a65a;
  color: #fff;
  border: 0;
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.usp-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.usp-toolbar-row label { font-size: 13px; }
.usp-select {
  min-width: 220px;
  height: 34px;
  border: 1px solid #d2d6de;
  border-radius: 0;
  padding: 0 8px;
  background: #fff;
}
.usp-btn {
  height: 34px;
  border: 0;
  padding: 0 16px;
  background: #00c0ef;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.usp-btn:hover { filter: brightness(.96); }
.usp-hint { color: #c0392b; font-size: 13px; font-style: italic; }

.usp-pdf {
  background: #ececec;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  width: 100%;
}
.usp-pdf-bar {
  height: 44px;
  background: #323639;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-size: 13px;
}
.usp-pdf-bar button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  min-width: 28px;
  height: 28px;
}
.usp-pdf-page { opacity: .9; }
.usp-pdf-zoom { min-width: 48px; text-align: center; }
.usp-pdf-spacer { flex: 1; }
.usp-pdf-summarize {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.usp-pdf-body {
  display: block;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.usp-pdf-thumbs { display: none; }
.usp-thumb {
  width: 110px;
  height: 150px;
  margin: 0 auto 8px;
  background: #fff;
  border: 3px solid #4fc3f7;
  box-shadow: 0 0 0 1px #222;
  overflow: hidden;
}
.usp-thumb iframe, .usp-thumb .usp-doc {
  transform: scale(.18);
  transform-origin: top left;
  width: 611px;
  height: 833px;
  pointer-events: none;
}
.usp-pdf-stage {
  overflow: auto;
  background: #ececec;
  padding: 16px 12px 24px;
  width: 100%;
  height: calc(100vh - 210px);
  min-height: 520px;
}
.usp-doc-wrap {
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  background: #fff;
  transform-origin: top center;
}
.usp-doc {
  width: 920px;
  max-width: none;
  min-height: 1123px;
  padding: 28px 28px 40px;
  background: #fff;
  color: #111;
  font-family: "Times New Roman", Times, serif;
}
.usp-fee-doc { width: 980px; }
.usp-doc-head {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 12px;
}
.usp-doc-head .right { text-align: right; }
.usp-seal-lg {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  position: relative;
}
.usp-seal-lg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.usp-uni-script {
  font-family: "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-style: italic;
  font-size: 34px;
  text-align: center;
  margin: 6px 0 2px;
  color: #0b3d7a;
}
.usp-doc-title {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 4px 0 12px;
}
.usp-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.usp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.usp-table th, .usp-table td {
  border: 1px solid #333;
  padding: 4px 6px;
}
.usp-table th { background: #f3f3f3; text-align: left; }
.usp-table td.num, .usp-table th.num { text-align: center; white-space: nowrap; }

.usp-panel { background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.1); padding: 16px; }
.usp-panel h3 { margin: 0 0 12px; font-size: 16px; }
.usp-form-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 12px;
  align-items: center;
  max-width: 640px;
}
.usp-input, .usp-select.full {
  height: 34px;
  border: 1px solid #d2d6de;
  padding: 0 8px;
  width: 100%;
}
.usp-table.plain th { background: #3c8dbc; color: #fff; border-color: #367fa9; }
.usp-table.plain td { border-color: #e6e6e6; }
.usp-muted { color: #888; font-size: 13px; }
.usp-alert {
  background: #fff3cd;
  border: 1px solid #ffe8a1;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.usp-success {
  background: #dff0d8;
  border: 1px solid #d0e9c6;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .usp-kpis, .usp-dash-grid { grid-template-columns: 1fr; }
  .usp-info-row { grid-template-columns: 1fr; gap: 2px; }
  .usp-pdf-body { display: block; }
  .usp-pdf-thumbs { display: none; }
  .usp-doc-wrap { width: max-content; min-width: 100%; }
}
@media print {
  .usp-topbar, .usp-sidebar, .usp-breadcrumb, .usp-page-title, .usp-toolbar-row, .usp-pdf-bar, .usp-pdf-thumbs { display: none !important; }
  .usp-app { padding: 0; }
  .usp-pdf, .usp-pdf-stage { background: #fff; padding: 0; }
  .usp-doc-wrap { zoom: 1 !important; width: auto; margin: 0; }
  .usp-ssd-toast { display: none !important; }
  @page { margin: 12mm 10mm; }
}

.msu-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8d8d8;
  padding: 24px;
}
.msu-login[hidden],
.usp-app[hidden],
#uspSsdHost[hidden] {
  display: none !important;
}
.usp-app:not([hidden]) { display: block; }
#uspSsdHost:not([hidden]) {
  display: block !important;
  min-height: 100vh;
  background: #ecf0f5;
}
.msu-card {
  width: 420px;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  border-radius: 2px;
  overflow: hidden;
}
.msu-card-h {
  background: #3ecad8;
  color: #fff;
  text-align: center;
  font-size: 22px;
  padding: 14px 16px 16px;
  font-weight: 500;
}
.msu-card-b { padding: 18px 22px 22px; }
.msu-seal { display: flex; justify-content: center; margin: 6px 0 18px; }
.msu-seal img { width: 118px; height: auto; display: block; }
.msu-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  color: #333;
}
.msu-row input {
  height: 32px;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  padding: 0 6px;
  outline: none;
}
.msu-row input:focus { border-bottom-color: #3ecad8; }
.msu-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.msu-forgot {
  background: #f5a623;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}
.msu-signin {
  background: #2f80ed;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 22px;
  cursor: pointer;
  font-weight: 700;
}
.msu-err { color: #c0392b; font-size: 13px; margin: 0 0 8px; }
.usp-closed {
  background: #fff;
  border: 1px solid #d2d6de;
  padding: 28px 24px;
  max-width: 720px;
  line-height: 1.55;
}
.usp-closed h3 { margin: 0 0 10px; color: #1a5276; }
.usp-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00a65a;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
}
.usp-update-form .usp-info-row input {
  height: 30px;
  width: 100%;
  border: 1px solid #d2d6de;
  padding: 0 8px;
}
.usp-fee-doc-h { text-align: center; margin: 0 0 10px; font-size: 13px; line-height: 1.35; }
.usp-fee-doc-h strong { display: block; letter-spacing: .04em; }
.usp-fee-doc h4 { margin: 14px 0 6px; font-size: 13px; }
.usp-fee-doc .usp-table td.num, .usp-fee-doc .usp-table th.num {
  text-align: right;
  width: 108px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.usp-legend { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 20px; font-size: 12px; margin-top: 14px; }
.usp-legend-col > div { display: grid; grid-template-columns: 88px 22px 1fr; gap: 8px; margin: 2px 0; }
.usp-sign { margin-top: 22px; font-size: 13px; }
.usp-ssd {
  padding: 16px;
  background: #ecf0f5;
  min-height: 70vh;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #444;
}
.usp-ssd h2 { margin: 0 0 8px; }
.usp-ssd-grid { display: grid; gap: 12px; }
.usp-ssd-card { background: #fff; border: 1px solid #d2d6de; padding: 12px; }
.usp-ssd-card h3 { margin: 0 0 10px; font-size: 15px; }
.usp-ssd-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 8px; align-items: center; margin: 0 0 8px; }
.usp-icon-btn {
  width: 34px; height: 34px; border: 1px solid #cfd8dc; background: #fff; cursor: pointer; border-radius: 4px;
}
.usp-icon-btn.is-block { background: #fdecea; color: #c0392b; }
.usp-icon-btn.is-ok { background: #e8f8f0; color: #1e8449; }
.usp-icon-btn.is-save { background: #eaf6ff; color: #1a5276; }
.usp-ssd textarea { width: 100%; min-height: 90px; font-family: Consolas, monospace; font-size: 12px; }
.usp-save-ico { display: inline-block; vertical-align: -2px; }
.usp-ssd-icons { display: flex; gap: 4px; }
.usp-ssd-fee-head, .usp-ssd-fee-row, .usp-ssd-tr-head, .usp-ssd-tr-row {
  display: grid;
  gap: 6px;
  align-items: center;
  margin: 0 0 6px;
}
.usp-ssd-fee-head, .usp-ssd-fee-row { grid-template-columns: 1.2fr .8fr 1fr 2fr .7fr .7fr .7fr 34px; }
.usp-ssd-tr-head, .usp-ssd-tr-row { grid-template-columns: 110px 1fr 70px 70px 34px; }
.usp-ssd-fee-head span, .usp-ssd-tr-head span { font-size: 11px; font-weight: 700; color: #555; }
.usp-tr-block { border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }
.usp-total-row td { background: #f7f7f7; }
.usp-generated { margin-top: 18px; font-size: 12px; }
.usp-ssd-edit-only h3 { color: #1a5276; }
#totBal { background: #f4f7fb; font-weight: 700; }
.usp-ssd-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 4000;
  background: #1e8449;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.usp-ssd-toast.is-on { opacity: 1; transform: translateY(0); }
.usp-grand { margin-top: 8px; }

