.p-confirmdialog,
.p-toast {
  max-width: calc(100% - 50px);
}
.p-toast .p-toast-message-text {
  margin-top: -0.2rem;
}

.p-floatlabel:has(.p-fileupload) label {
  top: var(--p-floatlabel-over-active-top);
  transform: translateY(0);
  font-size: var(--p-floatlabel-active-font-size);
  font-weight: var(--p-floatlabel-label-active-font-weight);
}

.p-fileupload-file-name {
  word-break: break-all;
}

.p-fileupload-content .p-progressbar {
  --p-fileupload-progressbar-height: 1rem;
}

.p-dialog {
  overflow: hidden;
}

.p-cascadeselect-list-container {
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
}

/* flex布局子元素宽度超出父元素问题 */
.p-select-label {
  min-width: 0 !important;
  width: 0 !important;
}

.p-message-text {
  word-break: break-all;
}
