/* Optional sidebar module, loaded after styles.css. */
.app-shell.quote-sidebar-ready{grid-template-columns:200px minmax(0,1fr);min-width:0;max-width:100%}
.app-shell.quote-sidebar-ready.quote-sidebar-collapsed{grid-template-columns:80px minmax(0,1fr)}
.app-shell.quote-sidebar-ready>.sidebar{padding:16px 14px 20px;min-width:0;overflow-x:hidden}
.app-shell.quote-sidebar-ready>main{min-width:0;max-width:100%}
.app-shell.quote-sidebar-ready .quote-sidebar-toggle{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:32px;flex-shrink:0;width:100%;padding:3px 6px;margin:0 0 18px;border:1px solid #ffffff38;border-radius:6px;background:#ffffff08;color:#dce7f4;font-size:13px;line-height:1.5}
.app-shell.quote-sidebar-ready .quote-sidebar-toggle:hover{background:#ffffff14;color:white}
.app-shell.quote-sidebar-ready .quote-sidebar-toggle-arrow{font:500 25px/1 Arial,sans-serif}
.app-shell.quote-sidebar-ready .wordmark{margin:0 8px 28px;font-size:28px;letter-spacing:-1.4px;min-width:0}
.app-shell.quote-sidebar-ready .wordmark .quote-sidebar-brand-long{display:block;margin:0;color:inherit;font:inherit;letter-spacing:inherit}
.app-shell.quote-sidebar-ready .wordmark .quote-sidebar-brand-long>span{display:block;font:400 12px/1.7 "Microsoft YaHei",sans-serif;letter-spacing:2px;margin-top:10px;color:#cfdae7}
.app-shell.quote-sidebar-ready .wordmark .quote-sidebar-brand-short{display:none;margin:0;color:inherit;font:700 27px/1 Arial,sans-serif;letter-spacing:0}
.app-shell.quote-sidebar-ready .workspace-label{margin-left:8px;margin-right:8px;font-size:12px;letter-spacing:0}
.app-shell.quote-sidebar-ready .side-nav{min-width:0;gap:8px}
.app-shell.quote-sidebar-ready .nav-item{min-width:0;font-size:15px;line-height:1.6;padding:12px 9px;gap:8px}
.app-shell.quote-sidebar-ready .nav-icon{flex:0 0 18px;width:18px;font-size:18px}
.app-shell.quote-sidebar-ready .quote-sidebar-nav-long{min-width:0}
.app-shell.quote-sidebar-ready .quote-sidebar-nav-short{display:none}
.app-shell.quote-sidebar-ready .nav-count{font-size:11px;min-width:20px;padding:1px 4px}
.app-shell.quote-sidebar-ready .sidebar-bottom{padding-left:8px;padding-right:8px;font-size:11px}
.app-shell.quote-sidebar-ready.quote-sidebar-collapsed>.sidebar{padding-left:10px;padding-right:10px}
.app-shell.quote-sidebar-collapsed .quote-sidebar-toggle{justify-content:center;margin-bottom:20px;padding-left:0;padding-right:0}
.app-shell.quote-sidebar-collapsed .quote-sidebar-toggle-caption,.app-shell.quote-sidebar-collapsed .workspace-label,.app-shell.quote-sidebar-collapsed .sidebar-bottom,.app-shell.quote-sidebar-collapsed .nav-count{display:none}
.app-shell.quote-sidebar-ready.quote-sidebar-collapsed .wordmark{margin:0 0 26px;text-align:center}
.app-shell.quote-sidebar-ready.quote-sidebar-collapsed .wordmark .quote-sidebar-brand-long{display:none}
.app-shell.quote-sidebar-ready.quote-sidebar-collapsed .wordmark .quote-sidebar-brand-short{display:block}
.app-shell.quote-sidebar-ready.quote-sidebar-collapsed .nav-item{flex-direction:column;justify-content:center;text-align:center;padding:12px 2px;gap:5px;white-space:normal;font-size:15px}
.app-shell.quote-sidebar-ready.quote-sidebar-collapsed .quote-sidebar-nav-long{display:none}
.app-shell.quote-sidebar-ready.quote-sidebar-collapsed .quote-sidebar-nav-short{display:block;white-space:nowrap}
.quote-sidebar-layout .toast{left:calc(50% + 100px);max-width:min(650px,calc(100vw - 232px))}
.quote-sidebar-layout.quote-sidebar-is-collapsed .toast{left:calc(50% + 40px);max-width:min(650px,calc(100vw - 112px))}
@media(max-width:700px){
  .app-shell.quote-sidebar-ready,.app-shell.quote-sidebar-ready.quote-sidebar-collapsed{display:block}
  .app-shell.quote-sidebar-ready>.sidebar{position:relative;height:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:14px 12px}
  .app-shell.quote-sidebar-ready .quote-sidebar-toggle{grid-column:2;grid-row:1;width:auto;min-width:40px;margin:0;padding:5px 9px;align-self:start}
  .app-shell.quote-sidebar-ready .wordmark,.app-shell.quote-sidebar-ready.quote-sidebar-collapsed .wordmark{grid-column:1;grid-row:1;margin:0;font-size:26px;text-align:left;justify-self:start}
  .app-shell.quote-sidebar-ready .wordmark .quote-sidebar-brand-long>span{margin-top:5px;font-size:11px}
  .app-shell.quote-sidebar-ready .workspace-label,.app-shell.quote-sidebar-ready .sidebar-bottom,.app-shell.quote-sidebar-ready .nav-count{display:none}
  .app-shell.quote-sidebar-ready .side-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px;overflow:visible}
  .app-shell.quote-sidebar-ready .nav-item,.app-shell.quote-sidebar-ready.quote-sidebar-collapsed .nav-item{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;padding:10px 4px;gap:4px;font-size:14px;line-height:1.55;white-space:normal}
  .app-shell.quote-sidebar-ready .quote-sidebar-nav-long{white-space:normal;overflow-wrap:anywhere}
  .app-shell.quote-sidebar-ready .nav-icon{flex-basis:auto}
  .app-shell.quote-sidebar-ready.quote-sidebar-collapsed .nav-icon{display:none}
  .app-shell.quote-sidebar-ready.quote-sidebar-collapsed>.sidebar{padding-left:12px;padding-right:12px}
  .quote-sidebar-layout .toast,.quote-sidebar-layout.quote-sidebar-is-collapsed .toast{left:50%;max-width:90vw}
}

/* Portaled brand menu remains visible beside a collapsed sidebar. */
.app-shell.quote-sidebar-ready button.wordmark{display:block;padding:0;border:0;background:transparent;color:#fff;text-align:left;cursor:pointer}
.app-shell.quote-sidebar-ready button.wordmark:hover{color:#e1d1ac}
.app-shell.quote-sidebar-ready button.wordmark[aria-expanded="true"]{color:#f1d58e}
#quote-brand-menu{position:fixed;z-index:180;width:220px;max-width:calc(100vw - 20px);margin:0;padding:6px;background:#fff;border:1px solid #d4dfe9;border-radius:8px;box-shadow:0 9px 26px #092b5129;color:#182d43}
#quote-brand-menu[hidden]{display:none!important}
#quote-brand-menu .nav-item{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:100%;min-height:40px;gap:9px;padding:9px 11px;border:0;border-radius:5px;background:#fff;color:#183b61;text-align:left;font-size:14px;font-weight:600;line-height:1.5;white-space:normal;box-shadow:none}
#quote-brand-menu .nav-item:hover,#quote-brand-menu .nav-item:focus-visible{background:#eef4fa;color:#092b51}
#quote-brand-menu .nav-item.active{background:#eef4fa;color:#092b51}
#quote-brand-menu .nav-icon{flex:0 0 18px;width:18px;font-size:18px}
#quote-brand-menu .nav-count{margin-left:auto;flex:0 0 auto;min-width:24px;padding:1px 5px;border-radius:4px;background:#e1eaf3;color:#325573;font-size:11px}
