/* Huber V9 - screen-only improvements; reports and technical drawings are unchanged. */
.portal-scene picture{background:transparent!important}
.portal-scene img{mask:none!important;-webkit-mask:none!important}
@media screen{
.hub-reports .workflow-action{background:#112c4c!important;border:1px solid #5a85aa!important;color:#f2f7fd!important}
.hub-reports .workflow-action h2,.hub-reports .workflow-action p,.hub-reports .workflow-action .eyebrow{color:#f2f7fd!important;background:transparent!important}
.hub-reports .workflow-action p{color:#d8e7f4!important}
.hub-reports .workflow-action .workflow-number{background:#244d77!important;color:#fff!important}
.hub-reports .workflow-action.warning-workflow{background:#342b1c!important;border-color:#ad9264!important}
.hub-reports .workflow-action.warning-workflow p{color:#f5e9d2!important}
.hub-reports .workflow-action.warning-workflow .workflow-number{background:#60492b!important;color:#fff!important}
.hub-reports .workflow-action .button.light{background:#1261a9!important;border:1px solid #86bdea!important;color:#fff!important;text-shadow:none!important;opacity:1!important}
.hub-reports .workflow-action .button.light:hover{background:#08477f!important;color:#fff!important}
.hub-reports .workflow-action.warning-workflow .button.light{background:#f6d49c!important;border-color:#ffe4bb!important;color:#2f220e!important}
.hub-reports .workflow-action.warning-workflow .button.light:hover{background:#ffe5bd!important;color:#2f220e!important}
.hub-reports .workflow-action .button.light:focus-visible{outline:3px solid #f1f7ff!important;outline-offset:3px}
.hub-reports .workflow-action .button.light:disabled{background:#31465c!important;color:#d5e0eb!important;border-color:#708497!important;cursor:not-allowed;opacity:1!important}
}
.app-order-list{list-style:none;padding:0;display:grid;gap:10px;max-width:860px}
.app-order-list li{display:flex;align-items:center;gap:12px;border:1px solid #466782;padding:12px;border-radius:12px;background:#102b46;color:#eef6ff}
.app-order-list li.dragging{opacity:.6;border:2px dashed #80c4ff}
.app-order-list .order-drag{cursor:grab;padding:10px;font-size:21px;user-select:none}
.app-order-list .order-name{flex:1;min-width:0}
.app-order-list .hub-app-icon{width:38px;height:38px;flex:none}
.app-order-list button{min-width:42px;min-height:42px;flex:none}
.hub-share-dialog{width:min(780px,calc(100% - 24px));max-height:90dvh;box-sizing:border-box;overflow:auto;background:#0e2944;color:#edf6ff;border:1px solid #83a9cb;border-radius:16px;padding:24px;box-shadow:0 24px 90px #0009;z-index:5000;color-scheme:dark}
.hub-share-dialog::backdrop{background:#031121be;backdrop-filter:blur(3px)}
.hub-share-dialog h2,.hub-share-dialog label,.hub-share-dialog p,.hub-share-dialog strong{color:#edf6ff!important}
.hub-share-dialog .share-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:12px}
.hub-share-dialog h2{margin:0 0 4px;font-size:22px}.hub-share-dialog .share-project-name{color:#bad8f1!important;margin:4px 0 20px;overflow-wrap:anywhere}
.hub-share-dialog input:not([type=checkbox]),.hub-share-dialog select{background:#143955!important;color:#f1f8ff!important;border:1px solid #789fbe!important;border-radius:8px;min-height:40px;padding:8px;box-sizing:border-box}
.hub-share-dialog input[type=checkbox]{width:18px!important;height:18px;flex:none;accent-color:#338be2}
.hub-share-dialog label{display:block;margin:8px 0}
.hub-share-dialog .share-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
.hub-share-dialog .share-options select{width:100%}
.hub-share-dialog .share-members{display:grid;gap:8px;max-height:38dvh;overflow:auto;margin-top:12px;padding:2px}
.hub-share-dialog .share-member{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #426888;border-radius:9px;background:#123451}
.hub-share-dialog .share-member label{display:flex;align-items:center;gap:10px;flex:1;margin:0;min-width:0}
.hub-share-dialog .share-member span{overflow-wrap:anywhere}
.hub-share-dialog .share-member select{width:130px;flex:none}
.hub-share-dialog .share-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px}
.hub-share-dialog .share-help{font-size:13px;color:#c7deef!important;line-height:1.6}
.hub-share-dialog .share-error{border:1px solid #de8f83;background:#462c2f;color:#ffe5de;padding:10px;border-radius:8px}
.hub-share-dialog [hidden]{display:none!important}
.hub-share-dialog :focus-visible{outline:3px solid #a2d0ff;outline-offset:2px}
/* A simple writing area, with secondary settings kept out of the way. */
.v9-notes-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 18px}
.v9-notes-toolbar input[type=search]{flex:1;min-width:190px;max-width:460px}
.v9-notes-toolbar label{display:flex;gap:8px;align-items:center}
.v9-notes-toolbar input[type=checkbox],.v9-note-details input[type=checkbox]{width:18px!important;height:18px}
.v9-notes .notes-layout{grid-template-columns:minmax(230px,285px) minmax(0,1fr);align-items:start}
.v9-notes .notes-list{max-height:68vh;overflow:auto;padding:3px}
.v9-notes .notes-editor{min-width:0;padding:22px}
.v9-notes .note-row{white-space:normal!important;line-height:1.45;min-width:0;padding:14px!important;overflow-wrap:anywhere}
.v9-notes .note-row small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:12px;max-height:3em}
.v9-notes .note-row strong{font-size:15px;color:#eef6ff!important}
.v9-notes #note-title{font-size:clamp(19px,2.2vw,28px);font-weight:650;border:0!important;border-bottom:1px solid #587898!important;border-radius:0!important;background:transparent!important;color:#f5f9ff!important;line-height:1.35;padding:6px 0 12px!important;margin-bottom:12px}
.v9-notes .note-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.v9-note-details{margin:16px 0;border:1px solid #52708e;border-radius:9px;padding:12px 14px;color:#e8f2ff}
.v9-note-details summary{cursor:pointer;font-weight:600;color:#e8f2ff;min-height:26px}
.v9-note-details .notes-tools{align-items:center;gap:18px}.v9-note-details label{display:flex;align-items:center;gap:8px}
.v9-note-details .notes-tools select{width:auto!important}
.v9-notes #note-status{min-height:24px;font-size:13px;color:#cce1f1}
.v9-notes #note-empty{padding:38px 28px;border:1px dashed #6686a4;border-radius:14px;text-align:center;color:#d3e6f7}
.v9-notes #note-empty strong{display:block;font-size:21px;color:#f1f7fd;margin-bottom:10px}
/* Editor chrome is light; text lives on a white page, isolated from the portal. */
.hub-rich{min-width:0;width:100%;color-scheme:light;border:1px solid #7292b0;border-radius:10px;overflow:hidden;background:#fff}
.hub-rich [hidden]{display:none!important}
.hub-rich .rich-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;background:#edf2f8;border-bottom:1px solid #b8c9da;padding:8px}
.hub-rich .rich-toolbar button,.hub-rich .rich-toolbar select{all:revert;box-sizing:border-box;color:#183553!important;background:#fff!important;border:1px solid #a9bdcf!important;border-radius:6px!important;min-height:36px;min-width:34px;padding:6px 9px!important;font:500 13px/1.3 system-ui,sans-serif!important;cursor:pointer;box-shadow:none!important}
.hub-rich .rich-toolbar button:hover{background:#dcecff!important;border-color:#5083b0!important}
.hub-rich .rich-toolbar button:focus-visible,.hub-rich .rich-toolbar select:focus-visible{outline:2px solid #2379c3;outline-offset:1px}
.hub-rich .rich-toolbar button:disabled{background:#edf1f5!important;color:#61778b!important;cursor:not-allowed}
.hub-rich .html-editor{min-height:390px;border:0!important;border-radius:0!important;padding:28px 34px!important;background:#fff!important;color:#182b3e!important;caret-color:#182b3e;outline:none!important;font:16px/1.7 system-ui,sans-serif;overflow-wrap:anywhere;white-space:normal}
.hub-rich .html-editor *{color:inherit}
.hub-rich .html-editor p{margin:0 0 .8em}.hub-rich .html-editor h1,.hub-rich .html-editor h2,.hub-rich .html-editor h3{color:#143d67}
.hub-rich .html-editor ul,.hub-rich .html-editor ol{padding-left:1.8em;display:block;list-style-position:outside}.hub-rich .html-editor ul{list-style-type:disc}.hub-rich .html-editor ol{list-style-type:decimal}
.hub-rich .html-editor li{display:list-item;margin:.3em 0}
.hub-rich .html-editor table{border-collapse:collapse;width:100%;table-layout:fixed}
.hub-rich .html-editor td,.hub-rich .html-editor th{border:1px solid #8ea3b5!important;padding:8px!important;background:#fff!important;color:#182b3e!important;vertical-align:top;min-width:50px}
.hub-rich .html-editor th{background:#eef3f8!important;font-weight:700}
.hub-rich .html-editor img{max-width:100%;height:auto}.hub-rich .html-editor a{color:#13599c!important}
.hub-rich .rich-notice{font:12px/1.5 system-ui,sans-serif;background:#eaf2fa;color:#254966;padding:7px 12px;display:flex;align-items:center;gap:10px;border-top:1px solid #c5d6e6}
.hub-rich .rich-notice button{font-size:12px;background:#fff!important;color:#19436a!important;border:1px solid #7693ae;padding:4px 8px;border-radius:5px;flex:none}
.hub-rich .rich-notice.error{background:#fff4df;color:#5c4019}
.hub-rich .jodit-container{border:0!important;border-radius:0!important;color:#152d44!important;--jd-color-background-default:#fff;--jd-color-panel:#edf2f8;--jd-color-text:#152d44;--jd-color-border:#b2c6d8}
.hub-rich .jodit-toolbar-button__button,.hub-rich .jodit-toolbar-button__trigger{background:transparent!important;border:0!important;box-shadow:none!important;color:#183553!important;border-radius:4px!important;padding:5px!important}
.hub-rich .jodit-toolbar-button__button:hover{background:#dcecff!important}
.hub-rich .jodit-toolbar-button svg{color:#183553!important;fill:currentColor}
.hub-rich .jodit-status-bar,.hub-rich .jodit-status-bar a{color:#536b80!important;background:#edf2f8!important}
.jodit-popup,.jodit-dialog{color-scheme:light!important;color:#193650!important;--jd-color-background-default:#fff;--jd-color-text:#193650;--jd-color-border:#a8bfd3;--jd-color-panel:#edf2f8}
.jodit-popup input,.jodit-popup select,.jodit-dialog input,.jodit-dialog select,.jodit-dialog textarea{background:#fff!important;color:#193650!important;border:1px solid #9eb7cd!important}
.jodit-popup button,.jodit-dialog button,.jodit-popup label,.jodit-dialog label{color:#193650!important}
.hub-rich-dialog{width:min(460px,calc(100% - 28px));box-sizing:border-box;background:#f7faff;color:#183553;border:1px solid #9eb5cb;border-radius:12px;padding:22px;z-index:8000;color-scheme:light}
.hub-rich-dialog::backdrop{background:#07192bbd}
.hub-rich-dialog h3,.hub-rich-dialog label,.hub-rich-dialog p{color:#183553!important}
.hub-rich-dialog label{display:block;margin:12px 0}.hub-rich-dialog input{display:block;width:100%;box-sizing:border-box;background:#fff!important;border:1px solid #87a4bf!important;color:#183553!important;padding:9px;border-radius:6px}
.hub-rich-dialog .rich-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.hub-rich-dialog button{background:#115b99!important;color:#fff!important;border:1px solid #497da9!important;border-radius:7px;padding:9px 14px;cursor:pointer}
.hub-rich-dialog button[type=button]{background:#e8eff8!important;color:#183553!important}
.hub-rich-fullscreen{position:fixed!important;inset:58px 12px 12px!important;width:auto!important;z-index:4000;overflow:auto;box-shadow:0 0 0 100vmax #03101ccc}
.hub-rich-fullscreen .html-editor{min-height:calc(100dvh - 190px)}
@media(max-width:850px){.v9-notes .notes-layout{grid-template-columns:1fr}.v9-notes .notes-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));max-height:220px}.v9-notes .notes-editor{padding:14px}.hub-rich .html-editor{padding:19px!important;min-height:340px}}
@media(max-width:560px){.app-order-list li{gap:7px;padding:8px}.app-order-list .order-drag{padding:5px}.app-order-list .hub-app-icon{width:28px;height:28px}.hub-share-dialog{padding:16px}.hub-share-dialog .share-options{grid-template-columns:1fr;gap:4px}.hub-share-dialog .share-member{flex-wrap:wrap}.hub-share-dialog .share-member select{width:116px}.hub-share-dialog .share-member label{min-width:140px}.hub-global-nav{gap:6px}.hub-share-nav{font-size:11px;padding:7px 8px}.hub-reports .workflow-action{grid-template-columns:42px minmax(0,1fr)!important}.hub-reports .workflow-action form{grid-column:1 / -1!important}.hub-reports .workflow-action .button.light{width:100%}.hub-rich .rich-toolbar{padding:5px;gap:4px}.hub-rich .rich-toolbar button{padding:6px 7px!important;min-height:37px}.hub-rich .rich-toolbar select{max-width:130px}.v9-notes .note-actions .btn{font-size:13px;padding:9px 10px}.v9-note-details{padding:10px}.hub-rich .html-editor{padding:16px!important}.hub-rich .rich-notice{display:block}.hub-rich .rich-notice button{margin-top:5px}.hub-rich-fullscreen{inset:58px 4px 4px!important}}
@media print{.hub-rich .rich-toolbar,.hub-rich .rich-notice,.note-actions,.v9-note-details,.v9-notes-toolbar,#note-status{display:none!important}.hub-rich{border:0!important}.hub-rich .html-editor{padding:0!important}.hub-rich iframe{min-height:auto}.hub-share-dialog{display:none!important}}
