﻿h5 {
    font-size: 18px;
}

.wrapper-login {
    background-image: url(../images/bg-login.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper-backend {
    background-image: url(../images/bg-backend.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 100vh;
}

.wrapper-body {
    padding: 20px;
}

.wrapper-body-front {
    padding-top: 110px;
}

.card-login {
    border-radius: 30px;
    background: #FFF;
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.25);
    max-width: 100%;
}

.card-login .form-control {
     border-radius: 50rem;
     border-color: #8A8A8A;
}

.card-login .border-bottom.pink {
    border-bottom-color: #FFB4CA!important;
    border-bottom-width: 2px!important;
}

.header-backend {
    border-bottom: 2px solid #FB3C7D;
    background: #FFF;
    width: 100%;
    height: 80px;
    position: fixed;
    z-index: 3;
}

.header-backend .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-backend .dropdown-user .btn-user {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #000!important;
    padding: 0;
}

.header-backend .dropdown-user .btn-user .user-img {
    display: block;
    background-color: #1E1E1E;
    background-repeat: no-repeat !important;
    background-position: 50% !important;
    background-size: cover !important;
    border: 1px solid #F3004C;
    border-radius: 50% !important;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    position: relative;
}

.header-backend .dropdown-user .btn-user .dropdown-toggle::after {
    margin-left: 5px!important;
}

.header-backend .dropdown-user .dropdown-item {
    color: #000000!important;
}

.header-backend .dropdown-user .dropdown-item:hover,
.header-backend .dropdown-user .dropdown-item:focus{
    background-color: var(--brand-color)!important;
    color: var(--body-color)!important;
}

.header-backend .noti-bullet {
    display: block;
    background: url(../images/icon/bell-bullet.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 12px;
    height: 18px;
    position: relative;
}

.header-backend .navbar-brand h1 {
    font-size: 14px;
}

.header-backend .navbar-brand p {
    font-size: 12px;
    color: var(--base-color);
}

.side-menu {
    border-radius: 30px;
    background: #FDFDFF;
    box-shadow: 0px 1px 24px 0px rgba(0, 0, 0, 0.10);
    width: 265px;
    min-height: 570px;
    padding-top: 15px;
    padding-bottom: 15px;
    float: left;
    transition: all .5s;
}

.side-menu .side-logo {
    text-align: center;
}

.side-menu .side-menu-body {
    padding-top: 15px;
    padding-bottom: 15px;
}

.side-menu .side-menu-body ul {
    list-style-type: none;
    padding-left: 0;
}

.side-menu .side-menu-body ul li a {
    color: var(--base-color)!important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    transition: all .5s;
    position: relative;
    padding-left: 50px;
}

.side-menu .side-menu-body .sidebar-ic {
    position: absolute;
    top: 8px;
    left: 15px;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 24px;
}

.side-menu .side-menu-body .sidebar-ic.menu-dashboard {
    background-image: url(../images/icon/menu-dashboard.png);
}

.side-menu .side-menu-body .sidebar-ic.menu-document {
    background-image: url(../images/icon/menu-document.png);
}

.side-menu .side-menu-body .sidebar-ic.menu-user {
    background-image: url(../images/icon/menu-user.png);
}

.side-menu .side-menu-body .sidebar-ic.menu-assignment {
    background-image: url(../images/icon/menu-assignment.png);
}

/* เฉพาะ main menu */
/*.side-menu .side-menu-body ul > li:hover > a,
.side-menu .side-menu-body ul > li.active > a {
    background-color: var(--brand-color)!important;
    color: var(--body-color)!important
}*/
.side-menu .side-menu-body ul > li.sidebar-single:hover > a,
.side-menu .side-menu-body ul > li.sidebar-single.active > a {
    background-color: var(--brand-color) !important;
    color: var(--body-color) !important;
}

/**/
/*start side menu toggle*/
.side-menu .sidebar-dropdown {
    position: relative;
}

.side-menu .sidebar-dropdown .sidebar-submenu {
    display: none;
}

.side-menu .sidebar-dropdown .sidebar-submenu ul {
    margin-top: 0;
}

.side-menu .sidebar-dropdown > a {
    position: relative;
}

.side-menu .sidebar-dropdown > a:after {
    content: "";
    background-image: url(../images/icon/arrow-down.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 14px;
    height: 8px;
    display: block;
    margin-top: 6px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.side-menu .sidebar-dropdown.active .sidebar-submenu {
    display: block;
}

.side-menu .sidebar-submenu ul li {
    margin-left: 50px;
    list-style-type: disc;
}

.side-menu .sidebar-submenu ul li a {
    color: var(--base-color)!important;
    font-size: 12px;
    font-weight: 400;
    padding: 5px 0;
}

.side-menu .sidebar-submenu ul li a::before {
    display: none;
}

.side-menu .sidebar-submenu ul li:hover a, .side-menu .sidebar-submenu ul li.active a {
    color: var(--brand-color)!important;
}

.side-menu .sidebar-submenu li:hover a, .side-menu .sidebar-submenu li.active a {
    color: #484848!important;
}

.side-menu .sidebar-dropdown:hover > a, .side-menu .sidebar-dropdown.active > a {
    background-color: var(--brand-color);
    color: var(--body-color)!important;
}

.side-menu .sidebar-dropdown:hover > a:after, .side-menu .sidebar-dropdown.active > a:after {
    transform: rotate(180deg);
    background-image: url(../images/icon/arrow-down-white.png);
}

.side-menu .sidebar-dropdown:hover .sidebar-ic.menu-dashboard, .side-menu .sidebar-dropdown.active .sidebar-ic.menu-dashboard {
    background-image: url(../images/icon/menu-dashboard-white.png);
}

.side-menu .sidebar-dropdown:hover .sidebar-ic.menu-document, .side-menu .sidebar-dropdown.active .sidebar-ic.menu-document {
    background-image: url(../images/icon/menu-document-white.png);
}

.side-menu .sidebar-dropdown:hover .sidebar-ic.menu-user, .side-menu .sidebar-dropdown.active .sidebar-ic.menu-user {
    background-image: url(../images/icon/menu-user-white.png);
}

.side-menu .sidebar-dropdown:hover .sidebar-ic.menu-assignment, .side-menu .sidebar-dropdown.active .sidebar-ic.menu-assignment {
    background-image: url(../images/icon/menu-assignment-white.png);
}

.side-menu .side-menu-body ul > li:hover .sidebar-ic.menu-assignment,
.side-menu .side-menu-body ul > li.active .sidebar-ic.menu-assignment {
    background-image: url(../images/icon/menu-assignment-white.png);
}

/*end side menu toggle*/
#hamburger {
    background-image: url(../images/icon/hamburger.png);
    background-repeat: no-repeat;
    background-size: 40px;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

#hamburger.open {
    background-image: url(../images/icon/closs-hamburger.png);
}

.btn-style {
    border-radius: 50rem;
    font-size: 14px;
    padding-top: .5315rem;
    padding-bottom: .5315rem;
}

.btn-refresh {
    background: var(--brand-backend-color) !important;
    background: #BA1F68;
    border-radius: 50rem;
    padding: 2px 8px;
    font-family: "prompt";
    font-size: 14px;
    color: rgb(255, 255, 255);
    border: 1px solid transparent;
}

.btn-search {
    width: 40px;
    height: 40px;
    border: 1px solid #F3004C;
    position: relative;
}

.btn-search .search-ic {
    background-image: url(../images/icon/search-pink.png);
    background-size: 14px;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-search[aria-expanded="true"] {
    background-color: var(--brand-backend-color);
}

.btn-search[aria-expanded="true"] .search-ic {
    background-image: url(../images/icon/search-white.png);
}

.btn-pink-gd {
    background: linear-gradient(180deg, #F3004C 0%, #CA174C 100%), #FB3C7D !important;
}

.btn-tb-group {
    display: block;
    background-image: url(../images/icon/group-2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 20px;
    text-indent: -9999px;
    vertical-align: middle;
}

.btn-tb-view {
    display: block;
    background-image: url(../images/icon/search.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 20px;
    text-indent: -9999px;
    vertical-align: middle;
}

.btn-tb-edit {
    display: block;
    background-image: url(../images/icon/edit.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
    text-indent: -9999px;
    vertical-align: middle;
}

.btn-tb-del {
    display: block;
    background-image: url(../images/icon/trash.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
    text-indent: -9999px;
    vertical-align: middle;
}

.btn-tb-form {
    display: block;
    background-image: url(../images/icon/paper-green.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 22px;
    height: 22px;
    text-indent: -9999px;
    vertical-align: middle;
}


.btn-save {
    background-color: #5BC66F;
    color: var(--body-color) !important;
}

.btn-save:hover {
    background-color: #449753!important;
}

.btn-prev {
    background-color: #FFBF1E;
    color: var(--body-color) !important;
}

.btn-prev:hover {
    background-color: #dca314!important;
}

.btn-next {
    background-color: #5BC66F;
    color: var(--body-color) !important;
}

.btn-next:hover {
    background-color: #449753!important;
}

.btn-light-cancel {
    border: 1px solid #E0E0E0;
    color: #4F4F4F!important;
}

.btn-light-cancel:hover {
    background-color: #E0E0E0;
}

.row-title {
    display: flex;
    justify-content: space-between; /* ทำให้ item อยู่คนละฝั่ง */
    align-items: center; /* จัดให้อยู่ตรงกลางตามแนวแกน Y */
}

.table-main tbody, .table-main td, .table-main tfoot, .table-main th, .table-main thead, .table-main tr {
    border-color: #ACACAC;
}

.table-main th {
    background-color: rgba(255, 175, 202, 0.10);
    color: var(--base-color);
    border-right: 1px solid #ACACAC;
    vertical-align: middle;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
}

.table-main th:first-child {
    border-left: 1px solid #ACACAC;
}

.table-main td {
    border-right: 1px solid #ACACAC;
    padding: 10px 15px;
    font-size: 14px;
}

.table-main td:first-child {
    border-left: 1px solid #ACACAC;
}

.table-main.fixed {
    table-layout: fixed;
    margin-top: 0 !important;
    margin-bottom: 5px;
}

.table-responsive::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #E3E3E3;
  border-radius: 30px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--brand-color);
  border-radius: 30px;
}

.table-sticky {
    overflow-y: auto;
    max-height: 296px;
}

.table-sticky th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-sticky thead tr {
    height: 50px;
}

.table-sticky tbody tr {
    height: 60px;
}

.card-main {
    border-radius: 30px;
    box-shadow: 0px 1px 24px 0px rgba(0, 0, 0, 0.10);
    border: none;
    overflow: hidden;
}

.card-main .card-header,
.card-main .card-footer {
    background-color: var(--body-color);
}

.card-main .card-header {
    border-bottom: 1px solid #D4D4D4 !important;
}

.card-main .card-header.border-bottom-0 {
    border-bottom: 0 !important;
}

.card-main .card-header .card-title {
    font-size: 24px;
    margin-bottom: 0;
}

.card-main .card-footer {
    border-top: 1px solid #D4D4D4 !important;
}

[type="date"] {
    background: #fff url(../images/icon/calendar-gray.png) 90% 50% no-repeat;
    background-size: 14px;
    background-position: 98% 50%;
}

[type="date"]::-webkit-inner-spin-button {
  display: none;
}

[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
}

.calendar-ic {
    display: block;
    background-image: url(../images/icon/calendar-pink.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 26px;
    height: 23px;
}

.input-group.date .calendar-ic {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.input-group.date:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-right-radius: 50rem;
    border-bottom-right-radius: 50rem;
}

.datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled:hover {
    background-color: var(--brand-color) !important;
    background-image: none !important;
    color: #FFFFFF !important;
}

.datepicker span.month.active,
.datepicker span.month.active:hover,
.datepicker span.month.active.disabled,
.datepicker span.month.active.disabled:hover {
    background-color: var(--brand-color) !important;
    background-image: none !important;
    color: #fff !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    border: none !important;
}

.datepicker th {
    font-weight: 700;
}

.datepicker td, .datepicker th {
    font-size: 14px;
}

.note-editor .note-toolbar, .note-popover .popover-content {
    padding: 0 0 5px 5px !important;
}

.note-btn-group .dropdown-toggle::after {
    display: none;
}

.note-editor.note-frame .note-editing-area .note-editable {
    background-color: #fff;
}

.note-editor .note-toolbar .note-dropdown-menu {
    min-width: 180px;
}

.calendar-custom {
    margin-bottom: 20px;
}

.calendar-custom .fc .fc-button-primary {
    background-color: transparent !important;
    border: none !important;
    color: #D1D1D1 !important;
    font-family: "prompt";
    font-size: 14px;
    border: none !important;
}

.calendar-custom .fc .fc-toolbar-title {
    font-size: 20px;
    font-weight: 700;
    color: #31394D;
    text-align: center;
    text-transform: uppercase;
}

.calendar-custom .fc-col-header-cell-cushion {
    color: #B8C5D3;
    font-family: "prompt";
    font-weight: 500;
    font-size: 14px;
    text-decoration: none !important;
}

.calendar-custom .fc .fc-view-harness {
    font-family: "Prompt";
}

.calendar-custom .fc-daygrid-day-number {
    font-size: 14px;
    color: #8A8A8A;
}

.calendar-custom .fc-event .fc-content {
    color: #FFFFFF !important;
}

.calendar-custom .fc .fc-button {
    background: transparent !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.calendar-custom .fc-daygrid-block-event .fc-event-title,
.calendar-custom .fc-direction-ltr .fc-daygrid-event .fc-event-time,
.calendar-custom .fc-daygrid-dot-event .fc-event-title,
.calendar-custom .fc .fc-daygrid-more-link {
    font-size: 14px;
}

.calendar-custom .fc-icon-left-single-arrow:after,
.calendar-custom .fc-icon-right-single-arrow:after {
    top: -35% !important;
}

.calendar-custom .fc-unthemed th {
    font-size: 16px;
    padding: 10px 0 !important;
    color: #B8C5D3 !important;
}

.calendar-custom .fc-unthemed td {
    font-size: 14px;
}

.calendar-custom .fc-ltr .fc-basic-view .fc-day-top .fc-day-number {
    color: #8A8A8A;
}

.calendar-custom .fc .fc-toolbar > * > * {
    padding-top: 0;
    padding-bottom: 0;
}

.calendar-custom .fc .fc-button-group > .fc-button {
    padding-top: 0;
    padding-bottom: 0;
    color: #D1D1D1 !important;
    font-size: 16px;
    font-family: "Athiti", sans-serif;
    text-transform: capitalize;
}

.calendar-custom .fc .fc-daygrid-more-link {
    font-size: 12px;
    color: var(--base-color);
}

.modal-calendar * {
    font-family: "Prompt", sans-serif;
}

.modal-calendar .modal-title {
    font-size: 30px;
}

.modal-calendar .modal-content {
    border-radius: 10px;
}

.modal-calendar .modal-content p {
    color: var(--base-color);
}

.modal-calendar .c-gray {
    color: #AFAFAF !important;
}

.modal-calendar .btn-dismiss {
    min-width: 140px;
}

.modal-calendar .text-brand {
    color: var(--brand-backend-color) !important;
}

@media only screen and (min-width: 768px) {
    .calendar-custom {
        margin-bottom: 40px;
    }

    .calendar-custom .fc-toolbar .fc-left, .calendar-custom .fc-toolbar .fc-right {
        width: 50%;
    }

    .calendar-custom .fc .fc-toolbar-title {
        font-size: 24px;
    }
}

@media only screen and (min-width: 992px) {
    .wrapper-body {
        padding: 120px 40px 40px 40px;
    }
}

@media only screen and (min-width: 1400px) {
    .wrapper-backend {
        background-repeat: repeat-y;
        background-size: 100% auto;
    }
}

.calendar-custom .fc-toolbar .fc-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

@media only screen and (max-width: 575px) {
    .calendar-custom .fc .fc-button-group > .fc-button {
        padding: 5px;
        font-size: 12px;
    }
    .calendar-custom .fc .fc-daygrid-more-link {
        font-size: 9px;
    }
    .calendar-custom .fc-daygrid-day-number {
        margin-top: 10px;
    }
    .modal-calendar .text-topic {
        width: 100%;
    }
}

.calendar-custom .fc .fc-button-group > .fc-button:focus {
    color: #4F4F4F !important;
}

.calendar-custom .fc .fc-button-group > .fc-button:focus,
.calendar-custom .fc .fc-button-group > .fc-button:active,
.calendar-custom .fc .fc-button-group > .fc-button.fc-button-active {
    color: #FDACAE !important;
}

.calendar-custom .fc-h-event {
    color: #FFF !important;
    background: #FDACAE;
    border: none !important;
    padding-left: 5px;
    padding-right: 5px;
}

.calendar-custom .fc-daygrid-event-dot {
    border-color: #7851A0 !important;
}

@media (max-width: 575px) {
    .card-login .img-logo {
        width: 100px;
    }
}

@media (min-width: 992px) {
    #hamburger {
        display: none;
    }
    .content-area {
        margin-left: 300px;
    }
}

@media (max-width: 991px) {
    .side-menu {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 80px;
        right: -100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
        opacity: 0;
        z-index: 9999;
        transition: opacity 0.3s ease;
    }

        .side-menu.active {
            opacity: 1;
            right: 0;
        }

    .side-menu-overlay {
        position: fixed;
        display: none;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        transition: all 0.3s linear;
        display: none;
    }

        .side-menu-overlay.active {
            display: block;
        }

    .content-area {
        margin-top: 80px;
    }
}

/*chat backend*/
.chat .chat-topic {
  padding: 10px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 65px;
  border-bottom: 0.75px solid #E0E0E0;
}

@media only screen and (min-width: 992px) {
  .chat .chat-topic {
    padding: 15px 30px 10px;
  }
}

.chat .chat-topic h1 {
  font-size: 20px;
  color: var(--brand-backend-color)!important;
}

.chat .chat-topic .btn-back {
  display: block;
  background: url("../images/icon/back.png");
  background-repeat: no-repeat;
  background-size: 25px;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

@media only screen and (min-width: 992px) {
  .chat .chat-topic .btn-contact {
    display: none;
  }
}

.chat .chat-topic-contact {
  padding: 15px 0;
}

.chat .chat-topic-contact h2 {
  font-size: 20px;
  color: var(--brand-backend-color)!important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.chat-badge {
    font-family: "prompt";
    font-size: 12px;
    color: #FFF;
    border-radius: 50rem;
    padding: 2px 15px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-badge.online {
    background: #52B451;
}

.chat-badge.offline {
    background: #BEBEBE;
}

.chat .chat-topic-contact h2.c-orange:before {
    content: "";
    display: inline-block;
    background: url("../images/icon/ic-phone-book-orange.png");
    background-repeat: no-repeat;
    background-size: 22px;
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

.chat .chat-topic-contact h2.c-yellow:before {
  content: "";
  display: inline-block;
  background: url("../images/icon/ic-phone-book-yellow.png");
  background-repeat: no-repeat;
  background-size: 22px;
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

.chat .chat-topic-contact .form-group {
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
}

.chat .chat-topic-contact .form-group .ic-search {
  background: url("../images/icon/search-gray.png");
  background-repeat: no-repeat;
  background-size: 20px;
  width: 20px;
  height: 20px;
  position: absolute;
  right: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.chat .chat-topic-contact .form-group .form-control {
  border: 1px solid #C2C2C2 !important;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-radius: 5px;
  padding-right: 40px;
  font-family: "prompt";
}

.chat .chat-topic-contact .form-group .form-control ::-webkit-input-placeholder { /* Edge */
  color: #BFBFBF;
}

.chat .chat-topic-contact .form-group .form-control :-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #BFBFBF;
}

.chat .chat-topic-contact .form-group .form-control ::-moz-placeholder {
  color: #BFBFBF;
}

.chat .chat-topic-contact .form-group .form-control ::-ms-input-placeholder {
  color: #BFBFBF;
}

.chat .chat-topic-contact .form-group .form-control ::placeholder {
  color: #BFBFBF;
}

.chat .chat-body .chat-area {
  padding: 15px;
  position: relative;
  overflow-y: auto;
  height: calc(100vh - 260px);
}

@media only screen and (min-width: 768px) {
    .contact-group {
        height: calc(100vh - 200px);
    }

    .chat .col-list-chat {
        border-right: 1px solid #dee2e6 !important;
    }
}

@media only screen and (max-width: 767px) {
  .chat .chat-body .chat-area {
    height: calc(100vh - 500px);
  }

  .contact-group {
    height: calc(100vh - 350px);
   }
}

@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1.5) {
  .chat .chat-body .chat-area {
    height: calc(100vh - 600px);
  }
}

.chat .chat-body .chat-area::-webkit-scrollbar {
  width: 5px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.chat .chat-body .chat-area:hover::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat .chat-body .chat-area:hover::-webkit-scrollbar-thumb {
  background: #BDBDBD;
}

.chat .chat-body .chat-area:hover::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.chat .chat-body .chat-area .chat-group {
  margin-top: 15px;
  margin-bottom: 15px;
}

.chat .chat-body .chat-area .chat-group .chat-item {
  padding: 10px;
    font-family: "prompt";
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.04em;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-radius: 10px; 
  max-width: 70%;
}

@media only screen and (min-width: 992px) {
  .chat .chat-body .chat-area .chat-group .chat-item {
    padding: 12px 15px;
    font-size: 18px;
    line-height: 29px;
  }
}

.chat .chat-body .chat-area .chat-group .chat-item .chat-item-forward {
  padding-bottom: 10px;
}

.chat .chat-body .chat-area .chat-group .chat-item .chat-item-forward .chat-user {
  width: 15px;
  height: 15px;
  margin-top: 0;
  margin-right: 8px;
}

@media only screen and (min-width: 992px) {
  .chat .chat-body .chat-area .chat-group .chat-item .chat-item-forward .chat-user {
    width: 20px;
    height: 20px;
  }
}

.chat .chat-body .chat-area .chat-group .chat-item .chat-item-forward h4 {
  font-size: 12px;
  font-size: 1.2rem;
}

@media only screen and (min-width: 992px) {
  .chat .chat-body .chat-area .chat-group .chat-item .chat-item-forward h4 {
    font-size: 18px;
  }
}

.chat .chat-body .chat-area .chat-group .chat-item img {
  max-width: 100%;
}

.chat .chat-body .chat-area .chat-group .chat-datetime {
    font-family: "prompt";
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.37);
    padding-top: 10px;
}

.chat .chat-body .chat-area .chat-group .chat-user {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-top: 5px;
  margin-right: 15px;
}

@media only screen and (min-width: 992px) {
  .chat .chat-body .chat-area .chat-group .chat-user {
    margin-top: 10px;
  }
}

.chat .chat-body .chat-area .chat-group .btn-forward {
  display: block;
  background: url("../images/icon/ic-share-yellow.png");
  background-repeat: no-repeat;
  background-size: contain;
  width: 26px;
  height: 22px;
  margin-top: 18px;
}

@media only screen and (min-width: 992px) {
  .chat .chat-body .chat-area .chat-group .btn-forward {
    margin-top: 25px;
  }
}

.chat .chat-body .chat-area .chat-group .forward-txt {
  color: #BDBDBD;
  font-weight: 600;
  padding-bottom: 5px;
}

.chat .chat-body .chat-area .chat-group .forward-txt:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  background: url("../images/icon/ic-share-gray.png");
  background-repeat: no-repeat;
  background-size: contain;
  width: 12px;
  height: 10px;
  margin-right: 5px;
}

/*.chat .chat-body .chat-area.line-seperate {
  border-right: 0.75px solid #E0E0E0;
}*/

.chat .chat-body .chat-form {
  position: relative;
  margin-top: 10px;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 15px;
}

@media only screen and (min-width: 992px) {
  .chat .chat-body .chat-form {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 10px;
  }
}

.chat .chat-body .chat-form textarea {
  font-family: "prompt";
  width: 100%;
  height: 120px!important;
  background: rgb(255, 255, 255);
  border: 1px solid #B7B7B7;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-radius: 10px;
  padding: 10px 50px 15px 15px;
  font-size: 16px;
  line-height: 25px;
  color: #333333;
}

.chat .chat-body .chat-form textarea:focus {
    border: 1px solid var(--brand-backend-color)!important;
    box-shadow: none!important;
    outline: none!important;
}

@media only screen and (min-width: 992px) {
  .chat .chat-body .chat-form textarea {
    height: 140px!important;
  }
}

@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1.5) {
  .chat .chat-body .chat-form textarea {
    height: 120px;
  }
}
.chat .chat-body .chat-form textarea::-webkit-input-placeholder { /* Edge */
  color: #BFBFBF;
  font-size: 16px;
  line-height: 25px;
}
.chat .chat-body .chat-form textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #BFBFBF;
  font-size: 16px;
  line-height: 25px;
}

.chat .chat-body .chat-form textarea::-moz-placeholder {
  color: #BFBFBF;
  font-size: 16px;
  line-height: 25px;
}

.chat .chat-body .chat-form textarea::-ms-input-placeholder {
  color: #BFBFBF;
  font-size: 16px;
  line-height: 25px;
}

.chat .chat-body .chat-form textarea::placeholder {
  color: #BFBFBF;
  font-size: 16px;
  line-height: 25px;
}

.chat .chat-body .btn {
  width: 175px;
  border-radius: 20px;
  padding: 8px;
  font-family: "prompt";
  font-size: 16px;
  color: rgb(255, 255, 255);
  margin-top: 10px;
}

.chat .chat-body .btn:hover {
  opacity: 0.8;
}

.chat .chat-item.border-brand {
    border: 2px solid var(--brand-backend-color);
}


.chat .chat-item.bg-brand {
    background: var(--brand-backend-color);
}

.contact-group {
    overflow-y: auto;
}

@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1.5) {
  .contact-group {
    height: calc(100vh - 665px);
  }
}

.contact-group::-webkit-scrollbar {
  width: 5px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.contact-group:hover::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.contact-group:hover::-webkit-scrollbar-thumb {
  background: #BDBDBD;
}

.contact-group:hover::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.contact-group .contact-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 20px;
  border-bottom: 0.75px solid #E0E0E0;
  position: relative;
}

.contact-group .contact-item.active {
  background: #E0E0E0;
}

.contact-group .contact-item:first-child {
    padding-top: 5px;
}

.contact-group .contact-item:last-child {
    border: none;
    padding-bottom: 5px;
}

.contact-group .contact-item .contact-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 12px;
}

.contact-group .contact-item .contact-item-dt {
  width: calc(100% - 20px);
  padding-right: 10px;
}

.contact-group .contact-item .btn-del {
    display: block;
    background-image: url(../images/icon/trash02.png);
    background-size: 18px 20px;
    width: 18px;
    height: 20px;
    cursor: pointer;
}

.contact-group .contact-item .contact-item-dt h3 {
  font-size: 18px;
  line-height: 29px;
  font-family: "prompt";
  color: var(--brand-backend-color)!important;
}

.contact-group .contact-item .contact-item-dt p {
  color: #444444;
  font-size: 16px;
  line-height: 24px;
  font-family: "prompt";
}

.contact-group .contact-item .contact-item-dt .datetime-text {
  color: #B7B7B7;
  font-size: 12px;
  font-family: "prompt";
}

.contact-group .contact-item .contact-item-dt .datetime-text span {
  display: inline-block;
}

.contact-group .contact-item.unread:after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  position: absolute;
  right: 22px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.contact-group .contact-item.unread.green:after {
  background: #45916A;
}

.contact-group .contact-item.unread.yellow:after {
  background: #FEB315 !important;
}

.dot-yellow {
  display: inline-block;
  background-image: url(../images/icon/ic-dot-yellow.png);
  background-size: 10px 10px;
  width: 10px;
  height: 10px;
  margin-right: 10px;
}

.dot-green {
  display: inline-block;
  background-image: url(../images/icon/ic-dot-green.png);
  background-size: 10px 10px;
  width: 10px;
  height: 10px;
  margin-right: 10px;
}

.dot-red {
  display: inline-block;
  background-image: url(../images/icon/ic-dot-red.png);
  background-size: 10px 10px;
  width: 10px;
  height: 10px;
  margin-right: 10px;
}

.text-label {
    display: inline-block;
    background: rgba(0, 0, 0, 0.10);
    font-size: 18px !important;
    padding: 18px 30px;
}

/* สไตล์สำหรับ step */
.step-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.step-nav::-webkit-scrollbar {
    width: 2px;
    height: 3px;
}

.step-nav::-webkit-scrollbar-track {
    background: #E3E3E3;
    border-radius: 30px;
}

.step-nav::-webkit-scrollbar-thumb {
    background: #EF3747;
    border-radius: 30px;
}

.step-nav button {
    min-width: 155px;
    height: 40px;
    border: none;
    border: 1px solid #AEAEAE;
    background: #FFF;
    color: #AEAEAE;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.step-nav button.active {
    background: linear-gradient(180deg, #F3004C 0%, #CA174C 100%), #FB3C7D;
    border: 1px solid transparent;
    color: var(--body-color);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

@media (max-width: 991px) {
    .step-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

 



