/*!
 * HL7.css  (20260519 改版重構 / 精簡整理版)
 * 全站共用樣式：base、navbar、首頁、footer、GridView、報名頁等。
 */


/* #region base ---------------------------------------- */
body {
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1.125rem;
}

img::selection {
    background: transparent;
}

img::-moz-selection {
    background: transparent;
}

p {
    line-height: 1.6;
}

a {
    color: #1A202C;
}

    a:hover {
        color: #427906;
        transition: all 0.2s;
        text-decoration: none;
    }

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.text-success {
    color: #609D1E !important;
}

.btn-success {
    background-color: #609D1E !important;
    border-color: #609D1E !important;
}

    .btn-success:hover,
    .btn-success:focus {
        background-color: #427906 !important;
        border-color: #427906 !important;
    }


/* 按鈕共用內距：電腦版 1.75rem，小螢幕逐階縮小 */
/*.btn-submit,
.btn-back,
.btn-outline-danger {
    padding: .25rem 1.75rem;
}

@media (max-width: 575.98px) {
    .btn-submit,
    .btn-back,
    .btn-outline-danger {
        padding: .25rem .6rem;
        font-size: .9375rem;
    }
}

@media (max-width: 380px) {
    .btn-submit,
    .btn-back,
    .btn-outline-danger {
        padding: .25rem .45rem;
        font-size: .9375rem;
    }
}*/
@media (min-width: 992px) {
    .container {
        max-width: 1010px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1380px;
    }
}

.inner-container {
    min-height: 65vh;
}
/* #endregion base */


/* #region navbar -------------------------------------- */
.navbar {
    flex-direction: column;
    padding: 0;
    box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.06);
}

    .navbar .navbar-top {
        background-color: #fff;
        width: 100%;
        padding: .5rem 0;
        display: flex;
        align-items: center;
    }

        .navbar .navbar-top .dropdown-menu {
            right: 0;
            left: unset;
            max-width: calc(100vw - 16px); /* 會員選單不超出螢幕右緣 */
        }

    .navbar .navbar-main {
        background-color: #FFF;
        border-top: 3px solid #609D1E;
        width: 100%;
    }

.navbar-toggler {
    border: none;
}

.navbar-brand {
    min-width: 0;
}

    .navbar-brand img {
        height: 40px;
        max-width: 100%; /* LOGO 太寬時依比例縮小，不撐寬頁面 */
        object-fit: contain;
    }

.navbar-nav {
    padding: 0 1rem;
    width: 100%;
}

    .navbar-nav .nav-link {
        color: #343a40 !important;
        padding: 0.75rem 1rem !important;
        font-weight: bold;
    }

        .navbar-nav .nav-link:hover {
            background-color: #e0f3cc;
        }

    .navbar-nav .dropdown-item {
        font-weight: bold;
    }

/* 中螢幕（992～1199px）：選單項目較多，縮小左右內距，避免撐出容器 */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav {
        padding: 0;
        column-gap: 0;
        justify-content: safe center; /* 真的放不下時，不會往左側撐出去而看不到 */
        flex-wrap: wrap; /* 極端情況下換行，不再撐寬頁面 */
    }

        .navbar-nav .nav-link {
            padding: .75rem .6rem !important;
        }
}

.dropdown-menu {
    transform: translateY(50px);
    transition: .5s ease all;
    font-size: 1.125rem;
    margin-top: 0;
    background-color: #609D1E;
    border: none;
    border-radius: 0;
}

    .dropdown-menu.show {
        transform: translateY(0px);
    }

.dropdown-toggle::after {
    transition: transform 0.15s linear;
}

.show.dropdown .dropdown-toggle::after {
    transform: translateY(3px);
}

.dropdown-item {
    color: #fff;
}

    .dropdown-item:focus,
    .dropdown-item:hover {
        background-color: #427906;
        color: #fff;
    }

    .dropdown-item:active {
        color: #fff;
    }

/* 桌機 */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        column-gap: 0.5rem;
    }

    .navbar-brand img {
        height: 60px;
    }
}

/* 手機 / 平板：會員按鈕縮小、主選單全版展開 */
@media (max-width: 991px) {
    .navbar .navbar-top .btn-member {
        padding: .25rem .5rem;
        font-size: .875rem;
        line-height: 1.5;
    }

    .navbar .navbar-main .navbar-collapse {
        background-color: #609D1E;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1050;
        height: calc(100vh - 61px);
        overflow-y: auto;
        padding-bottom: 1.5rem;
        transition: all 0.1s ease-in;
    }
}
/* #endregion navbar */


/* #region buttons / section --------------------------- */
section {
    padding: 0.5em 0;
}

    section .section-heading {
        color: #343a40;
        letter-spacing: 0.5px;
        font-weight: bold;
        text-align: center;
        margin-top: 24px;
        margin-bottom: 24px;
    }

@media (max-width: 991px) {
    section .section-heading {
        margin-top: 16px;
        margin-bottom: 16px;
    }
}

.btn-more {
    color: #585858;
    padding: .25rem 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

    .btn-more:hover {
        color: #609D1E !important;
    }

.btn-submit {
    color: #fff !important;
    background-color: #609D1E;
    padding: .25rem 1.75rem;
    font-weight: bold;
    transition: all 0.3s;
}

    .btn-submit:hover {
        color: #fff !important;
        background-color: #427906;
        border-color: #427906;
        text-decoration: none !important;
    }

.btn-back {
    color: #609D1E;
    border-color: #427906;
    padding: .25rem 1.75rem;
    font-weight: bold;
    transition: all 0.3s;
}

    .btn-back:hover {
        color: #fff !important;
        background-color: #427906;
        text-decoration: none !important;
    }

.btn-disabled {
    background: #d9d9d9 !important;
    color: #333333 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: .65;
}

.btn-danger:hover {
    color: #fff !important;
    background-color: #c82333;
    border-color: #bd2130;
    text-decoration: none !important;
}

.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    padding: .25rem 1.75rem;
    font-weight: bold;
    transition: all 0.3s;
}

    .btn-outline-danger:hover {
        color: #fff !important;
        background-color: #c82333;
        border-color: #bd2130;
        text-decoration: none !important;
    }
/* #endregion buttons / section */


/* #region 首頁：輪播 / 快捷鈕 / 活動卡片 --------------- */
.bg-header {
    background-color: #e0f3cc;
}

.carousel-wrap .carousel-cell {
    width: 100%;
    height: auto;
    padding-bottom: 49.8%;
    background-size: cover;
    background-position: center;
}

.carousel-wrap .flickity-page-dots {
    bottom: 1rem;
}

.quick-links-wrap {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
}

    .quick-links-wrap .btn-success {
        text-align: center;
        height: 100%;
        line-height: 1.2;
        font-weight: bold;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .quick-links-wrap .btn-success:hover,
        .quick-links-wrap .btn-success:focus {
            background-color: #427906 !important;
        }

    .quick-links-wrap .btn img {
        display: block;
        margin: 0 auto 0.5rem auto;
    }

@media (min-width: 992px) {
    .quick-links-wrap {
        grid-template-columns: 1fr;
        margin-top: 0;
        margin-bottom: 0;
        height: 100%;
    }

        .quick-links-wrap .btn-success {
            font-size: 1.125rem;
            flex-direction: row;
        }

        .quick-links-wrap .btn img {
            display: inline-block;
            margin: 0 0.5rem 0 0;
        }
}

section#event {
    padding-bottom: 50px;
}

    section#event .card-title {
        min-height: 4.5rem;
    }

    section#event .btn-warning {
        font-size: 1.25rem;
        background-color: #FD7E14;
        color: #fff;
    }

        section#event .btn-warning:hover,
        section#event .btn-warning:focus {
            background-color: #e06d00;
            color: #fff;
        }

section#RelatedLinks p {
    line-height: 1.5rem;
}
/* #endregion 首頁 */


/* #region 內頁 ---------------------------------------- */
header.masthead .inner-text {
    background-image: url(../img/titlebg.jpg);
    background-position: center;
    background-size: cover;
    box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.06);
}

    header.masthead .inner-text .inner-heading {
        line-height: 1.6;
        color: #333333;
        letter-spacing: 0.2em;
        padding: 0.25em 0;
        text-align: center;
    }

section#innerpage {
    padding-top: 0px;
    background: #FFF;
    border-radius: 8px;
    max-width: 100%;
}

    section#innerpage .section-heading {
        color: #666;
    }

    section#innerpage img {
        max-width: 100%;
    }

@media (min-width: 768px) {
    section#innerpage dt {
        text-align: right !important;
    }
}

section#sidemenu {
    width: 230px;
    background-color: #fff;
}

    section#sidemenu h5 {
        padding: 5px 0;
        padding-left: 20px;
        color: #d58512;
        border-left: 4px solid #d58512;
        font-weight: normal;
    }

    section#sidemenu ul li {
        line-height: 1.4em;
        padding: 10px 0;
    }

    section#sidemenu a.sidemenu-list-item {
        padding: 5px 0;
        padding-left: 20px;
        color: #333;
        border-left: 4px solid #FFF;
        font-weight: normal;
        font-size: 1rem;
    }

        section#sidemenu a.sidemenu-list-item.active,
        section#sidemenu a.sidemenu-list-item:hover {
            color: #d58512;
            border-left: 4px solid #d58512;
            transition: all 0.2s;
        }

.first-word {
    font-size: 1.5em;
    color: #6b3742;
    font-weight: bold;
}

.breadcrumb {
    background: transparent;
    font-size: 1rem;
}

.breadcrumb-item.active {
    color: #333333;
}

.breadcrumb-item a {
    color: #609D1E;
}

    .breadcrumb-item a:hover {
        color: #007bff;
    }

.tag {
    background: #92b33b;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 75%;
    margin: 0 18px;
    padding: 2px 6px;
    min-width: 60px;
    text-align: center;
}

.tag-01, .tag-02, .tag-03, .tag-04, .tag-05 {
    font-weight: normal;
    color: #FFF;
}

.tag-01 {
    background: #2c99ca;
}

.tag-02 {
    background: #92b33b;
}

.tag-03 {
    background: #eb859d;
}

.tag-04 {
    background: #a77fff;
}

.tag-05 {
    background: #ff944d;
}
/* #endregion 內頁 */


/* #region selection / register ------------------------ */
.selection-wrap .selection-item {
    background-color: #e0f3cc;
    gap: 0.25rem;
}

.selection-wrap .selection-title {
    font-size: 1.5rem;
    color: #609D1E;
}

.selection-wrap .selection-subtitle {
    font-size: 1rem;
}

.selection-wrap .btn {
    padding: 0.75rem 1.75rem;
    font-size: 1.125rem;
    background-color: #FFF;
}

    .selection-wrap .btn .icon {
        color: #609D1E;
    }

    .selection-wrap .btn:hover,
    .selection-wrap .btn:focus {
        background-color: #609D1E;
        color: #FFF;
    }

        .selection-wrap .btn:hover .icon,
        .selection-wrap .btn:focus .icon {
            color: #FFF;
        }

.register-wrap .register-box {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 0.5rem;
}

    .register-wrap .register-box img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 1rem;
    }

.register-wrap .btn-light {
    background-color: #fff;
    color: #343a40;
    border: 1px solid #f0f0f0;
    text-align: center;
    padding: 0.75rem 1.75rem;
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: bold;
}

    .register-wrap .btn-light:hover,
    .register-wrap .btn-light:focus {
        background-color: #e0f3cc;
    }
/* #endregion selection / register */


/* #region footer -------------------------------------- */
footer {
    margin-top: 2em;
    padding: 25px 0;
    background-color: #609D1E;
    color: #FFF;
    font-size: 1rem;
}

    footer a {
        color: #FFF;
    }

    footer .copyright {
        font-size: 1rem;
        color: #FFF;
        text-transform: none;
        margin-top: 0.5rem;
        display: inline-block;
    }
/* #endregion footer */


/* #region m-table（手機版只顯示指定欄位） ------------- */
@media (max-width: 767.98px) {
    .m-table tr th,
    .m-table tr td {
        display: none;
    }

    .m-table-1 tr th:nth-child(1),
    .m-table-1 tr td:nth-child(1),
    .m-table-2 tr th:nth-child(2),
    .m-table-2 tr td:nth-child(2),
    .m-table-3 tr th:nth-child(3),
    .m-table-3 tr td:nth-child(3),
    .m-table-4 tr th:nth-child(4),
    .m-table-4 tr td:nth-child(4),
    .m-table-5 tr th:nth-child(5),
    .m-table-5 tr td:nth-child(5),
    .m-table-6 tr th:nth-child(6),
    .m-table-6 tr td:nth-child(6),
    .m-table-7 tr th:nth-child(7),
    .m-table-7 tr td:nth-child(7),
    .m-table-8 tr th:nth-child(8),
    .m-table-8 tr td:nth-child(8),
    .m-table-9 tr th:nth-child(9),
    .m-table-9 tr td:nth-child(9),
    .m-table-10 tr th:nth-child(10),
    .m-table-10 tr td:nth-child(10) {
        display: table-cell;
    }
}
/* #endregion m-table */


/* #region GridView / 查詢區 --------------------------- */
.page-title {
    margin-left: 18px;
    margin-right: 18px;
}

.page-QryArea {
    margin-bottom: 18px;
    border-bottom: 2px solid #91bfc3;
    font-size: 1rem;
}

    .page-QryArea tbody tr td {
        padding: 8px;
    }

    .page-QryArea .flatpickr-wrap {
        max-width: 100%;
        margin: 0.25rem 0.25rem 0.25rem 0;
    }

/* 日期欄位（MasterPage 動態產生的 .flatpickr-wrap） */
.flatpickr-wrap {
    width: 165px;
    max-width: 100%;
    flex-wrap: nowrap;
}

/* 輸入框四角維持圓角，圖示獨立在右側 */
.input-group.flatpickr-wrap > input.form-control {
    border-radius: .25rem;
}

/* 日曆圖示：無背景、無邊框、綠色（對應原本 JS 裡的 inline style） */
.input-group.flatpickr-wrap .input-group-text {
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #388e3c;
    padding: 0 .25rem 0 .35rem;
    flex: 0 0 auto;
}

    .input-group.flatpickr-wrap .input-group-text:hover {
        color: #2e7d32;
    }

/* 查詢區的日期區間：窄螢幕時兩個欄位平分整列 */
#innerpage .page-QryArea .date-range .flatpickr-wrap {
    flex: 0 1 11.5rem;
    min-width: 0;
}

#innerpage .page-QryArea .date-range > span.mx-1 {
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    #innerpage .page-QryArea .date-range .flatpickr-wrap {
        flex: 1 1 0;
    }
}
/* 查詢區的下拉選單：依內容寬度顯示，不被壓縮；放不下時整列自動換行 */
section#innerpage .page-QryArea select {
    width: auto; /* 蓋過 HL7-form.css 的 width:100% */
    max-width: 100%;
    flex: 0 0 auto; /* 不被 flex 壓縮 */
    margin: 0 .15rem; /* 與「年」「月」文字保留一點間距 */
}

.page-QryArea .d-flex:has(select) {
    flex-wrap: wrap;
    row-gap: .5rem;
}

/* 小螢幕：下拉選單內距略縮，讓一列能放得下 */
@media (max-width: 575.98px) {
    section#innerpage .page-QryArea select {
        padding-left: .5rem;
        padding-right: 1.25rem; /* 保留箭頭位置 */
        font-size: .9375rem;
    }
}

/* ===== 查詢區含下拉選單（如 B102）：991px 以下，月份下拉換行後與年份下拉左緣對齊 ===== */
@media (max-width: 991.98px) {
    .page-QryArea .d-flex:has(select) {
        display: grid !important;
        grid-template-columns: auto minmax(0, max-content) auto; /* 標籤 | 下拉選單 | 年／月 */
        justify-content: start;
        align-items: center;
        column-gap: .25rem;
        row-gap: .5rem;
    }

    section#innerpage .page-QryArea select {
        width: 100%;
        margin: 0;
    }

    /* 關鍵：月份下拉放到第二欄，才不會撐寬第一欄（標籤欄） */
    .page-QryArea .d-flex:has(select) select ~ select {
        grid-column: 2;
    }
}

/* 768～991px：補回兩列之間的上下間距（mb-md-0 把它清掉了） */
@media (min-width: 768px) and (max-width: 991.98px) {
    .page-QryArea .row:has(select) {
        row-gap: .75rem;
    }
}

/* 桌機：標籤與下拉選單同一列 */
@media (min-width: 992px) {
    .page-QryArea .d-flex:has(> select) {
        flex-wrap: nowrap;
    }

    section#innerpage .page-QryArea select {
        width: auto;
        min-width: 10rem;
        flex: 0 0 auto;
    }
}

/* 標籤與文字輸入框垂直置中 */
.page-QryArea .d-flex:has(> input[type="text"]) {
    align-items: center;
}

/* 類別（RadioButtonList Flow 輸出）：小螢幕時一個選項一行，避免溢出 */
@media (max-width: 991.98px) {
    .page-QryArea div.text-nowrap > span {
        display: grid;
        grid-template-columns: auto 1fr; /* 左：圓點　右：文字 */
        align-items: center;
        row-gap: .25rem;
    }
}
/* 768～991px：標題與類別在同一列，兩個標籤依文字基線對齊 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .page-QryArea .row.align-items-center {
        align-items: baseline !important;
    }
}

.border1 tr td {
    padding: 6px;
}

.ps {
    font-size: 13px;
    color: rgba(156, 156, 156, 1.00);
}

/* border-collapse: separate 才能讓表頭圓角生效 */
.gvStyle {
    font-size: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    max-width: 100%;
}

    .gvStyle th {
        background: linear-gradient(180deg, #f0f9e8 0%, #d2f0b2 100%);
        font-weight: bold;
        color: #305805;
        border: 1px solid #D9D9D9;
        height: 40px;
        text-align: center;
        letter-spacing: 2px;
        font-size: 1rem;
    }

        .gvStyle th:first-child {
            border-top-left-radius: 8px;
        }

        .gvStyle th:last-child {
            border-top-right-radius: 8px;
        }

    .gvStyle a {
        color: #609D1E;
        font-weight: bold;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .gvStyle a:hover {
            color: #427906;
            text-decoration: underline;
        }

    .gvStyle .row1 {
        background-color: #FFFFFF;
    }

        .gvStyle .row1 td {
            border: 1px solid #D9D9D9;
            height: 35px;
        }

    .gvStyle .alt {
        background-color: #f6f6f6;
        border: 1px solid #D9D9D9;
        height: 35px;
    }

        .gvStyle .alt td {
            border: 1px solid #D9D9D9;
            height: 35px;
        }

    .gvStyle .pgr table {
        margin-left: auto;
        margin-right: auto;
    }

    .gvStyle .pgr td {
        background-color: #E2EAF2;
        border-width: 0px;
        padding: 0px 3px;
    }

    .gvStyle .pgr a {
        color: #666;
        text-decoration: underline;
        padding: 0px 3px;
    }

        .gvStyle .pgr a:hover {
            color: #FF0000;
            text-decoration: none;
        }

tr.page-nav > td {
    padding: 0;
}

    tr.page-nav > td > table {
        margin: 0 auto;
        max-width: 100%;
    }

        tr.page-nav > td > table > tbody > tr > td {
            border-top: 0;
        }

/* 活動主題欄靠左 */
.gvStyle .col-left {
    text-align: left;
}

/* gv-fluid：表格貼合容器寬度，小螢幕縮小字體與間距，長文字換行 */
.gv-fluid th,
.gv-fluid td {
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 767.98px) {
    .gv-fluid {
        font-size: .875rem;
    }

        .gv-fluid th {
            letter-spacing: 0;
        }

        .gv-fluid th,
        .gv-fluid td {
            padding: .5rem .35rem !important;
        }
}

@media (max-width: 575.98px) {
    .gv-fluid {
        font-size: .75rem;
    }

        .gv-fluid th,
        .gv-fluid td {
            padding: .4rem .25rem !important;
        }
}

/* 明細：小螢幕時標題在上、內容在下 */
@media (max-width: 767.98px) {
    /* 只針對含表格或富文字內容的項目；短項目維持同一行 */
    .meta-info > .d-flex:has(.gvStyle),
    .meta-info > .d-flex:has(.rich-content) {
        flex-direction: column;
        align-items: stretch !important; /* 蓋過 align-items-center */
    }

        .meta-info > .d-flex:has(.gvStyle) > span.font-weight-bold,
        .meta-info > .d-flex:has(.rich-content) > span.font-weight-bold {
            margin-bottom: .25rem;
        }

    /* 內容欄位可縮小、可換行，不再把頁面撐寬（mx-1 帶有 !important，這裡也要加） */
    .meta-info > .d-flex > .mx-1 {
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 表格若仍比畫面寬，改成在框內橫向捲動，而不是把整頁撐出去 */
    .meta-info > .d-flex > span.mx-1:has(.gvStyle) {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* #endregion GridView */


/* #region 報名場次（依地區分組） ----------------------- */
.session-wrap {
    margin-bottom: 1rem;
}

.area-group-card {
    background: #fff;
    border: 1px solid #D9D9D9;
    border-left: 6px solid #609D1E;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

    .area-group-card.area-code-N {
        border-left-color: #2c99ca;
    }

    .area-group-card.area-code-M {
        border-left-color: #d58512;
    }

    .area-group-card.area-code-S {
        border-left-color: #92b33b;
    }

    .area-group-card.area-code-E {
        border-left-color: #eb859d;
    }

    .area-group-card.area-code-S1 {
        border-left-color: #a77fff;
    }

.area-group-header {
    display: inline-block;
    background: linear-gradient(180deg, #f0f9e8 0%, #d2f0b2 100%);
    color: #305805;
    font-weight: bold;
    font-size: 1.1875rem;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.area-session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.area-session-item {
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    padding: 0.75rem;
    background: #FAFAFA;
    transition: opacity 0.2s;
}

    .area-session-item.is-full {
        opacity: 0.6;
        background: #F0F0F0;
    }

.area-session-badge {
    display: inline-block;
    background: #EFEFEF;
    color: #585858;
    font-size: 0.8125rem;
    font-weight: bold;
    padding: 0.1rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.area-session-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.area-session-date {
    color: #305805;
    font-size: 1rem;
}

.area-session-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #585858;
    margin-bottom: 0.5rem;
}

.area-full-tag {
    color: #d9534f;
    font-weight: bold;
    font-size: 0.8125rem;
}

.area-session-type {
    width: 100%;
}

@media (max-width: 575.98px) {
    .area-session-grid {
        grid-template-columns: 1fr;
    }

    .area-group-card {
        padding: 0.75rem;
    }

    .area-group-header {
        font-size: 1.0625rem;
    }
}
/* #endregion 報名場次 */


/* #region 報名名單（卡片式） --------------------------- */
.signup-list-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.signup-card {
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signup-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .signup-field label {
        font-size: 0.9375rem;
        font-weight: bold;
        color: #305805;
        margin: 0;
    }

    .signup-field .req {
        color: #ff0000;
    }

    .signup-field input[type="text"],
    .signup-field select {
        width: 100%;
        padding: 0.375rem 0.5rem;
        border: 1px solid #D9D9D9;
        border-radius: 4px;
    }

.signup-field-radio {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .signup-field-radio label {
        flex-shrink: 0;
    }

@media (min-width: 992px) {
    .signup-list-wrap {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .signup-list-wrap {
        grid-template-columns: 1fr;
    }
}
/* #endregion 報名名單 */


/* #region 富文字內容防破版（fckEditor） --------------- */
.rich-content {
    max-width: 100%;
    overflow-x: hidden;
}

    .rich-content * {
        max-width: 100% !important;
    }

    .rich-content img {
        height: auto !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .rich-content table {
        width: 100% !important;
        table-layout: auto;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .rich-content table td,
        .rich-content table th {
            white-space: normal;
            word-break: break-word;
        }
/* #endregion 富文字內容 */


/* #region 查詢區日期欄位 ------------------------------ */
#innerpage .page-QryArea .date-range {
    max-width: 100%;
}

    #innerpage .page-QryArea .date-range .date-picker {
        width: 9.5rem;
        min-width: 0;
        padding-left: .5rem;
        padding-right: .25rem;
    }

@media (max-width: 575.98px) {
    #innerpage .page-QryArea .date-range {
        width: 100%;
    }

        #innerpage .page-QryArea .date-range .date-picker {
            flex: 1 1 0;
            width: auto;
            font-size: .9rem;
        }
}
/* #endregion 日期欄位 */


/* #region 登入頁 (login.aspx) ------------------------- */
/* 帳號 / 密碼列：icon 在左、textbox 在右，不折行 */
#innerpage.innerpage .form-group:not(.login-links) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

    #innerpage.innerpage .form-group:not(.login-links) > label {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        flex: 0 0 auto !important;
        margin: 0 .5rem 0 0 !important;
    }

        #innerpage.innerpage .form-group:not(.login-links) > label svg,
        #innerpage.innerpage .form-group:not(.login-links) > label i {
            display: inline-block !important;
            width: 1.25rem;
        }

    #innerpage.innerpage .form-group:not(.login-links) > input.form-control {
        display: block !important;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: calc(1.5em + .5rem + 2px);
        padding: .25rem .5rem;
        font-size: .95rem;
    }

#innerpage.innerpage .watermarked {
    font-size: .95rem;
}

/* 加入會員 / 忘記密碼：同一列，左右對齊 */
#innerpage.innerpage .form-group.login-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
}

    #innerpage.innerpage .form-group.login-links > .btn-link {
        display: inline-block !important;
        width: auto !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.5;
        white-space: nowrap;
        font-size: .95rem;
    }
/* #endregion 登入頁 */

/* 小螢幕：所有按鈕縮小左右內距（上下內距維持各按鈕原本的設定） */
@media (max-width: 575.98px) {
    .btn,
    .selection-wrap .btn,
    .register-wrap .btn-light {
        padding-left: .75rem;
        padding-right: .75rem;
        font-size: .9375rem; /* 約 15px */
    }
}

@media (max-width: 380px) {
    .btn,
    .selection-wrap .btn,
    .register-wrap .btn-light {
        padding-left: .5rem;
        padding-right: .5rem;
        font-size: .875rem; /* 約 14px */
    }
}
