/*  filelist.css  --  public file list widget
 *  FTP to:  /DesktopModules/FileList/filelist.css
 *  Brand color is set once, at the top.
 */

:root {
  --bn-files-accent: #b3232c;         /* Royal Family red */
  --bn-files-accent-dark: #8e1b23;    /* hover state */
}

.bn-files { font-size: 15px; margin-bottom: 32px; }
.bn-files-heading { margin: 28px 0 10px; }

.bn-files-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bn-files-search { flex: 1 1 240px; max-width: 340px; padding: 8px 12px;
  border: 1px solid #c9ced6; border-radius: 6px; font-size: 15px; }
.bn-files-count { color: #6b7280; font-size: 13px; }

.bn-files-table { width: 100%; border-collapse: collapse; }
.bn-files-table th, .bn-files-table td { text-align: left; padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
.bn-files-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: #6b7280; border-bottom-width: 2px; }
.bn-files-table td.bn-num, .bn-files-table th.bn-num { text-align: right; white-space: nowrap; }
.bn-files-table tr:hover td { background: #f9fafb; }

.bn-files-name { font-weight: 600; text-decoration: none; word-break: break-word; }
.bn-files-sub { display: block; font-size: 12px; color: #6b7280; font-weight: 400; }
.bn-files-ext { display: inline-block; min-width: 42px; padding: 2px 6px; margin-right: 8px;
  border-radius: 4px; background: #eef2f7; color: #445; font-size: 11px; font-weight: 700;
  text-align: center; text-transform: uppercase; vertical-align: middle; }

.bn-files-dl { display: inline-block; padding: 5px 12px; border-radius: 6px;
  background: var(--bn-files-accent); color: #fff !important; text-decoration: none;
  font-size: 13px; white-space: nowrap; }
.bn-files-dl:hover { background: var(--bn-files-accent-dark); }

.bn-files-status, .bn-files-empty { color: #6b7280; padding: 12px 0; }
.bn-files-status.bn-error { color: #b42318; }

.bn-files-pager { display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.bn-files-pager button { min-width: 34px; padding: 6px 10px; border: 1px solid #d3d8e0;
  background: #fff; color: #333; border-radius: 6px; font-size: 14px; line-height: 1.2; cursor: pointer; }
.bn-files-pager button:hover:not(:disabled) { background: #f1f5f9; border-color: #b9c2cf; }
.bn-files-pager button:disabled { opacity: .45; cursor: default; }
.bn-files-pager button.bn-current { background: var(--bn-files-accent);
  border-color: var(--bn-files-accent); color: #fff; font-weight: 700; cursor: default; }
.bn-files-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bn-files-gap { color: #9aa3af; padding: 0 2px; }

@media (max-width: 600px) {
  .bn-files-table thead { display: none; }
  .bn-files-table tr { display: block; border-bottom: 1px solid #e5e7eb; padding: 8px 0; }
  .bn-files-table td { display: inline-block; border: 0; padding: 3px 8px 3px 0; }
}
