.file-workspace { min-width: 0; color: var(--text); font-size: 14px; }
.file-workspace *, .fm-export { box-sizing: border-box; letter-spacing: 0; }
.fm-icon { width: 18px; height: 18px; flex: 0 0 18px; opacity: .78; }
.fm-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; transition: background .15s, transform .1s; }
.fm-icon-button:hover { background: #edf1f5; border-color: #d7dde5; }
.fm-icon-button:active, .file-workspace button:active { transform: translateY(1px); }
.fm-icon-button:focus-visible, .file-workspace :focus-visible { outline: 2px solid #146a89; outline-offset: 2px; }
.fm-icon-button:disabled, .fm-export:disabled { opacity: .4; cursor: default; }
.fm-export { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; padding: 8px 14px; }
.fm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 18px; padding: 14px 0; border-block: 1px solid var(--line); }
.fm-metrics > div { padding: 0 18px; border-right: 1px solid var(--line); }
.fm-metrics > div:first-child { padding-left: 0; }
.fm-metrics > div:last-child { border: 0; }
.fm-metrics dt { color: var(--muted); font-size: 12px; margin: 0 0 4px; }
.fm-metrics dd { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.2; }
.fm-warning dd { color: #b13a31; }
.fm-toolbar { display: grid; grid-template-columns: minmax(230px, 2fr) repeat(5, minmax(110px, 1fr)); gap: 8px; align-items: start; margin-bottom: 12px; }
.fm-search { display: flex; min-width: 0; height: 42px; gap: 0; margin: 0; }
.fm-search input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 5px 0 0 5px; background: white; padding: 8px 10px; height: 42px; font-size: 13px; font-weight: 400; }
.fm-search button { display: inline-flex; gap: 5px; align-items: center; height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-left: 0; background: white; border-radius: 0 5px 5px 0; font-size: 13px; font-weight: 600; cursor: pointer; }
.fm-filter { position: relative; min-width: 0; }
.fm-filter summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 42px; padding: 9px 10px; border: 1px solid var(--line); background: white; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fm-filter summary::-webkit-details-marker { display: none; }
.fm-filter summary span { color: var(--muted); margin-left: auto; font-size: 11px; }
.fm-filter summary .fm-icon { width: 13px; height: 13px; flex-basis: 13px; }
.fm-filter[open] summary .fm-icon { transform: rotate(90deg); }
.fm-filter-menu { position: absolute; top: 48px; left: 0; width: 300px; max-width: calc(100vw - 40px); background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px #202b401a; z-index: 45; }
.fm-filter:nth-last-child(-n+2) .fm-filter-menu { left: auto; right: 0; }
.fm-filter-commands { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fm-filter-commands button, .fm-location button { border: 0; padding: 0; background: transparent; color: #17607a; cursor: pointer; font-size: 12px; }
.fm-filter-options { max-height: 280px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.fm-filter-options label { display: flex; flex-direction: row; align-items: start; gap: 9px; padding: 9px 6px; font-size: 13px; font-weight: 400; text-transform: none; color: var(--text); }
.fm-filter-options label:hover { background: #f4f6f8; }
.file-workspace input[type=checkbox] { width: 16px; height: 16px; min-width: 16px; margin: 1px 0; accent-color: var(--accent); cursor: pointer; }
.fm-location { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.fm-location > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-muted { color: var(--muted); }
.fm-table-scroll { overflow-x: auto; width: 100%; background: white; border: 1px solid var(--line); border-radius: 6px; }
.fm-table { table-layout: fixed; border-collapse: collapse; width: 100%; min-width: 1130px; font-size: 13px; }
.fm-student-table { min-width: 820px; }
.fm-student-name-col { width: 24%; } .fm-student-program-col { width: 27%; } .fm-student-agent-col { width: 16%; }
.fm-student-files-col { width: 55px; } .fm-student-size-col { width: 85px; } .fm-student-storage-col { width: 115px; } .fm-student-actions-col { width: 88px; }
.fm-student-name { display: flex; gap: 10px; align-items: center; min-width: 0; }
.fm-student-name > div { min-width: 0; }
.fm-student-name > .fm-icon { width: 24px; height: 24px; flex-basis: 24px; opacity: .65; }
.fm-select-col { width: 36px; } .fm-file-col { width: 22%; } .fm-person-col { width: 15%; } .fm-program-col { width: 18%; } .fm-agent-col { width: 10%; } .fm-size-col { width: 78px; } .fm-date-col { width: 105px; } .fm-status-col { width: 120px; } .fm-actions-col { width: 148px; }
.fm-table th { position: relative; height: 42px; text-align: left; padding: 7px 10px; background: #f4f6f9; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 650; color: #526074; }
.fm-table th button { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.fm-table th .fm-icon { width: 13px; height: 13px; flex-basis: 13px; }
.fm-table td { height: 60px; padding: 9px 10px; border-bottom: 1px solid #e9ecf0; vertical-align: middle; }
.fm-table tr:last-child td { border-bottom: 0; }
.fm-table tbody tr:hover { background: #f8fafb; }
.fm-table tr.is-selected { background: #edf6f8; }
.fm-table small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-file-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fm-file-name > div { min-width: 0; }
.fm-file-name button, .fm-link { display: block; max-width: 100%; border: 0; background: transparent; padding: 0; font: inherit; font-weight: 600; text-align: left; color: #225a72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.fm-file-name button:hover, .fm-link:hover { text-decoration: underline; }
.fm-truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-storage { display: inline-block; padding: 4px 6px; font-size: 11px; border-radius: 4px; background: #f0f1f4; white-space: nowrap; color: #586273; }
.fm-storage.is-synced { color: #196144; background: #e5f5ed; }
.fm-storage.is-warning { color: #ac332d; background: #fdebe8; }
.fm-actions { display: flex; align-items: center; gap: 1px; }
.fm-pagination { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--muted); font-size: 12px; }
.fm-pagination > div { display: flex; gap: 6px; }
.fm-table .fm-empty { padding: 42px 16px; text-align: center; color: var(--muted); }
.fm-error { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; margin: 8px 0; background: #fff0ed; color: #a33027; border-radius: 5px; }
.fm-error button { border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; }
.fm-overlay { position: fixed; inset: 0; padding: 24px; background: #11182788; z-index: 120; display: flex; align-items: center; justify-content: center; }
.fm-preview { display: flex; flex-direction: column; width: min(1040px, 100%); height: min(880px, calc(100dvh - 48px)); background: white; border-radius: 8px; overflow: hidden; }
.fm-preview header { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 12px; }
.fm-preview header > div:first-child { min-width: 0; }
.fm-preview header strong, .fm-preview header small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-preview header small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fm-preview-body { flex: 1; min-height: 0; display: grid; place-items: center; background: #f1f3f5; overflow: auto; }
.fm-preview-body iframe { width: 100%; height: 100%; border: 0; }
.fm-document-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.fm-preview-unavailable { text-align: center; padding: 20px; }
.fm-preview footer { display: flex; flex: 0 0 auto; justify-content: space-between; gap: 12px; padding: 10px 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.fm-preview footer span { overflow-wrap: anywhere; }
.fm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 1400px) { .fm-toolbar { grid-template-columns: repeat(5, minmax(0, 1fr)); } .fm-search { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .fm-metrics { margin-bottom: 12px; padding: 10px 0; }
  .fm-metrics > div { padding: 0 9px; } .fm-metrics dt { font-size: 10px; min-height: 28px; } .fm-metrics dd { font-size: 17px; }
  .fm-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .fm-filter-menu { width: min(310px, calc(100vw - 40px)); }
  .fm-filter:nth-child(even) .fm-filter-menu { left: 0; right: auto; }
  .fm-filter:nth-child(odd) .fm-filter-menu { left: auto; right: 0; }
  .fm-filter summary { min-height: 44px; }
  .fm-filter-options label { min-height: 44px; }
  .fm-location { align-items: start; flex-direction: column; }
  .fm-icon-button { width: 40px; height: 40px; flex-basis: 40px; }
  .fm-actions-col { width: 174px; }
  .fm-student-actions-col { width: 100px; }
  .fm-export { font-size: 12px; min-height: 40px; padding: 8px 10px; }
  .fm-overlay { padding: 8px; } .fm-preview { height: calc(100dvh - 16px); }
  .fm-preview header { padding: 10px; } .fm-preview footer { padding: 10px; flex-direction: column; gap: 3px; }
}
