.doc-page{display:flex;flex-direction:column;gap:16px;padding:16px 20px;min-width:0}.doc-split{display:grid;grid-template-columns:380px minmax(0,1fr);gap:16px;align-items:start}@media (max-width:1000px){.doc-split{grid-template-columns:1fr}}.doc-card{border:1px solid #e6edf5;border-radius:14px;background:#ffffff;overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.05),0 2px 6px rgba(15,23,42,.04)}.doc-card-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(180deg,#f8fbff,#ffffff);border-bottom:1px solid #eef2f8}.doc-card-head h2{margin:0;flex:1;color:#0f2744;font-size:15px;font-weight:700}.doc-card-body{padding:12px}.doc-search{width:100%;height:38px;padding:0 12px;margin-bottom:10px;border:1px solid #dbe3ee;border-radius:9px;background:#fbfcfe;font:inherit;outline:none}.doc-search:focus{border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px rgba(59,130,246,.14)}.doc-add-btn{height:34px;border:0;border-radius:8px;padding:0 13px;display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#2f74c0,#1e4e86);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 6px 14px rgba(37,99,165,.25)}.doc-add-btn:hover{filter:brightness(1.05)}.doc-tree{display:flex;flex-direction:column;gap:1px;max-height:68vh;overflow:auto}.doc-tree-empty{padding:24px 10px;text-align:center;color:#94a3b8;font-size:13px}.doc-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;cursor:pointer;position:relative;transition:background .12s ease}.doc-row:hover{background:#f1f6fc}.doc-row.is-selected{background:#e0edfb}.doc-row.is-inactive .doc-row-name{color:#94a3b8;text-decoration:line-through}.doc-caret{width:16px;color:#64748b;align-items:center;justify-content:center}.doc-caret,.doc-row-icon{flex-shrink:0;display:inline-flex}.doc-row-icon{color:#2f74c0}.doc-row-name{flex:1;min-width:0;font-size:13px;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-status-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%}.doc-status-dot.on{background:#22c55e}.doc-status-dot.off{background:#cbd5e1}.doc-row-actions{display:none;align-items:center;gap:3px;flex-shrink:0}.doc-icon-btn,.doc-row:hover .doc-row-actions{display:inline-flex}.doc-icon-btn{width:26px;height:26px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#475569;align-items:center;justify-content:center;cursor:pointer}.doc-icon-btn:hover{background:#f8fafc;color:#0f172a}.doc-icon-btn.is-add:hover{color:#2563eb;border-color:#bfdbfe}.doc-icon-btn.is-del:hover{color:#dc2626;border-color:#fecaca}.doc-viewer{min-height:420px;display:flex;flex-direction:column}.doc-viewer-frame{flex:1;width:100%;min-height:60vh;border:0}.doc-viewer-empty{flex:1;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:14px;padding:40px}.doc-viewer-meta{font-size:12px;color:#64748b;font-weight:500}.doc-modal{width:min(560px,94vw);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 24px 60px rgba(15,23,42,.28)}.doc-modal-head{display:flex;align-items:center;padding:15px 18px;background:linear-gradient(135deg,#2f74c0,#1e4e86);color:#fff}.doc-modal-head h3{margin:0;flex:1;font-size:16px;font-weight:700}.doc-modal-x{border:0;background:rgba(255,255,255,.15);color:#fff;width:28px;height:28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.doc-modal-x:hover{background:rgba(255,255,255,.28)}.doc-modal-body{padding:18px;display:flex;flex-direction:column;gap:14px;max-height:70vh;overflow:auto}.doc-modal-error{margin:0;padding:9px 12px;border-radius:8px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:13px}.doc-field{display:grid;gap:6px}.doc-field>span{font-size:13px;font-weight:600;color:#334155}.doc-req{color:#ef4444;font-style:normal;margin-left:2px}.doc-field input,.doc-field select{height:40px;padding:0 12px;border:1px solid #dbe3ee;border-radius:9px;background:#fbfcfe;font:inherit;color:#0f172a;outline:none}.doc-field input:focus,.doc-field select:focus{border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px rgba(59,130,246,.14)}.doc-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media (max-width:560px){.doc-field-row{grid-template-columns:1fr}}.doc-type-toggle{display:inline-flex;gap:8px}.doc-type-toggle button{flex:1;height:40px;border:1px solid #dbe3ee;border-radius:9px;background:#fbfcfe;color:#475569;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-weight:600;cursor:pointer}.doc-type-toggle button.is-active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.doc-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.doc-upload-btn{height:38px;padding:0 14px;border:1px solid #cdd8e6;border-radius:9px;background:#f8fafc;color:#1e293b;display:inline-flex;align-items:center;gap:7px;font:inherit;font-weight:600;cursor:pointer}.doc-upload-btn:hover{background:#eef2f7}.doc-upload-name{font-size:12.5px;color:#64748b;min-width:0;word-break:break-word}.doc-spin{animation:doc-spin .8s linear infinite}@keyframes doc-spin{to{transform:rotate(1turn)}}.doc-status-wrap{display:inline-flex;align-items:center;gap:10px}.doc-status-toggle{width:46px;height:26px;border:0;border-radius:999px;background:#cbd5e1;position:relative;cursor:pointer;transition:background .15s ease}.doc-status-toggle.is-active{background:#22c55e}.doc-status-knob{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s ease}.doc-status-toggle.is-active .doc-status-knob{transform:translateX(20px)}.doc-status-wrap strong{font-size:13px}.doc-status-wrap strong.is-active{color:#16a34a}.doc-status-wrap strong.is-inactive{color:#94a3b8}.doc-modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid #eef2f8;background:#f8fafc}.doc-modal-actions button{height:38px;padding:0 18px;border-radius:9px;border:1px solid #d5dde8;background:#fff;color:#334155;font:inherit;font-weight:600;cursor:pointer}.doc-modal-actions button.is-primary{border:0;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;box-shadow:0 6px 14px rgba(22,163,74,.25)}.doc-modal-actions button:disabled{opacity:.6;cursor:default}