/* logo & legend */
.logo img
{
  height: 80px !important;
  width: auto !important;
  max-height: 90px;
}

.legend {
    margin-top: 10px;
    display: none;
}

/* =========================================================
   Modern SaaS Admin UI
   Scope: cb login page
   ========================================================= */

@media (min-width: 576px) and (min-height: 518px) {
    .login-box {

        border-radius: 20px;
    }
}
.input-group span {
    color: white;
    background-color: #8330bf;
}
/* =========================================================
   Modern SaaS Admin UI
   Scope: for the program page
   ========================================================= */

#programs .mnt-details .content-controls, .cdt-details .content-controls, .final-review .content-controls
{Specificity: (0,2,0)
 
    background-color: #0e2776;
    padding: 20px;
    border-radius: 20px;
}
.mnt-summary {
    text-align: center;
    color: #b0b0b0;
    padding: 40px;
}

/* =========================================================
   Modern SaaS Admin UI
   Scope: for the program details page
   ========================================================= */

#stages {
  background:  #0e2776 ;
  padding: 24px;
  border-radius: 18px;
}
#stages .sep .medium-sep {
    background: white;
    border-radius: 6px;
    padding: 15px;
background-color: #1a3d8f;
color: white;
    font-size: 20px;
	    border-radius: 6px;

}

#stages .stage-block {
  background: #ffffff;
  border: 1px solid rgba(13, 44, 132, 0.10);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 8px 24px rgba(13, 44, 132, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#stages .stage-block:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 44, 132, 0.20);
  box-shadow:
    0 2px 6px rgba(16, 24, 40, 0.05),
    0 14px 30px rgba(13, 44, 132, 0.10);
}

#stages .stage-block > .header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  color: #0f2f7a;
  line-height: 1.3;
  margin-bottom: 14px;
  padding: 0 0 12px 0;
  border-bottom: 1px solid #e9eef7;
}

#stages .stage-block > .header::before {
  content: "Stage";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d2c84 0%, #2854c5 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(13, 44, 132, 0.18);
}

#stages .stage-detail-info {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f1f1f1;
  border: 1px solid black;
  border-radius: 12px;
  color: #475467;
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
}

#stages .item-block {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #dbe6fb;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#stages .item-block:hover {
  transform: translateY(-1px);
  border-color: black;
  box-shadow:
    0 4px 10px rgba(16, 24, 40, 0.05),
    0 10px 18px rgba(40, 84, 197, 0.08);
}

#stages .item-block > .header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

#stages .item-block > .header::before {
  content: "Item";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8efff;
  color: #23408e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#stages .item-detail-info {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f1f1f1;
  border: 1px solid #e1e9fb;
  border-radius: 10px;
  color: #475467 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  font-style: normal !important;
}

#stages .item-description {
  margin-top: 12px;
  padding: 16px 16px 16px 18px;
  background: #ffffff;
  border: 1px solid #e6edf8;
  border-left: 6px solid #2854c5;
  border-radius: 12px;
  color: #344054;
  font-size: 14px;
  line-height: 1.72;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

#stages .item-description::before {
  content: "Item Description";
  display: block;
  margin-bottom: 8px;
  color: #23408e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* =========================================================
   CertBank Implementation Overrides (PCI)
   File: custom.css
   ========================================================= */

/* 1) Brand Variables */
:root{
  --brand-primary: #0e2776;
  --brand-primary-hover: #005f90;
  --brand-accent: #BFEB05;

  --header-bg: #ffffff;

  --footer-bg: #ffffff;
  --footer-link-hover: #0073AE;

  --rails-bg: #ededed;      /* darken rails here */
  --surface-bg: #ffffff;
  --page-max-width: 1280px;

  --header-height: 110px;
  --logo-height: 84px;

  --user-font-size: 15px;   /* make “Hi, FirstName” readable again */
}

/* =========================================================
   2) Page Shell (RAILS + CENTER SURFACE)
   ========================================================= */
html, body{
  height: 100%;
  background-color: var(--rails-bg) !important;
  font-family: Helvetica, Arial, sans-serif;
  color: #333;
}

/* Force outer wrappers transparent so rails show */
.page-wrapper,
.page-content,
.outer-container,
.container-fluid,
.main-content,
.content,
#wrapper,
#page,
.wrapper{
  background: transparent !important;
}

/* White center surface */
.page-content > .container,
.page-content .outer-container{
  background: var(--surface-bg) !important;
  max-width: var(--page-max-width) !important;
  margin: 24px auto 0 auto !important;
  padding: 24px 32px !important;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Optional helper (only used if you add cb-surface class somewhere) */
.container.cb-surface{
  background: var(--surface-bg) !important;
  max-width: var(--page-max-width) !important;
  margin: 24px auto !important;
  padding: 24px 32px !important;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* =========================================================
   3) Header (KNOWN-GOOD: PCI logo left, user menu right)
   ========================================================= */
.page-header{
  background-color: var(--header-bg) !important;
  height: var(--header-height) !important;
  border-bottom: 1px solid rgba(0,0,0,.10) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.12),
    0 8px 20px rgba(0,0,0,0.10) !important;
  position: relative;
  z-index: 1000;
}

/* This is the ONE flex row that controls header alignment */
.page-header .header-content{
  height: var(--header-height) !important;
 
  padding-left: 32px !important;
  padding-right: 32px !important;

  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

/* Left: PCI logo */
.page-header .logo{
  height: var(--header-height) !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  margin-right: auto !important; /* forces left */
}

.page-header .logo img{
  height: var(--logo-height) !important;
  width: auto !important;
  max-width: none !important;
  display: block;
}

/* Right: user menu */
.page-header .header-inner-content{
  margin-left: auto !important; /* forces right */
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

/* User/menu text (“Hi, FirstName”) */
.user-info,
a.user-info{
  color: #ffffff !important;
  font-size: var(--user-font-size) !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}


/* =========================================================
   3A) Hide CertBank mini/logo mark in HEADER
   ========================================================= */

/* 1) Hide obvious mini-logo containers if present */
.page-header .certbank-mini-logo,
.page-header .mini-logo,
.page-header .brand-mark,
.page-header .brand-icon,
.page-header .logo-mark,
.page-header .ribbon-icon,
.page-header .certbank-badge,
.page-header .certbank-ribbon{
  display: none !important;
}

/* 2) Hide images that are CertBank marks (case-insensitive) */
.page-header img[alt*="CertBank"]i,
.page-header img[src*="certbank"]i{
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* 3) Hide SVG/icon marks (common in headers) */
.page-header svg,
.page-header i[class*="icon"]i,
.page-header i[class*="logo"]i{
  /* Do NOT hide everything globally—only if it’s inside a mini-logo wrapper */
}

/* If the mini mark is an SVG inside a known wrapper */
.page-header .mini-logo svg,
.page-header .brand-icon svg,
.page-header .logo-mark svg{
  display: none !important;
}

/* 4) Hide background-image based marks (fallback) */
.page-header [style*="certbank"]i{
  background-image: none !important;
}

/* =========================================================
   4) Footer (WHITE + DIVIDER)
   ========================================================= */
.page-footer{
  background-color: var(--footer-bg) !important;
  color: #333 !important;

  /* divider line between content and footer */
  border-top: 1px solid rgba(0,0,0,.15) !important;

  /* make it feel taller without fighting content */
  min-height: 80px;
  padding: 18px 0 22px 0;
}

/* Footer links */
.page-footer a{
  color: var(--brand-primary) !important;
}

.page-footer a:hover{
  color: var(--brand-primary-hover) !important;
}

/* =========================================================
   5) Buttons / Tabs (PRIMARY)
   ========================================================= */
a.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
input[type="button"].btn-primary,
.maintenance-details a.tab,
.a-dash-tabs a.tab{
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: rgba(16, 114, 206, 0.5) !important;
  border-radius: 10px;
}

a.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover,
input[type="button"].btn-primary:hover,
.maintenance-details a.tab:hover,
.a-dash-tabs a.tab:hover{
  background-color: var(--brand-primary-hover) !important;
}

/* Optional explicit class */
.cb-btn-primary{
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border: 1px solid rgba(16, 114, 206, 0.5) !important;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none !important;
}

.cb-btn-primary:hover{
  background-color: var(--brand-primary-hover) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* fix hjeader */
/* ===== HEADER LAYOUT: two-column (like other sites) ===== */

.page-header .header-inner-content{
  display: table !important;
  width: 100% !important;
  table-layout: fixed !important;   /* prevents weird squeezing */
}

/* Two cells */
.page-header .header-inner-content > div{
  display: table-cell !important;
  vertical-align: middle !important;
  overflow: visible !important;
}

/* Left cell (logo) takes remaining space */
.page-header .header-inner-content > div:first-child{
  width: 100% !important;
}

/* Right cell (Hi, Name) stays right */
.page-header .header-inner-content > div:last-child{
  width: 100% !important;            /* shrink-to-fit */
  white-space: nowrap !important;
  text-align: right !important;
  vertical-align: middle !important;
}
.page-header .header-inner-content > div:last-child *{
  text-align: right !important;
}


/* Review Page */
/* ==========================================================
   Generic Review Page Polish (CSS-only)
   Applies only where these review page hooks exist:
   #txtPublicComments, #txtInternalComments, #updateButtons,
   #commentsThread, .review-credit-details, .left-controls, .right-controls
   ========================================================== */

/* --- Page title --- */
h5 {
  font-size: 18px;
  font-weight: 800;
  margin: 6px 0 12px;
}

/* --- Main container card (review detail block) --- */
.review-credit-details {
  /* your markup has inline background-color:white; we override gently */
  background: #f7f8fa !important;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  padding: 16px !important;
  position: relative;
}

/* --- Document / download sections: consistent + tidy --- */
.review-credit-details .review-doc-section {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-credit-details .review-doc-section .doc-date {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* --- HERO button for "View Form" (generic) ---
   In your markup, this is a direct child of .review-credit-details (not inside review-doc-section),
   so we can safely style it without affecting doc download buttons.
   This keeps it obvious and “important”.
*/
.review-credit-details > a.btn.btn-secondary[href^="javascript:OpenFormWindow"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;

  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);

  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}
.review-credit-details > a.btn.btn-secondary[href^="javascript:OpenFormWindow"]::before {
  content: "👁";
  font-size: 14px;
  line-height: 1;
}
.review-credit-details > a.btn.btn-secondary[href^="javascript:OpenFormWindow"]:hover {
  filter: brightness(.95);
}

/* Give breathing room so the “hero” button doesn’t overlap content */
.review-credit-details { padding-top: 58px !important; }

/* --- Two-column layout (comment entry vs history) ---
   Your markup uses .table > .row with .left-controls and .right-controls.
   We convert that row to CSS grid without changing HTML.
*/
.review-credit-details .table > .row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: start;
}

/* Left side: writing area */
.review-credit-details .left-controls {
  background: #ffffff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  padding: 14px;
}

/* Right side: history (sticky on desktop) */
.review-credit-details .right-controls {
  background: #ffffff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  padding: 14px;

  position: sticky;
  top: 18px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}

/* --- Labels & textareas --- */
.review-credit-details .label label {
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}

.review-credit-details textarea.medium,
.review-credit-details #txtPublicComments,
.review-credit-details #txtInternalComments {
  width: 100% !important;
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid #dfe3ea;
  padding: 12px;
  font-size: 14px;
  resize: vertical;
}
.review-credit-details textarea.medium:focus,
.review-credit-details #txtPublicComments:focus,
.review-credit-details #txtInternalComments:focus {
  border-color: #8ab4ff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
  outline: none;
}

/* Credits box */
.review-credit-details #txtCredits {
  border-radius: 12px;
  border: 1px solid #dfe3ea;
  padding: 10px 12px;
}

/* --- Buttons: clearer hierarchy (generic) --- */
.review-credit-details #updateButtons a.btn {
  border-radius: 999px;
  font-weight: 900;
  padding: 10px 14px;
  margin-right: 8px;
  margin-top: 6px;
}

/* “Submit comments” feels secondary */
.review-credit-details #cmdComments {
  background: transparent !important;
  border: 1px solid #cfd6e3 !important;
  color: #111827 !important;
  box-shadow: none !important;
}

/* Approve / Reject / Cancel */
.review-credit-details #cmdApprove {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(22,163,74,.18);
}
.review-credit-details #cmdReject {
  background: #fff !important;
  color: #dc2626 !important;
  border: 1px solid rgba(220,38,38,.35) !important;
}
.review-credit-details a.cancel-button {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #cfd6e3 !important;
}

/* Decision area “bar” feel */
.review-credit-details #updateButtons {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #eef0f5;
}

/* Thread styling (light touch; keeps whatever HTML you render) */
.review-credit-details #commentsThread {
  font-size: 13px;
  line-height: 1.35;
}

/* --- Responsive: collapse to single column --- */
@media (max-width: 980px) {
  .review-credit-details .table > .row { grid-template-columns: 1fr; }
  .review-credit-details .right-controls {
    position: static;
    max-height: none;
  }
}
  .review-credit-details > a.btn.btn-secondary[href^="javascript:OpenFormWindow"] {
    position: static;
    margin-bottom: 10px;
  }
  .review-credit-details { padding-top: 16px !important; }
.review-credit-details { outline: 6px solid hotpink !important; }
/* =========================================
   Top admin command buttons only
   Login As / Sync / Recalc
   ========================================= */

#cmdLoginUser,
#cmdSyncUser,
#cmdRecalcUser {
    position: relative;
    padding-left: 42px !important;
    border-radius: 14px !important;
    font-weight: 600;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Shared icon positioning */
#cmdLoginUser::before,
#cmdSyncUser::before,
#cmdRecalcUser::before {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    line-height: 1;
}

/* Login As - admin / impersonation */
#cmdLoginUser {
    background: #5b677d !important;
    border-color: #5b677d !important;
    color: #ffffff !important;
}

#cmdLoginUser::before {
    content: "◉";
}

#cmdLoginUser:hover,
#cmdLoginUser:focus {
    background: #4a5568 !important;
    border-color: #4a5568 !important;
    color: #ffffff !important;
}

/* Sync - system refresh / update */
#cmdSyncUser {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}
.percentage-container .textual {
    margin-top: 10px;
    display: none;
}

#cmdSyncUser::before {
    content: "↻";
}

#cmdSyncUser:hover,
#cmdSyncUser:focus {
    background: #0d5f59 !important;
    border-color: #0d5f59 !important;
    color: #ffffff !important;
}

/* Recalc - caution / recalculation */
#cmdRecalcUser {
    background: #b45309 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}
/* profile page content edit */
#divPWComment {
    font-size: 0;
}

#divPWComment::after {
    content: "iMIS Logged in users NEVER see this profile page. ** Changing this password does not change the user's IMIS password or have any affect on the SSO. ** This would only allow you to enter CertBank from the CertBank backend with this password. ** The profile data is fed from iMIS and changing this data (other than password) will be overwritten by iMIS.  This is for informational purposes only.";
    font-size: 14px;
    color: #666;
}

#cmdRecalcUser::before {
    content: "∑";
}

#cmdRecalcUser:hover,
#cmdRecalcUser:focus {
    background: #92400e !important;
    border-color: #92400e !important;
    color: #ffffff !important;
}
#stage_block .stage-detail-info, .item-detail-info {
    margin-bottom: 20px;
    margin-top: 0px; 
    font-style: italic;
}
/* reviewer comment update for NEA */
input, select, textarea {
    border: solid 1px #e0e0e0;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    padding: 8px;
    color: black;
    font-size: 14px;
    line-height: 1.3;
}
/* added padding to MC logo on program details page -KT 03262026 */
.program-details img {
    width: 100%;
    padding: 20px;
}
/* updated CertBank words to View PDF per request of NEA -KT 03262026 */
.program-details-program-info-button {
    font-size: 0; /* hides original text */
    position: relative;
}

.program-details-program-info-button::after {
    content: "View PDF";
    font-size: 14px; /* adjust to match your design */
}
/* updating per NEA style -KT 03262026 */
a.btn-secondary {
    color: #ffffff;
    background-color: #c22626;
    border-radius: 10px;
    font-weight: bold;
}
@media (min-width: 768px) {
    .page-header .container {
        height: 100px;
        background-color: #001246;
    }
}

@media (min-width: 1600px) {
    .mnt-details .cover, .cdt-details .cover, .final-review .cover {
        display: none;
}
}

#badge_expires_row
{
	display: none !important;
}
/* Enrollments tab layout cleanup */
.enrollments-tab .enrollments-table .row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    align-items: start;
}

/* Reset the fake table-cell behavior */
.enrollments-tab .enrollments-table .cell {
    display: block !important;
    padding: 6px 8px;
    overflow: visible;
}

/* Hide Maintenance column - 5th column */
.enrollments-tab .enrollments-table .cell:nth-child(5) {
    display: none !important;
}

/* After hiding Maintenance, spread remaining columns */
.enrollments-tab .enrollments-table .row {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

/* Let Program breathe and wrap nicely */
.enrollments-tab .enrollments-table .cell:nth-child(1) {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Hide Include in Perc and Status */
.credits-tab .credits-table .row .cell:nth-child(4),
.credits-tab .credits-table .row .cell:nth-child(7) {
    display: none !important;
}

/* Resize remaining columns */
.credits-tab .credits-table .row .cell:nth-child(1) {
    width: 45%;
    white-space: normal;
    overflow-wrap: break-word;
}

.credits-tab .credits-table .row .cell:nth-child(2) {
    width: 15%;
}

.credits-tab .credits-table .row .cell:nth-child(3) {
    width: 15%;
}

.credits-tab .credits-table .row .cell:nth-child(5) {
    width: 12.5%;
}

.credits-tab .credits-table .row .cell:nth-child(6) {
    width: 12.5%;
}

/* Rename headers */
.credits-tab .credits-table .header-row .cell {
    font-size: 0;
}

.credits-tab .credits-table .header-row .cell:nth-child(1)::after {
    content: "Item";
    font-size: 14px;
    font-weight: 600;
}

.credits-tab .credits-table .header-row .cell:nth-child(2)::after {
    content: "Activity Date";
    font-size: 14px;
    font-weight: 600;
}

.credits-tab .credits-table .header-row .cell:nth-child(3)::after {
    content: "Removed On";
    font-size: 14px;
    font-weight: 600;
}

.credits-tab .credits-table .header-row .cell:nth-child(5)::after {
    content: "Claimed";
    font-size: 14px;
    font-weight: 600;
}

.credits-tab .credits-table .header-row .cell:nth-child(6)::after {
    content: "Granted";
    font-size: 14px;
    font-weight: 600;
}
/* Hide specific admin tabs */
#lnk_address,
#lnk_submissions,
#lnk_reviewLog {
    display: none !important;
}
/* ==========================================================
   Enrollments - Program & Action Links
   ========================================================== */

/* Program link */
.enrollments-tab .enrollments-table .cell:nth-child(1) a:first-child {
    display: inline-block;
    font-weight: 700;
    color: #002f87 !important;
    text-decoration: underline;
    margin-top: 4px;
    margin-bottom: 10px;
}

/* View Enrollment helper */
.enrollments-tab .enrollments-table .cell:nth-child(1) a:first-child::after {
    content: " 🔍 View Details";
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    vertical-align: middle;
}

/* All action links */
.enrollments-tab .enrollments-table .cell:nth-child(1) a:not(:first-child) {
    display: inline-block;
    margin-top: 8px;
    font-size: 0;              /* Hide original text */
    text-decoration: none;
}

/* Remove Enrollment */
.enrollments-tab .enrollments-table .cell:nth-child(1) a:nth-of-type(2)::before {
    content: "⚠ Remove Enrollment";
    font-size: 12px;
    font-weight: 600;
    color: #b35c00;
    border: 1px solid #b35c00;
    border-radius: 4px;
    padding: 4px 8px;
    display: inline-block;
}

/* Inactivate */
.enrollments-tab .enrollments-table .cell:nth-child(1) a:nth-of-type(3) {
    margin-top: 12px;
}

.enrollments-tab .enrollments-table .cell:nth-child(1) a:nth-of-type(3)::before {
    content: "⛔ Inactivate";
    font-size: 12px;
    font-weight: 600;
    color: #9b1c1c;
    border: 1px solid #9b1c1c;
    border-radius: 4px;
    padding: 4px 8px;
    display: inline-block;
}
/* ==========================================================
   Credits - Enrollment & Delete Links
   ========================================================== */

/* Enrollment link */
.credits-tab .credits-table .cell:nth-child(1) a[href*="enrollment.aspx"] {
    display: inline-block;
    font-weight: 700;
    color: #002f87 !important;
    text-decoration: underline;
    margin-top: 4px;
    margin-bottom: 10px;
}

/* View Details helper */
.credits-tab .credits-table .cell:nth-child(1) a[href*="enrollment.aspx"]::after {
    content: "   🔍 View Details";
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    vertical-align: middle;
}

/* Delete Item link */
.credits-tab .credits-table .cell:nth-child(1) a[href*="deleteCredit"] {
    display: inline-block;
    margin-top: 10px;
    color: transparent !important;
    text-decoration: none;
    position: relative;
}

/* Replace "delete" with a clearer action */
.credits-tab .credits-table .cell:nth-child(1) a[href*="deleteCredit"]::after {
    content: "🗑 Delete Item";
    position: absolute;
    left: 0;
    top: 0;
    color: #9b1c1c;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}