/* JT Fill-in Field — Frontend Styles */
.jt-fillin-wrap {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0;
    flex-wrap: nowrap;
}
.jt-fillin-wrap.jt-field-full {
    width: 100%;
}

.jt-fillin-label {
    font-size: 1em;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    flex-shrink: 0;
}

.jt-fillin-input-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Underline-style input — force override all theme/browser styles */
.jt-fillin-wrap input.jt-fillin-input,
.jt-fillin-wrap input.jt-fillin-input:not([type]),
input.jt-fillin-input {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid #1e293b !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    padding: 4px 4px 4px 2px !important;
    margin: 0 !important;
    font-size: 1em !important;
    font-family: inherit !important;
    color: #1e293b !important;
    transition: border-color 0.15s !important;
    display: inline-block !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: auto !important;
    line-height: normal !important;
    vertical-align: middle !important;
}

.jt-field-small  input.jt-fillin-input { width: 160px !important; }
.jt-field-medium input.jt-fillin-input { width: 320px !important; }
.jt-field-full   input.jt-fillin-input { flex: 1 !important; width: 100% !important; min-width: 0 !important; }

.jt-fillin-wrap input.jt-fillin-input:focus {
    border-bottom-color: #00a2e8 !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}
.jt-fillin-wrap input.jt-fillin-input::placeholder {
    color: #94a3b8 !important;
    font-style: italic !important;
}

/* Save status */
.jt-fillin-status {
    font-size: 0.72em;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.3s;
    opacity: 0;
}
.jt-fillin-status.saving { opacity: 1; color: #d97706; }
.jt-fillin-status.saved  { opacity: 1; color: #059669; }
.jt-fillin-status.error  { opacity: 1; color: #dc2626; }
