﻿@import "Site-root.css";

:root {
    --header-height: 60px;
    --header-height-mobile: 50px;
    --header-height-mobile-lowrx: 44px;
    --footer-height: 66px;
    --footer-height-mobile: 50px;
    --footer-height-mobile-lowrx: 44px;
    --macau-gov-button-height: 36px;
    --macau-gov-button-height-big: 48px;
    --macau-gov-button-width-main: auto;
    --macau-gov-button-width-secondary: auto;
    --macau-gov-step-icon-size: 28px;
    --macau-gov-step-icon-size-inner: 18px;
    --macau-gov-step-vertical-line-height: 38px;
    --macau-gov-font-medium: 500;
    --file-item-width: 300px;
}

html {
    font-size: var(--macau-gov-font-size-normal);
    height: 100%;
    width: 100%;
}

/*@media screen and (max-width:480px) {
    html {*/
/*font-size: 14px;*/
/*font-size: 0.9rem;
        line-height: 0.9rem;
    }
}

@media screen and (max-width:321px) {
    html {*/
/*        font-size: 0.9rem;
        line-height: 0.9rem;*/
/*}
}*/

/*Body*/
body {
    background-color: #fff; /*(--macau-gov-color-department-light);*/
    /*background: linear-gradient(to right,var(--macau-gov-color-department-light),var(--macau-gov-color-department-light));*/ /* #B2DFDB, #f9f9f9);*/
    padding-top: var( --header-height);
    /*font-family: "微軟雅黑", "Microsoft YaHei", "蘋方", "Pingfang","Helvetica Neue","思源黑體","Roboto", -apple-system, system-ui, Ubuntu, "Lucida Grande", Verdan;*/
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial,"Microsoft YaHei", "Microsoft JhengHei", "PingFang TC", "Ming_MSCS", "Ming-MSCS-DSI", sans-serif;
}

/*@media screen and (max-width:480px) {
    body {
        padding-top: var(--header-height-mobile);
    }
}

@media screen and (max-width:321px) {
    body {
        padding-top: var(--header-height-mobile-lowrx);
    }
}*/
/*\Body*/

/*Container*/
.container {
    max-width: calc(var(--global-max-width) - 32px); /*900px;*/
    padding: 0px 16px calc(var(--footer-height) + 24px) 16px; /*10px 0px calc(var(--footer-height)) 0px;*/
    text-align: center;
    /*box-shadow: var(--macau-gov-shadow-global);*/
}

.scroll-content {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
/*@media screen and (max-width:480px) {
        .container {
            max-width: 100%;
            padding: 0px 0px calc(var(--footer-height-mobile)) 0px;
        }
    }*/

/*low rex mobile phone*/
/*@media screen and (max-width:321px) {
        .container {
            max-width: 100%;
            padding: 0px 0px calc(var(--footer-height-mobile-lowrx)) 0px;
        }
    }

    /*\Container*/

/*Footer*/
.footer {
    background-color: var(--macau-gov-color-department);
    color: #ffffff;
    height: var(--footer-height);
    font-size: 0.7rem;
    box-shadow: var(--global-shadow);
}

    /*@media screen and (max-width:480px) {
        .footer {
            font-size: 0.8rem;
            height: var(--footer-height-mobile);
            padding: 0px;
        }
    }*/

    /*low rex mobile phone*/
    /*@media screen and (max-width:321px) {
        .footer {
            padding-top: 0px;
            font-size: 0.7rem;
            height: var(--footer-height-mobile-lowrx);
        }
    }*/

    .footer div {
        width: 100%;
        text-align: center;
    }
/*\Footer*/



/*Header*/
.header {
    background-color: var(--macau-gov-color-department);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 5; /*z-index=1 in custom-control, =2 in .input-group-prepend .input-group-append,  so need to increase this.*/
    font-size: 1.1rem;
    height: var( --header-height);
    box-shadow: var(--global-shadow);
}

    .header .btn-account {
        padding: 10px;
        margin: 0px;
    }

    .header .bi-people-circle {
        width: 1.5em;
        height: 1.5em;
        color: #ffffff;
    }

    .header .navbar {
        padding: 0px;
        text-align: center;
    }

    .header .navbar-brand {
        text-align: center;
        margin: 0px auto 0px auto;
        padding: 4px 0px 4px 0px;
    }

    .header .navbar-toggler {
        border: none;
        margin: 0px;
        float: none;
    }

    .header .btn-group .dropdown-menu {
        border-radius: 0;
        border-width: 0;
    }

    .header #navbarToggleExternalContent {
        background-color: var(--macau-gov-color-dark) !important;
    }

    .header .nav-item {
        text-align: left;
    }

    .header .nav-link {
        color: white;
    }

    .header .divider {
        height: 1px;
        margin: 9px 0;
        overflow: hidden;
        background-color: var(--macau-gov-color);
    }

    .header .btn-Lang {
        color: var(--macau-gov-color);
        filter: brightness(250%);
        margin: 0px 10px 0px 0px;
    }

    .header .version {
        color: #D9D9D9;
        font-size: small;
    }

/*mobile phone*/
@media screen and (max-width:480px) {
    .header {
        height: var( --header-height-mobile);
    }

        .header img {
            height: 40px;
        }

        .header .btn-account {
            padding: 0px 5px 0px 0px;
            margin: 0px;
        }

        .header .bi-people-circle {
            width: 1.5em;
            height: 1.5em;
            color: #ffffff;
        }
}

/*low rex mobile phone*/
@media screen and (max-width:321px) {
    .header {
        height: var( --header-height-mobile-lowrx);
    }

        .header img {
            width: 150px;
        }

        .header .btn-account {
            padding: 0px;
            margin: 0px;
        }

        .header .bi-people-circle {
            width: 1.5em;
            height: 1.5em;
            color: #ffffff;
        }
}
/*\Header*/

/*button*/
.btn {
    min-height: var(--macau-gov-button-height);
    border-radius: calc(var(--macau-gov-button-height)/2); /*24px;*/
    padding: 0 24px;
    min-width: 80px;
    margin: 4px;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1rem;
}

.btn-big {
    min-height: var(--macau-gov-button-height-big);
    border-radius: calc(var(--macau-gov-button-height-big)/2);
    padding: 0px 40px;
    min-width: var(--macau-gov-button-width-secondary);
}
/*button*/


/*dialog*/
.modal-dialog {
    width: 79%;
    max-width: 720px; /*480px;*/
    justify-self: center;
}

.modal-content {
    border: none;
    padding: 0px 24px;
}

.modal-header {
    margin: 16px 0px;
    padding: 0px 0px;
    border: 0px;
    font-size: 1.2rem;
    text-align: left;
    height: 24px;
}

.modal-title {
    color: var(--macau-gov-color);
    text-align: left;
    font-weight: 500; /*medium: 500, bold:700*/
    font-family: "PingFang SC", "Microsoft YaHei";
    /*color: #232323;*/
    /*margin-left: 8px;*/
}

.modal-body {
    text-align: left;
    /*min-height: 150px;*/
    padding: 0px 0px 8px 0px;
    font-size: var(--macau-gov-font-size-normal);
    max-height: 79vh;
    overflow-y: auto;
}

.modal-description {
    text-align: left;
    /*    margin-left: calc(1.5em + 8px);
    margin-top: 12px;*/
}

.modal-footer {
    /* padding: 16px 24px; 
    margin: 0; */
    padding: 16px 0px;
    border: 0px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/*\dialog*/

.service-action-container {
    display: flex;
    justify-content: flex-end;
    flex-direction: column-reverse;
}
