/* 全域基礎樣式設定 */

.ir-container {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
}

.ir-header {
    border-left: 5px solid #1e3a8a;
    padding-left: 15px;
    margin-bottom: 30px;
}

.ir-header h1 {
    font-size: 24px;
    color: #1e3a8a;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.ir-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* 頁籤控制樣式 (Tabs) */
.ir-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    border-bottom: 2px solid #e2e8f0;
}

.ir-tabs li {
    padding: 12px 28px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s ease;
}

.ir-tabs li:hover {
    color: var(--green-color);
}

.ir-tabs li.active {
    color: var(--green-color);
    border-bottom: 2px solid var(--green-color);
    background-color: #f1f5f9;
    border-radius: 6px 6px 0 0;
}

/* 響應式表格容器 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    border-radius: 6px;
}

.ir-table thead tr {
    border: 1px solid #e2e8f0;
}

/* 表格核心樣式 */
.ir-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    white-space: nowrap;
    background-image: url(../img/home_aboutus_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* 防止數據不自然斷行 */
}

.ir-table th {
    color: var(--text-color);
    font-weight: 600;
    padding: 14px 12px;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.ir-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    color: var(--text-color);
}

tbody tr:hover td{
    background-color: #fff1d6
}

tbody tr:hover .category-cell {
    background-color: transparent;
}

/* 表格行結構高亮設計 */

/* 礦種分類直列樣式 */
.category-cell {
    font-weight: bold;
    color: #1e3a8a;
    text-align: center;
    vertical-align: middle;
}

/* 對齊設定 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* 小計、總計、全部總計特殊樣式 */
.subtotal-row {
    /* 淡淡的金黃色 */
    font-weight: 600;
}

.total-row td:first-child,
.subtotal-row td:first-child {
    font-style: italic;
}


.total-row {
    /* 淺灰色 */
    font-weight: bold;
}

.grand-total-row {
    background-color: #e2e8f0 !important;
    /* 較深灰色突顯 */
    font-weight: bold;
    color: var(--green-color);
}

.grand-total-row td {
    border-top: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
}

/* 下方專業合規附註區 */
.ir-footnote {
    padding: 18px 0;
    margin-top: 25px;
}

.ir-footnote h5 {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
}

.ir-footnote p {
    margin: 0;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
}

/* 頁籤隱藏與顯示動畫 */
.ir-tab-content {
    display: none;
}

.ir-tab-content.active {
    display: block;
    animation: fadeIn 0.35s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}