﻿/* #region Global predefines */

/* Used to disable elastic scrolling of body on Safari */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    color: var(--tms-color-gray900);
    font-family: var(--kendo-font-family);
    font-size: var(--kendo-font-size);
    font-weight: var(--kendo-font-weight);
    line-height: var(--kendo-line-height);
    letter-spacing: var(--kendo-letter-spacing);
    text-transform: none;
    background-color: var(--tms-color-white);
    min-height: -webkit-fill-available;
}

:focus-visible {
    outline: none;
}

/* #endregion */

/* #region Global styles */

.full-width {
    width: 100%;
    max-width: 100vw;
}

.full-height {
    height: 100%;
}

.full-size {
    width: 100%;
    height: 100%;
}

/* #region misc styles */
.text-overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* #endregion */

/* #endregion */

/* #region Popover styles */
.k-popover.hide-pointer {
    overflow: hidden !important; /* Fix for menu-item hovers overflowing corners */
}

.k-popover {
    z-index: 10000 !important;
}
/* #endregion */

/* #region AppointmentStatus styles */
.status-button .k-button-text .icon-container {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--tms-color-fg-button-primary);
}

.status-button.destructive .k-button-text .icon-container {
    color: var(--tms-color-fg-button-primary-destructive);
}

.status-button {
    border: 0px;
    border-radius: 8px;
    box-shadow: none !important;
    background-color: unset;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .status-button.cursor-not-allowed {
        cursor: not-allowed;
    }

    .status-button:disabled {
        border: solid;
        border-width: 1px;
        border-color: var(--tms-color-border-button-secondary-disabled);
        opacity: 1;
        filter: none;
    }

        .status-button:disabled .k-button-text .icon-container * {
            color: var(--tms-color-fg-button-secondary-disabled);
        }

    .status-button.primary {
        background-color: var(--tms-color-bg-button-primary);
    }

        .status-button.primary:hover {
            background-color: var(--tms-color-bg-button-primary-hover);
        }

    .status-button.destructive {
        background-color: var(--tms-color-bg-button-primary-destructive);
    }

        .status-button.destructive:hover {
            background-color: var(--tms-color-bg-button-primary-destructive-hover);
        }

    .status-button.secondary {
        border: solid;
        border-width: 1px;
        border-color: var(--tms-color-border-button-secondary);
    }

        .status-button.secondary:hover {
            background-color: var(--tms-color-bg-button-secondary-hover);
            border-color: var(--tms-color-border-button-secondary-hover);
        }

    .status-button.warning {
        background-color: var(--tms-color-utility-warning-200);
    }

        .status-button.warning:hover {
            background-color: var(--tms-color-utility-warning-300);
        }
/* #endregion */

/* #region NotCarriedOutModal styles */
.not-carried-out-modal .modal {
    width: unset !important;
}

    .not-carried-out-modal .modal div .modal__title-container {
        display: none;
    }

    .not-carried-out-modal .modal .divider-wrapper {
        display: none;
    }

    .not-carried-out-modal .modal div .modal__content-container {
        padding: 0;
    }

.not-carried-out-modal-actions {
    height: 48px;
}

.not-carried-out-modal-text-container {
    padding: 24px 24px 0 24px;
}

    .not-carried-out-modal-text-container * {
        white-space: normal;
    }

.not-carried-out-modal-content-container .d-flex .divider-wrapper {
    display: flex;
}

.not-carried-out-modal-content-container {
    width: 360px;
    height: 168px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--tms-color-bg-primary);
}

.not-carried-out-modal-button {
    border: 0px;
    box-shadow: none !important;
    background-color: unset;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}

    .not-carried-out-modal-button:hover {
        background-color: var(--tms-color-bg-button-tertiary-hover);
        color: var(--tms-color-text-tertiary-hover) !important;
    }

    .not-carried-out-modal-button:active {
        background-color: var(--tms-color-bg-button-tertiary-pressed);
    }

.cancel-text {
    color: var(--tms-color-text-button-tertiary);
}

.confirm-text {
    color: var(--tms-color-text-button-tertiary-destructive);
}
/* #endregion */

/* #region TMSNotification styles */
.notification-custom-position {
    position: relative;
}
/* #endregion */

/* #region Search styles */
.project-main-container.popover-variant .project-header-container .project-searchbar .search--sm .search-container .input-text {
    color: var(--tms-color-text-primary) !important;
}
/* #endregion */

.k-animation-container.telerik-blazor {
    height: fit-content !important; /* Fix for Dropdowninput-menu top-alignment */
}

.dropdown-logo-container {
    height: 24px;
    width: 24px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input--sm.modal-dropdown .k-floating-label-container .telerik-blazor.k-dropdownlist.k-picker.k-picker-solid.k-picker-md.k-rounded-md {
    margin-left: unset;
    padding: 8px 12px 8px 20px;
}

.k-list-ul .k-list-item:has(.dropdown-input-item) {
    padding: 8px 12px 8px 16px !important;
}

/* #region Divider */
.content-wrapper .divider-padding {
    padding: 0 16px 0 36px !important;
}
/* #endregion */

/* #region TMSLink */
.link-green-underline {
    color: var(--tms-color-text-button-link-color) !important;
    text-decoration: underline !important;
}

    .link-green-underline:hover {
        color: var(--tms-color-text-button-link-color-hover) !important;
    }

.cursor-pointer {
    cursor: pointer;
}

.link-green-underline:active {
    color: var(--tms-color-text-button-link-color-pressed) !important;
}
/* #endregion */

/* #region Global TMS Utility Classes */

/* Justify Content */
.tms-justify-content-start {
    justify-content: flex-start;
}

.tms-justify-content-center {
    justify-content: center;
}

.tms-justify-content-end {
    justify-content: flex-end;
}

.tms-justify-content-between {
    justify-content: space-between;
}

.tms-justify-content-around {
    justify-content: space-around;
}

.tms-justify-content-evenly {
    justify-content: space-evenly;
}

/* Align Items */
.tms-align-items-baseline {
    align-items: baseline;
}

.tms-align-items-center {
    align-items: center;
}

.tms-align-items-start {
    align-items: flex-start;
}

.tms-align-items-end {
    align-items: flex-end;
}

.tms-align-items-stretch {
    align-items: stretch;
}

/* #endregion */
