/* New Colours override Bootstrap */
:root {
  /* new brand color */
  --bs-primary: #F93822; /* CC Red */
  --bs-primary-rgb: 249, 56, 34; /* keep in sync with the hex above */
  --bs-body-font-family: "SuisseIntl", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", "Noto Sans", sans-serif;
}
/* Contact pill button */
.cc-contact-btn{
  --cc-bg: transparent;
  --cc-fg: #fff;
  --cc-ring: rgba(255,255,255,.18);
  --cc-dot: #ef3b2d;              /* red dot */
  --cc-border: rgba(255,255,255,.35);

  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px 14px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--cc-border);
  background: var(--cc-bg);
  color: var(--cc-fg);
  box-shadow: 0 0 0 1px var(--cc-ring) inset;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.cc-contact-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}

.cc-contact-left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;               /* Suisse looks great at 600 */
}

.cc-contact-logo{
  width: 20px; height: 20px;      /* adjust to your mark */
  display: block; flex: 0 0 auto;
  filter: drop-shadow(0 0 0);     /* keep crisp */
}

.cc-contact-dot{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--cc-dot);
  box-shadow: 0 8px 24px rgba(239,59,45,.35), 0 0 0 1px rgba(239,59,45,.5) inset;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cc-contact-dot i{
  font-size: 14px;
}

.cc-contact-btn:hover .cc-contact-dot{
  transform: translateX(2px);
  box-shadow: 0 10px 28px rgba(239,59,45,.45), 0 0 0 1px rgba(239,59,45,.6) inset;
}

.cc-contact-btn:hover{
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
}

/* Ensure base and headings actually use it */
html, body {
  font-family: var(--bs-body-font-family);
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; }

/* Avoid faux styles */
* { font-synthesis-weight: none; font-synthesis-style: none; }

/* Sidebar color override */
.sidebar {
  --bs-dark-rgb: 18, 29, 41;                 /* #121D29 */
  background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important;
}

/*tweak link colors in the sidebar */
.sidebar .nav-link { color: #cbd5e1; }
.sidebar .nav-link:hover,
.sidebar .nav-link.active { color: #fff; background-color: rgba(255,255,255,.08); }

/* active tab (nav-pills) */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--bs-primary) !important;
  color: #fff !important; 
}

/* utilities that use primary */
.bg-primary    { background-color: var(--bs-primary) !important; }
.text-primary  { color:            var(--bs-primary) !important; }
.border-primary{ border-color:     var(--bs-primary) !important; }

/* Only changes Bootstrap's primary button */
.btn-primary, .btn-outline-primary{
  --bs-btn-color: #fff;
  --bs-btn-bg: #F93822;
  --bs-btn-border-color: #F93822;

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #d22f1b;       /* a bit darker */
  --bs-btn-hover-border-color: #d22f1b;

  --bs-btn-focus-shadow-rgb: 249,56,34; /* rgb of #F93822 */

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b82817;      /* darker again */
  --bs-btn-active-border-color: #b82817;

  --bs-btn-disabled-bg: #F93822;
  --bs-btn-disabled-border-color: #F93822;
}


.login-card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    background: #fff;
    border-radius: 1.5rem;
    min-width: 320px;
    max-width: 90vw;
    margin: auto;
}
.brand-color {
    color: #121D29; /* CC Carbon Black */
}
.btn-microsoft {
    background-color:  #121D29; /* CC Carbon Black */
    color: #000;
}
.btn-microsoft:hover {
    background-color: #F93822;
}

    .section-title {
    font-weight: 600;
    border-bottom: 2px solid #000; /* solid black border */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}


#tableSearch {
        min-width: 200px;
        }

        #downloadCSV {
            white-space: nowrap;
        }

    /* Make Sidebar Collapsible */
    @media (max-width: 768px) {
        .sidebar {
            width: 100%;
            height: auto;
            position: relative;
        }

        .main-content {
            padding: 10px;
        }
    }

        /* Ensure sidebar and main content align properly */
        .wrapper {
            display: flex;
            flex-wrap: nowrap;
            min-height: 100vh;
        }

        /* Sidebar Styling */
        .sidebar {
            width: 280px;
            min-height: 100vh;
            background-color: #343a40;
            color: white;
        }

        /* Main Content should take remaining space */
        .main-content {
            flex-grow: 1;
            padding: 20px;
            overflow-x: hidden; /* Prevent content overflow */
        }

        /* Ensure table does not overflow */
        .table-responsive {
            overflow-x: auto;
            max-width: 100%;
            white-space: nowrap;
        }
        .dimmed-row {
            background-color: #f1f1f1 !important;  /* Light gray background */
            color: #6c757d !important;             /* Muted text */
            opacity: 0.7;
        }

        .dimmed-row input[type="checkbox"] {
            cursor: not-allowed;
        }
.supplier-switcher .chip{
  --chip-bg: transparent; --chip-fg:#0e1720; --chip-br:rgba(2,6,23,.15); --chip-dot:currentColor;
  display:inline-flex; align-items:center; gap:.5rem; padding:.35rem .75rem;
  border:1px solid var(--chip-br); border-radius:9999px; background:var(--chip-bg);
  color:var(--chip-fg); font-weight:600; font-size:.875rem; line-height:1; cursor:pointer;
  transition: all .15s ease;
}
.supplier-switcher .chip:hover{ transform: translateY(-1px); }
.supplier-switcher .chip .chip-dot{ width:.5rem; height:.5rem; border-radius:50%; background:var(--chip-dot); display:inline-block; }
.supplier-switcher .chip.is-active{ color:#fff; border-color:transparent; }
.supplier-switcher .chip.is-active .chip-dot{ background:#fff; }

.supplier-switcher .chip.chip--red    { --chip-fg:#b91c1c; --chip-br:#fecaca; }
.supplier-switcher .chip.chip--blue   { --chip-fg:#1d4ed8; --chip-br:#bfdbfe; }
.supplier-switcher .chip.chip--green  { --chip-fg:#047857; --chip-br:#bbf7d0; }
.supplier-switcher .chip.chip--purple { --chip-fg:#6d28d9; --chip-br:#ddd6fe; }
.supplier-switcher .chip.chip--orange { --chip-fg:#c2410c; --chip-br:#fed7aa; }

.supplier-switcher .chip.chip--red.is-active    { background:#ef4444; }
.supplier-switcher .chip.chip--blue.is-active   { background:#3b82f6; }
.supplier-switcher .chip.chip--green.is-active  { background:#10b981; }
.supplier-switcher .chip.chip--purple.is-active { background:#8b5cf6; }
.supplier-switcher .chip.chip--orange.is-active { background:#f97316; }


    /* pill CTA */
    .btn-pill{
      display:inline-flex; align-items:center; gap:16px;
      padding:14px 18px 14px 24px;
      border:1px solid var(--border); border-radius:var(--radius);
      color:var(--white); text-decoration:none; font-weight:700;
    }
    .btn-pill .badge-arrow{
      display:grid; place-items:center; width:38px; height:38px; border-radius:50%;
      background:var(--accent); color:#fff; font-size:18px; box-shadow: 0 0 0 3px rgba(255,59,35,.2);
    }
    /* make the pill stand out on dark bg */
.btn-pill{
  /* stronger white outline + subtle inner ring */
  border: 1.5px solid rgba(255,255,255,.38);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset;
  background: transparent;
  color: #fff;
}

/* the red circular arrow uses your brand red + halo */
.btn-pill .badge-arrow{
  background: var(--bs-primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .20);
}

/* hover: slightly brighter border and nudge the arrow */
.btn-pill:hover{
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,.26) inset;
  transform: translateY(-1px);
}
.btn-pill:hover .badge-arrow{ transform: translateX(2px); }

/* focus ring for keyboard users */
.btn-pill:focus-visible{
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 2px;
}

/* pressed/active: fill the pill with CC red like the active tab */
.btn-pill:active,
.btn-pill.active {                /* add .active via JS if you want it to stay filled */
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), .35);
}

/* when filled red, flip the arrow badge to white w/ red icon for contrast */
.btn-pill:active .badge-arrow,
.btn-pill.active .badge-arrow{
  background: #fff;
  color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
/* force capsule shape */
.btn-pill{
  position: relative;            /* needed for the ::before ring */
  border-radius: 9999px;         /* full pill */
  overflow: hidden;              /* clip contents to the curve */
  background-clip: padding-box;  /* keep border clean */
}

/* subtle inner ring that also follows the pill curve */
.btn-pill::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset;
  pointer-events:none;
}

/* if Bootstrap or other styles are still winning, bump specificity */
/* MINI VERSION OF CONTACT CTA FOR SIDEBAR */
.sidebar .btn-pill {
    padding: 7px 10px 7px 12px;
    font-size: 0.80rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
    background: transparent;
    color: #fff;
    margin-top: 1rem;
}

/* Contact Modal Styles */
/* static/css/styles.css */

/* Design tokens */
:root{
  --bg-dark:#0c151d;
  --bg-light:#f3f5f6;
  --ink:#0e1720;
  --ink-muted:#334155;
  --white:#ffffff;
  --accent:#ff3b23;
  --border:rgba(255,255,255,.16);
  --radius:22px;
  --brand-blue:#2e5c8c;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--ink);
  background:var(--bg-light);
  line-height:1.45;
}

/* HERO */
.hero{ background:var(--bg-dark); color:var(--white); padding:24px 20px 48px; }
.hero-inner{ max-width:1100px; margin:0 auto; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:44px; width:auto; display:block; }
.hero h1{ margin:18px 0 8px; font-weight:800; font-size: clamp(28px, 4vw, 42px); letter-spacing:.2px; }
.hero p.sub{ color:#e2e8f0; margin:0 0 20px; font-size: clamp(15px, 2.2vw, 18px); max-width:70ch; }

/* pill CTA */
.btn-pill{
  display:inline-flex; align-items:center; gap:16px;
  padding:14px 18px 14px 24px;
  border:1px solid var(--border); border-radius:var(--radius);
  color:var(--white); text-decoration:none; font-weight:700;
}
.btn-pill .badge-arrow{
  display:grid; place-items:center; width:38px; height:38px; border-radius:50%;
  background:var(--accent); color:#fff; font-size:18px; box-shadow: 0 0 0 3px rgba(255,59,35,.2);
}
.btn-pill.invert{
  color:var(--ink);
  border:1px solid #cbd5e1;
  background:#fff;
}

/* hero button row */
.btn-row{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.btn-row .push-right{ margin-left:auto; }
@media (max-width:640px){
  .btn-row{ flex-direction:column; align-items:flex-start; }
  .btn-row .push-right{ margin-left:0; }
}

/* MAIN LAYOUT */
.section{ max-width:1100px; margin:0 auto; padding:40px 20px 64px; }
.card-box{
  position:relative;
  background:#fff; border:1px solid #e5e7eb; border-radius:20px;
  box-shadow:0 10px 30px rgba(2,6,23,.08); padding:24px;
}

/* details grid (only used on page 1) */
.details-grid{ display:grid; gap:14px 28px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 768px){ .details-grid{ grid-template-columns: 1fr 1fr; } }
.details-grid .label{ font-weight:700; color:var(--ink); }
.details-grid .value{ font-weight:700; color:var(--brand-blue); }

/* table styling */
.table-wrap{ margin-top:18px; }
.table-shell{ border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; background:#fff; }
.table-brand{ border:0; border-radius:0; }
.table-brand thead{ background:#0f1b25; color:#e2e8f0; }
.table-brand tbody tr:nth-child(even){ background:#fafbfc; }
.table-brand th, .table-brand td{ vertical-align:middle; padding:.75rem .9rem; }

/* alerts */
.alert-success{ background-color:#d1fae5 !important; color:#065f46 !important; border-color:#86efac !important; }
.alert-info{    background-color:#e0f2fe !important; color:#075985 !important; border-color:#7dd3fc !important; }
.alert-danger{  background-color:#fee2e2 !important; color:#991b1b !important; border-color:#fecaca !important; }

/* attachments list */
.file-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border:1px solid #e2e8f0; border-radius:999px; background:#f8fafc;
  font-size:.9rem; margin:4px 6px 0 0;
}
.file-chip small{ color:#64748b; }

/* notice styles for "not found" */
.notice {
  display:flex;
  align-items:flex-start;
  gap:16px;
}
.notice .icon-x {
  flex:0 0 56px;
  width:56px;
  height:56px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fee2e2;
  color:#b91c1c;
  font-weight:800;
  font-size:28px;
  line-height:1;
  box-shadow:0 0 0 6px #fee2e2 inset;
}
.notice .content { flex:1; }
.notice-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.notice-left{
  display:flex;
  align-items:flex-start;
  gap:16px;
  min-width:0;
}
.notice-actions{ flex:0 0 auto; }

/* verified box for "found" page */
.verified-box{
  background:#FFFFFF;
  border:1px solid #ffffffff;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(2,6,23,.06);
  padding:16px 18px;
  margin-bottom:18px;
}
.verified-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.verified-left{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width:0;
}
.verified-left .icon-check{
  flex:0 0 44px; width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center;
  background:#dcfce7; color:#166534; font-weight:800; font-size:22px;
  box-shadow:0 0 0 6px #dcfce7 inset;
}
.verified-left .content p{ margin:4px 0 0; color:#000000; }

.verified-actions .btn-pill{
  color:#0f172a;
  background:#fff;
  border:1px solid #cbd5e1;
}

/* don't wrap "Contact Us" */
.btn-pill { white-space: nowrap; min-width: max-content;
font-family: "SuisseIntl", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", "Noto Sans", sans-serif; }

/*Start of Legal
/* Branding for legal content */
.gcert-legal {
  font-family: "SuisseIntl", sans-serif;
  color: #121D29; /* Carbon black */
  line-height: 1.6;
}

.legal-heading {
  color: var(--bs-primary); /* CC Red */
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-divider {
  margin: 2rem 0;
  border-color: rgba(0,0,0,0.1);
}

.legal-list {
  list-style: none;
  padding-left: 1rem;
}

.legal-list li {
  margin-bottom: 0.6rem;
  text-indent: -0.75rem;
}
.cc-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
  }

  .cc-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cc-black);
    margin-bottom: .25rem;
  }

  .cc-page-header .subtitle {
    color: #6b7280;
    font-size: .95rem;
  }

  .cc-section {
    margin-top: 2rem;
  }

  .cc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cc-red);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .75rem;
  }

  .cc-card {
    background-color: #ffffff;
    border-radius: .75rem;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.04);
  }

  .cc-muted {
    color: #6b7280;
  }

  .cc-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background-color: rgba(249, 56, 34, 0.08);
    color: var(--cc-red);
  }

  .cc-footer-note {
    margin-top: 2.5rem;
    font-size: .85rem;
    color: #6b7280;
    border-top: 1px solid rgba(15,23,42,0.06);
    padding-top: 1rem;
  }

  /*end  of Legal*/


/* toggle for New request */
/* gCert Small Toggle Switch (Red Theme) */
.gcert-toggle {
    position: relative;
    display: inline-block;
    width: 36px;   /* smaller toggle */
    height: 18px;  /* smaller toggle */
    vertical-align: middle;
}

.gcert-toggle input {
    display: none;
}

.gcert-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cfcfcf; /* light off color */
    transition: .25s;
    border-radius: 30px;
}

.gcert-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
}

/* ON STATE — gCert brand red */
.gcert-toggle input:checked + .gcert-slider {
    background-color: var(--bs-primary);  /* your brand color */
}

.gcert-toggle input:checked + .gcert-slider:before {
    transform: translateX(18px); /* move knob for small toggle */
}

/* Hover glow */
.gcert-toggle:hover .gcert-slider {
    box-shadow: 0 0 4px rgba(231, 90, 90, 0.5);
}

/* Align header toggle + text */
.toggle-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}

.gcert-toggle input:disabled + .gcert-slider {
    background-color: #e5e5e5;
    cursor: not-allowed;
    opacity: 0.6;
}
.gcert-toggle input:disabled + .gcert-slider:before {
    background-color: #f8f8f8;
}



/* end toggle for New request */
/* end gCert Toggle Switch */
  /* Cookie Consent Banner Styles */
  .cookie-consent {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 320px;
  background: rgba(15, 18, 25, 0.96);
  color: #f3f4f6;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-consent__text {
  line-height: 1.4;
}

.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-consent__btn {
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgb(249 56 34); 
  color: #020617;
}

.cookie-consent__btn:hover {
  opacity: 0.9;
}

.cookie-consent__link {
  font-size: 0.78rem;
  color: #9ca3af;
  text-decoration: underline;
}

.hidden {
  display: none !important;
}



/* Company name "search pill" in results table (brand-aligned) */
.company-search-pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;

  padding:.32rem .65rem;
  border-radius:999px;

  text-decoration:none;
  font-weight:600;
  font-size:.95rem;

  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .10);
  border: 1px solid rgba(var(--bs-primary-rgb), .28);

  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
  cursor:pointer;
}

.company-search-pill .company-search-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:26px;
  height:26px;
  border-radius:999px;

  background: var(--bs-primary);
  color:#fff;
  font-size:.9rem;
  flex:0 0 auto;

  box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), .22),
              0 0 0 1px rgba(var(--bs-primary-rgb), .35) inset;
}

.company-search-pill .company-search-text{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:260px;
}

.company-search-pill:hover{
  background: rgba(var(--bs-primary-rgb), .14);
  border-color: rgba(var(--bs-primary-rgb), .42);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb), .18);
  text-decoration:none;
  color: var(--bs-primary);
}

.company-search-pill:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(var(--bs-primary-rgb), .14);
}

.company-search-pill:focus-visible{
  outline: 3px solid rgba(var(--bs-primary-rgb), .35);
  outline-offset: 2px;
}

/* Selected MPRNs pill */
.mprn-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.15rem;

  padding:.28rem .65rem;
  border-radius:999px;

  font-weight:800;
  font-size:.85rem;
  line-height:1;

  background: rgba(var(--bs-primary-rgb), .10);
  color: var(--bs-primary);
  border: 1px solid rgba(var(--bs-primary-rgb), .28);

  min-width: 64px;
}

/* optional: make "all selected" look stronger */
.mprn-pill.is-all{
  background: var(--bs-primary);
  color:#fff;
  border-color: var(--bs-primary);
  box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb), .22);
}

/* optional: none selected */
.mprn-pill.is-none{
  background: rgba(2,6,23,.06);
  color: rgba(2,6,23,.55);
  border-color: rgba(2,6,23,.10);
}

.mprn-inline-warn{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.22rem .55rem;
  border-radius:999px;
  font-weight:700;
  font-size:.8rem;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .10);
  border: 1px solid rgba(var(--bs-primary-rgb), .25);
}

.mprn-inline-warn i{
  font-size:.85rem;
}


/* -------- Search mode: dim rows until selected -------- */

/* Disabled View Details should match Bootstrap btn-primary disabled look */
.edit-mprn-btn:disabled,
.edit-mprn-btn.disabled,
.edit-mprn-btn.is-row-disabled,
.edit-mprn-btn[aria-disabled="true"] {
  opacity: var(--bs-btn-disabled-opacity) !important;
  background-color: var(--bs-btn-disabled-bg) !important;
  border-color: var(--bs-btn-disabled-border-color) !important;
  color: var(--bs-btn-disabled-color) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;

  /* remove the grayscale - Submit Request doesn't use it */
  filter: none !important;
}

/* Ensure the icon matches disabled text colour too */
.edit-mprn-btn:disabled i,
.edit-mprn-btn.disabled i,
.edit-mprn-btn.is-row-disabled i,
.edit-mprn-btn[aria-disabled="true"] i {
  color: var(--bs-btn-disabled-color) !important;
}


.table .search-dim td {
  opacity: 0.45;
}

/* keep checkbox cell readable even when row is dimmed */
.table .search-dim td:first-child,
.table .search-dim td:first-child * {
  opacity: 1 !important;
}

/* keep the last cell readable, BUT don't force the button to full opacity */
.table .search-dim td:last-child {
  opacity: 1 !important;
}

/* allow disabled View Details button to show disabled opacity */
.table .search-dim td:last-child .edit-mprn-btn:disabled,
.table .search-dim td:last-child .edit-mprn-btn.disabled,
.table .search-dim td:last-child .edit-mprn-btn.is-row-disabled,
.table .search-dim td:last-child .edit-mprn-btn[aria-disabled="true"] {
  opacity: var(--bs-btn-disabled-opacity) !important;
}


/* Optional: subtle grey background when dimmed */
.table .search-dim {
  background-color: rgba(0,0,0,0.02);
}

/* When a row is selected, remove dim */
.table .search-selected td {
  opacity: 1;
}

/* -------- Better looking checkboxes -------- */

/* Make checkbox larger and clearer */
.rowCheckbox {
  width: 18px;
  height: 18px;
  accent-color: var(--bs-primary);   /* modern browsers */
  cursor: pointer;
}

/* If Bootstrap is overriding appearance in some browsers, add a visible ring */
.rowCheckbox:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), .25);
  outline-offset: 2px;
}

/* Disabled checkbox still visible */
.rowCheckbox:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Keep icon/text white ONLY when enabled */
.edit-mprn-btn:not(:disabled),
.edit-mprn-btn:not(:disabled) i {
  color: #fff !important;
}


.section-divider {
  height: 1px;
  width: 50%;
  background-color: #c9c9c9; /* very light grey */
  margin: 1.75rem auto;
}

/* Ensure the table can scroll horizontally */
.table-responsive {
  overflow-x: auto;
}

/* Sticky Actions column on the right */
td.sticky-right,
th.sticky-right {
  position: sticky;
  right: 0;
  z-index: 0;             
  background: #fff;           /* avoid transparency */
  box-shadow: -6px 0 8px rgba(0,0,0,0.06); /* subtle separation */
}

/* If you have striped rows, match the stripe color */
.table-striped tbody tr:nth-of-type(odd) td.sticky-right {
  background: rgba(0,0,0,0.02);
}

/* Make sure button doesn't wrap weirdly */
td.sticky-right .edit-mprn-btn {
  white-space: nowrap;
}

.table > :not(caption) > * > * {
  vertical-align: middle !important;
}

.table-responsive {
    overflow-x: auto;
    position: relative;
}

#certificateTable {
    min-width: 1200px;
    border-collapse: separate;
    border-spacing: 0;
}

#batchValidModal {
  z-index: 1060;
}

.modal-backdrop {
  z-index: 2;
}

.btn-outline-primary {
  color: white !important;
}