.filters { grid-template-columns: 1.3fr 1fr .8fr 1fr; }
.object .badge { margin-left: 6px; font-size: 11px; padding: 3px 7px; }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .filters { grid-template-columns: 1fr; } }
.type-grid { align-items: start; }
.type-item.type-open { grid-column: 1/-1; }
.type-toggle { width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left; border: 0; background: transparent; color: #172033; padding: 0; cursor: pointer; }
.type-toggle small { display: block; }
.type-toggle b { color: #1769e0; font-size: 13px; }
.document-list { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dfe5ec; }
.document-item { display: grid; grid-template-columns: minmax(260px,1fr) auto auto; align-items: center; gap: 12px; padding: 12px; border-radius: 9px; background: #f7f9fc; }
.document-item strong, .document-item small { display: block; }
.document-item small { color: #667085; margin-top: 4px; }
.download { border: 0; border-radius: 9px; padding: 9px 12px; background: #1769e0; color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 700px) { .document-item { grid-template-columns: 1fr; } }
.document-groups { display: grid; gap: 12px; margin-top: 10px; }
.document-group { border: 1px solid #dce4ee; border-radius: 10px; padding: 10px; background: #fff; }
.document-group h4 { margin: 0 0 8px; font-size: 14px; color: #344054; }
.document-group h4 span { color: #667085; font-weight: 500; }
.type-summary { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.type-summary small { background: #eef3f9; border-radius: 99px; padding: 3px 8px; }
.filters { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
@media (max-width: 900px) { .filters { grid-template-columns: repeat(2, minmax(180px, 1fr)); } }
@media (max-width: 620px) { .filters { grid-template-columns: 1fr; } }
.document-tools { display: grid; grid-template-columns: minmax(260px,1fr) 210px auto; gap: 12px; align-items: end; margin-top: 14px; padding: 14px; border-radius: 10px; background: #eef4fb; }
.document-tools label span { display: block; margin-bottom: 6px; color: #475467; font-size: 12px; font-weight: 750; }
.document-tools input,.document-tools select { width: 100%; min-height: 42px; border: 1px solid #b8c3d1; border-radius: 9px; padding: 9px 11px; background: #fff; color: #101828; font: inherit; }
.document-result { padding: 11px 4px; white-space: nowrap; color: #344054; font-size: 13px; }
.document-list.compact { max-height: 820px; overflow: auto; padding-right: 4px; }
.category-line { width: fit-content; padding: 3px 8px; border-radius: 99px; background: #e8f0ff; color: #1759b7 !important; font-weight: 700; }
.show-more { display: block; width: 100%; margin-top: 10px; border: 1px solid #b9c9dc; border-radius: 9px; padding: 11px; background: #fff; color: #1759b7; font-weight: 750; cursor: pointer; }
.show-more span { color: #667085; font-weight: 500; }
@media (max-width: 700px) { .document-tools { grid-template-columns: 1fr; } .document-result { padding: 0; } .document-list.compact { max-height: none; } }
.document-actions { display: flex; gap: 7px; }
.preview { border: 1px solid #1769e0; border-radius: 9px; padding: 9px 12px; background: #fff; color: #1759b7; font-weight: 700; cursor: pointer; }
.approve { border: 0; border-radius: 9px; padding: 9px 12px; background: #16803c; color: #fff; font-weight: 700; cursor: pointer; }
.delete-document { border: 0; border-radius: 9px; padding: 9px 12px; background: #d62f35; color: #fff; font-weight: 700; cursor: pointer; }
.type-item.documents-pending { background: #fff8dc; border-color: #f0cf70; }
.type-item.documents-approved { background: #eaf8ef; border-color: #8fd0a5; }
tr.documents-pending > td { background: #fffaf0; }
tr.documents-approved > td { background: #f0faf3; }
tr.documents-pending > td:first-child { box-shadow: inset 4px 0 #e7ae22; }
tr.documents-approved > td:first-child { box-shadow: inset 4px 0 #38a462; }
.preview-dialog { width: min(1100px,95vw); height: min(850px,92vh); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 70px #10182855; overflow: hidden; }
.preview-dialog::backdrop { background: #101828aa; }
.preview-head { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 16px; border-bottom: 1px solid #dfe5ec; }
.preview-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-head button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #eef2f6; color: #344054; font-size: 25px; cursor: pointer; }
.preview-dialog iframe { display: block; width: 100%; height: calc(100% - 56px); border: 0; background: #f3f5f8; }
@media (max-width: 700px) { .document-actions { flex-wrap: wrap; } .preview-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0; } }
.stats { grid-template-columns: repeat(5,1fr); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2,1fr); } }
.shell, .panel, .table-wrap { min-width: 0; }
body { overflow-x: hidden; }
