:root{--navy:#1f3864;--blue:#2e75b6;--ink:#1a1a1a;--muted:#64748b;--line:#cbd5e1;--panel:#fff;--bg:#f5f7fa;--danger:#c00000;--success:#3f6326}*{box-sizing:border-box}body{min-height:100vh;color:var(--ink);background:var(--bg);margin:0;font-family:Arial,Helvetica,sans-serif}#app{flex-direction:column;min-height:100vh;display:flex}button,input,select,textarea{font:inherit}button:disabled,select:disabled,input:disabled,textarea:disabled{cursor:not-allowed;opacity:.8}header.appbar{color:#fff;background:var(--navy);align-items:center;gap:16px;padding:16px 24px;display:flex}header.appbar img{background:#fff;border-radius:6px;height:42px;padding:4px 8px}.headerauth{justify-content:flex-end;align-items:center;display:flex}.appttl{letter-spacing:.3px;font-size:18px;font-weight:700}.appsub{opacity:.82;font-size:12px}.appsub-short{display:none}.authline{background:#e9eef6;border-bottom:1px solid #d6deea;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px;display:flex}.loginform{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.loginform .inp{min-width:220px}.rolepill{color:var(--navy);background:#fff;border:1px solid #cbd5e1;border-radius:999px;align-items:center;padding:4px 9px;font-size:12px;font-weight:700;display:inline-flex}.saved{color:#bfe3c2;white-space:nowrap;opacity:0;margin-right:6px;font-size:12px;transition:opacity .25s}.saved.show{opacity:1}.errbar,.setupbar{padding:9px 24px;font-size:13px}.errbar{color:var(--danger);background:#fbe7e7}.setupbar{color:#78350f;background:#fff7ed}.portfolio-locked #strip,.portfolio-locked .appbar,.portfolio-locked .toolsrow,.portfolio-locked .filters,.portfolio-locked #main,.portfolio-locked #syncStatus,.portfolio-locked .print-only{display:none!important}.portfolioaccessgate{flex:1;place-items:center;padding:32px 24px}.portfolioaccessgate:not([hidden]){display:grid}.portfolioaccesspanel{border:1px solid #c8d4e5;border-top:7px solid var(--blue);background:#fff;border-radius:8px;width:min(100%,560px);padding:clamp(28px,5vw,50px);box-shadow:0 18px 44px #1f38641f}.portfolioaccesslogo{width:min(100%,230px);height:auto;margin:0 0 24px;display:block}.portfolioaccesspanel h1{color:var(--navy);margin:8px 0 14px;font-size:clamp(1.75rem,4vw,2.35rem);line-height:1.1}.portfolioaccesspanel p{color:#475569;margin:0 0 22px;line-height:1.6}.portfolioaccesseye{color:var(--blue);letter-spacing:.12em;text-transform:uppercase;font-size:.78rem;font-weight:700}.sessionwarning{z-index:10000;background:#1f3864bd;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.sessionwarningpanel{border:1px solid #c8d4e5;border-top:7px solid var(--blue);background:#fff;border-radius:8px;width:min(100%,560px);padding:clamp(28px,5vw,44px);box-shadow:0 22px 56px #00000047}.sessionwarningpanel h2{color:var(--navy);margin:8px 0 14px;font-size:clamp(1.75rem,4vw,2.35rem);line-height:1.1}.sessionwarningpanel>p{color:#475569;margin:0;line-height:1.6}.sessionwarningpanel .sessionwarningerror{color:#8f1d14;background:#fff0ee;border-left:4px solid #b42318;margin-top:16px;padding:12px 14px}.sessionwarningactions{flex-wrap:wrap;gap:10px;margin-top:20px;display:flex}.syncstatus{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:18px 24px 28px;display:flex}.syncchip{color:#334155;border:1px solid var(--line);background:#fff;border-radius:999px;align-items:center;min-height:28px;padding:5px 10px;font-size:12px;font-weight:700;display:inline-flex}.syncchip.ok{color:var(--success);background:#e8f1e0;border-color:#cfe0c3}.syncchip.warn{color:#92400e;background:#fff7ed;border-color:#fed7aa}.syncchip.bad{color:var(--danger);background:#fbe7e7;border-color:#f3b6b6}.syncdetails{color:#475569;text-align:left;width:100%;max-width:760px;font-size:12px}.syncdetails summary{cursor:pointer;font-weight:700}.syncdetails ul{margin:6px 0 0;padding-left:18px}.strip{flex-wrap:wrap;gap:10px;padding:16px 24px 0;display:flex}.stat{border:1px solid #e2e8f0;border-top:3px solid var(--navy);background:#fff;border-radius:8px;min-width:96px;padding:10px 14px;box-shadow:0 1px 2px #0000000d}.stat .v{font-size:22px;font-weight:700}.stat .l{color:#334155;text-transform:uppercase;letter-spacing:.4px;font-size:11px}.toolsrow,.filters{flex-wrap:wrap;align-items:center;gap:10px;padding:16px 24px 8px;display:flex}.filters{align-items:flex-end;padding-top:4px;padding-bottom:16px}.filterfield{flex-direction:column;flex:0 150px;gap:4px;min-width:130px;display:flex}.filtersearch{flex-basis:220px}.filtercategory{flex-basis:360px}.filterstatus,.filterpriority{flex-basis:156px}.filterlabel{color:#475569;font-size:12px;font-weight:700;line-height:1.2}.tabs{background:#e6ebf2;border-radius:8px;padding:3px;display:flex}.tab{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:500}.tab.active{color:var(--navy);background:#fff;font-weight:700;box-shadow:0 1px 2px #0000001a}.btnp,.btng,.delbtn,.ebtn,.promotebtn{cursor:pointer;border-radius:8px;font-size:13px;font-weight:700}.btnp{color:#fff;background:var(--blue);border:0;padding:9px 16px}.adminlink{justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.btng{color:var(--navy);border:1px solid var(--line);background:#fff;padding:9px 14px}.delbtn{color:var(--danger);background:#fbe7e7;border:0;padding:9px 14px}.ebtn{color:var(--navy);background:#eef2f7;border:1px solid #d6deea;border-radius:6px;padding:4px 10px;font-weight:600}.promotebtn{color:var(--success);background:#e8f1e0;border:1px solid #cfe0c3;border-radius:6px;padding:4px 9px;font-weight:700}.rowactions{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.inp{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:130px;padding:8px 10px;font-size:13px}.filterfield .inp{box-sizing:border-box;width:100%;min-width:0}main{flex:1;padding:0 24px 28px}.empty{color:var(--muted);text-align:center;padding:40px}section.cat{margin-top:24px}section.cat h2{color:var(--navy);border-bottom:2px solid var(--blue);margin:0 0 10px;padding-bottom:6px;font-size:17px}table{table-layout:fixed;border-collapse:collapse;background:#fff;width:100%;font-size:13px}.tablewrap{width:100%}thead tr{color:#fff;background:var(--navy);text-align:left}th{padding:9px 10px;font-size:12.5px;font-weight:700}td{vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #e2e8f0;padding:8px 10px;line-height:1.4}.pname{color:var(--navy);font-weight:700}.pnote,.auditnote{color:var(--blue);white-space:pre-wrap;margin-top:5px;font-size:11.5px;font-style:italic}.auditnote{color:#64748b}.gsel{max-width:100%;color:var(--blue);cursor:pointer;background:#fff;border:1px solid #d6deea;border-radius:6px;padding:3px 4px;font-family:inherit;font-size:12px;font-weight:700}.psel,.ssel,.csel,.pill{text-align:center;white-space:nowrap;border:1px solid #0000;border-radius:20px;font-size:11.5px;font-weight:700;line-height:1.2;display:inline-block}.psel{cursor:pointer;min-width:72px;padding:4px 18px 4px 12px}.ssel{cursor:pointer;min-width:96px;padding:4px 8px}.csel{min-width:76px;max-width:100%;color:var(--navy);cursor:pointer;background:#f8fafc;border-color:#d6deea;padding:4px 6px}.pill{padding:3px 9px}.cpill{max-width:100%;color:var(--navy);text-align:center;white-space:nowrap;background:#f8fafc;border:1px solid #d6deea;border-radius:12px;padding:3px 8px;font-size:11.5px;font-weight:700;line-height:1.2;display:inline-block}.modalwrap{z-index:50;background:#0f172a73;justify-content:center;align-items:flex-start;padding:40px 16px;display:flex;position:fixed;inset:0;overflow-y:auto}.adminwrap{padding:8px 4px}.modalcard{background:#fff;border-radius:12px;width:100%;max-width:620px;padding:24px;position:relative;box-shadow:0 20px 50px #0000004d}.modalcard h3{color:var(--navy);margin:0 0 14px;padding-right:34px}.modalclose{width:30px;height:30px;color:var(--navy);cursor:pointer;background:#f8fafc;border:1px solid #d6deea;border-radius:50%;justify-content:center;align-items:center;font-size:20px;font-weight:700;line-height:1;display:inline-flex;position:absolute;top:12px;right:12px}.modalclose:hover,.modalclose:focus{outline-offset:2px;background:#e9eef6;outline:2px solid #2f80bf38}.compactmodal{max-width:480px}.loginmodal,.profilemodal{max-width:420px}.profileidentity{border-bottom:1px solid #e2e8f0;margin-bottom:12px;padding-bottom:12px}.profilename{color:var(--navy);overflow-wrap:anywhere;font-size:18px;font-weight:800}.profiletype{color:#475569;margin-top:3px;font-size:13px;font-weight:700}.profileaccess{color:#64748b;margin-top:3px;font-size:12px;font-weight:700}.profiledetails{color:#334155;margin-top:4px}.profilerow{border-bottom:1px solid #e2e8f0;justify-content:space-between;gap:16px;padding:10px 0;font-size:13px;display:flex}.profilerow span{color:var(--muted)}.profilerow strong{text-align:right;overflow-wrap:anywhere}.profilepassword{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-top:12px;padding:12px}.profilemessage{color:#475569;min-height:18px;font-size:12px;font-weight:700}.profilemessage.ok{color:#3f6326}.profilemessage.bad{color:var(--danger)}.compactactions{margin-top:10px}.profileauditmodal{width:min(920px,100vw - 28px);max-width:920px;max-height:min(760px,100vh - 28px);overflow:auto}.adminmodal{width:calc(100vw - 8px);max-width:none;max-height:calc(100vh - 16px);overflow:auto}.adminloading{color:var(--muted);padding:16px 0;font-size:13px}.adminsection{margin-top:16px}.admincreate{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(140px,180px) auto;align-items:start;gap:10px;padding:12px;display:grid}.admintable{table-layout:fixed;width:100%;min-width:0}.admintable .inpf{width:100%;min-width:0}.admintable td{color:#334155}.admintable th,.admintable td{min-width:0}.admincol-name,.admincol-email{width:16%}.admincol-role{width:14%}.admincol-status{width:13%}.admincol-sessions{width:5%}.admincol-actions{width:36%}.admintable th:nth-child(5),.admintable td:nth-child(5){text-align:center}.admintable input:disabled,.admintable select:disabled,.admintable textarea:disabled{color:#334155;opacity:1;background:#eef2f7;border-color:#cbd5e1}.admintable button:disabled{color:#475569;opacity:1;background:#f8fafc;border-color:#cbd5e1}.adminhint{color:#334155;margin-top:4px;font-size:11px;font-weight:700}.adminactions{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-width:0;display:grid}.adminactions .btng,.adminactions .delbtn{overflow-wrap:anywhere;white-space:normal;width:100%;min-height:34px;padding:6px 8px;font-size:11px;line-height:1.15}.recoverysection{padding-bottom:4px}.recoverybar,.backuprestorebar,.backupmeta{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.recoverycopy{color:#475569;max-width:760px;font-size:12px;font-weight:700;line-height:1.35}.recoverytable{min-width:760px}.recoverytable th:nth-child(2),.recoverytable td:nth-child(2),.recoverytable th:nth-child(4),.recoverytable td:nth-child(4),.recoverytable th:nth-child(5),.recoverytable td:nth-child(5){text-align:center}.backuppreview{margin-top:12px}.backuppanel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px}.backupmeta strong{color:var(--navy)}.backupmeta span{color:var(--muted);font-size:12px;font-weight:700}.backuprestorebar{justify-content:flex-start}.checkline{color:#334155;align-items:center;gap:8px;font-size:12px;font-weight:700;display:inline-flex}.backuptable{min-width:980px}.backuptable th:first-child,.backuptable td:first-child{text-align:center;width:42px}.auditsection{margin-top:14px}.auditsection-title{color:var(--navy);margin-bottom:8px;font-weight:800}.auditempty{color:var(--muted);background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px;font-size:13px}.profiletablewrap{border:1px solid #e2e8f0;border-radius:8px;overflow-x:auto}.admintablewrap{overflow-x:hidden}.profiletable{min-width:720px;margin:0}.admintable.profiletable{min-width:0}.profiletable th,.profiletable td{vertical-align:top;overflow-wrap:anywhere;padding:8px 10px;font-size:12px}.profiletable td{color:#334155}.profileauditlist{gap:8px;display:grid}.profileaudititem{color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.4}.profileauditmeta{justify-content:space-between;gap:12px;margin-bottom:4px;display:flex}.profileauditmeta strong{color:var(--navy)}.profileauditmeta span,.profileauditfields,.profileauditnetwork{color:var(--muted);font-size:12px}.modalactions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px;display:flex}.promotename{color:var(--navy);margin-bottom:12px;font-weight:700}.promotehint{color:var(--muted);font-size:12px;line-height:1.4}.auditpanel{color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin:12px 0 4px;padding:10px 12px;font-size:12px}.auditpanel-title{color:var(--navy);margin-bottom:6px;font-weight:700}.auditrow{border-top:1px solid #e2e8f0;justify-content:space-between;gap:16px;padding:5px 0;display:flex}.auditrow span{color:var(--muted)}.auditrow strong{text-align:right;overflow-wrap:anywhere}.auditrow a{color:var(--blue)}.fld{margin-bottom:10px}.fld .flab{color:#475569;margin-bottom:4px;font-size:12px;font-weight:600}.inpf{border:1px solid var(--line);box-sizing:border-box;border-radius:8px;width:100%;padding:8px 10px;font-family:inherit;font-size:13px}textarea.inpf{resize:vertical}.row2{gap:12px;display:flex}.grow{flex:1}.printhdr,.printcover{display:none}.printtitle{color:var(--navy);font-size:22px;font-weight:700}.printsubtitle{color:#595959;font-size:13px}@media screen{.print-only{display:none!important}}@media screen and (width<=760px){html,body{max-width:100%;overflow-x:hidden}#app{width:100vw;max-width:100%;overflow-x:hidden}header.appbar,.authline,.toolsrow,.filters,.syncstatus,.strip,main{width:100vw;max-width:100vw}header.appbar{grid-template-columns:auto minmax(0,1fr);display:grid}header.appbar>div{min-width:0}.appttl,.appsub{overflow-wrap:anywhere}.appsub-full{display:none}.appsub-short{line-height:1.2;display:inline}.headerauth{grid-column:1/-1;justify-content:stretch}.headerauth .btnp,.headerauth .btng{width:100%}header.appbar,.authline,.toolsrow,.filters,.syncstatus,.strip,main{padding-left:14px;padding-right:14px}.strip{grid-template-columns:1fr;gap:8px;display:grid}.stat{min-width:0;padding:9px 10px}.stat .v{font-size:20px}.toolsrow{grid-template-columns:1fr;align-items:stretch;display:grid}.toolsrow .tabs{grid-template-columns:1fr;width:100%;min-width:0;display:grid}.toolsrow>div[style*=flex\:1]{display:none}.toolsrow button{width:100%;min-width:0}.tab{text-overflow:ellipsis;white-space:normal;min-width:0;overflow:hidden}.filters .filterfield{flex:100%;width:100%;min-width:0}.filters .inp{width:100%;min-width:0}.tablewrap{width:100%;margin:0;padding:0;overflow:visible}.tablewrap table{background:0 0;min-width:0}.tablewrap colgroup,.tablewrap thead{display:none}.tablewrap tbody{gap:12px;display:grid}.tablewrap tr{background:#fff;border:1px solid #d8e2ee;border-radius:8px;display:block;overflow:hidden}.tablewrap td{overflow-wrap:anywhere;border-bottom:1px solid #e7edf5;padding:10px 12px;display:block;text-align:left!important}.tablewrap td:last-child{border-bottom:0}.tablewrap td:before{content:attr(data-label);color:var(--muted);text-transform:uppercase;margin-bottom:4px;font-size:11px;font-weight:700;display:block}.gsel{width:100%}.psel,.ssel,.csel,.cpill,.pill{max-width:100%}.rowactions{flex-wrap:nowrap}.ebtn,.promotebtn{white-space:nowrap}.loginform .inp{width:100%;min-width:0}.row2{display:block}.admincreate{grid-template-columns:1fr}}@media print{.no-print{display:none!important}.print-only{display:block!important}body{background:#fff!important;min-height:0!important}#app{min-height:0;display:block}@page{size:A4 landscape;margin:10mm}.printcover{break-after:page;page-break-after:always;color:#111827;flex-direction:column;min-height:176mm;position:relative;display:flex!important}.printcover-top{color:#595959;text-align:center;border-bottom:1px solid #bfbfbf;grid-template-columns:1fr auto 1fr;align-items:center;padding-top:4mm;padding-bottom:2mm;font-size:10.5px;display:grid}.printcover-top span{grid-column:2}.printcover-body{text-align:center;width:100%;max-width:235mm;margin:34mm auto 0}.printcover-body img{width:74mm;height:auto;margin-bottom:10mm}.printcover-body h1{color:var(--navy);margin:0;font-size:29px;font-weight:800;line-height:1.17}.printcover-body h1 span{display:block}.printcover-rule{background:var(--blue);width:100%;height:2px;margin:18mm 0 6mm}.printcover-subtitle{color:#595959;font-size:16px;line-height:1.4}.printcover-date{color:#595959;margin-top:1mm;font-size:13px}.printcover-body p{color:#111827;text-align:left;width:100%;max-width:230mm;margin:10mm auto 0;font-size:12px;line-height:1.4}.printcover-page{color:#595959;text-align:center;font-size:10px;position:absolute;bottom:2mm;left:0;right:0}.printhdr{break-after:avoid;page-break-after:avoid;border-bottom:3px solid var(--blue);justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:8px;display:flex!important}.printhdr img{height:42px!important}.printtitle{font-size:17px!important}.printsubtitle{font-size:11px!important}main{flex:none!important;padding:0!important;display:block!important}section.cat{break-inside:auto;page-break-inside:auto;margin-top:10px}section.cat:first-child{margin-top:0}section.cat h2{break-after:avoid;page-break-after:avoid;font-size:14px}table{break-inside:auto;page-break-inside:auto}.tablewrap{overflow:visible}.tablewrap table{min-width:0}thead{display:table-header-group}tr{break-inside:avoid;page-break-inside:avoid}th,td{padding:5px 7px;font-size:10.5px;line-height:1.25}.pnote{font-size:9.5px}}
