/* Remaining legacy forms and nested panels share the workspace layout rules. */
.v-application :is(#main-content, .v-dialog) :is(.col, .flex, .v-card__text) {
  min-width: 0;
}

.v-application :is(#main-content, .v-dialog) .v-card__title {
  overflow-wrap: anywhere;
  word-break: normal;
}

.v-application :is(#main-content, .v-dialog) :is(
  .rop-checklist-header, .rop-expense-header, .attachment-header,
  .purchase-item-header, .travel-leg-header
) {
  flex-wrap: wrap;
  gap: 10px;
}

.v-application :is(#main-content, .v-dialog) :is(
  .rop-checklist-header, .rop-expense-header, .attachment-header,
  .purchase-item-header, .travel-leg-header
) > .d-flex {
  flex: 1 1 180px;
  min-width: 0;
}

.v-application :is(#main-content, .v-dialog) :is(
  .rop-checklist-header, .rop-expense-header, .attachment-header,
  .purchase-item-header, .travel-leg-header
) > .v-btn {
  flex-shrink: 0;
}

.v-application .users-dialog-card .v-input {
  overflow: visible;
}

.v-application .users-dialog-card .custom-overflow {
  background: var(--hrms-surface) !important;
}

.v-application .users-dialog-card .v-input--selection-controls .v-label {
  white-space: normal;
  line-height: 1.4;
}

.v-application .users-stepper .v-stepper__header {
  height: auto;
  min-height: 72px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.v-application .users-stepper .v-stepper__step {
  flex: 0 0 170px;
  min-width: 170px;
}

.v-application .users-stepper .v-stepper__label {
  display: block !important;
  max-width: 140px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.v-application .users-stepper .v-stepper__header > .v-divider {
  flex: 0 0 24px;
  margin: 35px 0 0 !important;
}

.v-application .auth-form-page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.v-application .auth-form-page form > .layout {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.v-application .auth-form-page form > .layout > .v-btn {
  margin: 0 !important;
}

@media (max-width: 599px) {
  .v-application #main-content .v-toolbar,
  .v-application #main-content .v-toolbar__content {
    height: auto !important;
    min-height: 56px;
  }

  .v-application #main-content .v-toolbar__content {
    flex-wrap: wrap;
    gap: 8px;
  }

  .v-application .v-dialog .v-card-actions > .v-btn {
    margin: 0 !important;
  }

  .v-application .auth-form-page form > .layout > .spacer {
    display: none;
  }

  .v-application .auth-form-page form > .layout > .v-btn {
    flex: 1 1 auto;
  }
}
