html {
    font-size: 14px;
}

hr {
    color: inherit;
}

.logo-container {
    font-size: 2rem;
}

.auth-wrapper .auth-box {
    max-width: 400px;
}

.buttonsAppear, .contractButtonsAppear {
    display: none;
}

tr:hover .buttonsAppear, div:hover > .buttonsAppear {
    display: inline;
}

tr.row-actions-pinned .buttonsAppear {
    display: inline;
}

.actionOverflowHost {
    position: relative;
}

.popover-actions .popover-body {
    padding: 6px 0;
}

.actionOverflowSource {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
}

.actionOverflowItem {
    width: 100%;
    padding: 4px 10px;
    border-radius: 4px;
}

.actionOverflowItem:hover {
    background-color: rgba(0, 158, 251, 0.08);
}

.actionOverflowLabelButton {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
}

.actionOverflowLabelLink {
    color: inherit;
    text-decoration: none;
}

.singleContract:hover > .contractButtonsAppear {
    display: flex;
}

.stylish-table tbody td {
    vertical-align: middle;
    border-top: 1px solid #eceeef;
    border-bottom: none;
}

.same-line {
    white-space: nowrap;
}

.dot {
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

#todo-table {
    font-size: 13px;
}

#todo-table .job-cell {
    cursor: pointer;
}

#todo-table .job-cell.job-done i {
    color: #8f998e;
}
/* We need this because default datatables boostrap.css is preventing from adding color  */
table.table.dataTable > :not(caption) > * > * { 
    background-color: var(--bs-table-bg);
}

.dataTable {
    width: 100% !important;
}

.jq-toast-single {
    font-size: 15px;
}

.invoiceFormNavLink,
.invoiceFormNavLink:hover {
    color: #009efb;
}

.inlineForm .deleteEntryButton {
    margin-top: 1.95rem;
}

.label-prepend{
    font-weight: 400;
}

.invoiceSingleContainer{
    height: 79vh;
}

.pointer, .pointer * {
    cursor:pointer;
}

.small-icon{
    font-size: 10px;
}

th.action-buttons {
    width: 100px;
}

.text-justify{
    text-align: justify;
}

legend {
    font-weight: 400;
}

.popover {
    max-width: 600px;
}

.popover-large {
    max-width: 800px;
}

.popover-over-title {
    padding: 7px 14px;
    border-bottom: 1px solid #ebebeb;
}

.popover-title {
    line-height: initial;
}

.popover-body {
    font-size: 14px;
}

.entity-modal-upload-progress {
    height: 15px;
}

.entity-modal-upload-progress .progress-bar {
    line-height: 15px;
    font-size: 12px;
}

.missingDataTable tbody > tr:last-child > td {
    border-bottom: none;
}

.table .spacer-left {
    border-left: 2px solid #b8b4b4;
}

.table .spacer-right {
    border-right: 2px solid #b8b4b4;
}

.table .spacer-bot {
    border-bottom: 2px solid #b8b4b4;
}

.text-very-muted, 
.table td.text-very-muted {
    color: rgba(84, 102, 122, 0.5);
}

#scheduleTable .schedule-day {
    border-bottom: 2px solid #dbd6d6;
}

#scheduleTable .have-mission {
    position: relative;
}

#scheduleTable .missionFlag {
    display: flex;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    bottom: -7px;
    left: -1px;
    width: 100%;
}

#scheduleTable .missionFlag img {
    opacity: 0.5;
    border-radius: 3px;
    width: 14px;
    height: 7px;
    vertical-align: 3px;
}

#scheduleTable th {
    min-width: 32px;
}

#scheduleTable tr:hover .add-button-container {
    padding: 1px;
}

#scheduleTable tr:hover .add-button-container span {
    display: none;
}

#scheduleTable tr:hover .add-button-container button {
    display: inline-block !important;
}

#scheduleTable tbody td.selected, 
.mission-table > tbody > tr:hover > td.selected {
    background-color: #45aae4 !important;
    --bs-table-bg-state: transparent;
    border-color: #45aae4 !important;
}

.form-condensed .form-label {
    margin-bottom: 0;
}

.popover {
    background-color: rgba(255, 255, 255, 0.9);
}

.businessLogoPreviewImage {
    transition: opacity .15s ease, filter .15s ease;
}

.businessLogoRemoveHint {
    display: none;
}

.businessLogoRemoveControls:has(.business-logo-remove-check:checked) .businessLogoRemoveHint {
    display: block;
}

#businessLogoPreviewContainer:has(.business-logo-remove-check:checked) .businessLogoPreviewImage {
    opacity: 0.35;
    filter: grayscale(100%);
}

#popoverHourChange, 
#popoverMinuteChange {
    font-size: xx-large;
}

.table > tbody > tr.selected > * {
    --bs-table-color-state: var(--bs-table-hover-color);
    --bs-table-bg-state: var(--bs-table-hover-bg);
}

.page-breadcrumb {
    max-height: 58px;
}

#sd1Table .worker-card .card-body:not(.worker-unclickable),
#absenceTable .worker-card .card-body:not(.worker-unclickable) {
    cursor: pointer;
}

#sd1Table .worker-card .card-body:hover:not(.worker-unclickable),
#absenceTable .worker-card .card-body:hover:not(.worker-unclickable) {
    background-color: #ebf3f5;
}

#sd1Table .worker-card .border-success:hover:not(.worker-unclickable),
#absenceTable .worker-card .border-success:hover:not(.worker-unclickable) {
    background-color: #c7e1cb !important;
}

#sd1Table .worker-card .border-warning:hover:not(.worker-unclickable),
#absenceTable .worker-card .border-warning:hover:not(.worker-unclickable) {
    background-color: #ffedc9 !important;
}

#sd1Table .worker-card .border-danger:hover:not(.worker-unclickable),
#absenceTable .worker-card .border-danger:hover:not(.worker-unclickable) {
    background-color: #f9e7eb !important;
}

.legendSquare {
    width: 20px;
    height: 20px;
}

.legendTooltip {
    display: inline-block;
    position: relative;
    z-index: 150;
}

.legendTooltip:hover .legend{
    pointer-events: auto;
    opacity: 1;
    z-index: 999;
}

.legendTooltip .legend {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 99;
    left: 0;
    top: calc(100% + 5px);
    text-align: left;
    background: white;
    opacity: 0;
    font-size: 14px;
    line-height: 27px;
    padding: 1.5em;
    border: 1px solid #ccc;
    cursor: default;
    pointer-events: none;
    border-radius: 5px;
    transition: opacity 0.3s, transform 0.3s
}

.legendTooltip--wide .legend {
    min-width: 440px;
    max-width: 560px;
    line-height: 22px;
}

.legendTooltip--wide .legend .legend-list {
    columns: 2;
    column-gap: 24px;
    margin-bottom: 0.75rem;
}

.legendTooltip--wide .legend .legend-list li {
    break-inside: avoid;
}

.legendTooltip--wide .legend .legend-examples {
    columns: 1;
}


.cleanLink {
    text-decoration: none;
    color: inherit;
}

.cleanLink i {
    display: none;
}

.cleanLink:hover {
    color: rgba(var(--bs-info-rgb));
}

.cleanLink:hover i {
    display: initial;
}

.table-sticky thead th,
.table-sticky tfoot th {
    z-index: 100;
}

.table-sticky thead, tfoot {
    position: sticky;
    z-index: 100;
    background: white;
}

.table-sticky thead {
    top: -1px;
}

.table-sticky tfoot {
    bottom: 0;
}

.table-sticky th.sticky-cell-left, table td.sticky-cell-left {
    left: 0;
    position: sticky;
    z-index: 3;
}

.table-sticky thead th.sticky-cell-left {
    z-index: 5;
}

.table-responsive > table {
    margin-bottom: 0;
}

/* For Chrome, Safari, Edge, Opera */
.no-number-arrow::-webkit-inner-spin-button,
.no-number-arrow::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
.no-number-arrow {
    -moz-appearance: textfield;
    appearance: inherit;
}

.select2-fixed-width{
    min-width: 150px;
}

.select2-fixed-height .select2-selection--single,
.select2-fixed-height .select2-selection__arrow,
.select2-fixed-height .select2-selection__rendered {
    height: 34px !important;
    line-height: 34px !important;
}

.select2-fixed-multiple .select2-search__field {
    width: 50% !important;
}

.select2-fixed-multiple .select2-selection--multiple {
    line-height: inherit !important;
}

.select2-fixed-multiple .select2-selection{
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
}

.select2-fixed-multiple .select2-selection__choice {
    height: 20px !important;
    line-height: 20px !important;
    margin-top: 0px !important;
}

.customFilters .form-select {
    max-width: 300px;
}
