﻿

/* #region *************************************（ 其他 ）**************************************/

/* =========================
   讓列高小一點
========================= */
.row-sm tr td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    vertical-align: middle !important;
}

/* ===================================================================
   Header 固定在上方，當 GridView 有 Scroll 時，即便滑動也不會不見
====================================================================== */
.header-fixed {
    position: sticky !important;
    top: 0 !important;
}

/* ===================================================================
   移除 table 本身的 overflow:hidden（或改成 visible）
====================================================================== */
.table-h-header-fixed {
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important; 
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: visible !important;
}

.table-h-header-fixed th,
.table-h-header-fixed td {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #dee2e6 !important;
  padding: 8px 12px;
}

/* 去掉最後一列下邊線 */
.table-h-header-fixed tbody tr:last-child td {
  border-bottom: none !important;
}

/* =========================
   特殊列 row-bisque
========================= */
tbody tr.row-bisque td {
    background-color:#ffefbc !important;
}
/* #endregion */

/* #region *************************************（ RecordStyle ）**************************************/

/* =========================
   表格整體
========================= */
.RecordStyle {
    border: 1px solid #cfb7f2 !important;
    color:#4a3c8c !important;
}

/* =========================
   資料列底色
========================= */
.RecordStyle tbody tr td {
    background-color: #ede8f6 !important;
}

/* =========================
   滑過列變色
========================= */
.RecordStyle tbody tr:hover td {
    background-color: #f3d9e9 !important;
}
/* #endregion */

/* #region *************************************（ LevelStyle ）**************************************/

/* =========================
   表格整體
========================= */
.LevelStyle {
    border: 1px solid #ffd28c !important;
    color: #b66a00 !important;
}

/* =========================
   資料列底色
========================= */
.LevelStyle tbody tr td {
    background-color: #fff4e0 !important;
}
/* #endregion */

/* #region *************************************（ aStyle ）**************************************/

/* =========================
   表格整體
========================= */
.aStyle {
    border: 1px solid #acb7c3 !important;
    color:#778da9 !important;
}

/* =========================
   資料列底色
========================= */
.aStyle tbody tr td {
    color:#808080 !important;
    background-color: rgba(224, 225, 221, 0.46) !important;
}

/* =========================
   滑過列變色
========================= */
.aStyle tbody tr:hover td {
    background-color: #e0e1dd !important;
}
/* #endregion */

/* #region *************************************（ UsualStyle ）**************************************/

/* =========================
   表格整體
========================= */
.UsualStyle {
    border: 1px solid #acb7c3 !important;
    color: black !important;
    border-collapse: collapse !important;
}

/* =========================
   資料列底色 (偶數)
========================= */
.UsualStyle tbody tr:nth-child(even) td {
    background-color: #ffffff !important;         
    color: black !important;                     
}

/* =========================
   資料列底色 (奇數)
========================= */
.UsualStyle tbody tr:nth-child(odd) td {
    background-color: rgba(224, 225, 221, 0.46) !important;
    color: black !important;                                
}

/* =========================
   滑過列變色
========================= */
.UsualStyle tbody tr:hover td {
    background-color: #c0c0ff !important;
}
/* #endregion */

/* #region *************************************（ row-hover-style ）**************************************/

/* =========================
   表格整體
========================= */
.row-hover-style {
    border: 1px solid #acb7c3 !important;
    color: black !important;
    border-collapse: collapse !important;
}

/* =========================
   資料列底色 (偶數)
========================= */
.row-hover-style tbody tr:nth-child(even) td {
    background-color: #ffffff !important;         
    color: black !important;                     
}

/* =========================
   資料列底色 (奇數)
========================= */
.row-hover-style tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
    color: black !important;                                
}

/* =========================
   滑過列變色
========================= */
.row-hover-style tbody tr:hover td {
    background-color: #b9c0da !important;
    color: #4a3c8c !important;
}
/* #endregion */

/* #region *************************************（ yellow-hover-style ）**************************************/

/* =========================
   表格整體
========================= */
.yellow-hover-style {
    border: 1px solid #dee2e6 !important;
    color: black !important;
    border-collapse: collapse !important;
}

/* =========================
   資料列底色 (偶數)
========================= */
.yellow-hover-style tbody tr:nth-child(even) td {
    background-color: white !important;         
    color: black !important;         
}

/* =========================
   資料列底色 (奇數)
========================= */
.yellow-hover-style tbody tr:nth-child(odd) td {
    background-color: white !important;
    color: black !important;                               
}

/* =========================
   滑過列變色
========================= */
.yellow-hover-style tbody tr:hover td {
    background-color: #ffffcc !important;
}
/* #endregion */

/* #region *************************************（ pink-hover-style ）**************************************/

/* =========================
   表格整體
========================= */
.pink-hover-style {
    border: 1px solid #dee2e6 !important;
    color: black !important;
    border-collapse: collapse !important;
}

/* =========================
   資料列底色 (偶數)
========================= */
.pink-hover-style tbody tr:nth-child(even) td {
    background-color: white;         
    color: black !important;         
}

/* =========================
   資料列底色 (奇數)
========================= */
.pink-hover-style tbody tr:nth-child(odd) td {
    background-color: white;
    color: black !important;                               
}

/* =========================
   滑過列變色
========================= */
.pink-hover-style tbody tr:hover td {
    background-color: #F3D9E9;
    color: #284775;
}
/* #endregion */

/* #region *************************************（ grey-white-row-style ）**************************************/

/* =========================
   表格整體
========================= */
.grey-white-row-style {
    border: 1px solid #e4e7e9 !important;
    color: black !important;
    border-collapse: collapse !important;
}

/* =========================
   資料列底色 (偶數)
========================= */
.grey-white-row-style tbody tr:nth-child(even) td {
    background-color: #f2f2f2 ;         
    color: black !important;                     
}

/* =========================
   資料列底色 (奇數)
========================= */
.grey-white-row-style tbody tr:nth-child(odd) td {
    background-color: #ffffff ;
    color: black !important;                                
}

/* =========================
   滑過列變色
========================= */
.grey-white-row-style tbody tr:hover td {
    background-color: #c0c0ff ;
}
/* #endregion */

/* #region *************************************（ white-grey-no-hover-style ）**************************************/

/* =========================
   表格整體
========================= */
.white-grey-no-hover-style {
    border: 1px solid #e4e7e9 !important;
    color: black !important;
    border-collapse: collapse !important;
}

/* =========================
   資料列底色 (偶數)
========================= */
.white-grey-no-hover-style tbody tr:nth-child(even) td {
    background-color: #f2f2f2;    
    color: black !important;               
}

/* =========================
   資料列底色 (奇數)
========================= */
.white-grey-no-hover-style tbody tr:nth-child(odd) td {   
    background-color: #ffffff;     
    color: black !important;                                      
}
/* #endregion */

/* #region *************************************（ white-grey-grey-hover-style ）**************************************/

/* =========================
   表格整體
========================= */
.white-grey-grey-hover-style {
    border: 1px solid #f8f9fa !important;
    color: black !important;
    border-collapse: collapse !important;
}

/* =========================
   資料列底色 (偶數)
========================= */
.white-grey-grey-hover-style tbody tr:nth-child(even) td {
    background-color: #ffffff;    
    color: black;               
}

/* =========================
   資料列底色 (奇數)
========================= */
.white-grey-grey-hover-style tbody tr:nth-child(odd) td {   
    background-color: #f8f9fa;     
    color: black;                                      
}

/* =========================
   滑過列變色
========================= */
.white-grey-grey-hover-style tbody tr:hover td {
    background-color: #c8d0d8;
    color: #284775;
}

/* =========================
   特殊狀況列 - row-bisque
========================= */
.white-grey-grey-hover-style tbody tr.row-bisque td {
    background-color: bisque !important;
}
/* #endregion */

/* #region *************************************（ emp-card ）**************************************/

/* =========================
   FW00011Z 主管個資查詢用
========================= */
.emp-card {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    font-family: "Segoe UI", sans-serif !important;
    margin-bottom: 24px !important;
}

.emp-card-header {
    background-color: #5d7b9d !important;
    color: #333 !important;
    padding: 4px 5px !important;
    font-size: 12pt !important;
    border-bottom: 2px solid #ffd800 !important;
}

.emp-card-body {
    width: 100% !important;
    border-collapse: collapse !important;
}

.emp-card-body td {
    padding: 10px 14px !important;
    vertical-align: middle !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.emp-card-body .title-cell {
    background-color: #f0f4ff !important;
    color: #334075 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.emp-card-body .detail-title-cell {
    background-color: #e0e6f0 !important;
    color: #334075 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.emp-card-body .data-cell {
    color: #333 !important;
    white-space: nowrap !important;
}

.emp-card-body tr:hover {
    background-color: #f9fbff !important;
}
/* #endregion */

/* #region *************************************（ Hover 設定 ）**************************************/

/* =========================
   紫色 row-hover
========================= */
.table.row-hover tbody tr:hover {
    background-color: #b9c0da !important;
    transition: background-color 0.3s ease !important;
}

.table.row-hover tbody tr:hover td {
    color: #4a3c8c !important;
}

/* =========================
   紫色 pink-hover
========================= */
.table.pink-hover tbody tr:hover {
    background-color: #F3D9E9 !important;
    transition: background-color 0.3s ease !important;
}

.table.pink-hover tbody tr:hover td {
    color: #284775 !important;
}

/* =========================
   灰色 usual-hover
========================= */
.table.usual-hover > tbody > tr:hover {
    background-color: #e9ecef !important;
    transition: background-color 0.3s ease !important;
}

.table.usual-hover > tbody > tr:hover > td {
    color: black !important;
}


/* =========================
   淺綠色 soft-green-hover
========================= */
.table.soft-green-hover > tbody > tr:hover {
    background-color: #cee397 !important;
    transition: background-color 0.3s ease !important;
}

.table.soft-green-hover > tbody > tr:hover > td {
    color: black !important;
}

/* =========================
   藍灰色 bluegrey-hover
========================= */
.table.bluegrey-hover tbody tr:hover {
    background-color: #cbd5e1 !important;
    transition: background-color 0.3s ease !important;
}

.table.bluegrey-hover tbody tr:hover td {
    color: #4b6786 !important;
}

/* =========================
   淺粉色 lightpink-hover
========================= */
.table.lightpink-hover tbody tr:hover {
    background-color: #fce7f3 !important;
    transition: background-color 0.3s ease !important;
}

.table.lightpink-hover tbody tr:hover td {
    color: #db2777 !important;   
}

/* =========================
   黃色 yellow-hover
========================= */
.yellow-hover tbody tr:hover td {
    color: #4b6786 !important;
    background-color: #ffefbc !important;
    transition: background-color 0.3s ease !important;
}
/* #endregion */




/* #region *************************************（ table-outline-border 只留外框去除內框 ）**************************************/

.table-outline-border {
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
}
.table-outline-border td, 
.table-outline-border th {
    border: none !important; 
}
/* #endregion */

/* #region *************************************（ table-inline-border 只留內框的底線 ）**************************************/

/*(只影響第一層，不影響子列)*/
.table-inline-border > tbody > tr > th,
.table-inline-border > tbody > tr > td {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #dee2e6 !important;
}
/* #endregion */

/* #region *************************************（ table-h 有最外框，水平內線 ）**************************************/

.table-h {
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important; 
  border-collapse: separate !important;
  border-spacing: 0 !important; 
  /*overflow: hidden;*/                         /*加了會讓右上角變圓角，但會讓手機板的 scrollbar 失效，只能二選一*/
}

/*(只影響第一層，不影響子列)*/
.table-h > tbody > tr > th,
.table-h > tbody > tr > td {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #dee2e6 !important;
  padding: 8px 12px;
  vertical-align: middle !important;
}

.table-h tbody tr:last-child td {
  border-bottom: none !important;
}
/* #endregion */




