@use "variables" as *;

.p-component {
    font-family: $font-default;
    font-size: $font-size-md;
    font-weight: normal;
    line-height: normal;
}

.p-component-overlay {
    background-color: $white;
    transition-duration: 0.2s;
}

.p-disabled,
.p-component:disabled {
    opacity: 1;
}

.p-text-secondary {
    color: $black;
}

.p-link {
    border-radius: $border-radius-xs;
}

.p-link:focus {
    outline: 0 none;
    outline-offset: 0;
    box-shadow: none;
}

.p-fluid .p-inputgroup .p-button {
    width: auto;
}

.p-fluid .p-inputgroup .p-button.p-button-icon-only {
    width: $spacing-6;
}

a.p-button {
    color: var(--color-palette-primary-500);
    text-decoration: none;
}

.p-field > label {
    font-size: $font-size-sm;
}

.formgroup-inline {
    .field-checkbox {
        margin-bottom: 0;
    }
}

.p-label-input-required::after {
    content: "*";
    color: red;
    margin-left: 2px;
    vertical-align: middle;
}

// Global class for handle size of icons
.pi {
    aspect-ratio: 1/1;
    line-height: 1;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: $icon-md;
    width: $icon-md-box;
}

[class$="-sm"] .pi {
    width: $icon-sm-box;
    font-size: $icon-sm;
}

[class$="-lg"] .pi {
    width: $icon-lg-box;
    font-size: $icon-lg;
}

.truncate-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
