.erp51-custom-mode > :not(.erp51-custom-page){display:none!important}
.erp51-custom-page{padding-bottom:88px}
.erp51-loading{padding:28px;text-align:center;color:#667085}
.erp51-doc-alert-setup{margin:0 0 18px}
.erp51-alert-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px}
.erp51-alert-card>div:first-child{display:flex;align-items:center;gap:12px}.erp51-alert-card p{margin:4px 0 0;color:#667085}
.erp51-bell{font-size:28px}.erp51-alert-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.erp51-push-on,.erp51-push-off{font-size:12px;font-weight:700;border-radius:999px;padding:6px 9px}.erp51-push-on{background:#e8f7ee;color:#157347}.erp51-push-off{background:#fff3cd;color:#805b00}
.erp51-doc-table-wrap td small{display:block;color:#7b8495;margin-top:4px}.erp51-doc-type{display:inline-block;font-weight:700}.erp51-read{font-weight:700;color:#157347}.erp51-unread{font-weight:800;color:#b54708}.erp51-unread-row{background:rgba(245,158,11,.06)}
.erp51-doc-actions{white-space:nowrap}.erp51-doc-actions button{margin:2px}.erp51-file-help{font-size:12px;color:#667085;margin-top:8px}
.erp51-unread-floating{position:fixed;right:22px;bottom:22px;z-index:10050;width:min(410px,calc(100vw - 28px));display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;background:#fff;border:1px solid #dfe4ea;border-radius:16px;box-shadow:0 16px 44px rgba(16,24,40,.22);padding:16px 16px 16px 18px}
.erp51-floating-icon{width:42px;height:42px;border-radius:12px;background:#eef2ff;color:#3448c5;display:grid;place-items:center;font-size:22px}.erp51-unread-floating b{display:block}.erp51-unread-floating p{margin:3px 0 0;color:#667085;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.erp51-floating-close{position:absolute;right:5px;top:2px;border:0;background:transparent;font-size:20px;color:#667085;cursor:pointer}
.erp51-cost-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.erp51-cost-inputs label{display:flex;flex-direction:column;gap:5px}.erp51-cost-inputs label.wide{grid-column:1/-1}.erp51-cost-inputs span{font-size:12px;font-weight:700;color:#475467}.erp51-cost-inputs input{width:100%}
.erp51-cost-history{margin-top:16px}.erp51-cost-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.erp51-cost-totals span{padding:10px;border-radius:10px;background:#f7f8fa}.erp51-cost-totals small,.erp51-cost-totals b{display:block}.erp51-cost-totals small{color:#667085;margin-bottom:4px}.erp51-cost-ledger{margin-top:10px;max-height:250px;overflow:auto;border-top:1px solid #e5e7eb}.erp51-cost-ledger>div{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid #eef0f3}.erp51-cost-ledger span small{display:block;color:#7b8495;margin-top:2px}.erp51-cost-ledger strong{white-space:nowrap}
@media(max-width:760px){.erp51-alert-card{align-items:flex-start;flex-direction:column}.erp51-alert-actions{justify-content:flex-start}.erp51-unread-floating{left:14px;right:14px;bottom:78px;width:auto;grid-template-columns:auto 1fr}.erp51-unread-floating .erp51-floating-open{grid-column:1/-1;width:100%}.erp51-cost-inputs{grid-template-columns:1fr}.erp51-cost-inputs label.wide{grid-column:auto}.erp51-cost-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.erp51-cost-ledger>div{grid-template-columns:1fr auto}.erp51-cost-ledger>div>button{grid-column:1/-1}.erp51-doc-actions{white-space:normal}}

/* v0.70 FIX4: 문서보관함 관리자 필터 + 필터 결과 일괄 다운로드 */
.erp51-doc-filters{margin:0 0 16px;padding:14px 16px;border:1px solid #e6eaf1;border-radius:14px;background:#f8fafc}
.erp51-doc-filter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.erp51-doc-filter-head>div{display:flex;flex-direction:column;gap:2px}.erp51-doc-filter-head b{font-size:14px}.erp51-doc-filter-head small{color:#7a8496}.erp51-doc-filter-count{font-weight:800;color:#356fda}
.erp51-doc-filter-grid{display:grid;grid-template-columns:minmax(150px,1fr) 170px 160px minmax(300px,1.35fr) auto auto;gap:10px;align-items:end}.erp51-doc-filter-grid label,.erp51-doc-period{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#5b6575}.erp51-doc-filter-grid input,.erp51-doc-filter-grid select{box-sizing:border-box;width:100%;height:38px;border:1px solid #d8dee8;border-radius:9px;padding:7px 10px;background:#fff}.erp51-doc-period>div{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:7px}.erp51-doc-period i{font-style:normal;color:#8a94a6}.erp51-doc-filter-grid button{height:38px;white-space:nowrap}
@media(max-width:1100px){.erp51-doc-filter-grid{grid-template-columns:1fr 170px 160px 1.5fr}.erp51-doc-filter-grid .erp51-doc-filter-reset,.erp51-doc-filter-grid .erp51-doc-bulk-download{grid-column:auto}}
@media(max-width:760px){.erp51-doc-filter-grid{grid-template-columns:1fr}.erp51-doc-period>div{grid-template-columns:1fr auto 1fr}.erp51-doc-filter-grid button{width:100%}.erp51-doc-filter-head{align-items:flex-start}}

.erp51-doc-filter-stats{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.erp51-doc-selected-count{font-weight:800;color:#157347}
.erp51-doc-person-select{display:flex;align-items:flex-start;gap:9px;cursor:pointer}
.erp51-doc-person-select>input{margin-top:3px;width:16px;height:16px;accent-color:#356fda}
.erp51-doc-person-select>span{min-width:0}
.erp51-doc-select-all-label{display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.erp51-doc-select-all-label input{width:16px;height:16px;accent-color:#356fda}

.erp51-file-summary{margin-top:8px;padding:9px 11px;border:1px solid #dce5f1;border-radius:9px;background:#f8fbff;color:#42526b;font-size:12px;line-height:1.45}.erp51-file-help code{padding:1px 5px;border-radius:5px;background:#eef3fa;color:#234b7c}


/* ==========================================================
   FIX13 - 문서 개인/여러 명 일괄 업로드
   ========================================================== */
.erp51-upload-mode-tabs{display:flex;gap:6px;margin:4px 0 14px;padding:4px;border:1px solid #dce4ef;border-radius:11px;background:#f5f8fc}
.erp51-upload-mode{flex:1;min-height:40px;border:0;border-radius:8px;background:transparent;color:#66758a;font-weight:800;cursor:pointer}
.erp51-upload-mode.active{background:#fff;color:#2165d6;box-shadow:0 1px 5px rgba(35,74,130,.10)}
.erp51-doc-upload-modal.erp51-bulk-mode{width:min(1080px,calc(100vw - 30px));max-width:1080px}
.erp51-bulk-preview{margin-top:10px}
.erp51-bulk-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #dce5f1;border-bottom:0;border-radius:10px 10px 0 0;background:#f8fbff}
.erp51-bulk-preview-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.erp51-bulk-preview-head b{font-size:13px;color:#223a5a}.erp51-bulk-preview-head small{font-size:11px;color:#7b889a}
.erp51-bulk-empty{padding:18px;border:1px dashed #cfd9e7;border-radius:10px;background:#fafcff;color:#78869a;text-align:center;font-size:12px}
.erp51-bulk-table-wrap{max-height:340px;overflow:auto;border:1px solid #dce5f1;border-radius:0 0 10px 10px;-webkit-overflow-scrolling:touch}
.erp51-bulk-table{width:100%;min-width:820px;border-collapse:collapse;background:#fff;font-size:12px}
.erp51-bulk-table th{position:sticky;top:0;z-index:2;padding:9px 10px;background:#f3f7fc;color:#65758b;text-align:left;border-bottom:1px solid #dce5f1;white-space:nowrap}
.erp51-bulk-table td{padding:8px 10px;border-bottom:1px solid #edf1f6;vertical-align:middle}.erp51-bulk-table tr:last-child td{border-bottom:0}
.erp51-bulk-table tr.blocked{background:#fffafa}.erp51-bulk-table tr.uploaded{background:#f8fffb}.erp51-bulk-table .check{width:48px;text-align:center}
.erp51-bulk-table td.file{max-width:340px}.erp51-bulk-table td.file span{display:block;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.erp51-bulk-table td.file small{display:block;margin-top:2px;color:#97a2b2}
.erp51-bulk-table select{width:100%;min-width:210px;height:34px;border:1px solid #d6dfeb;border-radius:7px;padding:5px 8px;background:#fff}
.erp51-bulk-status{display:inline-flex;align-items:center;min-height:26px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.erp51-bulk-status.ok{background:#eaf8f0;color:#238454}.erp51-bulk-status.warn{background:#fff5de;color:#ad6b00}.erp51-bulk-status.error{background:#fff0f1;color:#cc3f4d}
@media(max-width:760px){.erp51-upload-mode-tabs{position:sticky;top:0;z-index:3}.erp51-bulk-preview-head{align-items:flex-start;flex-direction:column}.erp51-bulk-preview-head button{width:100%}.erp51-bulk-table-wrap{max-height:360px}}
