@charset "UTF-8";

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
        'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 10px;
    /* font-size: 0.925rem; */
    line-height: 1.75;
    min-height: 700px;
    background-color: #fff;
    scrollbar-face-color: #c4c4c4;
    scrollbar-3dlight-color: #fafafa;
    scrollbar-highlight-color: #fafafa;
    scrollbar-track-color: #fafafa;
    scrollbar-arrow-color: #c4c4c4;
    scrollbar-dark-shadow-color: #fafafa;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-button {
    height: calc(100% - 10px);
    width: 100%;
    background: transparent;
    border-radius: 8px;
}

::-webkit-scrollbar-track-piece {
    background: #ccc;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid slategrey;
}

::-webkit-scrollbar-track {
    box-shadow: transparent;
}

a {
    text-decoration: none !important;
    cursor: pointer;
}

.txt-align-l {
    text-align: left !important;
}

.txt-align-r {
    text-align: right !important;
}

.txt-align-c {
    text-align: center !important;
}

.txt-bold {
    font-weight: bold;
}

.txt-primary-color {
    color: #00b7c2 !important;
}

.MuiDialogContent-dividers span {
    color: #017c83ff !important;
}

h3 {
    color: #00b7c2 !important;
    font-weight: Bold;
}

.inLines {
    display: inline;
}

table {
    width: 100%;
}

tr th {
    color: #333 !important;
}

tr td {
    font-weight: normal !important;
}

.justTable-v tr {
    height: 50px;
}

.justTable thead tr th {
    background-color: #3f51b5;
    color: white !important;
}

.justTable-v thead tr th {
    padding: 4px;
    background-color: #3f51b5;
    color: white !important;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.justTable-v thead tr td {
    padding: 4px;
    text-align: right;
    border-bottom: 1px solid #ccc;
}

.justTable-v tbody tr th {
    /* background-color: #3f51b5;
    color: white !important; */
    padding: 4px;
    padding-right: 50px;
    text-align: left;
    border-bottom: 1px solid #ccc;
    white-space: nowrap;
}

.justTable-v tbody tr td {
    padding: 4px;
    text-align: right;
    border-bottom: 1px solid #ccc;
}

.bd-flex-end {
    display: flex;
    justify-content: flex-end;
}

.bd-flex-center {
    display: flex;
    justify-content: center;
}

.space {
    height: 24px;
    clear: both;
    display: block;
}

.mts-kTitle {
    white-space: normal !important;
}

.kez-tech-edited {
    top: 480px !important;
}

.kez-kChart {
    padding-bottom: 50px;
}

.note-div {
    min-height: 20px;
    padding: 19px;
    margin-top: 80px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.note-div > table > thead {
    text-align: left;
}

.note-div > table > tbody > tr > .title {
    vertical-align: baseline;
}

/*.note-div > table > tbody > tr > td {*/
/*    border-top: 1px solid #ddd;*/
/*    padding: 8px;*/
/*}*/

.note-div > table > thead > tr > th {
    border-bottom: 2px solid #ddd;
}

.table-scroll {
    overflow: auto;
    max-height: 650px;
    padding-top: 0px !important;
}

.table-sticky-header {
    top: 0;
    left: 0;
    z-index: 2;
    position: -webkit-sticky;
    position: sticky;
}

.warning {
    color: #dd2b0e;
    font-weight: bold;
}

/* MUIDataTable 完美修復方案 - 使用 sticky 定位解決所有問題 + 固定列功能 */

/* 1. 容器設置 - 控制滾動和高度 */
.MUIDataTable-responsiveBase-46 {
    overflow-x: auto !important;
    overflow-y: auto !important;
    position: relative !important;
    border-top: 3px solid rgb(66, 189, 216) !important;
}

/* 2. 表格基本設置 */
.MUIDataTable-tableRoot-45 {
    width: 100% !important;
    min-width: 1200px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-top: none !important;
}

/* 3. 表頭 sticky 定位 - 保持在頂部且與表體列對齊 */
.MUIDataTable-tableRoot-45 thead {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    background: white !important;
}

/* 4. 表頭行設置 */
.MUIDataTable-tableRoot-45 thead tr {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* 5. 表頭和表體單元格統一樣式 */
.MUIDataTable-tableRoot-45 th,
.MUIDataTable-tableRoot-45 td {
    padding: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: none !important;
}

/* 6. 僅固定"標的代碼"列（第2列）在左側 */
.MUIDataTable-tableRoot-45 th:nth-child(2),
.MUIDataTable-tableRoot-45 td:nth-child(2) {
    position: -webkit-sticky !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 50 !important;
}

/* 7. 表頭固定列需要更高的 z-index，並確保背景色一致 */
.MUIDataTable-tableRoot-45 thead th:nth-child(2) {
    z-index: 150 !important;
    background-color: rgb(255, 255, 255) !important;
}

/* 8. 表體固定列繼承父元素背景色（支持交替行色） */
.MUIDataTable-tableRoot-45 tbody td:nth-child(2) {
    background-color: inherit !important;
}

/* 8. "債券名稱"列寬度調整（不固定，允許換行） */
.MUIDataTable-tableRoot-45 th:nth-child(3),
.MUIDataTable-tableRoot-45 td:nth-child(3) {
    position: static !important;
    min-width: 120px !important;
    max-width: 120px !important;
    z-index: auto !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

/* 8.5 "配息月份"列允許換行 */
.MUIDataTable-tableRoot-45 th:nth-child(7),
.MUIDataTable-tableRoot-45 td:nth-child(7) {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* 9. 確保其他列也不被固定（包括申購列） */
.MUIDataTable-tableRoot-45 th:nth-child(1),
.MUIDataTable-tableRoot-45 td:nth-child(1),
.MUIDataTable-tableRoot-45 th:nth-child(n + 3),
.MUIDataTable-tableRoot-45 td:nth-child(n + 3) {
    position: static !important;
    z-index: auto !important;
}

/* 9. 美化滾動條 */
.MUIDataTable-responsiveBase-46::-webkit-scrollbar {
    width: 2px !important;
    height: 8px !important;
}

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    -webkit-animation: App-logo-spin infinite 20s linear;
            animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@-webkit-keyframes App-logo-spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes App-logo-spin {
  from {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

.show-hand {
    cursor:pointer;
}

.mts-kTitle {
  background-color: #fffdf9;
}

