html {
  font-size: 14px;
}

textarea {
    max-height: 120px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/*.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

html {
  position: relative;
  min-height: 100%;
}

/**************************************
   jquery-validation
 **************************************/
.input-validation-error {
   border: 1px solid #ff0000;
   background-color: #ff000021;
}

.input-validation-valid {
   border: 1px solid #00ff00;
   background-color: #00ff0021;
}

.field-validation-error {
   color: #ff0000;
   font-size: small;
}

.field-validation-valid {
   display: none;
}

.validation-summary-errors {
   font-weight: bold;
   color: #ff0000;
}

.validation-summary-valid {
   display: none;
}


/*******************************************************************************************************/
/* 自訂義                                                                                              */
/*******************************************************************************************************/
.divSubject {
   font-weight: bold;
   font-family: Microsoft JhengHei;
   font-size: 18px;
   padding-top: 3px;
   padding-bottom: 3px;
}
.divFrame {
   border: 1px solid #CCCCCC;
}
.divFrame999 {
   border: 1px solid #999999;
}
.divDisabled {
   pointer-events: none;
   opacity: 0.4;
}
.LoginBackground {
   background-image: url("../img/LoginBackground.png");
   background-size: cover;
   background-position: center;
}
.MainColor 
{
   color: #ad9484;
}
.main-sidebar 
{
   background-color: rgb(173 148 132) !important
}
.BFont 
{
   font-weight: bold;
}
.NoWarp
{
   overflow: hidden; 
   white-space: nowrap; 
}
.TextLeft 
{
   text-align: left; 
}
.TextCenter 
{
   text-align: center; 
}
.TextRight
{
   text-align: right; 
}
.aDelDisabled {
   pointer-events: none;
   background-color: #dc35454f;
}
.tdCustbank {
   padding: 5px;
   border: 1px solid #dee2e6;
}
.TitleGreen {
   font-family: Microsoft JhengHei;
   font-weight: bold;
   color: #28a745;
   padding: 5px 10px;
}

/* DataList Hover */

#tbGridView tr > td a, #tbGridView_wrapper tr > td a {
    display: inline-block; /* Ensure the element supports transformations */
    position: relative; /* Needed for scaling to work correctly */
    overflow: hidden; /* Ensure background effects don't overflow */
    text-decoration: none; /* Remove underline from links */
}

    #tbGridView tr > td a:hover, #tbGridView_wrapper tr > td a:hover {
        background-color: #44372052; /* Background color on hover */
        color: #fff; /* Text color on hover */
        transform: scale(1.3); /* Scale up slightly on hover */
    }

/* Bootstrap5 Model Popup */
.modelSubject {
   font-family: Microsoft JhengHei;
   padding: 10px 10px;
   font-weight: bold;
}
.modelContent {
   padding: 10px 10px;
}
.modelCommand {
   padding: 10px 10px;
}


/* Input Controller*/
.form-control
{
   display: inline-grid;
   width: 98%;
   height: calc(1.5rem + 2px);
   font-size: medium;
   box-shadow: none;
   /*border: 1px solid #ccc;*/
   border-radius: 3px;
   outline: none;
   padding: 3px;
   margin: 3px;
}
.form-control :focus 
{
   outline: 0;
   outline: none !important;
   outline-style: none;
   outline-color: transparent;
   -webkit-appearance: none;
}
.form-select {
   display: inline-grid;
   height: calc(1.5rem + 2px);
   font-size: medium;
   box-shadow: none;
   /*border: 1px solid #ccc;*/
   border-radius: 3px;
   outline: none;
   padding-left: 5px;
   padding: 0 0 0 3px;
   /*background-color: #fff;*/
   margin: 3px;
   /*background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e);*/
   /*webkit-appearance: none;*/
}
.form-select :focus {
   outline: 0;
   outline: none !important;
   outline-style: none;
   outline-color: transparent;
   -webkit-appearance: none;
}



.divTH
{
   left: 7px;
   align-items: baseline;
   display: flex;
}
.divTD {
   right: 7px;
   align-items: baseline;
   display: flex;
}
.divTR {
    left: 7px;
    right: 7px;
    align-items: baseline;
    display: flex;
}
.divRow1 
{
   padding: 1px 0px;
}

/* Input 提示字 樣式(顏色)*/
::placeholder {
   color: #CCCCCC;
}
.pull-left {
   float: left;
}
.pull-right {
   float: right;
}
.card 
{
   box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
   margin-bottom: 1rem;
   margin: 10px 0px;
}
.rowTopBotton1 
{
   padding: 1px;
}
.rowTopBotton5 {
   padding: 5px;
}
.rowTopBotton10 {
   padding: 10px;
}
/* th */
.thGray 
{
   background-color: #CCCCCC;
}
.thGraylight 
{
   background-color: #f2f2f2;
}
.thGrayGreen {
   background-color: #adb5b3;
}
.tbGrayPurple {
   background-color: #b3adb5;
}
.tbGrayBrown {
   background-color: #b7aba4;
}

.divGrid {
   padding: 10px 10px;
   overflow: auto;
}


/**********************************************************************************
*  覆寫 AdminLTE Css
**********************************************************************************/
[class*=sidebar-dark-] .nav-treeview > .nav-item > .nav-link {
   color: #dddddd;
}
[class*=sidebar-dark-] .nav-sidebar > .nav-item.menu-open > .nav-link, 
[class*=sidebar-dark-] .nav-sidebar > .nav-item:hover > .nav-link, 
[class*=sidebar-dark-] .nav-sidebar > .nav-item > .nav-link
{
   background-color: #44372052;
   color: #fff;
}
[class*=sidebar-dark-] .nav-treeview > .nav-item > .nav-link
{
   color: #543d11;
}
.sidebar {
   height: calc(100% -(3.5rem + 1px));
   overflow-x: hidden;
   overflow-y: initial;
   padding-bottom: 0;
   padding-left: .5rem;
   padding-right: .5rem;
   padding-top: 0;
   scrollbar-color: #8b7664 transparent;
   scrollbar-width: none;
}

/**********************************************************************************
*  覆寫 SweetAlert Css (黑色背景)
**********************************************************************************/
.swal-icon--success:before {
   border-radius: 120px 0 0 120px;
   top: -7px;
   left: -33px;
   -webkit-transform: rotate(-45deg);
   transform: rotate(-45deg);
   -webkit-transform-origin: 60px 60px;
   transform-origin: 60px 60px;
   background-color: rgba(0, 0, 0, 0.3);
}
.swal-icon--success:after,
.swal-icon--success:before {
   content: "";
   border-radius: 50%;
   position: absolute;
   width: 60px;
   height: 120px;
   background: #fff;
   -webkit-transform: rotate(45deg);
   transform: rotate(45deg);
   background-color: rgba(0, 0, 0, 0.3);
}
.swal-icon--success__ring {
   width: 80px;
   height: 80px;
   border: 4px solid hsl(98deg 55% 69%);
   border-radius: 50%;
   box-sizing: content-box;
   position: absolute;
   left: -4px;
   top: -4px;
   z-index: 2;
   /* background-color: rgb(0 0 0 / 0%); */
}
.swal-icon--success__hide-corners {
   width: 5px;
   height: 90px;
   background-color: #fff;
   padding: 1px;
   position: absolute;
   left: 28px;
   top: 8px;
   z-index: 1;
   -webkit-transform: rotate(-45deg);
   transform: rotate(-45deg);
   background-color: rgba(0, 0, 0, 0.3);
}

/**********************************************************************************
*  FileUpload
**********************************************************************************/
.file-drop-zone-title
{
   padding: 5px 5px;
}
.file-drop-zone 
{
   min-height: 10px
}

/* Input */
.Input_NoBorder
{
   border: 0px;
   outline: none;
   width: 98%;
   background-color: #00000000;
}
.Input_NoBorder:focus
{
   color: #3c8dbc;
   outline: none;
}
.Input_NoBorderR
{
   font-family: 'Microsoft JhengHei'; /* 微軟正黑體 */
   float: right;
   width: 100%;
   color: #3c8dbc;
   border-top: 0px;
   border-left: 0px;
   border-right: 0px;
   border-bottom: 0px;
   cursor: pointer;
   outline: none;
}
.Input_Underline
{
   font-family: 'Microsoft JhengHei'; /* 微軟正黑體 */
   float: right;
   width: 100%;
   color: #3c8dbc;
   border-top: 0px;
   border-left: 0px;
   border-right: 0px;
   border-bottom: 1px solid #CCCCCC;
   cursor: pointer;
   outline: none;
}
.Input_Underline:focus 
{
   color: #3c8dbc;
   outline: none;
}
/* DisplayFor */
.DisplayText
{
   color: #7A7A7A;
   height: 28px;
}
/**********************************************************************************
*  a Link to Button Style
**********************************************************************************/
.aLinkRed {
   color: #c72a2a;
   text-decoration: none;
}
.aLinkRed:hover 
{
   color: #fd4b4b;
   text-decoration: none;
}
.aLinkRed:active
{
   color: #fd4b4b;
   text-decoration: none;
}
.aLinkGreen 
{
   color: #158e00;
   text-decoration: none;
}
.aLinkGreen:hover 
{
   color: #49bb35;
   text-decoration: none;
}
.aLinkGreen:active 
{
   color: #49bb35;
   text-decoration: none;
}
.aLinkBlue 
{
   color: #428bca;
   text-decoration: none;
}
.aLinkBlue:hover
{
   color: #0000FF;
   text-decoration: none;
}
.aLinkBlue:active
{
   color: #0000FF;
   text-decoration: none;
}
.aLinkPurple 
{
   color: #9642ca;
   text-decoration: none;
}
.aLinkPurple:hover 
{
   color: #BB00BB;
   text-decoration: none;
}
.aLinkPurple:active
{
   color: #BB00BB;
   text-decoration: none;
}

/**************************************************************************** 
   Button
 ****************************************************************************/
.btn-Gray {
   background-color: #f4f4f4;
   color: #444;
   font-weight: bold;
   border-color: #777777;
   margin-right: 5px;
   margin-left: 5px;
   /*margin-top:   5px;
    margin-bottom:5px;*/
   outline: none;
}
.btn-Gray:hover,
.btn-Gray:focus {
   background-color: #D8D8D8;
   color: #444;
   outline: none;
}
.btn-Blue {
   background-color: #f4f4f4;
   border-color: #367fa9;
   color: #367fa9;
   font-weight: bold;
   margin-right: 5px;
   margin-left: 5px;
   /*margin-top:   5px;
    margin-bottom:5px;*/
   outline: none;
}
.btn-Blue:hover,
.btn-Blue:focus {
   background-color: #367fa9;
   color: #FFFFFF;
   outline: none;
}
.btn-Purple {
   background-color: #f4f4f4;
   border-color: #9642ca;
   color: #9642ca;
   font-weight: bold;
   margin-right: 5px;
   margin-left: 5px;
   /*margin-top:   5px;
    margin-bottom:5px;*/
   outline: none;
}
.btn-Purple:hover,
.btn-Purple:focus {
   background-color: #9642ca;
   color: #FFFFFF;
   outline: none;
}
.btn-Green {
   background-color: #f4f4f4;
   border-color: #008d4c;
   color: #008d4c;
   font-weight: bold;
   margin-right: 5px;
   margin-left: 5px;
   /*margin-top:   5px;
    margin-bottom:5px;*/
   outline: none;
}
.btn-Green:hover,
.btn-Green:focus {
   background-color: #008d4c;
   color: #FFFFFF;
   outline: none;
}
.btn-Red {
   background-color: #f4f4f4;
   border-color: #d33724;
   color: #d33724;
   font-weight: bold;
   margin-right: 5px;
   margin-left: 5px;
   /*margin-top:   5px;
    margin-bottom:5px;*/
   outline: none;
}
.btn-Red:hover,
.btn-Red:focus {
   background-color: #d33724;
   color: #FFFFFF;
   outline: none;
}
.btn-MsgCloase {
   background-color: #367fa9;
   color: #FFFFFF;
   border: 0px;
   font-weight: bold;
   width: 60px;
   outline: none;
}
.btn-MsgCloase:hover, 
.btn-MsgCloase:focus 
{ 
   background-color: #428bca; 
   outline: none; 
} 
 
/********************************************************************************** 
*  JQDataTable 覆寫 Css 
**********************************************************************************/
.table-bordered thead td, .table-bordered thead th 
{
   border-bottom-width: 0px; 
}

.table-bordered > :not(caption) > * 
{
   border-width: 0px 0;
}
.custom-table 
{ 
   font-size: 14px; 
   font-family: Microsoft JhengHei; 
   border-spacing: 0; 
} 
.custom-table-bordered
{
   border: 1px solid #f4f4f4; 
} 
/** custom-table > tr th td **/ 
.custom-table.dataTable td, 
.custom-table.dataTable th
{
   -webkit-box-sizing: content-box; 
   box-sizing: content-box; 
} 
.custom-table.dataTable td.dataTables_empty, 
.custom-table.dataTable th.dataTables_empty
{
   text-align: center; 
} 
.custom-table th 
{
   /*background-color: #ad9484;*/ 
   /*color: #FFFFFF;*/ 
} 
.custom-table th:hover 
{
   cursor: pointer; 
   /*color:#367fa9; */
   /*color: #ffd800;*/ 
}
.custom-table th, 
.custom-table td
{
   white-space: nowrap; 
} 
.custom-table > thead > tr > th,
.custom-table > tbody > tr > th,
.custom-table > tfoot > tr > th,
.custom-table > thead > tr > td,
.custom-table > tbody > tr > td,
.custom-table > tfoot > tr > td {
   padding-top: 1px;
   padding-bottom: 1px;
   padding-left: 5px;
   padding-right: 5px;
   cursor: pointer;
   height: 20px;
}

/** custom-table > select-checkbox **/
.custom-table.dataTable tbody td.select-checkbox:before,
.custom-table.dataTable tbody th.select-checkbox:before {
   content: ' ';
   margin-top: -5px;
   margin-left: -5px;
   border: 1px solid #3c8dbc;
   border-radius: 3px;
}

.custom-table.dataTable tbody td.select-checkbox:before,
.custom-table.dataTable tbody td.select-checkbox:after,
.custom-table.dataTable tbody th.select-checkbox:before,
.custom-table.dataTable tbody th.select-checkbox:after {
   display: block;
   position: absolute;
   top: 1.0em;
   left: 50%;
   width: 12px;
   height: 12px;
   box-sizing: border-box;
   color: #3c8dbc;
}

.custom-table.dataTable tr.selected td.select-checkbox:after,
.custom-table.dataTable tr.selected th.select-checkbox:after
{
   content: '\2714';
   margin-top: -11px;
   margin-left: -5px;
   text-align: center;
}
/** Sorting **/
.custom-table.dataTable thead .sorting
{
   background-image: url("../lib/DataTables/DataTables-1.10.18/images/sort_both.png");
}
.custom-table.dataTable thead .sorting_asc 
{
   background-image: url("../lib/DataTables/DataTables-1.10.18/images/sort_asc2.png");
   /*color: #ffd800;*/
}
.custom-table.dataTable thead .sorting_desc
{
   background-image: url("../lib/DataTables/DataTables-1.10.18/images/sort_desc2.png");
   /*color: #ffd800;*/
}
.custom-table.dataTable thead .sorting_asc_disabled
{
   background-image: url("../lib/DataTables/DataTables-1.10.18/images/sort_asc_disabled.png");
}
.custom-table.dataTable thead .sorting_desc_disabled
{
   background-image: url("../lib/DataTables/DataTables-1.10.18/images/sort_desc_disabled.png");
}
.custom-table.dataTable thead .sorting,
.custom-table.dataTable thead .sorting_asc,
.custom-table.dataTable thead .sorting_desc,
.custom-table.dataTable thead .sorting_asc_disabled,
.custom-table.dataTable thead .sorting_desc_disabled 
{
   background-repeat: no-repeat;
   background-position: center right;
}
.custom-table.dataTable thead .sorting,
.custom-table.dataTable thead .sorting_asc,
.custom-table.dataTable thead .sorting_desc
{
   cursor: pointer;
}
.custom-table.dataTable thead > tr > th.sorting_asc,
.custom-table.dataTable thead > tr > th.sorting_desc,
.custom-table.dataTable thead > tr > th.sorting,
.custom-table.dataTable thead > tr > td.sorting_asc,
.custom-table.dataTable thead > tr > td.sorting_desc,
.custom-table.dataTable thead > tr > td.sorting
{
   /*padding-right: 20px;*/ /* 暫時停用：會造成 TreeGrid > th 與 td 不對齊*/
}

.custom-table.dataTable tbody > tr > th,
.custom-table.dataTable tbody > tr > td
{
   /*padding-right: 20px;*/ /* 暫時停用：會造成 TreeGrid > th 與 td 不對齊*/
}

.custom-table.dataTable thead > tr > th,
.custom-table.dataTable thead > tr > td,
.custom-table.dataTable thead > tr > th:active,
.custom-table.dataTable thead > tr > td:active 
{
   outline: none;
}

.custom-table.table-bordered.dataTable th,
.custom-table.table-bordered.dataTable td
{
   border-left-width: 0;
}

div.dataTables_scrollHead table.dataTable
{
   margin-bottom: 0 !important;
   margin-top: 0 !important;
}
div.dataTables_scrollBody > table 
{
   border-top: none;
   margin-top: 0 !important;
   margin-bottom: 0 !important;
}
div.dataTables_scrollBody > table > thead .sorting:after,
div.dataTables_scrollBody > table > thead .sorting_asc:after,
div.dataTables_scrollBody > table > thead .sorting_desc:after
{
   display: none;
}
div.dataTables_scrollBody > table > tbody > tr:first-child > th,
div.dataTables_scrollBody > table > tbody > tr:first-child > td
{
   border-top: none;
}
div.dataTables_scrollFoot > .dataTables_scrollFootInner
{
   box-sizing: content-box;
}
div.dataTables_scrollFoot > .dataTables_scrollFootInner > table
{
   margin-top: 0 !important;
   border-top: none;
}
/*** wrapper ***/
div.dataTables_wrapper div.dataTables_length label {
   font-weight: normal;
   text-align: left;
   white-space: nowrap;
}
div.dataTables_wrapper div.dataTables_length select {
   width: 75px;
   display: inline-block;
}
div.dataTables_wrapper div.dataTables_filter {
   text-align: right;
}
div.dataTables_wrapper div.dataTables_filter label {
   font-weight: normal;
   white-space: nowrap;
   text-align: left;
}
div.dataTables_wrapper div.dataTables_filter input {
   margin-left: 0.5em; /*占版面 col-md-5 */
   display: inline-block;
   width: auto;
}
div.dataTables_wrapper div.dataTables_info {
   padding-top: 1px; /*Theard 與 Tbody 之間多餘一條線 8px */

   white-space: nowrap; 
   width: 50%;
   float: left;
}
div.dataTables_wrapper div.dataTables_paginate {
   margin: 0;
   text-align: right;
   padding-top: 5px;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
   margin: 2px 0;
   font-size: 12px;
   white-space: nowrap;
}

div.dataTables_wrapper div.dataTables_processing {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 200px;
   margin-left: -100px;
   margin-top: -26px;
   text-align: center;
   padding: 1em 0;
}
div.dataTables_wrapper > .row {
   display: contents;
}
.PagerInput {
   width: 30px;
}
.PagerInput:focus {
   color: #3c8dbc;
   border: 1px solid #428bca;
}
/*=====================================================*/
/*#region 【pagination】 */
.pagination {
   display: inline-block;
   padding-left: 0;
   /*margin: 20px 0;*/
   border-radius: 4px;
}
.pagination > li {
   display: inline;
}
.pagination > li > a,
.pagination > li > span {
   position: relative;
   float: left;
   padding: 6px 12px;
   margin-left: -1px;
   line-height: 1.42857143;
   color: #337ab7;
   text-decoration: none;
   background-color: #fff;
   border: 1px solid #ddd;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
   margin-left: 0;
   border-top-left-radius: 4px;
   border-bottom-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
   border-top-right-radius: 4px;
   border-bottom-right-radius: 4px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
   z-index: 2;
   color: #23527c;
   background-color: #eee;
   border-color: #ddd;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
   z-index: 3;
   color: #fff;
   cursor: default;
   background-color: #337ab7;
   border-color: #337ab7;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
   color: #777;
   cursor: not-allowed;
   background-color: #fff;
   border-color: #ddd;
}
.pagination-lg > li > a,
.pagination-lg > li > span {
   padding: 10px 16px;
   font-size: 18px;
   line-height: 1.3333333;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
   border-top-left-radius: 6px;
   border-bottom-left-radius: 6px;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
   border-top-right-radius: 6px;
   border-bottom-right-radius: 6px;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
   padding: 5px 10px;
   font-size: 12px;
   line-height: 1.5;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
   border-top-left-radius: 3px;
   border-bottom-left-radius: 3px;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
   border-top-right-radius: 3px;
   border-bottom-right-radius: 3px;
}

/*#endregion */
/*=====================================================*/
/*#region 【pager】 */
.pager {
   padding-left: 0;
   margin: 20px 0;
   text-align: center;
   list-style: none;
}
.pager li {
   display: inline;
}
.pager li > a,
.pager li > span {
   display: inline-block;
   padding: 5px 14px;
   background-color: #fff;
   border: 1px solid #ddd;
   border-radius: 15px;
}
.pager li > a:hover,
.pager li > a:focus {
   text-decoration: none;
   background-color: #eee;
}
.pager .next > a,
.pager .next > span {
   float: right;
}
.pager .previous > a,
.pager .previous > span {
   float: left;
}
.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
   color: #777;
   cursor: not-allowed;
   background-color: #fff;
}

/*#endregion */


































