@media(min-width:851px){.main-nav button[data-view="documentation"]:before{content:"DOC";font-size:9px;font-weight:900}}

#documentationView{--doc-accent:#0f8f8a;--doc-accent-soft:#e8f7f6;--doc-navy:#173456;--doc-surface:#fff;--doc-subtle:#f7fafc}
.document-center-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.document-center-head h1{margin:0;font-size:25px;line-height:1.2;color:var(--doc-navy)}
.document-center-head p{margin:5px 0 0}
.document-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.document-head-actions .muted{font-size:11px;max-width:240px;text-align:right}

.document-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;gap:12px;align-items:center;margin:14px 0;padding:11px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.document-search-box{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}
.document-search-box:focus-within{border-color:#4bb9b3;box-shadow:0 0 0 3px rgba(15,143,138,.12)}
.document-search-box>span{width:17px;height:17px;margin-left:12px;border:2px solid #718399;border-radius:50%;position:relative}
.document-search-box>span:after{content:"";position:absolute;width:7px;height:2px;right:-5px;bottom:-2px;background:#718399;transform:rotate(45deg);border-radius:2px}
.document-search-box input{border:0;border-radius:0;background:transparent;box-shadow:none;outline:0}
.document-search-box button{margin:4px;padding:8px 14px;border-radius:6px}
.document-content-search{display:flex;align-items:center;gap:7px;margin:0;font-weight:600;white-space:nowrap;color:#52657a}
.document-content-search input{width:auto;margin:0;accent-color:var(--doc-accent)}
.document-content-search small{font-weight:500;color:var(--muted)}
.document-toolbar-controls{display:flex;align-items:center;gap:8px}
.document-toolbar-controls select{width:auto;min-width:150px;padding:9px}
.document-view-toggle{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.document-view-toggle button{min-width:54px;padding:9px 10px;border-radius:0;background:#fff;color:#52657a;font-size:12px}
.document-view-toggle button+button{border-left:1px solid var(--line)}
.document-view-toggle button.active{background:var(--doc-accent-soft);color:#08746f}

.document-browser-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:580px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--doc-surface)}
.document-browser-sidebar{display:flex;flex-direction:column;gap:4px;padding:13px 10px;border-right:1px solid var(--line);background:#fbfdfe}
.document-browser-sidebar button{display:flex;align-items:center;gap:11px;width:100%;padding:11px 12px;text-align:left;border-radius:7px;background:transparent;color:#455a70;font-size:13px}
.document-browser-sidebar button:hover{background:#eef6f8}
.document-browser-sidebar button.active{background:#e8f5f6;color:#08746f;box-shadow:inset 3px 0 var(--doc-accent)}
.doc-nav-icon{display:inline-grid;place-items:center;width:21px;height:21px;flex:0 0 auto;color:currentColor;font-size:17px;font-style:normal}
.doc-nav-icon svg{width:20px;height:20px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.doc-nav-icon.home:before{content:"⌂"}.doc-nav-icon.folder:before{content:"▱"}.doc-nav-icon.recent:before{content:"◷"}.doc-nav-icon.star:before{content:"☆"}
.document-browser-main{min-width:0;padding:0 18px 20px}
.document-breadcrumbs{display:flex;align-items:center;gap:8px;min-height:58px;overflow-x:auto;border-bottom:1px solid var(--line);white-space:nowrap}
.document-breadcrumbs button{padding:6px 3px;background:transparent;color:#0b7e79;font-size:13px}
.document-breadcrumbs span{color:var(--doc-navy);font-size:13px;font-weight:800}
.document-breadcrumbs i{color:#91a0b0;font-style:normal;font-size:19px}
#documentationStatus{margin-top:12px}.documentation-error{background:#fef2f2!important;border-color:#fecaca!important;color:#991b1b!important}
.documentation-grid{display:grid;gap:20px;padding-top:18px}
.document-section{display:grid;gap:12px;min-width:0}
.document-section+.document-section{padding-top:5px}
.document-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.document-section-head h2{margin:0;color:var(--doc-navy);font-size:17px}
.document-section-head span{color:var(--muted);font-size:11px}

.document-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px}
.document-folder-card{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:12px;min-height:116px;padding:16px;border:1px solid #dbe4eb;border-radius:9px;background:#fff;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.document-folder-card:hover,.document-folder-card:focus-visible{border-color:#74c9c4;box-shadow:0 7px 18px rgba(20,66,83,.1);outline:0;transform:translateY(-1px)}
.document-folder-icon{position:relative;width:52px;height:41px;border-radius:5px;background:linear-gradient(180deg,#b4ebe6,#8edbd4);box-shadow:inset 0 -1px rgba(0,0,0,.04)}
.document-folder-icon:before{content:"";position:absolute;left:0;top:-8px;width:28px;height:12px;border-radius:5px 5px 0 0;background:#279e9a}
.document-folder-copy{min-width:0}
.document-folder-copy h3{margin:0;color:#163657;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.document-folder-copy p{margin:7px 0 0;color:var(--muted);font-size:12px}
.document-folder-card .folder-access-badge{position:absolute;left:16px;bottom:10px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.folder-access-badge.general{background:#dcfce7;color:#166534}.folder-access-badge.project{background:#dbeafe;color:#1d4ed8}
.document-more-button{position:absolute;top:8px;right:8px;padding:5px 8px;background:transparent;color:#60758b;letter-spacing:1px}
.document-more-button:hover{background:#eef5f7}

.document-files-table{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff}
.document-files-head,.document-file-row{display:grid;grid-template-columns:minmax(280px,1.7fr) minmax(95px,.55fr) minmax(125px,.7fr) minmax(80px,.45fr) minmax(138px,.7fr);align-items:center;gap:12px}
.document-files-head{padding:10px 14px;border-bottom:1px solid var(--line);background:#f6f8fa;color:#56697d;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.document-file-row{min-height:67px;padding:9px 14px;border-bottom:1px solid #e8edf1;cursor:pointer;font-size:12px}
.document-file-row:last-child{border-bottom:0}
.document-file-row:hover,.document-file-row:focus-visible{background:#edf9f7;outline:0}
.document-file-name{display:flex;align-items:center;gap:11px;min-width:0}
.document-file-name>div:last-child{min-width:0}
.document-file-name h3{margin:0;color:#173655;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.document-file-name p{margin:4px 0 0;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.document-icon{display:grid;place-items:center;width:38px;height:42px;flex:0 0 auto;border:1px solid #cbd5e1;border-radius:5px;background:#e2e8f0;color:#334155;font-size:7px;font-weight:900}
.document-icon.type-pdf{background:#fff1f1;color:#b42323;border-color:#f2b8b8}.document-icon.type-word{background:#eef5ff;color:#245ea8;border-color:#b8d2f2}.document-icon.type-excel{background:#edfbf2;color:#167247;border-color:#a9dfbf}.document-icon.type-ppt{background:#fff4e9;color:#a64b17;border-color:#efc49e}.document-icon.type-image{background:#f6efff;color:#7140a1;border-color:#d7c1ee}
.document-file-type{font-weight:700;color:#51677d}
.document-file-row time,.document-file-row>span{color:#52657a}
.document-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.document-row-actions>button:not(.document-star-button){padding:7px 9px;background:#eef2f5;color:#40576e;font-size:11px}
.document-star-button{display:grid;place-items:center;width:34px;height:34px;padding:0;background:transparent;color:#7a8a99;font-size:23px;font-weight:400;line-height:1}
.document-star-button.active{color:#e6a800}
.document-star-button:hover{background:#fff7d6;filter:none}

.documentation-grid.is-list-view .document-folder-grid{grid-template-columns:1fr}
.documentation-grid.is-list-view .document-folder-card{grid-template-columns:42px minmax(0,1fr) auto;min-height:70px;padding:10px 48px 10px 12px}
.documentation-grid.is-list-view .document-folder-icon{width:38px;height:30px}
.documentation-grid.is-list-view .document-folder-icon:before{top:-6px;width:21px;height:9px}
.documentation-grid.is-list-view .document-folder-card .folder-access-badge{position:static;justify-self:end}
.document-empty-state{display:grid;justify-items:center;gap:7px;min-height:310px;align-content:center;padding:28px;text-align:center;border:1px dashed #cbd8e2;border-radius:9px;background:#fbfdfe}
.document-empty-state h2,.document-empty-state p{margin:0}.document-empty-state h2{font-size:18px;color:var(--doc-navy)}.document-empty-state p{max-width:520px;color:var(--muted);font-size:13px;line-height:1.55}
.document-empty-icon{width:58px;height:46px;margin-bottom:5px;border-radius:6px;background:#cfe9e7;position:relative}.document-empty-icon:before{content:"";position:absolute;left:0;top:-9px;width:30px;height:13px;border-radius:6px 6px 0 0;background:#75c4be}.document-empty-icon.sync{animation:docPulse 1.3s ease-in-out infinite}
.document-load-more{text-align:center;margin-top:18px}.document-load-more button{min-width:150px}

.document-skeleton-line{display:block;height:13px;border-radius:999px;background:linear-gradient(90deg,#edf1f4 25%,#f8fafb 50%,#edf1f4 75%);background-size:200% 100%;animation:docShimmer 1.25s infinite}.document-skeleton-line.short{width:180px}.document-skeleton-line.heading{width:110px;height:18px}
.document-folder-card.skeleton{cursor:default;transform:none}.document-folder-card.skeleton span{width:48px;height:39px;border-radius:5px;background:#e8edf1}.document-folder-card.skeleton i{display:block;height:11px;border-radius:999px;background:#e8edf1}.document-folder-card.skeleton i:last-child{width:55%;grid-column:2}
@keyframes docShimmer{to{background-position:-200% 0}}@keyframes docPulse{50%{opacity:.48}}

.document-access-dialog{width:min(520px,calc(100% - 24px))}.document-access-dialog form{margin-top:12px}
body.modal-open{overflow:hidden}
.document-viewer-dialog[open],.document-viewer-dialog.dialog-fallback{position:fixed;inset:2vh 1vw;width:98vw;height:96dvh;max-width:none;max-height:none;margin:auto;padding:14px;overflow:hidden;display:flex;flex-direction:column;border-radius:10px}
.document-viewer-dialog .dialog-head{flex:0 0 auto;padding-right:76px}.document-viewer-dialog .dialog-head h2{overflow-wrap:anywhere}
#closeDocumentViewerBtn{position:absolute;top:14px;right:14px;z-index:20;background:#fff;border:1px solid var(--line);box-shadow:0 4px 14px rgba(15,23,42,.18)}
.document-viewer-actions{flex:0 0 auto;display:flex;gap:8px;justify-content:flex-end;margin:10px 0}.document-viewer-actions .primary{background:var(--primary);color:#fff}
.document-viewer-dialog iframe{display:block;flex:1 1 auto;width:100%;min-height:0;border:1px solid var(--line);border-radius:7px;background:#eef2f7}

.rtl .document-browser-sidebar{border-right:0;border-left:1px solid var(--line)}.rtl .document-browser-sidebar button{text-align:right}.rtl .document-browser-sidebar button.active{box-shadow:inset -3px 0 var(--doc-accent)}
.rtl .document-search-box>span{margin-left:0;margin-right:12px}.rtl .document-more-button{right:auto;left:8px}.rtl .document-folder-card .folder-access-badge{left:auto;right:16px}.rtl .document-files-head,.rtl .document-file-row{text-align:right}.rtl #closeDocumentViewerBtn{right:auto;left:14px}.rtl .document-viewer-dialog .dialog-head{padding-right:0;padding-left:76px}

:root[data-theme="dark"] #documentationView{--doc-navy:#e6f1f8;--doc-surface:#101f2b;--doc-subtle:#132634;--doc-accent-soft:#143b3a}
:root[data-theme="dark"] .document-toolbar,:root[data-theme="dark"] .document-browser-shell,:root[data-theme="dark"] .document-folder-card,:root[data-theme="dark"] .document-files-table,:root[data-theme="dark"] .document-search-box{background:#101f2b;border-color:var(--line)}
:root[data-theme="dark"] .document-browser-sidebar,:root[data-theme="dark"] .document-files-head,:root[data-theme="dark"] .document-empty-state{background:#132634;border-color:var(--line)}
:root[data-theme="dark"] .document-browser-sidebar button{color:#cbd8e1}:root[data-theme="dark"] .document-browser-sidebar button:hover,:root[data-theme="dark"] .document-browser-sidebar button.active{background:#16403f;color:#8ce9df}
:root[data-theme="dark"] .document-folder-card:hover,:root[data-theme="dark"] .document-file-row:hover,:root[data-theme="dark"] .document-file-row:focus-visible{background:#15382f}
:root[data-theme="dark"] .document-file-row{border-color:var(--line)}:root[data-theme="dark"] .document-folder-copy h3,:root[data-theme="dark"] .document-file-name h3{color:#e6f1f8}:root[data-theme="dark"] .document-file-type,:root[data-theme="dark"] .document-file-row time,:root[data-theme="dark"] .document-file-row>span{color:#b8c5d1}
:root[data-theme="dark"] .document-search-box input{background:transparent}:root[data-theme="dark"] .document-view-toggle button{background:#172c3a}:root[data-theme="dark"] .document-view-toggle button.active{background:#16443f;color:#99f6e4}

@media(max-width:1050px){.document-toolbar{grid-template-columns:minmax(260px,1fr) auto}.document-content-search{grid-column:1/-1;grid-row:2}.document-files-head,.document-file-row{grid-template-columns:minmax(230px,1.5fr) 86px 115px 70px 128px}}
@media(max-width:800px){.document-center-head{align-items:stretch;flex-direction:column}.document-head-actions{justify-content:space-between}.document-head-actions .muted{text-align:left}.document-toolbar{grid-template-columns:1fr}.document-content-search{grid-column:auto;grid-row:auto;white-space:normal}.document-toolbar-controls{justify-content:space-between}.document-browser-shell{grid-template-columns:1fr;min-height:0}.document-browser-sidebar{display:flex;flex-direction:row;overflow-x:auto;padding:8px;border-right:0;border-bottom:1px solid var(--line)}.document-browser-sidebar button{width:auto;flex:0 0 auto;white-space:nowrap}.document-browser-sidebar button.active{box-shadow:inset 0 -3px var(--doc-accent)}.rtl .document-browser-sidebar{border-left:0}.rtl .document-browser-sidebar button.active{box-shadow:inset 0 -3px var(--doc-accent)}.document-browser-main{padding:0 12px 16px}.document-folder-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
@media(max-width:700px){.document-files-head{display:none}.document-file-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px}.document-file-name{grid-column:1/-1}.document-file-row>.document-file-type,.document-file-row>time,.document-file-row>span{font-size:11px}.document-file-row>.document-file-type{grid-column:1}.document-file-row>time{display:none}.document-file-row>span{grid-column:1}.document-row-actions{grid-column:2;grid-row:2/4;align-self:center}.document-file-name p{white-space:normal}.document-viewer-dialog[open],.document-viewer-dialog.dialog-fallback{inset:0;width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}.document-viewer-dialog .dialog-head{min-height:46px;padding-right:74px}#closeDocumentViewerBtn{position:fixed;top:max(10px,env(safe-area-inset-top));right:10px}.rtl #closeDocumentViewerBtn{right:auto;left:10px}.document-viewer-actions{justify-content:stretch}.document-viewer-actions a{flex:1;text-align:center;padding:9px 6px;font-size:12px}}
@media(max-width:520px){.document-toolbar-controls{align-items:stretch;flex-direction:column}.document-toolbar-controls select{width:100%}.document-view-toggle button{flex:1}.document-search-box{grid-template-columns:auto minmax(0,1fr)}.document-search-box button{grid-column:1/-1;margin:0 5px 5px}.document-folder-grid{grid-template-columns:1fr}.document-folder-card{min-height:100px}.document-browser-main{padding-inline:9px}.document-breadcrumbs{min-height:50px}.document-center-head h1{font-size:21px}}

@media(max-width:800px){
  .document-browser-sidebar,.document-breadcrumbs{scrollbar-width:none;-ms-overflow-style:none}
  .document-browser-sidebar::-webkit-scrollbar,.document-breadcrumbs::-webkit-scrollbar{display:none}
  .document-browser-sidebar{scroll-snap-type:x proximity}
  .document-browser-sidebar button{min-height:42px;scroll-snap-align:start}
}
