.editForm{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1em;
    flex-grow: 1;
}

.inputContainer {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
}

.inputRow{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.5em;
    width: 100%;
    justify-content: space-between;
    align-content: stretch;
    align-items: stretch;
}

.inputRow > .inputContainer{
    flex: 1 1;
}

.inputRow > .inputContainer > input, .inputRow > .inputContainer > select, .inputRow > .inputContainer > textarea, .inputRow > .inputContainer > radio{
    width: 100%;
}


/*-- Button Container --*/

.editForm .button-container {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-content: center;
    align-items: flex-end;
    margin: auto;
    flex-grow: 1;
    margin-top: 0.5em;
    gap: 0.5rem;
}

.editForm .button-container > button{
    flex: 1 1;
    font-size: 14px;
}

.editForm>label{
    font-weight: 600;
    margin: 0;
}

/*-- Labels --*/

.floatLabel {
    position: absolute;
    right: 1px;
    bottom: 1px;
    left:12px;
    top:-5px;
    z-index: 1;
    height: 1em;
    /* font-size: 16px; */
    font-size: 11px;
    line-height: 3.5em;
    white-space: nowrap;
    cursor: text;
    transition:all .1s ease;
}
/*
input:focus ~ label, input:valid ~label, input:disabled ~label {
    position: absolute;
    right: 1px;
    bottom: 1px;
    left:12px;
    top:-5px;
    z-index: 1;
    height: 1em;
    font-size: 11px;
    line-height: 3.5em;
    color: #495057;
    white-space: nowrap;
    cursor: text;
    transition:all .1s ease;
}

textarea:focus ~ label, textarea:valid ~label {
    position: absolute;
    right: 1px;
    bottom: 1px;
    left:12px;
    top:-5px;
    z-index: 1;
    height: 1em;
    font-size: 11px;
    line-height: 3.5em;
    color: #495057;
    white-space: nowrap;
    cursor: text;
    transition:all .1s ease;
}

select:valid ~ label{
    position: absolute;
    right: 1px;
    bottom: 1px;
    left:12px;
    top:-5px;
    z-index: 1;
    height: 1em;
    font-size: 11px;
    line-height: 3.5em;
    color: #495057;
    white-space: nowrap;
    cursor: text;
    transition:all .1s ease;
}

textarea:valid ~ label{
    position: absolute;
    right: 1px;
    bottom: 1px;
    left:12px;
    top:-5px;
    z-index: 1;
    height: 1em;
    font-size: 11px;
    line-height: 3.5em;
    color: #495057;
    white-space: nowrap;
    cursor: text;
    transition:all .1s ease;
}


input:valid ~label {
    color:#495057;
}
input:focus:invalid ~label{
    color:red;
}
*/
.form-control:focus {
    border-color: var(--primary-50-50, #86b7fe);
}
input:required ~label::before {
    content:"*";
    color:red;
}

input:required:valid ~label::before {
    color:#495057;
}

input, textarea {
    padding: 0.5em;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 0 #eee,#fff 0 1px 0;
    border-radius:5px;
    width:100%;
}

.input_error {
    /*position: relative; */
    animation: shake .2s linear;
    animation-iteration-count: 10;
}

[type="submit"] {
    box-shadow: none !important;
}

.inputGroup {
    display: flex;
    flex-direction: row;
}


.inputContainer.pad-bottom{
    padding-bottom: .75em;
}

.buttonContainer {
    box-sizing: border-box;
    position: relative;
    width: auto;
    padding:10px;
    margin: 0px auto;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin: 3px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .2s;
    transition: .2s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
}

input:checked + .slider {
    background-color: #008CBA;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
    outline: black solid 1px
}

input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

input.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--primary-50-30, rgb(13 110 253)) !important;
}     

input:disabled, textarea:disabled, select:disabled  {
    cursor: not-allowed;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* DUX INPUT */

dux-input{
    position: relative;
    display: inline-flex;
    height: fit-content;
    background: white;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;

    --tw-shadow: 0 0 #0000;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border-color: var(--primary-50-50, #86b7fe);
    border-radius: 5px;
    border-width: 1px;
    font-size: 1rem;
    font-weight: normal;
    padding: 0.5rem;
}
dux-input:has(input[type='checkbox']) {
    background-color: transparent;
}

dux-input > div[role='inputgroup']{
    position: relative;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

dux-input[valign='center'] > div[role='inputgroup']{
    position: relative;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

/*Input Autofill colors */

input:-webkit-autofill,
input:-webkit-autofill:focus, input:-internal-autofill-selected {
    background: initial;
    box-shadow: inset 0 0 0px 9999px white !important;
    -webkit-box-shadow: inset 0 0 0px 9999px white !important;
}

dux-input > div[role='inputgroup'] > input[nowebkit]{
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield;
}
dux-input > div[role='inputgroup'] > input[nowebkit]::-webkit-inner-spin-button, 
dux-input > div[role='inputgroup'] > input[nowebkit]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
}

dux-input > div[role='inputgroup'] > input::placeholder{
    font-size: 0.85em;
    color: #6B7280; 
}

dux-input > div[role='inputgroup'] > input, dux-input > div[role='inputgroup'] > select, dux-input > div[role='inputgroup'] > textarea {
    background-color: rgb(255, 255, 255);
    box-shadow: none;
    border-width: 0 !important;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: auto;
    height: 100%;
}

dux-input > div[role='inputgroup'] > input:focus, 
dux-input > div[role='inputgroup'] > input:focus-visible, 
dux-input > div[role='inputgroup'] > select:focus, 
dux-input > div[role='inputgroup'] > select:focus-visible, 
dux-input > div[role='inputgroup'] > textarea:focus,
dux-input > div[role='inputgroup'] > textarea:focus-visible{
    box-shadow: none;
    border-width: 0;
    outline: none;
}

/* SPECIAL INPUT TYPE CASES */

dux-input > div[role='inputgroup'] > input[type='checkbox'] {
    border-color: var(--primary-50-50, #86b7fe);
    border-width: 1px !important;
}

dux-input:has(input[type='checkbox']) {
    border-width: 0;
    padding: 0;
}

dux-input > div[role='inputgroup'] > input[type='checkbox'] {
    width: 1em;
    height: 1em;
}

dux-input:has(input[type='checkbox'][disabled]) > div[role='inputgroup'] > label {
    cursor: not-allowed !important;
}

dux-input > div[role='inputgroup'] > select {
    padding: 2px;
    padding-right: 30px;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

dux-input:has(select){
    padding-right: 2px !important;
}

dux-input > div[role='inputgroup'] > input[type='range'] {
    height: 1em;
    background-color: #ddd;
    margin-top: 10px;
}


/* INPUT STATES */

dux-input:focus-within{
    border-color: var(--primary-50-70, #86b7fe) !important;
    box-shadow: 0 0 0 0.1rem var(--primary-50-30, rgb(13 110 253)) !important;
}

dux-input[type=checkbox]:focus-within{
    box-shadow: none !important;
}

dux-input div[role="radio-container"]:has(input[type=radio][disabled]) > * {
    cursor: not-allowed;
    opacity: 0.5;
}

dux-input[invalid] {
    border-color: #ff5f5f !important;
    box-shadow: none !important;
} 

dux-input[invalid]:focus-within {
    border-color: #fc0000 !important;
    box-shadow: none !important;
} 

/* LABEL */

dux-input > div[role='inputgroup'] > label{
    position: absolute;
    left: 0;
    padding: 0 3px;
    font-weight: 400;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    color: #6B7280; 
    top: -1rem;
    background: linear-gradient(to bottom, transparent 10%, white 60%, transparent 30%);
    border-radius: 5px;
}

dux-input:has(input[type='checkbox']) > div[role='inputgroup'] > label {
    background: transparent;
}


dux-input:not([forcetop]) > div[role='inputgroup'] input:placeholder-shown:not(:focus) ~ label {
    background: transparent;
    top: 50%;
    transform: translateY(-50%);
} 

/* ICON */

dux-input > .inset-icon{
    opacity: 0.6;
    transition: opacity 200ms ease-in-out;
}
dux-input:focus-within > .inset-icon  {
    opacity: 0.95;
}

.dropzone .dz-preview:hover .dz-image img {
    -webkit-filter: blur(2px) !important;
    filter: blur(2px) !important;
    opacity: 0.8;
}

/*

dux-input:has(select) > label, dux-input:has(textarea) > label, dux-input:has(input[type=time]) > label, dux-input[forcetop] > label{
    top: -10px !important;
}
dux-input:has(input[type=range]) > label {
    top: -15px;
    background-color: transparent;
}
dux-input:has(input[type=range]) {
    margin-top: 5px;
}


*/