body::after {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    content:url("../images/icons/loading-white.png")
            url("../images/icons/tick-circle.png")
            url("../images/icons/tick.png");
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html{
    /* overflow: auto; */
    overflow: auto;
}

body {
    margin: 0;
    font-size: 12px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
}

input[type="text"],
select {
    border: 1px solid #ccc;
    padding: 4px 8px;
    display: inline-block;
    height: 24px;
    font: inherit;
}

select {
    /* padding: 3px 8px 4px; */
    padding: 3px 5px 4px;
}

.overflow {
    overflow: initial !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.option-group {
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-bordered {
    border: 1px solid #dee2e6;
}
  
.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}
  
.table-bordered thead th,
.table-bordered thead td {
    border-bottom-width: 2px;
}
  

th, td{
	padding: 5px;
	text-align: left;
}

td {
	border-bottom: 1px solid #C6C6C6;
}

th {
	font-size: 12px;
	background-color: #f2f2f2;
	border-bottom: 1px solid #dbdbdb;
}

tr:hover td {
	background-color: #F2F2F2;
}

table td.sm {
    width: 30px;
}

table td.reg {
    width: 90px;
}

table td.lrg {
    width: 125px;
}

.text-center {
    text-align: center;
}

/* .button {
    display: inline-block;
    padding: 5px 15px;
    background-color: #777;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background .3s ease;
    border-radius: 3px;
} */

.button {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #ccc;
    color: #2d2d2d;
    cursor: pointer;
    transition: background .3s ease;
    font-size: 11px;
    background: #f5f5f5;
    border-radius: 3px;
}

.button:hover {
    /* background-color: #555; */
    background-color: #ededed;
}

.button.button-red {
    background: #f14c4c;
    color: #fff;
    border-color: #f14c4c;
}

.button.button-red:hover {
    background-color: #de4141;
    border-color: #de4141;
}

.button.button-light-red {
    border-color: #ff7676;
    background: #ffe2e2;
}

.button.button-light-red:hover {
    border-color: #ff5050;
    background: #ffd1d1;
}

.button-cancel {
    background-color: #666;
    border-color: #666;
    color: #fff;
}

.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
.basket-remove {
    float: right;
    padding: 3px;
    cursor: pointer;
}

.button-cancel:hover {
    background-color: #555;
    border-color: #555;
}   

.button-confirm,
.button-add-to-basket,
.button-apply,
.button-upload {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.button-confirm:hover,
.button-apply:hover,
.button-add-to-basket:hover,
.button-upload:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.button.loading {
    position: relative;
    color: transparent;
}

.button.loading::before {
    content: "";
    position: absolute;
    animation: spinner 1s linear infinite;
    border: 1px solid #ccc;
    border-bottom-color: #666;
    border-radius: 50%;
    transform: translate3D(-50%, -50%, 0);
    transform-origin: center;
    left: 50%;
    top: 50%;
    height: 8px;
    width: 8px;
}

@keyframes spinner {
    0% {
        transform: translate3d(-50%, -50%, 0) rotate(0deg);
    }
    100% {
         transform: translate3d(-50%, -50%, 0) rotate(360deg);
    }
}

a {
    color: #008ccb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.form-container {
    margin: 0 0 10px;
}

/*
|--------------------------------------------------------------------------
| General > Grid Layout
|--------------------------------------------------------------------------
*/

.segment-5, .segment-10, .segment-15, .segment-20, .segment-25, .segment-30, .segment-33, .segment-35, .segment-40, .segment-45, .segment-50, .segment-55, .segment-60, .segment-65, .segment-66, .segment-70, .segment-75, .segment-80, .segment-85, .segment-90, .segment-95 {
	float: left;
	clear: none!important;
}

.segment-5 {
	width: 5%;
}

.segment-10 {
	width: 10%;
}

.segment-15 {
	width: 15%;
}

.segment-20 {
	width: 20%;
}

.segment-25 {
	width: 25%;
}

.segment-30 {
	width: 30%;
}

.segment-33 {
	width: 33.33333333%;
}

.segment-35 {
	width: 35%;
}

.segment-40 {
	width: 40%;
}

.segment-45 {
	width: 45%;
}

.segment-50 {
	width: 50%;
}

.segment-55 {
	width: 55%;
}

.segment-60 {
	width: 60%;
}

.segment-65 {
	width: 65%;
}

.segment-66 {
	width: 66.666666666%;
}

.segment-70 {
	width: 70%;
}

.segment-75 {
	width: 75%;
}

.segment-80 {
	width: 80%;
}

.segment-85 {
	width: 85%;
}

.segment-90 {
	width: 90%;
}

.segment-95 {
	width: 95%;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.spacing-container-sm {
    padding: 8px;
}

.spacing-container-sm-top {
    padding-top: 8px;
}

.spacing-container {
    padding: 10px;
}

.spacing-container-lrg {
    padding: 15px;
}

.full-page-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.expander-toggle[data-toggled="0"] ~ .expander-container {
    display: none;
}

.expander-toggle[data-toggled="1"] ~ .expander-container {
    display: block;
}

.buttons-container-top {
    padding: 10px 10px 0 10px;
}

.buttons-container-bottom {
    padding: 0 10px 10px 10px;
}

.overlay,
.overlay-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
}

.overlay-background {
    background: rgba(0, 0, 0, 0.6);
}

.overlay-inner {
    position: absolute;
    z-index: 1000;
    top: 10%;
    /* top: 20%; */
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    max-height: 80%;
    max-width: 90%;
    min-width: 300px;
}

.overlay-xl .overlay-inner {
    width: 1200px;
    max-height: 90%;
    height: 90%;
    top: 5%;
}

.overlay-xl .overlay-inner > .rel {
    height: calc(100% - 50px);
}

.overlay-xl .overlay-inner .overlay-content {
    /* height: calc(100% - 45px); */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.overlay-xl .overlay-inner .overlay-section-main {
    height: calc(100% - 40px);
    /* overflow-y: auto; */
    overflow: hidden;
}

.overlay-xl .overlay-inner .overlay-form-main {
    height: 100%;
}

.overlay-l .overlay-inner {
    width: 600px;
}

.overlay-section-main > .loading {
    position: absolute;
    top: 40%;
    left: 50%;
}

.overlay-section-main > .loading:before {
    content: "";
    animation: spinner 1s linear infinite;
    border: 3px solid #ccc;
    border-bottom-color: #666;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    position: absolute;
}

/* .overlay-content {
    border-radius: 5px;
} */

.overlay-content-title {
    padding: 5px 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #aaa;
}

.overlay-header {
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background: #333;
    border-radius: 4px 4px 0 0;
}

.error-overlay .overlay-header {
    background-color: #f14c4c;
    border-color: #f14c4c;
}

.success-overlay .overlay-header {
    background-color: #27c527;
    border-color: #27c527;
}

.overlay-content {
    padding: 15px;
    background: #fff;
}
.overlay-content-pdf {
    padding-top: 0px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
}

.overlay-section {
    margin-bottom: 15px;
}

.overlay-buttons {
    display: flex;
    justify-content: space-between;
}

.overlay-buttons-center {
    justify-content: center;
}

.overlay-buttons .button {
    padding: 6px 14px;
    font-size: 12px;
}

.overlay-buttons-center .button:not(:last-child) {
    margin-right: 5px;
}

.loading-overlay .overlay-background {
    background-color: rgba(0, 0, 0, 0.3);
}

.loading-overlay-content {
    position: absolute;
    top: 40%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    height: 100px;
    width: 100px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-overlay-icon {
    height: 40px;
    width: 40px;
    background: url(../images/icons/loading-white.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 40px 40px;
    animation: spin 2000ms linear infinite;
}

.overlay-filters {
    /* background: #eee;
    padding: 8px 15px;
    display: flex;
    border-bottom: 1px solid #ccc;
    align-items: center; */

    /* background: #eee; */
    /* padding: 14px 15px 7px; */
    padding: 0 0 5px;
    display: flex;
    /* border-bottom: 1px solid #ccc; */
    align-items: center;
    /* margin-bottom: -45px; */
    margin-bottom: -29px;
    /* background: #fff; */
    border: none;
    width: 75%;
    z-index: 999;
}

.overlay-filter {
    margin-right: 5px;
}

.overlay-filters .button {
    padding: 6px 12px 5px;
}

body.dragging, body.dragging * {
    cursor: move !important;
}

.dragged {
position: absolute;
opacity: 0.5;
z-index: 2000;
}

ol.example li.placeholder {
position: relative;
/** More li styles **/
}
ol.example li.placeholder:before {
position: absolute;
/** Define arrowhead **/
}

@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

.image-selector-icon {
    background-image: url(../images/icons/picture.png);
    height: 24px;
    width: 24px;
    border: 1px solid #ccc;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 65%;
    margin-left: -1px;
    cursor: pointer;
}

.bg-w {
    background: #fff;
}

.data-table>thead>tr>th,
.data-table>tbody>tr>td {
    padding: 2px 8px;
    font-size: 11px;
}

table.dataTable thead .sorting:before, 
table.dataTable thead .sorting:after, 
table.dataTable thead .sorting_asc:before, 
table.dataTable thead .sorting_asc:after, 
table.dataTable thead .sorting_desc:before, 
table.dataTable thead .sorting_desc:after, 
table.dataTable thead .sorting_asc_disabled:before, 
table.dataTable thead .sorting_asc_disabled:after, 
table.dataTable thead .sorting_desc_disabled:before, 
table.dataTable thead .sorting_desc_disabled:after {
    bottom: 0.3em;
}

div.dataTables_wrapper div.dataTables_length select {
    padding: 0 8px;
}

.dataTables_wrapper label {
    margin-bottom: 0;
}

.dataTables_wrapper input[type="text"],
.dataTables_wrapper input[type="text"]:focus,
.dataTables_wrapper select,
.dataTables_wrapper select:focus {
    border: 1px solid #ccc;
    padding: 4px 8px;
    display: inline-block;
    height: 24px !important;
    font: inherit;
    border-radius: 0;
    box-shadow: none;
}

.dataTables_wrapper input[type="checkbox"] {
    margin: 0;
}

.dataTables_wrapper select,
.dataTables_wrapper select:focus {
    padding: 3px 8px 4px;
}

.dataTables_wrapper td.small,
.dataTables_wrapper th.small {
    width: 25px;
    text-align: center;
    padding: 2px 0;
}

.dataTables_wrapper {
    height: 100%;
    overflow: hidden;
}

.dataTables_wrapper > .row:nth-child(2) {
    height: calc(100% - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    margin: 5px 0;
}

.dataTables_wrapper > .row:nth-child(2) > .col-sm-12 {
    padding: 0;
}

.dataTables_wrapper > .row:nth-child(3) {
    display: none;
}

.dataTables_wrapper .pagination>li>a, 
.pagination>li>span {
    padding: 2px 10px;
    border-radius: 0;
    text-decoration: none;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 5px;
}

div.dataTables_wrapper div.dataTables_filter input {
    height: 24px;
    line-height: 12px;
    border-radius: 0;
    padding: 0 6px;
    border-color: #ccc;
    font-size: 12px;
}

table.dataTable {
    margin: 0 !important;
}

/* Overwrite some of the bootstrap resets... */

label {
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: initial;
    line-height: initial;
    font-weight: initial;
}

h3 {
    font-weight: bold;
}

dl, ol, ul, p {
    margin-top: 1rem;
}

.overlay-section-title {
    padding: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #888;
    margin: 0px 0 5px;
    color: #333;
}

.image-selector-container {
    display: flex;
    margin-bottom: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.image-selector-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    margin-right: 5px;
    height: 125px;
    width: 15%;
    cursor: pointer;
    overflow: hidden;
}

.image-selector-item::before {
    content:"";
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.image-selector-item:hover::before,
.image-selector-item[data-selected="1"]::before {
    display: block;
}

.image-selector-item[data-selected="1"]::before {
    /* Background tick... */
    background-image: url("../images/icons/tick-circle.png");
    background-size: 20px 20px;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.7);
}

.image-selector-item img {
    max-width: 100%;
    max-height: 100%;
}

.custom-checkbox-container {
    position: relative;
    margin: 0 0 5px;
}

.custom-checkbox {
    opacity: 0;
    width: 0;
    pointer-events: none;
    z-index: -1;
}

.custom-checkbox-label {
    cursor: pointer;
}

.custom-checkbox-label::before {
    content: "";
    top: 0;
    left: 0;
    height: 1rem;
    width: 1rem;
    pointer-events: none;
    border: #aaa solid 1px;
    /* border-radius: 0.25rem; */
    display: inline-block;
    margin-bottom: -3px;
    margin-right: 5px;
}

.custom-checkbox-label::after {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 70%;
    /* background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%232d2d2d" d="M5 2c-1.654 0-3 1.346-3 3v14c0 1.654 1.346 3 3 3h14c1.654 0 3-1.346 3-3v-14c0-1.654-1.346-3-3-3h-14zm19 3v14c0 2.761-2.238 5-5 5h-14c-2.762 0-5-2.239-5-5v-14c0-2.761 2.238-5 5-5h14c2.762 0 5 2.239 5 5z"/></svg>'); */
    /* transition: .3s ease; */
}

.custom-checkbox:checked ~ .custom-checkbox-label::after {
    /* background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23007bff" d="M10.041 17l-4.5-4.319 1.395-1.435 3.08 2.937 7.021-7.183 1.422 1.409-8.418 8.591zm-5.041-15c-1.654 0-3 1.346-3 3v14c0 1.654 1.346 3 3 3h14c1.654 0 3-1.346 3-3v-14c0-1.654-1.346-3-3-3h-14zm19 3v14c0 2.761-2.238 5-5 5h-14c-2.762 0-5-2.239-5-5v-14c0-2.761 2.238-5 5-5h14c2.762 0 5 2.239 5 5z"/></svg>'); */
    background-image: url("../images/icons/tick.png");
    border: #4e95ff solid 1px;

}

.input-disabled {
    pointer-events: none;
    cursor: default;
}

.property-selector-icon {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #ccc;
    margin-left: -1px;
    cursor: pointer;
}