:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#223348;background:#f3f6fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}.sidebar{width:254px;background:#101f35;color:#d8e4f5;position:fixed;inset:0 auto 0 0;padding:28px 15px;display:flex;flex-direction:column;box-shadow:5px 0 22px #23324e15}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 29px;border-bottom:1px solid #ffffff20}.brandlogo{background:linear-gradient(135deg,#3fb4e2,#3460c9);width:44px;height:44px;display:grid;place-items:center;color:white;border-radius:13px;font-size:26px;font-weight:900}.brand b{letter-spacing:1.1px;font-size:15px;display:block;color:white}.brand small{font-size:9px;letter-spacing:1.5px;color:#8aa4c6}.side-label{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#6582a5;margin:25px 12px 12px}.nav{background:none;border:0;text-align:left;color:#b8cbe2;border-radius:9px;padding:15px 13px;font-size:13px;cursor:pointer;margin:2px 0;font-weight:600}.nav:hover,.nav.active{background:#22476b;color:white}.nav.active{box-shadow:inset 3px 0 #49c2ef}.sidebarfoot{margin-top:auto;font-size:10px;letter-spacing:1px;border-top:1px solid #ffffff24;padding:20px 10px;color:#c6e6dd}.sidebarfoot small{display:block;margin-top:7px;color:#718cae}.glow{display:inline-block;width:8px;height:8px;background:#41d99f;border-radius:50%;margin-right:5px}main{margin-left:254px;width:calc(100% - 254px);padding:29px 34px 60px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}h1{font-size:27px;margin:4px 0 5px;color:#142d48;letter-spacing:-.7px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#5593ba}.subtitle{font-size:13px;color:#8191a3;margin:0}.topactions{display:flex;align-items:center;gap:10px}.connection{font-size:11px;color:#218765;margin-right:10px}.btn{border:0;border-radius:9px;padding:11px 17px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.primary{background:#2466b0;color:white;box-shadow:0 5px 13px #3976ad22}.primary:hover{background:#15558f}.outline{color:#28618f;background:white;border:1px solid #d6e2ed}.danger{background:#d6575d;color:white}.btn:disabled{opacity:.6;cursor:wait}.hidden{display:none!important}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:17px}.metric{background:white;padding:21px 22px;border-radius:13px;border:1px solid #e3ebf4;box-shadow:0 5px 20px #152a4007;position:relative;overflow:hidden}.metric::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--c)}.metric small{color:#8694a5;font-size:11px;font-weight:650;letter-spacing:.4px}.metric strong{font-size:30px;display:block;margin-top:10px;color:#213a54}.metric span{display:block;font-size:11px;margin-top:5px;color:#8b98a7}.panelrow{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:white;border:1px solid #e2eaf4;border-radius:14px;box-shadow:0 6px 25px #2034500a;overflow:hidden;margin-bottom:17px}.paneltitle{padding:21px 22px 18px;display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.8px;color:#23405d;font-weight:800;border-bottom:1px solid #eaf0f5}.paneltitle span{color:#9cadbf;font-size:11px;font-weight:500;letter-spacing:0}.graph{padding:25px 25px;min-height:225px}.barline{display:grid;grid-template-columns:110px 1fr 35px;gap:11px;align-items:center;margin:13px 0;font-size:12px}.track{height:10px;background:#edf2f8;border-radius:10px;overflow:hidden}.fill{height:100%;background:var(--bar);border-radius:10px}.barline b{text-align:right;font-size:11px}.toolbar{display:flex;align-items:center;gap:10px;padding:18px 20px;flex-wrap:wrap}.toolbar input{min-width:290px;flex:1}.toolbar input,.toolbar select,input,select,textarea{font-family:inherit;border:1px solid #dbe5ee;border-radius:8px;background:#fff;font-size:12px;padding:11px;color:#25405b;outline:none}input:focus,select:focus,textarea:focus{border-color:#54a0d2;box-shadow:0 0 0 3px #5aa3d21c}table{width:100%;border-collapse:collapse;font-size:12px}th{background:#f0f5fa;color:#68809a;text-transform:uppercase;font-size:10px;letter-spacing:.5px;padding:13px 12px;text-align:left;white-space:nowrap}td{padding:14px 12px;border-top:1px solid #edf2f7;color:#3d5168}tbody tr:hover{background:#f4faff}td.subject{min-width:220px;font-weight:650;color:#254e77}td.ref{font-weight:750;color:#2662a9}.badge{display:inline-block;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:750}.badge-open{background:#dcf0ff;color:#2161ac}.badge-closed{background:#d9f4e9;color:#187d5b}.badge-pending{background:#fff0d6;color:#b47a12}.tablewrap{overflow:auto}.tablefooter{padding:14px 21px;color:#8996a6;font-size:11px}.tinybtn{border:0;cursor:pointer;background:#eaf3fd;color:#316d9d;border-radius:7px;padding:7px 10px;font-size:11px;font-weight:700}.rowbtn{border:0;background:none;color:#397fc1;font-size:12px;cursor:pointer;margin:0 3px;padding:5px}.rowbtn.delete{color:#cd6067}.formpanel{padding:25px 28px}.formtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.formtop h2{font-size:19px;margin:0;color:#193e5c}.formtop p{font-size:12px;color:#9ca8b5}.sectiontitle{font-size:11px;letter-spacing:1.5px;font-weight:800;color:#397aa8;border-bottom:1px solid #e8eef5;padding:15px 0;margin-bottom:20px}.formgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 16px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label,.attachbox label{font-size:11px;color:#576e85;font-weight:750}.field.wide{grid-column:span 2}.field.full{grid-column:span 4}textarea{min-height:68px;resize:vertical}.attachments{display:grid;grid-template-columns:1fr 1fr;gap:15px}.attachbox{background:#f7fafd;border:1px dashed #b7cde0;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:12px}.attachbox input{width:100%}.fileinfo{font-size:11px;color:#64819c;overflow-wrap:anywhere}.attachbox .tinybtn{align-self:flex-start}.formactions{display:flex;justify-content:flex-end;gap:10px;padding-top:22px}.toolsgrid{padding:22px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.toolbox{border:1px solid #e3ecf5;border-radius:11px;padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:13px}.toolbox b{color:#1f4d78;font-size:15px}.toolbox p{color:#7c8b9e;line-height:1.7;font-size:12px;min-height:50px;margin:0}.toolbox input{max-width:100%}.hint{padding:16px 23px;color:#657c91;font-size:12px;background:#f4f9fd}.lookupform{display:flex;gap:10px;padding:15px 20px}.lookupform input{flex:1}#toast{position:fixed;right:25px;bottom:20px;background:#193d58;color:white;border-radius:11px;padding:15px 20px;box-shadow:0 6px 20px #0003;font-size:12px;display:none;z-index:10;max-width:440px}#toast.show{display:block}@media(max-width:1100px){.metrics{grid-template-columns:1fr 1fr}.formgrid{grid-template-columns:repeat(2,1fr)}.field.full{grid-column:span 2}.panelrow{grid-template-columns:1fr}}@media(max-width:700px){.sidebar{width:64px;padding:10px 5px}.brand{padding:10px}.brand>div:last-child,.side-label,.sidebarfoot{display:none}.nav{font-size:0;padding:17px 8px}.nav::first-letter{font-size:17px}main{margin-left:64px;width:calc(100% - 64px);padding:18px 11px}header{display:block}.topactions{flex-wrap:wrap;margin-top:17px}.metrics,.attachments,.toolsgrid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.field.wide,.field.full{grid-column:span 1}.toolbar input{min-width:160px}}

.server-warning{margin:16px 24px;padding:18px 22px;border:2px solid #d78b20;background:#fff7eb;color:#593714;border-radius:12px;line-height:1.6}.server-warning p{margin:8px 0}.server-warning button{padding:9px 18px;border:0;background:#82521d;color:white;border-radius:8px;cursor:pointer}


/* DMS V6 | executive finish & touch-first layout */
:root{--navy:#0b2543;--accent:#0677cc;--teal:#02a79c;--line:#e5edf6}body{background:radial-gradient(ellipse at 70% -18%,#d9eafb 0,transparent 55%),#f3f7fc} .sidebar{background:linear-gradient(167deg,#071b32,#102f51 75%,#0b2944);box-shadow:7px 0 30px #16365d10}.brandlogo{background:linear-gradient(145deg,#05bcb0,#1478d7);box-shadow:0 8px 22px #00b1c24d}.nav{transition:background .18s,transform .18s}.nav:hover{transform:translateX(2px)}.nav.active{background:linear-gradient(90deg,#15547f,#1c426b);box-shadow:inset 3px 0 #38dfd4,0 7px 18px #0002}.eyebrow{color:#069b9b}.panel,.metric{border-color:#e5edf6;box-shadow:0 9px 33px #223d5b0c;border-radius:16px}.metric{background:linear-gradient(147deg,#fff,#f7fbff);padding:24px}.metric strong{color:#102d4b;font-size:34px;font-variant-numeric:tabular-nums}.paneltitle{background:linear-gradient(95deg,#f9fcff,#fff);font-size:13px}.btn{border-radius:10px;font-size:13px;transition:transform .15s,box-shadow .15s}.btn:active,.tinybtn:active{transform:scale(.97)}.primary{background:linear-gradient(120deg,#0768b4,#039da7);box-shadow:0 7px 19px #0474b533}.primary:hover{background:linear-gradient(120deg,#045a9d,#078f9a)}input,select,textarea{font-size:14px;border-radius:10px;min-height:40px}select{cursor:pointer}.field:has(select) select{background-color:#f0f9ff;border:1px solid #9ac8e7}.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-color:#acc8e3 #f1f6fb}th{position:sticky;top:0;z-index:1;background:#eaf2fb;color:#406484}tbody tr:nth-child(even){background:#fbfdff}tbody tr:hover{background:#edf8ff}.rowbtn{border-radius:6px;padding:7px 9px;background:#edf5ff;white-space:nowrap}.rowbtn.delete{background:#fff1f1}.attachbox{background:linear-gradient(140deg,#f4faff,#fff);border:1.5px dashed #95c6e4}.toolbox{background:linear-gradient(160deg,#fff,#f8fbff)}.mobilebrand,.mobiletabs{display:none}
@media(max-width:1100px){.topactions{flex-wrap:wrap;justify-content:flex-end}.connection{margin-right:0}.formgrid{gap:13px}}
@media(max-width:700px){html{scroll-padding-bottom:95px}body{display:block;padding-top:64px;padding-bottom:calc(82px + env(safe-area-inset-bottom));min-width:0}.sidebar{display:none!important}.mobilebrand{display:flex;align-items:center;gap:10px;position:fixed;top:0;left:0;right:0;height:60px;background:linear-gradient(100deg,#0b2747,#16547b);padding:0 16px;color:white;z-index:20;box-shadow:0 7px 18px #12345a28}.mobilemark{background:linear-gradient(135deg,#02aeb3,#1c8bda);height:37px;width:37px;display:grid;place-items:center;font-size:23px;font-weight:900;border-radius:12px}.mobilebrand strong{display:block;letter-spacing:1.5px;font-size:17px}.mobilebrand small{display:block;font-size:9px;letter-spacing:1.4px;color:#b4ddec}.mobilebackup{margin-left:auto;background:#ffffff23;border:1px solid #ffffff40;color:white;border-radius:10px;font-size:22px;width:40px;height:40px}.mobiletabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid #dce8f4;box-shadow:0 -8px 28px #0d365318;padding:7px 7px calc(8px + env(safe-area-inset-bottom));gap:3px}.mtab{border:0;background:transparent;border-radius:12px;color:#668198;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:6px 0;font-size:10px;font-weight:700;min-height:51px}.mtab span{font-size:23px;line-height:23px}.mtab.active{background:#eaf6ff;color:#0878c2}.mtab.addtab span{background:linear-gradient(130deg,#0876c6,#00a79b);color:#fff;border-radius:14px;padding:6px 13px;line-height:25px;box-shadow:0 4px 12px #077bb43d}.mtab.addtab.active{background:#eaf8f6}.mtab.addtab.active span{background:#006f7b}main{margin:0;width:100%;max-width:100%;padding:16px 12px 20px}header{margin-bottom:17px}h1{font-size:24px;letter-spacing:-.5px}.subtitle{line-height:1.4;font-size:12px}.topactions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}.topactions .connection{grid-column:span 2;background:#e7f7f0;border:1px solid #c7e9dc;border-radius:9px;padding:9px 12px}.topactions .btn{font-size:11px;padding:11px 8px;white-space:normal;min-height:45px}.topactions #headerNew{grid-column:span 2}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}.metric{padding:17px 13px;border-radius:14px}.metric strong{font-size:29px}.metric small{font-size:10px;line-height:1.4;display:block}.panelrow,.attachments,.toolsgrid,.formgrid{grid-template-columns:minmax(0,1fr)}.panel{margin-bottom:12px;border-radius:14px}.paneltitle{padding:15px;flex-wrap:wrap;gap:6px;letter-spacing:.25px}.paneltitle span{font-size:10px}.graph{padding:14px;min-height:160px}.barline{grid-template-columns:85px 1fr 28px;gap:6px;font-size:10px}.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:13px;gap:8px}.toolbar input{grid-column:span 2;min-width:0;width:100%}.toolbar select{width:100%;min-width:0}.toolbar .btn{grid-column:span 2}.tablewrap{width:100%;max-width:100%;overflow-x:auto}table{min-width:760px;font-size:12px}th,td{padding:12px 10px}#referenceBody table{min-width:550px}.formpanel{padding:14px}.formtop{display:block}.formtop h2{font-size:20px}.formtop .btn{margin-bottom:10px}.sectiontitle{margin-bottom:13px}.formgrid{gap:15px}.field.wide,.field.full{grid-column:auto}.field label,.attachbox label{font-size:12px}.field input,.field select,.field textarea{width:100%;min-height:46px;font-size:16px}.field textarea{min-height:90px}.attachments{gap:10px}.attachbox{padding:15px;min-width:0}.attachbox input{font-size:13px}.formactions{flex-direction:column-reverse}.formactions .btn{width:100%;padding:14px}.toolsgrid{padding:12px;gap:12px}.toolbox{padding:17px}.toolbox p{min-height:0}.toolbox .btn{white-space:normal;min-height:45px}.hint{padding:13px;font-size:12px}.tablefooter{padding:13px}.rowbtn{min-height:36px}#toast{bottom:calc(87px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:none;font-size:13px}}
@media(min-width:701px) and (max-width:1200px){.sidebar{width:220px}main{margin-left:220px;width:calc(100% - 220px);padding:24px 20px}.topactions .btn{white-space:normal}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* V8 — Correspondence Register: 14 requested columns, blue two-line header and full wrapping */
.register-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:65vh;border-radius:0 0 12px 12px}
.register-table{table-layout:fixed;border-collapse:separate;border-spacing:0;min-width:1580px;width:100%;font-size:12px;line-height:1.45}
.register-table thead th{position:sticky;top:0;z-index:3;background:#07569b!important;color:#fff!important;text-align:center;vertical-align:middle;font-size:12px;font-weight:700;letter-spacing:0;line-height:1.3;text-transform:none;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;padding:13px 8px;border-right:1px solid #ffffff38;border-bottom:2px solid #003b70;height:61px}
.register-table thead th:nth-child(1){width:93px}.register-table thead th:nth-child(2){width:54px}.register-table thead th:nth-child(3){width:95px}.register-table thead th:nth-child(4),.register-table thead th:nth-child(5){width:78px}.register-table thead th:nth-child(6){width:120px}.register-table thead th:nth-child(7){width:245px}.register-table thead th:nth-child(8){width:125px}.register-table thead th:nth-child(9),.register-table thead th:nth-child(13){width:96px}.register-table thead th:nth-child(10){width:91px}.register-table thead th:nth-child(11){width:104px}.register-table thead th:nth-child(12){width:120px}.register-table thead th:nth-child(14){width:92px}.register-table thead th:nth-child(15){width:135px}
.register-table tbody td{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;vertical-align:top;padding:12px 9px;border-right:1px solid #edf2f8;line-height:1.5;max-width:0}
.register-table td.subject{min-width:0!important;font-weight:500}.register-table td.ref{font-weight:650}
.register-table tbody tr:nth-child(even){background:#f6faff}.register-table tbody tr:hover{background:#e9f4ff}
.register-table .actions-cell{white-space:normal!important}.register-table .rowbtn{white-space:normal!important;display:inline-block;margin:2px;padding:6px 7px}
.register-table .old-pdf{font-size:11px;color:#a56b25}
@media(max-width:700px){.register-wrap{max-height:62vh}.register-table{min-width:1580px;font-size:12px}.register-table thead th{font-size:12px;padding:11px 7px}}

/* V9: sortable, hideable, resizable correspondence columns */
.register-table{table-layout:fixed!important;width:max-content}.register-table thead th{position:sticky;top:0;overflow:visible;padding:0 6px!important;user-select:none}.register-table thead th:nth-child(n){width:auto}.register-table tbody td{overflow-wrap:anywhere;white-space:normal!important;max-width:none!important}.register-table td.subject{min-width:0!important}.sort-head{border:0;background:transparent;color:#fff;font:inherit;font-weight:700;line-height:1.3;display:block;white-space:normal;overflow-wrap:anywhere;width:100%;height:61px;padding:6px 2px;text-align:center;cursor:pointer}.sort-head:hover{background:#ffffff17}.sort-arrow{font-size:10px;opacity:.8}.col-resizer{position:absolute;right:-3px;top:0;bottom:0;width:9px;cursor:col-resize;z-index:8;touch-action:none}.col-resizer:hover,.col-resizer:active{background:#30c5ef88}.column-tools{padding:8px 18px 12px;display:flex;flex-wrap:wrap;align-items:center;gap:15px;border-bottom:1px solid #e3edf6}.column-help{font-size:12px;color:#69849c}.column-menu{position:relative}.column-menu summary{list-style:none;cursor:pointer;background:#0b5e9e;color:#fff;border-radius:8px;padding:11px 15px;font-size:12px;font-weight:700}.column-menu summary::-webkit-details-marker{display:none}.column-menu-content{position:absolute;top:calc(100% + 5px);left:0;z-index:15;width:275px;max-height:60vh;overflow:auto;background:white;border:1px solid #caddeb;border-radius:12px;padding:15px;box-shadow:0 14px 36px #0d31502b}.column-menu-content strong{display:block;margin-bottom:10px;color:#193d5e}.column-option{display:flex;align-items:center;gap:9px;padding:6px 3px;font-size:12px;color:#294d70}.column-option input{min-height:auto;accent-color:#076eb8}.column-menu-content .btn{margin-top:12px;width:100%}.pdf-icon{border:0;background:transparent;font-size:19px;cursor:pointer;padding:6px;border-radius:7px}.pdf-icon:hover{background:#e1f1ff}.register-table tbody td:empty{background:transparent}@media(max-width:700px){.column-tools{padding:9px 12px}.column-help{font-size:10px}.sort-head{height:60px}}

/* V10: compact icon-only action buttons */
.register-table .actions-cell{white-space:nowrap!important;text-align:center;vertical-align:middle!important;padding:7px 4px!important}
.register-table .action-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;margin:2px;border:1px solid transparent;border-radius:8px;cursor:pointer;font-size:20px;line-height:1;vertical-align:middle;transition:background .15s,transform .15s}
.register-table .action-icon:hover{transform:translateY(-1px)}
.register-table .action-edit{color:#0873bb;background:#e8f4ff;border-color:#cde7fb}
.register-table .action-edit:hover{background:#d0eaff}
.register-table .action-delete{color:#ba3441;background:#fff0f0;border-color:#f7dce0}
.register-table .action-delete:hover{background:#ffe0e2}
@media(max-width:700px){.register-table .action-icon{width:40px;height:40px}}

/* V11: executive register palette and explicit red PDF icon */
.register-wrap{border:1px solid #dce7f1;border-radius:0 0 12px 12px;box-shadow:inset 0 1px 0 #ffffff;scrollbar-color:#91b7d6 #eef5fb}
.register-table{font-family:Inter,'Segoe UI',Tahoma,Arial,sans-serif!important;font-size:13px!important;line-height:1.55!important;color:#233e56}
.register-table thead th{background:linear-gradient(180deg,#0869aa 0%,#07528e 100%)!important;border-right:1px solid #ffffff32!important;border-bottom:3px solid #063b6b!important;box-shadow:inset 0 1px #ffffff25}
.register-table .sort-head{font-size:12.5px;font-weight:700;letter-spacing:.12px;text-shadow:0 1px 1px #083a6a44}
.register-table tbody tr:nth-child(odd){background:#fff}
.register-table tbody tr:nth-child(even){background:#f2f7fc}
.register-table tbody tr:hover{background:#e2f2ff!important;box-shadow:inset 3px 0 #168bd6}
.register-table tbody td{color:#28465f;vertical-align:middle;padding:11px 10px!important;border-right:1px solid #e3edf6;border-bottom:1px solid #e4edf6;line-height:1.55!important;font-size:13px;overflow-wrap:anywhere;transition:background .15s ease}
.register-table tbody td.subject{color:#203b56;font-weight:500}
.register-table tbody td.ref{color:#09639a;font-weight:650}
.register-table tbody td[data-column="SN"]{font-variant-numeric:tabular-nums;color:#52718a;font-weight:650;text-align:center}
.register-table .badge{font-weight:700;letter-spacing:.05px}
.register-table .pdf-icon{display:inline-flex;justify-content:center;align-items:center;width:40px;height:40px;min-height:40px;padding:5px;border:1px solid #f5d7da;background:#fff5f6;border-radius:10px;cursor:pointer;line-height:1;box-shadow:0 1px 2px #ad344313;transition:background .16s,transform .16s,border-color .16s}
.register-table .pdf-icon:hover{background:#ffe4e7;border-color:#f3aab1;transform:translateY(-1px)}
.register-table .pdf-icon:focus-visible,.register-table .action-icon:focus-visible{outline:3px solid #31a9e9;outline-offset:2px}
.register-table .actions-cell{padding:6px 4px!important}
.register-table td[data-column="Doc. Link"],.register-table td[data-column="Reply Link"]{text-align:center}
@media(max-width:700px){.register-table{font-size:13px!important}.register-table tbody td{font-size:13px;padding:10px 9px!important}.register-table .pdf-icon{width:44px;height:44px}}

/* V12: full Issue description on hover, focus and touch */
.register-table .issue-hover{display:inline-block;max-width:100%;cursor:help;border-bottom:1px dashed #2e81b8;color:#136196;font-weight:650;overflow-wrap:anywhere;border-radius:3px}
.register-table .issue-hover:hover,.register-table .issue-hover:focus-visible{color:#064b80;background:#dcefff;outline:2px solid transparent}
.issue-tooltip{position:fixed;z-index:2147483000;display:none;width:max-content;max-width:min(370px,calc(100vw - 24px));min-width:180px;padding:15px 17px 16px;background:linear-gradient(140deg,#102d49,#173d60);color:#f4f9ff;border:1px solid #3c6180;border-radius:12px;box-shadow:0 14px 32px #05162755;pointer-events:none;text-align:left;overflow-wrap:anywhere;white-space:normal;font:400 14px/1.55 Inter,'Segoe UI',Tahoma,Arial,sans-serif}
.issue-tooltip-label{display:block;color:#9cbdd7;letter-spacing:1.15px;font-size:10px;font-weight:700;margin-bottom:7px}
.issue-tooltip-code{font-size:14px;font-weight:750;color:#7dd4fa;margin-bottom:6px}
.issue-tooltip-text{color:#ffffff;font-size:14px;line-height:1.65;white-space:pre-wrap}

/* V14: issue code/description search and filter reset */
#filterIssue{min-width:175px;flex:0 1 205px;background:#f7fbff;border-color:#bfd7ea}#filterIssue:focus{background:white}.clear-filters{border:1px solid #d5e4f2;color:#24567c;background:#eff6fc;min-height:38px}.clear-filters:hover{background:#dbeefb;color:#104c7d}.toolbar #listAdd{margin-left:auto}@media(max-width:700px){.toolbar #filterIssue{grid-column:span 2;width:100%;min-width:0;flex:auto}.toolbar .clear-filters{grid-column:span 1}.toolbar #listAdd{grid-column:span 1;margin-left:0}}

/* V16 — professional PDF attachment cards */
.v16-attach{background:linear-gradient(155deg,#fff,#f5faff);border:1px solid #b6d5ee;border-radius:15px;padding:18px;min-width:0;box-shadow:0 4px 18px rgba(24,65,109,.07)}
.attachment-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.attachment-head label{font-size:13px;font-weight:750;color:#173d64}
.file-pill{background:#e9eff6;color:#60768c;font-size:11px;font-weight:750;border-radius:20px;padding:5px 9px;white-space:nowrap}
.file-pill.attached{background:#d9f4e8;color:#12694b}.file-pill.pending{background:#fff0cf;color:#916007}
.attachment-current{display:flex;gap:14px;align-items:center;background:#f6f9fd;border:1px solid #dae7f2;border-radius:12px;padding:14px;min-height:76px}
.attach-pdf-icon{background:#d93243;color:white;border-radius:6px;font-size:10px;font-weight:900;display:flex;justify-content:center;align-items:center;min-width:39px;height:47px;letter-spacing:.5px;box-shadow:0 2px 6px #dd36433b}
.attachment-file{min-width:0;display:flex;flex-direction:column;gap:5px}.attachment-file strong{font-size:13px;color:#203e60;overflow-wrap:anywhere}.attachment-file small{font-size:11px;color:#667f95}
.v16-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.attachment-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.attach-action{appearance:none;border:1px solid #cdddeb;border-radius:9px;padding:9px 12px;background:#fff;color:#194c79;font-size:12px;font-weight:700;cursor:pointer;transition:.17s ease}
.attach-action:hover:not(:disabled){background:#e8f3ff;transform:translateY(-1px);border-color:#80b5e4}.attach-action:disabled{opacity:.35;cursor:not-allowed}
.attach-remove{color:#b82f42}.attach-remove:hover:not(:disabled){background:#ffebee;border-color:#e8a3ae}.attach-replace{background:#1769a6;color:#fff;border-color:#1769a6}.attach-replace:hover:not(:disabled){background:#0f548b;color:#fff}
.attachment-notice{min-height:18px;margin-top:10px;font-size:11px;line-height:1.45;color:#73879a}
@media(max-width:650px){.v16-attach{padding:13px}.attachment-actions{display:grid;grid-template-columns:1fr 1fr}.attachment-actions .attach-replace{grid-column:span 2}.attach-action{min-height:42px}}

/* DMS Universal Edition-008 */
.edition-mark{position:fixed;right:10px;bottom:7px;font-size:10px;color:#748ba3;pointer-events:none;opacity:.8;z-index:2}@media(max-width:700px){.edition-mark{bottom:67px;right:9px;font-size:9px}}


/* DMS Universal Edition-009 form refinement */
.formpanel{padding:20px 24px 24px;background:linear-gradient(180deg,#ffffff 0%,#f9fcff 100%);border-radius:18px}
.formpanel .formtop{display:none!important}
.formpanel .sectiontitle{display:flex;align-items:center;gap:10px;margin-top:0;padding-top:4px;padding-bottom:14px;color:#1d5e91;font-size:12px;letter-spacing:1.2px}
.formpanel .sectiontitle:first-of-type{padding-top:0;margin-top:0}
#new .panel{overflow:visible}
#new .formgrid{gap:16px 16px}
#new .field{background:linear-gradient(180deg,#ffffff,#fbfdff);border:1px solid #e2ebf3;border-radius:14px;padding:14px 14px 12px;box-shadow:0 6px 18px rgba(26,63,101,.05)}
#new .field label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11.5px;letter-spacing:.2px;color:#315874;margin-bottom:2px}
#new .field .lock-mark{font-size:10px;font-weight:800;letter-spacing:.5px;color:#74889d;background:#eef2f6;border:1px solid #d9e1e8;border-radius:999px;padding:3px 8px}
#new .editable-field{background:linear-gradient(180deg,#f5fbff 0%,#eef8ff 100%);border-color:#c7e1f4;box-shadow:0 7px 18px rgba(33,121,181,.08)}
#new .locked-field{background:linear-gradient(180deg,#fbfcfe 0%,#f5f7fa 100%);border-color:#e0e6ee}
#new .editable-control{background:#ffffff!important;border:1.5px solid #8fc4e6!important;box-shadow:inset 0 1px 2px rgba(20,76,123,.05),0 0 0 3px rgba(100,185,232,.08);color:#183a57;font-weight:500}
#new .editable-control:focus{border-color:#2e92cd!important;box-shadow:0 0 0 4px rgba(62,163,222,.16), inset 0 1px 2px rgba(20,76,123,.05)!important}
#new .locked-control{background:#eef2f6!important;border:1.5px solid #d7e0e9!important;color:#6c8094!important;box-shadow:none!important}
#new textarea.editable-control{min-height:90px;line-height:1.6}
#new .attachments{margin-top:8px}
#new .formactions{margin-top:6px;padding-top:18px;border-top:1px solid #e7eef6}
#headerBackList{background:#f3f8fd;border-color:#bfd5e8;color:#1d5685}
#headerBackList:hover{background:#e6f1fb}
@media(max-width:700px){
  #headerBackList{order:4;width:100%}
  #new .field{padding:13px 12px}
  .formpanel{padding:16px 14px 18px}
}

/* Edition 010: correspondence form — grouped executive layout */
#new #formgrid{display:flex!important;flex-direction:column;gap:14px!important}
#new .dms-form-group{border:1px solid #dce8f4;border-radius:15px;background:linear-gradient(145deg,#fff,#f9fcff);box-shadow:0 6px 22px #163e6510;overflow:hidden}
#new .dms-form-group-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 15px;padding:13px 17px;background:linear-gradient(100deg,#eaf5fe,#f7fbff);border-bottom:1px solid #dceaf7}
#new .dms-form-group-heading strong{font-size:13px;color:#124c7b;letter-spacing:.3px}
#new .dms-form-group-heading small{font-size:11px;color:#66819a}
#new .dms-group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:15px}
#new .dms-group-grid .field.wide{grid-column:span 2}
#new .dms-group-grid .field{padding:11px 12px;box-shadow:none;border-radius:10px}
#new .dms-group-grid .field label{font-size:12px}
#new .formactions{position:sticky;bottom:0;z-index:4;background:#f8fcffed;backdrop-filter:blur(12px);padding:14px 8px 8px;box-shadow:0 -8px 24px #174a6c10}
#new .formactions .btn{min-height:44px;padding:12px 22px;border-radius:11px;font-size:13px}
#new #saveDoc{background:linear-gradient(115deg,#0876c0,#069f9b);box-shadow:0 8px 18px #0791b035}
#new #saveDoc:hover{filter:brightness(1.07)}
#new #resetForm{background:#f1f6fb;color:#285c84;border:1px solid #c9deed}
#new #resetForm:hover{background:#e6f2fd}
@media(max-width:1100px){#new .dms-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#new .dms-group-grid{grid-template-columns:1fr;padding:10px}#new .dms-group-grid .field.wide{grid-column:auto}#new .dms-form-group-heading{padding:12px}#new .formactions{padding-bottom:calc(10px + env(safe-area-inset-bottom));bottom:72px}#new .formactions .btn{flex:1}}

/* Universal Edition 011: three-stage Add/Edit correspondence */
#new .form-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}
#new .form-tab{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:57px;background:#f3f8fe;border:1px solid #cfe0ee;border-radius:12px;color:#456b88;font-size:13px;font-weight:750;cursor:pointer;transition:.18s}
#new .form-tab.active{background:linear-gradient(120deg,#095b9b,#087ca5);color:white;border-color:#0876af;box-shadow:0 7px 20px #125c9340}
#new .form-tab:hover:not(.active){background:#e5f3ff;border-color:#93c5e5}
#new .tab-count{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;background:#dcecf9;color:#12629a;font-weight:800}
#new .form-tab.active .tab-count{background:#fff;color:#096ba5}
#new .tab-progress{height:4px;background:#e5eef6;border-radius:100px;overflow:hidden;margin-bottom:16px}
#new #tabProgressFill{display:block;height:100%;width:33.333%;background:linear-gradient(90deg,#1377c0,#08a59f);transition:width .2s}
#new .form-tab-panel{min-height:220px}
#new .form-tab-panel.hidden{display:none!important}
#new #tabReply .dms-form-group{margin:0}
#new #tabPrevious{margin-right:auto}
#new #tabNext{background:#e7f3ff;color:#135c91;border:1px solid #a7d0ed}
#new #tabNext:hover{background:#d8edff}
@media(max-width:700px){#new .form-tabs{gap:5px}#new .form-tab{gap:5px;min-height:61px;padding:7px 4px;flex-direction:column;text-align:center;font-size:10.5px;line-height:1.2}#new .tab-count{height:25px;width:25px}#new .formactions{flex-wrap:wrap}#new #tabPrevious{margin-right:0}}

/* DMS Universal Edition-012: centered, full-workspace correspondence modal */
body.form-modal-open{overflow:hidden}
#new.form-modal-open,#new{box-sizing:border-box}
#new:not(.hidden){position:fixed;inset:0;z-index:1000;display:flex;justify-content:center;align-items:center;padding:24px;background:rgba(9,27,47,.55);backdrop-filter:blur(5px)}
#new .form-modal-shell{width:min(1440px,100%);max-height:calc(100dvh - 48px);min-height:0;display:flex;flex-direction:column;background:#f6faff;border:1px solid #b5cce3;border-radius:20px;overflow:hidden;box-shadow:0 24px 70px #061c3460}
#new .form-modal-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 24px 15px;background:linear-gradient(105deg,#f5fbff,#e4f2fd);border-bottom:1px solid #c8dcea}
#new .form-modal-heading{min-width:0}
#new .modal-kicker{display:block;color:#008d9c;font-size:10px;font-weight:800;letter-spacing:1.8px;margin-bottom:4px}
#new .form-modal-heading h2{font-size:23px;line-height:1.2;margin:0 0 5px;color:#102f4e}
#new .form-modal-heading p{font-size:12px;color:#64849c;margin:0}
#new .form-modal-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
#new .form-modal-controls .btn{min-height:42px;font-size:12px;border:1px solid #bbd6e9;box-shadow:0 3px 9px #173e5b10}
#new .modal-back{background:white;color:#1e5e91}
#new .modal-back:hover{background:#edf8ff}
#new .modal-new{background:linear-gradient(115deg,#076ab3,#079c9f);border:0!important;color:#fff}
#new #docForm{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0;border:none;border-radius:0;padding:18px 24px 20px}
#new .formactions{bottom:0}
@media(max-width:700px){#new:not(.hidden){padding:0;align-items:stretch}#new .form-modal-shell{max-height:100dvh;height:100dvh;border:0;border-radius:0}#new .form-modal-header{padding:12px 14px;align-items:flex-start;gap:8px;flex-direction:column}#new .form-modal-heading h2{font-size:18px}#new .form-modal-controls{width:100%}#new .form-modal-controls .btn{flex:1;min-height:40px}#new #docForm{padding:12px 12px 14px}#new .formactions{bottom:0}}

/* Edition 013 — streamlined field-label-only form layout */
#new .dms-form-group-heading{display:none!important}
#new .dms-form-group{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;overflow:visible!important}
#new .dms-group-grid{padding:3px 0 9px!important;gap:12px!important}
#new #formgrid{gap:7px!important}
#new .form-tab-panel{min-height:0!important}
#new .dms-group-grid .field{min-height:0;padding:11px 12px 12px}
@media(max-width:700px){#new .dms-group-grid{padding:2px 0 8px!important;gap:10px!important}}

/* Edition-014 — compact, balanced 3-tab dialog with persistent save action */
@media(min-width:701px){
 #new .form-modal-shell{width:min(1100px,calc(100vw - 80px));max-height:calc(100dvh - 64px)}
 #new .form-modal-header{padding:14px 22px 13px}
 #new #docForm{padding:15px 20px 0;display:flex;flex-direction:column}
 #new .dms-group-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important}
 #new .dms-group-grid .field.wide{grid-column:span 2}
 #new .attachments{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
#new .formactions{position:sticky;bottom:0;margin-top:auto!important;flex:none;display:flex;align-items:center;gap:9px;z-index:7;background:linear-gradient(180deg,#fbfdfff5,#eef7ffff);padding:13px 16px 14px!important;border-top:1px solid #caddea;box-shadow:0 -8px 24px #14395a17}
#new #saveDoc{display:inline-flex!important;align-items:center;justify-content:center;min-width:180px;white-space:nowrap;font-weight:800}
#new #saveDoc.hidden{display:inline-flex!important}
#new .modal-cancel{background:#fff5f5;color:#a63d4f;border:1px solid #efcad0}
#new .modal-cancel:hover{background:#ffe9eb}
#new .dms-group-grid .field{min-width:0;padding:10px 11px 11px}
#new .dms-group-grid .editable-control{width:100%;min-width:0}
#new .form-tab-panel{flex:0 0 auto}
@media(max-width:700px){
 #new .form-modal-shell{width:100%;max-height:100dvh}
 #new #docForm{display:flex;flex-direction:column;min-height:0;padding:12px 12px 0}
 #new .formactions{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 10px calc(12px + env(safe-area-inset-bottom))!important;gap:7px}
 #new .formactions .btn{width:100%;min-height:42px;padding:9px 8px}
 #new #saveDoc{min-width:0;grid-column:span 2;order:5}
 #new #tabPrevious{order:2}
 #new #tabNext{order:3}
 #new #resetForm{order:4}
 #new #cancelChanges{order:1}
}

/* Edition-015 Required Fields */
#new .required-asterisk{display:inline-block;color:#de3349;font-size:17px;font-weight:900;line-height:1;margin-left:5px;vertical-align:middle}
#new .field:has([required]) label{color:#164d78}
#new .editable-control:invalid:not(:focus){border-color:#d4a3ac}

/* Edition 016: ensure a closed modal cannot obscure the register */
#new.hidden,#new[aria-hidden="true"]{display:none!important;pointer-events:none!important}

/* Edition 017 — compact Reference Tables with editable modal */
#reference>.panel{max-width:1160px;margin-inline:auto}#reference .paneltitle{padding:17px 22px;background:linear-gradient(105deg,#f1f8fe,#e6f3fb);color:#184c76}
#reference .toolbar{padding:14px 20px}#reference .toolbar #refTable{min-width:180px;background:#f2f9ff;border:1px solid #b9d7eb}
#reference .lookup-table{min-width:0;width:100%;table-layout:auto;font-size:13px}
#reference .lookup-table th{background:linear-gradient(180deg,#1269a8,#09558f);color:white;font-size:11px;white-space:normal;letter-spacing:.5px}
#reference .lookup-table td{padding:10px 14px;white-space:normal;overflow-wrap:anywhere}#reference .lookup-table tbody tr:nth-child(even){background:#f2f7fc}#reference .lookup-table tbody tr:hover{background:#e7f4ff}
#reference .lookup-actions,#reference .lookup-actions-th{width:116px;text-align:center;white-space:nowrap!important}
#reference .action-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #d4e5f2;border-radius:9px;cursor:pointer;margin:0 3px;font-size:18px}
#reference .action-edit{background:#e8f4ff;color:#1169a8}#reference .action-delete{background:#ffeff1;color:#b43248}
body.lookup-modal-open{overflow:hidden}
#lookupModal:not(.hidden){position:fixed;inset:0;z-index:2500;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(7,27,48,.56);backdrop-filter:blur(4px)}
.lookup-dialog{width:min(490px,100%);max-height:min(85dvh,780px);display:flex;flex-direction:column;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 25px 75px #081f3d66;border:1px solid #a9cee9}
.lookup-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 23px 15px;background:linear-gradient(115deg,#ecf7ff,#dceefa);border-bottom:1px solid #c9e0f0}
.lookup-dialog-head small{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#0a90a0}.lookup-dialog-head h2{font-size:19px;color:#163d61;margin:5px 0 0}
.lookup-close{background:#fff;border:1px solid #cee0ee;border-radius:9px;font-size:24px;width:35px;height:35px;cursor:pointer;color:#4e6b86}
.lookup-fields{padding:18px 23px;display:grid;gap:12px;overflow-y:auto}.lookup-field{background:#eff8ff;border:1px solid #c7e1f4;padding:12px;border-radius:12px;display:flex;flex-direction:column;gap:7px;color:#26516d;font-size:12px;font-weight:750}
.lookup-field input{background:white;border:1.5px solid #91c2e3;font-size:14px;width:100%;min-height:42px}.lookup-dialog .required-asterisk{color:#d42d44}
.lookup-error{padding:0 23px;color:#b72743;font-size:12px}.lookup-dialog-footer{border-top:1px solid #e0eaf4;background:#f6faff;padding:15px 23px;display:flex;justify-content:flex-end;gap:10px}
@media(max-width:700px){#reference>.panel{max-width:100%}.lookup-dialog{width:min(440px,100%)}.lookup-fields{padding:13px}.lookup-dialog-head,.lookup-dialog-footer{padding:14px}}

/* Edition 018 — compact Reference Tables window */
#reference>.panel{width:min(760px,100%);max-width:760px;margin:0 auto 18px;border-radius:16px}
#reference .paneltitle{padding:14px 18px;font-size:12px}
#reference .toolbar{padding:12px 16px;gap:8px}
#reference .toolbar #refTable{min-width:155px;width:175px;max-width:100%;min-height:39px}
#reference .toolbar #addLookup{min-height:39px;padding:9px 14px}
#reference .lookup-table{font-size:12px}
#reference .lookup-table th{padding:10px 13px}
#reference .lookup-table td{padding:9px 13px}
#reference .lookup-actions,#reference .lookup-actions-th{width:106px}
#reference .action-icon{width:32px;height:32px}
@media(max-width:700px){#reference>.panel{width:100%;max-width:100%}#reference .toolbar{display:flex;flex-wrap:wrap}#reference .toolbar #refTable{flex:1;min-width:130px}#reference .toolbar #addLookup{flex:0 0 auto}}
/* DMS Universal Edition-019 Executive Overview */
body:has(.exec-view:not(.hidden)){background:linear-gradient(145deg,#edf6ff,#f4f8fd 53%,#eaf3fc)}
body:has(.exec-view:not(.hidden)) main{max-width:none;padding:21px 23px 45px}
body:has(.exec-view:not(.hidden)) main>header{background:linear-gradient(100deg,#eff8ff 0%,#dceeff 65%,#f3f9ff 100%);padding:15px 20px;border-radius:16px;margin-bottom:15px;box-shadow:0 8px 30px #20517c10}
body:has(.exec-view:not(.hidden)) main>header h1{font-size:30px;color:#102f54}
.exec-view{font-family:Inter,'Segoe UI',Arial,sans-serif;color:#173553}
.exec-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:13px}
.exec-kpi{background:linear-gradient(145deg,#fff,#f9fcff);border:1px solid #dce9f6;border-radius:14px;min-height:110px;display:flex;align-items:center;gap:10px;padding:14px 12px;box-shadow:0 9px 24px #163d6710}
.exec-kpi-icon{min-width:47px;width:47px;height:47px;display:grid;place-items:center;border-radius:50%;font-size:23px;font-weight:800;background:#d7efff;color:#0876be}.exec-kpi-icon.amber{background:#fff0d4;color:#bb7a14}.exec-kpi-icon.green{background:#d6f7e9;color:#15996b}.exec-kpi-icon.violet{background:#e9e1ff;color:#6747cb}.exec-kpi-icon.sky{background:#e2f2ff;color:#1881c9}.exec-kpi-icon.red{background:#ffe4e9;color:#cc314c}
.exec-kpi-info{min-width:0;display:flex;flex-direction:column;gap:3px}.exec-kpi-info>div{font-size:11px;font-weight:650;color:#356083}.exec-kpi-info strong{font-size:26px;line-height:1.2;color:#0d294e;font-variant-numeric:tabular-nums}.exec-kpi-info small{font-size:10px;color:#7b92aa}
.exec-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,1.05fr) minmax(240px,.70fr);gap:12px;align-items:stretch}
.exec-card{background:#fff;border:1px solid #dce7f4;border-radius:14px;box-shadow:0 9px 27px #1b456515;overflow:hidden;min-width:0}
.exec-card-head{height:51px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 16px;border-bottom:1px solid #e5eef7;background:linear-gradient(100deg,#fff,#f8fbff)}.exec-card-head b{font-size:13px;color:#15375a}.exec-card-head>span{font-size:10px;color:#6e8ca7}.exec-card-head select{padding:6px 9px;font-size:11px;min-height:30px;max-width:150px}
.exec-card-body{padding:15px 17px;height:230px}.exec-side-stack{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-height:294px}.exec-side-body{padding:9px 13px}.exec-side-item{display:flex;align-items:center;gap:9px;padding:7px 1px;border-bottom:1px solid #edf2f7;font-size:11px}.exec-side-item:last-child{border:0}.exec-side-item em{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fee8e8;color:#ba3e49;font-style:normal;font-weight:800;flex-shrink:0}.exec-side-item span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exec-side-item b{color:#19466b}.exec-link{color:#0968b1;border:0;background:none;cursor:pointer;font-size:11px;font-weight:700;padding:4px}.exec-storage{display:flex;align-items:center;gap:12px;padding:14px 5px}.exec-storage-icon{background:#d9eeff;border-radius:50%;padding:15px;color:#1082ce;font-size:23px}.exec-storage>div:last-child{display:flex;flex-direction:column;gap:8px;min-width:0}.exec-storage b{font-size:12px}.exec-storage small{font-size:11px;color:#7188a0}
.exec-vertical-chart{display:flex;gap:11px;align-items:end;height:100%;padding:5px 0 0}.exec-vbar{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;height:100%;gap:7px}.exec-vbar strong{font-size:11px}.exec-vbar-track{width:100%;flex:1;display:flex;align-items:end;background:repeating-linear-gradient(to top,#eef3f8 0px,#eef3f8 1px,transparent 1px,transparent 39px);border-bottom:1px solid #bed3e8}.exec-vbar-track span{display:block;width:70%;margin:auto auto 0;border-radius:5px 5px 0 0}.exec-vbar small{font-size:10px;height:26px;overflow:hidden;text-align:center;line-height:1.2;overflow-wrap:anywhere;color:#45627e}
.exec-donut-layout{display:flex;align-items:center;gap:20px;height:100%}.exec-donut{height:176px;width:176px;flex:0 0 176px;border-radius:50%;display:grid;place-items:center}.exec-donut>div{background:#fff;width:105px;height:105px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 0 2px #ffffffaa}.exec-donut strong{font-size:22px;color:#142f51}.exec-donut small{font-size:10px;color:#5e7b94}.exec-donut-legend{flex:1;min-width:0}.exec-donut-legend>div{display:flex;gap:7px;align-items:center;margin:7px 0;font-size:10px}.exec-donut-legend span{width:9px;height:9px;border-radius:50%;flex-shrink:0}.exec-donut-legend label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.exec-donut-legend b{font-size:11px}
.exec-trend-legend{display:flex;gap:17px;font-size:11px;justify-content:flex-end;color:#267abb}.exec-trend-legend span:last-child{color:#1ea88f}.exec-trend svg{display:block;width:100%;height:160px;margin-top:7px;overflow:visible}.exec-months{display:flex;justify-content:space-between;font-size:9px;color:#617b97}.exec-horizontal{display:flex;flex-direction:column;justify-content:center;gap:13px;height:100%}.exec-hbar{display:grid;grid-template-columns:126px minmax(0,1fr) 30px;gap:9px;align-items:center;font-size:11px}.exec-hbar label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exec-hbar>div{height:18px;background:#edf3f8}.exec-hbar>div span{display:block;height:100%;border-radius:2px}.exec-follow-item{display:flex;gap:9px;align-items:center;border-bottom:1px solid #eef3f8;padding:10px 0;font-size:10px}.exec-follow-item i{background:#ee6572;width:8px;height:8px;border-radius:50%;flex-shrink:0}.exec-follow-item span{flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.exec-follow-item b{color:#a56e28;font-size:10px;flex-shrink:0}.exec-empty{font-size:12px;color:#7891a9;text-align:center;padding:13px}
.exec-recent{grid-column:1 / span 2}.exec-recent-wrap{max-height:245px;overflow:auto}.exec-recent-table{font-size:11px;width:100%;border-collapse:collapse}.exec-recent-table th{background:linear-gradient(#146ba7,#0c4b83);color:white;font-size:10px;text-transform:none;letter-spacing:0;padding:9px 10px}.exec-recent-table td{font-size:11px;padding:9px 10px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exec-recent-table tbody tr:nth-child(even){background:#f4f8fd}.exec-recent-table tbody tr{cursor:pointer}.exec-recent-table tbody tr:hover{background:#e1f1ff}.exec-status-pill{display:inline-block;padding:4px 9px;background:#dbeeff;color:#07599b;border-radius:20px;font-size:10px}
@media(max-width:1500px){.exec-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.exec-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.exec-side-stack{grid-column:1 / -1;grid-row:3;grid-template-columns:1fr 1fr;grid-template-rows:auto}.exec-follow{grid-column:2;grid-row:4}.exec-recent{grid-column:1;grid-row:4}.exec-donut{width:150px;height:150px;flex-basis:150px}}
@media(max-width:850px){.exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-grid{grid-template-columns:1fr}.exec-side-stack,.exec-follow,.exec-recent{grid-column:1;grid-row:auto}.exec-side-stack{grid-template-columns:1fr}.exec-card-body{height:auto;min-height:220px}.exec-kpi{min-height:96px}.exec-donut-layout{justify-content:center}.exec-recent-wrap{max-height:280px}.exec-recent-table{min-width:690px}}
@media(max-width:490px){.exec-kpis{gap:7px}.exec-kpi{padding:10px 6px;gap:7px}.exec-kpi-icon{width:36px;height:36px;min-width:36px;font-size:19px}.exec-kpi-info strong{font-size:21px}.exec-kpi-info>div{font-size:10px}.exec-kpi-info small{font-size:9px}.exec-donut-layout{gap:9px}.exec-donut{width:125px;height:125px;flex-basis:125px}.exec-donut>div{width:78px;height:78px}.exec-hbar{grid-template-columns:96px minmax(0,1fr) 26px}}

/* Edition-020: Columns beside Add New; no separate toolbar */
#list .toolbar{overflow:visible;align-items:center;gap:9px;}
#list .toolbar .column-menu{flex:0 0 auto;position:relative;z-index:20;}
#list .toolbar .column-menu summary{min-height:41px;display:flex;align-items:center;justify-content:center;padding:10px 13px;background:linear-gradient(105deg,#0a5b9c,#087fbb);box-shadow:0 4px 12px #0b528325;white-space:nowrap;}
#list .toolbar .column-menu-content{left:auto;right:0;z-index:150;}
#list .toolbar #listAdd{margin-left:auto;}
@media(max-width:700px){#list .toolbar .column-menu{flex:1 1 auto;}#list .toolbar .column-menu summary{width:100%;}#list .toolbar .column-menu-content{right:0;left:auto;max-width:calc(100vw - 32px);}}

/* Edition-021: slightly smaller PDF icons in correspondence tables */
.register-table .pdf-icon {width:34px!important;height:34px!important;min-height:34px!important;padding:4px!important;border-radius:8px!important;}
.register-table .pdf-icon svg {width:21px!important;height:25px!important;}
@media(max-width:700px){.register-table .pdf-icon{width:36px!important;height:36px!important;min-height:36px!important}.register-table .pdf-icon svg{width:22px!important;height:26px!important}}


/* DMS Universal Edition-022: compact Executive Overview upper row */
@media(min-width:1501px){
  .exec-view .exec-grid{grid-template-columns:minmax(0,1.22fr) minmax(0,1.05fr) minmax(240px,.70fr);align-items:start;gap:12px}
  .exec-view .exec-grid>.exec-status,.exec-view .exec-grid>.exec-projects,.exec-view .exec-grid>.exec-side-stack{height:248px;min-height:0}
  .exec-view .exec-status .exec-card-body,.exec-view .exec-projects .exec-card-body{height:197px;padding:11px 15px}
  .exec-view .exec-side-stack{display:block;grid-template-rows:none;min-height:0}
  .exec-view .exec-side-stack>.exec-card{height:100%}
  .exec-view .exec-donut{width:144px;height:144px;flex-basis:144px}
  .exec-view .exec-donut>div{width:88px;height:88px}
  .exec-view .exec-donut strong{font-size:19px}
  .exec-view .exec-vertical-chart{gap:7px}
  .exec-view .exec-vbar small{height:24px}
}
@media(min-width:851px) and (max-width:1500px){
  .exec-view .exec-grid{align-items:start}
  .exec-view .exec-status .exec-card-body,.exec-view .exec-projects .exec-card-body{height:190px}
  .exec-view .exec-side-stack{grid-template-columns:1fr;grid-template-rows:auto;min-height:0;grid-column:1 / -1;grid-row:auto}
  .exec-view .exec-side-stack>.exec-card{min-height:0}
  .exec-view .exec-donut{width:145px;height:145px;flex-basis:145px}
}
@media(max-width:850px){.exec-view .exec-side-stack{grid-template-columns:1fr;min-height:0;grid-row:auto}}

/* Edition-023: Reference Tables has a clean, uncluttered header. */
body.reference-screen main>header .topactions{display:none!important;}
body.reference-screen main>header{justify-content:flex-start;}

/* Universal 026: compact fixed app header; storage controls are in Data Management */
main>header{position:sticky;top:0;z-index:60;background:linear-gradient(115deg,#f0f7ffed,#e2f1ffed);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid #dce8f3;border-radius:13px;padding:10px 16px;margin-bottom:12px;min-height:70px;box-shadow:0 5px 15px #163e6810}
main>header h1{font-size:23px;line-height:1.12;margin:3px 0}
main>header .eyebrow{font-size:9px}
main>header .subtitle{font-size:11px}
main>header .topactions{margin-left:auto;gap:10px}
main>header .connection{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:9px 12px;font-size:11px;font-weight:750;white-space:nowrap;margin:0}
main>header .connection-online{color:#087854;background:#e0f7eb;border:1px solid #b7e9d0}
main>header .connection-offline{color:#956521;background:#fff2d9;border:1px solid #f1d5a2}
.data-manage-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:17px 22px;background:#f4f9ff;border-bottom:1px solid #e0ebf5}
.data-manage-actions .btn{font-size:13px}
@media(max-width:700px){main>header{top:64px;flex-direction:column;align-items:flex-start;gap:7px;padding:9px 12px;margin-bottom:10px}main>header h1{font-size:20px}main>header .topactions{width:100%;justify-content:flex-end;margin:0}main>header .connection{font-size:10px}.data-manage-actions{padding:12px;gap:8px}.data-manage-actions .btn{flex:1;min-width:170px}}


/* DMS Universal Edition-027: fixed header + executive layout refinement */
.edition-mark{content:"DMS Universal Edition-027 · JSON"}

/* truly fixed app header on desktop/tablet */
@media(min-width:701px){
  main{padding-top:108px!important}
  main>header{
    position:fixed!important;
    top:8px;
    left:284px;
    right:26px;
    z-index:120;
    margin-bottom:0!important;
  }
  body.reference-screen main>header{left:284px;right:26px;}
}
@media(min-width:701px) and (max-width:1200px){
  main{padding-top:102px!important}
  main>header{left:238px;right:18px;top:8px}
}
@media(max-width:700px){
  main{padding-top:78px!important}
  main>header{position:sticky!important;top:64px;z-index:80}
}

/* Executive Overview new block layout */
@media(min-width:1201px){
  .exec-view .exec-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-template-areas:
      "status projects issues follow"
      "trend trend trend actions"
      "recent recent recent recent";
    gap:12px;
    align-items:start;
  }
  .exec-view .exec-status{grid-area:status}
  .exec-view .exec-projects{grid-area:projects}
  .exec-view .exec-side-stack{grid-area:issues;display:block!important;min-height:0!important}
  .exec-view .exec-follow{grid-area:follow}
  .exec-view .exec-trend{grid-area:trend}
  .exec-view .exec-actions{grid-area:actions}
  .exec-view .exec-recent{grid-area:recent}

  .exec-view .exec-status,
  .exec-view .exec-projects,
  .exec-view .exec-side-stack>.exec-card,
  .exec-view .exec-follow{min-height:255px;height:255px}

  .exec-view .exec-status .exec-card-body,
  .exec-view .exec-projects .exec-card-body{height:204px;padding:12px 14px}

  .exec-view .exec-follow .exec-side-body,
  .exec-view .exec-side-stack .exec-side-body{max-height:204px;overflow:auto;padding:8px 13px}

  .exec-view .exec-trend .exec-card-body{height:248px}
  .exec-view .exec-actions .exec-card-body{height:248px}
  .exec-view .exec-recent .exec-recent-wrap{max-height:260px}

  .exec-view .exec-donut{width:132px;height:132px;flex-basis:132px}
  .exec-view .exec-donut>div{width:82px;height:82px}
  .exec-view .exec-donut strong{font-size:18px}
  .exec-view .exec-donut small{font-size:9px}
  .exec-view .exec-donut-layout{gap:12px}
  .exec-view .exec-donut-legend>div{margin:5px 0}

  .exec-view .exec-vertical-chart{gap:7px;padding-top:2px}
  .exec-view .exec-vbar strong{font-size:10px}
  .exec-view .exec-vbar small{font-size:9px;height:22px}
}

@media(min-width:851px) and (max-width:1200px){
  .exec-view .exec-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-areas:
      "status projects"
      "issues follow"
      "trend trend"
      "actions actions"
      "recent recent";
  }
  .exec-view .exec-status{grid-area:status}
  .exec-view .exec-projects{grid-area:projects}
  .exec-view .exec-side-stack{grid-area:issues;display:block!important;min-height:0!important}
  .exec-view .exec-follow{grid-area:follow}
  .exec-view .exec-trend{grid-area:trend}
  .exec-view .exec-actions{grid-area:actions}
  .exec-view .exec-recent{grid-area:recent}
  .exec-view .exec-status,.exec-view .exec-projects,.exec-view .exec-side-stack>.exec-card,.exec-view .exec-follow{min-height:245px}
  .exec-view .exec-status .exec-card-body,.exec-view .exec-projects .exec-card-body{height:192px}
  .exec-view .exec-follow .exec-side-body,.exec-view .exec-side-stack .exec-side-body{max-height:190px;overflow:auto}
}

/* Edition-028 – Executive polish & compact vertical rhythm */
.exec-view{--exec-edge:#d9e7f5;--exec-ink:#173a5a}
.exec-view .exec-kpis{gap:10px;margin-bottom:10px}
.exec-view .exec-kpi{min-height:94px;padding:11px 12px;border-radius:13px;border:1px solid #d8e7f4;box-shadow:0 5px 16px rgba(21,66,108,.085),inset 0 1px rgba(255,255,255,.96);transition:transform .18s ease,box-shadow .18s ease}
.exec-view .exec-kpi:hover{transform:translateY(-2px);box-shadow:0 9px 23px rgba(19,76,123,.14)}
.exec-view .exec-kpi-icon{width:43px;height:43px;min-width:43px;font-size:22px;box-shadow:inset 0 0 0 1px #fff8}
.exec-view .exec-kpi-info strong{font-size:25px;letter-spacing:-.5px}
.exec-view .exec-grid{gap:10px!important;row-gap:10px!important;align-items:stretch}
.exec-view .exec-card{border:1px solid var(--exec-edge);border-radius:13px;background:linear-gradient(170deg,#fff,#fcfdff);box-shadow:0 6px 17px rgba(20,65,111,.09);transition:box-shadow .18s ease,border-color .18s ease}
.exec-view .exec-card:hover{border-color:#bfd9ed;box-shadow:0 9px 23px rgba(20,65,111,.13)}
.exec-view .exec-card-head{height:43px;min-height:43px;padding:0 13px;background:linear-gradient(100deg,#f0f8ff,#fff 76%);border-bottom:1px solid #dae8f6;position:relative}
.exec-view .exec-card-head:before{content:"";position:absolute;top:9px;bottom:9px;left:0;width:3px;background:linear-gradient(#02b7c3,#0872be);border-radius:0 4px 4px 0}
.exec-view .exec-card-head b{font-size:12px;color:#15416b;letter-spacing:.02px}
.exec-view .exec-card-head>span{font-size:10px}
.exec-view .exec-card-head select{min-height:29px;padding:4px 8px;font-size:10px}
.exec-view .exec-side-item{padding:6px 1px;gap:7px}
.exec-view .exec-follow-item{padding:8px 0;gap:7px}
.exec-view .exec-link{color:#0878bc}
.exec-view .exec-recent-table th{background:linear-gradient(180deg,#0d68a8,#084b82);color:white}
.exec-view .exec-recent-table tbody tr:hover{background:#eaf5ff}
@media(min-width:1201px){
 .exec-view .exec-status,.exec-view .exec-projects,.exec-view .exec-side-stack>.exec-card,.exec-view .exec-follow{height:236px!important;min-height:236px!important}
 .exec-view .exec-status .exec-card-body,.exec-view .exec-projects .exec-card-body{height:193px!important;padding:9px 12px!important}
 .exec-view .exec-side-stack .exec-side-body,.exec-view .exec-follow .exec-side-body{max-height:193px!important;overflow:auto}
 .exec-view .exec-trend .exec-card-body,.exec-view .exec-actions .exec-card-body{height:228px!important;padding:12px 14px}
 .exec-view .exec-trend svg{height:154px}
 .exec-view .exec-donut{width:126px;height:126px;flex-basis:126px}
 .exec-view .exec-donut>div{width:78px;height:78px}
 .exec-view .exec-donut-layout{gap:9px}
}
@media(min-width:851px) and (max-width:1200px){
 .exec-view .exec-status,.exec-view .exec-projects,.exec-view .exec-side-stack>.exec-card,.exec-view .exec-follow{min-height:226px}
 .exec-view .exec-status .exec-card-body,.exec-view .exec-projects .exec-card-body{height:183px}
}
@media(max-width:850px){.exec-view .exec-kpis{gap:8px}.exec-view .exec-grid{gap:9px!important}.exec-view .exec-card-head{min-height:44px}}
@media(prefers-reduced-motion:reduce){.exec-view .exec-card,.exec-view .exec-kpi{transition:none}.exec-view .exec-kpi:hover{transform:none}}

/* DMS Universal Edition-029 — sticky executive KPI rail, equal gutters */
.exec-view{--exec-gap:10px}
.exec-view .exec-kpis{
  display:grid;
  column-gap:var(--exec-gap)!important;
  row-gap:var(--exec-gap)!important;
  margin-bottom:var(--exec-gap)!important;
}
.exec-view .exec-grid{
  column-gap:var(--exec-gap)!important;
  row-gap:var(--exec-gap)!important;
}
.exec-view .exec-kpi{margin:0;min-width:0}
.exec-view .exec-card{margin:0;min-width:0}
@media(min-width:851px){
  body:has(.exec-view:not(.hidden)) .exec-kpis{
    position:sticky;
    top:calc(var(--dms-header-bottom, 105px) + 10px);
    z-index:95;
    padding:0;
    background:linear-gradient(145deg,#edf6ff 0%,#f3f8fd 100%);
    box-shadow:0 5px 12px -10px rgba(12,59,100,.4);
    isolation:isolate;
  }
  body:has(.exec-view:not(.hidden)) main>header{z-index:120}
}
/* On mobile, preserve reading space and keep the KPI cards in the document flow. */
@media(max-width:850px){
 .exec-view .exec-kpis{position:static!important}
}


/* Edition-030: shared register table on Executive Overview */
.exec-view .exec-recent-wrap{overflow:auto;max-height:322px!important;scrollbar-color:#9bbad5 #e9f1fa}
.exec-view .exec-recent-wrap>.register-wrap{max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important}
.exec-view .exec-recent .register-table{width:max-content!important;table-layout:fixed!important}
.exec-view .exec-recent .register-table thead th{position:sticky!important;top:0!important;z-index:3}
.exec-view .exec-recent .register-table td{white-space:normal!important;overflow-wrap:anywhere!important}
.exec-view .exec-recent .register-table .pdf-icon{vertical-align:middle}
@media(max-width:700px){.exec-view .exec-recent-wrap{max-height:305px!important}}


/* DMS Universal Edition-031: mobile rhythm + upgraded incoming/outgoing chart */
.exec-view{display:flex;flex-direction:column;gap:10px}
.exec-view .exec-kpis{margin-bottom:0!important}
.exec-view .exec-trend .exec-card-body{padding:10px 14px 12px!important}
.exec-view .exec-trend-legend{margin-bottom:2px;align-items:center}
.exec-view .exec-trend svg{height:168px!important;margin-top:2px}
.exec-view .exec-bar-value{font:700 3.3px Inter,Segoe UI,Arial,sans-serif;fill:#5a7591}
.exec-view .exec-months-2line{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;margin-top:3px}
.exec-view .exec-months-2line span{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;line-height:1.05;min-width:0}
.exec-view .exec-months-2line b{font-size:9px;color:#456780;font-weight:700}
.exec-view .exec-months-2line small{font-size:8px;color:#7b92aa}
.exec-view .exec-trend .exec-card-head b{letter-spacing:.01em}
.exec-view .exec-trend .exec-card{background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)}

@media(max-width:850px){
  body:has(.exec-view:not(.hidden)) main{padding:14px 12px 28px!important}
  body:has(.exec-view:not(.hidden)) main>header{margin-bottom:0!important}
  .exec-view{gap:10px!important}
  .exec-view .exec-kpis{gap:10px!important;margin:0!important}
  .exec-view .exec-grid{gap:10px!important;margin:0!important}
  .exec-view .exec-card{margin:0!important}
  .exec-view .exec-card-head{min-height:42px!important;height:42px!important}
  .exec-view .exec-card-body{min-height:auto!important}
  .exec-view .exec-status .exec-card-body,
  .exec-view .exec-projects .exec-card-body,
  .exec-view .exec-follow .exec-side-body,
  .exec-view .exec-side-stack .exec-side-body,
  .exec-view .exec-actions .exec-card-body,
  .exec-view .exec-trend .exec-card-body{padding:10px 12px!important}
  .exec-view .exec-kpi{min-height:92px!important}
  .exec-view .exec-trend svg{height:174px!important}
  .exec-view .exec-months-2line{gap:1px}
  .exec-view .exec-months-2line b{font-size:8px}
  .exec-view .exec-months-2line small{font-size:7px}
}

/* Edition-032: interactive chart filters and accessible month/bar labels */
.exec-filter-target{cursor:pointer;transition:filter .15s ease,opacity .15s ease;}
.exec-filter-target:hover{filter:brightness(.94);}
.exec-filter-active{outline:2px solid #0574ba;outline-offset:-2px;border-radius:5px;background:#e7f4ff;}
.exec-bar-group:focus-visible,.exec-filter-target:focus-visible{outline:2px solid #087fc1;outline-offset:2px;}
.exec-trend .exec-months-2line b{font-size:12px!important;line-height:1.15;}
.exec-trend .exec-months-2line small{font-size:10px!important;color:#647f98;}
.exec-trend .exec-trend-legend{font-size:12px;font-weight:650;}
.exec-trend .exec-bar-value{font-size:4px!important;font-weight:800;fill:#1e4364;}
.exec-trend .exec-bar-group:hover rect{filter:brightness(.88)}
.exec-recent-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
#execActiveFilter{padding:5px 9px;border-radius:18px;background:#e4f3ff;color:#135783;font-size:11px;font-weight:700;}
#execClearFilter{padding:6px 10px;border-radius:8px;border:1px solid #b9d7ed;color:#105d96;background:#f0f8ff;font-size:11px;font-weight:750;cursor:pointer;}
#execClearFilter:hover{background:#d9efff;}
@media(max-width:700px){.exec-trend .exec-months-2line b{font-size:10px!important}.exec-trend .exec-months-2line small{font-size:8px!important}.exec-recent-actions{gap:5px}}

/* Edition-033: legible monthly columns, date presentation, chart display toggle */
.dms-charts-controls{display:flex;justify-content:flex-end;margin:0 0 10px;gap:8px}
.dms-charts-controls .btn{font-size:12px;background:#e8f4ff;border:1px solid #bbd6ea;color:#135b8e;padding:8px 14px}
.dms-charts-controls .btn:hover{background:#d8edfd}
.exec-view.dms-charts-hidden .exec-grid>:not(.exec-recent){display:none!important}
.exec-view.dms-charts-hidden .exec-grid{display:block!important}
.exec-view.dms-charts-hidden .exec-recent{width:100%;grid-column:1/-1}
.dms-month-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;align-items:end;height:205px;padding:20px 5px 0;background:repeating-linear-gradient(to top,transparent 0px,transparent 43px,#ebf1f7 44px,#ebf1f7 45px);border-bottom:1px solid #bcd3e5}
.dms-month-cell{height:100%;display:flex;flex-direction:column;align-items:stretch;min-width:0;gap:7px}
.dms-month-bars{height:calc(100% - 30px);display:flex;align-items:end;justify-content:center;gap:4px;min-width:0}
.dms-month-bar{background:var(--bar-color);border:0;position:relative;flex:0 1 20px;max-width:24px;min-width:5px;border-radius:4px 4px 0 0;padding:0;cursor:pointer;transition:filter .15s}
.dms-month-bar:hover,.dms-month-bar:focus-visible{filter:brightness(.83);outline:2px solid #105c94;outline-offset:2px}
.dms-bar-count{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);font:800 12px/1.2 Inter,'Segoe UI',Arial,sans-serif;color:#153b60;background:#ffffffec;border-radius:4px;padding:1px 3px;min-width:13px;text-align:center;box-shadow:0 1px 3px #143c6616;white-space:nowrap;pointer-events:none}
.dms-month-caption{height:24px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;line-height:1.1}
.dms-month-caption strong{font-size:11px;color:#244d72}.dms-month-caption small{font-size:9px;color:#7b8fa2}
.exec-view .exec-trend .exec-card-body{height:260px!important;min-height:260px!important;padding:8px 14px!important}
.exec-view .exec-trend-legend{min-height:20px}
@media(max-width:850px){.dms-month-chart{gap:2px;padding-left:0;padding-right:0;height:210px}.dms-month-bars{gap:2px}.dms-bar-count{font-size:10px}.dms-month-caption strong{font-size:9px}.dms-month-caption small{font-size:8px}}


/* DMS Universal Edition-034 — charts control above KPI / expanded register */
.exec-view .dms-charts-controls{order:0;min-height:36px;margin:0!important;justify-content:flex-end;align-items:center}
.exec-view .dms-charts-controls .btn{padding:8px 14px;min-height:33px;font-weight:750}
.exec-view .exec-kpis{order:1;margin:0!important}
.exec-view .exec-grid{order:2;margin:0!important}
.exec-view.dms-charts-hidden .exec-recent{display:flex;flex-direction:column;min-height:0;height:calc(100dvh - var(--dms-header-bottom,105px) - 160px);height:max(430px,calc(100dvh - var(--dms-header-bottom,105px) - 160px))}
.exec-view.dms-charts-hidden .exec-recent .exec-recent-wrap{flex:1;min-height:0;max-height:none!important;overflow:auto}
.exec-view.dms-charts-hidden .exec-recent .exec-recent-wrap>.register-wrap{max-height:none!important;overflow:visible!important}
@media(max-width:850px){
 .exec-view .dms-charts-controls{min-height:36px}
 .exec-view.dms-charts-hidden .exec-recent{height:max(360px,calc(100dvh - 300px));min-height:360px}
}

/* Edition-035: chart toggle alongside connection badge in the fixed header */
main>header .topactions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:nowrap}
main>header #execToggleCharts{background:#e8f4ff;border:1px solid #b7d8ee;color:#155c90;font-size:11px;font-weight:750;min-height:35px;padding:8px 13px;border-radius:9px;white-space:nowrap}
main>header #execToggleCharts:hover{background:#d9edfc}
main>header #execToggleCharts.hidden{display:none!important}
@media(max-width:700px){main>header .topactions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-top:4px}main>header #execToggleCharts{min-height:31px;padding:6px 9px;font-size:10px}main>header .connection{grid-column:auto!important}}

/* DMS Universal Edition-036 — unified executive + correspondence register */
.exec-view .exec-register-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:13px 15px;background:linear-gradient(115deg,#f8fcff,#edf6fe);border-bottom:1px solid #d8e8f4}
.exec-register-toolbar #search{flex:2 1 260px;min-width:210px}
.exec-register-toolbar #filterProject{flex:1 1 160px;min-width:130px}
.exec-register-toolbar #filterStatus{flex:0 1 130px;min-width:110px}
.exec-register-toolbar #filterIssue{flex:1 1 160px;min-width:140px}
.exec-register-toolbar>input,.exec-register-toolbar>select{height:39px;min-height:39px;background:#fff;border:1px solid #c9ddeb;color:#194567;border-radius:9px;font-size:12px}
.exec-register-toolbar>.btn{min-height:39px;padding:9px 13px}
.exec-register-toolbar .column-menu{position:relative;z-index:11;flex:0 0 auto}
.exec-register-toolbar .column-menu summary{background:linear-gradient(110deg,#0b5c9c,#137ab2);border-radius:9px;color:#fff;font-size:12px;font-weight:750;min-height:39px;display:flex;align-items:center;padding:9px 13px;white-space:nowrap}
.exec-register-toolbar .column-menu-content{left:auto;right:0;z-index:40}
.exec-register-toolbar .export-pdf{background:linear-gradient(110deg,#134977,#0c6897);color:white;font-size:12px;box-shadow:0 4px 12px #0d608c22}
.exec-register-toolbar .export-pdf:hover{background:linear-gradient(110deg,#0c3a62,#0a5384)}
.exec-view .exec-recent-wrap{max-height:min(57vh,570px)!important;min-height:240px;overflow:auto}
.exec-view.dms-charts-hidden .exec-recent-wrap{max-height:none!important;height:calc(100vh - var(--dms-header-bottom,108px) - 200px);min-height:290px;overflow:auto}
.exec-register-footer{padding:9px 15px;color:#708aa1;background:#f8fbfe;font-size:11px;border-top:1px solid #e3eef6}
.exec-recent-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#execResultCount{color:#477598;background:#eaf5fd;border:1px solid #cde4f4;border-radius:12px;padding:5px 10px;font-size:11px;font-weight:750}
.exec-view .exec-recent .exec-card-head b{font-size:13px}
.exec-view .exec-recent .register-table{font-size:12px!important}
@media(max-width:850px){.exec-register-toolbar #search,.exec-register-toolbar #filterIssue{flex:1 1 100%;min-width:0}.exec-register-toolbar #filterProject,.exec-register-toolbar #filterStatus{flex:1 1 42%}.exec-register-toolbar>.btn{flex:1 1 auto}.exec-register-toolbar .column-menu{flex:1 1 auto}.exec-register-toolbar .column-menu summary{justify-content:center}.exec-view.dms-charts-hidden .exec-recent-wrap{height:55vh;min-height:280px}}

/* Universal 037 - dashboard and table PDF sidebar action */
.sidebar .nav-dashboard-export{color:#d9ecff;border:1px solid #2b668f;background:linear-gradient(100deg,#114b79,#0d739a);margin-top:3px}
.sidebar .nav-dashboard-export:hover,.sidebar .nav-dashboard-export:focus-visible{color:#fff;background:linear-gradient(100deg,#095a99,#009ca9);box-shadow:0 3px 13px #04233b45}


/* DMS Universal Edition-039: action require chart replacing donut */
.exec-action-chart .exec-vbar small{white-space:normal;line-height:1.1;min-height:30px;display:flex;align-items:flex-start;justify-content:center;text-align:center}
.exec-projects .exec-card-body{display:flex;align-items:center;justify-content:center}
.exec-projects .exec-vertical-chart{height:100%;width:100%}
