:root{--nav:#10261f;--nav2:#183c31;--green:#247b5a;--mint:#e9f4ef;--bg:#f5f7f6;--text:#17231f;--muted:#718079;--line:#dde5e1;--danger:#b83f43;--shadow:0 8px 30px #183c3114;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:var(--text)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button{border:0;border-radius:9px;background:var(--green);color:#fff;padding:.7rem 1rem;font-weight:650;cursor:pointer}button:hover{filter:brightness(.95)}.hidden{display:none!important}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 70% 10%,#2a8066 0,transparent 35%),var(--nav)}.card{background:white;border-radius:18px;box-shadow:0 20px 60px #0004}.login-card{width:min(420px,90vw);padding:2.4rem;display:grid;gap:1rem}.login-card h1{margin:.2rem 0 0}.login-card p{margin:0;color:var(--muted)}label{font-size:.82rem;font-weight:650;display:grid;gap:.4rem}.login input,.form-grid input,.form-grid textarea,.form-grid select{border:1px solid var(--line);border-radius:9px;padding:.75rem;background:#fff;width:100%}.brand-mark{width:42px;height:42px;border-radius:12px;background:#d2eadf;color:var(--green);display:grid;place-items:center;font-weight:900;font-size:1.4rem}.error{color:var(--danger);min-height:1rem}.app{display:grid;grid-template-columns:255px 1fr;min-height:100vh}aside{background:var(--nav);color:#dce9e4;padding:1.2rem;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:.7rem;padding:.2rem .3rem 1.3rem}.brand small,.sidebar-foot span{display:block;color:#97aea5;font-size:.72rem;margin-top:.15rem}nav{display:grid;gap:.25rem}nav button{background:transparent;text-align:left;color:#bcd0c8;padding:.65rem .75rem;font-weight:500}nav button:hover,nav button.active{background:var(--nav2);color:#fff}.nav-group{font-size:.68rem;text-transform:uppercase;letter-spacing:.09em;color:#728e83;margin:1rem .7rem .35rem}.sidebar-foot{margin-top:auto;border-top:1px solid #ffffff18;padding-top:1rem}.ghost{background:transparent;color:var(--green);padding:.45rem}.sidebar-foot .ghost{color:#bcd0c8;padding:.5rem 0}main{min-width:0}header{height:74px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:1rem;padding:0 2rem;position:sticky;top:0;z-index:5}.global-search{flex:1;max-width:620px;background:var(--bg);display:flex;gap:.6rem;align-items:center;border-radius:10px;padding:.7rem 1rem}.global-search input{border:0;outline:0;background:transparent;width:100%}.icon{background:transparent;color:var(--text);padding:.5rem;font-size:1.1rem}#menu{display:none}#content{padding:2rem;max-width:1500px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.4rem}.page-head h1{margin:0;font-size:1.65rem}.page-head p{color:var(--muted);margin:.3rem 0}.toolbar{display:flex;gap:.6rem;flex-wrap:wrap}.secondary{background:white;color:var(--text);border:1px solid var(--line)}.danger{background:#fff0f0;color:var(--danger)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.metric{background:#fff;padding:1.3rem;border-radius:14px;box-shadow:var(--shadow);border:1px solid var(--line)}.metric span{color:var(--muted);font-size:.8rem}.metric b{font-size:1.8rem;display:block;margin-top:.45rem}.panel{margin-top:1.2rem;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:1rem;display:flex;justify-content:space-between;gap:.7rem;align-items:center}.panel-head input{border:1px solid var(--line);border-radius:8px;padding:.6rem;min-width:260px}.table-wrap{overflow:auto;max-height:calc(100vh - 245px)}table{border-collapse:collapse;width:max-content;min-width:100%}th,td{text-align:left;padding:.8rem 1rem;border-top:1px solid var(--line);font-size:.84rem;max-width:340px;white-space:normal;word-break:break-word;vertical-align:top}th{color:var(--muted);font-size:.72rem;text-transform:uppercase;position:sticky;top:0;background:#fbfcfb}tr.inactive{opacity:.48}.actions{white-space:nowrap}.actions button{padding:.35rem .55rem;margin-right:.25rem}.badge{display:inline-block;padding:.25rem .55rem;border-radius:20px;background:var(--mint);color:var(--green);font-size:.72rem}.badge.off{background:#f4e5e5;color:var(--danger)}dialog{border:0;padding:0;border-radius:16px;width:min(850px,94vw);max-height:92vh;box-shadow:0 30px 80px #0005}dialog::backdrop{background:#06120e99}dialog form{display:flex;flex-direction:column;max-height:92vh}.modal-head,.form-actions{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.4rem;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-head h2{margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;padding:1.2rem 1.4rem}.form-grid textarea{min-height:90px;resize:vertical}.custom-title{padding:.5rem 1.4rem 0;display:flex;justify-content:space-between}.form-actions{border:0;border-top:1px solid var(--line);top:auto;bottom:0;justify-content:flex-end;gap:.7rem}.custom-row{display:grid;grid-template-columns:1fr 2fr auto;gap:.5rem;grid-column:1/-1}.empty{text-align:center;padding:3rem;color:var(--muted)}#toast{position:fixed;right:1.5rem;bottom:1.5rem;background:#152d25;color:#fff;padding:.8rem 1.2rem;border-radius:9px;display:none;z-index:30}.search-results{display:grid;gap:.6rem}.result{background:#fff;border:1px solid var(--line);border-radius:10px;padding:1rem}.result small{color:var(--muted)}@media(max-width:900px){.app{grid-template-columns:1fr}aside{position:fixed;z-index:20;width:270px;transform:translateX(-100%);transition:.2s}aside.open{transform:none}#menu{display:block}header{padding:0 1rem}.cards{grid-template-columns:repeat(2,1fr)}#content{padding:1rem}}@media(max-width:550px){.cards,.form-grid{grid-template-columns:1fr}.custom-row{grid-template-columns:1fr}.global-search{max-width:none}header #newBtn{font-size:0}header #newBtn:first-letter{font-size:1rem}}
.doc-editor-info{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.4rem;background:var(--bg);border-bottom:1px solid var(--line);flex-wrap:wrap;font-size:.82rem}.doc-editor-info b{font-weight:700}.doc-editor-text{width:100%;min-height:52vh;border:0;outline:0;padding:1.2rem 1.4rem;font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}.doc-editor-actions{display:flex;align-items:center;gap:.6rem;padding:1rem 1.4rem;border-top:1px solid var(--line);background:#fff;position:sticky;bottom:0}.doc-editor-actions select{border:1px solid var(--line);border-radius:9px;padding:.6rem}.spacer{flex:1}.button-link{display:inline-flex;align-items:center;text-decoration:none}.doc-viewer-content{min-height:62vh;background:#fff;display:grid}.doc-viewer-content pre{width:100%;min-height:62vh;margin:0;padding:1.2rem 1.4rem;white-space:pre-wrap;word-break:break-word;font:13.5px/1.6 ui-monospace,Menlo,Consolas,monospace;border:0}.doc-viewer-content img{max-width:100%;max-height:62vh;object-fit:contain;margin:auto}.doc-viewer-content embed,.doc-viewer-content iframe{width:100%;height:62vh;border:0;background:#fff}.doc-viewer-message{padding:2rem;color:var(--muted);text-align:center}.doc-modal dialog{width:min(980px,96vw)}dialog.doc-modal{padding:0}.doc-actions{white-space:nowrap}.doc-actions a,.doc-actions button{display:inline-block;margin:0 .2rem .2rem 0;padding:.3rem .6rem;text-decoration:none;font-size:.78rem}
.doc-editor-visual{min-height:56vh;display:flex;flex-direction:column;gap:.8rem;padding:1rem;background:#f4f6f8}
.doc-editor-visual[hidden]{display:none}
.doc-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem .7rem;background:#fff;border:1px solid var(--line);border-radius:10px;font-size:.82rem}
.doc-editor-toolbar input[type=text],.doc-editor-toolbar input[type=color],.doc-editor-toolbar select{border:1px solid var(--line);border-radius:8px;padding:.35rem .5rem;background:#fff}
.doc-editor-toolbar button{padding:.4rem .65rem}
.doc-editor-stage{position:relative;flex:1;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:auto;display:flex;align-items:center;justify-content:center;min-height:44vh}
.doc-editor-stage canvas{max-width:100%;max-height:64vh}
.doc-editor-stage img{max-width:100%;max-height:64vh}
.doc-editor-table-wrap{flex:1;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px}
.doc-editor-table{border-collapse:collapse;min-width:100%;font-size:.8rem}
.doc-editor-table td,.doc-editor-table th{border:1px solid #d5dbe1;padding:.3rem .5rem;min-width:70px;cursor:text}
.doc-editor-table thead td{background:#eef2f5;font-weight:700;text-align:center;cursor:default}
.doc-editor-word{flex:1;background:#fff;border:1px solid var(--line);border-radius:10px;padding:1rem;min-height:44vh;overflow:auto;outline:0;font-size:.92rem;line-height:1.5}
.doc-editor-word:focus{border-color:var(--accent)}
.doc-viewer-content .docx-render{width:100%;min-height:62vh;padding:1.4rem;background:#fff;overflow:auto}
.doc-viewer-content .docx-render table{border-collapse:collapse;margin:.5rem 0}
.doc-viewer-content .docx-render td,.doc-viewer-content .docx-render th{border:1px solid #cdd4db;padding:.3rem .5rem}
.doc-viewer-content .docx-render img{max-width:100%}
.doc-editor-note{font-size:.78rem;color:var(--muted)}
.doc-editor-mode-sel{display:flex;align-items:center;gap:.5rem;padding:.7rem 1.4rem;background:var(--bg);border-bottom:1px solid var(--line);flex-wrap:wrap}
.doc-editor-mode-sel[hidden]{display:none}
.mode-label{font-size:.8rem;font-weight:650;color:var(--muted);margin-right:.2rem}
.mode-btn{background:#fff;color:var(--text);border:1px solid var(--line);padding:.5rem .85rem;font-weight:600;border-radius:9px}
.mode-btn:hover{filter:none;border-color:var(--green);color:var(--green)}
.mode-btn.active{background:var(--green);color:#fff;border-color:var(--green)}
.doc-editor-oo-wrap{min-height:62vh;background:#fff;display:flex}
.doc-editor-oo-wrap[hidden]{display:none}
.doc-editor-oo-wrap #docEditorOO{width:100%;height:62vh;border:0}
.doc-editor-oo-wrap #docEditorOO iframe{display:block;width:100%;height:62vh;border:0;background:#fff}
.col-loading{width:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.9rem}
.pdf-edit-word{position:absolute;margin:0;padding:0;white-space:nowrap;overflow:visible;color:transparent;cursor:text;background:transparent;pointer-events:auto}
.pdf-edit-word:hover{outline:1px dashed rgba(36,123,90,.6);outline-offset:0;background:rgba(36,123,90,.05)}
.pdf-edit-word:focus{outline:2px solid var(--green);background:rgba(36,123,90,.12);color:#151a1f}
.docxodus-loading{width:100%;height:56vh;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.9rem;background:#fff;border-radius:10px}
.doc-editor-visual .docxodus-loading{height:56vh}
.doc-options-body{padding:1.2rem 1.4rem;display:grid;gap:1.4rem;max-height:70vh;overflow:auto}
.doc-options-section h3{margin:.2rem 0 .4rem;font-size:.95rem}
.doc-options-hint{color:var(--muted);font-size:.82rem;margin:.2rem 0 .7rem;max-width:60ch}
.doc-options-section input[type=file]{border:1px solid var(--line);border-radius:9px;padding:.5rem;background:#fff;width:100%;margin-bottom:.6rem}
.doc-versions-list{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px}
.doc-versions-list .doc-viewer-message{color:var(--muted)}
.versions-table{border-collapse:collapse;width:100%;font-size:.8rem}
.versions-table th,.versions-table td{border-bottom:1px solid var(--line);padding:.5rem .6rem;text-align:left;vertical-align:middle}
.versions-table th{background:#eef2f5;font-weight:700;text-align:left;position:sticky;top:0}
.versions-table .doc-actions button{font-size:.75rem;padding:.25rem .5rem}
.list-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.list-column-config{margin:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:.65rem .8rem;min-width:min(520px,100%)}.list-column-config summary{cursor:pointer;font-size:.82rem;font-weight:700;color:var(--green)}.list-column-config p{margin:.65rem 0;color:var(--muted);font-size:.78rem}.column-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.4rem;margin:.6rem 0}.column-picker-item,.list-field-order label{display:flex;grid-template-columns:none;align-items:center;gap:.45rem;border:1px solid var(--line);border-radius:8px;padding:.5rem .6rem;background:#fff;cursor:grab;user-select:none}.column-picker-item:active,.list-field-order label:active,.row-drag-handle:active,.movable-column:active{cursor:grabbing}.drag-grip{color:#89958f;font-size:1rem;line-height:1}.dragging{opacity:.4!important;outline:2px dashed var(--green);outline-offset:-2px}.drag-help{display:block;color:var(--muted);font-size:.72rem;margin-top:.2rem}.entity-list-table .movable-column{cursor:grab;user-select:none}.row-grip-head,.row-grip-cell{width:34px;min-width:34px;max-width:34px;padding:.5rem;text-align:center}.row-drag-handle{display:inline-block;color:#728079;cursor:grab;font-size:1.15rem;padding:.25rem}.entity-list-table tbody tr[data-row-id]{transition:background .12s}.entity-list-table tbody tr[data-row-id]:has(.row-drag-handle:hover){background:#f0f7f4}.table-wrap{scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}.table-wrap th{z-index:1}.list-field-order{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.5rem}.list-field-order label{margin:0}@media(max-width:700px){.list-tools{display:block}.list-column-config{margin-top:.7rem}.column-picker{grid-template-columns:1fr}.drag-help{max-width:240px}.row-drag-handle{padding:.45rem}}
.entity-list-panel{display:flex;flex-direction:column;overflow:hidden}.entity-list-panel>.panel-head{flex:none;background:#fff;z-index:4}.list-panel-controls{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}.list-panel-controls input{min-width:min(330px,100%)}.exportable-list-scroll{max-height:58vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}.entity-list-scroll{height:clamp(280px,58vh,620px);max-height:none}.entity-list-scroll table{min-width:max(100%,1350px)}.exportable-list-scroll thead th{z-index:3;box-shadow:0 1px 0 var(--line)}.hidden-by-table-search{display:none}.list-export-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;border-top:1px solid var(--line);background:#fff;position:sticky;bottom:0;z-index:4;flex:none}.list-export-bar small{display:block;color:var(--muted);font-size:.72rem;margin-top:.2rem}.list-export-actions{display:flex;gap:.55rem;flex-wrap:wrap}@media(max-width:700px){.entity-list-scroll{height:55vh;min-height:280px}.exportable-list-scroll{max-height:55vh}.panel-head{align-items:stretch;flex-direction:column}.list-panel-controls{align-items:stretch;justify-content:flex-start}.list-panel-controls input{width:100%;min-width:0}.list-panel-controls button{flex:1}.list-export-bar{align-items:stretch;flex-direction:column}.list-export-actions button{flex:1}}
.collabora-viewer,.collabora-viewer .collabora-frame{display:block;width:100%;height:68vh;min-height:520px;border:0;background:#fff}.inline-document-actions{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;min-width:260px}.inline-document-actions b{margin-right:.25rem}.inline-document-actions button,.inline-document-actions .button-link{font-size:.74rem;padding:.35rem .55rem}.pdf-pro-toolbar label{display:flex;align-items:center;gap:.3rem;font-size:.75rem}.pdf-pro-toolbar input,.pdf-pro-toolbar select{width:auto;max-width:165px;padding:.35rem;border:1px solid var(--line);border-radius:7px}.pdf-pro-toolbar input[type=number]{width:62px}.pdf-pro-toolbar input[type=color]{width:42px;padding:.15rem}.pdf-pro-toolbar+ .doc-editor-stage canvas{touch-action:none;cursor:crosshair}@media(max-width:700px){.collabora-viewer,.collabora-viewer .collabora-frame{height:70vh;min-height:420px}.inline-document-actions{min-width:220px}.pdf-pro-toolbar label{width:100%;justify-content:space-between}.pdf-pro-toolbar input,.pdf-pro-toolbar select{flex:1;max-width:none}}
.stirling-workflow{padding:.8rem 1rem;background:#f4f8f6;border-bottom:1px solid var(--line)}.stirling-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}.stirling-steps>div{background:#fff;border:1px solid var(--line);border-radius:9px;padding:.65rem}.stirling-steps b,.stirling-steps span{display:block}.stirling-steps span,.stirling-status{font-size:.76rem;color:var(--muted);margin-top:.25rem}.stirling-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:.7rem}.stirling-result-label{cursor:pointer}.stirling-status{flex:1;min-width:260px;padding:.5rem .65rem;border-radius:8px;background:#fff}.stirling-status.loading{color:#695b12;background:#fff9d9}.stirling-status.success{color:#17633f;background:#e8f7ef}.stirling-status.error{color:#a12626;background:#ffeded}.stirling-frame{display:block;width:100%;height:62vh;min-height:560px;border:0;background:#fff}@media(max-width:700px){.stirling-steps{grid-template-columns:1fr}.stirling-actions>*{width:100%;text-align:center}.stirling-frame{height:66vh;min-height:430px}}
#docEditorModal{width:min(1500px,96vw);height:min(900px,94dvh);max-width:100vw;max-height:100dvh;min-width:min(680px,96vw);min-height:min(520px,90dvh);resize:both;overflow:hidden}#docEditorModal[open]{display:flex;flex-direction:column}#docEditorModal.editor-maximized{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;resize:none}#docEditorModal>.modal-head{position:relative;flex:none;padding:.65rem 1rem;cursor:default}#docEditorModal>.modal-head h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.doc-editor-window-buttons{display:flex;align-items:center;gap:.45rem;flex:none}.compact-window-btn{padding:.42rem .7rem;font-size:.78rem}#docEditorModal>.doc-editor-info,#docEditorModal>.doc-editor-mode-sel,#docEditorModal>.doc-editor-actions{flex:none}#docEditorModal>.doc-editor-visual,#docEditorModal>.doc-editor-oo-wrap,#docEditorModal>.doc-editor-text-wrap{flex:1;min-height:0;overflow:auto}#docEditorModal .doc-editor-oo-wrap,#docEditorModal .doc-editor-oo-wrap #docEditorOO,#docEditorModal .doc-editor-oo-wrap #docEditorOO iframe{height:100%;min-height:0}#docEditorModal .stirling-editor-host{padding:0;gap:0;overflow:hidden}#docEditorModal .stirling-editor-host .stirling-frame{flex:1;height:auto;min-height:0}#docEditorModal.editor-focus>.doc-editor-info,#docEditorModal.editor-focus>.doc-editor-mode-sel,#docEditorModal.editor-focus>.doc-editor-actions,#docEditorModal.editor-focus .stirling-workflow{display:none!important}#docEditorModal.editor-focus .stirling-frame{height:100%;min-height:0}.editor-focus .doc-editor-oo-wrap{min-height:0}@media(max-width:700px){#docEditorModal{width:100vw;height:100dvh;max-width:none;max-height:none;min-width:0;min-height:0;margin:0;border-radius:0;resize:none}.compact-window-btn{font-size:0;padding:.45rem}.compact-window-btn:before{font-size:1rem}.compact-window-btn#docEditorControlsToggle:before{content:'☰'}.compact-window-btn#docEditorSizeToggle:before{content:'⤢'}.doc-editor-window-buttons{gap:.2rem}#docEditorModal>.modal-head h2{font-size:1rem}}
.yft-editor-host{position:relative;padding:0!important;gap:0!important;overflow:hidden!important}.yft-frame{display:block;width:100%;height:100%;min-height:0;border:0;background:#f5f5f5}.yft-loading{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:#f5f7f6;color:var(--muted);font-weight:650}.yft-loading.error{color:var(--danger)}
.contact-actions{display:flex;gap:.4rem;flex-wrap:wrap}.contact-actions a{padding:.45rem .65rem;font-size:.78rem}.paid-row{background:#f3faf6;color:#557067}.paid-row .badge{background:#d9efe3}.toolbar input[type=month],.toolbar input[type=date]{border:1px solid var(--line);border-radius:9px;padding:.62rem;background:#fff}.toolbar label{display:flex;grid-template-columns:none;align-items:center;gap:.45rem}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.integration-grid .panel{margin-top:0}.integration-form{display:grid;gap:.9rem;padding:1.2rem;overflow:visible}.integration-form h2{margin:0}.integration-form input,.settings-panel input{border:1px solid var(--line);border-radius:9px;padding:.75rem;background:#fff;width:100%}.integration-form details{border:1px solid var(--line);border-radius:9px;padding:.7rem}.integration-form summary{cursor:pointer;font-weight:650}.integration-form details label{margin-top:.7rem}.integration-status{margin:1rem 0}.attention.success{background:#e8f7ef;border-color:#b9dfca}.full-field{grid-column:1/-1}code{font-size:.78rem;background:#f0f4f2;padding:.25rem .4rem;border-radius:5px;word-break:break-all}@media(max-width:800px){.integration-grid{grid-template-columns:1fr}.toolbar{width:100%}.toolbar>*{flex:1}.contact-actions{min-width:210px}}
