*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:linear-gradient(135deg,#0f3d6e,#1f5fa8 45%,#2f86c9) fixed;color:#333;font-size:14px}.app{display:flex;height:100vh;overflow:hidden}.sidebar{width:236px;flex-shrink:0;color:#fff;display:flex;flex-direction:column;overflow-y:auto}.sidebar-logo{height:56px;display:flex;align-items:center;gap:8px;padding:0 20px;font-size:18px;font-weight:700;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo-mark{color:#2fc6f6;font-size:22px}.sidebar-menu{display:flex;flex-direction:column;padding:8px 10px;gap:2px}.sidebar-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;color:#ffffffd9;text-decoration:none;transition:background .15s}.sidebar-item:hover{background:#ffffff1f;color:#fff}.sidebar-item.active{background:#ffffff38;color:#fff;font-weight:600}.sidebar-icon{font-size:16px;width:18px;display:inline-flex;justify-content:center}.sidebar-label{flex:1}.wip-tag{margin:0;font-size:10px;line-height:16px;padding:0 4px;background:#ffffff26;color:#fff;border:none}.main{flex:1;display:flex;flex-direction:column;min-width:0}.topbar{height:56px;flex-shrink:0;display:flex;align-items:center;padding:0 20px;color:#fff}.topbar-spacer{flex:1}.topbar-user{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px 10px;border-radius:20px}.topbar-user:hover{background:#ffffff1f}.content{flex:1;overflow:auto;padding:0 16px 24px 4px}.page-header{background:#fffffff5;border-radius:12px;padding:16px 20px;margin-bottom:12px}.page-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.page-header-extra{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.content>.ant-card,.content .ant-row>.ant-col>.ant-card{border-radius:12px}.chatbar{width:64px;flex-shrink:0;background:#00143259;display:flex;flex-direction:column;align-items:center;padding:10px 0;gap:8px;z-index:902;position:relative}.chatbar-btn{width:44px;height:44px;border-radius:50%;border:none;background:#ffffff2e;color:#fff;font-size:20px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s}.chatbar-btn:hover,.chatbar-btn.active{background:#2fc6f6}.chatbar-btn.small{width:36px;height:36px;font-size:16px}.chatbar-sep{width:32px;height:1px;background:#ffffff40}.chatbar-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;align-items:center;padding:2px 0;scrollbar-width:none}.chatbar-list::-webkit-scrollbar{display:none}.chatbar-chat{position:relative;border:2px solid transparent;border-radius:50%;padding:0;background:none;cursor:pointer;display:block}.chatbar-chat.active{border-color:#2fc6f6}.online-dot{position:absolute;right:0;bottom:0;width:11px;height:11px;border-radius:50%;background:#7bd500;box-shadow:0 0 0 2px #fff}.ms-backdrop{position:fixed;top:0;bottom:0;left:0;right:64px;background:#0000004d;opacity:0;pointer-events:none;transition:opacity .2s;z-index:900}.ms-backdrop.open{opacity:1;pointer-events:auto}.ms-panel{position:fixed;top:0;bottom:0;right:64px;width:min(1040px,calc(100vw - 64px));background:#fff;display:flex;z-index:901;transform:translate(calc(100% + 64px));transition:transform .25s ease;box-shadow:-4px 0 24px #0000002e}.ms-panel.open{transform:none}.ms-sidebar{width:320px;flex-shrink:0;border-right:1px solid #edf0f4;display:flex;flex-direction:column;background:#f8fafc}.ms-sidebar-head{display:flex;gap:8px;padding:12px}.ms-list{flex:1;overflow-y:auto}.ms-list-caption{padding:10px 16px 4px;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#8a94a6}.ms-item{display:flex;gap:10px;padding:8px 12px;cursor:pointer;align-items:center}.ms-item:hover{background:#eef3f8}.ms-item.active{background:#dcebfb}.ms-item-avatar{position:relative;flex-shrink:0}.ms-item-body{flex:1;min-width:0}.ms-item-top,.ms-item-bottom{display:flex;justify-content:space-between;gap:6px;align-items:center}.ms-item-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#333}.ms-item-time{font-size:11px;color:#8a94a6;flex-shrink:0}.ms-item-text{font-size:13px;color:#6b7a90;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-item-text.typing,.cw-head-sub.typing{color:#1f7ad1;font-style:italic}.ms-main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}.ms-close{position:absolute;top:12px;right:12px;z-index:2}.ms-empty{flex:1;display:flex;align-items:center;justify-content:center;background:#eef2f6}.cw{display:flex;flex-direction:column;height:100%}.cw-head{display:flex;align-items:center;gap:12px;padding:10px 56px 10px 16px;border-bottom:1px solid #edf0f4}.cw-head-avatar{position:relative}.cw-head-info{flex:1;min-width:0}.cw-head-title{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cw-head-sub{font-size:12px;color:#8a94a6}.cw-list{flex:1;overflow-y:auto;padding:12px 16px;background:#eef2f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23dbe2ea'/%3E%3C/svg%3E")}.cw-empty{text-align:center;color:#8a94a6;margin-top:40px}.cw-day{text-align:center;margin:12px 0}.cw-day span{background:#525c691f;color:#525c69;font-size:12px;padding:2px 10px;border-radius:10px}.cw-system{text-align:center;color:#6b7a90;font-size:12px;margin:8px 40px}.msg{display:flex;align-items:flex-end;gap:8px;margin-top:8px}.msg.grouped{margin-top:2px}.msg.mine{flex-direction:row-reverse}.msg-avatar{width:32px;flex-shrink:0}.msg-bubble{max-width:min(560px,75%);background:#fff;border-radius:12px;padding:6px 10px 4px;box-shadow:0 1px 1px #0000000f}.msg.mine .msg-bubble{background:#d7f0fc}.msg-author{font-size:12px;font-weight:600;color:#1f7ad1;margin-bottom:2px}.msg-text{white-space:pre-wrap;word-break:break-word;line-height:1.4}.msg-deleted{color:#8a94a6;font-style:italic}.msg-meta{font-size:11px;color:#8a94a6;text-align:right;margin-top:2px}.msg-read{margin-left:4px;color:#8a94a6}.msg-read.read{color:#1f7ad1}.msg-atts{display:flex;flex-direction:column;gap:4px;margin-top:4px}.msg-image{border-radius:8px}.msg-file{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:#0000000a;color:#333}.msg-file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}.msg-file-size{font-size:12px;color:#8a94a6}.msg-actions{opacity:0;transition:opacity .15s}.msg:hover .msg-actions{opacity:1}.cw-composer{border-top:1px solid #edf0f4;padding:8px 12px;background:#fff}.cw-input-row{display:flex;align-items:flex-end;gap:6px}.cw-input-row textarea{resize:none}.cw-editing{font-size:12px;color:#1f7ad1;display:flex;align-items:center;gap:6px;padding-bottom:4px}.cw-pending{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:6px}.cw-pending-item{background:#eef3f8;border-radius:12px;padding:2px 10px;font-size:12px;display:inline-flex;align-items:center;gap:6px}.cw-pending-x{cursor:pointer;color:#8a94a6}.cw-readonly{padding:14px;text-align:center;border-top:1px solid #edf0f4}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}.login-card{width:380px;max-width:100%;border-radius:16px;box-shadow:0 10px 40px #00000040}.org-chart{overflow:auto;padding:8px 0 16px}.org-chart ul{padding-top:20px;position:relative;display:flex;justify-content:center;margin:0;padding-left:0}.org-chart>ul{padding-top:0}.org-chart li{list-style:none;position:relative;padding:20px 8px 0;display:flex;flex-direction:column;align-items:center}.org-chart li:before,.org-chart li:after{content:"";position:absolute;top:0;right:50%;width:50%;height:20px;border-top:2px solid #c8d3df}.org-chart li:after{right:auto;left:50%;border-left:2px solid #c8d3df}.org-chart li:only-child:before,.org-chart li:only-child:after{display:none}.org-chart li:only-child{padding-top:0}.org-chart li:first-child:before,.org-chart li:last-child:after{border:0 none}.org-chart li:last-child:before{border-right:2px solid #c8d3df;border-radius:0 6px 0 0}.org-chart li:first-child:after{border-radius:6px 0 0}.org-chart ul ul:before{content:"";position:absolute;top:0;left:50%;border-left:2px solid #c8d3df;height:20px}.org-chart>ul>li{padding-top:0}.org-chart>ul>li:before,.org-chart>ul>li:after{display:none}.org-box{width:220px;background:#fff;border:1px solid #dfe5ec;border-top:4px solid #2fc6f6;border-radius:10px;padding:10px 12px;cursor:pointer;transition:box-shadow .15s,transform .15s;text-align:left}.org-box:hover{box-shadow:0 6px 18px #1f5fa82e;transform:translateY(-1px)}.org-box-title{font-weight:700;margin-bottom:8px}.org-box-head{display:flex;gap:8px;align-items:center}.org-box-head-name{font-size:13px;font-weight:600}.org-box-head-pos{font-size:11px;color:#8a94a6}.org-box-nohead{font-size:12px;color:#b0b8c4;font-style:italic}.org-box-count{margin-top:8px;font-size:12px;color:#6b7a90}.drive-card{transition:box-shadow .15s,outline .15s}.drive-card.drag-over{outline:3px dashed #2fc6f6;outline-offset:-6px}.drive-name{color:#333}.drive-name:hover{color:#1f7ad1}.editor-page{display:flex;flex-direction:column;height:100vh;background:#fff}.editor-bar{height:40px;display:flex;align-items:center;padding:0 8px;border-bottom:1px solid #edf0f4;flex-shrink:0}.editor-body{flex:1;position:relative}.editor-body>div,#oo-editor{height:100%}.kanban{display:flex;gap:10px;overflow-x:auto;align-items:flex-start;padding-bottom:8px;min-height:calc(100vh - 200px)}.kb-col{width:280px;flex-shrink:0;background:#ffffff8c;border-radius:10px;padding:0 0 8px;transition:background .15s;display:flex;flex-direction:column;max-height:calc(100vh - 190px)}.kb-col.over{background:#ffffffd9}.kb-head{position:relative;background:#fff;border-radius:10px 10px 0 0;padding:10px 12px 8px;border-top:4px solid var(--stage)}.kb-head-title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kb-head-count{color:#8a94a6;font-weight:400}.kb-head-sum{font-size:13px;color:#525c69}.kb-add{margin:8px 8px 0;border:1px dashed #b8c4d2;background:#fff9;border-radius:8px;padding:6px;color:#525c69;cursor:pointer}.kb-add:hover{background:#fff;color:#1f7ad1}.kb-quick{margin:8px 8px 0}.kb-cards{overflow-y:auto;padding:0 8px;flex:1}.kb-card{background:#fff;border-radius:8px;padding:10px 12px;margin-top:8px;cursor:pointer;box-shadow:0 1px 2px #00000014;border-left:3px solid transparent;transition:box-shadow .15s}.kb-card:hover{box-shadow:0 4px 12px #0000001f;border-left-color:#2fc6f6}.kb-card-title{font-weight:600;color:#1f5fa8;margin-bottom:4px;word-break:break-word}.kb-card-amount{font-weight:600}.kb-card-client{font-size:12px;color:#6b7a90;margin-top:2px}.kb-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12px;color:#8a94a6}.stagebar{display:flex;gap:3px;flex-wrap:wrap}.stagebar-step{flex:1;min-width:90px;position:relative;background:#e9edf2;color:#333;padding:8px 14px;font-size:12px;cursor:pointer;text-align:center;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%,10px 50%);transition:filter .15s}.stagebar-step:first-child{clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%);border-radius:6px 0 0 6px}.stagebar-step:hover{filter:brightness(.95)}.stagebar-step.current{font-weight:700}.stagebar-step span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stagebar-step.final{flex:0 0 140px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,10px 50%);border-radius:0 6px 6px 0}.timeline{background:#f6f8fa;border-radius:10px;padding:12px 16px}.ev-head{display:flex;align-items:center;gap:6px}.ev-time{color:#8a94a6;font-size:12px;margin-left:auto}.ev-body{margin-top:4px;color:#525c69}.ev-comment{background:#fff;border-radius:8px;padding:8px 10px;white-space:pre-wrap;color:#333}.ev-changes{margin:4px 0 0;padding-left:18px}.product-thumb{width:40px;height:40px;border-radius:6px;object-fit:cover;display:block}.product-thumb.empty{background:#f0f3f6;display:flex;align-items:center;justify-content:center;color:#b8c4d2}.product-image{width:100%;aspect-ratio:1;border-radius:10px;background:#f6f8fa;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-image img{object-fit:cover}.section-all{padding:4px 8px;border-radius:6px;cursor:pointer;margin-bottom:4px}.section-all.active,.section-all:hover{background:#e6f4ff}@media(max-width:900px){.sidebar{width:64px}.sidebar-label,.wip-tag,.sidebar-logo span:not(.logo-mark){display:none}.ms-sidebar{width:240px}}.pf-list{display:flex;flex-direction:column}.pf-row{display:flex;align-items:flex-start;gap:6px;padding:4px 0;border-bottom:1px solid #f0f2f5;background:#fff;position:relative}.pf-row:last-child{border-bottom:none}.pf-row.dragging{z-index:2;box-shadow:0 6px 20px #1f5fa82e;border-radius:8px;border-bottom-color:transparent}.pf-handle{cursor:grab;color:#a3afbf;padding:6px 2px;opacity:0;transition:opacity .15s;touch-action:none;line-height:20px}.pf-row:hover .pf-handle,.pf-row.dragging .pf-handle,.pf-handle:focus-visible{opacity:1}.pf-handle:active,.pf-row.dragging .pf-handle{cursor:grabbing}.pf-label{width:130px;flex-shrink:0;color:#8a94a6;padding:6px 0;line-height:20px}.pf-value{flex:1;min-width:0;padding:6px 8px;border-radius:6px;display:flex;align-items:center;gap:8px;min-height:32px;line-height:20px;word-break:break-word}.pf-value.editable{cursor:pointer}.pf-value.editable:hover,.pf-value.editable:focus-visible{background:#eef5fc;outline:none}.pf-value.editing{padding:0;display:block}.pf-text{flex:1;min-width:0}.pf-pen{color:#1f7ad1;opacity:0;transition:opacity .15s}.pf-value.editable:hover .pf-pen,.pf-value.editable:focus-visible .pf-pen{opacity:1}.pf-empty{color:#b0b8c4}.pf-error{color:#ff4d4f;font-size:12px;margin-top:2px}.pf-extra{display:flex;gap:6px;padding:10px 0 0 22px;align-items:center}@media(hover:none){.pf-handle,.pf-pen{opacity:1}}.edit-bar{position:fixed;left:236px;right:64px;bottom:0;z-index:800;background:#fff;box-shadow:0 -4px 18px #0000001f;padding:12px 24px;display:flex;gap:12px;justify-content:center;animation:edit-bar-in .18s ease-out}@keyframes edit-bar-in{0%{transform:translateY(100%)}to{transform:none}}@media(max-width:900px){.edit-bar{left:64px}}body.with-edit-bar .content{padding-bottom:96px}
