.formWrapper {
    display: inline-block;
    position: absolute;
    width: 300px;
    padding: 5px;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

input {
    padding: 10px;
    margin: 5px 0 5px 0;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    font-family: "DM Sans", sans-serif;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea.smooth-expand {
    height: 40px;
    min-height: 40px;
    max-height: 200px;
    overflow: hidden;
    resize: none;
    padding: 8px;
    width: 100%;
    transition: height 0.3s ease;
    box-sizing: border-box;
}

textarea.smooth-expand:focus {
    height: 120px;
}

form {
    padding-bottom: 10px;
}

.formSubtext {
    color: var(--primary-color-);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    border-bottom: 1px solid #9999996b;
    padding-bottom: 30px;
    box-sizing: border-box;
}

.form-section label {
    margin: 0;
}

input[type="checkbox"] {
    width: auto;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
    transform: scale(1.5);
    cursor: pointer;
}

.form-section input[type="checkbox"] {
    width: auto;
}

.hidden {
    opacity: 0;
}

.checkboxWrapper {
    display: flex;
    margin: 5px 0;
}

.checkbox {
    height: 20px;
    margin: 4px 10px 4px 0;
    width: 26px;
}

.checkboxParagraph {
    font-size: 14px;
}

input#due-date {
    width: 150px;
    text-align: center;
}

.formButtonWrapper {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.popupButton {
    width: 125px;
}

.fileUploadWrapper {
    display: flex;
    align-items: center;
}

.no-material {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.no-material input[type="checkbox"] {
    margin-right: 10px;
}

#request-form input#no-material {
    margin-left: 10px;
}

input#file-upload {
    border: none !important;
    padding: 0 !important;
    margin: 5px 0 5px 5px !important;
}

.popupTitle {
    text-align: center;
    margin: 0;
    padding: 20px;
}

form.popupForm {
    padding: 40px;
    padding-top: 0;
    border-radius: 0px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popupForm label {
    margin: 5px 0 5px 0px;
    font-weight: bold;
}

.popupForm input,
.popupForm select {
    margin: 5px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.calendar {
    justify-content: center;
    gap: 15px;
}

.calendar,
.no-material {
    margin: 15px 0;
    display: flex;
    align-items: center;

}

input.no-material {
    margin: 25px 5px 5px 5px;
}

#or {
    font-weight: bold;
    margin: 0 20px;
}

#stockDimensionsWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.dimensions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-type-options {
    display: flex;
    justify-content: space-around;
}

.stock-type-options label {
    text-align: center;
}

#request-form .dimensions input {
    width: 50px;
    text-align: center;
}

#part-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

#stock-file-name {
    width: 300px;
    margin-left: 8px;
}

input.rod-input {
    width: 100px !important;
}

#operations-title {
    font-weight: bold;
}

.operations {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--almost-white-);
    position: relative;
}

.operation-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.operation-column {
    flex: 1;
}

.operation-column label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.operation-column select,
.operation-column input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.operation-notes {
    width: 100%;
    margin-top: 10px;
}

.operation-notes label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#add-operations {
    background: #091e421a;
    color: var(--text-color-);
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#add-operations:hover {
    background: #091e4234;
}

/* Hide the default file input */
input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: normal !important;
    min-width: 100px;
    border: 1px solid gray;
    background-color: var(--almost-white-);
    border-radius: 5px;
    pointer-events: auto;
    text-align: center;
    padding: 10px;
    transition: background-color .3s;
    color: var(--text-color-);
    cursor: pointer;
    margin: 0 5px;
}

.file-upload-btn:hover {
    background-color: #eeeeee;
}

/* Styling the file list */
.file-list-display {
    list-style: none;
    padding: 0;
    margin: 10px;
}

.file-list-display li {
    padding: 3px 5px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-file {
    color: #ff0000;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
    font-size: 16px;
    user-select: none;
    transition: color 0.3s;
}

.remove-file:hover {
    color: #cc0000;
}

.delete-button:hover {
    background: var(--error-);
    color: var(--almost-white-);
    transition: background 300ms ease, color 300ms ease;
}

.formButtonWrapper .submit-form:hover {
    background: var(--almost-white-);
    border-color: var(--dot-green-);
    color: var(--dot-green-);
}

.formButtonWrapper .cancel-button:hover {
    background: var(--background-gray-);
    color: var(--primary-color-);
}

.formButtonWrapper button {
    box-shadow: none;
    transition: box-shadow 300ms ease;
}

.formButtonWrapper button:hover {
    box-shadow: 0 2px 5px rgba(128, 128, 128, 0.223);
}