.left-bar {
    width: 200px;
    float: left;
}

.right-bar {
    margin-left: 20px;
    overflow-x: scroll;
    float: right;
}

/* Page */
html, body {
    background: #3f7d9f;
}

a {
    cursor: pointer;
}

.relative {
  position: relative;
}

#content {
    background: white;
    padding: 10px;
    border-radius: 0 5px 5px 5px;
}

html.guest #content {
    border-radius: 5px;
}

.box-body {
    padding-left: 25px;
    padding-right: 25px;
}

.box-header  {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 5px;
}

.box-body {
    overflow-x: hidden;
}

.box-header h3 {
    margin-top: 0;
}

.box-header .dropdown {
    display: inline-block;
}

.container.main-container {
    width: auto;
    margin-left: 10px;
    margin-right: 10px;
}

.left-column label {
    font-weight: normal;
    padding-left: 5px;
}

.left-column .form-control {
    height: auto;
    padding: 0 5px;
}

.left-column .form-group {
    margin-bottom: 3px;
}

.docs-form-group {
    display: flex; 
    gap: 20px;
}

.left-column .control-label {
     margin-bottom: 0;
 }

.card.card-body {
    border: solid 1px grey;
    padding: 5px;
    margin: 5px;
    display: inline-block;
    border-radius: 3px;
}
/* /Page */

/* Table */
th, td {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-x: hidden;
}

#bulk-form th,
#bulk-form td {
    max-width: 300px;
    overflow: hidden;
}

.table-style {
    padding: 3px 3px 2px 3px;
    border-radius: 3px;
    vertical-align: sub;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 2px!important;
}

td .kv-editable-link {
    color: rgb(51, 51, 51);
    border-bottom-style: none;
    padding: 1px 1px!important;
    min-height: 2rem;
}
td .kv-editable-link:hover {
    text-decoration: underline;
    color: rgb(51, 51, 51);
}

.kv-editable-form-inline button,
.kv-editable-popover button {
    font-size: 16px;
}

.kv-editable-popover .popover-title {
    display: none;
}

table.table {
    table-layout: fixed;
    width: auto;
    font-size: 14px;
}

.ui-resizable-e {
    right: -2px
}

#columns-list > li{
    list-style: none;
}

#columns-list {
    padding-left: 5px;
}

.table-header .btn,
.table-header div {
    display: inline-block;
}

.table-header {
    padding-left: 15px;
    padding-right: 10px;
    padding-bottom: 5px;
}

tr.closed td:not(.title),
tr.closed td:not(.title) a,
tr.closed td:not(.title) button {
    pointer-events: none;
    color: grey;
}

.action-column-head {
    width: 75px !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}
.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #ffffff;
}

.changes-table th,
.changes-table td {
    max-width: 250px;
}

.changes-table {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.changes-table th {
    background-color: #b8daff;
}

#changes-list td,
#changes-list th {
    padding: 2px;
}

#changes-list .change-data > td{
    padding: 10px;
}

td.td-eye {
    max-width: 40px;
}

#changes-list > div > table {
    width: 100%;
}

.label-column {
    width: 95px!important;
}

td {
    height: 30px;
}

.sub-table:hover {
    overflow: hidden;
}

.sub-table:hover {
    overflow: visible;
}

.sub-table:hover > table {
    position: relative;
    z-index: 1;
}

.change-data > td,
.change-data {
    overflow: visible;
}

/* /Table */

/* Simple table */
.simple-table {
    background: white;
    border: solid 1px black;
}

.simple-table td,
.simple-table th {
    border: solid 1px black;
    padding: 3px;
}
.report .simple-table td,
.report .simple-table th {
    padding: 0 3px;
}
.simple-table a {
    cursor: pointer;
}

#order-items-table input {
    max-width: 120px;
}

.order-items-table td {
    word-break: break-all;
    white-space: pre-wrap;
}

#order-items-table input.item-price,
#order-items-table input.item-amount {
    max-width: 70px;
}
/* /Simple table */

/* Calendar */

.model-box {
    width: 100%;
}

.calendar table td .model-box p {
    border: solid 1px rgb(51, 51, 51);
    color: rgb(51, 51, 51);
    padding: 3px;
    background: #0d9dfb;
    width: 90%;
    overflow: hidden;
    margin-bottom: 2px;
}
/* /Calendar */

/* Tabs */
#tabs {
    min-height: 32px;
}

#main-tabs > li > a {
    background: #5d91ae;
    color: white;
    border: solid 1px rgba(0,0,0,0);
    /*border-top-color: #0d9dfb;
    border-left-color: #0d9dfb;
    border-right-color: #0d9dfb;*/
}

#main-tabs > li > a:hover {
    background: #558ba9;
    color: white;
    border: solid 1px #558ba9;
}

#main-tabs > li.active > a {
    color: #0c2230;
    background: white;
    border: solid 1px white;
}

#main-tabs {
    border-bottom: solid 1px rgba(0,0,0,0);
}

#main-tabs.nav > li > a {
    padding: 5px;
}
/* /Tabs */

/* Navbar */
#top-search {
    padding-top: 13px;
}

#top-search input{
    background-color: #343434;
    border-radius: 5px;
    border: solid 1px black;
    padding-left: 5px;
    color: white;
    box-shadow: #525252 0 1px;
}

#top-search input:hover{
    background-color: #404040;
}

#top-search input:focus{
    background-color: white;
    color: black;
    outline: none;
}

.navbar .divider-vertical > a {
    padding: 0;
}

.navbar .divider-vertical {
    height: 44px;
    margin: 3px 5px;
    border-right: 1px solid #2d2d2d;
    border-left: 1px solid #101010;
    display: inline-block;
    width: 0;
}

.navbar .navbar-icon > a {
    padding-left: 5px;
    padding-right: 5px;
}

#navbar-add > a > .caret {
    display: none;
    padding: 0 20px;
}

.navbar > .container {
    width: auto;
}
/* /Navbar */

/* Left panel */
.left-column {
    width: 194px;
    display: inline-block;
    float: left;
}

.right-column {
    width: calc(100% - 204px);
    float: right;
    display: inline-block;
}

.left-block {
    margin-bottom: 10px;
    padding: 0 3px;
    background: #cfeef8;
}

.left-block label {
    color: #333;
}

.left-block-header {
    background: #1797c0;
    color: white;
    text-align: left;
    padding: 5px 5px;
    margin: 0 -3px;
    font-size: 12px;
}

.left-block-body {
    padding: 5px;
    font-size: 13px;
}

.left-column {
    padding: 0;
}

#expand-search {
    margin-bottom: 5px;
}

#expand-search:after {
    content: " ⬇";
}

#expand-search.pressed:after {
    content: " ⬆";
}

span.help-questionmark {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
}

.filter-unit {
    position: relative;
}
/* /Left panel */

/* Modal */
#modal-wrapper.hidden {
    display: none;
}

#modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 1031;
}

#modal-window {
    position: absolute;
    z-index: 1032;
    background: white;
    min-width: 300px;
    min-height: 100px;
    border-radius: 5px;
}

#modal-header {
    background: #3f7d9f;
    border-radius: 5px 5px 0 0;
    padding: 5px 15px;
}

#modal-header-text,
#modal-header-text > h5 {
    color: white;
    font-size: 18px;
}


#modal-body {
    padding: 15px;
}

#modal-footer > a {
    margin: 5px;
}


div.close {
    position: absolute;
    right: 15px;
    top: 7px;
    width: 32px;
    height: 32px;
    opacity: 1;
    cursor: pointer;
    z-index: 3;
    transition-duration: 1s;
    border: solid 2px white;
    border-radius: 50%;
}

div.close:before,
div.close:after {
    position: absolute;
    left: 13px;
    content: ' ';
    height: 30px;
    width: 3px;
    background-color: white;
    border-radius: 3px;
    top: -1px;
}
div.close:before {
    transform: rotate(45deg);
}
div.close:after {
    transform: rotate(-45deg);
}

#order-view-modal {
    height: 500px;
    width: 500px;
}

#changes-list .modal-body {
    padding: 10px;
    background: white;
    margin: 60px auto;
    max-width: 1000px;
    border-radius: 10px;
}

.td-eye .disabled{
    color: grey;
    pointer-events: none;
}
/* /Modal */

/* Filters */
#filters-list > li{
    list-style: none;
}

#filters-list {
    padding-left: 5px;
}

label {
     color: black;
 }

#filters button {
    padding: 5px;
}

.ms-parent.form-control {
    border: none;
    width: 100% !important;
    box-shadow: none;
    padding: 0;
}

button.ms-choice {
    height: 24px;
    border: 1px solid #ccc;
}


.input-group-addon {
    padding: 3px 11px;
    font-size: 12px;
}

select[multiple="multiple"] {
    color: white;
    overflow-y: hidden;
}

.report-filter-unit.date .input-group {
    width: calc(100% - 25px);
    float: right;
}
/* /Filters */

/* Other */
input.no-border,
textarea.no-border {
    border: none;
    margin: 2px;
    padding: 2px;
}

#reminder-popup .loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin-left: auto;
    margin-right: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#activities-reminder ul {
    list-style: none;
    padding-left: 5px;
}

.sortable-list {
    display: inline-block;
    list-style: none;
    padding-left: 0;
}

.sortable-list > li {
    margin: 3px;
}

.detail-view td {
    white-space: normal;
}

.form-control[hidden] {
    display: none;
}

.preview-box-listener {
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

#preview-box {
    height: 200px;
    width: 200px;
    position: fixed;
    border: solid 3px grey;
    border-radius: 5px;
    z-index: 1000;
    display: none;
    background-image: url("/images/loading.gif");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: lightgrey;
}

@media (max-width: 988px) {
    .order-contact {
        position: static;
        right: unset;
    }
}

.unconfirmed-apps-count {
    color: red;
    text-shadow: 0 0 1px #fff;
}

.confirm-order {
    cursor: pointer;
}

a.exclamation-before:before,
a.question-before:before {
    height: 16px;
    width: 18px;
    content: "";
    display: inline-block;
    background-size: contain;
}

a.exclamation-before:before {
    background-image: url("/images/exclamation.png");
}

a.question-before:before {
    background-image: url("/images/question.png");
}

.view-preview {
    max-width: 200px;
    max-height: 200px;
    cursor: pointer;
}

.view-preview.preview-big {
    max-width: 80vw;
    max-height: none;
}

#order-preview_file,
#email-from [name="attachment[]"]{
    height: 200px;
    border: dashed;
    border-radius: 5px;
}

.order-data {
    z-index: 1;
}

.phone-choose-action, 
.whats-app-action__list-choose {
    display: block;
    position: absolute;
    padding: 10px;
    border: solid 2px grey;
    box-shadow: 0 0 1px #000;
    background: lightgrey;
    border-radius: 10px;
    margin-top: 7px;
    font-size: 16px;
}

.phone-choose-action::before,
.whats-app-action__list-choose::before {
    content: "";
    border: solid 10px;
    border-color: transparent transparent grey transparent;
    height: 0;
    width: 0;
    position: absolute;
    display: block;
    top: -20px;
    left: 5px;
}



/* /Other */

.set-data {
    float: right;
    margin-left: 3px;
}

.items-list .set-data {
    float: none;
}

.delivery-order-delete {
    color: #337ab7;
    cursor: pointer;
}

.filter-units {
    padding-bottom: 10px;
}

#input-source-detailed, #dropdown-source-detailed, 
#input-destination-detailed, #dropdown-destination-detailed {
    display: none;
    margin-bottom: 1.5rem;
}

.field-warehousehistoryfilter-source select, .field-warehousehistoryfilter-destination select,  
.warehousehistoryfilter select, .warehousehistoryfilter input{
    width: 100%;
    background: white;
    min-height: 3rem;
    border-radius: 2rem;
    padding: 0 1rem;
    border: none;
}

.variation-param-row {
    margin-bottom: 1.5rem;
}
.block-part .variation-param-row {
    padding: 0 1rem;
}

.left-column-operation {
    width: 194px;
    height: 900px;
    display: inline-block;
    float: left;
}

.left-column-operation label {
    font-weight: normal;
    padding-left: 5px;
}

.left-column-operation .form-control {
    height: auto;
}

.left-column-operation .form-group {
    margin-bottom: 3px;
}

.left-column-operation .control-label {
     margin-bottom: 0;
 }

.right-column-operation {
    width: calc(100% - 194px);
    padding-left: 10px;
    display: inline-block;
}

.counterparty-info {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    height: 200px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 10px;
}

.counterparty-info table {
    width: 100%;
}

.counterparty-info .title-ceil {
    width: 50px;
}

.counterparty-title {
    color: #808080;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px 5px 0;
}

.has-error {
    color: #a94442;
}

.form-group .highlight-addon {
    height: 12px;
}

.dash {
    font-size: 18px;
    height: 20px;
    align-items: center;
    display: flex;
}

.filter-date {
    display: flex;
}

.custom-date {
    height: 23px;
    margin-bottom: 0;
}

.datepicker-input {
    position: relative;
    background: url('../images/calendar_custom.svg') no-repeat;
    background-size: 14px;
    padding-right: 16px;
    background-color: white; 
    box-sizing: border-box; 
    height: auto;
    background-position: right calc(50% - 33px) top calc(50% - 1px);
}

.filter-unit.date.custom-filter-date {
    margin-bottom: 8px;
}

#warehousehistoryfilter-destination, #warehousehistoryfilter-source, 
#warehousehistoryfilter-search_destination_order_id, #warehousehistoryfilter-destination_detailed,
#warehousehistoryfilter-source_detailed, #warehousehistoryfilter-search_source_order_id  {
    border: 0.15rem solid #ccc;
    border-radius: 4px;
    min-height: 3rem;
    font-size: 1.4rem!important;
    background: white;
    height: auto;
    width: 100%;
}

.custom-input-class {
    padding: 0 5px;
    height: 24px !important;
}

.ms-drop {
    width: max-content!important;
}

#detailed-sales-report-btns {
    display: flex;
    justify-content: center;
}

#simple-sales-report-btns {
    display: flex;
    justify-content: center;
}

#progress-file {
    display: none;
}

#excel-report-custom-upload {
    display: flex;
    justify-content: center;
}

/* calculator loader -> */
.calculator-loader{
  position: absolute;
  top: 0;
  left: 5px;
  bottom: -10px;
  right: 5px;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  z-index: 1000;
  display: none;

  &.show {
    display: block;
  }
  
  .calculator-loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgb(0 47 69 / 33%);
    z-index: 1001;
  }
  
  .calculator-loader-inner{
    svg.loader-element {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 1002;
    }
  }
}

/* <- calculator loader */