
/* Registry MVP: lightweight responsive interface; no external assets. */
:root{color-scheme:light;font-family:"Segoe UI Variable","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-size:14px;line-height:1.45;color:#263444;background:#f7f9fc;--bg:#f7f9fc;--paper:#fff;--line:#e4eaf1;--line2:#edf1f6;--muted:#778494;--blue:#2563eb;--blue-dark:#1d4ed8;--blue-quiet:#eef4ff;--green:#15803d;--green-quiet:#edf9f0;--shadow:0 16px 48px rgba(23,41,70,.12);font-synthesis:none}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.48}
[hidden]{display:none!important}
a{color:var(--blue)}
.small{font-size:12px}.secondary,.muted{color:var(--muted)}
strong{font-weight:650}
.header{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;padding:0 30px;font-size:16px;letter-spacing:-.2px}
.mark{height:35px;width:35px;border-radius:10px;background:var(--blue);color:#fff;display:grid;place-items:center}
.mark svg{width:22px;height:22px}
.layout{display:flex;min-height:calc(100vh - 66px)}
.nav{width:228px;min-width:228px;padding:25px 12px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px}
.nav-btn{display:flex;align-items:center;gap:11px;background:transparent;color:#536274;border:0;border-radius:10px;width:100%;padding:12px 13px;text-align:left;font-size:13.5px;font-weight:580;white-space:nowrap;transition:background .16s,color .16s}
.nav-btn svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.nav-btn:hover{background:#f3f6fb;color:#243a58}
.nav-btn.active{background:#ecf3ff;color:var(--blue-dark);font-weight:700}
main{flex:1;max-width:1740px;min-width:0;padding:32px 31px 54px;margin:0 auto}
.page{display:none;animation:appear .14s ease-out}.page.active{display:block}
@keyframes appear{from{opacity:.88}to{opacity:1}}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:23px}
.page-head h1{font-size:25px;letter-spacing:-.6px;line-height:1.16;margin:0 0 7px;font-weight:740}
.page-head p{margin:0;color:#788697;font-size:13px}
.panel{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:17px;padding:21px 23px;box-shadow:0 1px 2px rgba(25,43,74,.015)}
.panel h2{font-size:16px;letter-spacing:-.2px;margin:0 0 16px;color:#243447;font-weight:700}
.panel h2+p{font-size:13px;line-height:1.55;margin:-3px 0 18px;max-width:780px}
button.primary,button.light,button.quiet-btn,.row-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border-radius:8px;padding:9px 15px;font-weight:610;font-size:13px;white-space:nowrap;border:1px solid #d8e1ed;background:#fff;color:#3a4b5f;transition:background .15s,border-color .15s,transform .12s}
button.primary{background:var(--blue);border-color:var(--blue);color:#fff}
button.primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
button.light:hover,.row-action:hover{background:#f5f8fc;border-color:#b7c6d7}
button.quiet-btn{border-color:transparent;color:#5c7084;background:transparent;padding:9px 10px}
button.quiet-btn:not(:disabled):hover{background:#f1f5fa;color:#244a71}
button:active:not(:disabled){transform:translateY(1px)}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{border:1px solid #d8e1eb;background:#fff;color:#26384b;border-radius:8px;min-height:40px;padding:9px 12px;width:100%;outline:none;transition:border-color .15s,box-shadow .15s}
input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,select:hover,textarea:hover{border-color:#b8c9db}
input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,select:focus,textarea:focus{border-color:#6793d5;box-shadow:0 0 0 3px #2563eb17}
input::placeholder,textarea::placeholder{color:#9aa7b5}
select:not([multiple]){-webkit-appearance:none;appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235d7188' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:38px}
select option{font-size:13px;color:#263444}
textarea{min-height:65px;resize:vertical;line-height:1.55}
input[type=checkbox]{width:17px;height:17px;accent-color:var(--blue);cursor:pointer;flex:none}
input[type=radio]{width:16px;height:16px;accent-color:var(--blue);cursor:pointer;flex:none}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #739ce4;outline-offset:2px}
/* Search and filters */
.toolbar,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.toolbar{padding-bottom:17px;border-bottom:1px solid var(--line2);margin-bottom:0}
.toolbar .search-field{min-width:250px;flex:1;position:relative}
.search-field::before{content:"";width:17px;height:17px;position:absolute;left:13px;top:12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23899bad' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
.search-field input{padding-left:39px!important}
.toolbar select{flex:0 1 170px;min-width:130px}
/* Tabular records */
.scroll-x{overflow-x:auto;scrollbar-color:#bdcbd9 #f7f9fc;scrollbar-width:thin}
.data-table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;font-size:12.5px}
.data-table th{position:sticky;top:0;z-index:1;background:#fbfcfe;border-bottom:1px solid #e2e9f1;color:#758393;font-size:11.5px;font-weight:650;text-align:left;padding:12px 10px;letter-spacing:.05px}
.data-table td{border-bottom:1px solid var(--line2);padding:11px 10px;vertical-align:middle;color:#354658}
.data-table tbody tr:last-child td{border-bottom:0}
.data-table tbody tr:hover{background:#f8faff}
.data-table th:first-child,.data-table td:first-child{padding-left:11px}
.data-table td:nth-child(2){font-weight:650}
.text-link{color:#1c56b2;border:0;background:transparent;padding:0;font-weight:680;text-align:left}
.text-link:hover{text-decoration:underline}
.hint-cell{color:#7b8997;font-size:12px;max-width:205px;overflow:hidden;text-overflow:ellipsis}
.number-line{max-width:270px;min-width:180px;white-space:normal;overflow-wrap:anywhere}
.tag-small{display:inline-block;margin:2px 4px 2px 0;padding:4px 8px;border-radius:6px;border:1px solid;font-size:11.5px;line-height:1.25;font-weight:600}
.tag-cert{background:#eff5ff;border-color:#c8d9f8;color:#235daa}
.tag-decl{background:#edf9f0;border-color:#bde8ca;color:#217b40}
.date-cell{min-width:125px;white-space:normal;color:#5b6b7b;font-size:11.5px;font-variant-numeric:tabular-nums}
.period{display:flex;flex-direction:column;gap:1px;margin:1px 0 5px;white-space:nowrap}
.period span:first-child{color:#6e7e8e}.period span:last-child{color:#334b61}
.row-action{min-height:29px;font-size:11.5px;padding:5px 9px;background:transparent}
.foot-row{padding-top:15px;display:flex;justify-content:space-between;gap:15px;font-size:12px;color:#758394}
.empty{text-align:center;color:#8190a0;padding:36px 12px!important;white-space:normal}
/* CSV upload */
/* Compact, accessible disclosure for CSV template fields */
.field-details{margin-top:16px;border:1px solid #e4eaf2;border-radius:9px;background:#fff;overflow:hidden}
.field-details summary{min-height:42px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;color:#48627c;font-weight:620;font-size:12.5px;transition:background .15s,color .15s}
.field-details summary:hover{background:#f7faff;color:#245a9d}
.field-details summary::-webkit-details-marker{display:none}
.field-details summary::after{content:"";display:block;width:17px;height:17px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236c8198' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .18s}
.field-details[open] summary::after{transform:rotate(180deg)}
.field-details[open] summary{background:#fafcff;color:#295ca7}
.heading-preview{display:flex;gap:7px;flex-wrap:wrap;margin:0;padding:0 13px 13px}
.heading-preview span{font-size:11px;border:1px solid #e3ebf3;background:#f8fbff;color:#52677e;border-radius:6px;padding:5px 8px}
.drop-zone{min-height:188px;border:1.5px dashed #c2d1e3;border-radius:12px;background:#fbfcff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:24px}
.drop-zone.drag{background:#eef5ff;border-color:#749dde}
.drop-zone strong{font-weight:650;font-size:14px}
.drop-zone p{margin:0 0 5px;font-size:12px}
.upload-visual{background:#eef4ff;border-radius:12px;width:48px;height:48px;display:grid;place-items:center;color:#3570cd;margin-bottom:2px}
.upload-visual svg{height:23px;width:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.inline-opts{display:flex;align-items:center;gap:11px;margin-top:14px;font-size:12px;color:#65798c}
.inline-opts select{width:170px;font-size:12px;min-height:35px}
.preview-wrap{margin-top:20px;padding-top:15px;border-top:1px solid var(--line2)}
.preview-wrap h3{font-size:14px;margin:0 0 6px}
.preview-grid-wrap{border:1px solid var(--line);border-radius:9px;max-height:260px;overflow:auto;margin:12px 0}
.preview-grid{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}
.preview-grid th,.preview-grid td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line2)}
.preview-grid th{background:#f8fbfe;color:#667a91;font-size:11.5px}
.preview-wrap>button{margin-right:8px}
/* Sites: each site compact, templates collapsible */
.add-site{display:flex;gap:9px;max-width:740px;margin-bottom:17px}
.add-site input{min-width:230px;flex:1}
.site-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.site-card{min-width:0;border:1px solid #dfe7f0;border-radius:10px;padding:13px 14px;background:#fff}
.site-main{display:flex;gap:10px;align-items:center}
.site-name{flex:1;min-width:0;color:#314459;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.site-name small{display:block;color:#93a0ac;font-size:11px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-remove{font-size:12px!important;padding:4px 9px!important;min-height:30px!important;color:#9b5960!important;border-color:transparent!important}
/* Site settings: quiet disclosure row with a modern chevron */
.site-templates{margin-top:10px;border-top:1px solid var(--line2);padding-top:6px}
.template-heading{min-height:36px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:7px;cursor:pointer;list-style:none;color:#536e8c;font-size:12.5px;font-weight:620;transition:background .15s,color .15s}
.template-heading:hover{background:#f4f7fb;color:#255b9c}
.template-heading::-webkit-details-marker{display:none}
.template-heading::after{content:"";width:17px;height:17px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236c8198' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .18s}
.site-templates[open] .template-heading::after{transform:rotate(180deg)}
.site-templates[open] .template-heading{color:#245b9f;background:#f8faff}
.site-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:4px;padding:9px 6px 4px}
.site-fields label{font-size:11px}
.site-fields input{margin-top:5px;font-size:12px!important;min-height:37px!important}
/* Plain signature templates with a single (номер) placeholder. */
.template-item{display:flex;flex-direction:column;gap:5px;min-width:0}
.site-fields .template-item>label{display:block;color:#4b6077;font-size:12px;font-weight:620}
.template-item input{width:100%;margin-top:0!important}
.template-footnote{font-size:11.5px;line-height:1.55;color:#71849a;margin:8px 7px 2px}

.site-list .quiet{color:var(--muted);margin:6px 0;font-size:12px}
/* MVP export: two scopes, easy record selector, one action */
.export-scope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.scope-option{min-width:0;display:flex;gap:12px;align-items:flex-start;padding:15px 16px;background:#fff;border:1px solid #e0e7f0;border-radius:10px;cursor:pointer}
.scope-option:hover{border-color:#b7c9e2;background:#fbfdff}
.scope-option:has(input:checked){border-color:#8eafe4;background:#f8fbff}
.scope-option input{margin:3px 0 0}
.scope-option span{min-width:0;display:flex;flex-direction:column;gap:5px}
.scope-option strong{color:#2b425b;font-weight:690;font-size:13.5px}
.scope-option small{color:#73859a;font-size:12px;line-height:1.45}
.scope-note{color:#788697;font-size:12px;margin-top:14px}
.manual-select{margin-top:17px;padding-top:16px;border-top:1px solid var(--line2)}
.manual-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:12px}
.manual-toolbar input[type=search]{max-width:500px}
.manual-all{display:flex;align-items:center;gap:9px;white-space:nowrap;color:#526b86;font-size:12.5px;cursor:pointer}
.manual-list{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:9px;scrollbar-width:thin}
.manual-item{display:flex;align-items:center;gap:12px;padding:12px 14px;min-width:0;border-bottom:1px solid var(--line2);cursor:pointer}
.manual-item:last-child{border-bottom:0}
.manual-item:hover{background:#f7faff}
.manual-item>span:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.manual-item strong{font-weight:620;color:#374d61;font-size:13px}
.manual-item small{font-size:11.5px;color:#8290a1}
.manual-docs{flex:none;color:#8291a1;font-size:12px}
.manual-count{margin-top:9px;color:#687d92;font-size:12px}
.export-final{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.export-final .export-action-summary{display:flex;flex-direction:column;gap:4px;flex:1;min-width:240px}
.export-action-summary strong{font-size:14px;color:#314659}
.export-final .primary{min-width:210px}
.export-preview{width:100%;margin-top:5px;padding-top:17px;border-top:1px solid var(--line)}
.plan-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}
.plan-head strong{color:#2a455e;font-size:14px}
.plan-head span{font-size:12px;color:#8d6071}
.plan-site{padding:10px 0;border-bottom:1px solid var(--line2);display:flex;gap:12px;justify-content:space-between;color:#4a6075;font-size:12.5px}
.plan-site strong{color:#2c4055}
.plan-warning{font-size:12px;color:#778597;margin:14px 0 0;line-height:1.5}
.export-quiet-info{font-size:12px;color:#7b8a9b;max-width:780px;padding:0 3px;margin:0 0 15px}
.import-success{background:#f9fbff;border-top:1px solid var(--line);padding-top:15px}
.import-success .actions{margin-top:12px}
/* Drawer and forms */
.cover{position:fixed;inset:0;z-index:40;display:flex;justify-content:flex-end}
.shade{position:absolute;inset:0;background:#1729436e;backdrop-filter:blur(2px)}
.drawer{position:relative;background:#f7f9fc;display:flex;flex-direction:column;height:100%;width:min(690px,100%);box-shadow:var(--shadow)}
.drawer-top{padding:19px 26px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px}
.drawer-top h2{margin:0;font-size:19px;font-weight:740;letter-spacing:-.3px}
.icon-btn{border:0;background:#f2f5f8;color:#687b90;border-radius:8px;height:33px;width:33px;display:grid;place-items:center;font-size:23px;line-height:1}
.icon-btn:hover{background:#e8eff7}
.drawer-form{display:flex;flex-direction:column;gap:12px;padding:19px 23px 24px;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}
.form-section{display:flex;flex-direction:column;gap:11px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:17px 18px 19px;min-width:0}
.form-section h3{margin:0 0 2px;font-size:14px;display:flex;align-items:center;gap:9px;font-weight:730;color:#30435a}
.cert-section{border-left:3px solid #4d88df}
.decl-section{border-left:3px solid #5db47c}
.drawer-form label{display:block;font-size:12px;font-weight:550;color:#617186}
.drawer-form label input,.drawer-form label textarea,.drawer-form label select{display:block;margin-top:6px}
.drawer-form .small{margin:0}
.fields{display:grid;gap:12px}.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.fields .full{grid-column:1/-1}
.file-add{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#fafcff;border:1px dashed #d1e0f0;border-radius:8px;font-size:12px;color:#576c82}
.file-btn{cursor:pointer;display:inline-flex!important;align-items:center;justify-content:center;border-radius:7px;padding:6px 11px!important;background:#fff;border:1px solid #d7e2ee;font-size:12px!important;font-weight:650!important;color:#2c64ac!important}
.file-list{max-height:160px;display:flex;flex-direction:column;gap:6px;overflow-y:auto}
.file-entry{border:1px solid #e5edf5;border-radius:7px;padding:8px 10px;display:flex;align-items:center;gap:9px;font-size:12px}
.file-entry span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-entry button{background:transparent;border:0;padding:3px;color:#326aa3}
.file-entry .remove-file,.danger{color:#ad3b4b!important}
.file-target select{margin-top:5px}
.site-list.compact{max-height:165px;overflow-y:auto;display:flex;flex-direction:column;gap:7px}
.drawer-bottom{display:flex;gap:9px;align-items:center;border-top:1px solid var(--line);padding:15px 23px;background:#fff}
.grow{flex:1}
/* Searchable comboboxes */
.combo{position:relative;min-width:0}.combo label{margin-bottom:6px}
.combo-input{position:relative}.combo-input input{padding-right:47px!important}
.combo-toggle{position:absolute;right:5px;top:5px;height:30px;width:32px;background:#f3f6fb;border:0;border-radius:6px;display:grid;place-items:center}
.combo-toggle::before{content:"";width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235d7188' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .15s}
.combo-toggle[aria-expanded=true]::before{transform:rotate(180deg)}
.combo-options{position:absolute;top:100%;left:0;right:0;z-index:20;border:1px solid #d6e1ed;box-shadow:0 13px 36px #192a4322;border-radius:9px;padding:5px;background:#fff;max-height:230px;overflow-y:auto;margin-top:5px;scrollbar-width:thin}
.combo-options button{display:block;background:#fff;border:0;border-radius:6px;width:100%;padding:9px 10px;text-align:left;color:#364b60;font-size:12.5px}
.combo-options button:hover,.combo-options button:focus-visible{background:#eff5ff;color:#255cb0}
/* Messages */
.notice{background:#f7fafe;border:1px solid #dce9f6;border-radius:8px;color:#526c86;padding:10px;font-size:12px;margin:8px 0}
.toast{position:fixed;right:24px;bottom:22px;z-index:90;max-width:420px;background:#24445d;color:#fff;padding:12px 17px;border-radius:10px;box-shadow:var(--shadow);font-size:13px}
.toast.error{background:#a33c45}
/* Responsive */
@media(max-width:1220px){.nav{width:202px;min-width:202px}.toolbar select{flex-basis:145px}main{padding:26px 20px 45px}.site-list{grid-template-columns:1fr}}
@media(max-width:940px){.toolbar .search-field{flex-basis:100%}.site-fields{grid-template-columns:1fr}}
@media(max-width:720px){.header{height:58px;padding:0 15px;font-size:14px}.layout{display:block}.nav{width:100%;min-width:0;border-right:0;border-bottom:1px solid var(--line);padding:8px;display:flex;flex-direction:row;overflow-x:auto}.nav-btn{width:auto;flex:0 0 auto;padding:9px 11px;font-size:12px}.nav-btn svg{height:16px;width:16px}main{padding:18px 13px 36px}.page-head{align-items:flex-start;gap:14px}.page-head h1{font-size:22px}.page-head p{font-size:12px}.panel{padding:16px}.toolbar{gap:8px}.toolbar select{flex:1 1 41%;min-width:125px}.toolbar .search-field{flex-basis:100%;min-width:0}.toolbar .light{flex:1}.fields.two{grid-template-columns:1fr}.fields .full{grid-column:auto}.form-section{padding:14px}.drawer-form{padding:14px}.drawer-top,.drawer-bottom{padding:14px}.add-site{flex-direction:column}.add-site input{min-width:0}}
@media(max-width:470px){.page-head{flex-direction:column;align-items:stretch}.page-head>.primary{align-self:flex-start}.toolbar select{flex-basis:100%}.site-fields{grid-template-columns:1fr}.drawer-bottom button{padding:8px 11px}}

@media(max-width:900px){.export-scope{grid-template-columns:1fr}}
@media(max-width:540px){.manual-toolbar{align-items:stretch;flex-direction:column}.manual-toolbar input[type=search]{max-width:none}.manual-item{padding:10px}.manual-docs{display:none}.export-final{align-items:stretch;flex-direction:column}.export-final .primary{width:100%}.plan-site{align-items:flex-start;flex-direction:column;gap:2px}}

/* Expired document cleanup: compact, optional and separate from regular export. */
.expiry-panel{padding:13px 18px}
.expiry-details{margin-top:0}
.expiry-content{padding:15px 16px 17px;border-top:1px solid var(--line2)}
.expiry-content>.secondary{margin:0 0 12px;max-width:720px}
.expiry-preview{padding:13px 0 3px;font-size:12.5px;color:#42576b}
.expiry-preview .expiry-summary{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin-bottom:9px}
.expiry-preview .expiry-summary strong{font-size:13px;color:#30475e}
.expiry-preview .expiry-hint{color:#7b8999;font-size:12px;margin:8px 0 0}
.expiry-preview button{margin-top:9px}
.expiry-history{border-top:1px solid var(--line2);margin-top:15px;padding-top:13px}
.expiry-history strong{font-size:12.5px;color:#475f79}
.expiry-history p{margin:6px 0 0;line-height:1.5}


/* v1.8: document-level site placement and end-date filters */
.toolbar {align-items:end; gap:9px}
.toolbar .search-field{flex:1 1 235px}
.toolbar select{flex:0 1 148px;min-width:135px}
.toolbar #filter-validity{flex-basis:165px;min-width:148px}
.date-range-label{display:flex; flex:0 0 auto; flex-direction:column; gap:3px; font-size:11px; color:#63758a}
.date-range-label input{min-width:145px; width:145px!important; height:40px}
.data-table{min-width:1110px}
.data-table .doc-cell{min-width:250px;white-space:normal;max-width:340px}
.data-table .sites-cell{min-width:200px;white-space:normal;max-width:270px}
.doc-entry{padding:8px 0;border-bottom:1px solid #eef2f7;min-height:76px}
.doc-entry:last-child{border-bottom:0}
.doc-header{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.doc-number{font-weight:680;overflow-wrap:anywhere;color:#2f4866;font-size:12px}
.doc-number.cert{color:#1c59ad}.doc-number.decl{color:#15783f}
.doc-expiry{font-size:10px;font-weight:650;white-space:nowrap;border-radius:5px;padding:2px 5px;border:1px solid #e5eaf2;background:#f8fafc;color:#68788a}
.doc-expiry.expired{background:#fff2f2;color:#b53737;border-color:#ffd2d2}
.doc-expiry.active{background:#f0faf3;color:#238047;border-color:#d5f1dd}
.doc-expiry.future{color:#8a5f19;background:#fff9e7;border-color:#f3e2b0}
.doc-info{display:flex;gap:5px;flex-direction:column;padding-top:4px;font-size:11px;color:#728297}
.doc-info a{max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;color:#2462b9}
.doc-site-title{font-size:11px;font-weight:610;color:#6c7c90;max-width:250px;overflow-wrap:anywhere;margin-bottom:5px}
.site-tags{display:flex;gap:5px;flex-wrap:wrap}
.site-chip{font-size:11px;display:inline-flex;align-items:center;max-width:100%;line-height:1.2;background:#f0f5ff;border:1px solid #d8e6f9;color:#315f98;border-radius:6px;padding:5px 7px;overflow-wrap:anywhere}
.site-missing{color:#93a1b0;font-size:11px}
.base-hint{margin:10px 0 0;color:#8a97a7;line-height:1.45}
@media(max-width:950px){.toolbar{align-items:end}.toolbar .search-field{flex-basis:100%}.date-range-label{flex:1 1 140px}.date-range-label input{width:100%!important;min-width:120px}}
@media(max-width:500px){.toolbar>select{flex:1 1 42%;min-width:120px}.toolbar #filter-validity{flex:1 1 100%}.toolbar .date-range-label{flex:1 1 40%}.toolbar #go-import{display:none}}

.scroll-hint{display:none;font-size:11px;color:#788da5;margin:5px 0 8px}
@media(max-width:1250px){.scroll-hint{display:block}}

/* Test 1.9: compact expansion of multiple documents and journal in site export tab. */
.model-doc-count{display:block;margin-top:5px;color:#7a8999;font-size:11px;white-space:normal}
.more-docs{display:inline-flex;gap:6px;align-items:center;border:1px solid #dbe6f4;background:#f6f9ff;color:#2b62a7;border-radius:7px;padding:6px 9px;font-size:11px;font-weight:650;margin-top:6px;cursor:pointer}
.more-docs:hover{background:#edf4ff}
.more-docs:focus-visible{outline:2px solid #6793d5;outline-offset:2px}
.doc-extra-tag{margin-top:8px;color:#73859a;font-size:11px}
.journal-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.journal-head h2{margin:0 0 4px}
.journal-head p{margin:0!important;font-size:12px;color:#74879c;max-width:790px;line-height:1.5}
.journal-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:15px 0 12px}
.journal-controls input{flex:1 1 210px;min-width:160px;width:auto!important}
.journal-controls select{flex:0 1 200px;min-width:155px;width:auto!important}
.journal-controls .light{min-height:40px}
.journal-table{width:100%;min-width:870px;border-collapse:collapse;text-align:left;font-size:12px}
.journal-table th{background:#f8fafc;color:#78869a;font-size:11px;font-weight:650;border-bottom:1px solid #e1e8f0;padding:11px 10px}
.journal-table td{padding:12px 10px;border-bottom:1px solid #edf1f6;vertical-align:top;line-height:1.55;color:#364b60}
.journal-table tr:last-child td{border-bottom:0}
.journal-table .journal-model{font-weight:680;overflow-wrap:anywhere}
.journal-table .journal-docs{font-size:11px;color:#60758b;max-width:255px;overflow-wrap:anywhere}
.journal-status{display:inline-flex;border-radius:6px;border:1px solid #d8e3ed;background:#f7f9fc;color:#526c88;font-size:11px;font-weight:650;padding:4px 7px;line-height:1.25}
.journal-status.updated{background:#effbf3;color:#247642;border-color:#cae8d3}
.journal-status.not_found{background:#fff3f1;color:#b15343;border-color:#f0d8d1}
.journal-status.pending{background:#f2f5fb;color:#627a96;border-color:#dfe6ef}
.journal-caption{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:10px;color:#8391a1;font-size:11.5px}
.journal-empty{text-align:center;padding:26px 12px;color:#8391a1;font-size:12px}
@media(max-width:700px){.journal-controls select{flex:1 1 44%}.journal-controls input{flex-basis:100%}.journal-head{flex-direction:column}.journal-controls .light{width:100%}}

/* v2.0: all documents visible; per-document confirmed sites directly below registration number. */
.data-table {min-width:990px}
.data-table th:nth-child(1){min-width:125px}
.data-table th:nth-child(2){min-width:95px}
.data-table th:nth-child(3){min-width:158px}
.data-table .doc-cell{min-width:265px;max-width:440px;white-space:normal}
.doc-entry{min-height:0;padding:9px 0 11px;border-bottom:1px solid #e9eff6}
.doc-entry:last-child{border-bottom:0;padding-bottom:2px}
.doc-number{font-weight:700;line-height:1.45;display:block}
.doc-info{font-size:11px;line-height:1.5;padding-top:2px;display:block;color:#8090a3}
.doc-sites{margin-top:7px}
.doc-sites .site-chip{background:#f0faf4;border-color:#cfebd9;color:#247447;font-weight:580}
.doc-sites .site-missing{font-style:normal;color:#93a0af}
.doc-entry .site-chip{font-size:10.5px;padding:4px 7px}
.example-row{background:#fbfdff}
.example-row:hover{background:#f5f9ff}
.full-xlsx-btn{border-color:#cfdccf!important;color:#277644!important;background:#f7fcf8!important;font-weight:650!important}
.full-xlsx-btn:hover{background:#ecf9ee!important}
.doc-details-group{padding:10px 12px;margin:8px 0 4px;background:#f8fbff;border:1px solid #e2edf9;border-radius:8px}
.doc-details-group strong{font-size:12px;color:#385b80}
.doc-details-entry{padding:10px 0;border-bottom:1px solid #e2ebf4;font-size:12px}
.doc-details-entry:last-child{border-bottom:0}
.doc-details-entry .dtime{color:#7c8b9b;font-size:11px;margin-top:3px}
.doc-details-entry .dlink{font-size:11px;display:block;margin-top:3px;overflow-wrap:anywhere;color:#2161a9}
.doc-details-entry .dsite{margin-top:4px;color:#67829d;font-size:11px}
@media(max-width:950px){.full-xlsx-btn{flex:1 1 185px}.data-table{min-width:920px}}
@media(max-width:600px){.full-xlsx-btn{flex:1 1 100%}.toolbar .full-xlsx-btn{width:100%}.data-table{min-width:890px}}

/* v2.1: separate publication sites per certificate and per declaration, each on its own table row */
.data-table{min-width:1200px}
.data-table td{vertical-align:top;white-space:normal}
.data-table th:nth-child(1){min-width:128px}
.data-table th:nth-child(2){min-width:72px}
.data-table th:nth-child(3){min-width:132px}
.data-table th:nth-child(4), .data-table th:nth-child(6){min-width:195px}
.data-table th:nth-child(5), .data-table th:nth-child(7){min-width:148px}
.data-table th:last-child{min-width:80px}
.data-table .doc-cell{min-width:190px;max-width:260px;padding-top:13px;padding-bottom:12px}
.data-table .sites-cell{min-width:150px;max-width:205px;padding-top:14px}
.data-table td[rowspan]{vertical-align:top;padding-top:14px}
.data-table .site-tags{display:flex;flex-wrap:wrap;gap:5px;white-space:normal}
.data-table .site-chip{padding:4px 7px;border-radius:5px;font-size:10.5px;line-height:1.3;color:#28724b;background:#f1fbf5;border:1px solid #cfebd9}
.data-table .doc-info{margin-top:3px;font-size:11px;color:#728399;white-space:nowrap}
.data-table .doc-number{line-height:1.4;font-size:11.8px;white-space:normal}
.data-table .model-group-start td{border-top:1px solid #dfe7f0}
.data-table tbody tr:first-child td{border-top:0}
.data-table .model-group-cont td{border-bottom:1px solid #eef2f7}
.data-table tbody tr.example-row{background:transparent}
.data-table tbody tr.example-row>td{background:#f8fbff}
.data-table tbody tr.example-row:hover>td{background:#f3f8ff}
.data-table tbody tr.example-row td{border-bottom-color:#e6eef9}
@media(max-width:600px){.data-table{min-width:1180px}}

/* v2.2: publication locations are color-coded per website in the main columns. */
.data-table .sites-cell{min-width:172px;max-width:230px}
.data-table .site-tags{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}
.data-table .site-chip{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:6px 9px;font-size:11.5px;font-weight:650;line-height:1.3;white-space:nowrap;max-width:100%;overflow-wrap:anywhere;box-shadow:0 1px 0 rgba(12,24,44,.025)}
.data-table .site-indicator{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.9}
.data-table .site-chip--sky{background:#eaf3ff;border:1px solid #bbd6ff;color:#195ba8}
.data-table .site-chip--violet{background:#f3ebff;border:1px solid #d9c4fb;color:#7642ad}
.data-table .site-chip--amber{background:#fff3d9;border:1px solid #f0d49b;color:#925c15}
.data-table .site-chip--mint{background:#e8f9ef;border:1px solid #b8e5c9;color:#217b4d}
.data-table .site-chip--rose{background:#fff0f3;border:1px solid #f5c5d1;color:#a94468}
.data-table .site-chip--teal{background:#e2f7f8;border:1px solid #aee0e4;color:#156f78}
.data-table .site-chip--orange{background:#fff0e2;border:1px solid #f2cdaf;color:#a75720}
.data-table .site-chip--indigo{background:#ebedff;border:1px solid #c5c9f3;color:#434dab}

/* v2.3: three or more website labels fit on one line in each document cell.
   Short names are shown; the full host is accessible on hover/focus. */
.data-table .sites-cell{width:208px;min-width:208px;max-width:220px;padding-left:7px;padding-right:7px}
.data-table .site-tags{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:4px}
.data-table .site-chip{display:inline-flex;align-items:center;flex:none;white-space:nowrap;
  font-size:10px;letter-spacing:-.15px;font-weight:640;padding:3px 6px;
  border-radius:5px;line-height:1.45;gap:0;box-shadow:none}
.data-table .site-indicator{display:none}

/* v2.7: keep the category filter before brand; avoid double frames on
   compact site labels and focused form controls. */
.data-table .site-chip{border:0;box-shadow:none}
input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,
select:focus,textarea:focus{border-color:#6793d5;box-shadow:none}
input:not([type=checkbox]):not([type=radio]):not([type=file]):focus-visible,
select:focus-visible,textarea:focus-visible{outline:none}
/* Keyboard focus stays visible as a single solid control border. */
button:focus-visible,summary:focus-visible{outline:2px solid #739ce4;outline-offset:2px}

/* v2.8: tighter columns and compact icon action, preserving the current v2.7 layout. */
.data-table{table-layout:fixed;width:100%;min-width:1080px;font-size:11.6px}
.data-table th{min-width:0!important;padding:10px 5px;font-size:10.7px;line-height:1.28;white-space:normal}
.data-table td{padding:9px 5px;line-height:1.4}
.data-table th:first-child,.data-table td:first-child{padding-left:8px}
.data-table td[rowspan]{padding-top:10px}
.data-table .doc-cell{min-width:0!important;max-width:none!important;padding:9px 5px!important;overflow-wrap:anywhere}
.data-table .sites-cell{width:auto!important;min-width:0!important;max-width:none!important;padding:9px 4px!important}
.data-table .doc-number{font-size:11.1px;line-height:1.35;overflow-wrap:anywhere}
.data-table .doc-info{font-size:10.2px;line-height:1.35;margin-top:3px;white-space:normal}
.data-table .site-tags{flex-wrap:wrap;gap:3px}
.data-table .site-chip{padding:2px 4px;font-size:9.5px;font-weight:640;line-height:1.35}
.data-table .text-link{font-size:11.5px;overflow-wrap:anywhere;white-space:normal}
.data-table .edit-cell{padding:7px 3px!important;text-align:center}
.row-action.icon-edit{display:inline-grid;place-items:center;width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border:1px solid transparent;background:transparent;color:#607a97;border-radius:7px}
.row-action.icon-edit:hover{border-color:#d8e4f0;background:#eff4fa;color:#245da5}
.row-action.icon-edit svg{width:16px;height:16px;display:block;pointer-events:none}
@media(max-width:600px){.data-table{min-width:1080px}}

/* v3.0: quiet frames, model list disclosure, coherent group background */
.nav-collapse-toggle{display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;border:1px solid #e6ebf1;background:#fff;border-radius:9px;color:#526b85;cursor:pointer}
.nav-collapse-toggle:hover{background:#f5f8fb;border-color:#cfdae6}
.nav-collapse-toggle svg{width:19px;height:19px}
.nav-btn .nav-label{overflow:hidden;text-overflow:ellipsis}
body.nav-collapsed .nav{width:64px;min-width:64px;padding:20px 8px}
body.nav-collapsed .nav-btn{width:47px;height:44px;justify-content:center;padding:0;gap:0}
body.nav-collapsed .nav-label{display:none}
body.nav-collapsed main{max-width:none}
.data-table{border-collapse:separate;border-spacing:0}
.data-table th{border-bottom:1px solid #e5ebf2;background:#fcfdfe}
.data-table td{border-bottom:1px solid #edf1f5}
.data-table .model-group-start>td{border-top:1px solid #e5ebf2}
.data-table .model-group-cont>td{border-bottom:1px solid #f1f3f7}
.data-table tbody tr.example-row{background:transparent}
.data-table tbody tr.example-row>td{background:#f7faff;border-bottom-color:transparent!important}
.data-table tbody tr.example-row:hover>td{background:#f4f8ff}
.data-table tbody tr.example-row.model-group-end>td{border-bottom:1px solid #dfe8f2!important}
.data-table tbody tr.example-row.model-group-start>td[rowspan]{border-bottom:1px solid #dfe8f2!important}
.model-label-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.doc-editor-hint{font-size:12px;color:#778797;margin:-4px 0 3px;line-height:1.5}
.doc-card-list{display:flex;flex-direction:column;gap:9px}
.doc-edit-card{border:1px solid #e2e8ef;border-radius:9px;overflow:hidden;background:#fff;min-width:0}
.doc-edit-card summary{display:flex;list-style:none;cursor:pointer;align-items:center;gap:9px;padding:11px 12px;color:#3c5065;min-height:45px}
.doc-edit-card summary::-webkit-details-marker{display:none}
.doc-edit-card summary::after{content:"";width:15px;height:15px;flex:none;margin-left:auto;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c8198' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-90deg);transition:transform .16s}
.doc-edit-card[open] summary::after{transform:rotate(0)}
.doc-edit-card summary:hover{background:#f9fbfe}
.doc-edit-card[open] summary{border-bottom:1px solid #edf1f5}
.doc-card-order{border:1px solid #dbe5ef;background:#f6f8fb;color:#6b829a;border-radius:5px;min-width:23px;height:23px;font-size:10px;display:inline-grid;place-items:center}
.doc-card-heading{font-size:12px;font-weight:675;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-card-period{color:#8694a4;font-size:10px;white-space:nowrap;max-width:135px;overflow:hidden;text-overflow:ellipsis}
.doc-card-body{padding:13px 13px 12px;display:flex;flex-direction:column;gap:10px}
.doc-card-body label{font-size:11.5px}
.doc-card-body input,.doc-card-body textarea{margin-top:5px!important}
.doc-card-body textarea{min-height:52px}
.doc-card-remove{border:0;background:transparent;color:#9a5160;padding:4px 0;align-self:flex-end;font-size:11px}
.doc-card-remove:hover{color:#b92f43;text-decoration:underline}
.add-doc-btn{align-self:flex-start;border:1px solid #dce5ee!important;background:#fff!important;font-size:12px!important;min-height:35px!important;padding:6px 10px!important}
.file-optional{border-top:1px solid #edf1f5;margin-top:3px;padding-top:10px}
.file-optional summary{cursor:pointer;font-size:11.5px;color:#75869a;list-style:none;padding:3px 2px 10px}
.file-optional summary::before{content:'▸';display:inline-block;margin-right:7px;font-size:12px;color:#8899ac;transition:transform .15s}
.file-optional[open] summary::before{transform:rotate(90deg)}
.file-optional .file-add{margin:3px 0 8px}
.file-optional .file-list{margin-top:8px}
@media(max-width:720px){
 .nav-collapse-toggle{width:32px;height:32px;min-width:32px}
 body.nav-collapsed .nav{display:none}
 .nav{transition:none}
 .header{gap:8px}
 .doc-card-period{max-width:92px}
}

/* v3.1: denser filters and full-length certificate/decl registration numbers. */
.toolbar{gap:7px;align-items:end;padding-bottom:11px}
.toolbar .search-field{flex:1 1 180px;min-width:160px;max-width:270px}
.toolbar .search-field::before{top:9px;left:10px;width:15px;height:15px}
.toolbar .search-field input{padding-left:32px!important}
.toolbar>select{flex:0 1 124px;min-width:115px}
.toolbar #filter-validity{flex-basis:132px;min-width:128px}
.toolbar input:not([type=checkbox]):not([type=radio]):not([type=file]),
.toolbar select,.toolbar button{height:35px;min-height:35px;border-radius:7px;font-size:12px;padding-top:6px;padding-bottom:6px}
.toolbar select{padding-left:9px;padding-right:30px;background-position:right 8px center;background-size:15px}
.toolbar .date-range-label{flex:0 0 112px;gap:2px;font-size:10px;line-height:1.3}
.toolbar .date-range-label input{width:112px!important;min-width:112px;font-size:11px;padding:6px 5px}
.toolbar #reset-base-filters{padding-left:6px;padding-right:6px;font-weight:520}
.toolbar .full-xlsx-btn{padding-left:10px;padding-right:10px}
.toolbar #go-import{padding-left:9px;padding-right:9px}
.data-table{min-width:1220px}
.data-table .doc-number{font-size:10.8px;letter-spacing:-.24px;line-height:1.35;overflow-wrap:anywhere;word-break:normal}
.data-table .doc-cell{padding-right:7px!important}
.data-table .site-tags{flex-wrap:nowrap;gap:3px}
.data-table .site-chip{font-size:9.3px;padding:2px 4px}
.data-table tbody tr.example-row>td{background:#f7faff!important;border-bottom-color:transparent!important}
.data-table tbody tr.example-row:hover>td{background:#f2f7ff!important}
/* A highlighted model is one seamless region, including row-spanning cells. */
.data-table tbody tr.example-row.model-group-start>td[rowspan]{border-bottom:1px solid #dfe8f2!important}
.data-table tbody tr.example-row.model-group-end>td:not([rowspan]){border-bottom:1px solid #dfe8f2!important}
@media(max-width:1100px){.toolbar .search-field{max-width:none;flex:1 1 200px}.toolbar .date-range-label{flex:0 1 130px}.toolbar .date-range-label input{width:100%!important;min-width:0}}
@media(max-width:600px){.toolbar{gap:6px}.toolbar .search-field{flex:1 1 100%;max-width:none}.toolbar>select{flex:1 1 42%;min-width:120px}.toolbar #filter-validity{flex:1 1 42%;min-width:120px}.toolbar .date-range-label{flex:1 1 42%;min-width:0}.toolbar .date-range-label input{min-width:0}.data-table{min-width:1220px}}

/* v3.2 — compact actions, quiet table lines, whole-model fills, anchored sidebar toggle. */
.header{padding-left:27px}
.nav{transition:width .18s ease,min-width .18s ease,padding .18s ease;overflow:hidden;align-items:stretch}
.nav-header{display:flex;align-items:center;justify-content:space-between;min-height:37px;padding:0 5px 13px 12px;margin-bottom:5px;border-bottom:1px solid #f0f3f7;gap:7px}
.nav-header-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.8px;color:#9aabba;font-weight:700;white-space:nowrap}
.nav-collapse-toggle{flex:none;width:33px;height:33px;min-width:33px;margin:0;border-color:#e6ebf1;border-radius:8px;background:#fafbfd;transform:none;align-self:center}
.nav-collapse-toggle svg{width:17px;height:17px;transition:transform .15s ease}
.nav-short-label{display:none}
.nav-btn{min-height:43px;flex:none}
body.nav-collapsed .nav{width:80px;min-width:80px;padding:20px 8px}
body.nav-collapsed .nav-header{justify-content:center;margin:0 0 6px;padding:0 0 12px;min-height:44px}
body.nav-collapsed .nav-header-label{display:none}
body.nav-collapsed .nav-collapse-toggle svg{transform:rotate(180deg)}
body.nav-collapsed .nav-btn{width:64px;min-height:61px;height:61px;flex-direction:column;gap:4px;padding:7px 2px 5px;justify-content:center;text-align:center;border-radius:8px}
body.nav-collapsed .nav-btn svg{height:19px;width:19px}
body.nav-collapsed .nav-btn .nav-label{display:none}
body.nav-collapsed .nav-btn .nav-short-label{display:block;font-size:10px;line-height:1.15;font-weight:600;overflow:visible}
body.nav-collapsed main{max-width:none}
/* The action icons keep the filter toolbar short even on medium-width displays. */
.toolbar{gap:8px;row-gap:9px;align-items:flex-end}
.toolbar .toolbar-action{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto!important;padding:6px 9px!important;min-height:35px!important;height:35px!important;white-space:nowrap;line-height:1;letter-spacing:0}
.toolbar .toolbar-action svg{width:15px;height:15px;display:block;flex:none}
.toolbar .toolbar-reset{padding-inline:7px!important}
.toolbar .full-xlsx-btn{background:#f8fbf9;border-color:#deeadf;color:#2d704a}
.toolbar .full-xlsx-btn:hover{background:#eff9f2;border-color:#c9e2d1}
.toolbar #go-import{display:inline-flex!important}
.example-shortcut{display:inline-flex;align-items:center;gap:5px;padding:6px 8px!important;min-height:30px!important}
.example-shortcut svg{width:14px;height:14px}
/* Soft hairline dividers. Group fills also cover the rowspan cells. */
.scroll-x{border:1px solid #eaf0f6;border-radius:9px;overflow-x:auto;overflow-y:visible}
.data-table{min-width:1080px;border-spacing:0;table-layout:fixed}
.data-table th{background:#fafbfe;border:0;border-bottom:1px solid #e9eef5;padding:10px 6px;color:#738296;letter-spacing:0}
.data-table td{border:0;border-bottom:1px solid #eef2f7;background:#fff;padding-top:10px;padding-bottom:10px}
.data-table tbody tr.group-soft>td{background:#fafbfd}
.data-table tbody tr.group-plain>td{background:#fff}
.data-table tbody tr.model-group-start>td{border-top:1px solid #eef2f7}
.data-table tbody tr:first-child>td{border-top:0}
.data-table tbody tr.model-group-cont:not(.model-group-end)>td{border-bottom-color:transparent}
.data-table tbody tr.model-group-start:not(.model-group-end)>td:not([rowspan]){border-bottom-color:transparent}
.data-table tbody tr.model-group-end>td{border-bottom-color:#e9eef5}
.data-table tbody tr.model-group-start>td[rowspan]{border-bottom-color:#e9eef5}
.data-table tbody tr:hover>td{background:inherit}
.data-table tbody tr.group-hover>td{background:#f5f8fc!important}
.data-table tbody tr.example-row>td{background:#f2f7ff!important}
.data-table tbody tr.example-row.group-hover>td{background:#eaf3ff!important}
.data-table tbody tr.example-row.model-group-start>td[rowspan],
.data-table tbody tr.example-row.model-group-end>td:not([rowspan]){border-bottom-color:#e1eaf5!important}
.data-table tbody tr.example-row:not(.model-group-end)>td:not([rowspan]){border-bottom-color:transparent!important}
.data-table .model-label-wrap{flex-direction:row;align-items:center;flex-wrap:nowrap;gap:5px 6px}
.data-table .text-link{flex:0 1 auto;max-width:100%;line-height:1.4}
.data-table td[rowspan]{vertical-align:top}
@media(max-width:940px){
 .toolbar .search-field{flex:1 1 185px;max-width:none}
}
@media(max-width:720px){
 .header{padding-left:15px}
 .nav{width:100%;min-width:0;padding:8px 12px;gap:7px;flex-direction:row;flex-wrap:wrap;overflow-x:visible;align-items:center}
 .nav-header{border:0;margin:0;padding:0;min-height:36px;width:36px;flex:0 0 36px;justify-content:center}
 .nav-header-label{display:none}
 .nav-btn{width:auto;min-height:36px;flex:0 0 auto;padding:8px 10px}
 body.nav-collapsed .nav{display:flex;width:100%;min-width:0;padding:8px 12px}
 body.nav-collapsed .nav-header{width:36px;flex:0 0 36px;min-height:36px;margin:0;padding:0}
 body.nav-collapsed .nav-btn{display:none}
 .toolbar .toolbar-action{flex:0 0 auto!important}
 .toolbar .full-xlsx-btn{width:auto}
}

/* v3.4: publication badges take two lines at most when there are three sites.
   Stable type-based colors: Hausdorf / mono-brand / HighLevel. */
.data-table .sites-cell{padding:7px 5px!important;vertical-align:top}
.data-table .site-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;align-content:start;gap:4px;min-width:0;width:100%;white-space:normal}
.data-table .site-chip{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0;padding:4px 4px;border:0;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;letter-spacing:-.12px;line-height:1.25;font-weight:650;text-align:center;box-shadow:none}
.data-table .site-chip--hausdorf{background:#e5f0ff;color:#1c5b9b}
.data-table .site-chip--monobrand{background:#e6f6ec;color:#227146}
.data-table .site-chip--highlevel{background:#f0eaff;color:#6c4aa6}
/* In a narrow viewport the table can scroll, while site badges stay compact. */
@media(max-width:600px){.data-table .site-tags{gap:3px}.data-table .site-chip{font-size:9.6px;padding:4px 3px}}

/* v3.5 — holistic interface polish; intentionally non-invasive to registry business logic. */
:root{--ui-edge:#e4eaf2;--ui-hairline:#eef2f6;--ui-hover:#f5f8fc;--ui-ink:#283b50}
html{scroll-behavior:smooth}
body{background:#f6f8fb;color:var(--ui-ink)}
.header{height:64px;padding:0 26px;border-bottom:1px solid var(--ui-edge);position:relative;z-index:2}
.header strong{font-size:15px;letter-spacing:-.22px}
.layout{min-height:calc(100vh - 64px);align-items:stretch}
.nav{height:calc(100vh - 64px);position:sticky;top:0;align-self:flex-start;flex:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border-right:1px solid var(--ui-edge);gap:5px;scrollbar-width:thin;scrollbar-color:#c6d0dc transparent}
.nav-btn{border-radius:8px;transition:background-color .14s,color .14s}
.nav-btn.active{background:#edf3fe}
.nav-btn{white-space:normal}
.nav-btn .nav-label{white-space:normal;overflow:visible;text-overflow:clip}
.nav-header{margin-bottom:6px}
.nav-collapse-toggle{border:1px solid #dfe7f1;background:#fff}
.nav-collapse-toggle:focus-visible{outline:2px solid #779ce0;outline-offset:2px}
body.nav-collapsed .nav{width:78px;min-width:78px;padding:20px 7px}
body.nav-collapsed .nav-btn{width:62px;min-height:59px;height:59px}
main{width:100%;min-width:0;max-width:none;padding:27px clamp(17px,2.2vw,34px) 48px;margin:0}
.page-head{margin-bottom:18px;gap:12px 20px;flex-wrap:wrap}
.page-head h1{font-size:24px;line-height:1.2;margin-bottom:5px}
.page-head p{max-width:760px;line-height:1.45}
.panel{border:1px solid var(--ui-edge);border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(35,55,77,.018);padding:20px 20px 19px;margin-bottom:15px;min-width:0}
.panel h2{margin-bottom:14px}
button.primary,button.light,button.quiet-btn,.row-action{transition:background-color .15s,border-color .15s,color .15s;box-shadow:none}
button:disabled{opacity:.63}
button:active:not(:disabled){transform:none}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{border:1px solid #d6e0eb;border-radius:8px;min-width:0;max-width:100%;box-shadow:none}
input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, select:focus, textarea:focus{border-color:#6a95d8;box-shadow:0 0 0 2px rgba(58,115,208,.07)}
/* Fixed grid: predictable order, wrapping and widths at every breakpoint. */
.toolbar{display:grid;grid-template-columns:minmax(168px,2fr) repeat(5,minmax(92px,1fr)) auto auto auto;column-gap:8px;row-gap:9px;align-items:end;padding-bottom:12px;border-bottom:0;margin-bottom:0;min-width:0}
.toolbar .search-field{flex:none;min-width:0;max-width:none;width:100%}
.toolbar>select{flex:none;min-width:0;width:100%;max-width:none}
.toolbar #filter-validity{min-width:0;flex:none}
.toolbar .date-range-label{display:flex;flex:none;min-width:0;width:100%;gap:3px;white-space:nowrap;font-size:10.5px;line-height:1.25;color:#73849a}
.toolbar .date-range-label input{width:100%!important;min-width:0!important;max-width:100%;font-size:11.5px!important;padding-left:7px!important;padding-right:5px!important}
.toolbar .search-field input{min-width:0;width:100%}
.toolbar .toolbar-action{height:36px!important;min-height:36px!important;padding:7px 10px!important;justify-content:center;min-width:0;white-space:nowrap}
.toolbar .toolbar-action svg{width:16px;height:16px}
.toolbar #reset-base-filters{color:#657b93}
.toolbar #reset-base-filters:disabled{color:#a3b0c0;opacity:.72}
.toolbar .full-xlsx-btn{border:1px solid #d7e8da!important;background:#f7fbf8!important;color:#246e45!important}
.toolbar .full-xlsx-btn:hover{background:#eef8f1!important}
.toolbar #go-import{background:#fff}
/* Cohesive table without interrupted color bands or double borders. */
.scroll-x{position:relative;border:1px solid #e5ebf2;border-radius:9px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#bcc9d8 #f5f8fc;scrollbar-width:thin;max-width:100%;min-width:0}
#base-scroll{max-height:min(70vh,720px)}
#journal-scroll{max-height:min(66vh,680px)}
.scroll-x::-webkit-scrollbar,.manual-list::-webkit-scrollbar,.drawer-form::-webkit-scrollbar,.combo-options::-webkit-scrollbar,.file-list::-webkit-scrollbar{width:9px;height:9px}
.scroll-x::-webkit-scrollbar-thumb,.manual-list::-webkit-scrollbar-thumb,.drawer-form::-webkit-scrollbar-thumb,.combo-options::-webkit-scrollbar-thumb,.file-list::-webkit-scrollbar-thumb{background:#c1cddb;border:2px solid #f8fafd;border-radius:8px}
.scroll-x::-webkit-scrollbar-track,.drawer-form::-webkit-scrollbar-track,.manual-list::-webkit-scrollbar-track,.combo-options::-webkit-scrollbar-track{background:#f8fafd;border-radius:8px}
.data-table{width:100%;min-width:1088px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:11.7px;line-height:1.38}
.data-table thead th{position:sticky;top:0;z-index:2;background:#fafbfe;color:#6c7e93;font-size:11.1px;font-weight:690;line-height:1.28;border:0;border-bottom:1px solid #dfe7f0;padding:11px 7px;white-space:normal}
.data-table tbody td{padding:9px 7px;vertical-align:top;line-height:1.44;border:0;border-bottom:1px solid #e7edf4;background:#fff}
.data-table tbody tr.group-plain>td{background:#fff}
.data-table tbody tr.group-soft>td{background:#fafcff}
.data-table tbody tr.example-row>td{background:#eef5ff!important}
.data-table tbody tr.group-hover>td{background:#f0f5fd!important}
.data-table tbody tr.example-row.group-hover>td{background:#e7f0ff!important}
.data-table tbody tr.model-group-start>td{border-top:1px solid #e9eef4}
.data-table tbody tr:first-child>td{border-top:0}
.data-table tbody tr:not(.model-group-end)>td:not([rowspan]){border-bottom-color:transparent!important}
.data-table tbody tr.model-group-start>td[rowspan],.data-table tbody tr.model-group-end>td{border-bottom:1px solid #e1e9f2!important}
.data-table tbody tr:last-child>td{border-bottom-color:transparent!important}
.data-table tbody tr:hover>td{background:inherit}
.data-table .doc-cell{padding:10px 7px!important;vertical-align:top}
.data-table .doc-number{font-size:11.2px;font-weight:690;letter-spacing:-.11px;line-height:1.4;overflow-wrap:anywhere}
.data-table .doc-info{font-size:10.4px;line-height:1.4;margin-top:4px;color:#7c8da1;white-space:normal}
.data-table .sites-cell{padding:10px 6px!important;vertical-align:top}
.data-table .site-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-items:start;align-content:start;min-width:0;width:100%}
.data-table .site-chip{display:block;width:100%;max-width:100%;min-width:0;font-size:10px;font-weight:680;letter-spacing:0;border:0;border-radius:5px;padding:4px 3px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none}
.data-table .site-chip--hausdorf{background:#e6f1ff;color:#235e98}
.data-table .site-chip--monobrand{background:#e6f6ec;color:#276c45}
.data-table .site-chip--highlevel{background:#f0eaff;color:#694a9e}
.data-table .model-label-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.data-table .edit-cell{padding-top:9px!important;text-align:center}
.data-table .icon-edit{width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:7px;color:#52708e;background:transparent}
.data-table .icon-edit:hover{background:#eaf2ff;border-color:#d4e2f6;color:#215db5}
.data-table .text-link{font-size:11.7px}
.data-table tbody .empty{padding:34px 18px!important;color:#8293a6}
.table-scroll-guide{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:31px;padding:2px 0 8px;color:#7e8ea1;font-size:11px;line-height:1.35}
.table-scroll-guide[hidden]{display:none!important}
.guide-copy{display:inline-flex;align-items:center;gap:6px}
.guide-copy svg{width:17px;height:17px;flex:none;color:#6e89a6}
.scroll-guide-buttons{display:flex;gap:5px;flex:none}
.guide-arrow{display:grid;place-items:center;flex:none;width:30px;height:28px;padding:0;background:#fff;border:1px solid #e0e8f2;border-radius:6px;color:#506f90}
.guide-arrow svg{width:16px;height:16px}
.guide-arrow:hover:not(:disabled){background:#edf4ff;border-color:#bed3ee;color:#255f9f}
.guide-arrow:disabled{color:#b8c3cf;background:#f9fafc;opacity:.8}
.base-hint{margin:12px 0 0;color:#8799ad;font-size:11.4px;line-height:1.5}
.foot-row{padding-top:13px;align-items:center;flex-wrap:wrap}
.foot-row>span:last-child{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
/* Export, upload and journal use the same thin edge and tidy scrolling. */
.site-card,.scope-option,.manual-list,.field-details,.drop-zone,.doc-edit-card{border-color:var(--ui-edge)}
.site-card{padding:13px;border-radius:9px}
.site-list{gap:10px}
.scope-option{padding:14px 15px;border-radius:9px}
.scope-option:has(input:checked){border-color:#b7cdf1;background:#f5f9ff}
.manual-list{scrollbar-width:thin;scrollbar-color:#c0cddd #f8fafd;overscroll-behavior:contain}
.manual-item{border-bottom-color:var(--ui-hairline)}
.journal-table{min-width:910px;border-collapse:separate;border-spacing:0}
.journal-table th{position:sticky;top:0;z-index:1;background:#fafbfe;border-color:#e2eaf3;padding:11px 10px}
.journal-table td{border-color:#edf1f6;padding:11px 10px}
.journal-controls{gap:8px}
.journal-controls select,.journal-controls input{min-width:0;flex:1 1 160px}
.journal-controls .light{flex:0 0 auto}
.site-templates{border-color:var(--ui-hairline)}
.site-fields{gap:10px}
.file-list{scrollbar-width:thin;scrollbar-color:#c0cddd #f8fafd}
/* Drawer / search comboboxes: prevent hidden options behind adjacent fields. */
body.editor-open{overflow:hidden}
.cover{z-index:50}
.drawer{width:min(700px,100%);height:100dvh;max-height:100dvh;overflow:hidden;background:#f6f8fb}
.drawer-top{padding:17px 22px;min-height:64px}
.drawer-bottom{padding:13px 22px;border-color:var(--ui-edge);box-shadow:0 -2px 12px rgba(30,49,79,.035);gap:8px;flex-wrap:wrap}
.drawer-form{padding:17px 20px 20px;gap:11px;scrollbar-width:thin;scrollbar-color:#bdc9d9 #f6f8fb;scroll-padding-block:10px}
.form-section{position:relative;overflow:visible;border:1px solid var(--ui-edge);border-radius:10px;padding:16px 17px 17px;gap:10px}
.form-section:has(.combo.is-open){z-index:12}
.form-section h3{font-size:14px;color:#2b4157;font-weight:700}
.form-section.cert-section{border-left:3px solid #4c88df}
.form-section.decl-section{border-left:3px solid #54aa7a}
.form-section>.small,.doc-editor-hint{line-height:1.48}
.drawer-form label{font-size:11.8px;color:#5d7189}
.drawer-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.drawer-form select,.drawer-form textarea{min-height:39px}
.combo{min-width:0;position:relative}
.combo.is-open{z-index:35}
.combo-input input{padding-right:45px!important}
.combo-toggle{top:5px;right:5px;height:29px;width:30px;border:1px solid transparent;background:#f3f6fa;border-radius:6px}
.combo-toggle:hover{background:#e8eff8}
.combo-options{z-index:40;background:#fff;border:1px solid #ccdbea;border-radius:9px;box-shadow:0 13px 28px rgba(28,49,75,.14);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#becbd9 #f9fbfd;padding:4px;max-height:220px}
.combo-options.open-up{top:auto;bottom:calc(100% + 4px);margin-top:0}
.combo-options button{padding:9px 10px;font-size:12px;border-radius:6px;line-height:1.35}
.combo-options button:hover,.combo-options button:focus-visible{outline:none;background:#eaf3ff;color:#235b9d}
.doc-edit-card{border-radius:8px;overflow:hidden}
.doc-edit-card summary{padding:11px 12px;gap:10px}
.doc-edit-card[open] summary{background:#fbfcfe;border-bottom-color:#e8eef5}
.doc-card-heading{font-size:12px;font-weight:680}
.doc-card-period{font-size:10.5px}
.doc-card-body{padding:12px;gap:10px}
.doc-card-body .fields.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.doc-card-body .fields.two>label{min-width:0}
.doc-card-body .fields.two input{min-width:0}
.doc-card-remove{border-radius:5px;padding:5px 6px;align-self:flex-end}
.doc-card-remove:hover{background:#fff4f5;text-decoration:none}
.file-optional{border-color:var(--ui-hairline)}
/* Medium desktop: intentional two-row grid, not flex-wrap roulette. */
@media(max-width:1380px){
 .toolbar{grid-template-columns:repeat(6,minmax(0,1fr))}
 .toolbar .search-field{grid-column:span 2}
 .toolbar>select{grid-column:span 1}
 .toolbar #filter-validity{grid-column:span 2}
 .toolbar .date-range-label{grid-column:span 1}
 .toolbar .toolbar-action{grid-column:span 1}
 .toolbar #reset-base-filters{justify-self:start}
}
@media(max-width:1060px){
 .toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}
 .toolbar .search-field{grid-column:span 2}
 .toolbar #filter-category,.toolbar #filter-brand{grid-column:span 1}
 .toolbar #filter-validity{grid-column:span 2}
 .toolbar .date-range-label{grid-column:span 1}
 .toolbar .toolbar-action{grid-column:span 1;justify-self:start}
 .site-list{grid-template-columns:1fr}
}
@media(max-width:720px){
 .header{height:58px;padding:0 15px}
 .layout{display:block;min-height:calc(100vh - 58px)}
 .nav,body.nav-collapsed .nav{position:static;top:auto;align-self:auto;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:auto;min-height:52px;padding:7px 12px;border-right:0;border-bottom:1px solid var(--ui-edge);flex-direction:row;flex-wrap:nowrap;gap:5px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#cdd6e2 transparent}
 .nav-header,body.nav-collapsed .nav-header{position:sticky;left:0;z-index:3;background:#fff;border-right:1px solid var(--ui-edge);padding-right:7px;flex:0 0 40px;width:40px;min-height:36px;justify-content:center}
 .nav-btn{min-height:36px;flex:none;white-space:nowrap;padding:8px 10px}
 .nav-btn .nav-label{white-space:nowrap;overflow:visible;text-overflow:clip}
 body.nav-collapsed .nav-btn{display:none}
 body.nav-collapsed .nav{min-height:52px;justify-content:flex-start}
 main{padding:20px 13px 38px}
 .panel{padding:15px}
 .page-head{align-items:flex-start}
 .page-head h1{font-size:22px}
 .drawer-form{padding:13px;gap:10px}
 .drawer-top,.drawer-bottom{padding:12px 15px}
 .form-section{padding:14px}
 .form-section .fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-fields{grid-template-columns:1fr}
 .manual-toolbar{flex-wrap:wrap}
}
@media(max-width:700px){
 .toolbar{grid-template-columns:repeat(6,minmax(0,1fr));column-gap:7px;row-gap:8px}
 .toolbar .search-field{grid-column:span 6}
 .toolbar #filter-category,.toolbar #filter-brand{grid-column:span 3}
 .toolbar #filter-validity{grid-column:span 6}
 .toolbar .date-range-label{grid-column:span 3}
 .toolbar .toolbar-action{grid-column:span 2;width:100%;justify-self:stretch}
 .toolbar .toolbar-reset{justify-self:stretch!important}
 .data-table{min-width:1088px}
 .table-scroll-guide{font-size:10.5px}
 .guide-copy{max-width:calc(100% - 80px)}
 .base-hint{font-size:11px}
 .foot-row{align-items:flex-start;flex-direction:column}
}
@media(max-width:520px){
 .page-head{gap:11px}
 .page-head>.primary{align-self:flex-start;min-height:36px;padding:8px 12px;font-size:12px}
 .form-section .fields.two{grid-template-columns:1fr}
 .drawer-bottom{gap:6px}
 .drawer-bottom button{font-size:12px;min-height:36px;padding:8px 10px}
 .site-main{flex-wrap:wrap}
 .site-remove{margin-left:auto}
 .site-name{flex-basis:70%}
 .journal-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .journal-controls input{grid-column:1/-1}
 .journal-controls select{width:100%!important}
 .journal-controls .light{grid-column:1/-1;justify-self:start}
 .file-add{flex-wrap:wrap}
}
@media(max-width:400px){
 .header strong{font-size:13px}
 .doc-card-body .fields.two{grid-template-columns:1fr}
 .guide-copy{font-size:10px}
 .panel{padding:12px}
 .drawer-bottom .danger{padding-inline:5px}
}

/* Model labels do not have row-level disclosure controls. */
.data-table .model-label-wrap{display:flex;flex-wrap:nowrap;align-items:center;gap:5px}
.data-table .model-label-wrap>.text-link{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}


/* v38 — refined dropdowns, gentle group highlighting, one expiration-date filter. */
:root{
  --ui-soft-blue:#f8fbff;
  --ui-hover-blue:#f3f8fe;
  --ui-active-border:#a7c6e8;
}
/* Upper filter geometry stays on one balanced desktop row. */
.toolbar{
  grid-template-columns:minmax(196px,2fr) repeat(3,minmax(115px,1fr)) minmax(145px,1.1fr) auto auto auto;
  gap:9px;
  row-gap:10px;
}
.toolbar .date-range-label{min-width:0;gap:4px;font-weight:590;font-size:11px;color:#61768d;letter-spacing:.02px}
.toolbar .date-range-label input{min-height:37px!important;height:37px!important;min-width:0!important;border-radius:10px!important;padding-left:10px!important;font-weight:480}
/* Round all select triggers; use a consistently subtle focus state. */
select:not([multiple]){
  border-radius:10px!important;
  border-color:#dce5ef!important;
  background-color:#fff;
  transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;
}
select:not([multiple]):hover{border-color:#bacbdd!important;background-color:#fbfdff}
select:not([multiple]):focus-visible{border-color:#92b7e3!important;box-shadow:0 0 0 3px rgba(90,146,213,.105)!important}
.toolbar>select{
  min-height:37px!important;height:37px!important;
  padding:7px 31px 7px 11px;
  font-size:12px;
  line-height:1.45;
}
/* Chrome/Edge 135+: real rounded select popovers, without replacing native semantics.
   Browsers without customizable selects continue to use the normal select. */
@supports (appearance:base-select){
  select:not([multiple]),select:not([multiple])::picker(select){appearance:base-select}
  select:not([multiple]){background-image:none!important;padding-right:29px!important}
  select:not([multiple])::picker-icon{
    color:#768a9e;font-size:11px;transition:transform .15s ease;
    margin-left:auto;flex:none;
  }
  select:not([multiple]):open::picker-icon{transform:rotate(180deg)}
  select:not([multiple])::picker(select){
    box-sizing:border-box;
    border:1px solid #dce6f0;
    background:#fff;
    border-radius:12px;
    padding:5px;
    margin-block:5px 0;
    min-width:anchor-size(width);
    max-height:min(300px,48vh);
    overflow-y:auto;
    overscroll-behavior:contain;
    box-shadow:0 13px 32px rgba(41,64,89,.12),0 2px 8px rgba(41,64,89,.04);
    scrollbar-width:thin;
    scrollbar-color:#c2d0dc #f7fafc;
  }
  select:not([multiple]) option{
    font:inherit;
    font-size:12.5px;
    color:#344d64;
    min-height:33px;
    padding:8px 11px;
    margin:1px 0;
    border-radius:8px;
    background:transparent;
    transition:background-color .12s ease;
  }
  select:not([multiple]) option::checkmark{display:none}
  select:not([multiple]) option:hover,
  select:not([multiple]) option:focus-visible{background:#f1f6fc;outline:none}
  select:not([multiple]) option:checked{background:#eaf3fc;color:#28639e;font-weight:650}
}
/* Searchable dropdowns in the editor match the select menus. */
.combo-input input{border-radius:10px!important}
.combo-toggle{border-radius:8px;background:#f5f8fb}
.combo-options{
  border:1px solid #dce6ef;
  border-radius:12px;
  padding:6px;
  margin-top:6px;
  box-shadow:0 13px 32px rgba(41,64,89,.12),0 2px 8px rgba(41,64,89,.04);
}
.combo-options button{border-radius:8px;font-size:12.5px;padding:9px 11px}
.combo-options button:hover,.combo-options button:focus-visible{background:#f1f6fc;color:#2f648f}
/* Uninterrupted and very pale background for all cells in a model group. */
.data-table tbody tr.group-plain>td{background:#fff!important}
.data-table tbody tr.group-soft>td{background:#fcfdff!important}
.data-table tbody tr.example-row>td{background:var(--ui-soft-blue)!important}
.data-table tbody tr.group-hover>td{background:#f7faff!important}
.data-table tbody tr.example-row.group-hover>td{background:var(--ui-hover-blue)!important}
.data-table tbody tr.model-group-start>td{border-top-color:#eff3f7}
.data-table tbody tr.model-group-start>td[rowspan],
.data-table tbody tr.model-group-end>td{border-bottom-color:#e8eef4!important}
@media(max-width:1380px){
  .toolbar{grid-template-columns:repeat(6,minmax(0,1fr))}
  .toolbar .search-field{grid-column:span 2}
  .toolbar>select{grid-column:span 1}
  .toolbar #filter-validity{grid-column:span 2}
  .toolbar .date-range-label{grid-column:span 1}
  .toolbar .toolbar-action{grid-column:span 1}
}
@media(max-width:1060px){
  .toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}
  .toolbar .search-field{grid-column:span 2}
  .toolbar #filter-category,.toolbar #filter-brand{grid-column:span 1}
  .toolbar #filter-validity{grid-column:span 2}
  .toolbar .date-range-label{grid-column:span 2}
  .toolbar .toolbar-action{grid-column:span 1}
}
@media(max-width:700px){
  .toolbar{grid-template-columns:repeat(6,minmax(0,1fr))}
  .toolbar .search-field{grid-column:span 6}
  .toolbar #filter-category,.toolbar #filter-brand{grid-column:span 3}
  .toolbar #filter-validity{grid-column:span 3}
  .toolbar .date-range-label{grid-column:span 3}
  .toolbar .toolbar-action{grid-column:span 2}
}


/* v39 — self-explanatory actions for documents in the right editor. */
.drawer-form .add-doc-btn{
  width:max-content;
  max-width:100%;
  display:inline-flex!important;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  font-weight:635!important;
  font-size:12.5px!important;
  line-height:1.35!important;
  padding:9px 14px 9px 10px!important;
  min-height:39px!important;
  border:1px solid #d3e1ef!important;
  border-radius:10px!important;
  background:#f7faff!important;
  color:#285f9b!important;
  box-shadow:none;
  white-space:normal;
  text-align:left;
}
.drawer-form .add-doc-btn .add-doc-icon{
  width:19px;height:19px;min-width:19px;display:block;flex:none;
}
.drawer-form .add-doc-btn:hover{
  background:#edf5ff!important;
  border-color:#b8cee7!important;
  color:#1d538e!important;
}
.drawer-form .decl-section .add-doc-btn{
  color:#27784c!important;
  background:#f5fbf7!important;
  border-color:#d3e7d9!important;
}
.drawer-form .decl-section .add-doc-btn:hover{
  background:#eaf7ef!important;
  border-color:#b4dbc1!important;
  color:#226740!important;
}
.drawer-form .file-btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:6px 11px!important;
  border-radius:9px!important;
  font-size:11.75px!important;
  font-weight:600!important;
  white-space:nowrap;
  color:#536f8e!important;
  border-color:#dde6ef!important;
}
.drawer-form .file-btn:hover{
  background:#f5f9fd!important;
  border-color:#bccddd!important;
}
.drawer-form .file-btn .attach-file-icon{
  display:block;width:15px;height:15px;flex:none;
}
.drawer-form .file-add{border-radius:10px;border-color:#e0e7ee;background:#fafcff}
@media(max-width:450px){
  .drawer-form .add-doc-btn{width:100%;justify-content:center}
  .drawer-form .file-add{gap:9px}
}


/* v40: polish file-attachment dropdowns in the right drawer */
.file-optional{margin-top:6px;padding-top:12px;border-top:1px solid #e9eef4}
.file-optional summary{display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 8px 10px 6px;cursor:pointer;list-style:none;color:#6f8094;font-size:12px;font-weight:560;border-radius:8px}
.file-optional summary::-webkit-details-marker{display:none}
.file-optional summary::marker{content:""}
.file-optional summary:hover{background:#f8fbfe;color:#4f657d}
.file-optional summary::before{content:"";display:inline-block;flex:none;width:14px;height:14px;margin-right:2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238596a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .16s ease}
.file-optional[open] summary::before{transform:rotate(90deg)}
.file-optional .file-add{margin:6px 0 10px;padding:11px 12px;border:1px dashed #d9e4ef;border-radius:10px;background:#fbfdff}
.file-target{margin:2px 0 2px}
.file-target label{display:block;font-size:12px;font-weight:550;color:#617186}
.file-target select{-webkit-appearance:none!important;appearance:none!important;display:block;width:100%;margin-top:8px;padding:11px 42px 11px 12px!important;min-height:44px;border:1px solid #d4dfeb!important;border-radius:10px!important;background-color:#fff!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236f8094' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px 16px!important;box-shadow:none!important;color:#2d4056}
.file-target select:hover{border-color:#bdcfdf!important;background-color:#fcfdff!important}
.file-target select:focus,.file-target select:focus-visible{border-color:#90b6de!important;box-shadow:0 0 0 3px rgba(99,151,220,.12)!important;outline:none!important}
.file-list{margin-top:10px}


/* v41: short category/brand labels stay on one line, including after reset. */
.toolbar #filter-category,
.toolbar #filter-brand{
  white-space:nowrap;
  text-overflow:ellipsis;
}
@supports (appearance:base-select){
  .toolbar #filter-category,
  .toolbar #filter-brand{
    display:flex;
    align-items:center;
    gap:8px;
    padding-right:11px!important;
  }
  .toolbar #filter-category::picker-icon,
  .toolbar #filter-brand::picker-icon{
    margin-left:auto;
    flex-shrink:0;
  }
}


/* v42: one inline expiry-date control; shared certificate/declaration logic. */
.toolbar{
  grid-template-columns:minmax(166px,1.5fr) repeat(3,minmax(100px,1fr)) minmax(245px,1.5fr) auto auto auto;
  align-items:center;
  gap:8px;
}
.toolbar .date-range-label{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  height:37px;
  min-height:37px;
  min-width:0;
  width:100%;
  margin:0;
  padding:0 9px 0 11px;
  border:1px solid #dce5ef;
  border-radius:10px;
  background:#fff;
  color:#61768d;
  cursor:text;
  transition:border-color .15s,box-shadow .15s;
}
.toolbar .date-range-label:hover{border-color:#bacbdd}
.toolbar .date-range-label:focus-within{
  border-color:#92b7e3;
  box-shadow:0 0 0 3px rgba(90,146,213,.105);
}
.toolbar .date-range-label>span{
  flex:0 0 auto;
  white-space:nowrap;
  font-size:11.5px;
  line-height:1.35;
  font-weight:500;
  letter-spacing:0;
}
.toolbar .date-range-label input[type=date]{
  flex:1 1 0;
  width:0!important;
  min-width:116px!important;
  max-width:100%;
  height:35px!important;
  min-height:35px!important;
  margin:0;
  padding:0 1px 0 5px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent;
  outline:none!important;
  box-shadow:none!important;
  font-size:11.5px!important;
  font-weight:480;
  color:#354b61;
}
.toolbar .date-range-label input[type=date]::-webkit-calendar-picker-indicator{
  flex:none;
  margin:0;
  padding:2px;
  opacity:.62;
  cursor:pointer;
}
.toolbar .date-range-label input[type=date]::-webkit-datetime-edit{padding:0}
.toolbar #filter-validity{white-space:nowrap;text-overflow:ellipsis}
@supports (appearance:base-select){
  .toolbar #filter-validity{display:flex;align-items:center;gap:8px;padding-right:11px!important}
  .toolbar #filter-validity::picker-icon{margin-left:auto;flex-shrink:0}
}
@media(max-width:1380px){
  .toolbar{grid-template-columns:repeat(6,minmax(0,1fr))}
  .toolbar .search-field{grid-column:span 2}
  .toolbar #filter-category,.toolbar #filter-brand{grid-column:span 1}
  .toolbar #filter-validity{grid-column:span 2}
  .toolbar .date-range-label{grid-column:span 3}
  .toolbar .toolbar-action{grid-column:span 1;width:100%;justify-self:stretch!important}
}
@media(max-width:1060px){
  .toolbar .search-field{grid-column:1/-1}
  .toolbar #filter-category,.toolbar #filter-brand,.toolbar #filter-validity{grid-column:span 2}
}
@media(max-width:820px){
  .toolbar .date-range-label{grid-column:1/-1}
  .toolbar .toolbar-action{grid-column:span 2}
}
@media(max-width:550px){
  .toolbar #filter-category,.toolbar #filter-brand{grid-column:span 3}
  .toolbar #filter-validity{grid-column:1/-1}
}


/* v43: preflight journal. Review and confirmation are separate from publication. */
.export-final{align-items:center;gap:15px 20px}
.export-final .export-action-summary{gap:5px}
.export-final .export-action-summary h2{margin:0 0 2px;font-size:16px}
.export-final .export-action-summary strong{font-size:12.5px;font-weight:600}
.export-final #run-export{gap:8px;min-width:0}
.export-final #run-export svg,.preflight-tools button svg{width:17px;height:17px;flex:none}
.export-preview{margin-top:3px;padding-top:20px;border-top:1px solid #e7edf3;min-width:0}
.preflight-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.preflight-heading h3{margin:0 0 5px;font-size:16px;letter-spacing:-.15px;color:#30465d}
.preflight-heading p{margin:0;color:#738295;font-size:12px;line-height:1.5;max-width:660px}
.preflight-state{display:inline-flex;align-items:center;gap:7px;max-width:100%;font-size:11px;font-weight:600;border:1px solid #e2e9f1;border-radius:7px;background:#fafcfe;color:#687e95;padding:6px 9px;line-height:1.4}
.preflight-state::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#94abc2}
.preflight-state.confirmed{color:#386c55;border-color:#dbeadf;background:#f7fbf8}
.preflight-state.confirmed::before{background:#73a18a}
.preflight-metrics{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 12px;font-size:12px;color:#6e8194}
.preflight-metrics span{display:inline-flex;align-items:baseline;gap:6px}
.preflight-metrics strong{font-size:17px;font-weight:680;color:#334e68}
.preflight-site-summary{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 15px}
.preflight-site-total{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:6px 8px;border:1px solid #e7edf3;border-radius:8px;background:#fff;font-size:11px;color:#76869a}
.preview-site-badge{display:inline-flex;align-items:center;max-width:100%;overflow-wrap:anywhere;line-height:1.45;border-radius:5px;padding:3px 6px;font-weight:620;font-size:10.5px;color:#4d687f;background:#f3f6fa}
.preview-site-badge.hausdorf{background:#edf5ff;color:#336590}
.preview-site-badge.monobrand{background:#edf8f1;color:#357451}
.preview-site-badge.highlevel{background:#f4effc;color:#7956a3}
.preflight-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.preflight-tools input[type=search]{flex:1 1 220px;min-width:170px;width:auto;font-size:12px;height:36px;min-height:36px;border-radius:9px;padding:8px 11px}
.preflight-tools select{flex:0 1 168px;min-width:145px;width:168px;height:36px;min-height:36px;font-size:12px;white-space:nowrap;line-height:1.35}
.preflight-tools button.light{flex:none;min-height:36px;height:36px;padding:7px 10px;font-size:12px;border-radius:8px}
@supports(appearance:base-select){
 .preflight-tools select{display:flex;align-items:center;gap:8px;padding:7px 10px!important}
 .preflight-tools select::picker-icon{margin-left:auto;flex:none}
}
#preflight-scroll{max-height:min(57vh,500px);scrollbar-gutter:stable;border-radius:10px;border:1px solid #e3eaf2}
.preflight-table{width:100%;min-width:1040px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:11.5px;line-height:1.45}
.preflight-table th{text-align:left;position:sticky;top:0;z-index:2;background:#fafcfe;color:#728398;font-size:10.8px;font-weight:650;padding:10px 10px;border-bottom:1px solid #e2eaf3;white-space:normal}
.preflight-table td{vertical-align:top;padding:12px 10px;border-bottom:1px solid #edf1f6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:#fff}
.preflight-table tbody tr:nth-child(even)>td{background:#fcfdff}
.preflight-table tbody tr:hover>td{background:#f8fbff}
.preflight-table tbody tr:last-child td{border-bottom:0}
.preflight-table tbody tr.site-start:not(:first-child) td{border-top:1px solid #e2eaf2}
.preview-model{display:block;color:#354d64;font-size:12px;font-weight:650;margin-bottom:4px}
.preview-category,.preview-secondary{display:block;color:#8190a0;font-size:10.5px;line-height:1.5;margin-top:4px}
.preview-doc-type{display:inline-block;font-size:10px;font-weight:630;padding:2px 5px;border-radius:5px;margin-bottom:5px;background:#eff5fd;color:#4876a5}
.preview-doc-type.decl{background:#eff9f2;color:#3f8059}
.preview-number{display:block;color:#3c536b;font-size:11px;font-weight:580;line-height:1.5}
.preview-link{display:block;color:#386b9f;font-size:11px;line-height:1.55;text-decoration:none;overflow-wrap:anywhere;margin-bottom:5px}
.preview-link:hover{text-decoration:underline}
.preview-file{display:flex;align-items:flex-start;gap:5px;border:0;background:transparent;color:#456d91;text-align:left;font-size:11px;line-height:1.45;padding:2px 0;max-width:100%;overflow-wrap:anywhere}
.preview-file svg{width:13px;height:13px;margin-top:2px;flex:none}
.preview-file:hover{text-decoration:underline}
.preview-destination{font-size:11px;color:#60778d}
.preview-destination strong{font-weight:620;color:#3d586e}
.preview-title{display:block;font-size:10.8px;color:#566e83;margin-top:5px;line-height:1.55}
.preview-flag{display:inline-flex;font-size:10.5px;font-weight:600;padding:4px 6px;border-radius:6px;border:1px solid #e1e8ef;background:#f8fafc;color:#637d93;line-height:1.4}
.preview-flag.warning{border-color:#eee1ce;background:#fffcf7;color:#937345}
.preview-flag.blocked{border-color:#efded9;background:#fffaf9;color:#a06b5a}
.preflight-caption{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap;color:#8290a0;font-size:11px;padding:9px 1px 0}
.preflight-alert{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;margin:13px 0 0;background:#fffdf9;border:1px solid #efe7d9;border-radius:9px;color:#8a724f;font-size:11.5px;line-height:1.55}
.preflight-alert svg{width:16px;height:16px;flex:none;margin-top:1px}
.preflight-confirm{border-top:1px solid #e7edf3;margin-top:17px;padding-top:15px;display:grid;gap:12px}
.preflight-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#506980;line-height:1.55;cursor:pointer}
.preflight-check input{margin:2px 0 0;flex:none}
.preflight-check:has(input:disabled){cursor:default}
.preflight-check strong{font-weight:650;color:#3b556d}
.preflight-confirm-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.preflight-confirm-actions .actions{gap:8px}
.preflight-demo-note{font-size:11px;line-height:1.5;color:#8291a1;max-width:430px}
#preflight-outcome{margin:0;padding:10px 12px;border:1px solid #dceadf;border-radius:9px;background:#f8fcf9;color:#466d55;font-size:12px;line-height:1.55}
#preview-expired-note{font-size:11px;color:#8190a0;margin-top:7px}
.preflight-empty{padding:30px 14px!important;text-align:center;color:#8291a1}
#export-preview[aria-busy=true]{opacity:.65;pointer-events:none}
@media(max-width:900px){
 .preflight-tools input[type=search]{flex-basis:100%;width:100%}
 .preflight-tools select{flex:1 1 130px;min-width:0}
 .preflight-demo-note{max-width:none}
 .preflight-confirm-actions{align-items:flex-start;flex-direction:column}
 .preflight-table{min-width:1000px}
}
@media(max-width:550px){
 .export-final #run-export{width:100%}
 .preflight-heading{gap:9px}
 .preflight-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
 .preflight-metrics span{font-size:11px}
 .preflight-site-summary{display:grid;grid-template-columns:minmax(0,1fr)}
 .preflight-site-total{justify-content:space-between;gap:6px}
 .preflight-site-total>span:last-child{white-space:nowrap}
 .preflight-tools{gap:7px}
 .preflight-tools select{flex-basis:calc(50% - 4px)}
 .preflight-tools button{margin-left:auto}
 .preflight-confirm-actions,.preflight-confirm-actions .actions{width:100%}
 .preflight-confirm-actions .actions{flex-direction:column;align-items:stretch}
 .preflight-confirm-actions button{width:100%;white-space:normal}
 .preflight-caption>span{line-height:1.5}
 #preflight-scroll{max-height:52vh}
}
@media(prefers-reduced-motion:reduce){#export-preview *{scroll-behavior:auto}}


/* v50 — refined CSV import result card */
.import-success{background:transparent;border-top:0;padding-top:18px}
.import-result-card{background:#fbfcff;border:1px solid #dfe6ef;border-radius:14px;padding:18px 18px 16px;box-shadow:0 1px 0 rgba(31,51,73,.03)}
.import-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.import-result-head h3{margin:0 0 4px;font-size:18px;font-weight:720;color:#2f4459}
.import-result-head .secondary{margin:0;font-size:12.5px;color:#7b8b9c}
.import-result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.import-stat{background:#fff;border:1px solid #e7edf4;border-radius:12px;padding:12px 13px;display:flex;flex-direction:column;gap:6px;min-width:0}
.import-stat span{font-size:11.5px;color:#8392a3}
.import-stat strong{font-size:20px;line-height:1;font-weight:750;color:#2e465c}
.import-stat.skipped strong{color:#8b6572}
.import-errors{background:#ffffff;border:1px solid #e5ecf3;border-radius:12px;padding:12px 14px}
.import-errors strong{display:block;font-size:12.5px;color:#455c72;margin-bottom:8px}
.import-errors ul{margin:0;padding-left:18px;color:#5d7186;font-size:12.5px;line-height:1.55}
.import-errors li+li{margin-top:2px}
.import-result-actions{margin-top:14px;padding-top:14px;border-top:1px solid #e8eef5}
@media(max-width:760px){.import-result-stats{grid-template-columns:1fr}.import-result-head{flex-direction:column;align-items:flex-start}}





.export-tabs{display:flex;gap:4px;width:max-content;max-width:100%;padding:4px;background:#f2f5f8;border:1px solid #e3eaf0;border-radius:10px;margin:0 0 18px}
.export-tabs button{border:0;border-radius:7px;background:transparent;padding:9px 14px;font-size:12px;color:#758698;font-weight:600}
.export-tabs button.active{background:#fff;color:#3f668b;box-shadow:0 1px 3px #1c355410}
.site-settings{padding:10px 0;display:grid;gap:12px}.site-settings label{font-size:11.5px;color:#77889b}.site-settings input{margin-top:5px;font-size:12px;min-height:36px}.settings-note{font-size:11px;color:#8c99a8;margin:0}
.site-settings .site-fields{margin:0;padding:0;gap:10px}.site-settings .site-fields label{display:block}
#page-export .site-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.site-name .preview-site-badge{font-size:11px}
#preflight-site-summary{display:none}#page-export .preflight-table{min-width:640px}#page-export .preflight-table td{padding:11px 10px;border-bottom:1px solid #edf1f5}#page-export .preflight-table th{font-size:11px;color:#8092a4;background:#f9fbfd}
.card-link{display:block;font-size:10.5px;margin-top:6px;color:#6a8caa}
#page-export .preview-link{display:block;font-size:10.5px;overflow-wrap:anywhere;word-break:normal;line-height:1.4;margin-top:5px}
#preflight-body .preview-link{max-height:32px;overflow:hidden}
#page-export .preflight-metrics{gap:12px;flex-wrap:wrap;margin-bottom:12px}#page-export .preflight-metrics span{padding:8px 12px;border:1px solid #e6edf3;background:#fafcfd;border-radius:8px;gap:8px;font-size:11.5px}
#page-export .preflight-alert{background:#f8fbfd;border:1px solid #e1eaf2;color:#7c8ea0;font-size:11.5px;padding:11px 13px}
#journal-scroll{max-height:580px;border:1px solid #e4ebf2;border-radius:10px}#page-export .journal-table{min-width:760px;table-layout:fixed;width:100%}#page-export .journal-table th{position:sticky;top:0;background:#f9fbfd;z-index:1;font-size:11px;color:#8393a5}#page-export .journal-table td{vertical-align:top;border-bottom:1px solid #edf1f5;padding:12px 10px;white-space:normal;overflow-wrap:anywhere}
#page-export .journal-table th:nth-child(1){width:18%}#page-export .journal-table th:nth-child(2){width:20%}#page-export .journal-table th:nth-child(3){width:16%}#page-export .journal-table th:nth-child(4){width:27%}#page-export .journal-table th:nth-child(5){width:19%}
#journal-body .preview-link{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.base-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #edf2f6;margin-top:12px;padding-top:12px;font-size:11px;color:#8795a5}.base-pager label{display:flex;align-items:center;gap:8px}.base-pager select{width:78px!important;min-height:32px;height:32px;font-size:11px!important;padding:4px 22px 4px 8px!important;border-radius:8px!important}
.simple-pages{display:flex;align-items:center;gap:9px;font-size:11px;color:#8796a6}.simple-pages button{display:grid;place-items:center;width:30px;height:30px;border:1px solid #e0e9f1;border-radius:7px;background:white;color:#6c839b;font-size:19px;padding:0}.simple-pages button:disabled{opacity:.35}.journal-caption{align-items:center;gap:12px;flex-wrap:wrap}
@media(max-width:1050px){#page-export .site-list{grid-template-columns:1fr}}@media(max-width:600px){.export-tabs{width:100%}.export-tabs button{flex:1;font-size:11px;padding:8px}.base-pager>span{display:none}.site-settings .site-fields{grid-template-columns:1fr}#page-export .preflight-metrics{gap:7px}#page-export .preflight-metrics span{padding:8px;font-size:10px}}



/* v46: compact history, no document rows until a run is opened. */
#page-export #journal-scroll{max-height:none}
#page-export #journal-scroll .journal-table{min-width:690px}
#page-export #journal-scroll .journal-table th:nth-child(1){width:23%}
#page-export #journal-scroll .journal-table th:nth-child(2){width:25%}
#page-export #journal-scroll .journal-table th:nth-child(3){width:16%}
#page-export #journal-scroll .journal-table th:nth-child(4){width:22%}
#page-export #journal-scroll .journal-table th:nth-child(5){width:14%}
#page-export #journal-scroll .journal-table td{vertical-align:middle;padding:11px 12px}
.journal-sites{display:flex;flex-wrap:wrap;align-items:center;gap:5px;max-width:245px}
.journal-detail-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.journal-detail-head h2{margin:0 0 4px}.journal-detail-head p{margin:0}
.journal-detail-scroll{max-height:540px;border:1px solid #e4ebf2;border-radius:10px;overscroll-behavior:contain}
#journal-details .preflight-table{min-width:670px;table-layout:fixed;width:100%}
#journal-details .preflight-table th{position:sticky;top:0;background:#f9fbfd;z-index:1}
#journal-details{scroll-margin-top:20px}
#journal-details-title:focus{outline:none}
@media(max-width:600px){.journal-detail-head .actions{width:100%}.journal-detail-head .actions button{min-height:38px}#journal-details{padding:12px}}



/* v47: one soft separator per model, not two competing borders. */
#base-scroll,#preflight-scroll,#journal-scroll,.journal-detail-scroll{border-color:#e8edf3!important}
.data-table thead th,.preflight-table thead th,.journal-table thead th{border-bottom:.5px solid #e6edf3!important}
#base-body tr>td{border-top:0!important;border-bottom:0!important}
#base-body tr.model-group-end>td,#base-body tr.model-group-start>td[rowspan]{border-bottom:.5px solid #eaf0f5!important}
#base-body tr:last-child>td{border-bottom:0!important}
#preflight-body tr>td,#journal-body tr>td,#journal-details-body tr>td{border-top:0!important;border-bottom:.5px solid #edf2f6!important}
#preflight-body tr:last-child>td,#journal-body tr:last-child>td,#journal-details-body tr:last-child>td{border-bottom:0!important}
/* Date wrappers retain the original hidden input for the existing business logic. */
.reg-date{display:flex;align-items:center;min-width:0;max-width:100%;width:100%;height:39px;margin-top:6px;border:1px solid #dce5ef;border-radius:10px;background:#fff;position:relative;transition:border-color .15s,box-shadow .15s}
.reg-date:hover{border-color:#bfcfdf}
.reg-date:focus-within{border-color:#99b9dc;box-shadow:0 0 0 2px #6397dc0e}
.reg-date>input[type=date][hidden]{display:none!important}
.reg-date input.reg-date-text{flex:1 1 0!important;display:block!important;min-width:0!important;width:0!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;padding:0 0 0 11px!important;border:0!important;border-radius:10px!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:12px!important;font-weight:400!important;color:#3b5066;line-height:1.4!important;font-variant-numeric:tabular-nums}
.reg-date input.reg-date-text::placeholder{color:#97a6b6;opacity:1}
.reg-date:has([aria-invalid=true]){border-color:#d99b9b}
.reg-date button.reg-date-toggle{flex:0 0 31px!important;display:grid!important;place-items:center!important;width:31px!important;min-width:31px!important;max-width:31px!important;height:29px!important;min-height:29px!important;margin:0 4px 0 2px!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#7e92a6!important;box-shadow:none!important;transform:none!important}
.reg-date button.reg-date-toggle:hover,.reg-date.date-open button.reg-date-toggle{color:#466d96!important;background:#f2f7fc!important}
.reg-date-toggle svg{height:17px;width:17px}
.toolbar .date-range-label>.reg-date{flex:1 1 0;min-width:106px;max-width:none;width:auto;height:35px;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.toolbar .date-range-label>.reg-date .reg-date-text{padding-left:2px!important;font-size:11.5px!important}
.toolbar .date-range-label{padding-right:2px!important;gap:5px}
.toolbar .date-range-label>.reg-date .reg-date-toggle{flex-basis:27px!important;width:27px!important;min-width:27px!important;max-width:27px!important;margin-right:0!important}
.registry-calendar{position:fixed;z-index:120;width:292px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow-y:auto;padding:12px;background:#fff;border:1px solid #e0e8f0;border-radius:13px;box-shadow:0 12px 32px rgba(36,59,83,.10),0 2px 5px rgba(36,59,83,.03);font-size:12px;color:#435970;scrollbar-width:thin;overscroll-behavior:contain}
.registry-calendar button{font:inherit;cursor:pointer;border:0;background:transparent;box-shadow:none;transform:none;line-height:1.3;letter-spacing:0;min-width:0;min-height:0;padding:0;color:inherit}
.registry-calendar button:focus-visible{outline:2px solid #adc7e0;outline-offset:1px}
.registry-calendar button:disabled{opacity:.32;cursor:default}
.cal-head{display:flex;align-items:center;gap:4px;margin:0 0 12px}
.cal-head .cal-nav{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:7px;color:#7e91a5}
.cal-head .cal-nav:hover{background:#f3f7fb;color:#3d648b}
.cal-nav svg{width:18px;height:18px}
.cal-heading{display:flex;align-items:center;justify-content:center;gap:3px;flex:1;min-width:0}
.cal-head .cal-title{height:28px;border-radius:7px;padding:4px 7px;font-weight:620;font-size:12px;color:#405970}
.cal-head .cal-title:hover{background:#f5f8fc}
.cal-head .cal-year{color:#8697a8;font-weight:500}
.cal-year-range{color:#5b7086;font-weight:600}
.cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;font-size:10.5px;color:#9aa9b8;margin-bottom:6px;line-height:20px}
.cal-days{display:flex;flex-direction:column;gap:2px}
.cal-week-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.registry-calendar .cal-day{width:100%;height:31px;display:grid;place-items:center;font-size:12px;border:1px solid transparent;border-radius:8px;font-weight:450;color:#4d6278;font-variant-numeric:tabular-nums}
.registry-calendar .cal-day.is-outside{color:#b9c3ce}
.registry-calendar .cal-day:hover:not(:disabled){background:#f4f8fc;color:#416b94}
.registry-calendar .cal-day.is-today{border-color:#dae6f1;color:#527ba3}
.registry-calendar .cal-day[aria-selected=true]{background:#edf4fc;color:#376b9e;border-color:#d6e5f3;font-weight:650}
.cal-foot{display:flex;justify-content:space-between;gap:10px;border-top:.5px solid #edf2f6;margin-top:11px;padding-top:9px}
.cal-foot .cal-text{font-size:11.5px;padding:5px 8px;border-radius:6px;color:#6b8197}
.cal-foot .cal-text:hover{color:#3e6c99;background:#f4f8fc}
.cal-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:3px 0}
.cal-choice-grid .cal-choice{height:41px;border-radius:8px;font-size:11.5px}
.cal-choice-grid .cal-choice:hover{background:#f3f8fc}
.cal-choice-grid .cal-choice[aria-pressed=true]{background:#edf4fc;color:#416c96}
.demo-dataset-note{font-size:11px;color:#8395a7;font-weight:400;margin-left:7px;white-space:nowrap}




/* v49: symmetric close/remove icons, independent of text baseline and font. */
.ui-cross{display:block;width:18px;height:18px;flex:none;pointer-events:none}
button.ui-close-button, .file-entry button.remove-file{
 display:inline-flex;align-items:center;justify-content:center;flex:none;
 padding:0;min-height:32px;min-width:32px;width:32px;height:32px;
 box-sizing:border-box;line-height:1;vertical-align:middle;border:1px solid transparent;
 border-radius:8px;background:transparent;color:#72869a;transform:none;
}
button.ui-close-button{background:#f5f8fb;color:#6d8196}
button.ui-close-button:hover{background:#edf3f9;color:#405f7e}
button.ui-close-button:active,.file-entry button.remove-file:active{transform:none}
.file-entry button.remove-file{width:28px;min-width:28px;height:28px;min-height:28px;color:#9d6470!important}
.file-entry button.remove-file:hover{background:#fcf3f5;color:#a6475b!important}
button.ui-close-button:focus-visible,.file-entry button.remove-file:focus-visible{outline:2px solid #aac5df;outline-offset:2px}
input[type="search"]::-webkit-search-cancel-button{
 -webkit-appearance:none;appearance:none;display:block;width:18px;height:18px;
 margin:0 0 0 6px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2371859b%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%207%2017%2017M17%207%207%2017%22%2F%3E%3C%2Fsvg%3E");
 background-position:center;background-size:18px 18px;background-repeat:no-repeat;
 opacity:.8;
}
input[type="search"]::-webkit-search-cancel-button:hover{opacity:1}
/* Long brands must never run into the neighbouring model column. */
#base-body tr.model-group-start>td:nth-child(2){white-space:normal;overflow-wrap:anywhere}



/* The rail fills the entire page; the sticky menu tracks the visible header. */
.layout{position:relative;isolation:isolate}
.layout::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--nav-rail-width,228px);background:#fff;border-right:1px solid var(--ui-edge);z-index:-1;pointer-events:none}
@media(min-width:721px){
 .layout>.nav{height:calc(100vh - var(--visible-app-header,64px));height:calc(100dvh - var(--visible-app-header,64px));max-height:calc(100dvh - var(--visible-app-header,64px));top:0;min-height:0;align-self:flex-start;border-right:0}
 main{padding-bottom:40px}
}
@media(max-width:720px){.layout::before{display:none}.layout>.nav{max-height:none}main{padding-bottom:28px}}
.journal-controls .journal-clear{color:#87616a;border-color:#e8dfe3;background:#fff;white-space:nowrap}
.journal-controls .journal-clear:hover:not(:disabled){color:#995261;border-color:#dbc5cc;background:#fdf9fa}
.journal-controls .journal-clear:disabled{color:#9b9da6;opacity:.55}
