/* /Components/Shared/FileDrop.razor.rz.scp.css */
.file-field[b-dvgup44l65] {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.file-drop[b-dvgup44l65] {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 96px;
    padding: 18px 20px;
    border: 1.5px dashed var(--ink-300);
    border-radius: var(--radius);
    background: var(--paper);
    transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}

.file-drop [hidden][b-dvgup44l65] {
    display: none !important;
}

/* Without JavaScript the browser's own picker shows, styled like a ghost button. */
.file-drop__input[b-dvgup44l65] {
    width: 100%;
    color: var(--ink-700);
    font: inherit;
    font-size: .9rem;
}

.file-drop__input[b-dvgup44l65]::file-selector-button {
    margin-inline-end: 12px;
    padding: 8px 14px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-800);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.file-drop__prompt[b-dvgup44l65] {
    display: none;
}

.js .file-drop__input[b-dvgup44l65] {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.js .file-drop__prompt[b-dvgup44l65],
.file-drop__selected[b-dvgup44l65] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.js .file-drop:hover[b-dvgup44l65],
.file-drop.is-dragover[b-dvgup44l65] {
    border-color: var(--brand-500);
    background: var(--brand-50);
}

.file-drop.is-dragover[b-dvgup44l65] {
    border-style: solid;
    box-shadow: 0 0 0 4px var(--brand-100);
}

.file-drop:has(.file-drop__input:focus-visible)[b-dvgup44l65] {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

.file-drop.has-file[b-dvgup44l65] {
    border-style: solid;
    border-color: var(--brand-100);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.file-field.is-invalid .file-drop[b-dvgup44l65] {
    border-color: #b91c1c;
    background: #fef2f2;
}

.file-drop__icon[b-dvgup44l65],
.file-drop__thumb[b-dvgup44l65] {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    color: var(--brand-600);
    box-shadow: inset 0 0 0 1px var(--brand-100);
}

.file-drop__thumb img[b-dvgup44l65] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--surface);
}

.file-drop__glyph[b-dvgup44l65] {
    display: grid;
    place-items: center;
}

.file-drop__thumb img:not([hidden]) + .file-drop__glyph[b-dvgup44l65] {
    display: none;
}

.file-drop__text[b-dvgup44l65],
.file-drop__meta[b-dvgup44l65] {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.file-drop__title[b-dvgup44l65] {
    color: var(--ink-700);
    font-size: .93rem;
}

.file-drop__title strong[b-dvgup44l65] {
    color: var(--brand-700);
}

.file-drop__formats[b-dvgup44l65],
.file-drop__size[b-dvgup44l65] {
    justify-self: start;
    color: var(--ink-500);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}

.file-drop__name[b-dvgup44l65] {
    overflow: hidden;
    color: var(--ink-900);
    font-weight: 700;
    font-size: .93rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-drop__replace[b-dvgup44l65] {
    color: var(--ink-500);
    font-size: .78rem;
}

.file-drop__clear[b-dvgup44l65] {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-inline-start: auto;
}
