::selection {
    color: #ffffff;
    background: #CA6C28;
    padding: 8px;
}

.sidebar-theme #compactSidebar .theme-logo a img {
    width: auto;
    height: 28px;
    border-radius: 0;
}

.custom-validated .has-error .form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e7515a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-x'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.custom-validated .has-error .invalid-feedback {
    display: block;
}

.page-add-btn-wapper {
    padding: 10px;
}

.select2-container--open {
    z-index: 9999;
}

.form-group label {
    color: #000000;
    font-weight: 600;
}

.form-group .form-control {
    color: #000000;
    font-weight: 600;
    font-size: 14px;
}

.form-group .form-control:focus {
    border: 2px solid #ca6c28;
}

div.dataTables_wrapper .total-records p {
    display: block;
    margin-top: 5px;
}

div.dataTables_wrapper div.dataTables_filter label {
    width: 100%;
}

div.dataTables_wrapper div.dataTables_filter input {
    width: 100% !important;
}

div.dataTables_wrapper .table-responsive {
    min-height: 500px;
}

legend {
    margin-bottom: 15px;
    font-size: 18px;
    color: #ffffff;
    background: #151516;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 10px 0;
}

.select2-container {
    margin-bottom: 0px !important;
}

.add-more-table tbody td {
    padding: 0;
    border: 0px transparent;
    border-radius: 0px !important;
}

.add-more-table tbody td .form-control {
    border-radius: 0px !important;
    color: #000 !important;
    padding: 4px;
    font-size: 14px;
    font-weight: 600;
}

.form-control:focus {
    border: 2.5px solid #CA6C28 !important;
    background: #ffe5dd !important;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* CUSTOM AUTOCOMPLETE */
    .ui-widget {
        font-family: 'Roboto', sans-serif !important;
    }

    .ui-menu .ui-menu-item {
        font-weight: 700;
    }

    .ris-auto-complete.multi-ac {
        border: 1px solid #333333 !important;
        width: 50% !important;
    }

    .ris-auto-complete.w25 {
        width: 25% !important;
    }

    .ris-auto-complete.w50 {
        width: 50% !important;
    }

    .ris-auto-complete.w75 {
        width: 75% !important;
    }

    .ris-auto-complete.single-ac {
        border: 1px solid #333333 !important;
    }

    .ui-widget-content {
        background: #fff !important;
        z-index: 10000000;
    }

    .ui-menu .ui-state-focus,
    .ui-menu .ui-state-active {
        padding: 0px 1em 0px .4em;
    }

    .ui-widget-content .ui-autocomplete-header a {
        color: #ffffff !important;
    }

    .ui-autocomplete .ui-autocomplete-header:first-child,
    .ui-autocomplete .ui-menu-item:first-child{
        margin-top: 0px !important;
    }

    .ui-autocomplete .ui-autocomplete-header:last-child,
    .ui-autocomplete .ui-menu-item:last-child{
        margin-bottom: 0px !important;
        border-bottom: 0px !important;
    }

    .ui-autocomplete .ui-autocomplete-header,
    .ui-autocomplete .ui-menu-item{
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        border-bottom: 1px solid #000;
    }

    .ui-widget-content .ui-state-focus,
    .ui-widget-content  .ui-state-active {
        border: inherit !important;
        background: rgba(237,83,0, 0.09) !important;
    }

    .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-state-focus a,
    .ui-state-active, .ui-widget-content .ui-state-active, .ui-state-active a{
        color: #ed5300 !important;
        font-weight: 700 !important;
    }

    .ui-widget-content .ui-menu-item a span {
        padding: 0 !important;
        font-size: 11px;
        display: inline-block;
        font-family: arial, sans-serif;
    }

    .ui-autocomplete-loading { background:url('../img/input-spinner.gif') no-repeat right center }

    .ris-auto-complete .ui-autocomplete-header {
        background: #ca6c28;
        color: #ffffff !important;
    }

    .ris-auto-complete .ui-autocomplete-header a span {
        border-right: 1px solid #ffffff;
    }

    .ris-auto-complete .ui-menu-item a span {
        border-right: 1px solid #333333;
    }

    .ris-auto-complete .ui-autocomplete-header a span,
    .ris-auto-complete .ui-menu-item a span {
        font-size: 12px;
        width: 15%;
        text-align: right;
        padding: 2px 8px !important;
        display: inline-block;
    }

    .ris-auto-complete .ui-autocomplete-header a span:last-child,
    .ris-auto-complete .ui-menu-item a span:last-child {
        border-right: transparent;
    }

    .ris-auto-complete .ui-autocomplete-header a span.main-focus,
    .ris-auto-complete .ui-menu-item a span.main-focus {
        width: 35%;
        text-align: left;
    }

    .ris-auto-complete .ui-autocomplete-header,
    .ris-auto-complete .ui-menu-item {
        padding: 3px 0 3px 5px !important;
    }
/* ********************* */

.page-item.active .page-link {
    background-color: #ca6c28 !important;
}

.dt-buttons .dt-button {
    background-color: #ca6c28 !important;
    border-color: #ca6c28 !important;
}

div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label,
div.dataTables_wrapper div.dataTables_info,
div.dataTables_wrapper div.total-records b {
    color: #333333 !important;
}

/* TABLE */
    .table thead tr th, .table td, .table th {
        font-size: 13px !important;
    }

    .table-scrollable {
       border: 1px solid #A3B7BF;
    }

    .table thead tr th {
        font-weight: 800 !important;
    }

    table.dataTable tbody th, table.dataTable tbody td {
        padding: 3px 10px !important;
        vertical-align: baseline;
    }

    .table-hover>tbody>tr:hover,
    .table>tbody>tr.active>td,
    .table>tbody>tr.active>th,
    .table>tbody>tr>td.active,
    .table>tbody>tr>th.active,
    .table>tfoot>tr.active>td,
    .table>tfoot>tr.active>th,
    .table>tfoot>tr>td.active,
    .table>tfoot>tr>th.active,
    .table>thead>tr.active>td,
    .table>thead>tr.active>th,
    .table>thead>tr>td.active,
    .table>thead>tr>th.active {
        background-color: #BCE6F9;
    }

    .pagination .active>a, .pagination .active>a:hover {
        background: #730215;
        border-color: #730215;
        color: #FFFFFF;
    }

    .table-bordered,
    .table-bordered>tbody>tr>td,
    .table-bordered>tbody>tr>th,
    .table-bordered>tfoot>tr>td,
    .table-bordered>tfoot>tr>th,
    .table-bordered>thead>tr>td,
    .table-bordered>thead>tr>th {
        border: 1px solid #999;
    }

    .table>tbody>tr>td,
    .table>tbody>tr>th,
    .table>tfoot>tr>td,
    .table>tfoot>tr>th,
    .table>thead>tr>td,
    .table>thead>tr>th {
        /*padding: 5px;*/
    }

    .modal .table>tbody>tr>td,
    .modal .table>tbody>tr>th,
    .modal .table>tfoot>tr>td,
    .modal .table>tfoot>tr>th,
    .modal .table>thead>tr>td,
    .modal .table>thead>tr>th {
        padding: 1px;
    }

    .less-padding>tbody>tr>td,
    .less-padding>tbody>tr>th,
    .less-padding>tfoot>tr>td,
    .less-padding>tfoot>tr>th,
    .less-padding>thead>tr>td,
    .less-padding>thead>tr>th {
        padding: 0 5px !important;
    }

    .no-bottom-border-table>tbody>tr,
    .no-bottom-border-table>tfoot>tr,
    .no-bottom-border-table>thead>tr {
        border-bottom: none !important; 
    }

    .no-bottom-border-table>thead>tr>th {
        border-bottom: none !important; 
    }

    .no-top-border-table>thead>tr,
    .no-top-border-table>thead>tr>th,
    .no-top-border-table>thead>tr>td,
    .no-top-border-table>tbody>tr,
    .no-top-border-table>tbody>tr>th,
    .no-top-border-table>tbody>tr>td,
    .no-top-border-table>tfoot>tr,
    .no-top-border-table>tfoot>tr>th,
    .no-top-border-table>tfoot>tr>td {
        border-top: none !important; 
    }

    .white-table {
        background: #fff !important;
    }

    .table .table {
        background: none;
    }

    .table > thead > tr > th,
    .table > tbody > tr > th,
    .table > tfoot > tr > th {
        color: #000000 !important;
    }

    .table > thead > tr > td,
    .table > tbody > tr > td,
    .table > tfoot > tr > td{
        color: #000000 !important;
    }

    .table > thead > tr.font-white > th,
    .table > tbody > tr.font-white > th,
    .table > tfoot > tr.font-white > th {
        color: #fff !important;
    }

    .table > thead > tr.font-white > td,
    .table > tbody > tr.font-white > td,
    .table > tfoot > tr.font-white > td{
        color: #fff !important;
    }
/* ************************* */

.btn-group .dropdown-menu a.dropdown-item:hover {
    color: #CA6C28;
}

.btn-group .dropdown-menu hr {
    border-top: 1px solid #CA6C28;
}

.error-border {
    border: 2px solid red;
}

.dataTables_wrapper tr td a {
    color: #CA6C28;
    font-weight: 600;
}

.blinking {
 animation:blinkingText 0.8s infinite;
}

@keyframes blinkingText {
    0%      { opacity: 0;   }
    25%     { opacity: .25;   }
    50%     { opacity: .5;   }
    75%     { opacity: .75;   }
    100%    { opacity: 1;   }
}

.theme-widget .widget-heading {
    background: #151516;
    border-bottom:  none !important;
    padding: 10px 20px !important;
    padding-bottom: 10px !important;
}

.theme-widget .widget-heading h5{
    color: #ffffff !important;
}

.theme-widget .widget-content {
    padding: 0px !important;
}

.sidebar-theme .pharmacy-pannel {
    background: #730215 !important;
}

.sidebar-wrapper .pharmacy-pannel .theme-logo {
    background: #ffffff !important;
    border-radius: 0px !important;
}

.sidebar-wrapper .pharmacy-pannel .sidebar-bottom-actions {
    background: #730215 !important;
    box-shadow:  none !important;
    border-top: 1px solid #fff;
}

.sidebar-wrapper #compactSidebar .menu-categories a.menu-toggle .base-icons svg {
    width: 25px;
    height: 25px;
    stroke-width: 2px;
}

.navbar .navbar-item .nav-item.user-profile-top-dropdown {
    align-self: center;
    padding: 0 5px 0 0;
    border-radius: 8px;
    margin-left: 22px;
    margin-right: 5px;
}

.navbar .navbar-item .nav-item.user-profile-top-dropdown .nav-link.user {
    padding: 0 0;
    font-size: 25px;
}

.navbar .navbar-item .nav-item.user-profile-top-dropdown a.user .media {
    margin: 0;
}

.navbar .navbar-item .nav-item.user-profile-top-dropdown a.user .media img {
    width: 37px;
    height: 37px;
    border-radius: 6px;
    box-shadow: 0 0px 0.9px rgb(0 0 0 / 7%), 0 0px 7px rgb(0 0 0 / 14%);
    margin-right: 13px;
    border: none;
}

.navbar .navbar-item .nav-item.user-profile-top-dropdown a.user .media .media-body {
    flex: auto;
    position: relative;
}

.navbar .navbar-item .nav-item.user-profile-top-dropdown a.user .media .media-body small {
    position: absolute;
    top: 7px;
    font-size: 10px;
    right: 0;
    font-weight: bolder;
}

.navbar .navbar-item .nav-item.user-profile-top-dropdown a.user .media .media-body h6 {
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
}

.navbar .navbar-item .nav-item.user-profile-top-dropdown a.user .media .media-body h6 span {
    color: #888ea8;
}

#report-table-data th, #report-table-data td {
    padding: 4px;
}

.bg-dark {
    background-color: #151516!important;
}

.flatpickr-calendar.open {
    z-index: 100000;
}

#regular_modal{
    z-index: 100000 !important;
}

/* RIBBION */
    .ribbon {
        width: 175px;
        height: 175px;
        overflow: hidden;
        position: absolute;
    }

    .ribbon::before,
    .ribbon::after {
        position: absolute;
        z-index: -1;
        content: '';
        display: block;
        border: 5px solid #2980b9;
    }

    .ribbon span {
        position: absolute;
        display: block;
        width: 225px;
        padding: 10px 0;
        background-color: #3498db;
        box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
        color: #fff;
        font: 700 18px/1 'Lato', sans-serif;
        text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
        text-transform: uppercase;
        text-align: center;
        z-index: 1;
    }

    /* top left*/
    .ribbon-top-left {
        top: -10px;
        left: -10px;
    }

    .ribbon-top-left::before,
    .ribbon-top-left::after {
        border-top-color: transparent;
        border-left-color: transparent;
    }

    .ribbon-top-left::before {
        top: 0;
        right: 0;
    }

    .ribbon-top-left::after {
        bottom: 0;
        left: 0;
    }

    .ribbon-top-left span {
        right: -25px;
        top: 30px;
        transform: rotate(-45deg);
    }


    /* top right*/
    .ribbon-top-right {
        top: 0px;
        right: 0px;
    }

    .ribbon-top-right::before,
    .ribbon-top-right::after {
        border-top-color: transparent;
        border-right-color: transparent;
    }

    .ribbon-top-right::before {
        top: 0;
        left: 0;
    }

    .ribbon-top-right::after {
        bottom: 0;
        right: 0;
    }

    .ribbon-top-right span {
        left: 0px;
        top: 48px;
        transform: rotate(45deg);
    }


    /* bottom left*/
    .ribbon-bottom-left {
        bottom: -10px;
        left: -10px;
    }

    .ribbon-bottom-left::before,
    .ribbon-bottom-left::after {
        border-bottom-color: transparent;
        border-left-color: transparent;
    }

    .ribbon-bottom-left::before {
        bottom: 0;
        right: 0;
    }

    .ribbon-bottom-left::after {
        top: 0;
        left: 0;
    }

    .ribbon-bottom-left span {
        right: -25px;
        bottom: 30px;
        transform: rotate(225deg);
    }


    /* bottom right*/
    .ribbon-bottom-right {
        bottom: -10px;
        right: -10px;
    }

    .ribbon-bottom-right::before,
    .ribbon-bottom-right::after {
        border-bottom-color: transparent;
        border-right-color: transparent;
    }

    .ribbon-bottom-right::before {
        bottom: 0;
        left: 0;
    }

    .ribbon-bottom-right::after {
        top: 0;
        right: 0;
    }

    .ribbon-bottom-right span {
        left: -25px;
        bottom: 30px;
        transform: rotate(-225deg);
    }
/* *************** */

.text-red {
    color: red !important;
}

.swal2-container.swal2-shown {
    z-index: 999999 !important;
}

.bg-black {
    background-color: #151516;
    border-color: #151516;
    color: #fff;
}

.bg-dark-grey {
    background-color: #4b626d;
    border-color: #4b626d;
    color: #fff;
}

.bg-grey {
    background-color: #8aa2ae;
    border-color: #8aa2ae;
    color: #fff;
}

#report-table-data a {
    color: #ef7f1a;
    font-weight: bold;
}

.widget.widget-activity-five .widget-heading .task-action .text-white .fa {
    color: #ffffff;
    font-size: 18px;
}

#back-to-top {
  display: inline-block;
  background-color: #ef7f1a;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 50px;
  right: 30px;
  transition: background-color .3s, 
    opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

#back-to-top svg {
    color: #fff;
    margin: 7px 0 0;
    stroke-width: 4;
}

#back-to-top:hover {
  cursor: pointer;
  background-color: #333;
}

#back-to-top:active {
  background-color: #555;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

button.badge {
    padding: 0.4375rem 1.25rem;
}