/* ============================================
   CSS Variables - BDC Color Palette
   ============================================ */
:root {
    /* Primary Palette */
    --nhlbi-red: #c0143c;
    --nhlbi-gray: #575B5E;
    --white: #FFFFFF;
    --nhlbi-dark-gray: #222222;
    
    /* Secondary Palette */
    --nhlbi-teal: #005F71;
    --nhlbi-light-teal: #e5eff1;
    --nih-blue-dark: #14284B;
    --nih-light-gray: #f0f0f0;
    
    /* Additional Colors */
    --eyebrow-gray: #454545;
    --hyperlink-blue: #20558A;
    --visited-link: #6F57B5;
    --hover-gray: #D7D7D7;
    --border-color: #c6c5c5;
}

/* ============================================
   Base Typography & Layout
   ============================================ */


#EntityFormPanel.crmEntityFormView {
    background-color: #fafafa !important;
}

.wrapper-body {
    background-image: url("/background-image.png");
    background-position: -4rem 0px, calc(100% + 4rem) 0px;
    background-size: 400px;
    background-repeat: repeat-y, repeat-y;
    background-attachment: fixed;
}

/* ============================================
   Labels
   ============================================ */
label,
.crmEntityFormView label {
    font-weight: 600 !important;
    color: #333 !important;
    background-color: #fafafa !important;
}

.entity-form .picklist-cell .control {
    padding-top: 5px !important;
}
/* Links in Labels & Descriptions */
label.field-label a, 
.description a {
    color: #20558A  !important;
    font-size: 16px !important;
    text-decoration: underline !important;
    font-weight: 400 !important;
}

label.field-label a:visited,
.description a:visited {
    color: #005F71 !important;
}

label.field-label a:hover,
.description a:hover {
    opacity: 0.8 !important;
    text-decoration: underline !important;
}

label.field-label a:focus,
.description a:focus {
    outline: 2px solid #005F71 !important;
    outline-offset: 2px !important;
}

/* ============================================
   Form Controls
   ============================================ */
.form-control {
    border: 1px solid #c6c5c5 !important;
    padding: .375rem .75rem !important;
}

/* Readonly Fields */
input[readonly], 
textarea[readonly], 
select[readonly], 
.msos-viewmode-container,
.crmEntityFormView textarea.form-control.readonly {
    background-color: #f0f0f0 !important;
    border: 0 !important;
}

/* Placeholders & Descriptions */
input::placeholder,
textarea::placeholder,
.description {
    color: #666666; 
    opacity: 1;  
}

/* ============================================
   Radio Buttons
   ============================================ */
.entity-form .picklist.horizontal input[type="radio"] {
    margin: 0 8px 0 0 !important;
}

.entity-form .picklist.horizontal label {
    margin-right: 24px !important;
}

/* ============================================
   Buttons
   ============================================ */
.button-primary, 
.btn-primary {
    padding: 12px 28px !important;
    border-radius: 2px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    background: #14284B !important;
    color: white !important;
    border: none !important;
    transition: all 0.2s !important;
}

.button-primary:hover, 
.btn-primary:hover {
    background-color: #4a6fa5 !important;
    border-color: #4a6fa5 !important;
    box-shadow: 0 4px 12px rgba(16, 45, 102, 0.3) !important;
    transform: translateY(-1px) !important;
}

.button-primary:active, 
.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.button-primary:focus, 
.btn-primary:focus {
    outline: 2px solid #4a6fa5 !important;
    outline-offset: 2px !important;
}

.button-primary:disabled, 
.btn-primary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #6b7280 !important;
    border-color: #6b7280 !important;
}

/* ============================================
   Header & Navigation
   ============================================ */
.dashboard-header {
    font-weight: 600 !important;
    position: sticky;
    top: 0;
    height: 50px;
    background-color: #14284B !important;
}

.dashboard-header > a {
    color: white !important;
    font-size:16px !important;
}

/* Navigation Tabs */
.nav-tabs .nav-link {
    min-width: 200px;       
    text-align: left;
    font-size: 16px;        
    font-weight: 600;      
    padding: 12px 20px;    
}

.nav-tabs .nav-link.active {
    background-color: #fafafa;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* ============================================
   Tabs & Sections
   ============================================ */
.crmEntityFormView .tab {
    background-color: #fafafa;
    margin-bottom: 0px !important;
}

.table > tbody {
    background-color: #fafafa;
}

/* Tab Title */
.crmEntityFormView .tab-title {
    background-color: #14284B;
    margin-bottom: 0px;
    font-size: 24px;
    font-weight: 600;
    color: white;
    padding: 15px;
}

/* Section Headers */
.section-title {
    background-color: #14284B;
    margin-bottom: 25px !important;
    font-size: 20px;
    font-weight: 600;
    color: white;
    padding-left: 15px;
}

h3,
.h3,
.page_section h3,
.color-inverse h3,
.sidebar-home h3 {
    color: White !important;
}

/* ============================================
   Form Actions
   ============================================ */
.crmEntityFormView .actions {
    margin: 0 !important;
    padding: 20px 0 20px 20px;
}

/* ============================================
   Lists & Alerts
   ============================================ */
.list-group-item.active {
    background-color: #21568a;
    border-color: #21568a;
}

.subgrid-cell {
    border-top: 2px solid lightgrey;
    border-bottom: 2px solid lightgrey;
}

.alert-warning {
    --bs-alert-color: #664d03;
    --bs-alert-bg: #dee2e6;
    --bs-alert-border-color: #dee2e6;
}

/* ============================================
   Multi-Select Option Set
   ============================================ */
.msos-glyph {
    font-weight: 800;
    margin-right: 8px;
}

.msos-label .msos-checkbox {
    clip: unset !important;
    width: 15px !important;
    opacity: 100% !important;
}

.msos-label {
    margin-left: 5px !important;
    background-color: white !important;
}

/* ============================================
   Footer Styles
   ============================================ */
footer,
.ekCjzv {
    background-color: rgb(34, 34, 34);
    color: rgb(153, 153, 153);
    font-size: 80%;
    padding: 2rem;
    filter: drop-shadow(rgba(0, 0, 0, 0.5) 0px 0px 0.25rem);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    bottom: 0;
}

.ekCjzv a {
    color: rgb(255, 255, 255);
    text-decoration: underline rgba(238, 238, 238, 0.4);
    padding: 1rem;
}

.ekCjzv a:hover, 
.ekCjzv a:active {
    text-decoration-color: rgb(238, 238, 238);
}

/* Extended Footer Section */
.jfzIjF {
    background-color: #14284B;
    color: rgb(255, 255, 255);
    padding: 4rem 2rem;
    margin-top: 3rem;
    filter: drop-shadow(rgba(0, 0, 0, 0.5) 0px 0px 0.25rem);
    position: relative;
}

.jfzIjF::before {
    z-index: -1;
    content: "";
    clip-path: polygon(0% 5vw, 100% 0%, 100% 100%, 0% 100%);
    position: absolute;
    bottom: calc(100% - 1px);
    left: 0px;
    width: 100%;
    height: calc(2px + 5vw);
    background-color: #14284B;
}

.jfzIjF a {
    color: rgb(255, 255, 255);
    text-decoration: underline rgba(238, 238, 238, 0.6);
}

.ewUFgI {
    width: 95%;
    max-width: 1200px;
    margin: auto;
}

.fbXRly {
    list-style-type: none;
    margin: 0px 0px 2rem;
    padding: 0px;
    text-align: right;
    line-height: 1.25;
}

.cBifYI {
    line-height: 1.5;
    text-align: left;
}

.footerlink {
    color: white;
    text-decoration: underline rgba(238, 238, 238, 0.6);
    font-size: 12pt;
    text-underline-offset: .1em;
    transition: text-decoration-color .25s;
}
  .bdc-success-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
  }

  .bdc-success-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .bdc-success-header {
    background-color: #e5eff1;
    padding: 32px 40px;
    border-left: 6px solid #005F71;
  }

  .bdc-success-title {
    font-size: 24px;
    font-weight: 600;
    color: #005F71;
    margin: 0;
    line-height: 1.4;
  }

  .bdc-success-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-color: #005F71;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-right: 12px;
    vertical-align: middle;
  }

  .bdc-success-content {
    padding: 40px;
  }

  .bdc-success-text {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    line-height: 1.6;
    margin-bottom: 20px !important;
  }

  .bdc-success-note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 4px;
  }

  .bdc-success-note-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    font-size: 18px;
  }

  .bdc-success-note-text {
    color: #856404;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
  }

  .bdc-link {
    color: #20558A !important;
    text-decoration: underline !important;
    font-size:18px !important;
    font-weight: 550 !important;
  }

  .bdc-link:hover {
    opacity: 0.8 !important;
  }

  .bdc-link:visited {
    color: #20558A !important;
  }

  .bdc-success-actions {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
  }

  .bdc-btn-continue {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background-color: #14284B;
    border: none;
    border-radius: 4px;
    padding: 12px 34px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .bdc-btn-continue:hover {
    background-color: #14284B;
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
  }

  .bdc-btn-continue:active {
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
  }

  .bdc-btn-continue svg {
    width: 16px;
    height: 16px;
  }