:root {
    --primary: #0084ff;
    --primary-colour: #ffffff;
    --primary-border: #6cb8ff;
    --primary-hover: #0664bc;
    --primary-hover-border: #0259a9;
    --primary-hover-colour: #ffffff;

    --secondary: #6e8ba6;
    --secondary-colour: #ffffff;
    --secondary-border: #607f9c;
    --secondary-hover: #465f77;
    --secondary-hover-border: #577592;

    --success: #21c121;
    --success-hover: #089608;
    --success-border: #08b108;
    --success-hover-border: #008000;

    --warning: #ffb822;
    --warning-hover: #e9a514;
    --warning-border: #ffb822;
    --warning-hover-border: #e9a514;

    --danger: #ef4a42;
    --danger-hover: #c7362e;
    --danger-border: #d4322a;
    --danger-hover-border: #af241d;

    --info: #34b5f3;
    --info-hover: #2190c5;
    --info-border: #25a1dc;
    --info-hover-border: #1877a5;

    --placeholder-color: #b7b7b7;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: Poppins;
    font-size: 1rem;
}

#Body {
    display: flex;
    height: calc(100% - 55px);
}

div#Topbar {
    display: flex;
    height: 55px;
    background: #191919;
}

div#Topbar .responsive_menu_toggle {
    display: none;
}

div#Topbar .brand {
    flex: 0 0 auto;
    padding: 0 10px;
    padding-right: 55px;
}

div#Topbar .brand h5 {
    margin: 0;
    text-align: center;
    color: white;
    line-height: 55px;
    font-weight: 400;
    font-size: 1.3em;
}

div#Topbar .subheader {
    color: white;
    align-content: center;
    flex: 0 0 auto;
    line-height: 55px;
}

div#Topbar .session {
    position: relative;
    margin-left: auto;
}

div#Topbar .session:hover .initalbadge {
    background: #008074;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--placeholder-color);
}

.select2-container--default .select2-selection--single .select2-selection__arrow:before,
.select2-container--default .select2-selection--multiple .select2-selection__arrow:before {
    content: "\f078" !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
    font-family: "Font Awesome 5 Free" !important;
}

/*div#Topbar .session:hover .dropdown
{
	display:block;
}*/
div#Topbar .session .initalbadge,
#usersidebar .initalbadge,
.record_header .initalbadge {
    width: 35px;
    height: 35px;
    background: grey;
    color: white;
    text-align: center;
    border-radius: 100%;
    line-height: 35px;
    font-size: 1em;
    margin: 10px;
    transition: background .3s ease;
    cursor: pointer;
}

div#Topbar .session .dropdown {
    display: none;
    background: white;
    padding: 15px;
    z-index: 9999999;
    position: absolute;
    right: 0;
    width: 200px;
}

body .alerts_container .alert {
    color: white;
    padding: 5px 10px;
}

.alerts_container .alert-outline-danger {
    background: #e46060;
}

.alerts_container .alert-outline-warning {
    background: #ffb100;
}

.alerts_container .alert-outline-info {
    background: #50a9fd;
}

body .alerts_container .alert-outline-success {
    background: #98f098;
    color: #191919;
}

div#Aside {
    width: 210px;
    height: 100%;
    display: inline-block;
    background: #eeeeee;
    /*transition: width .8s ease;*/
}

#Aside .main_menu {
    max-height: calc(100% - 75px);
    overflow-y: scroll;
}

div#Body.collapsed #Aside .main_menu {
    overflow-y: hidden;
}

div#Body.collapsed #Aside {
    width: 40px;
}

#Body.collapsed .main_menu li a > span {
    display: none;
}

#Body.collapsed .main_menu li {
    text-align: center;
}

#Body.collapsed .main_menu li.menu_heading {
    height: 0;
}

#Body.collapsed div#Main {
    width: calc(100% - 42px);
}

div#Aside .menu_collapse {
    padding: 8px 10px;
}

div#Aside .menu_collapse .menu_collapse_toggle {
    cursor: pointer;
    display: inline-block;
    width: 20px;
    text-align: center;
}

#Aside .main_menu ul {
    padding: 0;
    list-style: none;
}

#Aside li.menu_heading {
    overflow: hidden;
}

#Aside li.menu_heading:not(:first-child) > span {
    margin-top: 10px;
}

#Aside li.menu_heading > span {
    font-weight: 500;
    padding: 5px 10px;
    display: block;
}

#Aside .main_menu ul li {
    margin-bottom: 0px;
}

#Aside .main_menu ul li:hover a,
#Aside .main_menu ul li.active a {
    background: white;
}

#Aside .main_menu ul li a {
    padding: 5px 10px;
    display: block;
    color: #191919;
    text-decoration: none;
    transition: background .3s ease;
    font-size: .9em;
}

#Body:not(.collapsed) #Aside .main_menu ul li a i {
    margin-right: 5px;
}

div#Main {
    width: calc(100% - 175px);
    display: inline-block;
    vertical-align: top;
    background: #fbfbfb;
    display: flex;
    flex-direction: column;
    /*transition: width .8s ease;*/
}

div#Main .content {
    padding: 35px;
    overflow-y: scroll;
    flex: 1 1 auto;
}

div#Actionbar {
    border-bottom: 1px solid #eeeeee;

    background: white;
    justify-content: flex-end;
    display: flex;
}

div#Actionbar > button {
    border-radius: 0;
    border: none;
    padding: 0 10px;
    text-transform: none;
    font-weight: 400;
    font-size: .9em;
    margin-bottom: 0;
}

div#Actionbar > button > i {
    margin-right: 4px;
}

div#Actionbar > button:hover {
    background: #d5d5d5;
}

*::placeholder {
    color: var(--placeholder-color) !important;
}

/*Datatables*/
table.datatable,
table.datatable_subgrid {
    font-size: 1em;
}

.dataTables_filter {
    margin-bottom: 8px;
}

table.datatable thead,
table.datatable_subgrid thead {
    background: #eeeeee;
}

table.datatable thead th,
table.datatable_subgrid thead th {
    font-weight: 500;
    text-align: left;
}

table.datatable tbody tr,
table.datatable_subgrid tbody tr {
    cursor: pointer;
    background: white;
}

table.datatable tbody tr:hover,
table.datatable_subgrid tbody tr:hover {
    background: rgb(0 128 116 / 12%);
}

.datatable .checkcol {
    width: 4px !important;
    padding: 0px;
    vertical-align: bottom;
}

.datatable .checkcol label {
    margin: 0;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 27px;
}

.datatable .checkcol label input {
    display: none;
}

.datatable .checkcol label input:checked + i {
    opacity: 1;
}

.datatable .checkcol label i {
    opacity: 0.1;
    font-weight: 600;
}

.datatable .checkcol:hover label i {
    opacity: 0.5;
}

.dataTables_wrapper .dataTables_filter input[type="search"] {
    width: auto;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #eaeaea;
    padding: .3em .9em;
    margin-left: 3px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    opacity: .5;
    background: #eaeaea;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #232323;
    border-color: #232323;
}

.viewpicker {
    float: left;
}

select#view_picker {
    background: transparent;
    border: none;
    font-size: 1.2em;
    min-width: 175px;
}

/*Cards*/
.card {
    /* border: 1px solid #e9e9e9; */
    /* border-radius: 3px; */
    background: white;
    margin-bottom: 1em;
    box-shadow: 0px 0px 5px 3px #f6f6f6;
}

.card > .card_head {
    display: flex;
    padding: 15px;
    align-items: center;
}

.card > .card_head .card_head_title {
    margin: 0;
}

.card > .card_head .card_head_toolbar {
    margin-left: auto;
}

.card > .card_body,
.card > .card_foot {
    border-top: 1px solid #e9e9e9;
    padding: 15px;
}

.record_header {
    margin-bottom: 2em;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 20px;
}

.record_header h4 {
    margin-bottom: 0;
}

.record_header h6 {
    margin-bottom: 0;
}

.record_header .initalbadge {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.7em;
}

/*Buttons*/
.btn.btn-primary {
    background: var(--primary);
    font-size: 1em;
    color: var(--primary-colour);
    border-color: var(--primary-border);
    transition: all .2s ease;
}

.btn.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover-border);
}

.btn.btn-secondary {
    background: var(--secondary);
    font-size: 1em;
    color: var(--secondary-colour);
    border-color: var(--secondary-border);
    transition: all .2s ease;
}

.btn.btn-secondary:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover-border);
}

.btn.btn-success {
    background: var(--success);
    border-color: var(--success-border);
    color: white;
}

.btn.btn-success:hover {
    background: var(--success-hover);
    border-color: var(--success-hover-border);
}

.btn.btn-warning {
    background: var(--warning);
    border-color: var(--warning-border);
    color: black;
}

.btn.btn-warning:hover {
    background: var(--warning-hover);
    border-color: var(--warning-hover-border);
}

.btn.btn-danger {
    background: #ef4a42;
    color: white;
    border-color: #d4322a;
}

.btn.btn-danger:hover {
    background: var(--danger-hover);
    border-color: var(--danger-hover-border);
}

.btn.btn-info {
    background: #34b5f3;
    color: white;
    border-color: #25a1dc;
}

.btn.btn-info:hover {
    background: var(--info-hover);
    border-color: var(--info-hover-border);
}

.btn.btn-lg {
    height: 50px;
    padding: 0 25px;
    line-height: 50px;
}

.btn.btn-sm {
    height: 32px;
    padding: 6px 10px;
    line-height: normal;
    font-size: 12px;
}

/*Forms*/
form#mainform {
    margin: 0;
}

input:not([type="radio"]):not([type="checkbox"]), textarea, select {
    width: 100%;
}

input, textarea, select, fieldset {
    margin-bottom: 0;
    color: #111;
}

label {
    font-weight: 500;
    color: #404040;
}

span.form-text.text-muted {
    font-size: .75em;
    color: #4e4e4e;
    display: block;
    margin-bottom: 5px;
    margin-top: 3px;
}

label.checkbox-inline {
    font-weight: 400;
}

label.checkbox-inline input {
    margin-right: 5px;
    vertical-align: middle;
}

.form-group {
    margin-bottom: 15px;
}

/*Form Controls*/
.checkbox > label {
    display: inline-block;
    vertical-align: top;
    margin-right: 5px;
}

label.switch {
    width: 70px;
    height: 24px;
    background: #b2b2b2;
    position: relative;
    cursor: pointer;
}

label.switch input {
    display: none;
}

label.switch input:checked + .slider {
    background: #49b749;
    left: calc(100% - 32px);
}

label.switch .slider {
    background: #5b5b5b;
    width: 40px;
    height: 26px;
    position: absolute;
    left: 0;
    top: -1px;
    transition: left .2s ease;
}

label.switch .slider:after {
    color: white;
    width: 100%;
    position: absolute;
    text-align: center;
    line-height: 26px;
}

label.switch input:not(:checked) + .slider:after {
    content: "NO";
}

label.switch input:checked + .slider:after {
    content: "YES";
}

.hide {
    display: none !important;
}

/*Modals*/
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal .modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 100%; /* Could be more or less, depending on screen size */
    text-align: left;
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*Tabs*/
ul.tab_headers {
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 1rem;
}

ul.tab_headers > li {
    display: inline-block;
    padding: 5px 8px;
    position: relative;
    margin-bottom: 0;
    cursor: pointer;
}

ul.tab_headers > li:not(.active):hover a {
    color: grey;
}

ul.tab_headers > li a {
    color: #232323;
}

ul.tab_headers > li.active a:after {
    position: absolute;
    width: 80%;
    height: 2px;
    background: var(--primary);
    content: "";
    left: 10%;
    bottom: 0;
}

.tab_bodys {
    padding: 8px;
}

.tab_bodys .tab_body:not(.active) {
    display: none;
}

/*Users Sidebar*/
div#usersidebar {
    position: fixed;
    right: -265px;
    top: 55px;
    width: 260px;
    height: calc(100% - 89px);
    background: #e0e0e0;
    transition: right .2s ease;
}

#usersidebar.on {
    right: 0;
}

div#usersidebar .user_profile {
    padding: 15px;
    display: flex;
    align-items: center;
}

#usersidebar .initalbadge {
    text-align: center;
    margin: auto;
    /*margin-bottom: 15px;*/
    width: 55px;
    height: 55px;
    line-height: 55px;
    font-size: 1.5em;
    cursor: default;
    flex: 0 0 auto;
    border: 1px solid grey;
    background: transparent;
    color: grey;
}

#usersidebar .profile_details {
    flex: 1 1 100%;
    margin-left: 12px;
}

#usersidebar .profile_details .email {
    font-size: .8em;
}

div#usersidebar .user_menu {
    padding: 15px;
}

div#usersidebar .user_menu ul {
    list-style: none;
}

div#usersidebar .user_menu ul li a {
    color: #4e4e4e;
    text-decoration: none;
}

div#Footer {
    margin-top: auto;
    padding: 5px 10px;
    background: #eeeeee;
}

.ccmm_footer {
    font-size: .8em;
    padding: 6px 0;
    border-bottom: 1px solid #c1c1c1;
    margin-bottom: 6px;
}

.btn {
    line-height: 1;
    margin: 0;
}

.font-weight-bold {
    font-weight: 500 !important;
}

.font-weight-bolder {
    font-weight: 600 !important;
}

.font-weight-boldest {
    font-weight: 800 !important;
}

input.datepicker {
    width: 100% !important;
}

.datepicker.datepicker-dropdown {
    width: fit-content !important;
}

.datepicker thead th.prev, .datepicker thead th.datepicker-switch, .datepicker thead th.next {
    text-align: center !important;
}

.viewpicker, .viewpicker select option {
    font-size: 14px !important;
}

.dataTables_paginate, .dataTables_info {
    font-size: 14px;
}

label {
    font-weight: 500 !important;
}

.rightmodal .modal-content {
    height: 100%;
}

.rightmodal .modal-dialog {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    margin: 0px;
    max-width: 370px;
    width: 100%;
}

.modal .modal-content .modal-header .close:before {
    display: none;
}

.product .select2-container {
    width: 100% !important;
    padding: 0;
}

h6 {
    color: #48465b;
    font-size: 20px;
    font-weight: 500;
}

.form-control, .form-control-sm {
    border-radius: 0 !important;
    height: calc(1.5em + 1rem + 1px);
    padding: 0.5rem 1rem;
}

.form-control-xs {
    border-radius: 0 !important;
    height: 24px !important;
    padding: 4px 3px !important;
    font-size: 12px !important;
}

.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple, .select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 0 !important;
}

.separator {
    height: 0
}

.separator.separator-dashed {
    border-bottom: 1px dashed #ebedf3
}

.separator.separator-solid {
    border-bottom: 1px solid #ebedf3
}

.separator.separator-border-2 {
    border-bottom-width: 2px
}

.separator.separator-border-3 {
    border-bottom-width: 3px
}

.separator.separator-border-4 {
    border-bottom-width: 4px
}

.separator.separator-primary {
    border-bottom-color: #0bb783
}

.separator.separator-secondary {
    border-bottom-color: #e4e6ef
}

.separator.separator-success {
    border-bottom-color: #1bc5bd
}

.separator.separator-info {
    border-bottom-color: #8950fc
}

.separator.separator-warning {
    border-bottom-color: #ffa800
}

.separator.separator-danger {
    border-bottom-color: #f64e60
}

.separator.separator-light {
    border-bottom-color: #f3f6f9
}

.separator.separator-dark {
    border-bottom-color: #181c32
}

.separator.separator-white {
    border-bottom-color: #fff
}

.datepicker {
    font-size: 14px !important;
}

.datepicker thead tr th, .datepicker tbody tr td {
    padding: 12px !important;
}

#productImgDiv img {
    position: absolute;
    z-index: 99;
    width: 150px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    right: 0;
}

.categoryImgDiv #productImg {
    width: 250px;
    margin: auto;
}

.tabsdesign li a {
    color: black;
    padding: 13px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-right: 10px;
    position: relative;
}

.tabsdesign li a.active {
    color: white;
    background: black;
}

.counterfig {
    font-size: 10px;
    position: absolute;
    right: -3px;
    font-weight: 600;
    background: black;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    color: white;
    line-height: 1.4;
    top: 4px;
    text-align: center;
}

.active .counterfig {
    background: white;
    color: black;
    right: -1px;
    top: 4px;
}

.tabsdesign {
    margin-bottom: 0px;
}

.required, .error {
    color: red;
    margin-left: 3px;
}

.success {
    color: var(--success);
}

.view-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-detail a {
    font-size: small;
}

.img-thumbnail img {
    object-fit: contain;
    max-width: 100%;
    aspect-ratio: 1;
}

.preview-section {
    box-shadow: 1px 1px 19px #eee;
    text-align: center;
    padding: 12px;
    border: 1px solid;
    border-radius: 0.8rem;
    height: 100%;
    margin: 0 auto;
    cursor: pointer;
}

.img-input {
    align-items: center;
    margin: 14px auto auto;
    width: 200px;
}

*.not-allowed:disabled {
    cursor: not-allowed;
}

.dots {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.6rem;
    border-radius: 50%;
}

.dots.dots-primary {
    background: url('/assets/img/dot-green.svg') no-repeat;
}

.dots.dots-danger {
    background: url('/assets/img/dot-red.svg') no-repeat;
}

.dots.dots-warning {
    background: url('/assets/img/dot-yellow.svg') no-repeat;
}

.alert {
    font-size: 0.9rem;
}

#productMessagesSection .alert, #messagesSection.alert, #contactFormMessages.alert {
    display: inline-block;
}

.tooltip-icon {
    cursor: pointer;
}

.tooltip-container {
    position: relative;
}

.tooltip-element::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 2rem;
    left: -19rem;
    right: -1rem;
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    opacity: 1;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1;
    text-align: left;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
}

.tooltip-element:hover::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #333;
    transform: rotate(45deg);
    position: absolute;
    top: 1.7rem;
    right: 0.2rem;
}

.tooltip-element:hover::after {
    opacity: 1;
    visibility: visible;
}

.status-new {
    background: #3498db;
    color: #ffffff;
}

.status-rejected {
    background: var(--danger);
    color: #ffffff;
}

.status-awaiting-prescriber {
    background: #ff7900;
    color: #ffffff;
}

.status-dispatched {
    background: #9b59b6;
    color: #ffffff;
}

.status-ready-to-send {
    background: #0d9070;
    color: #ffffff;
}

.status-approved {
    background: var(--success);
    color: #ffffff;
}

.status-waiting-approval {
    background: #d3d3d3;
    color: #ffffff;
}

.status-awaiting-payment {
    background: var(--warning);
    color: #000000;
}

input[type="number"].hide-counter {
    -moz-appearance: textfield;
}

input[type="number"].hide-counter::-webkit-inner-spin-button,
input[type="number"].hide-counter::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* System Responsive */
@media screen and (max-width: 767px) {
    div#Topbar .brand {
        display: none;
    }

    div#Topbar .subheader {
        display: none;
    }

    div#Topbar .responsive_menu_toggle {
        display: block;
        flex: 0 0 auto;
        align-items: center;
        align-content: center;
    }

    div#Topbar .responsive_menu_toggle .toggle {
        color: white;
        line-height: 55px;
        padding: 0 12px;
    }

    div#Aside .menu_collapse {
        display: none;
    }

    div#Aside {
        /* width: 0px; */
        transition: left .8s ease;
        z-index: 99;
        position: fixed;
        left: -210px;
    }

    div#Body.expanded div#Aside {
        left: 0;
    }

    div#Body.expanded div#Main {
        /*width: calc(100% - 210px);*/
    }

    div#Main {
        display: block;
        width: calc(100% - 0px);
        transition: width .8s ease;
    }

    .viewpicker {
        display: block;
        float: none;
    }
}

div.dataTables_wrapper div.dataTables_processing {
    padding: 10px !important;
    background: rgba(13, 144, 112, 0.49) !important;
    color: #FFF !important;
    border: 2px dotted darkgrey;
    border-radius: 3px !important;
    font-size: large !important;
    opacity: 1 !important;
    width: 100%;
    text-decoration: none;
    height: 100%;
    position: absolute;
}