/*
Hospital Authority MOL style.css
Version: 6
Date: 2025-06-19
*/

/** General styles **/
/*For body font*/
body {
    font-family: "Rubik", sans-serif !important;
   }
   
   h1,h2,h3,h4,h5 {
    font-family: "Rubik", sans-serif !important;
   }

/* Page Header */
div.PageHeaderstyle__HeaderWrapper-sc-1g712zc-1 {
    min-height: 150px;
}

/* TOC account switcher link */

.cvpwGU li > div > a > span
{
    font-weight: normal !important;
}

@media (min-width: 48em) {
    div.PageHeaderstyle__HeaderWrapper-sc-1g712zc-1 {
        min-height: 300px;
    }
}

h1[data-target-id='page-header--title']{
    color:#FFFFFF !important;
}


/* Footer */
.Footerstyle__FooterLogo-qy73sa-4{
    visibility:hidden;
}


/* Specific pages and modules */

/* Information Message */
div.InformationMessagestyle__Notification-sc-1ok6jey-0 {
    padding-left: 0;
}
@media (min-width: 48em) {
    div.InformationMessagestyle__Notification-sc-1ok6jey-0 {
        padding-left: 0;
    }
}

/* Login page */
/* To hide the unwanted text from login page  */ 
a.registration-link
{
    display: none !important;
}

/*button colors*/
#okta-sign-in .button.button-primary {
    border-radius: 4px;
}
.cta-primary {
    background-color: #db0011 !important;
    border-color: #db0011 !important;
}
.LoginPageTilesstyle__Container-l5we8i-1.hqbOPI .cta-primary {
    background-color: #D9D9D9 !important;
    border-color: #D9D9D9 !important;   
}
span[data-target-id="Login-Page-Tiles--0--content-block--cta"] a.-ButtonLink {
    color: #db0011;
    padding-top: 13px;
    padding-bottom: 13px;
}


/* Communication preference page button style */
.eKMTXE .RadioCheckboxstyle__RadioCheckboxItem-eedtik-0 input[type="radio"]:checked + label{
    background-color: #00847F !important;
    border: 1px solid #00847F !important;
}

.eKMTXE .RadioCheckboxstyle__RadioCheckboxItem-eedtik-0 input[type="radio"] + label{
   border: 1px solid #00847F !important;
}


/* Dashboard page */
.DashboardHeaderstyle__HeaderWrapper-sc-11rbnci-0 svg image[href*='dashboard-arrow'] {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

.DashboardHeaderstyle__Wrapper-sc-11rbnci-1{
    color:#FFFFFF;
}

span[data-target-id='db-transactions--cta-balance-view']{
    color:#FFFFFF !important;
}

span[data-target-id='db-header--cta-view-transaction']{
    color:#FFFFFF !important;
}

.DashboardActionTilesstyle__Title-tmm1ho-1{
    max-width: 160px;
}


/* Contact us page - makes a one column layout instead of a two-column layout */ 
@media (max-width: 800px) {
    #contact_us_block > div{
        flex: 100% !important;
        padding: 3% 6%;
    }
}
  
  
/* checkbox */
.ejFJvA input[type="checkbox"]:checked + label::before{
    border-color: #00847F !important;
}

.ejFJvA input[type="checkbox"]:checked + label::after {
    border-right: 2px solid #00847F !important;
    border-bottom: 2px solid #00847F !important;
}


/* Information pages menu*/
div.InformationMessagestyle__Notification-sc-1ok6jey-0:has(details) i {
	display: none;
}
div[data-target-id="information-message--description"]:has(details) {
    display: flex;
    justify-content: space-evenly;
}
/* Information pages content */
.information {
    background-color: #fff;
    color: #333;
    padding: 25px;

    details {
        &:first-of-type {
            margin-top: 1rem;
        }
        &:last-of-type {
            margin-bottom: 2rem;
        }    
        summary {
              background-color: #f6f6f6;
              border-bottom: 1px solid #fff;
              font-size: 24px;
              margin: 0 -25px;
              padding: 0.5rem;
              clear: both;
        }
    }
    
    dl {
        margin-bottom: 2rem;
        
        dt {font-weight: bold;}
        dt::after {content: ":"}
        dd { 
            margin-left: 0;
            margin-bottom: 1rem;
        
            ul {
                padding-left: 0;
            }
        }
    }    
    
    h3 {
        clear: both;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    @media screen and (min-width: 607px) {
        img {
            float: right;
            margin-left: 2rem;
        }
    }
    
    table {
        width: unset;
        margin-bottom: 1rem;
        
        * {
            font-size: 1rem;
            margin-top: unset;
        }
        
        caption {
            font-weight: bold;
        }
        th,td { 
            text-align: left;
            vertical-align: top;
            padding: 1em 5px 0.5rem 5px;
        }
        ul {
            padding-left: unset;
        }
    }
    table:not(:first-of-type) {
            margin-top: 2rem;
    }
}
/* wrapper for wider tables */
section.information section {
    overflow-x: auto;
}    
    
#overview {
    @media screen and (max-width: 425px) {
        table thead {display: none;}
        th, td {display: block;}
    }
}
#investment-choices td {
    white-space: nowrap;
}
/* Information page footer tiles */
body:has(.information) .DynamicSubLayoutstyle__Container-fbppi-2:has(.LinkTilestyle__ContentWrapper-sc-1abbm19-1) {
   margin-bottom: revert;
}



/* Tutorials page and modules */
body:has(h2#tutorials) {
	section {
		margin-top: 3rem;
		scroll-margin-top:110px !important;
		
		img {
			max-width: 100%;
			height: auto !important;
		}
	}
	div section:first-of-type {
		margin-top: 0;
	}
	
	h2 {
		padding-top: 1rem;
	}
	
	.in-page-links {
		display: reset;
		background: #fff;
		padding: 1rem;
	 
		ul li::before {
			content: none;
		}
		ul li {
			list-style: disk;
		}
	}
	
	aside .in-page-links {
	  display: none;
	}
	
	@media (min-width: 48em){
		main .in-page-links {
			display: none;
		}
		aside {
			position: sticky;
			top: 100px;

			.in-page-links {
				display: block;
			}
		}
	}
} 
