﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

@media screen and (max-width:1194px) {
    .login-body {
        background-image: url(/images/login-bg.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}

@media screen and (min-width:1194px) {
    .login-body {
        background-image: url(/images/login-bg.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
}

.fc-direction-ltr .fc-toolbar > * > :not(:first-child) {
    margin-left: .40em !important;
}

.select2-container {
    z-index: 2000 !important;
}

.select2-container--default .select2-selection {
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    background-color: #fff;
    border: 1px solid #d9dee3;
    border-radius: .375rem;
    line-height: 1.53;
    padding: 0.4375rem 0.875rem;
    font-size: 0.9375rem;
}

.select2-container--disabled .select2-selection {
    background-color: #eceef1 !important;
    opacity: 1;
}

.select2-container .select2-selection--single {
    height: 36.55px !important;
    /*line-height: 1.53;*/
}

input:invalid {
    border: 1px solid red;
}

select:invalid {
    border: 1px solid red;
}

/*.required-warn {
    border: 1px solid red !important;*/
    /*background-color: #ffdddd !important;*/
/*}*/

select.select2:required + .select2-container .select2-selection--single {
    border: 1px solid red;
}

select.select2:required:valid + .select2-container .select2-selection--single {
    border-color: #d9dee3;
}

.star {
    visibility: hidden;
    font-size: 18px;
    cursor: pointer;
}

.star:before {
    font-family: "Font Awesome 5 Free";
    content: "\f006";
    position: relative;
    visibility: visible;
    font-weight: 900;
    color: gray;
}

.star:checked:before {
    content: "\f006";
    font-family: "Font Awesome 5 Free";
    position: relative;
    font-weight: 900;
    color: #ffc800;
}

/*.offcanvas, .offcanvas-xxl, .offcanvas-xl, .offcanvas-lg, .offcanvas-md, .offcanvas-sm {
    --bs-offcanvas-width: 430px !important;
}*/
/* 沒有 navbar 的版本 */
.adjustable-table {
    height: calc(100vh - 9.5rem - 35px);
    overflow-y: auto;
}
.adjustable-table.double-header {
    height: calc(100vh - 10.8rem - 35px); /* 視你的兩層實際高度調整 */
}
/* 有 navbar 的版本 */
.adjustable-table.with-navbar {
    height: calc(100vh - 15.2rem - 35px);
}

.bg-darkred {
    background-color: #8B0000 !important; /* 深紅色 (DarkRed) */
}

.bg-lightred {
    background-color: #f8d7da !important;
    color: #842029; /* 對應 Bootstrap danger 的文字色 */
}


thead th::after,
thead th::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
}

thead th {
position: sticky;
}


/* 基本四邊框 */
    thead th::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-bottom: none;
        border-left: none;
        pointer-events: none;
        box-sizing: border-box;
    }

/* 特定 class：不要左邊框 */
thead th.no-left-border::before {
    border-left: none;
}

/* 特定 class：不要右邊框 */
thead th.no-right-border::before {
    border-right: none;
}
thead th:last-child::before {
    border-right: none;
}
/*thead th::after {
    bottom: 0;
    border-bottom: 1px solid #ffffff;
}*/