/* Orders table */
#main-doc-body #identSearchTable input[type=time] {
    padding: 0px 8px;
}

#main-doc-body #identSearchTable .ident-dropdowns .filter-option {
    border-top: 1px solid $table-border-color;
    border-right: 1px solid $table-border-color;
}

#main-doc-body #identSearchTable .ident-dropdowns .filter-option-inner {
    margin-top: 5px;
    font-size: 14px;
    font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#main-doc-body #identSearchTable .InputField-Begin,
#main-doc-body #identSearchTable .InputField-Duration {
    width: 79px;
}

#main-doc-body #identSearchTable .InputField-Contractor,
#main-doc-body #identSearchTable .InputField-Means {
    width: 130px;
}

.order-calendar-selectpicker {
    .filter-option {
        position: absolute;

        .filter-option-inner-inner {
            position: relative;
            top: 5px;
        }
    }
}

#main-doc-body #identSearchTable .ident-dropdowns {
    width: 130px;
}

#main-doc-body #identSearchTable .ident-dropdowns input.form-control {
    height: unset;
}

/* Calendar sidebar */
#proforma-invoice-calendar {
    margin: 20px 0px 10px 0px;
}

#proforma-invoice-calendar > .ui-datepicker .ui-datepicker-group {
    width: -webkit-fill-available;
}

#proforma-invoice-calendar .ui-datepicker-calendar td a {
    background: transparent;
    border: 0;
    text-align: center;
}

#proforma-invoice-calendar .ui-state-active {
    background-color: $accent-color !important;
    color: $content-background-color !important;
}

#proforma-invoice-calendar .ui-datepicker-header {
    background: $input-disabled-background-color;
    border: none;
}

.calendar-bcg {
    background-color: $table-hover-row-background-color;
}

.calendar-bcg-trasnp {
    background-color: transparent;
}

#proforma-invoice-calendar .ui-state-hover {
    border: none;
    background: transparent;
}

#proforma-invoice-calendar a.ui-datepicker-prev::before,
#proforma-invoice-calendar a.ui-datepicker-next::before {
    font-family: "FontAwesome";
    color: $menu-color;
}

#proforma-invoice-calendar a.ui-datepicker-prev,
#proforma-invoice-calendar a.ui-datepicker-next {
    top: 5px;
}

#proforma-invoice-calendar a.ui-datepicker-prev::before {
    content: "\f053";
}

#proforma-invoice-calendar a.ui-datepicker-next::before {
    content: "\f054";
}

#proforma-invoice-calendar span.ui-icon-circle-triangle-w,
#proforma-invoice-calendar span.ui-icon-circle-triangle-e {
    background-image: none;
}

#proforma-invoice-calendar .ui-datepicker-prev {
    left: 15px;
}

#proforma-invoice-calendar .ui-datepicker-prev:hover {
    left: 14px;
}

/* Calendar table */
#daily-calendar-body,
#weekly-calendar-body,
#monthly-calendar-body,
#daily-calendar-body-tools,
#weekly-calendar-body-tools,
#monthly-calendar-body-tools {
    max-height: 90%;
}

#daily-calendar-body,
#weekly-calendar-body,
#monthly-calendar-body,
#daily-calendar-body-tools,
#weekly-calendar-body-tools,
#monthly-calendar-body-tools {
    min-height: calc(100% - 90px);
}

.order-cal-table thead tr th {
    background-color: #F5F5F6;
    border-top: 2px solid $table-border-color !important;
    z-index: 3;
}

.order-cal-table td:not(:first-child):not(.tooltip-cell) {
    border: none !important;
    border-bottom: 1px solid $table-border-color !important;
    border-right: 1px solid $table-border-color !important;
}

#daily-table tbody,
#daily-table-tools {
    height: calc(100% - 52px);
}

#weekly-table tbody,
#monthly-table tbody,
#weekly-table-tools,
#monthly-table-tools {
    height: calc(100% - 36px);
}

.order-cal-table .order-cal-header {
    align-items: center;
}

.order-cal-table .order-cal-header .dt-image-circle,
.order-cal-table .order-cal-header .dt-text-avatar,
.order-cal-table .order-cal-header .panel-title {
    margin-right: 5px;
}

.order-cal-header {
    display: inline-flex;
    min-width: 200px;
}

#monthly-table .order-cal-header,
#monthly-table-tools .order-cal-header {
    min-width: 100px;
    max-width: 150px;
}

.activeDay {
    background-color: $accent-color !important;
    color: $content-background-color;
}

.calendar-events,
.calendar-absence {
    padding: 0px 4px;
    margin: 0;
    border-left-width: 4px;
    border-left-style: solid;
    box-shadow: 1px 1px 10px 0px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    overflow-wrap: anywhere;
}

#daily-table .calendar-events,
#daily-table-tools .calendar-events,
#mini-table-workers .calendar-events,
#mini-table-tools .calendar-events,
#daily-table .calendar-absence,
#daily-table-tools .calendar-absence,
#mini-table-workers .calendar-absence,
#mini-table-tools .calendar-absence {
    position: absolute;
    width: 216px;
    min-width: 216px;
}

#daily-table .calendar-events:hover,
#daily-table-tools .calendar-events:hover,
#mini-table-workers .calendar-events:hover,
#mini-table-tools .calendar-events:hover
{
    box-shadow: 1px 1px 10px 0px rgba(0, 0, 0, 0.9);
    /*border-bottom: 2px solid $table-border-color;
    border-top: 2px solid $table-border-color;*/
}

#weekly-table .calendar-events,
#monthly-table .calendar-events,
#weekly-table .calendar-absence,
#monthly-table .calendar-absence,
#weekly-table-tools .calendar-events,
#monthly-table-tools .calendar-events,
#weekly-table-tools .calendar-absence,
#monthly-table-tools .calendar-absence {
    height: 45px;
    padding: 4px 2px;
}

#daily-table tr td p.absence,
#daily-table-tools tr td p.absence,
#mini-table-workers tr td p.absence,
#mini-table-tools tr td p.absence,
#daily-table tr td div.absence,
#daily-table-tools tr td div.absence,
#mini-table-workers tr td div.absence,
#mini-table-tools tr td div.absence {
    width: 100px;
    min-width: 100px;
}

.absence-ml {
    margin-left: 116px;
}

.absence.absence-ml.with-absence:hover {
    z-index: 99 !important;
}

#daily-table .with-absence,
#daily-table-tools .with-absence,
#mini-table-workers .with-absence,
#mini-table-tools .with-absence {
    background: pink !important;
    border: 3px solid #FF0000;
    border-left-color: #FF0000 !important;
}

.order-cal-table .fa-exclamation {
    color: red;
    display: inline;
    float: left;
    margin: 2px 5px 0px 0px;
}

#daily-table .collapse-items,
#daily-table-tools .collapse-items,
#mini-table-workers .collapse-items,
#mini-table-tools .collapse-items,
{
    height: 35px;
    overflow: hidden;
}

#weekly-table .collapse-items,
#monthly-table .collapse-items,
#weekly-table-tools .collapse-items,
#monthly-table-tools .collapse-items {
    height: 55px;
    overflow: hidden;
}

.during-absence {
    border: 2px solid #FF0000 !important;
    background: #ffc0cb !important;
}

// Enable drop to div on collapse
.cal-item-full-height {
    min-height: 55px;
    height: 100% !important;
}

.cell-width {
    min-width: 225px;
}

.cell-position-relative {
    position: relative;
}

#daily-table .cell-width {
    background-color: $input-disabled-background-color;
}

#monthly-table .cell-width,
#monthly-table-tools .cell-width {
    min-width: 100px;
    max-width: 150px;
}

.has-planned-time {
    background-color: $content-background-color !important;
}

#daily-table tbody tr:nth-child(odd) td:not(:first-child):not(.tooltip-cell):not(.calendar-typeahead-td),
#daily-table-tools tbody tr:nth-child(odd) td:not(:first-child):not(.tooltip-cell):not(.calendar-typeahead-td),
#mini-table-workers tbody tr:nth-child(odd) td:not(:first-child):not(.tooltip-cell),
#mini-table-tools tbody tr:nth-child(odd) td:not(:first-child):not(.tooltip-cell) {
    border-bottom: 1px dashed $table-border-color !important;
}

#daily-table tbody tr:nth-child(even) td:not(:first-child),
#daily-table-tools tbody tr:nth-child(even) td:not(:first-child),
#mini-table-workers tbody tr:nth-child(even) td:not(:first-child),
#mini-table-tools tbody tr:nth-child(even) td:not(:first-child) {
    border-top: none !important;
}

#daily-table thead tr th:first-child:not(.calendar-typeahead-th) {
    border-bottom: 1px solid $table-border-color;
    height: 51.06px;
}

#daily-table tbody tr td,
#daily-table-tools tbody tr td,
#mini-table-workers tbody tr td,
#mini-table-tools tbody tr td {
    padding: 0;
}

#weekly-table tbody tr td div p,
#monthly-table tbody tr td div p,
#weekly-table-tools tbody tr td div p,
#monthly-table-tools tbody tr td div p {
    margin-bottom: 5px;
}

#weekly-table tbody tr td:first-child,
#monthly-table tbody tr td:first-child,
#weekly-table-tools tbody tr td:first-child,
#monthly-table-tools tbody tr td:first-child {
    z-index: 2;
}

#weekly-table tbody .cell-width:not(:first-child),
#monthly-table tbody .cell-width:not(:first-child),
#weekly-table-tools .cell-width:not(:first-child),
#monthly-table-tools .cell-width:not(:first-child) {
    position: relative;
}

td.ui-selecting,
td.cell-selected {
    background-color: beige !important;
}

#daily-table td:empty,
#daily-table-tools td:empty {
    cursor: pointer;
}

#weekly-table td p.calendar-events,
#monthly-table td p.calendar-events,
#weekly-table-tools td p.calendar-events,
#weekly-table-tools td p.calendar-events {
    cursor: move;
    z-index: 1;
}

.events-range {
    position: absolute;
}

.event-helper {
    background: transparent;
    border-left-style: none;
    box-shadow: none;
}

#weekly-table td:first-child div,
#monthly-table td:first-child div,
#weekly-table-tools td:first-child div,
#monthly-table-tools td:first-child div,
#mini-table-workers td div.calendar-events,
#mini-table-tools td div.calendar-events,
.calendar-absence {
    cursor: default;
}

#daily-table td,
#daily-table-tools td,
#mini-table-workers td,
#mini-table-tools td {
    height: 35px;
}

#daily-table tbody tr td:first-child,
#daily-table-tools tbody tr td:first-child,
#mini-table-workers tbody tr td:first-child,
#mini-table-tools tbody tr td:first-child {
    z-index: 10;
}

#daily-table thead th,
#daily-table-tools thead th,
#mini-table-workers thead th,
#mini-table-tools thead th {
    z-index: 11;
}

#daily-table thead th:first-child,
#daily-table-tools thead th:first-child,
#mini-table-workers thead th:first-child,
#mini-table-tools thead th:first-child {
    z-index: 12;
}

/* Sticky header and first col */
.calendar-wrapper {
    overflow: scroll;
    position: relative;
}

.order-cal-table {
    position: relative;
    border-collapse: separate;
    border-spacing: 0;
    height: 100%;
    max-height: 100%;
    margin-bottom: 0px;
}

.order-cal-table thead th {
    position: sticky;
    top: -1px;
    border-bottom: 1px solid $table-border-color;
    border-right: 1px solid $table-border-color;
}

.order-cal-table thead th:first-child {
    left: 0;
    z-index: 4;
}

.order-cal-table tbody td:first-child {
    position: sticky;
    left: 0;
    background: $content-background-color;
    border-right: 1px solid $table-border-color;
    border-bottom: 1px solid $table-border-color;
    border-top: none !important;
}

.order-cal-table tbody tr:last-child td {
    border-right: none;
}
#daily-table tbody td:first-child:not(.calendar-typeahead-td),
#daily-table-tools tbody td:first-child:not(.calendar-typeahead-td),
#mini-table-workers tbody td:first-child,
#mini-table-tools tbody td:first-child {
    border-bottom: none !important;
}

/* Filters */
.cal-filters .bootstrap-select div.dropdown-menu {
    min-width: 150px !important;
    max-width: 170px !important;
}

.cal-filters .bootstrap-select div a {
    white-space: pre-wrap;
}

.cal-customers-filter-width .bootstrap-select div.dropdown-menu {
    max-width: none !important;
    width: calc(25vw - 80px);
}

#calendar-doc-head .filter-option {
    width: 90%;
}

/* Tooltip */
.tooltip-table tbody tr td {
    padding: 0px 10px !important;
    border: none !important;
    text-align: left;
    border-spacing: 10px 0;
    height: 25px !important;
}

.tooltip-table tbody tr td:first-child {
    text-align: right !important;
}

.tooltip-header {
    margin: 0;
    padding: 10px;
    text-align: left;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.tooltip-table .addable-button {
    position: absolute;
    right: 12px;
    top: 8px;
}

.tooltip-table tbody tr td > .API {
    width: 90% !important;
}

.tooltip-table .partner-cell {
    position: relative !important;
}

.tooltip-table #noteT {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.tooltip-cell {
    white-space: nowrap;
    position: unset !important;
}

.order-cal-table .tooltip-inner {
    width: 335px;
    min-width: 220px;
    max-width: 335px;
    padding: 0;
    background-color: $content-background-color;
    color: $main-text-color;
    box-shadow: 1px 1px 20px 0px rgba(0, 0, 0, 0.6);
}

.order-cal-table .tooltip.right .tooltip-arrow {
    border-right-color: $content-background-color !important;
}

.order-cal-table .tooltip.left .tooltip-arrow {
    border-left-color: $content-background-color !important;
}

.order-cal-table .tooltip.bottom .tooltip-arrow {
    border-bottom-color: $content-background-color !important;
}

.order-cal-table .tooltip.top .tooltip-arrow {
    border-top-color: $content-background-color !important;
}

.order-cal-table .tooltip.in {
    opacity: 1;
}

#weekly-table .tooltip-table tbody tr td:first-child,
#monthly-table .tooltip-table tbody tr td:first-child {
    position: relative;
}

.tooltip-times {
    display: flex;
}

.tooltip-times input {
    height: auto;
}

#dateTInput,
#dateValidTInput {
    margin-right: 5px !important;
    width: 80%;
}

.tooltip-cancel,
.tooltip-create {
    padding: 2px 6px !important;
    font-size: 13px !important;
}

.tooltip-cancel {
    color: unset;
}

#tooltipCreateHelper .tooltip-buttons {
    text-align: right !important;
    padding-bottom: 10px !important;
}

#tooltipCreateHelper .tooltip-inner {
    background-color: white;
    color: black;
    width: 335px;
    min-width: 220px;
    max-width: 335px;
    border: 1px solid black;
    border-radius: 4px;
}

#tooltipCreateHelper .arrow-create {
    display: none;
}

#tooltipCreateHelper tbody tr td > .API {
    width: 90% !important;
}

#tooltipTimeError,
#tooltipCustomerError td {
    color: red;
}

.invalid-input::-webkit-input-placeholder {
    color: red;
}

.display-none {
    display: none;
}

.inactive-link {
    pointer-events: none;
    cursor: default;
    color: lightgray;
}

#daily-table tbody tr td.calendar-typeahead-td {
    text-align: left;
    padding: 8px;
    border-right: none !important;
}

#daily-table tbody tr th.calendar-typeahead-th {
    border-right: none !important;
    border-top: none !important;
}


/* Color picker in order table */
.color-picker-dropdown {
    min-width: 60px;
    height: 34px;
    padding: 5px 0px 8px 0px;
    border: 1px solid $table-border-color;
}

.color-picker-dropdown .dropdown-menu {
    min-width: 100px;
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.color-picker-dropdown .dropdown-toggle {
    position: absolute;
    right: 4px;
    top: 11px;
    font-size: 11px;
}

.color-picker-dropdown .color-picker-box {
    width: 36px !important;
    height: 15px !important;
    margin: 5px;
}

.color-picker-dropdown p {
    margin-bottom: 0px;
}

.tooltip-cell.edit-row .form-control,
.tooltip-cell.edit-row .btn {
    font-size: 12px !important;
}

.tooltip-cell.edit-row div.bootstrap-select {
    border-bottom: none;
}

.tooltip-cell.edit-row .inner.open {
    max-height: 200px !important;
}

.tooltip-cell.edit-row textarea {
    margin-bottom: 10px;
}

/* Timepicker */
input[type="time"] {
    position: relative;
}

input[type="time"]::-webkit-datetime-edit {
    margin-left: 25px;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    left: 0px;
    position: absolute;
    margin: 0;
    margin-left: 5px;
}

.ident-time-picker {
    height: 25px;
    font-size: 14px;
    width: auto;
}

.ident-color-picker {
    margin-top: 7px !important;
    border-bottom: 1px solid $divider-color;
    width: 72px;
}

.ident-color-picker p {
    margin-bottom: 6px;
}

.one-row-event {
    height: 35px !important;
}

.one-cell-event {
    width: 220px !important;
}

/* Resize */
.ui-resizable-n,
.ui-resizable-s {
    height: 3px;
    border-radius: 5px;
}

.ui-resizable-n {
    top: 0px !important;
}

.ui-resizable-s {
    bottom: 0px !important;
}

.calendar-events:hover .ui-resizable-n,
.calendar-events:hover .ui-resizable-s {
    background: #FFFFFF;
}

.reserved-field {
    background-color: $divider-color;
}

.cal-items-text {
    cursor: move;
    width: 70%;
    margin-bottom: 0;
}

#mini-table-workers .cal-items-text,
#mini-table-tools .cal-items-text {
    cursor: default;
}

.cal-items-icons,
.cal-tooltip-icons {
    position: absolute;
    right: 5px;
    top: 0px;
}

.icons-under {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 2px;
    top: 0px;
}

.cal-tooltip-icons .color-picker-dropdown {
    position: absolute;
    height: 12px;
    width: 12px;
    min-width: unset;
    min-height: unset;
    margin: 0;
    padding: 0;
    border: 0;
    top: 0;
}

.cal-tooltip-icons .fa-palette {
    top: 0;
    right: unset;
    left: 0;
}

.cal-tooltip-icons .dropdown-menu-right .row {
    display: block;
    color: black;
}

.receipt-button-position {
    position: absolute;
    right: 0px;
    top: 20px;
}

.calendar-events:hover .resize-helper {
    position: absolute;
    height: 6px;
    width: 10px;
    background-color: #FFFFFF;
    left: 47%;
    border-radius: 3px;
}

.calendar-display-tab {
    padding: 0px 20px;
}

.calendar-header-border {
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0px;
    border: 1px solid $divider-color;
}

.select2-calendar-period {
    border-bottom: unset !important;
}

.calendar-period-wrapper {
    max-height: 34px;
}

.calendar-period-wrapper .select2-container {
    bottom: 5px;
}
/* Mini Calendar*/
#mini-calendar .prev-day i,
#mini-calendar .next-day i {
    color: $accent-color;
    margin: 5px;
}

#mini-calendar #cal-datepicker {
    width: 75px;
    border-bottom: none;
}

#mini-calendar .fa-calendar {
    margin: 5px;
}

#mini-calendar #mini-calendar-filters {
    display: flex;
    justify-content: space-between;
}

#mini-calendar .select2-container {
    width: 67% !important;
}

#mini-calendar #mini-calendar-datepicker {
    width: 33%;
    border-left: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ddd;
}

.mini-calendar-wrapper {
    position: absolute;
    height: calc(100% - 80px);
    width: 97%;
    overflow: scroll;
}

.blurred-elements {
    opacity: 0.65;
}

.mini-cal-no-results {
    position: absolute;
    top: 20px;
    left: 33%;
}