/* DISPLAY-001: persistent desktop navigation and one header. */
body.nx-display-001{box-sizing:border-box!important;padding-left:240px!important;padding-top:60px!important;margin:0!important;}
body.nx-display-001 #nautix-common-shell{position:fixed!important;top:0!important;left:0!important;right:0!important;height:60px!important;min-height:60px!important;z-index:2147480000;display:flex;align-items:center;gap:10px;background:#0b2748;color:white;padding:8px 14px;box-sizing:border-box;font:600 13px 'Segoe UI',Arial,sans-serif;}
body.nx-display-001 #nautix-common-shell a{color:white;text-decoration:none;}
body.nx-display-001 #nautix-common-shell .nx4-brand{display:flex;align-items:center;gap:9px;}
body.nx-display-001 #nautix-common-shell .nx4-brand-text{display:flex;flex-direction:column;}
body.nx-display-001 #nautix-common-shell .nx4-spacer{flex:1;}
body.nx-display-001 #nautix-common-shell .nx4-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:20vw;}
body.nx-display-001 #nautix-common-shell .nx4-vessel-wrap{display:flex;align-items:center;gap:8px;}
body.nx-display-001 #nautix-common-shell .nx4-vessel-select{width:230px;max-width:22vw;}
body.nx-display-has-command #nautix-common-shell{display:none!important;}
body.nx-display-001 #nx-primary-ribbon, #nx-display-sidebar{position:fixed!important;top:60px!important;bottom:0!important;left:0!important;width:240px!important;box-sizing:border-box;overflow-y:auto!important;background:#0b1f33;color:#dce9f3;padding:12px 10px;z-index:2147479000;font:600 13px 'Segoe UI',Arial,sans-serif;border-right:1px solid #284053;}
#nx-display-sidebar .nx-display-link{display:block;color:#dce9f3;text-decoration:none;padding:11px 12px;border-radius:8px;line-height:1.4;}
#nx-display-sidebar .nx-display-link:hover,#nx-display-sidebar [aria-current='page']{background:#123d65;color:white;}
#nx-display-sidebar .nx-display-group{border-top:1px solid #284053;margin-top:12px;padding:14px 12px 5px;text-transform:uppercase;letter-spacing:.09em;font-size:10px;color:#9fc2dc;}
#nx-display-header{position:fixed;top:0;left:0;right:0;height:60px;display:flex;align-items:center;gap:20px;padding:0 20px;background:#0b2748;color:white;z-index:2147480000;font:600 14px 'Segoe UI',Arial,sans-serif;box-sizing:border-box;}
#nx-display-header a{color:white;text-decoration:none;font-weight:800;}
#nx-display-header button{background:#163754;color:white;border:1px solid #55718e;border-radius:8px;padding:8px;}
body.nx-display-001 #nx5-module-strip,body.nx-display-001 #nx6-module-strip{position:sticky!important;top:60px!important;z-index:200!important;margin-left:0!important;width:auto!important;}
body.nx-display-001 #nx5-module-strip .nx5-strip-link,body.nx-display-001 #nx5-module-strip .nx5-strip-spacer~.nx5-strip-sep,body.nx-display-001 #nx6-ux-audit{display:none!important;}
body.nx-display-001 .nx-cc-page{max-width:1480px;margin:0 auto;padding:28px 24px;}
.nx-display-tools{margin:24px 0;border:1px solid #dbe4ec;border-radius:10px;background:#fff;padding:14px;color:#203247;}
.nx-display-tools summary{cursor:pointer;font:600 13px 'Segoe UI',Arial,sans-serif;}
@media(max-width:1100px){body.nx-display-001 #nautix-common-shell .nx4-title,body.nx-display-001 .nx4-binding{display:none;}body.nx-display-001 #nautix-common-shell .nx4-vessel-select{width:170px;max-width:22vw;}}
@media(max-width:800px){body.nx-display-001{padding-left:0!important;}#nx-display-sidebar,body.nx-display-001 #nx-primary-ribbon{transform:translateX(-100%);}body.nx-mobile-ribbon-open #nx-display-sidebar,body.nx-mobile-ribbon-open #nx-primary-ribbon{transform:translateX(0);}body.nx-display-001 #nautix-common-shell .nx4-brand-text small,body.nx-display-001 #nautix-common-shell .nx4-admin-link,body.nx-display-001 #nautix-common-shell .nx4-vessel-wrap label{display:none;}body.nx-display-001 #nautix-common-shell{gap:5px;padding:6px;flex-wrap:nowrap!important;}body.nx-display-001 #nautix-common-shell .nx4-brand-text{font-size:11px;}body.nx-display-001 #nautix-common-shell .nx4-vessel-select{width:125px;max-width:30vw;}body.nx-display-001 .nx-cc-page{padding:20px 12px;}}
@media print{body.nx-display-001{padding:0!important;}#nx-display-sidebar,#nx-display-header,#nx-primary-ribbon,#nx-command-bar,#nautix-common-shell,#nx5-module-strip{display:none!important;}}

body.nx-display-001:has(#nx-primary-ribbon) #nx-display-sidebar{display:none!important;}

#nx-display-sidebar button.nx-display-link{border:0;background:transparent;text-align:left;width:100%;font:inherit;cursor:pointer;}

body.nx-display-001 #nautix-common-shell .nx4-nav-link,body.nx-display-001 #nautix-common-shell .nx4-nav-button{border:1px solid #55718e;background:#163754;color:#fff;border-radius:8px;padding:8px 10px;cursor:pointer;white-space:nowrap;font:600 13px 'Segoe UI',Arial,sans-serif;}
body.nx-display-001 #nautix-common-shell .nx4-mark{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#1678b9;}

/* DISPLAY-005: fluid outer application layout, based on browser viewport. */
@media screen {
 html:has(body.nx-display-001){min-width:0;}
 body.nx-display-001{width:100%!important;max-width:none!important;min-width:0!important;--nx-page-gutter:clamp(12px,1.2vw,28px);}
 /* Only outer page wrappers: never modal, form-card or drawing dimensions. */
 body.nx-display-001 > main,
 body.nx-display-001 > .page,
 body.nx-display-001 > .wrap,
 body.nx-display-001 > .container,
 body.nx-display-001 > .shell,
 body.nx-display-001 > .app-shell,
 body.nx-display-001 > .nx-cc-page,
 body.nx-display-001 > .content-wrapper,
 body.nx-display-001 > .main-content {
  box-sizing:border-box!important;max-width:none!important;min-width:0!important;width:100%!important;margin-left:0!important;margin-right:0!important;
 }
 body.nx-display-001 > main,
 body.nx-display-001 > .page,
 body.nx-display-001 > .wrap,
 body.nx-display-001 > .container,
 body.nx-display-001 > .nx-cc-page,
 body.nx-display-001 > .content-wrapper,
 body.nx-display-001 > .main-content {
  padding-left:var(--nx-page-gutter)!important;padding-right:var(--nx-page-gutter)!important;
 }
 body.nx-display-001 > .app-shell > main,
 body.nx-display-001 > .app-shell > .page,
 body.nx-display-001 > .app-shell > .container,
 body.nx-display-001 > .shell > main,
 body.nx-display-001 > .shell > .page {
  box-sizing:border-box!important;max-width:none!important;min-width:0!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:var(--nx-page-gutter)!important;padding-right:var(--nx-page-gutter)!important;
 }
 /* PMS operating-context bar must align with the now fluid main content. */
 body.nx-display-001 > .app-shell > .context-bar {
  box-sizing:border-box!important;max-width:none!important;min-width:0!important;width:auto!important;margin-left:var(--nx-page-gutter)!important;margin-right:var(--nx-page-gutter)!important;
 }
}

/* DISPLAY-006: additional outer layouts, including SMS Viewer and reader. */
@media screen {
 body.nx-display-001 > .app,
 body.nx-display-001 > .read-page,
 body.nx-display-001 > .layout,
 body.nx-display-001 > .dashboard,
 body.nx-display-001 > .workspace,
 body.nx-display-001 .nx-fluid-layout {
  box-sizing:border-box!important;max-width:none!important;min-width:0!important;width:100%!important;margin-left:0!important;margin-right:0!important;
 }
 body.nx-display-001 > .app,
 body.nx-display-001 > .read-page,
 body.nx-display-001 > .workspace,
 body.nx-display-001 .nx-fluid-layout {
  padding-left:var(--nx-page-gutter)!important;padding-right:var(--nx-page-gutter)!important;
 }
}

/* SMS-READ-007: screen readability, scoped to the expanded SMS reader. */
@media screen {
 body.nx-display-001.sms-procedure-view .procedure-shell {
  grid-template-columns:clamp(280px,19vw,360px) minmax(0,1fr)!important;
  gap:24px!important;padding:22px 24px 30px!important;align-items:start;
 }
 body.nx-display-001.sms-procedure-view .procedure-toc {
  width:100%!important;min-width:0!important;box-sizing:border-box;
  top:108px!important;max-height:calc(100vh - 130px)!important;padding:16px!important;
 }
 body.nx-display-001.sms-procedure-view .procedure-toc-title {font-size:15px!important;line-height:1.5!important;}
 body.nx-display-001.sms-procedure-view .procedure-toc a {
  font-size:15px!important;line-height:1.55!important;padding-top:9px!important;padding-bottom:9px!important;
  white-space:normal!important;overflow-wrap:break-word;
 }
 body.nx-display-001.sms-procedure-view .procedure-content {min-width:0!important;max-width:none!important;margin-left:0!important;margin-right:0!important;}
 body.nx-display-001.sms-procedure-view .read-body,
 body.nx-display-001.sms-procedure-view .subsection-body {font-size:18px!important;line-height:1.7!important;}
 body.nx-display-001.sms-procedure-view :is(.read-body,.subsection-body) :is(p,li,td,th,blockquote,dd,dt) {font-size:18px!important;line-height:1.7!important;}
 body.nx-display-001.sms-procedure-view :is(.read-body,.subsection-body) :is(p,li,td,th) span {font-size:inherit!important;}
 body.nx-display-001.sms-procedure-view :is(.read-body,.subsection-body) h1 {font-size:30px!important;line-height:1.3!important;}
 body.nx-display-001.sms-procedure-view :is(.read-body,.subsection-body) h2 {font-size:25px!important;line-height:1.35!important;}
 body.nx-display-001.sms-procedure-view :is(.read-body,.subsection-body) h3 {font-size:22px!important;line-height:1.4!important;}
 body.nx-display-001.sms-procedure-view :is(.read-body,.subsection-body) h4,
 body.nx-display-001.sms-procedure-view .subsection-header {font-size:20px!important;line-height:1.4!important;}
 body.nx-display-001.sms-procedure-view .read-body > div,
 body.nx-display-001.sms-procedure-view .subsection-body > div {
  box-sizing:border-box!important;max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;
 }
 body.nx-display-001.sms-procedure-view :is(.read-body,.subsection-body) table {font-size:16px!important;}
 body.nx-display-001.sms-procedure-view :is(.read-body,.subsection-body) img {max-width:100%;height:auto;}
 body.nx-display-001.sms-procedure-view .read-header {flex-wrap:wrap;gap:12px;}
 body.nx-display-001.sms-procedure-view .read-actions {flex-wrap:wrap;}
}
@media screen and (max-width:1100px) {
 body.nx-display-001.sms-procedure-view .procedure-shell {grid-template-columns:1fr!important;padding:16px!important;}
 body.nx-display-001.sms-procedure-view .procedure-toc {position:relative!important;top:auto!important;max-height:280px!important;}
}
