table>tbody>tr:last-child>* {
    border-bottom-width: 0;
}

.form-signin {
    padding: 15px;
    margin: auto;
}

#custom-modal-name {
    font-weight: bold;
}

button.fc-today-button {
    margin-left: 0.75em !important;
}

.fc-toolbar-chunk button {
    margin-bottom: 3px;
}

.readonly-checkbox {
    pointer-events: none;
    opacity: 0.3;
}

.fc-event {
    white-space: normal !important;
    word-wrap: break-word;
    overflow: visible;
    height: auto;
}

.user-pic {
    max-width: 250px;
}

.info-box-content {
    overflow-y: auto;
}

.callout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1060;
    opacity: 0.95;
    margin: 0;
    border-radius: 0;
    padding: 17px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-container-fluid {
    max-height: 60vh;
    min-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.custom-container-fluid .info-box {
    margin-bottom: 15px;
}

.custom-container-fluid .info-box-actions {
    margin-top: 10px;
}

.custom-container-fluid .info-box-mark {
    padding: 20px 0 20px 0;
    position: absolute;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100%;
    height: 65px;
    inset: 0;
    top: 0.5rem;
}

.custom-container-fluid .info-box-mark input {
    border: var(--bs-border-width) solid #2f2f2f;
}

.custom-container-fluid::-webkit-scrollbar {
    width: 10px;
}

.custom-container-fluid::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 5px;
}

.custom-container-fluid::-webkit-scrollbar-track {
    background: transparent;
}

.opacity-info-box {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.opacity-info-box .info-box-icon,
.opacity-info-box .info-box-content,
.opacity-info-box .info-box-number {
    opacity: 0.4;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.info-box-actions,
.info-box-mark {
    display: none;
}

body:not(.select-mode) .info-box:hover .info-box-actions {
    display: block;
}

body.select-mode .info-box .info-box-mark {
    display: block;
}

div.info-box>a>span.info-box-icon {
    height: 65px;
}

div.card-filebase {
    min-height: 250px;
}

#modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.info-box .info-box-icon>img {
    width: 70px;
    height: 65px;
    position: absolute;
    border-radius: 10px;
}

.geocoordinates {
    height: 400px;
}

.geocoordinates-full {
    min-height: 400px;
    height: 100%;
}

.custom-leaflet-img {
    width: 40px !important;
    height: auto;
    position: absolute;
    top: -40px;
    left: -6px;
}

.leaflet-popup-content {
    text-align: center;
}

.max-width-250 {
    max-width: 250px;
}

.callout .close-callout {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--lte-callout-color, inherit);
    cursor: pointer;
    opacity: 0.8;
}

div.previous i.fa-chevron-left:before {
    content: "\2190";
    font-family: "Arial", sans-serif;
    font-size: 16px;
}

div.next i.fa-chevron-right:before {
    content: "\2192";
    font-family: "Arial", sans-serif;
    font-size: 16px;
}

@media (max-width: 768px) {
    .mobile-img {
        max-width: 150px;
        width: 100%;
        margin-bottom: 10px;
    }

    .info-box {
        position: relative;
    }

    body:not(.select-mode) .info-box:active .info-box-actions {
        display: block;
    }
}

.team-card {
    min-height: 350px;
}

.fc-event {
    cursor: pointer !important;
}

.fc-scrollgrid-sync-table {
    border-bottom: 1px solid var(--bs-gray-400) !important;
}

#custom-modal-description {
    white-space: pre-wrap;
}

.calendar-modal-body p {
    background: var(--fc-non-business-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-dialog-scrollable .modal-body {
    max-height: 400px;
    overflow-y: scroll !important;
    position: relative;
}

.modal-dialog-scrollable .modal-body::after {
    content: '';
    display: block;
    height: 1px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.memo-card-body table {
    table-layout: fixed;
    width: 100%;
}

.memo-card-body table td a,
.memo-card-body p a {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.note-popover {
    position: absolute !important;
}

.popover-body {
    margin: 0;
    padding: 5px;
}

.popover .popover-arrow {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-color: transparent;
    border-bottom-color: transparent;
    border-style: solid;
    margin-top: -2px;
}

.app-wrapper {
    background-color: rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity)) !important
}

html,
body {
    background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
}

/* Sticky header on mobile */
@media (max-width: 991.98px) {
    .fixed-header .app-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .app-header {
        box-shadow: 0 1px 1px rgba(var(--bs-body-color-rgb), .125), 0 2px 4px rgba(var(--bs-body-color-rgb), .2);
    }
}

.was-validated .tagify[required].tagify--empty {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.was-validated .tagify[required].tagify--empty.tagify--focus {
    border-color: var(--bs-form-invalid-border-color);
    box-shadow: var(--bs-box-shadow-inset), 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
}

.was-validated .tagify[required]:not(.tagify--empty) {
    border-color: var(--bs-form-valid-border-color);
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.was-validated .tagify[required]:not(.tagify--empty).tagify--focus {
    border-color: var(--bs-form-valid-border-color);
    box-shadow: var(--bs-box-shadow-inset), 0 0 0 .25rem rgba(var(--bs-success-rgb), .25);
}

.was-validated .note-editor[required].is-empty {
    border-color: var(--bs-form-invalid-border-color);
}

.was-validated .note-editor[required].is-empty.child-has-focus {
    border-color: var(--bs-form-invalid-border-color);
    box-shadow: var(--bs-box-shadow-inset), 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
}

.was-validated .note-editor[required]:not(.is-empty) {
    border-color: var(--bs-form-valid-border-color);
}

.was-validated .note-editor[required]:not(.is-empty).child-has-focus {
    border-color: var(--bs-form-valid-border-color);
    box-shadow: var(--bs-box-shadow-inset), 0 0 0 .25rem rgba(var(--bs-success-rgb), .25);
}

.min-150 {
    min-height: 150px;
}

.fc-event-title-container {
    padding-left: 4px;
    padding-right: 4px;
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        background-color: transparent !important;
        box-shadow: none !important;
        color: inherit !important;
        border-color: inherit !important;
    }
}

.table-tree td {
    line-height: 38px;
}

.tree-toggle td {
    position: relative;
    padding-left: 2.2rem;
    cursor: pointer;
}

.tree-toggle td::before {
    content: "▶";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
}

.tree-toggle.expanded td::before {
    transform: translateY(-50%) rotate(90deg);
}