/**
 * Utilities CSS
 * 工具類別樣式
 */

/* ========================================
   Column Layout
   ======================================== */

/* 基本 column 容器 */
.column-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Column 寬度 - 百分比 */
.col-10 { width: 10%; }
.col-20 { width: 20%; }
.col-25 { width: 25%; }
.col-30 { width: 30%; }
.col-33 { width: 33.333%; }
.col-40 { width: 40%; }
.col-50 { width: 50%; }
.col-60 { width: 60%; }
.col-66 { width: 66.666%; }
.col-70 { width: 70%; }
.col-75 { width: 75%; }
.col-80 { width: 80%; }
.col-90 { width: 90%; }
.col-100 { width: 100%; }

/* Column 寬度 - Flex */
.col-auto { flex: 0 0 auto; }
.col-flex { flex: 1; }
.col-flex-2 { flex: 2; }
.col-flex-3 { flex: 3; }

/* Column 間距 */
.col-gap-0 { gap: 0; }
.col-gap-5 { gap: 5px; }
.col-gap-10 { gap: 10px; }
.col-gap-15 { gap: 15px; }
.col-gap-20 { gap: 20px; }
.col-gap-30 { gap: 30px; }
.col-gap-40 { gap: 40px; }

/* Column 對齊 */
.col-align-start { align-items: flex-start; }
.col-align-center { align-items: center; }
.col-align-end { align-items: flex-end; }
.col-align-stretch { align-items: stretch; }

.col-justify-start { justify-content: flex-start; }
.col-justify-center { justify-content: center; }
.col-justify-end { justify-content: flex-end; }
.col-justify-between { justify-content: space-between; }
.col-justify-around { justify-content: space-around; }

/* Column 方向 */
.col-row { flex-direction: row; }
.col-row-reverse { flex-direction: row-reverse; }
.col-column { flex-direction: column; }
.col-column-reverse { flex-direction: column-reverse; }

/* 響應式 Column - 平板 (≤ 768px) */
@media screen and (max-width: 768px) {
    .col-md-10 { width: 10%; }
    .col-md-20 { width: 20%; }
    .col-md-25 { width: 25%; }
    .col-md-30 { width: 30%; }
    .col-md-33 { width: 33.333%; }
    .col-md-40 { width: 40%; }
    .col-md-50 { width: 50%; }
    .col-md-60 { width: 60%; }
    .col-md-66 { width: 66.666%; }
    .col-md-70 { width: 70%; }
    .col-md-75 { width: 75%; }
    .col-md-80 { width: 80%; }
    .col-md-90 { width: 90%; }
    .col-md-100 { width: 100%; }

    .col-md-flex { flex: 1; }
    .col-md-auto { flex: 0 0 auto; }
}

/* 響應式 Column - 手機 (≤ 480px) */
@media screen and (max-width: 480px) {
    .col-sm-10 { width: 10%; }
    .col-sm-20 { width: 20%; }
    .col-sm-25 { width: 25%; }
    .col-sm-30 { width: 30%; }
    .col-sm-33 { width: 33.333%; }
    .col-sm-40 { width: 40%; }
    .col-sm-50 { width: 50%; }
    .col-sm-60 { width: 60%; }
    .col-sm-66 { width: 66.666%; }
    .col-sm-70 { width: 70%; }
    .col-sm-75 { width: 75%; }
    .col-sm-80 { width: 80%; }
    .col-sm-90 { width: 90%; }
    .col-sm-100 { width: 100%; }

    .col-sm-flex { flex: 1; }
    .col-sm-auto { flex: 0 0 auto; }
}

/* ========================================
   Display Utilities
   ======================================== */

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.flex-wrap{ flex-wrap: wrap; }

/* ========================================
   Spacing Utilities
   ======================================== */

/* Margin */
.m-0 { margin: 0 !important; }
.m-5 { margin: 5px !important; }
.m-10 { margin: 10px !important; }
.m-15 { margin: 15px !important; }
.m-20 { margin: 20px !important; }
.m-30 { margin: 30px !important; }
.m-40 { margin: 40px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: 5px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-40 { margin-top: 40px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-5 { margin-bottom: 5px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }

.ml-0 { margin-left: 0 !important; }
.ml-5 { margin-left: 5px !important; }
.ml-10 { margin-left: 10px !important; }
.ml-15 { margin-left: 15px !important; }
.ml-20 { margin-left: 20px !important; }
.ml-30 { margin-left: 30px !important; }
.ml-40 { margin-left: 40px !important; }
.ml-auto { margin-left: auto !important; }

.mr-0 { margin-right: 0 !important; }
.mr-5 { margin-right: 5px !important; }
.mr-10 { margin-right: 10px !important; }
.mr-15 { margin-right: 15px !important; }
.mr-20 { margin-right: 20px !important; }
.mr-30 { margin-right: 30px !important; }
.mr-40 { margin-right: 40px !important; }
.mr-auto { margin-right: auto !important; }

/* Padding */
.p-0 { padding: 0; }
.p-5 { padding: 5px; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

.pt-0 { padding-top: 0; }
.pt-5 { padding-top: 5px; }
.pt-10 { padding-top: 10px; }
.pt-15 { padding-top: 15px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }
.pt-40 { padding-top: 40px; }

.pb-0 { padding-bottom: 0; }
.pb-5 { padding-bottom: 5px; }
.pb-10 { padding-bottom: 10px; }
.pb-15 { padding-bottom: 15px; }
.pb-20 { padding-bottom: 20px; }
.pb-30 { padding-bottom: 30px; }
.pb-40 { padding-bottom: 40px; }

.pl-0 { padding-left: 0; }
.pl-5 { padding-left: 5px; }
.pl-10 { padding-left: 10px; }
.pl-15 { padding-left: 15px; }
.pl-20 { padding-left: 20px; }
.pl-30 { padding-left: 30px; }
.pl-40 { padding-left: 40px; }

.pr-0 { padding-right: 0; }
.pr-5 { padding-right: 5px; }
.pr-10 { padding-right: 10px; }
.pr-15 { padding-right: 15px; }
.pr-20 { padding-right: 20px; }
.pr-30 { padding-right: 30px; }
.pr-40 { padding-right: 40px; }

/* ========================================
   Text Utilities
   ======================================== */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-bold { font-weight: bold; }
.text-normal { font-weight: normal; }
.text-light { font-weight: 300; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* ========================================
   Float Utilities
   ======================================== */

.float-left { float: left; }
.float-right { float: right; }
.float-none { float: none; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   Width & Height Utilities
   ======================================== */

.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }

.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }

/* ========================================
   Position Utilities
   ======================================== */

.position-static { position: static; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* ========================================
   Gap Heights (Spacing)
   ======================================== */

.zero-height { height: 0; }
.gap-h0 { height: 0; }
.gap-h1 { height: 1px; }
.gap-h5 { height: 5px; }
.gap-h10 { height: 10px; }
.gap-h12 { height: 12px; }
.gap-h15 { height: 15px; }
.gap-h17 { height: 17px; }
.gap-h20 { height: 20px; }
.gap-h30 { height: 30px; }
.gap-h35 { height: 35px; }
.gap-h40 { height: 40px; }
.gap-h50 { height: 50px; }
.gap-h60 { height: 60px; }
.gap-h180 { height: 180px; }

/* Legacy gap classes (for backwards compatibility) */
.gap-10 { height: 10px; }
.gap-12 { height: 12px; }
.gap-15 { height: 15px; }
.gap-17 { height: 17px; }
.gap-20 { height: 20px; }
.gap-35 { height: 35px; }

/* ========================================
   Max Width Utilities
   ======================================== */

.max-w-77 { max-width: 77px !important; }
.max-w-97 { max-width: 97px !important; }
.max-w-237 { max-width: 237px !important; }
.max-w-250 { max-width: 250px !important; }
.max-w-257 { max-width: 257px !important; }
.max-w-325 { max-width: 325px !important; }
.max-w-345 { max-width: 345px !important; }
.max-w-365 { max-width: 365px !important; }
.max-w-577 { max-width: 577px !important; }
.max-w-597 { max-width: 597px !important; }
.max-w-617 { max-width: 617px !important; }
.max-w-634 { max-width: 634px !important; }
.max-w-654 { max-width: 654px !important; }
.max-w-662 { max-width: 662px !important; }
.max-w-682 { max-width: 682px !important; }
.max-w-689 { max-width: 689px !important; }
.max-w-694 { max-width: 694px !important; }
.max-w-709 { max-width: 709px !important; }
.max-w-714 { max-width: 714px !important; }
.max-w-730 { max-width: 730px !important; }
.max-w-740 { max-width: 740px !important; }
.max-w-749 { max-width: 749px !important; }
.max-w-750 { max-width: 750px !important; }
.max-w-752 { max-width: 752px !important; }
.max-w-760 { max-width: 760px !important; }
.max-w-765 { max-width: 765px !important; }
.max-w-769 { max-width: 769px !important; }
.max-w-770 { max-width: 770px !important; }
.max-w-771 { max-width: 771px !important; }
.max-w-772 { max-width: 772px !important; }
.max-w-780 { max-width: 780px !important; }
.max-w-782 { max-width: 782px !important; }
.max-w-785 { max-width: 785px !important; }
.max-w-791 { max-width: 791px !important; }
.max-w-800 { max-width: 800px !important; }
.max-w-802 { max-width: 802px !important; }
.max-w-820 { max-width: 820px !important; }
.max-w-822 { max-width: 822px !important; }
.max-w-950 { max-width: 950px !important; }
.max-w-1220 { max-width: 1220px !important; }

/* ========================================
   Image & Element Widths
   ======================================== */

.img-w-802 { width: 802px; }
.img-w-984 { width: 984px; }
.img-w-987 { width: 987px; }
.img-w-1200 { width: 1200px; }

.img-max-w-80 { max-width: 80px; }
.img-max-w-750 { max-width: 750px; }
.img-max-w-780 { max-width: 780px; }
.img-max-w-802 { max-width: 802px; }

.table-image-width { max-width: 1440px !important; }

/* ========================================
   Submenu Min-Width Utilities
   ======================================== */

.submenu-blk-mw-100 { min-width: 100%; }
.submenu-blk-mw-100a {
    min-width: 100%;
    line-height: 1.6;
}
.submenu-blk-mw-155 { min-width: 155%; }
.submenu-blk-mw-180 { min-width: 180%; }
.submenu-blk-mw-220 { min-width: 220%; }
.submenu-blk-mw-260 { min-width: 260%; }
.submenu-blk-mw-280 { min-width: 280%; }
.submenu-blk-mw-320 { min-width: 320%; }

/* ========================================
   Background Color Utilities
   ======================================== */

.bg-white { background-color: var(--color-white) !important; }
.bg-f2f2f2 { background-color: var(--color-gray-light) !important; }
.bg-eaf2f6 { background-color: #eaf2f6 !important; }
.bg-color-green { background-color: var(--color-bg-olive) !important; }
.bg-grey-padded {
    background-color: var(--color-gray-light);
    padding-top: var(--spacing-10);
    padding-bottom: var(--spacing-10);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto !important;
    margin-right: auto !important;
}
.bg-brown{ background-color: var(--color-bg-brown) !important;}
.bg-coffee{ background-color: var(--color-bg-coffee) !important;}

/* ========================================
   Text Color Utilities
   ======================================== */

.color-black { color: var(--color-pure-black) !important; }
.color-grey { color: var(--color-gray) !important; }
.color-green { color: var(--color-green) !important; }
.color-teal { color: var(--color-teal) !important; }
.color-red { color: var(--color-red) !important; }
.text-color-main { color: var(--title-color, --color-primary) !important; }
.text-color-green { color: var(--color-bg-olive) !important; }
.text-color-theme { color: var(--color-teal) !important; }
.title-black { color: var(--color-pure-black) !important; }
.title-black-bold {
    color: var(--color-pure-black) !important;
    font-weight: bold !important;
}

/* ========================================
   Font Size Utilities
   ======================================== */

.font-size-14 { font-size: var(--font-size-14) !important; }
.font-size-15 { font-size: var(--font-size-15) !important; }
.font-size-16 { font-size: var(--font-size-16) !important; }
.font-size-18 { font-size: var(--font-size-18) !important; }
.font-size-20 { font-size: var(--font-size-20) !important; }

/* ========================================
   Font Weight Utilities
   ======================================== */

.font-weight-bold { font-weight: var(--font-weight-bold); }
.font-weight-500 { font-weight: var(--font-weight-medium); }

/* ========================================
   Padding Utilities (Extended)
   ======================================== */

.pad-tb-10 {
    padding-top: var(--spacing-10);
    padding-bottom: var(--spacing-10);
}

.px-1 { padding-inline: var(--spacing-5); }
.px-2 { padding-inline: var(--spacing-10); }
.px-3 { padding-inline: var(--spacing-15); }
.px-4 { padding-inline: var(--spacing-20); }
.px-5 { padding-inline: var(--spacing-25); }

/* ========================================
   Margin Utilities (Extended)
   ======================================== */

.margin-bottom-10 { margin-bottom: var(--spacing-10) !important; }
.center-block {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========================================
   Border & Box Utilities
   ======================================== */

.dash-h1 { height: 1px; }
.dash-blue {
    border-bottom: 2px solid var(--color-blue);
    height: 2px;
}

.dotted-box-grey {
    border-style: dotted;
    border-width: 2px;
    border-color: var(--color-black);
    border-radius: var(--radius-large);
    padding-top: var(--spacing-20);
    padding-bottom: var(--spacing-20);
    margin-left: auto !important;
    margin-right: auto !important;
}

.info-box-gray {
    background-color: var(--color-gray-light);
    border-top: solid 1px var(--color-black);
}

.info-box {
    background-color: var(--color-gray-light);
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 160%;
}

/* ========================================
   Component-Specific Utilities
   ======================================== */

.news-title { line-height: 1.6em; }
.content-title-style {
    color: var(--color-primary);
    max-width: 1403px;
}

.main-content-style { max-width: 1420px; }

/* ========================================
   Interactive Elements
   ======================================== */

[data-link],
[data-toggle],
.top_navbar_home,
#go-top {
    cursor: pointer;
}

/* ========================================
   Mobile Menu
   ======================================== */

.mobile_menu_level2 {
    display: none;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    max-height: 0;
}

.mobile_menu_level2.open {
    display: block;
    max-height: 1000px;
}

.mmenu_toggle_ico.active {
    background-image: url(../../images/submenu_ico1.png);
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 380px center;
}

/* ========================================
   header
   ======================================== */

.content_main_title {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
    text-align: left;
    color: var(--title-color, #007460);
    font-weight: 400;
    margin: 40px 0px;
}

.badge-header{
   background-color: var(--color-bg-brown);
   color: var(--color-white);
   padding-top: 5px;
   padding-bottom: 5px;
   padding-left: 10px;
   margin-bottom: 10px;
   border-radius: 10px;
}

.risk-header {
    background-color: var(--header-color, #487B8A);
    color: var(--color-white);
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    margin-bottom: 10px;
}

/* ========================================
   csr list
   ======================================== */

.csr-list{
    margin-top: 30px;
}

.csr-item{
    padding: 10px;
    margin-bottom: 15px;
    gap: 20px;
    background-color: #f7f7f7;
    justify-content: space-between;
    align-items: center;
    display: flex;
}