body {
    padding: 0;
    margin: 0;
    font-size: 16px;
    overflow: hidden;
}
.flex-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.flex-btw {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn {
    padding: 8px 10px;
    border-radius: 5px;
    transition: .2s ease-in;
    cursor: pointer;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.default-btn:hover {
    background-color: #791f1f;
    color: #fff;
}
.primary-btn {
    background-color: #791f1f;
    color: #FFF;
}
.primary-btn:hover {
    background-color: #9f3838;
    color: #fff;
}
.primary-btn:active .btn_icon {
    fill: #333;
}

.btn_icon {
    fill: #fff;
    height: 1rem;
}
table 
{
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #f1f1f1;
}

.main_content table tbody {
    height: calc(100vh - 150px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
table thead tr, table tbody tr, table tfoot tr {
    box-sizing: border-box;
    table-layout: fixed;
    display: table;
    width: 100%;
}
thead tr th {
    position:sticky;
    top:0;
}
table .btn_icon {
    color: #791f1f;
    cursor: pointer;
    padding: 0 5px;
}
 /* 卷軸寬度 */
 ::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}

/* 卷軸顏色 */
::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.Acontainer {
    display: flex;
    max-width: none;
    padding: 0;
}
.sidebar {
    background: #791f1f;
    min-width: 140px;
    width: 20%;
    padding: 1%;
    /* height: 100%; */
    height: 100vh;
}
.sidebar_title {
    font-weight: 800;
    padding: 12px 6px;
    color: #FFF;
}
.sidebar hr {
    background-color:#FFF;
    height: 1px;
    border: none;
}
.sidebar ul {
    padding: 0;
}
.sidebar li {
    padding: 10px 20px;
    margin: 10px 0;
    color: #aaa;
    border-radius: 99rem;
    transition: .2s ease-in;
    cursor: pointer;
    list-style-type: none;
}
.sidebar li:hover {
    color: #fff;
    background-color: #bf0000;
}
.content {
    height: 100vh;
    width: 80%;
    width: -webkit-fill-available;
    flex-grow: 2;
}
.navbar {
    background: #eee;
    min-height: 70px;
    padding: 0 1.5rem;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 6px;
    border-bottom: 1px #e8e8e8 solid;
}
.navbar_title {
    font-weight: 800;
    color: #333333;
}
.btn:hover .navbar_icon {
    fill: #fff;
}
.btn:active .navbar_icon {
    fill: #333;
}
.navbar_icon {
    height: 1rem;
    transition: .2s ease-in;
}
.main_content {
    padding:10px;
    height: 100%;
}
.table_container {
    padding: 10px 0;
    /* height: calc(100vh - 150px);
    overflow: auto; */
    width: 100%;
    height: 80vh;
    overflow: auto;
}
.collapse {
    padding-left: 2rem;
}
@media (orientation: portrait) {
    .table_container {
        /* height: calc(100vh + 80px); */
        padding: 10px 0;
    }
}


/* login page */
.login_container {
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #791f1f;
    color: #FFF;
}
.bg_container {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../img/img1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .3;
    z-index: 1;
}
.signin-form {
    z-index: 1;
    background-color: #7f1f18d1;
    padding: 5%;
    border-radius: 5px;
}
.form-group {
    margin-bottom: 1rem;
}
.form-control {
    /* background: transparent;
    border: none;
    height: 50px;
    color: white !important;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s; */
}

.form-group ::placeholder { /* CSS 3 標準 */
    color: white;
  }
  
  .form-group ::-webkit-input-placeholder { /* Chrome, Safari */
    color: white;
  }
  
  .form-group :-ms-input-placeholder { /* IE 10+ */
    color: white;
  }
  
  .form-group ::-moz-placeholder { /* Firefox 19+ */
    color: white;
    opacity: 1;
  }

  .form-control:focus {
    background-color: rgba(255, 255, 255, 0.4)
  }

.login_btn {
    background-color: #ff9f54;
    font-weight: 800;
    width: 100%;
}

/* 404 page */
.error_bg {
    height: calc(100% - 70px);
    flex-direction:column;
    font-size: 1.6rem;
    gap: 3%;
}
.error_img {
    width: 10rem;
}

/* front page */
.front {
    overflow: auto;
    width: 960px;
    position: relative;
    margin: 0 auto;
}
.front-bg {
    background-image: url('../img/pc-bg.png');
    background-repeat: no-repeat;
    background-size: contain;
    height: 260px;
    width: 100%;
}
.front-title-bg {
    width: 845px;
    position: absolute;
    top: 245px;
    left: 58px;
    font-size: 1.5rem;
}
.front-title {
    background-color: #f1e282;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 6px;
    border-radius: 3px;
    padding: 2px 6px;
    width: 845px;
    position: absolute;
    top: 200px;
    left: 58px;
    font-size: 1.5rem;
}
.front-subtitle {
    color: #f2a300;
    padding: 0.1rem 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.content-body {
    background-color: #af1003;
    min-height: 100px;
    padding: 1.8rem 50px 20px 50px;
    /* display: block;
    position: relative;
    width: 100%; */
}

.flex-name {
    display: flex;
    flex-direction: row-reverse;
    border: 1px solid #222;
}
.flex-name-head {
    display: flex;
    flex-direction: column;
    word-break: break-all;
    min-width: 1.73rem;
    background-color: #fffbdb;
}

.flex-name-head div {
    display: flex;
    min-height: 15rem;
    padding: 8px 4px;
    border: 2px solid #222;
    font-weight: bolder;
    color: #000;
}
.flex-name-head:nth-child(even) {
    background-color: #fffef5;
}
.thead {
    font-weight: 800;
}
.content-body table {
    background-color: #fffbd5;
}
.content-body table tr:nth-child(even) {
    background-color: #fffef5;
}
.content-body table th, td {
    height: 45px;
}

.front-description-wrapper {
    padding-top: 5px;
}
.front-description {
    color: #ffe5b0;
    padding: 0.1rem 0;
    font-size: 1.3rem;
}

.front-footer {
    background-color: #af1003;
    padding-bottom: 20px;
}

@media screen and (max-width: 945px) {
    .front {
        width: 380px;
    }
    .front-bg {
        background-image: url('../img/sm-bg.png');
        width: 380px;
        height: 177px;
    }
    .front-title-bg {
        right: 10px;
        left: 10px;
        top: 165px;
    }
    .front-title {
        width: 360px;
        left: 10px;
        top: 120px;
        font-size: 1.3rem;
    }
    .front-subtitle {
        width: 360px;
        font-size: 0.9rem;
    }
    .content-body {
        padding: 1.2rem 10px 20px 10px;
    }
    .front-description {
        font-size: 0.9rem;
    }
}