.qty {
    min-width: 2.5rem;
}
.staff-form {
    background: #fff;
    width: 100%;
}

.staff-form .modal-body {
    padding: 2rem;
}

.staff-form-section {
    padding: 0 0 1rem;
}

.staff-form-section + .staff-form-section {
    margin-top: 1rem;
}

.staff-form-section-muted {
    background: #eef4fb;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 2rem;
}

.staff-form-title {
    color: #253242;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 2rem;
}

.staff-form-row {
    align-items: flex-start;
    border-bottom: 1px solid #dbe3ec;
    display: flex;
    gap: 1.75rem;
    padding: 1rem 0;
}

.staff-form-label {
    color: #2f3b49;
    flex: 0 0 250px;
    font-weight: 700;
    margin: .65rem 0 0;
    text-align: right;
}

.staff-form-field {
    flex: 1 1 auto;
    min-width: 0;
}

.staff-form-control {
    border-color: #d8e1ea;
    border-radius: .65rem;
    min-height: 44px;
}

.tom-select-floating {
    position: relative;
}

.tom-select-floating label {
    color: #6c757d;
    display: block;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.staff-form .ts-wrapper.multi .ts-control,
.staff-form .ts-wrapper.single .ts-control {
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    min-height: 58px;
    padding: .75rem;
}

.staff-form .ts-wrapper.focus .ts-control {
    border-color: #5d87ff;
    box-shadow: 0 0 0 .25rem rgba(93, 135, 255, .15);
}

.staff-form .ts-wrapper.multi .ts-control > div {
    background: #e8f0ff;
    border: 1px solid #c8d8ff;
    border-radius: .45rem;
    color: #074871;
    font-weight: 600;
}

.staff-form .ts-dropdown {
    border-color: #dee2e6;
    border-radius: .75rem;
    box-shadow: 0 12px 32px rgba(41, 52, 61, .12);
}

.staff-form-actions {
    align-items: center;
    border-top: 1px solid #dbe3ec;
    display: flex;
    gap: .875rem;
    justify-content: flex-end;
    padding: 1rem 2rem 1.5rem;
}

.staff-form-submit {
    background: #074871;
    border-color: #074871;
    color: #fff;
    font-weight: 600;
    padding: .65rem 1.25rem;
}

.staff-form-submit:hover,
.staff-form-submit:focus {
    background: #053b5d;
    border-color: #053b5d;
    color: #fff;
}

.staff-form-cancel {
    background: #ffc7da;
    border-color: #ffc7da;
    color: #ef4f82;
    font-weight: 600;
    padding: .65rem 1.25rem;
}

.staff-form-cancel:hover,
.staff-form-cancel:focus {
    background: #ffb5ce;
    border-color: #ffb5ce;
    color: #d93b70;
}

@media (min-width: 992px) {
    .modal-dialog:has(.staff-form) {
        max-width: 1120px;
    }
}

@media (max-width: 767.98px) {
    .staff-form .modal-body {
        padding: 1.25rem;
    }

    .staff-form-section-muted {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding: 1.25rem;
    }

    .staff-form-row {
        display: block;
    }

    .staff-form-label {
        display: block;
        margin: 0 0 .5rem;
        text-align: left;
    }

    .staff-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 1rem 1.25rem 1.25rem;
    }
}
