.storage-page-tabs {display:flex;gap:6px;width:fit-content;padding:5px;margin:0 0 16px;border:1px solid #d4e1ee;border-radius:11px;background:#edf3fa;}
#moduleView .storage-page-tabs button {border:0;border-radius:8px;min-height:38px;padding:8px 18px;color:#294c70;background:transparent;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;}
#moduleView .storage-page-tabs button.is-active {background:#183d60;color:#fff;}
#moduleView .storage-page-tabs button:hover:not(.is-active) {background:#dce8f7;}
.file-storage-page {display:grid;gap:14px;min-width:0;}
.file-storage-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid #d4e1ee;border-radius:12px;background:#f2f7fd;}
.file-storage-heading h3 {margin:0 0 6px;font-size:18px;color:#183d60;}
.file-storage-heading p {margin:0;color:#526f8c;font-size:13px;line-height:1.6;}
.file-storage-heading>span {white-space:nowrap;padding:6px 10px;border-radius:6px;background:#e1ecf9;color:#294c70;font-weight:600;}
#moduleView .file-storage-filter {display:grid;grid-template-columns:180px minmax(220px,420px) 84px;align-items:end;gap:12px;padding:16px;border:1px solid #d4e1ee;border-radius:12px;background:#fff;}
#moduleView .file-storage-filter label {display:grid;gap:7px;min-width:0;color:#294c70;font-size:13px;font-weight:600;}
#moduleView .file-storage-filter :is(input,select) {width:100%;min-width:0;height:38px;padding:0 10px;border:1px solid #b6cade;border-radius:7px;background:#f3f7fd;color:#203f60;font:inherit;}
.file-storage-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.file-storage-metrics article {display:grid;gap:6px;padding:13px 16px;border:1px solid #d4e1ee;border-radius:10px;background:#fff;}
.file-storage-metrics span {color:#526f8c;font-size:12px;}
.file-storage-metrics strong {font-size:22px;color:#183d60;}
.file-storage-error {color:#b33144;font-size:13px;line-height:1.5;margin:0;}
.file-storage-list {min-width:0;overflow:hidden;}
.file-storage-scroll {height:440px;overflow:auto;}
.file-storage-table {width:1250px;table-layout:fixed;border-collapse:separate;border-spacing:0;}
.file-storage-table th {position:sticky;top:0;z-index:1;}
.file-storage-table :is(td,th) {padding:12px 10px;text-align:center;vertical-align:middle;overflow-wrap:anywhere;}
.file-storage-material strong,.file-storage-material small {display:block;white-space:normal;}
.file-storage-material small {color:#63809b;font-size:11px;margin-top:4px;}
.file-storage-empty {height:180px;color:#63809b;}
.file-storage-pagination {display:flex;align-items:center;justify-content:center;gap:14px;padding:12px;border-top:1px solid #d4e1ee;background:#f8fafd;}
dialog.file-storage-photo-dialog {width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #d4e1ee;border-radius:12px;background:#fff;overflow:auto;color:#294c70;}
.file-storage-photo-dialog header {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;background:#183d60;color:#fff;}
.file-storage-photo-dialog h3 {margin:0;color:#fff;font-size:17px;overflow-wrap:anywhere;}
.file-storage-photo-dialog header button {width:34px;height:34px;flex:0 0 34px;border:1px solid #ffffff66;background:#ffffff10;border-radius:7px;color:#fff;font-size:22px;cursor:pointer;}
.file-storage-photo-dialog>p,.file-storage-photo-dialog>[role=status] {display:block;margin:14px 20px;font-size:13px;overflow-wrap:anywhere;}
.file-storage-photo-dialog img {display:block;max-width:calc(100% - 40px);max-height:68dvh;object-fit:contain;margin:0 auto 20px;}
.file-storage-photo-dialog [hidden] {display:none!important;}
@media(max-width:760px){
  .storage-page-tabs {width:100%;}
  #moduleView .storage-page-tabs button {flex:1;padding:8px 6px;font-size:13px;}
  #moduleView .file-storage-filter {grid-template-columns:minmax(0,1fr);}
  .file-storage-heading {padding:14px;align-items:flex-start;}
  .file-storage-heading>span {display:none;}
  .file-storage-metrics {gap:6px;}
  .file-storage-metrics article {padding:12px 8px;}
  .file-storage-metrics strong {font-size:18px;}
}
