@counter-style paren-decimal {
  system: extends decimal;
  prefix: "(";
  suffix: ") ";
}
:root {
    --primary-color: #2c698d;
    --primary-light: #3e8ebc;
    --secondary-color: #272643;
    --accent-color: #bae8e8;
    --light-color: #e3f6f5;
    --dark-color: #2c3e50;
    --warning-bg: #fef8e8;
    --success-bg: #e8f5e9;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --button-shadow: rgba(0, 0, 0, 0.15);
    --button-highlight: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.page-header {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 1.5rem 0;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--header-shadow);
    margin-bottom: 2rem;
}

.page-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tabs-container {
    position: relative;
    margin: 2rem auto;
    padding: 0 10px;
}

.nav-tabs-responsive {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding: 5px;
}

.nav-tabs-responsive .nav-item {
    flex: 1;
    white-space: nowrap;
    margin: 2px 5px;
}

.nav-tabs-responsive .nav-link {
    margin-right: 2px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    background: linear-gradient(to bottom, #fdfdfd, #dedede);
    box-shadow: 
        0 4px 6px var(--button-shadow),
        inset 0 1px 0 var(--button-highlight);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(0);
}

.nav-tabs-responsive .nav-link.active {
    background: linear-gradient(to bottom, #5d94b2, #1d5675);
    color: #fff;
    border-color: #1d5675;
    box-shadow: 
        0 2px 4px rgba(29, 86, 117, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(2px);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.nav-tabs-responsive .nav-link:not(.active):hover {
    background: linear-gradient(to bottom, #e9ecef, #dee2e6);
    transform: translateY(1px);
    box-shadow: 
        0 3px 4px var(--button-shadow),
        inset 0 1px 0 var(--button-highlight);
}

.nav-tabs-responsive .nav-link:active:not(.active) {
    transform: translateY(2px);
    box-shadow: 
        0 1px 2px var(--button-shadow),
        inset 0 1px 0 var(--button-highlight);
}

.nav-tabs-responsive .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background-color: rgb(151 151 151 / 10%);
    border-radius: 0 0 8px 8px;
    z-index: -1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.nav-tabs-responsive::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.nav-tabs-responsive {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.standard-row {
    background-color: #dbf1ff !important;
}

.assessment-row {
    background-color: #fff5dc !important;
}

.green-row {
    background-color: #e9fff6 !important;
}

.form-box {
    background-color: #f7f7f7;
    border-radius: 0.25rem;
    padding: 15px;
    margin-bottom: 20px;
}


.tab-content .table {
    margin-bottom: 0;
}

.tab-content .table>:not(:first-child) {
    border-top: none;
}

.tab-content .table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.tab-content .table thead {
    position: sticky;
    top: -1px;
    z-index: 1;
}

.tab-content .table th {
    background-color: var(--primary-color);
    color: #fff;
    vertical-align: middle;
}

.tab-content .table .standard-row,
.tab-content .table .assessment-row {
    border-color: #ffffff;
    border-width: 0px 1px;
}

.table-bordered>:not(caption)>* {
    border-color: #e8e8e8;
}

/**/
.tab-content .card-body {
    padding: 0 0 1rem;
    line-height: 185%;
}

/* 篆��� NA10 罔ｅ� */
.na10 {
    font-size: 14px;
    color: #666;
}

/* ���臂� Bootstrap Tooltip 罔ｅ� */
.tooltip-inner {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    padding: 10px;
}

/* 茯炊�雁��㊤ぇ絨� */
.tooltip .tooltip-arrow {
    width: 12px;
    /* �у�句��㊦��絲�墾�榊� */
    height: 12px;
    /* �у�句��㊦��蕭�綺��榊� */
}

.tooltip .tooltip-arrow::before {
    border-width: 8px;
    /* 茯炊�顔�����寂��у�句��㊦��絲���紊у� */
}

/* 茯炊�雁��㊦��篏�臀�����醐� */
.tooltip.bs-tooltip-top .tooltip-arrow {
    bottom: -6px;
    /* 茯炊�翫���岩�臀��筝����肴��� border-width �主��筝��� */
}

.tooltip.bs-tooltip-bottom .tooltip-arrow {
    top: -6px;
    /* 茯炊�翫���岩�臀� */
}

.tooltip.bs-tooltip-start .tooltip-arrow {
    right: -6px;
    /* 茯炊�贋梓綛割�臀� */
}

.tooltip.bs-tooltip-end .tooltip-arrow {
    left: -6px;
    /* 茯炊�贋梓綛割�臀� */
}

.tooltip.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #fff !important;
}

.tooltip.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #fff !important;
}

.tooltip.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,
.tooltip.bs-tooltip-left .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^=start] .tooltip-arrow::before,
.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #fff !important;
}


.text-start {
    background-color: rgba(255, 255, 255, 0.9);
}

.text-start h6 {
    border-bottom: 1px #868686 solid;
    padding-bottom: 5px;
    color: #224f68;
}

/* Add shadow indicator for scroll */
.tabs-container {
    border: none;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: var(--card-shadow);
    padding: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 2rem;
}

.tab-scroll-indicator-left,
.tab-scroll-indicator-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-scroll-indicator-left {
    left: 0;
    background: linear-gradient(to right, rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0));
}

.tab-scroll-indicator-right {
    right: 0;
    background: linear-gradient(to left, rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0));
}

.tab-scroll-indicator-visible {
    opacity: 1;
}

/**/

.tab-content .section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.tab-content .bg-secondary {
    background-color: var(--primary-color) !important;
    font-weight: 400;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 20px;
}

.tab-content .data-box,
.Select-box {
    flex: 1;
}

.tab-content .data-box {
    margin-right: 1rem;
}

.tab-content .data-box .input-group,
.tab-content .Select-box .form-select {
    min-width: 220px;
}

@media (min-width: 992px) {
    .message-area{
        flex:0 0 calc(100% - 750px);
    }

}
@media (max-width: 991px) {

    .tab-content .data-box .input-group,
    .tab-content .Select-box .form-select {
        min-width: 180px;
    }

    .section-head {
        margin-bottom: 10px;
    }

    .section-head-title {
/*        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
*/    }

    .section-head i {
        font-size: 27px !important;
        margin-right: 10px !important;
    }
}

@media (max-width: 575px) {

    .tab-content .data-box label,
    .tab-content .Select-box label {
        flex: 0 0 100px;
    }

    .tab-content .data-box,
    .tab-content .Select-box {
        flex: auto;
        display: flex;
        width: 100%;
    }

    .tab-content .data-box {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .table-responsive{
/*        max-height: none !important;*/
    }
}

@media (max-width: 375px) {
    .tab-content .data-box label,
    .tab-content .Select-box label {
        flex: auto;
    }
    .tab-content .data-box,
    .tab-content .Select-box {
        flex-direction: column;
    }
}

.tab-content .btn-outline-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.tab-content .btn-outline-secondary:hover {
    color: #fff;
    background-color: #2c698d;
    border-color: #2c698d;
    border-radius: 0 .25rem .25rem 0 !important;
}

.tab-content .btn-check:focus+.btn-outline-secondary,
.tab-content .btn-outline-secondary:focus {
    box-shadow: none;
}

.tab-content .form-control:disabled,
.tab-content .form-control[readonly] {
    background-color: #fafafa;
}

/* ���臂� Bootstrap-datepicker 罔ｅ� */
.tab-content .datepicker {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    font-size: 0.875rem;
}

.tab-content .datepicker table tr td.active,
.tab-content .datepicker table tr td.active:hover,
.tab-content .datepicker table tr td.active.disabled,
.tab-content .datepicker table tr td.active.disabled:hover {
    background-color: #4e9dc9 !important;
    background-image: none !important;
}

.tab-content .datepicker table tr td.today,
.tab-content .datepicker table tr td.today:hover,
.tab-content .datepicker table tr td.today.disabled,
.tab-content .datepicker table tr td.today.disabled:hover {
    background-color: #255e7c !important;
    background-image: none !important;
    color: #fff;
}

.tab-content .datepicker .datepicker-switch:hover,
.tab-content .datepicker .prev:hover,
.tab-content .datepicker .next:hover,
.tab-content .datepicker tfoot tr th:hover {
    background: #e9ecef;
}

footer {
    padding-top: 1rem;
    text-align: center;
    border-top: 1px #dcdcdc solid;
    margin-top: 3rem;
}

footer a {
    text-decoration: none;
    color: #055569;
}

footer .footer-link {
    margin-bottom: 1rem;
}

footer .footer-link a {
    letter-spacing: 1px;
}

footer p {
    font-size: 15px;
}
.tab-content .table th {
    background-color: #D3EBF5;
    color: #000;
    vertical-align: middle;
}
 
/*標準值*/
.standard-row {
    background-color: #F0D9D9 !important;
}
 
/*環評標準值*/
.assessment-row {
    background-color: #F0D9D9 !important;
}
 
/*整點*/
.green-row {
    background-color: #DAEDD4 !important;
}

.green-row .code2 {
    color: #0000ff;
}

.green-row .code2 .na10 {
    color: rgb(0 0 255 / 60%);
}
.green-row .code2 .cems-value , .na10{
    cursor: pointer;
}
thead tr:after,.tab-content .table .standard-row:after, .tab-content .table .assessment-row:after {
    content: '';
    left: 0;
    right: 0;
    position: absolute;
    bottom: -2px;
    background: #fff;
    height: 2px;
}

thead tr ,.tab-content .table .standard-row, .tab-content .table .assessment-row {
    position: relative;
    border-width:1px;
}
thead td,thead th{
    position: relative;
}
thead td:after,thead th:after{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -1px;
    background: #fff;
    width: 1px;
    z-index: 1;
}
[type="1"] {
  list-style: paren-decimal;
}