.geraFormField {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    margin-top: 16px;
    margin-right: 20px;
    align-items: flex-start;
}

#geraTabelaFiltro .geraFormField {
    margin-top: 8px;
    margin-right: 10px;
}

.geraFormField .geraFormLabel {
    position: static !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    pointer-events: none;
    transform: none !important;
    display: block;
}

.geraFormField .geraFormOb {
    color: var(--status-error);
    margin-left: 2px;
}

.geraForm {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--border-main);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    text-align: left;
    width: 100%;
}

.geraForm-real {
    background: var(--bg-card) url(../form/bg_input_real.png) no-repeat 8px center;
    padding-left: 32px !important;
    text-align: right;
}

.geraForm-inteiro {
    text-align: right;
}

.geraForm-password {
    background-image: url("../form/senha.svg");
    background-repeat: no-repeat;
    background-position: center right 10px;
    padding-right: 32px !important;
}

.geraForm-autocomplete {
    background-image: url("../form/bg_input_busca.png");
    background-repeat: no-repeat;
    background-position: center right 10px;
    padding-right: 32px !important;
}

.geraForm-placa {
    text-transform: uppercase;
}

.geraForm-textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

.geraForm-readonly {
    background: var(--bg-body) !important;
    color: var(--text-muted);
    cursor: not-allowed;
}

.geraForm:hover:not([readonly]):not([disabled]) {
    border-color: var(--text-muted);
}

.geraForm:focus:not([readonly]) {
    border-color: var(--vuse-blue);
    box-shadow: 0 0 0 4px rgba(0, 110, 179, 0.2);
    outline: none;
}

[data-theme="dark"] .geraForm:focus:not([readonly]) {
    border-color: var(--vuse-blue-light);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
    outline: none;
}

.geraForm-erro {
    border-color: var(--status-error) !important;
    background-color: rgba(239, 68, 68, 0.02) !important;
}

.geraForm-erro:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

.geraForm-erroMsg {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    color: var(--status-error);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}

.geraForm-erroMsg.erro {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    margin-left: 5px;
}

.geraForm-erroMsg .ui-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.geraFormInfo {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btnFormSalvar,
.btnFormCancel {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btnFormSalvar {
    background: var(--vuse-blue);
    color: white;
}

.btnFormSalvar:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 110, 179, 0.2);
    border: none;
    background: var(--vuse-blue-light);
    font-weight: 600;
    color: white;
}

.btnFormSalvar:focus {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(0, 110, 179, 0.2);
    border: none;
    background: var(--vuse-blue-light);
    font-weight: 600;
    color: white;
    outline: none !important;
}

.btnFormCancel {
    background: transparent;
    color: var(--text-muted);
}

.btnFormCancel:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.btnFormCancel:focus {
    box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.15);
    outline: none !important;
}

/* Checkbox e Radio Customizados */
.geraFormField input[type="checkbox"],
.geraFormField input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.geraFormField input[type="checkbox"]+label,
.geraFormField input[type="radio"]+label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-main);
    margin-top: 4px;
}

.geraFormField input[type="checkbox"]+label::before,
.geraFormField input[type="radio"]+label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-main);
    background: var(--bg-card);
    border-radius: 4px;
    transition: all 0.2s;
}

.geraFormField input[type="radio"]+label::before {
    border-radius: 50%;
}

.geraFormField input:focus-visible+label::before {
    border-color: var(--vuse-blue);
    box-shadow: 0 0 0 4px rgba(0, 110, 179, 0.2);
}

[data-theme="dark"] .geraFormField input:focus-visible+label::before {
    border-color: var(--vuse-blue-light);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.geraFormField input:checked+label::before {
    background: var(--vuse-blue);
    border-color: var(--vuse-blue);
}

.geraFormField input:checked+label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.geraFormField input[type="radio"]:checked+label::after {
    left: 6px;
    top: 6px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.geraFormField.inline {
    flex-direction: row !important;
    align-items: center;
}

.geraFormField.inline input[type="checkbox"]+label,
.geraFormField.inline input[type="radio"]+label {
    margin-top: 0;
    margin-right: 15px;
}

div.geraForm-file {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}