@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #1E5D91;
    --primary-light: #1C86C8;
    --primary-dark: #07395A;

    --accent: #E19626;

    --off-white: #F6F6F6;


    /* normal button */
    /* background color is part of theme roller */
    --a-button-border-color: #1E5D91;
    --a-button-padding-y:0.5rem;
    --a-button-padding-x: 1rem;

    /* Secondar Button - White Background */

    /* badge list is used in the workroom left column */
    --ut-badge-list-gap: 0.5rem;

    --ut-base-font-family: 'Roboto', sans-serif;
    --a-base-font-family: var(--ut-base-font-family);

    --ut-region-header-font-size: 1.5rem;

    --ut-badge-border-radius: 4rem;

    font-family: var(--ut-base-font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

body:not(.t-PageTemplate--standard) {

    /* hide mobile navigation */
    @media screen and (min-width: 480px) {
        .t-Header-controls,
        .t-Body-nav {
            display: none;
        }
    }
}

/* Extra Large font heading 42px */
.heading-xl {
    font-size: 2.625rem;
}

/* Large font heading 32px */
.heading-lg {
    font-size: 2rem;
}

/* Medium font heading 24px (section cards with blue heading) */
.heading-md,
.accreditation-timeline .t-Region-title {
    font-size: 1.5rem;
}

/* Small font heading 20px */
.heading-sm {
    font-size: 1.25rem;
}

/* Exra Small font heading 16px */
.heading-xs,
.ahca h3.t-Region-title {
    font-size: 1rem;
}

/* display:none for default */
.display-none {
    display: none !important;
}

/* navigation color fix */
/* #t_TreeNav.t-TreeNav .a-TreeView-node--topLevel .a-TreeView-row.is-current--top,
#t_TreeNav.t-TreeNav .a-TreeView-node--topLevel.is-collapsible > .a-TreeView-row {
    background-color: var(--primary-light);
    color: white;
} */


.t-Body-side {
    @media (max-width: 768px) {
        width: 220px;
    }
}
/* Mobile setting for t-Body-side */
/* Hide toggle button on large screens, show only on mobile */
#BTN_TOGGLE_NAV {
    display: none !important;
}

@media (max-width: 768px) {
    #BTN_TOGGLE_NAV {
        display: block !important;
    }
}

/* Smooth slide transition for left nav */
.t-Body-side {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Collapsed state */
.t-Body-side.nav-collapsed {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    opacity: 0;
}

/* Auto-collapse on small screens */
@media (max-width: 768px) {
    .t-Body-side {
        width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        opacity: 0;
        overflow: hidden;
    }
    
    .t-Body-side.nav-expanded {
        width: 240px !important;
        opacity: 1;
    }
}
/* End Mobile setting for t-Body-side */

/* customer side navigation */
#hqaa-left-nav {
    --ut-linkslist-badge-background-color: var(--primary);
    --ut-linkslist-badge-color: white;
    --ut-linkslist-badge-border-radius: 4rem;
    --ut-linkslist-link-padding-y: 0.25rem;
    --ut-linkslist-link-padding-x: 0;
    

    .t-LinksList-link {
        gap: 0.5rem;
        .t-LinksList-label {
            flex-grow: 0;
        }
    }

    .is-current {
        .t-LinksList-label {
            font-weight: bold;
            border-bottom: 4px solid var(--accent);
            flex-grow: 0;
        }
    }
}


.additional-resources {
    --ut-region-header-background-color: var(--primary-dark);
    --ut-region-background-color: var(--primary-dark);
    --ut-component-background-color: var(--primary-dark);

    background-color: var(--primary-dark);
    border-radius: var(--ut-region-border-radius,var(--ut-component-border-radius));
    color: white;
    padding: var(--ut-region-body-padding-y) var(--ut-region-body-padding-x);
    a, a:hover, a:visited, a:focus, a:active {
        color: white;
        text-decoration: underline;
    }
}

.t-Header {
    & .t-NavigationBar-item {
        .t-Icon:empty {
            display: none;
        }
    }
}

footer.t-Footer {
    background-color: var(--primary-dark);
    border-top: 4px solid var(--primary-light);
    color: white;
    --ut-link-text-color: white;

    .t-Footer-content .container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        @media screen and (max-width: 768px) {
            grid-template-columns: 1fr;
        }
        .row {
            align-items: center;
        }
        ul.social-icons {
            display: flex;
            list-style-type: none;
            gap: 0.5rem;
            @media screen and (max-width: 768px) {
                justify-content: center;
            }
        }
        .footer-text {
            address {
                font-style: normal;
                margin-block-end: 1rem;
            }
            text-align: center;
            justify-content: center;
        }
        .t-Form-itemWrapper:has(#P0_FOOTER_HQAA_LOGO) {
            justify-content: end;
            margin-inline-end: 1rem;
            @media screen and (max-width: 768px) {
                justify-content: center;
            }
        }
        #P0_FOOTER_HQAA_LOGO {
            height: 72.67px;
            max-width: 350px;
            aspect-ratio: 110/23;
        }
    }
}

/* 
 *** interactive grid/report ***
 */
.a-IG, .a-IG-header,
.a-IRR, .a-IRR-toolbar {
    /* matching every other region's radius */
    /* leaving the bottom squared up because it looks better */
    border-radius: var(--ut-component-border-radius) var(--ut-component-border-radius) 0 0;
}
.a-IG-header,
.a-IRR-toolbar {
    background-color: var(--primary-light); /* "pop of color" */
}

.a-GV-header,
.a-IRR-header {
    background-color: var(--primary-dark); /* "pop of color" */
    color: white;
}
.a-IRR-header.is-active, 
.a-IRR-header:hover {
    background-color: var(--primary);
}
.a-IRR-headerLink {
    color: white;
}
/* HQAA-1127: a link in a control-break header row stays visible on the dark header and on hover. */
th.a-IRR-header.a-IRR-header--group a {
    color: white;
    text-decoration: underline;
}


/* stacked labels and values */
ul.hqaa-labels-values {
    list-style-type: none;
    margin-inline: 0;
    display: grid;

    li {
        margin-block-end: 0.5rem;
        .value {
            font-weight: 700;
        }
    }   
}

/* Make grids with the even-grid class have there headers wrap to show full titles */

.even-grid .a-GV-header .a-GV-headerLabel {
  white-space: normal;
  text-overflow: clip;
  line-height: 1;
}

/* End interactive grid */

/* 
 *** Utility ***
 */
*:has(.button-padding-small) {
    --a-button-padding-x: 0.5rem;
}
*:has(.button-padding-medium) {
    --a-button-padding-x: 1rem;
}
*:has(.button-padding-large) {
    --a-button-padding-x: 1.5rem;
}

/* ////////////////////////////////////////
Secondary Button Styling
////////////////////////////////////////// */
.t-Button.t-Button--simple.t-Button--hot {
    --a-button-hover-background-color: #09395a;
    --a-button-text-color: #09395a;
    --a-button-border-width: 2px;
    --a-button-border-color: #07395A;
    --a-button-background-color: white;
    --a-button-type-background-color: white;
    --ut-focus-outline-color: white;
    --a-button-hover-border-color: white;
}

.t-Button.secondary {
    background-color: white;
    border: 2px solid var(--primary-dark); /* Dark blue border */
    color: var(--primary-dark); /* Dark blue text */
    font-family: Roboto, sans-serif;
    font-weight: 700;
    text-align: center;
    padding: .4rem .75rem;
    cursor: pointer;
}
    
.t-Button.secondary:hover {
    background-color: var(--primary-dark);
    color: white;
}
.t-Button.secondary.on-dark:hover {
    border: 2px solid white; 
}

/* ////////////////////////////////
End 
//////////////////////////////// */

/* "Complete your profile" rendered as a non-interactive pill badge */
.profile-pill.t-Button {
    background-color: var(--primary);   /* see note — match your nav pill */
    color: #fff;
    border: none;
    border-radius: 4rem;
    padding: 2px 10px;
    min-height: 0;
    height: auto;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
    cursor: default;
    pointer-events: none;        /* looks like a badge, ignores clicks */
    align-self: center;
    margin-left: 0.5rem;
}
.profile-pill.t-Button:hover,
.profile-pill.t-Button:focus,
.profile-pill.t-Button:active {
    background-color: #1c4e80;   /* kill hover/press states */
    color: #fff;
    box-shadow: none;
}

/* ////////////////////////////////
Standards Detail Drawer 
///////////////////////////////// */
#standards .t-LinksList-link {
    border: 1px solid var(--off-white); 

}
#standards .is-current .t-LinksList-link,
#standards .t-LinksList-link:hover {
    border: 1px solid var(--primary-light);
    background-color: var(--off-white);
    text-decoration: underline;
}

/* ////////////////////////////////
Submissions
///////////////////////////////// */
#submissions .apex-rds-item.apex-rds-selected .a-RDS-link:before{
    background-color:  var(--accent);
    height: 4px;
}

/* .a-RDS-link is where text color is changed */
/* ////////////////////////////////
Submissions End
//////////////////////////////// */

/* //////////////////////////////
Additional Resources styling
////////////////////////////////
 */
.additional-resources li a:hover {
    text-decoration: none;
}
/* /////////////////////////////
Detail Drawer End
//////////////////////////////// */

/* ////////////////////////////////
Detail Drawer End
///////////////////////////////// */


#ahca-header .t-ContentBlock-header {
    margin-bottom: 0 !important;

    @media (max-width: 1000px) {
        flex-direction: column;

        .t-ContentBlock-headerItems--buttons {
            margin: 0.5rem 0;
            width: 100%;
        }
    }
}


/* ── Grey Sections - add gray-section-card to Column CSS Class ────────────── */
.container .gray-section-card {
    border-radius: 0.5rem;
    .t-Region {
        background-color: #E9E9E9;
        border-radius: inherit;
    }
    .t-Region-header {
        background-color: transparent;
    }
    .t-Region-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--ut-component-text-default-color);
    }
    .apex-item-text,
    .apex-item-select,
    .apex-item-textarea {
        background-color: white;
    }
}

/* ── Checkbox group having too much top margin - add class to Appearance CSS ────────────── */
.check-group-top-none .checkbox_group.apex-item-group {
    margin-block-start: 0px;
}


/* Override train styles */
/* #main .t-wizard { */
.t-Wizard {
    max-width: 100%;
    border: none;
    box-shadow: none;
}

.t-Wizard-header {
    background-color: transparent;
}

/* Handlef by adjusting columns */
/* #main-train .t-Region-header {
    margin: 0rem 1rem;
} */

/* Mobile: Hide all but active step */
/* Show only active step on mobile, keep grid 2/10 on desktop */
@media (min-width: 769px) {
    /* Force full width */
    .t-Wizard {
        margin: 0rem 4rem;
    }
}

/* End train overides */

/* Application Region Gray Background */
.app-region-gray.t-Region .t-Region-header,
.app-region-gray.t-Region .t-Region-body {
    background-color: #E9E9E9 !important;
    /* font-weight: 700; */
}

/* Page 23 Alert Box */
.hqaa-alert-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: transparent;
  border: 4px solid var(--primary-light);
  border-radius: 6px;
  padding: 0px 0px 0px 0px;
}

/* Icon wrapper — this is what gets the blue background */
.hqaa-alert-info .hqaa-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(from var(--primary-light) r g b / 15%);
  border-radius: 4px;
  padding: 18px;
  flex-shrink: 0;
}

.hqaa-alert-info .fa {
  color: var(--primary);
  font-size: 1.5rem; /* bump up size */
  flex-shrink: 0;
}

/* ── Alter Region Formatting ────────────── */
.container .alert-region {
    .t-Region-title {
        font-size: 2rem;
        font-weight: 700;
    }
    .apex-item-text,
    .apex-item-select,
    .apex-item-textarea {
        font-size: 1rem;
        font-weight: 400;
    }
}


/* Breadcrumb styling  */

.t-Breadcrumb-item a.t-Breadcrumb-label {
  color: var(--primary, #1E5D91); 
}
.t-Breadcrumb-item a.t-Breadcrumb-label:hover,
.t-Breadcrumb-item a.t-Breadcrumb-label:focus {
  color: var(--primary, #1E5D91);
  text-decoration: underline;
}

/* End Bread Crumb styling  */

/* Pill styling for display only fields, apply both detail-fields and pill to get the pill styling apply detail-fields alone for bold plain text*/

.detail-fields .display_only {
    border: none;
    background-color: transparent;
}

.detail-fields.pill .display_only {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: #f1f3f5;
  color: #495057;
  font-weight: 500;
}

/* To get proper coloring of the pill you need to apply the data-status attribute under custom attributes with the value matching the status */
.detail-fields .display_only[data-status="UNPAID"] {
    background-color: rgb(from var(--ut-palette-danger) r g b / 0.25);
    color: var(--ut-palette-danger);
}

.detail-fields .display_only[data-status="SUBMITTED"] {
    background-color: rgb(from var(--a-palette-success) r g b / 0.25);
    color: var(--a-palette-success);
}

.detail-fields .display_only[data-status="APPROVED"] {
    background-color: rgb(from var(--a-palette-success) r g b / 0.25);
    color: var(--a-palette-success);
}
/* Add more colors for other status once they are finalized */

/* Link lists styled as tabs for the Admin Application Pages */

/* Tabs list — match the old Region Display Selector look */
                                                                                                           
  /* Tab label color (all tabs) */
  .selection-tabs .t-Tabs-link,                                                                            
  .selection-tabs .t-Tabs-label {                                                                          
      color: var(--primary, #1E5D91); 
      text-decoration: none;                                                                               
  }               
                                                                                                           
  /* 4px accent underline on the active tab */                                                             
  .selection-tabs .t-Tabs-item {      
      position: relative;                                                                                  
  }               
  .selection-tabs .t-Tabs-item.is-active .t-Tabs-link::before,
  .selection-tabs .t-Tabs-item.is-active .t-Tabs-link::after,
  .apex-rds-selected .a-RDS-link::before {                                             
      content: "";                                                                                         
      position: absolute;                                                                                  
      left: 0;                                                                                             
      right: 0;                       
      bottom: 0;                      
      height: 4px;
      background-color: var(--accent, #E19626);
  }                                                                                                        
   
  /* Optional: hide the default UT active-tab border so only the orange bar shows */                       
  .selection-tabs .t-Tabs-item.is-active .t-Tabs-link {
      border-bottom-color: transparent;                                                                    
  }               
                                                                                                           
  /* Optional: subtle hover state to mirror the old RDS */                                                 
  .selection-tabs .t-Tabs-link:hover {
      color: var(--primary, #174571);                                                              
      background-color: transparent;                                                                       
  }                             

/* End Link Lists */

/* Fix for train navigation links in appllication app */

.t-WizardSteps a {
  pointer-events: none;
  cursor: default;
}

/* end train navigation issue */

/* ///////////////////////////////////////////////
/////     Page 302 Custom CSS               /////
////////////////////////////////////////////////
 */

   #notes-conversation .t-Comments-actions .js-unpin-note { display: none; }
  #notes-conversation .t-Comments-actions .js-delete-note { display: none; }
  #notes-conversation [data-pin-state="pinned"] .t-Comments-actions .js-pin-note { display: none; }
  #notes-conversation [data-pin-state="pinned"] .t-Comments-actions .js-unpin-note { display: inline; }
  #notes-conversation .t-Chat--own .t-Comments-actions .js-delete-note { display: inline; }

  .is-highlighted {
      background-color: #fff3cd;
      transition: background-color 0.5s ease;
  }

  .note-msg-truncate {
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  #notes-conversation .t-Comments {
      padding-bottom: 3rem;
  }

  #notes-conversation .t-Comments-item { overflow-x: auto; }

  /* Notes badge pills */
  .hqaa-badge {
      display: inline-flex;
      align-items: center;
      padding: 2px 10px;
      border-radius: 4rem;
      border: 1px solid;
      font-size: 12px;
      font-weight: 600;
      margin-right: 4px;
      white-space: nowrap;
      gap: 4px;
  }
  .hqaa-accrediation--system {
        background-color: #f1f3f4;
        color: black;
        border: none;
        padding: 4px 10px;
  }
  .hqaa-badge--system {
      border-color: #6c757d;
      color: black;
  }
  .hqaa-badge--pinned {
      /* border-color: #d97706;
      background-color: #fef9c3;
      color: #78350f; */
      border-color: #dce7f3;
      background-color: var(--ut-color-primary, #0572ce);
      color: #dce7f3;
  }
  .hqaa-badge.is-FALSE { display: none; }
  .hqaa-badge--type {
      border-color: #dce7f3;
      background-color: var(--ut-color-primary, #0572ce);
      color: #dce7f3;
  }
  
  /* Drawer content: full-height flex column */
  .t-Drawer-body:has(#notes-main) {
      display: flex;
      flex-direction: column;
      overflow-y: auto;
  }
  .t-Drawer-body:has(#notes-main) .t-Body-content {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
  }

  /* Notes region grows; New Note stays at its natural height */
  #notes-main {
      flex: 1;
      min-height: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
  }
  #notes-main .t-Region-bodyWrap,
  #notes-main .t-Region-bodyWrap .t-Region-body {
      flex: 1;
      min-height: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
  }

  /* Notes Conversation fills remaining space */
  #notes-conversation {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
  }

  /* New Note anchored at bottom */
  #new-note {
      flex-shrink: 0;
  }

/* Dashboard Styling */
.info-block  .info-block-text {
    font-size: 2rem;
    line-height: 2.25rem;
}

/* Orientation Checklist text styling */
.t-Form-fieldContainer.apex-item-wrapper--checkbox label.t-Form-label {
    font-size: 1rem;
    margin-bottom: .5rem;
    font-weight: bold;
}

/* Modules */
#module-chapters_TemplateComponent {
    .t-ContentRow-groupHeader {
        background-color: var(--primary-dark);
        color: white;
        border-radius: 8px 8px 0px 0px;
    }
    /*
    .hqaa-module-pct {
        background-color: #E9E9E9;
        border-radius: 4rem;
        padding: .5rem .75rem;
        color: black;
        font-weight: bold;
        border: none;
        pointer-events: none;
        box-shadow: none;
    }
    .t-ContentRow-misc {
        font-weight: 700 !important;
        font-size: 0.75rem;
        padding: 0.25rem .5rem;
        border-radius: 4rem;
        background-color: #E9E9E9 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    } */
}

/* HQAA-773: Evidence of Compliance badges, built by standards_api.get_evidence_badges
   (230 pages 414, 606, 922; 210 page 10). Plain text badges, no colour coding. */
.hqaa-evidence-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-left: .5rem;
    vertical-align: middle;
}
.hqaa-evidence-badges .t-Badge {
    font-weight: 400;
    white-space: nowrap;
}
.hqaa-evidence-badges:first-child {
    margin-left: 0;
}

/* HQAA-1022: one type scale for every drawer and modal dialog page, from docs/design.md.
   20px/600 for every section and alert title (heading-sm; a 24px region title is loud in a
   drawer), 14px for prose, 12px stays for labels and report text. Scoped to the body classes
   APEX gives drawer pages (.t-Drawer-page) and modal dialog pages (.t-Dialog-page), so normal
   pages keep 24px region titles. The gray-section-card line is needed because that rule
   above (.container .gray-section-card .t-Region-title, 0,3,0) outranks the plain one. */
:is(.t-Drawer-page, .t-Dialog-page) :is(.t-Region-title, .t-ContentBlock-title, .t-Region-titleButton, .t-Alert-title),
:is(.t-Drawer-page, .t-Dialog-page) .gray-section-card .t-Region-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.75rem;
}
:is(.t-Drawer-page, .t-Dialog-page) :is(p, .t-Alert-body) {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
