﻿@charset "utf-8";

html {
    font-size: 1.2em;
}

body {
    font-family: "Arial","Times New Roman","sans-serif","Microsoft JhengHei","SimSun";
    letter-spacing: 1px;
    background-color: #f6f5ed;
    margin: 0px;
}

*:lang(en), a {
    letter-spacing: 0px;
}

/*input[type="submit"], input[type="text"], input[type="email"], select {*/
input, select {
    font-size: 1em;
}

    input[type="submit"] {
        min-width: 100px;
    }

    input[type="date"] {
        font-size: 1.2em;
        text-align: center;
        width: 140px;
    }

    input[type="checkbox"] {
        margin-right: 10px;
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

select {
    height: 1.5em;
}

th {
    text-align: right;
    padding:0.3em 0.6em;
}

    th:first-child {
        width: 100px;
    }

ul {
    font-size: smaller;
    list-style-type: decimal;
    /*margin-top: 0px;
    margin-bottom: 0px;*/
    margin-left: -1em;
}

li {
    padding-left: 0.5em;
}

    a {
        text-decoration: none;
    }

#DivHeader {
    width: 100%;
    background-color: white;
    box-shadow: 0 12px 12px -12px rgba(0, 0, 0, 0.5);
    position: fixed;
}

    #DivHeader div {
        height: 5em;
        margin: auto;
        display: flex;
        align-items: center;
    }

    #DivHeader div, #DivBody {
        max-width: 1000px;
    }

    #DivHeader span {
        margin-left: auto;
    }

    #DivHeader img {
        width: 100%;
    }

#Banner {
    width: 100%;
}

#DivBody {
    margin: 0 auto;
    padding-top: 5.5em;
    margin-bottom: 2em;
}

    #DivBody input[type="submit"]:last-child {
        display: block;
        margin: 0 auto;
    }

#ProgressBar {
    letter-spacing: 1px;
    padding-bottom: 5px;
}

h1 {
    background-color: #8A5519;
    font-size: 1.4em;
    padding: 0.4em;
}

    h1 a {
        border-radius: 5px;
        float: right;
        margin-top: 2px;
        margin-right: 5px;
        padding: 1px 5px;
        background-color: white;
        color: black;
        font-size: 0.8em;
        font-weight: 500;
    }

h2 {
    background-color: #ba9c78;
    font-size: 1.3em;
    padding: 0.3em;
}

h1, h2 {
    color: white;
}

h1, h2, ul {
    margin-block-start: 0px;
    margin-block-end: 0px;
}

.SessionPadding {
    padding: 1em;
    /*background-color: #f4ece3;*/
}

.w50 {
    width: 50px;
}

.w100 {
    width: 100px;
}

.w200 {
    width: 60%;
    max-width: 200px;
}

.w300 {
    width: 70%;
    max-width: 300px;
}

.w400 {
    width: 80%;
    max-width: 400px;
}

.w500 {
    width: 90%;
    max-width: 500px;
}

/*  Submit page    */
#Div0 {
    display: grid;
    grid-template-columns: clamp(100px, 200px, 20%) 1fr;
    gap: 0.3em;
}

    #Div0 div:nth-child(odd) {
        text-align: right;
        font-weight: bold;
    }

#DDL_District:lang(zh-hk) {
    font-family: MingLiU_HKSCS;
}

#SpanRegion, .SpanNoWrap, .CbSpan span {
    white-space: nowrap;
}

#tblWorkShop {
    border-collapse: collapse;
    width: 100%;
}

#tblWorkShop:lang(en){
    font-size:smaller;
}

    #tblWorkShop th {
        border: 1px solid black;
        text-align: center;
        background-color: #DFBB91;
    }

    #tblWorkShop td {
        border: 1px solid black;
        padding: 3px;
        background-color: #E6D4C2;
    }

    #tblWorkShop input[type="checkbox"] {
        margin-right: 4px;
    }

#DDLNature {
    width: 80%;
    max-width: 300px;
    overflow-x:hidden;
}

#TbOthers {
    display:none;
    width:80%;
}

.Address{
    width:80%;
}

#SpanSME {
    font-size:smaller;
}

/*  Confirm page    */
.Grid2 {
    display: grid;
    gap: 0.3em;
    grid-template-columns: clamp(100px, 200px, 20%) 1fr;
}

    .Grid2 div:nth-child(odd) {
        text-align: right;
        font-weight: bold;
    }

div.g-recaptcha {
    margin: 0 auto;
    width: 304px;
    margin-top: 30px;
    margin-bottom: 30px;
}

#LbSystemNo {
    color: blue;
}

@media only screen and (min-width: 320px) and (max-width: 500px) {
    html {
        font-size: 1em;
    }

    th {
        padding: 5px 0px;
    }

    li {
        padding-left: 0px;
    }

    input[type="checkbox"] {
        margin-right: 5px;
    }

    #DivHeader div {
        height: 4em;
    }

    #ProgressBar {
        letter-spacing: 0px;
        padding-bottom: 5px;
    }

    #DivBody {
        padding-top: 4.5em;
    }

    #DDL_District:lang(en) {
        max-width: 150px;
    }

    .Div0 {
        grid-template-columns: 85px 1fr;
    }

    .SessionPadding {
        padding: 0.3em;
    }

    #tblWorkShop th:first-child {
        width: 50px;
    }

    #tblWorkShop th:nth-child(3) {
        width: 80px;
    }

    #tblWorkShop th:last-child {
        width: 78px;
    }
}