/* Upload boxes (file-input.js), brand colours only */
.fu { position: relative; width: 100%; }

.fu-face {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 0 12px 0 14px;
    border: 1.5px dashed rgba(21, 120, 109, 0.45);
    border-radius: 10px;
    background: rgba(21, 120, 109, 0.04);
    color: #000;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.fu > input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.fu:hover .fu-face,
.fu.is-drag .fu-face { border-color: #15786d; background: rgba(21, 120, 109, 0.09); }
.fu:focus-within .fu-face { border-color: #15786d; box-shadow: 0 0 0 3px rgba(21, 120, 109, 0.15); }

.fu-icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 120, 109, 0.12);
    color: #15786d;
}

.fu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fu-title { font-size: 14px; font-weight: 600; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-sub { font-size: 12px; color: rgba(0, 0, 0, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fu-btn {
    flex: none;
    padding: 6px 14px;
    border: 1px solid rgba(21, 120, 109, 0.45);
    border-radius: 8px;
    background: #fff;
    color: #15786d;
    font-size: 13px;
    font-weight: 600;
}

.fu-clear {
    position: relative;
    z-index: 2;
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
.fu-clear:hover { background: rgba(0, 0, 0, 0.06); color: #000; }
.fu-clear[hidden] { display: none; }

.fu.has-file .fu-face { border-style: solid; background: #fff; }
.fu.has-file .fu-icon { background: #15786d; color: #fff; }

.fu.fu-invalid .fu-face,
.has-error .fu .fu-face { border-color: #000; border-style: solid; }

.fu.is-disabled .fu-face { opacity: .55; }
.fu.is-disabled > input[type="file"] { cursor: not-allowed; }

/* smaller box in tables and compact forms */
.fu.fu-sm .fu-face { height: 48px; gap: 10px; padding: 0 8px 0 10px; }
.fu.fu-sm > input[type="file"] { height: 48px; }
.fu.fu-sm .fu-icon { width: 30px; height: 30px; }
.fu.fu-sm .fu-btn { padding: 4px 10px; font-size: 12px; }

@media (max-width: 480px) {
    .fu-btn { display: none; }
}
