/* =======================
   Global Variables
======================= */
:root {
  --primary-color: #003849;
  --accent-color: #D3F49E;
  --neutral-bg: #D9D9D9;
  --hover-color: #005569;
  --text-dark: #000000;
  --text-light: #FFFFFF;
  --cpc-ink: #003849;
  --cpc-ink-2: #0b3460;
  --cpc-navy: #132a57;

  --cpc-accent: #D3F49E;

  --cpc-bg: #f3f4f6;
  --cpc-surface: #ffffff;
  --cpc-surface-2: #f6f8fb;

  --cpc-border: #d7dee7;
  --cpc-border-2: #b9c6d6;

  --cpc-shadow: 0 10px 24px rgba(0,0,0,.06);
  --cpc-shadow-hover: 0 14px 34px rgba(0,0,0,.10);

  --cpc-focus: 0 0 0 4px rgba(0,56,73,.14);
}

/* ===============================
   Global modal vertical offset
=============================== */

.modal-dialog-centered {
  transform: translateY(-8vh);
}


/* =======================
   Buttons
======================= */
/* Shared button base – cpc-style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  padding: 0.55rem 1.6rem;
  border-radius: 50px;            /* pill shape */
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;

  border-width: 1.5px;
  box-shadow: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

/* Solid navy button – like "ADD NEW" */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

/* Hover / focus for solid */
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--hover-color) !important;
  border-color: var(--hover-color) !important;
  color: var(--text-light) !important;
  box-shadow: 0 0 0 2px rgb(59 130 246 / 0.5);
}

/* Outline navy – like "Import" and "Details" */
.btn-outline-primary,
.btn-success { /* reuse .btn-success as outline style if you like */
  background-color: #FFFFFF !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* Hover / focus for outline */
.btn-outline-primary:hover,
.btn-success:hover,
.btn-outline-primary:focus,
.btn-success:focus {
  background-color: rgba(59, 130, 246, 0.04) !important; /* very light blue fill */
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px rgb(59 130 246 / 0.3);
}

/* Soft warning (if you still need it for other places) */
.btn-warning {
  background-color: rgba(211, 244, 158, 0.9) !important;
  border-color: rgba(211, 244, 158, 0.9) !important;
  color: var(--text-dark) !important;
}



/* Optional: remove button margin from .btn-primary and put it on containers instead */



/* =======================
   Selectize / Input
======================= */
.selectize-control,
.form-control,
.selectize-input,
.selectize-dropdown,
textarea {
  width: 100% !important;
  max-width: 100% !important;
}
.selectize-input {
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 5px 10px;
  border-radius: 4px;
}
.selectize-input .item {
  background-color: var(--neutral-bg);
  color: var(--primary-color);
  padding: 3px 8px;
  margin-right: 4px;
  border-radius: 3px;
}
.selectize-input .item:hover {
  background-color: var(--primary-color);
  color: white;
}
.selectize-dropdown .option:hover {
  background-color: var(--accent-color) !important;
  color: black !important;
}
.selectize-dropdown .selected {
  background-color: var(--neutral-bg) !important;
  color: black !important;
}


/* =======================
   Inputs and Selectize Styling
======================= */
.selectize-input {
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Ensure inputs always stretch */
.selectize-control,
.form-control,
.selectize-input,
.selectize-dropdown,
textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.shiny-input-container {
  width: 100% !important;
  max-width: 100% !important;
}

.input-group {
  width: 100% !important;
}
/* =======================
   Textareas
======================= */
textarea.shiny-input-textarea {
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  background-color: #F9F9F9;
  border: 1px solid #B0BEC5;
  border-radius: 4px;
  padding: 10px;
  resize: vertical;
  box-shadow: none;
}
textarea.shiny-input-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(0, 56, 73, 0.4);
}

/* =======================
   Box Titles / Headers
======================= */
.box-title {
  font-size: 20px;
  font-family: 'Open Sans', sans-serif;
  color: var(--primary-color);
  font-weight: bold;
}

/* =======================
   SweetAlert Styling
======================= */
.swal-modal.compact-alert {
  width: 360px !important;
  padding: 20px !important;
}
.swal-title {
  font-size: 18px !important;
  margin-bottom: 10px;
}
.swal-text {
  font-size: 14px !important;
  padding: 0;
}
.swal-footer {
  margin-top: 15px;
}
.swal-button {
  padding: 6px 14px;
  font-size: 14px;
}

/* =======================
   Progress Bar
======================= */
.progress-bar {
  background-color: var(--neutral-bg) !important;
  color: var(--primary-color) !important;
}
/* =======================
   Shiny Cards
======================= */

.card {
  border-radius: 12px;
  border: 1px solid #ddd;
  background-color: #ffffff;
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-group > .btn {
  margin-right: 8px;
}

/* =======================
   Shiny Cards
======================= */

 .shiny-notification-default {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-left: 5px solid var(--primary-color);
    font-weight: 600;
  }
  
  .shiny-notification-error {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-left: 5px solid var(--accent-color);
    font-weight: 600;
  }
  
  .shiny-notification-warning {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-left: 5px solid var(--accent-color);
    font-weight: 600;
  }

/* =======================
   Summary Cards
======================= */

.summary-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#claim_summary_preview {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
#claim_summary_preview h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}
#claim_summary_expanded {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

#claim_summary_preview_box .highcharts-container {
  margin-top: 5px;
}
.summary-card h4 {
  margin-bottom: 15px;
  color: var(--primary-color); /* #003849 if defined */
}

.summary-claim-card {
  background-color: #f8fbfd;
  padding: 20px;
  border: 1px solid #ddeaf2;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 15px;
  font-size: 15px;
}
.summary-claim-card b {
  color: var(--primary-color);
}

/* General buttons – less pill, more cpc */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  padding: 0.35rem 1.2rem;      /* smaller than before */
  border-radius: 8px;           /* no giant pills */
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;

  border-width: 1.5px;
  box-shadow: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--hover-color) !important;
  border-color: var(--hover-color) !important;
  color: var(--text-light) !important;
}

/* Outline navy – use for “Get Upload Template”, “Import”, “Details” */
.btn-outline-primary {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: rgba(59, 130, 246, 0.06) !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* Keep warning if you still need it somewhere else */
.btn-warning {
  background-color: rgba(211, 244, 158, 0.9) !important;
  border-color: rgba(211, 244, 158, 0.9) !important;
  color: var(--text-dark) !important;
}


/* Progress Bar */
.progress-bar {
  background-color: #D9D9D9 !important; /* Bright Green */
  color: #002C5E !important; /* Deep Navy Text */
}


/* Change highlight color of hovered/selecting option */
.selectize-dropdown-content .option:hover {
  background-color: #D3F49E !important; /* Light Green*/
  color: black !important;
}

/* Change the selected item in the dropdown */
.selectize-dropdown-content .selected {
  background-color: #D9D9D9 !important; /* Green */
  color: black !important;
}

.selectize-control,
.form-control,
.selectize-input,
.selectize-dropdown,
  textarea {
  width: 100% !important;
  max-width: 100% !important;
}

.form-group {
  width: 100% !important;
}

.swal-modal.compact-alert {
  width: 360px !important;
  padding: 20px !important;
}
.swal-title {
  font-size: 18px !important;
  margin-bottom: 10px;
}
.swal-text {
  font-size: 14px !important;
  padding: 0;
}
.swal-footer {
  margin-top: 15px;
}
.swal-button {
  padding: 6px 14px;
  font-size: 14px;
}

.box-title {
  font-size: 20px;
  font-family: 'Open Sans', sans-serif;
  color: #003849;
  font-weight: bold;
}

.selectize-input .item {
  font-size: 14px;
  background-color: #D9D9D9;
  color: #003849;
  border-radius: 3px;
  padding: 3px 8px;
  margin-right: 4px;
}

.selectize-input .item:hover {
  background-color: #003849;
  color: white;
}

textarea.shiny-input-textarea {
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  background-color: #F9F9F9;
  border: 1px solid #B0BEC5;
  border-radius: 4px;
  padding: 10px;
  resize: vertical;
  box-shadow: none;
}

textarea.shiny-input-textarea:focus {
  border-color: #003849;
  box-shadow: 0 0 5px rgba(0, 56, 73, 0.4);
}
      
.modal-dialog { max-width: 90%; }
.modal-body { padding-top: 10px; }
.table-sm th, .table-sm td { padding: .3rem .4rem; font-size: 0.9rem; }

/* container and headings */
.dispo-missing-wrap { max-height: 55vh; overflow:auto; padding-right: 4px; }
.dispo-missing-title { margin-bottom: 2px; }
.dispo-missing-help  { margin-top: 0; color: #6b7280; }

/* each row card */
.dispo-missing-row {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.6fr;  /* Description | Room | Select */
  gap: 16px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 10px;
}
.dispo-missing-row:nth-child(even) { background:#fafafa; }

/* labels */
.dispo-label { font-weight:600; color:#111827; }
.dispo-sub   { color:#374151; }

/* select sizing */
.dispo-select .form-group { margin-bottom: 0; }
.dispo-select select.form-control { height: 36px; padding: 6px 28px 6px 10px; }

/* tiny badge for room when empty */
.badge-empty {
  display:inline-block; padding:2px 6px; border-radius:4px;
  background:#f3f4f6; color:#6b7280; font-weight:500;
}

/* compact the tab pane */
.modal-body .tab-content { padding-top: 8px; }


.dashboard-wrapper {
  padding: 1.5rem;
}

.summary-card-list .card.summary-card {
  width: 100%;
  max-width: 100%;
}

.summary-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}

.progress-title {
  font-size: 0.75rem;
  font-weight: 700;
}

.progress-bar-success {
  background-color: #D3F49E !important;  /* EcoClaim green */
}

.progress-bar-info {
  background-color: ##B3F1FF !important;  /* Your blue if different */
}




/* ========== cpc-style page links (Mapping / Dashboard / etc.) ========== */

.cpc-page-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.cpc-page-link {
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary-color);
}

.cpc-page-link.active {
  background-color: #f4ffe5;                 /* soft green chip like cpc */
  border-color: #d5f5a6;
}

/* remove underline from actionLink <a> */
.cpc-page-link:hover {
  text-decoration: none;
  background-color: #eef7ff;
}

/* ========== Title / header row ========== */

.claims-header-row {
  padding: 1.5rem 1.5rem 0.75rem;
  position: relative;
}

.title-block h1 {
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--primary-color, #003849);
}
/*
.title-underline {
  width: 160px;
  height: 3px;
  background-color: #d0d5dd;
  margin: 0.4rem auto 0;
}
*/

/* top-right buttons already styled via .btn / .btn-primary / .btn-outline-primary */

/* ========== Claims table header row above the card ========== */

.claims-table-header {
  display: grid;
  grid-template-columns: 90px 110px 120px 120px 1fr;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  padding: 0.75rem 2rem 0.4rem;
}

/* align with card below */
.claims-table-header span:first-child {
  padding-left: 0.25rem;
}

/* header block */

.dashboard-header {
  padding: 1.25rem 1.5rem 0.75rem;
}

/* page-links row under the header text */
.cpc-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cpc-page-link {
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
}

.cpc-page-link:hover {
  text-decoration: none;
  background-color: #eef7ff;
}

.cpc-page-link.active {
  background-color: #f4ffe5;     /* soft green chip like cpc */
  border-color: #d5f5a6;
}

.btn-cpc-primary{
  border: 1px solid rgb(20, 20, 20) !important;
  background: rgb(0, 43, 94) !important;
  color: #fff !important;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
}
.btn-cpc-primary:hover{ background: #000000 !important; }

.btn-cpc-outline{
  background: #fff !important;
  color: var(--cpc-ink) !important;
  border: 1px solid var(--cpc-border) !important;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
}
.btn-cpc-outline:hover{
  border-color: var(--cpc-ink) !important;
  box-shadow: 0 0 0 3px rgba(0,56,73,.12);
}

/* --- CPC green water underlay (dashboard landing) ------------------- */
.dashboard-underlay {
  position: relative;
  min-height: calc(100vh - 64px); /* adjust if your header height differs */
  padding-bottom: 40px;           /* gives space for the wave */
  background: #f5f7f8;            /* matches your light grey */
  overflow: hidden;
}

/* green water image */
.dashboard-underlay::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: 420px;

  background-image: url("img/prism.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;

  opacity: 0.22;
  filter: blur(0.3px);
  z-index: 0;
  pointer-events: none;
}

/* fade upward so it never competes with the card content */
.dashboard-underlay::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 420px;

  background: linear-gradient(
    to top,
    rgba(245,247,248,0) 0%,
    rgba(245,247,248,0.85) 70%,
    rgba(245,247,248,1) 100%
  );

  z-index: 1;
  pointer-events: none;
}

/* ensure all existing dashboard content stays above the underlay */
.dashboard-underlay > * {
  position: relative;
  z-index: 2;
}

.dashboard-underlay::after {
  outline: 3px solid red;
  opacity: 0.8;
}


/* =========================================================
   CPC NORMALIZE: Shiny/Bootstrap buttons + header nav
   Put at the VERY BOTTOM of main.css
   ========================================================= */

:root{
  --cpc-ink: #003849;
  --cpc-ink-soft: #005569;
  --cpc-green: #a7c900;

  --cpc-bg: #f6f7f8;
  --cpc-surface: #ffffff;
  --cpc-border: #e5e7eb;
  --cpc-border-strong: #d7dee7;

  --cpc-text: #1d1f21;
  --cpc-muted: #6b7280;
}

/* 1) Kill font leaks (Open Sans etc) */
html, body, button, input, select, textarea,
.btn, .action-button, .form-control, .shiny-input-container {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* 2) Base Shiny actionButtons: remove Bootstrap 'btn-default' look */
button.action-button.btn.btn-default,
button.action-button.btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow: none;
}

/* =========================================================
   A) HEADER NAV BUTTONS (Contents / Reports / Map / Tasks)
   ========================================================= */

/* Target your header nav buttons reliably */
.app-header .header-nav_item,
.app-header button.header-nav_item.action-button.btn.btn-default {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;
  border-radius: 10px;

  background: transparent !important;
  border: 0 !important;

  color: var(--cpc-text) !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;

  box-shadow: none !important;
}

/* Icon */
.app-header .header-nav_item .nav-icon svg{
  width: 16px;
  height: 16px;
  display: block;
  color: var(--cpc-green);
}

/* Hover: CPC soft grey */
.app-header .header-nav_item:hover{
  background: rgba(0,0,0,0.05) !important;
}

/* Focus: CPC ring (NOT green fill) */
.app-header .header-nav_item:focus,
.app-header .header-nav_item:focus-visible{
  outline: 3px solid rgba(0, 56, 73, 0.22);
  outline-offset: 2px;
  background: transparent !important;
}

/* Active/current tab feel (optional) */
.app-header .header-nav_item.is-active{
  background: rgba(0,0,0,0.06) !important;
}

/* =========================================================
   B) CPC BUTTON SYSTEM (ghost / primary) for in-app controls
   ========================================================= */

/* Use this class where you can: class="cpc-btn cpc-btn--ghost" etc */
.cpc-btn,
button.cpc-btn.action-button.btn.btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 18px;
  border-radius: 14px;

  font-size: 14px;
  font-weight: 500;
  line-height: 1;

  cursor: pointer;

  border: 1px solid var(--cpc-border-strong) !important;
  background: #fff !important;
  color: var(--cpc-text) !important;

  box-shadow: 0 8px 18px rgba(15,23,42,0.06) !important;
}

.cpc-btn:hover{
  background: #f3f4f6 !important;
  border-color: rgba(0,56,73,0.25) !important;
}

.cpc-btn:focus,
.cpc-btn:focus-visible{
  outline: 3px solid rgba(0, 56, 73, 0.22);
  outline-offset: 2px;
}

/* Ghost (subtle, no shadow) */
.cpc-btn--ghost{
  box-shadow: none !important;
  background: #fff !important;
  border: 1px solid var(--cpc-border-strong) !important;
}

.cpc-btn--ghost:hover{
  background: rgba(217, 246, 255, 0.35) !important;  /* CPC accent wash */
  border-color: rgba(0,56,73,0.35) !important;
}

/* Primary */
.cpc-btn--primary{
  background: var(--cpc-ink) !important;
  border-color: var(--cpc-ink) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0,56,73,0.20) !important;
}

.cpc-btn--primary:hover{
  background: var(--cpc-ink-soft) !important;
  border-color: var(--cpc-ink-soft) !important;
}

/* =========================================================
   C) ICON BUTTON (collapse chevron)
   ========================================================= */

/* Apply class="cpc-iconbtn" to that chevron button if possible */
.cpc-iconbtn,
button.cpc-iconbtn.btn.btn-default,
button.cpc-iconbtn.action-button.btn.btn-default {
  width: 34px;
  height: 34px;
  padding: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid var(--cpc-border-strong) !important;

  background: #fff !important;
  color: var(--cpc-text) !important;

  box-shadow: 0 6px 14px rgba(15,23,42,0.06) !important;
}

.cpc-iconbtn:hover{
  background: #f3f4f6 !important;
  border-color: rgba(0,56,73,0.25) !important;
}

/* If it contains an <i> icon (FontAwesome) */
.cpc-iconbtn i{
  font-size: 16px;
  line-height: 1;
}

/* Stop bootstrap active/pressed weirdness */
button:active,
button.btn:active,
button.action-button:active{
  box-shadow: none !important;
}
/* ===============================
   CPC STICKY CTA — LIGHT GREEN
   =============================== */

.cpc-sticky-cta{
  position: fixed !important;

  /* 👇 breathing room from edges */
  right: 32px !important;
  bottom: 32px !important;

  z-index: 10050 !important;
}

/* HARD VISUAL LOCK */
.cpc-sticky-cta .cpc-sticky-btn{
  all: unset;
  box-sizing: border-box;

  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;

  padding: 13px 20px !important;   /* slightly more generous */
  border-radius: 999px !important;

  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;

  /* 👇 CPC light green */
  background-color: #AFE686 !important;
  color: #003849 !important;       /* CPC navy text */

  border: 1px solid rgba(0,56,73,0.25) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.16) !important;

  cursor: pointer !important;
}

/* Icon styling */
.cpc-sticky-cta .cpc-sticky-btn i{
  font-size: 16px !important;
  color: #003849 !important;
}

/* Hover: slightly richer green */
.cpc-sticky-cta .cpc-sticky-btn:hover{
  background-color: #D3F49E !important;
  border-color: rgba(0,56,73,0.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15,23,42,0.20) !important;
}

/* Focus (keyboard safe) */
.cpc-sticky-cta .cpc-sticky-btn:focus,
.cpc-sticky-cta .cpc-sticky-btn:focus-visible{
  outline: 3px solid rgba(0,56,73,0.25) !important;
  outline-offset: 3px;
}

/* Mobile tuck */
@media (max-width: 768px){
  .cpc-sticky-cta{
    right: 18px !important;
    bottom: 18px !important;
  }

  .cpc-sticky-cta .cpc-sticky-btn{
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

/* ===== Sticky CTA container (bottom-right with padding) ===== */
.cpc-sticky-cta{
  position: fixed !important;
  right: 32px !important;
  bottom: 32px !important;
  z-index: 10050 !important;
}

/* Stack layout (vertical, tidy) */
.cpc-sticky-stack{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* Base sticky button */
.cpc-sticky-btn{
  all: unset;
  box-sizing: border-box;

  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;

  padding: 13px 20px !important;
  border-radius: 999px !important;

  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;

  background-color: #AFE686 !important;   /* light green */
  color: #003849 !important;              /* CPC navy */

  border: 1px solid rgba(0,56,73,0.25) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.16) !important;

  cursor: pointer !important;
}

.cpc-sticky-btn i{
  font-size: 16px !important;
  color: #003849 !important;
}

.cpc-sticky-btn:hover{
  background-color: #D3F49E !important;
  border-color: rgba(0,56,73,0.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15,23,42,0.20) !important;
}

.cpc-sticky-btn:focus,
.cpc-sticky-btn:focus-visible{
  outline: 3px solid rgba(0,56,73,0.25) !important;
  outline-offset: 3px;
}

/* Secondary sticky button (Save) */
.cpc-sticky-btn--secondary{
  background-color: #ffffff !important;
  color: #003849 !important;
  border: 1px solid rgba(0,56,73,0.25) !important;
  box-shadow: 0 10px 26px rgba(15,23,42,0.12) !important;
}

.cpc-sticky-btn--secondary:hover{
  background-color: rgba(217,246,255,0.55) !important; /* light CPC wash */
  border-color: rgba(0,56,73,0.35) !important;
}

/* Mobile tuck */
@media (max-width: 768px){
  .cpc-sticky-cta{
    right: 18px !important;
    bottom: 18px !important;
  }
  .cpc-sticky-btn{
    paddin
}

/* =========================================================
   STICKY HOTFIX — prevents transparent + off-screen
   Put at VERY BOTTOM of main.css
   ========================================================= */

/* Always pin to bottom-right (never left) */
.cpc-sticky-cta{
  position: fixed !important;
  left: auto !important;
  right: clamp(14px, 2vw, 32px) !important;
  bottom: clamp(14px, 2vw, 32px) !important;
  z-index: 10050 !important;

  /* prevents weird parent effects */
  transform: none !important;
}

/* Stack stays tidy */
.cpc-sticky-stack{
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: flex-end !important;
}

/* HARD apply to Shiny buttons (actionButton emits .btn.action-button) */
.cpc-sticky-cta button.cpc-sticky-btn,
.cpc-sticky-cta button.cpc-sticky-btn.action-button,
.cpc-sticky-cta button.cpc-sticky-btn.btn,
.cpc-sticky-cta button.cpc-sticky-btn.btn.btn-default,
.cpc-sticky-cta button.cpc-sticky-btn.btn.btn-warning{
  /* nuke inherited Bootstrap/custom button resets */
  all: unset !important;
  box-sizing: border-box !important;

  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;

  padding: 13px 20px !important;
  border-radius: 999px !important;

  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;

  background-color: #AFE686 !important;   /* light green */
  color: #003849 !important;              /* CPC navy */

  border: 1px solid rgba(0,56,73,0.25) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.16) !important;

  cursor: pointer !important;
  margin: 0 !important;
  transform: none !important;

  /* avoid off-screen text */
  white-space: nowrap !important;
  max-width: calc(100vw - 40px) !important;
}

/* icon */
.cpc-sticky-cta button.cpc-sticky-btn i{
  font-size: 16px !important;
  color: #003849 !important;
}

/* secondary save */
.cpc-sticky-cta button.cpc-sticky-btn--secondary,
.cpc-sticky-cta button.cpc-sticky-btn.cpc-sticky-btn--secondary{
  background-color: #ffffff !important;
  color: #003849 !important;
}

/* hover */
.cpc-sticky-cta button.cpc-sticky-btn:hover{
  background-color: #D3F49E !important;
  border-color: rgba(0,56,73,0.35) !important;
  transform: translateY(-1px) !important;
}

/* focus */
.cpc-sticky-cta button.cpc-sticky-btn:focus,
.cpc-sticky-cta button.cpc-sticky-btn:focus-visible{
  outline: 3px solid rgba(0,56,73,0.25) !important;
  outline-offset: 3px !important;
}

/* Hard center the CTA regardless of surrounding layout */
.cpc-login-cta{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:12px;
  max-width:520px;
  margin: 16px auto 0 auto !important; /* centers the whole block */
}

/* Login block layout */
.cpc-login-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 28px;
  gap: 14px;
}

/* CPC green login button */
.cpc-login-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 220px;
  padding: 12px 18px;

  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;

  background: #69BE28 !important;   /* CPC green */
  border: 1px solid #69BE28 !important;
  color: #003849 !important;        /* CPC/DKI blue */

  border-radius: 14px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cpc-login-btn:hover{
  background: #63b522 !important;
  border-color: #63b522 !important;
  color: #003849 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Helper text under button */
.cpc-login-help{
  margin-top: 10px;
  padding: 0 24px;              /* 👈 this is the padding you asked for */
  max-width: 640px;

  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(0,0,0,0.65);
}

/* FORCE preview strip horizontal in modals */
.cpc-preview-strip{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;

  width:100% !important;
  box-sizing:border-box !important;

  padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  background:#fff;
}

/* Left side grows */
.cpc-preview-main{
  flex:1 1 auto !important;
  min-width:260px !important;
}

/* Right side stays compact (auto width) */
.cpc-preview-grid{
  flex:0 0 auto !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-end !important;
  gap:10px !important;

  white-space:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;

  max-width:55vw;  /* tweak in modal */
}

/* Metric chip */
.cpc-preview-kv{
  display:flex !important;
  flex-direction:column !important;
  gap:2px !important;

  padding:2px 6px;
  border-radius:8px;
  background:rgba(217,246,255,.35);
}

/* Dup count stays on the right */
.cpc-preview-dup{
  flex:0 0 auto !important;
  text-align:right !important;
  min-width:90px !important;
  padding-left:10px;
  border-left:1px solid rgba(0,0,0,.08);
}


