/* Training Portal v15 — targeted Bootstrap 4 / legacy form interoperability.
   Loaded after the unified theme and before page-specific styles.
   Only tp-* hooks are styled; no broad .form-control/.card/.btn overrides. */

body.dga-lite .tp-file-field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    height: auto;
    padding: 0;
}

body.dga-lite input[type="file"].tp-file-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: .55rem .75rem;
    color: #233d38;
    background: #fff;
    border: 1px solid #d2d6db;
    border-radius: 8px;
    font: inherit;
    font-size: .875rem;
}
body.dga-lite input[type="file"].tp-file-input:focus-visible {
    outline: 2px solid #1b8354;
    outline-offset: 2px;
}
body.dga-lite input[type="file"].tp-file-input:disabled {
    opacity: .6;
    cursor: not-allowed;
}
body.dga-lite textarea.tp-form-textarea {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 108px;
    padding: .75rem 1rem !important;
    resize: vertical;
    line-height: 1.8;
}
body.dga-lite select.tp-form-select {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
@media (max-width: 575.98px) {
    body.dga-lite input[type="file"].tp-file-input { font-size: .8125rem; }
}
