/* @import url('https://cdn.jsdelivr.net/npm/noto-sans-tc@36.0.0/noto_sans_tc_regular/css.min.css');
@import url('https://cdn.jsdelivr.net/npm/noto-sans-sc@37.0.0/noto_sans_sc_regular/css.min.css'); */
@font-face {
	font-family: 'Noto Sans SC';
	font-display: swap;
	src: url('/fonts/NotoSansSC-Regular.ttf');
}
@font-face {
	font-family: 'Noto Sans TC';
	font-display: swap;
	src: url('/fonts/NotoSansTC-Regular.ttf');
}
@font-face {
	font-family: 'mingliu';
	font-display: swap;
	src: url('/fonts/mingliu/Ming-Lt-HKSCS-UNI-H-03.ttf');
}

/* menu item */
#header .navbar-nav.right .nav-link.min-width {
	min-width: 80px;
}


/* stick footer at bottom */
#content {
	min-height: calc(100vh - 102px - 123px - 3rem);
}


/* programme selection : show number on checkbox */
#apply-programme-selection-table label[for],
#apply-programme-selection-table [type=radio],
#apply-programme-selection-table [type=checkbox] {
	cursor: pointer;
}

#apply-programme-selection-table [type=radio]::before,
#apply-programme-selection-table [type=checkbox]::before {
	background: white;
	border: solid 1px #ced4da;
	border-radius: 100%;
	color: white;
	content: '';
	display: block;
	font-size: .8rem;
	font-weight: bold;
	height: 1.5rem;
	line-height: 1.4rem;
	text-align: center;
	transform: translate(-25%, -25%);
	width: 1.5rem;
}

#apply-programme-selection-table [type=radio]:checked::before {
	content: '\2713';
}

#apply-programme-selection-table [type=checkbox]:checked::before {
	content: attr(data-priority);
}

#apply-programme-selection-table [type=radio]:checked::before,
#apply-programme-selection-table [type=checkbox]:checked::before {
	background: #007bff;
	border-color: transparent;
}

#apply-programme-selection-table [type=radio][disabled]::before,
#apply-programme-selection-table [type=checkbox][disabled]::before {
	background: #e9ecef;
}

/* warning message when no programme */
label[for=webform-input-selection] {
	width: 100%;
}


/* declaration : adjust order list spacing */
.webform-col-declaration ol {
	margin-left: -.5rem;
}

.webform-col-declaration li {
	padding-left: .5rem;
}


/* home page */
a.link-login,
a.link-forgot {
	color: #ee0;
}

#home-layout .form-control {
	background: #eee;
}

#home-layout .jumbotron {
	text-shadow: 1px 1px 2px black;
}

body[data-controller=login],
body[data-controller=account],
body[data-controller=register] {
	background-position: center;
	background-size: cover;
	background-image: url(../img/cover_origin.jpg);;
}


body[data-controller=login] #home-layout,
body[data-controller=account] #home-layout,
body[data-controller=register] #home-layout,
body[data-controller=account][data-action=forgot_password] #home-layout,
body[data-controller=account][data-action=verify] #home-layout
{
    background-color: rgba(166,3,17, 0.5);
    height: 100%;
}

body[data-controller=forgot],
body[data-controller=register],
body[data-controller=account][data-action=forgot_password],
body[data-controller=account][data-action=verify] {
	/*background-image: url(../img/cover_orange.png);*/
	background-image: url(../img/cover_origin.jpg);
}

body[data-controller=account][data-action=ready] {
	background-image: none;
}




/* table responsive */
.webform-input-table table {
	min-width: 900px;
}


/* footer */
#footer {
	background: #333;
	min-height: 250px;
}

#footer img {
	height: 60px;
}

/* readonly  */
.readonly {
	background-color: #e9ecef;
}

/* referee type */
.referee-type {

	border-left: 1px solid #dee2e6;
	border-right: 1px solid #dee2e6;
	padding-left: 15px;
	font-size: 20px;
}

.no-close #webform-input-referee .webform-input-table-row:nth-child(2) tr td.text-center a,
.no-close #webform-input-referee .webform-input-table-row:nth-child(3) tr td.text-center a
{
	display: none;
}

.webform-col-referee .no-close table.cursor-pointer[aria-expanded="true"] {
	/*
	display: none;
	pointer-events: none!important;
	*/
	pointer-events: none!important;
}
/* referee progree  */
a.referee-button {
    float: right;
}

.referee-progress-form .text-right{
	display: none;
}

.referee-progress-form input{
	display: none;
}

.referee-progress-form li{
	list-style:none;
}


body[data-action="confirm"]  .programme-info-top {
    display: none;
}

.programme-subtitle{
	font-weight: 400;
}

/*
#apply-programme-selection-table tr.active-programme {
    background: yellow;
    position: sticky;
    top: 0;
}
*/
/*
.mcp-pages .mcp-b-ol>li{
	list-style: none;
	counter-increment: list;
}

.mcp-pages .mcp-b-ol>li::marker{
	counter-increment: list;
    content: "(" counter(list, lower-roman) ")";
    position: absolute;
    left: -1.4em;
}
	*/

.mcp-pages .decrease-margin{
	margin-left: -20px;
}

.mcp-pages .decrease-margin-2{
	margin-left: -10px;
}

.webform-input-table-header th{
	vertical-align: top!important;
}

.ug-login-redirect-tab{
	line-height: 18px;
}

body[lang="zh-cn"]{
	font-family: 'Noto Sans SC','mingliu';
}
body[lang="zh-hk"]{
	font-family: 'Noto Sans TC','mingliu';
}
body[lang="en"]{
	font-family: 'Noto Sans TC','mingliu';
}

#webform-input-referee .webform-input-table-row{
	margin-bottom: 15px;
}

.no-star .text-danger {
	display: none;
}