/* listview.css */

body,
html {
    color: #212529;
    --background-color: #FBFBFB;
    font-size: 12px;
}
button {
    outline: none;
    box-shadow: none;
}
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

body {
    --background-image: url(../img/menu_bg.png);
    background-repeat: repeat-y;
    background-position-x: -265px;
    --transition: all .3s;
}
.menu-active {
    --background-image: url(../img/menu_bg.png);
    background-repeat: repeat-y;
    background-position-x: 0px;
    --transition: all .3s;
}

.bold { font-weight: bold }
.font-size-1 { font-size: 14px; }
.font-size-2 { font-size: 16px; }
.font-size-3 { font-size: 18px; }
.font-size-4 { font-size: 20px; }
.hide { display: none; }
.hide-content { visibility: hidden; }
.desktop-hidden { display: none !important; }
.no-padding { padding: 0 !important; }
.no-margin { margin: 0 !important; }
.btn { border-radius: 0 !important; }
.btn-hkfyg { color:#fff !important;background-color:#2998C2;border-color:#2998C2; }
.btn-hkfyg:hover { color:#fff;background-color:#de661d;border-color:#de661d; }
.btn-hkfyg:focus,
.btn-memo-action.focus { box-shadow:0 0 0 .2rem rgba(237,111,34,0.5); }
.btn-hkfyg.disabled,
.btn-hkfyg:disabled { color:#fff; background-color:#2998C2; border-color:#2998C2; }
.btn-hkfyg:not(:disabled):not(.disabled):active,
.btn-hkfyg:not(:disabled):not(.disabled).active,
.show > .btn-hkfyg.dropdown-toggle { color:#fff; background-color:#2998C2; }
.btn-hkfyg:not(:disabled):not(.disabled):active:focus,
.btn-hkfyg:not(:disabled):not(.disabled).active:focus,
.show > .btn-hkfyg.dropdown-toggle:focus { box-shadow:0 0 0 .2rem rgba(237,111,34,0.5) }
.btn-gray {
    background: transparent;
    color: #797979 !important;
    font-weight: bold;
    border: 1px solid #797979;
}
.btn-gray:hover,
.btn-gray:active {
    border-color: #2998C2;
    color: #2998C2 !important;
}

.card {
    border: none !important;
    padding: 12px 15px;
    border-radius: 5px !important;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(250, 215, 160, 0.2);
}
.table-striped tbody tr {
    border-top: 1px solid #E7E7E7;
}
.table-hover tbody tr:hover {
    --color: #085bb9;
    color: unset;
    background: #ffefe1;
}
.card-table {
    margin: 0;
    color: #A0A7B4;
    border-collapse: collapse !important;
}
.card-table:not(.clear-header) thead tr {
    /* color: #212529; */
    --border-left: 7px solid #2998C2;
    background-color: #F8F8F8;
    border-radius: 6px;
    color: #A0A7B4;
    font-size: 15px;
}
.card-table:not(.clear-header) thead th {
    padding: 8px 7px;
}
.card-table th,
.card-table td {
    position: relative;
    white-space: nowrap !important;
    border: none !important;
    min-height: 28px;
}
.card-table td a {
    color: #A0A7B4 !important;
}
.card-table th::before,
.card-table td::before {
    display: none;
}
.card-table .btn-group i {
    font-size: 16px;
}
.table-no-data {
    text-align: center;
    background-color: transparent !important;
    border-top: none !important;
    margin: 0 !important;
}
.table-no-data:hover {
    color: inherit !important;
    background-color: transparent !important;
}
.card-table-footer .dataTables_info,
.card-table-footer .dataTables_paginate {
    margin-top: 15px;
}
.card-table-footer .pagination {
    justify-content: flex-end;
}
.info-box {
    color: #8a8a8a;
}
.info-box .info-label {
    font-weight: bold;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.info-box .info-value {
    color: #2998C2;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.info-box .info-value input {
    border-color: #2998C2;
}
.info-box .info-value .clickable::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    content: '\f0a7';
    font-size: 14px;
    margin-right: 5px;
}

.border-box-1 {
    background: #FFFFFF;
    border: 2px solid #D9E4F9;
    border-radius: 10px;
    padding: 5px 10px 5px 10px;
    height: 47px;
    align-items: center;
}

.form-label-1 {
    font-size: 15px;
    color: #A0A7B4;
}

.color-1 {
    color: #A0A7B4;
}

/* header */
#Header {
    --background-color: white;
    position: relative;
    z-index: 1000;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.25);
    height: 64px;
}
#Header nav {
    --padding: 8px 5px;
}
#Header .container-fluid > div{
    flex: 1;
}
#Header button {
    padding: 0;
}
#Header .dropdown-toggle::after {
    margin-right: 1rem;
}
#logo span {
    --margin-left: 10px;
    max-width: 300px;
    display: flex;
    align-items: center;
}
#logo {
    --width: 265px;
    --max-width: 265px;
    --background: #F4F7FD;
    height: 64px;
    --padding-right: 32px;
}
#logo .image-logo {
    /*
    margin-right: 10px;
    max-width: 40px;
    */
}
#logo .text-logo {
    max-width: 100%;
    max-height: 25px;
    margin: 5px 0;
}
#language {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
#language ul {
    margin: 0;
}
#userInfo {
    display: flex;
    --min-width: 276px;
}
#userInfo .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10px;
}

.user-name {
    font-size: 18px;
    color: #4A4A4A;
    letter-spacing: 0;
    text-align: justify;    
}
.user-detail {
    font-size: 13px;
    color: #9B9B9B;
    letter-spacing: 0;    
    text-align: justify;
}

.dropdown-toggle::after {
    content: url('../img/v2/more.png');
    border: 0;
    vertical-align: -0.5em;
}

/* header end */

#Content {
    overflow: auto;
    transition: all .3s;
    padding: 15px;
    width: 100%;
}
body.menu-init #Content {
    transition: none !important;
}

#Footer {
    /*padding: 5px;*/
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    /* overflow: hidden; */
}

#staffCard {
    color: white;
    background-color: #2998C2;
    font-weight: bold;
}
#staffCard #qr {
    max-width: 100px;
}
#staffCard.home-page-top {
    margin-bottom: 20px;
}

.box {
    padding: 10px;
}

.page-title {
    flex: 1;
    margin-bottom: 20px;
}
.page-title,
.page-title a,
.page-title span {
    font-weight: bold;
    color: #212529;
}
.page-title > * {
    position: relative;
    margin-left: 20px;
}
.page-title > *::before {
    content: "\f105";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    position: absolute;
    left: -16px;
}
.page-title > *:nth-child(1)  {
    margin-left: 0;
}
.page-title > *:nth-child(1)::before  {
    content: none;
}

.nav-item {
    padding: 0 0 10 10;
}

a.nav-link {
    white-space: nowrap;
    font-size: 15px;
    color: #FFFFFF;
    padding-top: 10px;
    padding-bottom: 10px;
    --padding-left: 25px;
    transition: all .3s;
    text-align: center;
}
body.menu-active a.nav-link {
    text-align: left;
}

.nav-link[data-toggle].collapsed:after {
    content: "▾";
}
.nav-link[data-toggle]:not(.collapsed):after {
    content: "▴";
}
.nav-link[data-toggle="tab"]:after {
    content: "" !important;
}
.nav-link.active {
    background: #C0DDF6;
    font-weight: bold;
    border-radius: 0px 44px 44px 0px;
    font-size: 15px;
    color: #30468E;
    --padding-left: 9px;
    transition: all .3s;
}

.asc span:after {
    content: "▴";
}
.desc span:after {
    content: "▾";
}

.sysname {
    font-weight: bold;
    font-size: 16px;
    color: #4A4A4A;
    letter-spacing: 0.19px;
}

.greeting {
    font-size: 34px;
    color: #4A4A4A;
    letter-spacing: 0;    
    padding-left: 45px;
}

.title-bar {
    height: 35px;
    line-height: 35px;
}

.title-bar a {
    color: #212529;
}

.title-bar a:hover {
    color: #212529;
}

.title-bar span {
    font-weight: bold;
}

.info-bar {
    display: block;
    border-left: 7px solid #2998C2;
    background-color: #F5F5F5;
    padding: 8px 20px;
    color: #5a5a5a;
    margin-bottom: 20px;
}
.info-bar.on-top {
    margin-top: 0;
}
.info-bar span {
    font-weight: bold;
}

.info-bar a {
    color: gray;
}

.info-bar-today {
    display: flex;
    align-items: center;
    justify-content: start;
    --background-color: #F5F5F5;
    padding: 8px 20px;
    font-size: 21px;
    color: #4A4A4A;
    letter-spacing: -0.3px;
    --margin-bottom: 12px;
}

.date-today {
    font-size: 15px;
    line-height: 18px;
    margin-left: 12px;
}

.info-bar-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    --background-color: #F5F5F5;
    padding: 8px 20px;
    font-size: 21px;
    color: #4A4A4A;
    letter-spacing: -0.3px;
    --margin-bottom: 12px;
}
.info-bar-v2.on-top {
    margin-top: 0;
}
.info-bar-v2 span {
    --font-weight: bold;
}

.info-bar-v2 a {
    color: gray;
}

.box-hello {
    padding-left: 20px; 
    font-style: normal;
    font-weight: bold;
    font-size: 34px;
    line-height: 41px;
    text-align: justify;
    color: #0E0F0F;
}

.box-today {
    padding-left: 20px; 
    padding-right: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#btn-add-folder {
    width: 204px; height: 76px; line-height: 76px; background: #0049D7;border: 1px solid #0049D7; border-radius: 10px;
}

#btn-add-folder span {
    font-size: 17px; color: #FFFFFF; font-weight: bold; padding-left: 10px;
}

.space {
    width: 12px;
}
.weather-box {
    display: flex;
    justify-content: center;
    align-items: center;
    --width: 32%;
    --min-width: 152px;
    height: 99px;
    background: #3B64AE;
    border-radius: 15px;
    /* padding-left: 35px;
    padding-right: 35px; */
    color: white;
    flex-wrap: wrap;
    overflow: hidden;
    flex: 1;
}

.weather-box .label {
    font-size: 15px;
}

.weather-box .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.weather-box #degree {
    font-size: 32px;
}

#imgWeather {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
}

.signin-box {
    display: flex;
    justify-content: center;
    align-items: center;

    --width: 32%;
    --min-width: 152px;
    height: 99px;
    background: #47C5E3;
    border-radius: 12px;
    color: white;
    font-size: 24px;
    flex: 1;
}
.signin-box.cansignin {
    font-size: 22px;
    background: #30468E;
}

.signin-box .label {
    font-size: 15px;
}

.signin-box a {
    color: white;
    font-size: 22px;
}

.signout-box {
    display: flex;
    justify-content: center;
    align-items: center;

    --width: 32%;
    --min-width: 152px;
    height: 99px;
    background: #77B3EA;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    flex: 1;
}

.signout-box .label {
    font-size: 15px;
}

.signout-box.inactive {
    background: #858C94;
    font-size: 22px;
}

.signout-box a {
    color: white;
    font-size: 22px;
}

#signInTime, #signOutTime {
    font-size: 32px;
}
#signInAPM, #signOutAPM {
    font-size: 15px;
    padding-left: 5px;
}

.box-v2 {
    background: #F4F7FD;
    padding: 15px;
    border-radius: 15px;
}

.list-table td:last-child {
    width: 100%;
}

.list-table th:last-child {
    width: 100%;
}

.attendance-button-bar {
    justify-content: flex-end !important;
}

.home-button-bar {
    display: flex;
    justify-content: space-between;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 20px;
    overflow: auto;
}
.home-btn {
    max-width: 170px;
    flex: 1 1 auto;
    padding: 0 10px;
}
.home-btn button:hover {
    /* background: #e46a1f !important; */
    background: #fff5ed !important;
    color: #2998C2;
    border: 1px solid #2998C2;
}
.home-btn button {
    color: white;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: nowrap;
    position: relative;
    border-radius: .3rem !important;
}
.home-btn i {
    font-size: 20px;
}

.btn-group.btn-space {
    flex-wrap: wrap;
    margin: -4px -7px;
}
.btn-group.btn-space .btn {
    margin: 4px 7px !important;
}
.btn-group.btn-space .btn {
    margin: 0;
}
.btn-group.btn-space .btn:not(:first-child) {
    margin-left: 15px;
}

.external-links-box {

}
.external-links-title {
    margin-bottom: 20px;
}
.external-links-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 20px;
}
.external-links-box li {
    position: relative;
    cursor: pointer;
}
.external-links-box li,
.external-links-box li a,
.external-links-box li span {
    color: #656565;
}
.external-links-box .info-bar:after {
    content: "\f105";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translate(0, -50%);
}
.external-links-box li:last-child {
    margin-bottom: 0;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
  
    > .col,
    > [class*="col-"] {
      padding-right: 0;
      padding-left: 0;
    }
  }


/* Bootstrap modal */
.modal-content {
    border-radius: 0px;
    border: none
}
.modal-header {
    border: none;
    border-radius: 0px;
    border-left: 7px solid #2998C2;
    background-color: #F5F5F5;
    color: #5a5a5a;
    padding: 10px 15px 10px 8px;
}
.modal-header button {
    outline: none !important;
}
.modal-body {
    padding: 10px 15px;
}
.modal-footer {
    padding: 10px 15px;
    border: none;
}
/* Bootstrap modal end */

/* lib summernote editor style */
.note-editor.card {
    padding: 0 !important;
}
/* lib summernote editor end */

/* lib JQuery Datatable style */
.dataTables_filter label {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1rem;
}
.dataTables_filter label input {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    margin: 0 !important;
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
@media screen and (max-width: 767px) {
    .dataTables_paginate .pagination {
        justify-content: center !important;
    }
}
/* lib JQuery Datatable end */

/* lib FullCalendar style */
.fc .fc-header-toolbar h2 {
    font-size: 16px;
    color: #5a5a5a;
}
.fc .fc-toolbar { flex-wrap: wrap; }
.fc .fc-toolbar > * > :not(:first-child) { margin-left: 10px !important; }
.fc .fc-toolbar > * { flex: 1; }
.fc .fc-toolbar .fc-center { text-align: center; }
.fc .fc-toolbar .fc-right { text-align: right; }
.fc .fc-button-group > button { margin-right: 10px; }
.fc .fc-button-group > button:last-child { margin-right: 0; }
.fc .fc-button {
    color: #797979 !important;
    font-weight: bold;
    border: 1px solid #797979 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.fc .fc-button:hover,
.fc .fc-button:active {
    cursor: pointer;
    color: #2998C2 !important;
    border-color: #2998C2 !important;
}
.fc .fc-button[disabled],
.fc .fc-button-active {
    opacity: 1;
    color: #fff !important;
    border-color: #2998C2 !important;
    background: #2998C2 !important;
}
.fc .fc-button[disabled]:hover,
.fc .fc-button[disabled]:active,
.fc .fc-button-active:hover,
.fc .fc-button-active:active {
    color: #fff !important;
    background-color: #de661d !important;
    border-color:#de661d !important;
}
.fc .fc-button[aria-label="prev"],
.fc .fc-button[aria-label="next"] {
    border: none !important;
}
.fc .fc-head td {
    background: #eaeaea;
    color: #5a5a5a;
    padding: 5px 0;
}
.fc-scroller {
    overflow: hidden !important;
    height: auto !important;
}
.fc .fc-day-top {
    text-align: center;
    padding-top: 5px;
}
.fc .fc-today {
    color: #2998C2;
    font-weight: bold;
    text-decoration: underline;
}
.fc .fc-day-top.fc-past:not(.fc-other-month),
.fc .fc-day-top.fc-future:not(.fc-other-month) {
    color: #2998C2;
}
.fc .fc-past.fc-other-month,
.fc .fc-future.fc-other-month {
    background: #f7f7f7;
    color: #8c8c8c;
    opacity: 1;
}
.fc .fc-day-number { float: none !important; }
.fc .fc-event {
    margin: 3px 3px 0 3px !important;
    padding: 2px 5px !important;
    color: #fff !important;
}
.fc .fc-more {
    display: block;
    background-color: #797979;
    border-radius: 3px;
    margin: 3px 3px 0 3px;
    padding: 2px 5px;
    color: #fff !important;
}
@media screen and (max-width: 767px) {
    .fc-toolbar .fc-center {
        flex: 1 0 100%;
        order: -1;
        margin-bottom: 1rem;
    }
}
/* lib FullCalendar end */

@media screen and (max-width: 767px) {
    .textarea { height: 300px !important; max-height: 300px !important; }

    .mobile-no-padding { padding: 0 !important; }
    .mobile-no-padding-left { padding-left: 0 !important; }
    .mobile-no-padding-right { padding-right: 0 !important; }
    .mobile-no-padding-top { padding-top: 0 !important; }
    .mobile-no-padding-bottom { padding-bottom: 0 !important; }

    .mobile-no-margin { margin: 0 !important; }
    .mobile-no-margin-left { margin-left: 0 !important; }
    .mobile-no-margin-right { margin-right: 0 !important; }
    .mobile-no-margin-top { margin-top: 0 !important; }
    .mobile-no-margin-bottom { margin-bottom: 0 !important; }

    .desktop-hidden { display: flex !important; }
    .mobile-hidden {  display: none !important; }
    .flex-mobile-full-width { flex-wrap: wrap; }
    .flex-mobile-full-width > * { width: 100%; flex: 1 1 100%; }

    #Header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #F4F7FD;
        height: 64px;
    }
    #language {
        bottom: 50%;
        transform: translate(0, 50%);
    }
    #Header .container-fluid > div:last-child {
        --flex: 0;
        margin-left: 8px;
        margin-right: 8px;
    }
    #Header .dropdown-toggle::after {
        display: none;
    }
    #Content {
        margin-top: 64px;
    }
    #logo {
        height: 64px;
        --width: 70px;
        --max-width: 70px;
        background: unset;
        padding-right: unset;
        margin-left: 25px;
    }
    
    body > .container-fluid {
        padding-top: 54px;
    }

    .card.card-mobile-remove {
        padding: 0;
        border-radius: 5px !important;
        box-shadow: none;
        background: transparent;
    }

    .card-table {
        display: block;
        table-layout: fixed;
        padding: 0;
        background: transparent;
        box-shadow: none;
        padding: 3px;
    }
    .card-table .mobile-header {
        order: -1;
        background: #2998C2;
        min-height: 34px;
        margin-bottom: 5px;
        padding: 8px 15px !important;
        padding-left: calc(50% + 7px) !important;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    .card-table .mobile-header,
    .card-table .mobile-header a,
    .card-table .mobile-header i {
        color: #fff !important;
    }
    .card-table .mobile-header::before {
        padding: 8px 7px 8px 15px;
    }
    .card-table thead,
    .card-table tbody {
        display: block;
    }
    .card-table thead:not([data-header-function]) {
        display: none;
    }
    .card-table thead tr {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .card-table th:not(.function) {
        display: none;
    }
    .card-table tr {
        display: flex;
        flex-wrap: wrap;
        border-top: none !important;
        padding-bottom: 5px;
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
        border-radius: .25rem;
        margin-bottom: 20px;
    }
    .card-table thead tr th {
        width: 100%;
        display: flex;
        white-space: initial !important;
        word-break: break-word;
        padding: 5px 15px !important;
        padding-left: calc(50% + 3px) !important;
    }
    .card-table td {
        width: 100%;
        display: flex;
        white-space: initial !important;
        word-break: break-word;
        padding: 5px 15px !important;
        padding-left: calc(50% + 7px) !important;
    }
    .card-table th::before,
    .card-table td::before {
        display: block;
        padding: 5px 7px 5px 15px;
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        text-align: left;
    }
    .table-no-data {
        color: #5a5a5a;
        background-color: #F5F5F5 !important;
        text-align: center;
        padding: 10px 0 !important;
        box-shadow: none !important;
    }
    .table-no-data:hover {
        color: #5a5a5a !important;
        background-color: #F5F5F5 !important;
    }
    .table-no-data td::before {
        content: none !important;
    }
    .table-no-data td {
        justify-content: center;
        padding: 5px 15px !important;
    }
    .card-table-footer .dataTables_info {
        text-align: center;
    }

    .table-header-control label {
        margin-bottom: .25rem;
    }

    .list-top {
      position: absolute;
      /*equal to nav height, use JS to calculate nav height in case you don't explicitly define it in your CSS*/
      top: 70px;
      left: 0;
      right: 0;
      transform: translateX(-100%);
      margin-left: 0;
      padding: 1rem;
      transition: transform 0.3s;
    }

    .nav-top.is-active .list-top {
      transform: none;
    }

    .list-top li {
      flex-grow: 1;
    }

    #Footer {
        display: none;
    }

    #userInfo {
        min-width: unset;
    }
    #userInfo .info {
        display: none;
    }

    .btn-res {
        min-width: 40% !important;
        height: 50px !important;
        font-size: 14px;
        width: 100% !important;
    }

    .home-btn button {
        margin-bottom: 31px;
    }
    .home-btn button span {
        position: absolute;
        top: 100%;
        left: 50%;
        color: #4e4e4e;
        transform: translate(-50%, 0);
        font-size: 14px;
        padding: 5px;
        font-weight: bold;
    }

    #btn-add-folder {
        width: 170px;
    }

    .weather-box {
        height: 27vw;
        max-height: 99px;
    }

    .signin-box {
        height: 27vw;
        max-height: 99px;
    }

    .signin-box .label {
        font-size: 15px;
    }
    
    .signin-box a {
        font-size: 18px;
    }

    .signout-box {
        height: 27vw;
        max-height: 99px;
    }
    
    .signout-box .label {
        font-size: 15px;
    }
    
    .signout-box a {
        font-size: 18px;
    }
    
    .col-box {
        padding: 0px;
    }

    .weather-box #degree {
        font-size: 22px;
    }

    #signInTime, #signOutTime {
        font-size: 22px;
    }
    
}
