.header-user-tools { display:flex; align-items:center; justify-content:flex-end; gap:clamp(6px,1vw,16px); min-width:0; justify-self:end; }
.customer-menu { position:relative; flex:none; font:600 13px/1.35 Inter,system-ui,sans-serif; color:#123554; }
.customer-menu .customer-trigger { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px; padding:7px 11px; border:1px solid #b8dada; border-radius:8px; color:#075e65; background:#f4faf9; text-decoration:none; cursor:pointer; }
.customer-panel [data-checking] { display:block; padding:10px; font-weight:500; color:#476576; }
.customer-panel [data-checking][hidden] { display:none; }
.customer-trigger::-webkit-details-marker,.language-toggle::-webkit-details-marker { display:none; }
.menu-chevron { width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
details[open] > summary .menu-chevron { transform:translateY(1px) rotate(225deg); }
.customer-panel { position:absolute; z-index:60; top:calc(100% + 6px); inset-inline-end:0; width:255px; max-width:calc(100vw - 24px); padding:7px; color:#123554; background:white; border:1px solid #d4e5e9; border-radius:12px; box-shadow:0 8px 28px #0a34451e; text-align:start; }
.customer-identity { padding:7px 9px 10px; border-bottom:1px solid #dfebed; color:#476576; font-size:12px; font-weight:500; }
.customer-identity bdi { display:block; margin-top:3px; color:#123554; font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.customer-panel [hidden] { display:none; }
.customer-panel a,.customer-panel button { display:flex; width:100%; min-height:42px; align-items:center; padding:8px 9px; margin:0; border:0; border-radius:6px; background:transparent; color:#16455b; font:inherit; text-align:start; text-decoration:none; cursor:pointer; }
.customer-panel form { margin:0; }
.customer-menu .customer-trigger:hover,.customer-panel a:hover,.customer-panel button:hover { background:#e8f5f4; }
.customer-menu :is(summary,a,button):focus-visible { outline:3px solid #129ca0; outline-offset:2px; }
@media (max-width:850px) {
 .header-user-tools { gap:6px; }
 .customer-menu .customer-trigger { min-height:44px; padding:7px 9px; font-size:12px; }
 .customer-panel { inset-inline-end:-54px; }
}
@media print { .customer-menu { display:none; } }

/* Site-wide notices and navigation. */
.release-notice {
  padding: 6px 16px;
  background: #fff3d9;
  color: #123554;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
@media print {
  .release-notice { display: none; }
}

/* Shared language navigation: a reserved right-hand slot on every page. */
.language-switch{position:relative;display:inline-flex;align-items:center;justify-self:end;white-space:nowrap;font:600 10px/1.4 Inter,system-ui,sans-serif;color:#315b70;flex-shrink:0}
.language-toggle { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:7px 10px; border:1px solid #bbdfde; border-radius:8px; background:#e8f5f4; color:#075e65; font:700 11px/1.4 Inter,system-ui,sans-serif; cursor:pointer; }
.language-options { display:flex; flex-direction:column; gap:2px; position:absolute; top:calc(100% + 6px); inset-inline-end:0; z-index:60; min-width:172px; max-width:calc(100vw - 24px); padding:7px; border:1px solid #d5e7eb; border-radius:12px; background:white; box-shadow:0 8px 28px #0a34451e; }
.language-options a { display:flex; align-items:center; gap:10px; min-height:40px; padding:8px 10px; color:#274762; text-decoration:none; border-radius:6px; font:600 13px/1.4 Inter,system-ui,sans-serif; }
.language-options a[aria-current] { color:#00777d; background:#e8f5f4; }
.language-options a:hover { background:#f1f8f8; }
.language-check { margin-inline-start:auto; }
.language-switch :is(a,summary):focus-visible { outline:3px solid #19a7a0; outline-offset:2px; }
.language-switch img { width:16px; height:12px; object-fit:cover; border-radius:2px; box-shadow:0 0 0 1px #23475d22; flex:none; }
.data-preview:after{content:attr(data-source)}
.site-header .nav-shell{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:20px;row-gap:0;width:min(1440px,calc(100% - 64px))}
.site-header .brand{grid-column:1;grid-row:1}
.site-header .navigation{grid-column:2;grid-row:1;justify-self:center;order:0;width:auto}
.site-header .language-switch{grid-column:3;grid-row:1;margin:0;order:0}
.navbar .navinner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px 20px}
.navbar .logo{grid-column:1;grid-row:1}
.navbar .navlinks{grid-column:2;grid-row:1;justify-content:flex-end;flex-wrap:wrap}
.navbar .language-switch{grid-column:3;grid-row:1;margin:0}
.tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px}
.tools>.button-dashboard{grid-column:1;grid-row:1;justify-self:start}
.tools>#report-print{grid-column:2;grid-row:1}
.tools>.language-switch{grid-column:3;grid-row:1}
@media(min-width:851px) and (max-width:1400px){
 .site-header .nav-shell{grid-template-columns:minmax(0,1fr) auto;padding-top:8px}
 .site-header .language-switch{grid-column:2}
 .site-header .navigation{grid-column:1/-1;grid-row:2;justify-self:end;justify-content:flex-end;padding-bottom:12px}
 html{scroll-padding-top:150px}.contact-panel{scroll-margin-top:160px}
}
@media(max-width:1000px){
 .navbar .navinner{grid-template-columns:minmax(0,1fr) auto}
 .navbar .language-switch{grid-column:2}
 .navbar .navlinks{grid-column:1/-1;grid-row:2;width:100%;justify-content:flex-end}
}
@media(max-width:850px){
 .site-header .nav-shell{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;width:calc(100% - 32px);min-height:74px}
 .site-header .brand{min-width:0;margin:0}.site-header .brand img{width:150px}
 .site-header .menu-toggle{grid-column:2;grid-row:1;order:0;margin:0}
 .site-header .navigation{grid-column:1/-1;grid-row:auto;justify-self:stretch;width:auto;order:0}
 .site-header .language-switch{grid-column:3}
 .language-toggle,.language-options a { min-height:44px; }
}
@media(max-width:600px){
 .tools{grid-template-columns:minmax(0,1fr) auto}
 .tools>.language-switch{grid-column:2;grid-row:1}
 .tools>#report-print{grid-column:1/-1;grid-row:2;justify-self:center}
 .tools>.button-dashboard{font-size:12px;padding:10px}
}
@media print{.language-switch{display:none}}

/* The sample remains visible when the main navigation collapses. */
.nav-demo {
 display:inline-flex; align-items:center; justify-content:center; justify-self:end;
 min-height:42px; padding:8px 14px; border-radius:8px; background:#006d73; color:white;
 font:700 13px/1.2 Inter,system-ui,sans-serif; text-decoration:none; white-space:nowrap;
}
.nav-demo:hover { background:#005a61; color:white }
.nav-demo:focus-visible { outline:3px solid #0f566f; outline-offset:3px }
.site-header .nav-shell:has(.nav-demo), .navbar .navinner:has(.nav-demo) {grid-template-columns:auto minmax(0,1fr) auto auto}
.site-header .nav-demo,.navbar .nav-demo {grid-column:3;grid-row:1}
.site-header .nav-demo + .header-user-tools,.navbar .nav-demo + .header-user-tools {grid-column:4}
@media(min-width:851px) and (max-width:1400px) {
 .site-header .nav-shell:has(.nav-demo){grid-template-columns:minmax(0,1fr) auto auto}
 .site-header .nav-demo{grid-column:2}.site-header .nav-demo + .header-user-tools{grid-column:3}
}
@media(min-width:1401px) {
 #inicio .nav-shell:has(.nav-demo){width:min(1680px,calc(100% - 64px))}
 #inicio .navigation{min-width:0;max-width:100%;justify-self:stretch;justify-content:center;flex-wrap:wrap;gap:5px 12px;padding-block:8px}
}
@media(max-width:1000px) {
 .navbar .navinner:has(.nav-demo){grid-template-columns:minmax(0,1fr) auto auto}
 .navbar .nav-demo{grid-column:2}.navbar .nav-demo + .header-user-tools{grid-column:3}
}
@media(max-width:850px) {
 .site-header .nav-shell:has(.nav-demo){grid-template-columns:minmax(0,1fr) auto auto auto}
 .site-header .nav-demo{grid-column:2}.site-header .nav-shell:has(.nav-demo) .menu-toggle{grid-column:3}
 .site-header .nav-shell:has(.nav-demo) .brand img,.navbar .navinner:has(.nav-demo) .logo img{max-width:100%}
 .site-header .nav-shell:has(.header-user-tools) { column-gap:8px; }
 .nav-demo{font-size:12px;min-height:44px;padding:8px 10px}
}

/* Local CJK fonts keep Chinese readable without extra font downloads. */
@media(max-width:680px) {
 .site-header .nav-shell:has(.nav-demo),.navbar .navinner:has(.nav-demo) { grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; padding-block:8px; }
 .site-header .nav-demo + .header-user-tools,.navbar .nav-demo + .header-user-tools { grid-row:1; grid-column:2; }
 .site-header .nav-demo,.navbar .nav-demo { grid-column:1; grid-row:2; justify-self:start; }
 .site-header .nav-shell:has(.nav-demo) .menu-toggle { grid-column:2; grid-row:2; justify-self:end; }
 .navbar .navinner:has(.nav-demo) .navlinks { grid-column:1/-1; grid-row:3; }
 .navbar .navinner:has(.nav-demo) .logo { min-width:0; }
}
html:lang(zh) body,html:lang(zh) button,html:lang(zh) input,html:lang(zh) select,html:lang(zh) textarea{font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
html:lang(zh) h1,html:lang(zh) h2,html:lang(zh) h3{line-height:1.35;letter-spacing:0}
html:lang(zh) .eyebrow{letter-spacing:.12em}

/* Local Korean fonts preserve readable Hangul in the site and printable reports. */
html:lang(ko) body,html:lang(ko) button,html:lang(ko) input,html:lang(ko) select,html:lang(ko) textarea{font-family:Inter,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans CJK KR",sans-serif}
html:lang(ko) h1,html:lang(ko) h2,html:lang(ko) h3{line-height:1.35;letter-spacing:0;word-break:keep-all;overflow-wrap:anywhere}
html:lang(ko) .eyebrow{letter-spacing:.08em}
