
@font-face {
  font-family: Sarabun;
  src: url('../fonts/Sarabun.woff2');
}

@font-face {
  font-family: SarabunLatin;
  src: url('../fonts/SarabunLatin.woff2');
}

@font-face {
  font-family: Roboto;
  src: url('../fonts/Roboto.woff2');
}

html, body{
  font-family: 'Sarabun', 'SarabunLatin', cursive;
}
:root {
    --primary-color: #4a90e2;
    --bg-color: #f4f7fa;
    --text-color: #333;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #e6f0ff;
}

.banner-login{
    background-image: linear-gradient(180deg, #FFFFFF 1%, #a8eaffAB 50%), url('../imgs/105302.jpg');
    /*background-color: #8950fc;*/
    background-size: cover;
}

.highcharts-title {  font-family: Sarabun, SarabunLatin !important; font-size:15px !important;  }


.datepicker table tr td.day {
    color:#5F5D5E;
}
.datepicker tbody tr > td.day.old {
    color: #D1D1D1;
}
.datepicker tbody tr > td.day.new {
    color: #D1D1D1;
}
.datepicker tbody tr > td.disabled {
    color: #D1D1D1;
} 
.datepicker tbody tr > td.disabled {
    color: #A5A5A5;
}
.fc-event{
    cursor: pointer;
}

.tbl-info-hide{
  display: none;
}
.tbl-info-show{
 display: table-row;
}
.cursor-pointer{
 cursor: pointer;
}

.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}
.sidebar-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}
.toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.toggle-btn:hover {
    color: var(--primary-color);
}
.sidebar .btn-link {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.sidebar .btn-link:hover{
    background-color: var(--sidebar-hover);
    color: var(--primary-color);
}
.sidebar .btn-link:hover > i {
    color: var(--primary-color);
}
.sidebar .btn-link i {
    min-width: 30px;
    font-size: 18px;
}
.sidebar .btn-link.active{
    background-color: var(--sidebar-hover);
    color: var(--primary-color);
}
.sidebar .btn-link.active i{
    color: var(--primary-color);
    transition: 0.2s;
}

#main {
    transition: margin-left .3s;
    margin-left: 250px;
    height: 100%;
    background: #003C71;
    background: linear-gradient(90deg,rgba(0, 60, 113, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
    background-size: 100% 45%;
    background-repeat: no-repeat;
}
#main #content{
    flex: 1 0 auto;
    padding: 20px;
}
#main #footer {
  background: #fff;
  color:#000;
  height: 70px;
  padding: 20px;
  flex-shrink: 0;
}
.sidebar.closed {
    width: 70px;
}
.sidebar.closed .sidebar-header .user-dt {
    display: none;
}
.sidebar.closed .btn-link span {
    display: none;
}
.sidebar.closed .logout {
    display: block;
}

.sidebar.closed ~ #main{
    margin-left: 70px;
}
.sidebar.closed ~ #footer {
    margin-left: 70px;
}

.sidebar.absolute.open {
    position: absolute;
}

.sidebar.absolute.open ~ #main{
    margin-left: 70px;
}

.sidebar.open .logout {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    #footer {
        text-align: center;
    }
    .sidebar .sidebar-header .user-dt {
        display: none;
    }
    .sidebar .btn-link span {
        display: none;
    }
    #main {
        margin-left: 70px;
    }
    .sidebar.open {
        width: 250px;
    }
    .sidebar.open .sidebar-header .user-dt {
        display: block;
    }
    .sidebar.open .btn-link span {
        display: inline;
    }
    .sidebar.open ~ #main {
        margin-left: 250px;
    }
}

.sidebar.closed .btn-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 10px;
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
}

.sidebar.closed .btn-link::after {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.sidebar.closed .btn-link:hover::after {
    opacity: 1;
}


.btn-xs {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.8rem !important;
    min-width: 70px !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

/* file upload button */
.file_upload::file-selector-button {
  border-radius: 4px;
  padding: 0 10px;
  height: 33px;
  cursor: pointer;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  margin-right: 16px;
  transition: background-color 200ms;
}

/* file upload button hover state */
.file_upload::file-selector-button:hover {
  background-color: #f3f4f6;
}

/* file upload button active state */
.file_upload::file-selector-button:active {
  background-color: #e5e7eb;
}


.fancybox-button {
    background-color: #f5363f;
    border-radius: 50%;
    margin-top:50px;
    margin-right:35px;
    color:#fff;
}

.icon-ds { width:50px; }