/* Download: scoped composition; shared controls retain the theme contract. */
.download-page { min-width: 0; }
.download-page .admin-page-header { margin-bottom: 24px; }
.download-list { margin: 0; }
.download-toolbar { display: flex; align-items: end; gap: 16px; padding: 16px; }
.download-toolbar > div { width: min(100%, 360px); }
.download-list #Grid { border: 0; border-top: 1px solid var(--mkp-border); border-radius: 0 0 var(--mkp-radius) var(--mkp-radius); }
.download-list #Grid :is(.k-grid-header-table, .k-grid-table) { min-width: 560px; }
/* The title absorbs spare room instead of proportionally enlarging every column.
   Inline widths set by Kendo's resize handles keep precedence. */
.download-list #Grid :is(.k-grid-header-table, .k-grid-table) > colgroup > col:not([style*="width"]) { width: auto; }
.download-list #Grid .k-grid-header th { color: var(--mkp-foreground); font-size: 14px; background: var(--mkp-muted); }
.download-list #Grid .k-grid-table > tbody > tr > td { padding: 6px 12px; }
.download-list #Grid .k-grid-header th:first-child { padding-left: 12px; }
.download-list #Grid td { vertical-align: middle; }
.download-list #Grid td:nth-child(2) { overflow-wrap: anywhere; font-weight: 500; }
.download-list #Grid td:last-child .btn { min-width: 32px; min-height: 32px; font-size: 14px; }
.download-thumbnail { display: flex; align-items: center; justify-content: center; width: 56px; height: 36px; background: var(--mkp-muted); border: 1px solid var(--mkp-border); border-radius: var(--mkp-radius-sm); }
.download-thumbnail img { max-width: 100%; max-height: 100%; object-fit: contain; }
.download-no-image { color: var(--mkp-muted-foreground); }
.download-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; white-space: normal; }
.download-empty > i { font-size: 24px; color: var(--mkp-muted-foreground); }
.download-empty p { margin: 0; color: var(--mkp-muted-foreground); }
.download-editor { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); background: var(--mkp-surface); border: 1px solid var(--mkp-border); border-radius: var(--mkp-radius-lg); box-shadow: var(--mkp-shadow); }
.download-editor > .card { margin: 0; min-width: 0; border: 0; box-shadow: none; background: transparent; }
.download-editor > .download-image { border-left: 1px solid var(--mkp-border); border-radius: 0; }
.download-editor .card-body { flex: none; padding: 20px; }
.download-section-heading { margin-bottom: 16px; }
.download-section-heading h2 { font-size: 16px; font-weight: 600; line-height: 24px; margin: 0 0 4px; }
.download-section-heading p { color: var(--mkp-muted-foreground); margin: 0; }
.download-content { border-top: 1px solid var(--mkp-border); }
.download-identification-fields { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; }
.download-identification-fields > div { min-width: 0; }
.download-country .country-select { width: 100%; }
.download-current-file { display: inline-block; margin-top: 12px; }
.download-preview { display: grid; justify-items: center; gap: 12px; margin: 20px 0; padding: 20px; border: 1px solid var(--mkp-border); border-radius: var(--mkp-radius); background: var(--mkp-muted); }
.download-preview img { max-width: 100%; max-height: 200px; object-fit: contain; }
.download-preview figcaption { color: var(--mkp-muted-foreground); }
@media (max-width: 991.98px) {
    .download-editor { grid-template-columns: minmax(0, 1fr); }
    .download-editor > .download-image { border-left: 0; border-top: 1px solid var(--mkp-border); }
}
@media (max-width: 575.98px) {
    .download-toolbar { align-items: stretch; flex-direction: column; gap: 12px; padding: 16px; }
    .download-toolbar > div { width: 100%; }
    .download-editor .card-body { padding: 16px; }
    .download-identification-fields { grid-template-columns: minmax(0, 1fr); }
}
