.save-state{font-size:12px;color:#388365}.save-state.unsaved{color:#b86c15}.opinion-board{margin-top:28px;border-top:1px solid #dce6ef;padding-top:20px}.opinion-item{border:1px solid #dde7ee;border-radius:8px;padding:17px;margin:12px 0}.opinion-item>div:first-child{display:flex;justify-content:space-between;gap:12px}.opinion-item p{font-size:12px;color:#70879b}.opinion-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f8fb;padding:14px;line-height:1.8;font-size:13px}.comparison-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;font-size:13px}.comparison-pair>div{padding:15px;border-radius:6px;border:1px solid #dce6ef;overflow-wrap:anywhere}.old-value{background:#fff4f1;white-space:pre-wrap}.new-value{background:#edf8f1;white-space:pre-wrap}.compare-summary{padding:15px;background:#eef5fb;margin:18px 0;font-size:13px}.check-list{display:grid;gap:8px}.check-list button{text-align:left;color:#ad5d16;border-color:#edcba3}.attachment-modal{width:min(1120px,94vw);max-width:94vw;padding:24px}.preview-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.preview-head h2{overflow-wrap:anywhere;font-size:17px}#attachmentBody{background:#f3f6f9;min-height:200px}#attachmentBody iframe{width:100%;height:64vh;background:white;border:1px solid #dce6ef}#attachmentBody img{display:block;max-width:100%;max-height:64vh;margin:auto;object-fit:contain}#attachmentBody pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;max-height:64vh;overflow:auto}.file-row .actions{flex-wrap:wrap}.file-row small{display:block;color:#7a90a3;margin-top:7px}.file-row select{font-size:12px;max-width:150px}.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.backup-grid .panel{padding:24px}.backup-grid label{display:block;margin:15px 0}.backup-grid input{display:block;width:100%;margin-top:8px}.backup-grid p{font-size:13px;line-height:1.8;color:#70879b}button.danger{color:#ad4a3c;border-color:#e3c0ba}@media(max-width:900px){.backup-grid,.comparison-pair{grid-template-columns:1fr}.file-row{flex-wrap:wrap}}

.attachment-actions{display:flex;gap:10px;margin-left:auto;flex-shrink:0}.attachment-edit-actions:empty{display:none}.attachment-edit-actions{display:flex;gap:8px}.file-row>span{min-width:0;flex:1}.attachment-actions button{min-width:70px}
.po-template{table-layout:fixed;min-width:1100px;width:100%;border-collapse:collapse}.po-template td{border:1px solid #a9bdce;padding:8px;white-space:pre-wrap;font-size:13px;line-height:1.5;vertical-align:middle;color:#193b52}.po-template tr:first-child td{font-size:24px;font-weight:700;text-align:center;padding:22px}.po-template .po-label{background:#dcebf7}.po-template .po-variable{background:#fff9c7}.po-template input,.po-template textarea{width:100%;min-width:0;border:1px solid #d4bd66;background:#fffef3;color:#142e40;font-size:14px;padding:8px;border-radius:5px}.po-template textarea{min-height:185px;resize:vertical}.po-code{font-size:12px;text-align:right;color:#60788b}.po-jobs{min-width:1200px}.po-jobs th{white-space:nowrap}.po-jobs td{min-width:95px;padding:8px}.po-jobs input{width:100%;min-width:100px}.po-jobs td:nth-child(3),.po-jobs td:nth-child(4){min-width:190px}.po-document .note{font-size:12px}@media print{.po-template{min-width:0}.po-template td{font-size:9px;padding:4px}.po-template tr:first-child td{font-size:17px;padding:10px}.po-jobs{min-width:0;font-size:9px}.po-jobs td{min-width:0!important}.po-document .table-scroll{overflow:visible}.po-document{max-width:none!important}}

.po-template col:last-child{width:14%}.po-template col:not(:last-child){width:6.615%}

/* Office portal v5 */
:root{--portal-blue:#176da0;--portal-green:#16815f}body{background:#f3f6fa;color:#23394b}button,.button{border-radius:8px;font-weight:500;transition:background .15s}button.primary{background:var(--portal-blue);border-color:var(--portal-blue)}button[data-action="sign"],button[data-action="approve"],button[data-action="publish"]{background:var(--portal-green);border-color:var(--portal-green);color:white}button[data-action="reject"]{border-color:#c17a25;color:#9b5b0b;background:#fff8ed}button.danger{color:#b83c34;border-color:#e5b6b1;background:#fff8f7}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #99cdee;outline-offset:2px}.button{display:inline-block;padding:9px 14px;border:1px solid #d3dfeb;text-decoration:none;color:#28516e;background:white}.main-content{padding:28px}.title-row{gap:20px;flex-wrap:wrap}.title-row h1{font-size:28px;margin:10px 0}.actions{gap:8px;flex-wrap:wrap}.tabs{display:flex;flex-wrap:wrap;gap:2px}.sheet{padding:26px}.local-banner{font-size:12px;padding:10px 16px}.permission-note{font-size:12px;padding:12px 16px}.brand small{letter-spacing:2px}.aside-note{font-size:11px}.po-section,.technical-link{border:1px solid #dce6ed;border-radius:12px;padding:20px;margin:18px 0;background:#fff}.technical-link{background:#f2f8fc;border-left:4px solid #2384b5}.technical-link h3,.po-section h3{margin:0 0 14px}.po-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.po-editor-grid label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#385771}.po-editor-grid input,.po-editor-grid textarea{width:100%;box-sizing:border-box;background:#fffef8;border:1px solid #d9d9c0;padding:11px;border-radius:7px;font-size:15px}.po-editor-grid .wide{grid-column:1/-1}.required{color:#c24b40}.link-warning{color:#925b11;background:#fff4dc;padding:10px;border-radius:6px}.archive-identity{font-size:14px;color:#257b62;overflow-wrap:anywhere}.preview-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.preview-head h2{overflow-wrap:anywhere;min-width:0;font-size:19px}.preview-head{gap:20px}.attachment-modal{width:min(1200px,94vw);max-width:96vw;padding:24px;box-sizing:border-box}.attachment-modal #attachmentBody{height:65vh;overflow:auto;background:#e9eef3}.attachment-modal #attachmentBody iframe{width:100%;height:100%;border:0}.attachment-modal.preview-maximized{width:98vw;max-width:98vw;height:97vh;max-height:97vh;margin:auto;display:flex;flex-direction:column}.preview-maximized #attachmentBody{flex:1;min-height:0;height:auto}.preview-maximized .actions{margin-top:12px}.preview-controls output{min-width:76px;text-align:center}.attachment-modal #previewNote{font-size:12px;margin:8px 0}.po-template td{font-size:14px}.po-code{font-size:12px}#technicalChoices{max-height:55vh;overflow:auto}.file-row{gap:12px;flex-wrap:wrap}.file-row>span{overflow-wrap:anywhere;min-width:180px;flex:1}
@media(max-width:1100px){.po-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-content{padding:18px}.sheet{padding:18px}}
@media(max-width:700px){.po-editor-grid{grid-template-columns:1fr}.po-section,.technical-link{padding:14px}.attachment-modal{padding:14px}.preview-head h2{font-size:16px}}
@media print{.technical-link button,.technical-link .actions,.preview-controls{display:none}.po-section,.technical-link{break-inside:avoid}}

/* Office portal visual system, v6 */
:root{--blue:#0064cd;--portal-blue:#0064cd;--line:#dce5ef;--header-height:84px;--sidebar-width:218px;font-family:Inter,"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:#243344}body{background:#f0f5fb}button{border-radius:6px;transition:background .15s,border-color .15s,box-shadow .15s;font-weight:500}button:hover{background:#f0f6ff;border-color:#8ab2e4;color:#075eb9}button:focus-visible,a:focus-visible{outline:3px solid #8ac2ff;outline-offset:3px}.primary,#new{background:linear-gradient(180deg,#0777e6,#005ac5);border-color:#0063cd;box-shadow:0 3px 7px #0064cd1c;color:#fff}.primary:hover,#new:hover{background:#0057ba;color:#fff}.danger{color:#bb3d43;border-color:#efc9cb;background:#fff}.danger:hover{background:#fff0f1;border-color:#d2656b;color:#a42930}.ui-icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.portal-header{position:fixed;inset:0 0 auto;z-index:15;height:var(--header-height);min-height:0;padding:10px 26px;background:linear-gradient(110deg,#123c54,#174a63 55%,#123a50);border:0;box-shadow:0 2px 8px #14344b1a;color:white;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:24px}.portal-header .brand{padding:0;flex-direction:row;align-items:center;gap:24px;color:#fff;font-size:26px;letter-spacing:2px;flex-shrink:0}.portal-header .brand>.wasion-brand{width:205px;padding:0;background:transparent;border-radius:0}.portal-header .brand>.wasion-brand img{width:100%;height:62px;object-fit:contain}.portal-header .brand>span:last-child{border-left:1px solid #c1d8e99c;padding-left:24px;white-space:nowrap}.portal-header .brand small{color:#dbe9f3;letter-spacing:4px;font-size:10px;margin-top:6px}.portal-header .user-bar{color:#fff;gap:12px;flex-wrap:wrap;justify-content:flex-end}.portal-header .user-bar b{color:#fff;font-weight:500;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-header .pill{color:#e4f2ff;background:#ffffff20;font-size:10px}.portal-header button{color:#e7f2fa;background:transparent;border-color:#ffffff30;padding:7px 10px}.portal-header button:hover{background:#ffffff18;border-color:#ffffff70;color:white}.avatar{background:#dceaf4;color:#4c7796;display:grid;place-items:center;border-radius:50%;width:31px;height:31px}.avatar .ui-icon{width:21px;height:21px}.portal-header #languageControl{position:static!important;background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;color:#e5eff7;font-size:11px}.portal-header #languageControl label{font-size:0}.portal-header #languageControl select{font-size:12px;min-width:88px;margin:0;color:#fff;background:#ffffff0d;border:1px solid #ffffff30;padding:7px 9px}.portal-header #languageControl option{color:#1b354a;background:white}.portal-sidebar{top:var(--header-height);width:var(--sidebar-width);padding:22px 15px 18px;bottom:0;border-right:1px solid #dbe5ef;background:white}.module-switch{font-size:11px;color:#65778a;margin-bottom:16px}.module-switch select{font-size:12px;padding:9px 8px;margin-top:8px}.portal-sidebar #new{display:block;width:100%;margin:0 0 18px;padding:10px;font-size:13px}.portal-sidebar .nav{display:flex;gap:12px;align-items:center;padding:10px 12px;margin:3px 0;color:#435469;border-radius:5px;font-size:13px;min-height:41px;position:relative}.portal-sidebar .nav.active{color:#0060c6;background:linear-gradient(90deg,#dfedff,#edf6ff);font-weight:600}.portal-sidebar .nav.active:before{content:"";position:absolute;left:-15px;top:5px;bottom:5px;width:3px;background:#0064cd;border-radius:0 3px 3px 0}.portal-sidebar .nav:hover{background:#f0f6fd}.nav-divider{border-top:1px solid var(--line);padding:18px 10px 6px;margin-top:18px;font-size:11px;color:#778698}.aside-note{margin:24px 10px 0;font-size:10px;color:#8c9bab;line-height:1.8}.portal-main{margin-left:var(--sidebar-width);padding-top:var(--header-height);min-width:0}.portal-main .main-content{padding:20px 30px 42px;max-width:1800px;margin:auto}.portal-breadcrumb{display:flex;align-items:center;gap:10px;color:#718398;font-size:11px;margin:0 0 20px}.portal-breadcrumb .ui-icon{width:15px;height:15px}.title-row{margin-bottom:23px;gap:15px}.title-row h1{font-size:26px;line-height:1.3;color:#213548;letter-spacing:0;margin-bottom:7px}.subtitle{font-size:12px!important;line-height:1.6}.title-row #reload{display:flex;align-items:center;gap:8px;font-size:12px;padding:8px 15px}.title-row #reload .ui-icon{width:15px;height:15px}.stats{gap:16px;margin-bottom:22px}.stat{display:flex;align-items:center;gap:16px;padding:18px 20px;min-height:96px;border:1px solid #dce5ef;border-radius:9px;box-shadow:0 3px 7px #1f486006}.stat label{font-size:12px;color:#536174}.stat strong{font-size:28px;color:#233347;margin:5px 0 0;line-height:1.15}.stat-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;flex-shrink:0;color:#0878ed;background:#e8f3ff}.stat-icon .ui-icon{width:27px;height:27px}.stat-icon-1{color:#dc850a;background:#fff4e2}.stat-icon-3{color:#19884c;background:#e8f7eb}.panel{border-color:#dbe5f0;border-radius:10px;box-shadow:0 4px 14px #253e5903}.panel-head{padding:18px 20px;border-bottom:0}.panel-head h2{font-size:18px;color:#27394a}.panel-head #search{width:400px;max-width:55%;font-size:12px;padding:9px 12px}.panel>.table-scroll{padding:0 12px}table{font-size:12px}th{background:#eaf0f7;color:#465a70;font-weight:600;padding:12px 14px;white-space:nowrap}td{padding:15px 14px;color:#374b60}tbody tr:hover{background:#f8fbff}td strong{font-size:13px;color:#284b70;margin-bottom:4px}.list-actions{display:flex;gap:7px;flex-wrap:wrap}.list-actions button{padding:5px 13px;font-size:12px;color:#0761c3;border-color:#8cb5ea;white-space:nowrap}.list-actions .danger{color:#b84747;border-color:#edc6c6}.table-footer{font-size:11px;padding:15px 25px;color:#788a9e}.badge{padding:4px 9px;border-radius:5px}.badge.done{background:#e4f6e9;color:#1c8446}.badge.review{background:#e9f1ff;color:#2165c8}.sheet{padding:25px}.tabs{gap:20px;padding:0 24px;flex-wrap:wrap;background:#fff}.tabs button{font-size:12px;padding:17px 1px}.tabs button.active{color:#0064cd;border-color:#0064cd;font-weight:600}.sheet h3{color:#244c70;font-size:16px}.form-grid label,.production-section label{color:#536b83}.form-grid input,.form-grid select,.form-grid textarea{padding:10px 12px;border-color:#d3dfeb;background:#fff}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:#3e8cdd;box-shadow:0 0 0 3px #217be512}.sticky-actions{top:var(--header-height);z-index:5;background:#f0f5fbf5;padding:14px 0;backdrop-filter:blur(7px)}.permission-note{border-radius:7px;font-size:11px;color:#7d8fa2;background:#f8fafc;padding:10px 14px;margin:12px 0 18px}.file-row{padding:16px 0;gap:15px}.file-row button{font-size:12px;padding:7px 12px}.flow-row{border:1px solid #e7edf4;background:#f7faff;border-radius:7px}.signature-card{border-color:#dde7f0;background:#fff}.production-section{border-color:#dbe5ef;border-radius:9px;background:#fff}.production-section h4{color:#294e70}dialog{border:1px solid #dce6f0;border-radius:12px;padding:26px;box-shadow:0 24px 90px #0f2d4c38}dialog::backdrop{background:#102c4966;backdrop-filter:blur(2px)}dialog h2{color:#24435d;font-size:20px}dialog .actions{border-top:1px solid #edf1f5;padding-top:18px}dialog.preview-modal{padding:20px}#attachmentBody{background:#edf2f7}#attachmentBody iframe{border:0}.auth-shell{max-width:none;padding:80px max(6vw,30px);background:radial-gradient(ellipse at 20% 15%,#dfedf7,transparent 60%),#f0f5fb;gap:9vw}.auth-copy{max-width:620px}.auth-copy h1{font-size:36px;color:#173f59}.auth-copy .wasion-brand{max-width:360px;background:#143e56;padding:24px}.auth-card{max-width:490px;width:100%;box-shadow:0 16px 55px #1b446414;border-radius:14px;padding:38px}.auth-card h2{color:#183d57}.auth-card .primary{padding:12px}.auth-card input{padding:12px}.auth-copy p{color:#748a9f}#languageControl{font-size:12px}
@media(min-width:1600px){.portal-main .main-content{padding:24px 38px 48px}.stat{min-height:104px}.portal-header{padding-inline:30px}}
@media(max-width:1120px){:root{--sidebar-width:195px}.portal-header{gap:15px;padding:10px 18px}.portal-header .brand{font-size:21px;gap:16px}.portal-header .brand>.wasion-brand{width:165px}.portal-header .brand>span:last-child{padding-left:16px}.portal-header .brand small{font-size:8px;letter-spacing:3px}.portal-header .user-bar{gap:7px}.portal-header .user-bar>.pill{display:none}.portal-main .main-content{padding:20px}.stat{padding:15px 12px;gap:10px}.stat-icon{width:35px;height:35px}.stat-icon .ui-icon{width:23px;height:23px}.stats{gap:12px}}
@media(max-width:900px){:root{--header-height:118px;--sidebar-width:185px}.portal-header{flex-wrap:wrap;align-content:center;gap:9px}.portal-header .brand>.wasion-brand img{height:46px}.portal-header .brand small{margin-top:3px}.portal-header .user-bar{width:100%;justify-content:flex-end}.portal-header .avatar{width:24px;height:24px}.portal-sidebar{position:fixed;inset:var(--header-height) auto 0 0;width:var(--sidebar-width);padding:15px 12px}.portal-sidebar .nav{width:100%;font-size:12px;gap:9px}.portal-main{margin-left:var(--sidebar-width)}.portal-main .main-content{padding:18px}.stats{grid-template-columns:repeat(2,1fr)}.stat{min-height:85px}.title-row h1{font-size:23px}.panel-head{flex-wrap:wrap}.panel-head #search{max-width:100%;width:100%}.tabs{gap:15px;padding:0 18px}.auth-shell{padding:55px 25px;max-width:none;gap:25px}.auth-card{margin:auto}.auth-copy{margin:auto}.auth-copy h1{font-size:27px}}
@media(max-width:600px){:root{--header-height:122px}.portal-header{padding:8px 14px}.portal-header .brand{font-size:20px;gap:15px}.portal-header .brand>.wasion-brand{width:145px}.portal-header .brand>span:last-child{padding-left:15px}.portal-header .user-bar{font-size:11px;gap:6px}.portal-header .user-bar b{max-width:95px}.portal-header .user-bar>span:has(.pill){display:none}.portal-header button{font-size:10px;padding:5px}.portal-header #languageControl select{font-size:11px;padding:5px;min-width:75px}.portal-sidebar{position:relative;inset:auto;width:100%;padding:calc(var(--header-height) + 15px) 14px 12px;display:flex;flex-wrap:wrap;gap:4px;border-right:0;border-bottom:1px solid var(--line)}.portal-sidebar .module-switch{width:calc(100% - 145px);margin:0 10px 10px 0}.portal-sidebar #new{width:130px;align-self:center;margin:16px 0 0}.portal-sidebar .nav{width:auto;flex:1 0 30%;justify-content:center;padding:8px 4px;font-size:11px;min-height:34px;gap:5px}.portal-sidebar .ui-icon{width:15px;height:15px}.portal-sidebar .nav.active:before{display:none}.nav-divider{width:100%;margin-top:8px;padding:10px 5px 5px}.portal-sidebar .aside-note{display:none}.portal-main{margin:0;padding-top:0}.portal-main .main-content{padding:18px 12px}.portal-breadcrumb{font-size:10px;margin-bottom:15px;flex-wrap:wrap}.title-row h1{font-size:21px}.stat{gap:9px}.stat strong{font-size:25px}.sheet{padding:17px}.sticky-actions{top:var(--header-height)}.actions{gap:6px}.actions button{font-size:12px;padding:8px 10px}.auth-shell{padding:50px 20px}.auth-card{padding:25px}.auth-copy .wasion-brand{max-width:280px}.auth-copy h1{font-size:25px}}
@media print{.portal-header,.portal-sidebar,.portal-breadcrumb,#languageControl{display:none!important}.portal-main{margin:0;padding:0}.portal-main .main-content{padding:0;max-width:none}.sticky-actions{display:none!important}.panel{box-shadow:none}.stat{box-shadow:none}}

.sample-row{border:1px solid #d6e1e8;border-radius:8px;margin:12px 0;padding:16px;background:#f8fbfd}.sample-row .toolbar{margin-bottom:12px}.sample-table{margin-top:20px}.sample-row select{max-width:100%}@media print{.sample-row{break-inside:avoid}.sample-row .po-editor-grid{display:grid;grid-template-columns:repeat(2,1fr)}}

/* Account controls stay reachable even for users with many roles. */
.portal-header .user-bar{flex-wrap:nowrap;min-width:0}
.portal-header .user-bar>span:has(.pill){max-width:220px;max-height:48px;overflow:auto;min-width:0}
.portal-header .user-bar button,.portal-header #headerLanguage{flex-shrink:0}
.account-filters{justify-content:flex-start;flex-wrap:wrap}.account-filters label{display:flex;gap:10px;align-items:center}.account-table .account-roles{max-width:280px}.account-table .actions{min-width:170px}.account-table td{vertical-align:top}
@media(max-width:1400px){.portal-header .user-bar>span:has(.pill){display:none}}
@media(max-width:600px){.portal-header .user-bar .avatar{display:none}.portal-header .user-bar b{max-width:65px}.account-filters label{width:100%;flex-wrap:wrap}.account-filters input{max-width:100%}}

.account-role-list{max-height:110px;overflow:auto;min-width:120px}.account-filters input{width:230px}
/* Quiet dashboard colors: visible, pending, in progress, archived. */
.stats>.stat:nth-child(1){background:#eef6ff;border-color:#cee2f7}
.stats>.stat:nth-child(2){background:#fff7e9;border-color:#f1dfba}
.stats>.stat:nth-child(3){background:#f4f0ff;border-color:#dfd5f5}
.stats>.stat:nth-child(4){background:#edf8f1;border-color:#cee8d7}
.stats .stat-icon-2{color:#7854bc;background:#eae1fa}
.contract-child-row td:first-child{padding-left:30px;border-left:3px solid #dce5ef}
.badge.reject{background:#ffebed;color:#b42335;border:1px solid #f4c2c8}
.title-row h1{overflow-wrap:anywhere}
#contractConfigStatus{margin-left:12px;color:#19884c}
