.files-page { padding: 14px 16px 20px; font-size: 12px; }
.files-page .page-toolbar { margin-bottom: 10px; }
.files-page .page-toolbar h1 { font-size: 22px; line-height: 1.15; }
.files-page .page-toolbar p { margin-top: 3px; }
.files-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.files-main { min-width: 0; display: grid; gap: 12px; }
.files-upload-panel, .files-browser, .files-aside section { background: #fff; border: 1px solid #dfe8e3; border-radius: 10px; box-shadow: 0 2px 8px rgba(8, 49, 38, .04); }
.files-upload-panel { padding: 12px; }
.files-upload-fields { display: grid; grid-template-columns: 1.05fr .8fr .9fr 1.2fr; gap: 9px; }
.files-page label { color: #263b34; font-size: 11px; font-weight: 700; }
.files-page input, .files-page select, .files-page textarea { min-height: 34px; margin-top: 5px; padding: 7px 9px; border: 1px solid #d7e2dc; border-radius: 6px; font: inherit; color: #172a24; background: #fff; }
.files-page textarea { min-height: 52px; resize: vertical; }
.files-upload-row { display: grid; grid-template-columns: 1.05fr 1.35fr 120px; gap: 10px; align-items: end; margin-top: 9px; }
.files-drop-zone { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #b8c9c0; border-radius: 7px; cursor: pointer; color: #3b5049; transition: .15s ease; }
.files-drop-zone.dragging { border-color: #087a55; background: #eff9f4; }
.files-drop-zone span { font-size: 23px; color: #587068; }
.files-drop-zone b { font-weight: 600; }
.files-drop-zone em { padding: 7px 10px; background: #f7faf8; border: 1px solid #d8e3dd; border-radius: 5px; color: #143d30; font-style: normal; }
.files-upload-button { height: 36px; }
.files-limit { margin: 7px 0 0; color: #677a73; font-size: 10px; }
.files-selection { display: grid; gap: 5px; margin-top: 8px; }
.files-selection > div { display: grid; grid-template-columns: 1fr auto 28px; gap: 8px; align-items: center; padding: 6px 8px; background: #f7faf8; border-radius: 6px; }
.files-selection span { min-width: 0; display: flex; gap: 7px; align-items: baseline; }
.files-selection b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-selection small { color: #70817a; }
.files-selection em { font-style: normal; font-size: 10px; font-weight: 700; }
.files-selection em.valid { color: #17834f; } .files-selection em.invalid { color: #c74242; }
.files-selection button { border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.files-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.files-metric { min-height: 74px; display: flex; align-items: center; gap: 10px; padding: 11px; background: #fff; border: 1px solid #dfe8e3; border-radius: 9px; }
.files-metric-icon { width: 36px; height: 36px; border-radius: 9px; background: #e7f6eb; flex: 0 0 auto; }
.files-metric.blue .files-metric-icon { background: #e8f1ff; } .files-metric.purple .files-metric-icon { background: #f1eaff; } .files-metric.amber .files-metric-icon { background: #fff2dd; }
.files-metric div { display: grid; gap: 1px; min-width: 0; }
.files-metric small, .files-metric span { color: #677a73; font-size: 10px; }
.files-metric strong { font-size: 18px; color: #172a24; }
.files-browser-toolbar { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 9px; border-bottom: 1px solid #e2e9e5; }
.files-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.files-tabs button { flex: 0 0 auto; padding: 7px 9px; border: 0; border-radius: 5px; background: transparent; color: #42574f; font-weight: 700; cursor: pointer; }
.files-tabs button.active { color: #fff; background: #177647; }
.files-tabs span { opacity: .75; }
.files-browser-toolbar label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.files-browser-toolbar select { width: 132px; margin: 0; }
.files-table-wrap { width: 100%; overflow-x: auto; }
.files-table-wrap table { width: 100%; min-width: 980px; border-collapse: collapse; }
.files-table-wrap th { padding: 8px; color: #4e625a; font-size: 10px; text-align: left; background: #fbfcfb; border-bottom: 1px solid #dfe8e3; }
.files-table-wrap td { padding: 7px 8px; border-bottom: 1px solid #e6ece8; vertical-align: middle; white-space: nowrap; }
.files-table-wrap tr { cursor: pointer; } .files-table-wrap tr:hover, .files-table-wrap tr.selected { background: #f1f8f4; }
.files-name-cell { display: flex; align-items: center; gap: 8px; min-width: 210px; max-width: 300px; }
.files-name-cell > span:last-child { min-width: 0; display: grid; }
.files-name-cell b, .files-name-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-name-cell small { color: #70817a; font-size: 9px; margin-top: 2px; }
.files-type-icon { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 5px; background: #eef5f1; color: #0f6447; font-size: 8px; font-weight: 800; }
.type-pdf { color: #c33939; background: #fff0ef; } .type-jpg, .type-jpeg, .type-png, .type-webp { color: #167e7a; background: #eaf8f7; } .type-zip { color: #a86d14; background: #fff4e3; }
.files-row-actions { display: flex; gap: 3px; }
.files-row-actions button { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #d8e2dd; border-radius: 5px; background: #fff; color: #25483c; cursor: pointer; }
.files-pagination { min-height: 45px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; color: #5e716a; }
.files-pagination > div { display: flex; align-items: center; gap: 4px; }
.files-pagination button { min-width: 28px; height: 28px; border: 1px solid #dbe4df; border-radius: 5px; background: #fff; cursor: pointer; }
.files-pagination button.active { color: #fff; background: #177647; } .files-pagination button:disabled { opacity: .4; cursor: default; }
.files-pagination select { min-width: 90px; margin: 0 0 0 5px; }
.files-filter-empty { min-height: 210px; display: grid; place-content: center; justify-items: center; padding: 24px; text-align: center; }
.files-filter-empty h3 { margin: 0; font-size: 16px; }.files-filter-empty p { margin: 6px 0 14px; color: #6a7b74; }
.files-page .files-aside { min-width: 0; display: grid; gap: 12px; position: sticky; top: 76px; padding: 0 !important; background: transparent !important; color: inherit; }
.files-aside section { min-height: 160px; overflow: hidden; }
.files-aside header { padding: 10px 12px; border-bottom: 1px solid #e2e9e5; }
.files-aside h3 { margin: 0; font-size: 14px; }
.files-activity-empty, .files-details-empty { min-height: 125px; display: grid; place-content: center; justify-items: center; padding: 18px; color: #6d7d77; text-align: center; }
.files-details-empty span { font-size: 28px; }.files-details-empty h3 { margin: 8px 0 2px; color: #233831; }.files-details-empty p { margin: 3px 0; }
.files-detail-card { padding: 12px; }
.files-detail-title { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; }
.files-detail-title h3 { margin: 0; font-size: 14px; word-break: break-word; }.files-detail-title p { margin: 2px 0 0; color: #72827c; }
.files-detail-card dl { margin: 0; display: grid; gap: 0; }
.files-detail-card dl div { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 7px; padding: 6px 0; border-bottom: 1px solid #edf1ef; }
.files-detail-card dt { color: #71817a; }.files-detail-card dd { margin: 0; color: #22372f; word-break: break-word; }
.files-preview-note { padding: 8px; border-radius: 5px; background: #f6f8f7; color: #677871; font-size: 10px; }
.files-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.files-detail-actions .danger { border-color: #edd1d1; color: #ad3434; background: #fff; }
.text-link { padding: 0; border: 0; background: none; color: #176b4c; font: inherit; cursor: pointer; }
@media (max-width: 1180px) { .files-layout { grid-template-columns: 1fr; } .files-page .files-aside { position: static; grid-template-columns: 1fr 1fr; } .files-upload-fields { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .files-page { padding: 10px; } .files-upload-row { grid-template-columns: 1fr; } .files-upload-button { width: 100%; } .files-metrics { grid-template-columns: repeat(2, 1fr); } .files-browser-toolbar, .files-pagination { align-items: stretch; flex-direction: column; } .files-browser-toolbar label { justify-content: space-between; } .files-aside { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .files-upload-fields, .files-metrics { grid-template-columns: 1fr; } .files-page .page-toolbar h1 { font-size: 19px; } .files-drop-zone { flex-wrap: wrap; padding: 10px; } }
