@import url(fonts.css);

/*
 * Disable iOS Safari/WKWebView automatic text size adjustment ("text inflation").
 * Without this, iOS boosts the font size of bare text nodes placed directly
 * inside table cells, which made Company Name / Relation / Superintendent
 * columns render with an inconsistent font on iPhone.
 * Using 100% (instead of 'none') preserves user pinch-zoom accessibility.
 */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.mud-dialog-title > h6 {
    padding-right: 30px !important;
    line-break: anywhere !important;
}

.mud-input-helper-text.mud-input-error {
    white-space: pre-line;
}

.mud-tab {
    text-transform: none;
}

.mud-button-filled:not([disabled]) {
    border: 1px solid;
}

.mud-fab-tertiary {
    border: 1px solid;
}

.mud-fab-default {
    border: 1px solid #eee;
}

.mud-checkbox-true{
    color: var(--mud-palette-primary) !important;
}

.mud-checkbox-null {
    color: var(--mud-palette-primary) !important;
}

.mud-checkbox-false {
    color: var(--mud-palette-action-default) !important;
}

.mud-checkbox.mud-disabled > span {
    opacity: 0.3;
}

.checkbox-true > .mud-list-item-icon {
    color: var(--mud-palette-primary) !important;
}

.checkbox-false > .mud-list-item-icon {
    color: var(--mud-palette-action-default) !important;
}

.notifications-popover {
    width: 500px;
    max-height: 250px;
    overflow-y: scroll;
}

.full-screen-image-dialog {
    background-color: black;
}

    .full-screen-image-dialog .mud-button-close {
        background-color: var(--mud-palette-grey-lighter);
        color: white;
    }

.buttons-center {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    padding-left: 5%;
    padding-right: 5%;
    margin-top: 20px;
    width: 100%;
}

    .buttons-center > button {
        width: 271px !important;
    }

.buttons-right {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

@media (max-width: 800px) {
    /* Switch to column layout when there are 5 or more buttons */
    .buttons-center:has(:nth-child(5)) {
        flex-direction: column-reverse;
    }

        .buttons-center:has(:nth-child(5)):is(non-reverse) {
            flex-direction: column;
        }

        .buttons-center:has(:nth-child(5)) > button {
            width: initial !important;
        }
}

@media (max-width: 599px) {
    .buttons-center {
        flex-direction: column-reverse;
    }

        .buttons-center:is(non-reverse) {
            flex-direction: column;
        }

        .buttons-center > button {
            width: initial !important;
        }

    .notifications-popover {
        width: 100%;
        left: 0px !important;
        right: 0px !important;
        bottom: 0px;
        max-height: 100%;
    }
}

.mud-main-content {
    z-index: 9;
}

.popover {
    z-index: 2000!important;
}

@media (max-width: 600px) {
    .mud-xs-table .mud-table-row .mud-table-cell:last-child {
        border-bottom-width: 2px
    }
}

.mud-table {
    background-color: unset;
}

.pointer {
    cursor: pointer;
}

.underline-on-hover:hover {
    text-decoration: underline;
}

.title-case {
    text-transform: capitalize;
}

.preserve-new-line {
    white-space: break-spaces;
}

.width-full {
    width: 100% !important;
}

.width-50 {
    width: 50% !important;
}

.height-full {
    height: 100% !important;
}

div:has(div.add-option) {
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-top: 0px !important;
}

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

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

.word-break {
    word-break: break-word;
}

.no-margin {
    margin: 0 !important;
}

.mud-typography-h1 {
    margin: 1rem 0;
}

.mud-typography-h2 {
    margin: 1rem 0;
}

.mud-typography-h3 {
    margin: 1rem 0;
}

.mud-typography-h4 {
    margin: 1rem 0;
}

.mud-typography-h5 {
    margin: 1rem 0;
}

.mud-typography-h6 {
    margin: 1rem 0;
}

h1:focus {
    outline: none;
}

.custom-scroll-lock {
    overflow: hidden;
    padding-right: 8px;
}

.custom-scroll-lock-no-padding {
    overflow: hidden;
}

.mud-breadcrumb-item.mud-disabled > a {
    color: var(--mud-palette-text-primary);
}

.text-smaller {
    font-size: smaller;
}

@media (max-width: 600px) {
    .xs-table-text {
        max-width: 70%;
        text-align: end;
    }
}

.mud-treeview-item-content.cursor-pointer {
    cursor: unset !important;
}

.mud-input-label {
    overflow: visible !important;
}

.mud-table-pagination-toolbar {
    height: fit-content !important;
}

.mud-table-toolbar {
    margin-bottom: 8px;
}

.text-grey {
    color: var(--mud-palette-gray-default);
}

.text-wrap-none {
    text-wrap: nowrap;
}

.hidden {
    display: none;
}

.mud-table-smalldevices-sortselect {
    display: none !important;
}

.max-width-max-content {
    max-width: max-content;
}

.filter-popover {
    max-width: 250px;
}

.enum-filter-value-list {
    overflow-y: auto;
    max-height: 250px
}

.country-filter-popover {
    width: 250px;
}

.date-range-filter-popover {
    width: fit-content;
}

.column-min-width-150 {
    min-width: 150px;
}

.details-title {
    font-weight: 700 !important;
    font-size: 16px !important;
}

.details-value {
    font-weight: 400 !important;
    font-size: 16px !important;
}

.rounded-button .mud-button {
    border-radius: 50px;
    border-width: 0px;
    padding: 12px 30px;
    width: 100% !important;
}

@media (max-width: 959px) {
    .rounded-button {
        width: 100% !important;
    }
}

@media (min-width: 960px) {
    .rounded-button {
        width: 50% !important;
    }
}

.color-grey {
    color: var(--mud-palette-gray-default);
}

.log-item-section-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.log-item-section-header-start {
    display: flex;
    align-items: center;
    justify-content: start;
}

.log-item-header {
    display: flex;
    justify-content: end;
    text-align: right;
    align-items: start;
}

    .log-item-header > b:after {
        content: ":";
        font-weight: 600;
    }

.log-item-value {
    display: flex;
    justify-content: start;
    align-items: end;
}

.not-capitalize {
    text-transform: none !important;
}

.progress-button-label {
    max-width: 80%;
}

.select-all-button {
    border-radius: 50% !important;
}

.error {
    color: var(--mud-palette-error);
}

.action-list-item {
    padding: 1rem;
}

    .action-list-item:nth-child(even) {
        background-color: var(--mud-palette-table-striped);
    }

.text-bold {
    font-weight: bold;
}
