/* NewlineWork global cross-source smart reconciliation — isolated from existing menus. */
#app .header-actions .nw-sm-launch{
  display:inline-flex!important;
  gap:6px!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-height:38px!important;
  padding:7px 11px!important;
  color:#1e4b93!important;
  font-weight:850!important;
  font-size:12px!important;
  border-radius:10px!important;
  border:1px solid #b2c9f3!important;
  background:#eff5ff!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}
.nw-sm-overlay{
  position:fixed!important;
  z-index:2147482800!important;
  inset:0!important;
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
  overflow:auto!important;
  padding:24px max(12px,calc(env(safe-area-inset-right) + 12px)) calc(25px + env(safe-area-inset-bottom)) max(12px,calc(env(safe-area-inset-left) + 12px))!important;
  background:rgba(17,32,57,.6)!important;
}
.nw-sm-dialog{
  width:min(1160px,100%)!important;
  box-sizing:border-box!important;
  min-width:0!important;
  margin:auto!important;
  padding:24px!important;
  border-radius:18px!important;
  border:1px solid #dce7f7!important;
  background:#fff!important;
  color:#1b2e49!important;
  box-shadow:0 18px 60px rgba(12,30,65,.24)!important;
  font:normal 13px/1.55 "Malgun Gothic","Noto Sans KR",sans-serif!important;
}
.nw-sm-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;flex-wrap:wrap!important;gap:14px!important;border-bottom:1px solid #e2e9f4!important;padding-bottom:15px!important}
.nw-sm-head h2{color:#204d99!important;font-size:24px!important;margin:4px 0!important;font-weight:900!important;line-height:1.3!important}
.nw-sm-head p{color:#697b90!important;margin:0!important;font-size:12px!important}
.nw-sm-eyebrow{color:#245fc1!important;font-size:11px!important;letter-spacing:.06em!important;font-weight:900!important}
.nw-sm-notice{padding:13px 15px!important;background:#f2f7ff!important;color:#274468!important;border:1px solid #c9daf5!important;border-radius:11px!important;margin:17px 0!important}
.nw-sm-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:14px 0!important}
.nw-sm-metrics>div{border:1px solid #d8e2f0!important;border-radius:11px!important;padding:14px!important;background:#f9fbff!important;min-width:0!important}
.nw-sm-metrics>div.ready{background:#eaf4ff!important;border-color:#bad7fb!important}
.nw-sm-metrics small{font-size:11px!important;font-weight:800!important;display:block!important;color:#566d88!important}
.nw-sm-metrics b{display:block!important;margin-top:6px!important;font-size:23px!important;color:#1e4c91!important;font-weight:950!important;white-space:normal!important}
.nw-sm-actions{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;margin:15px 0!important}
.nw-sm-actions button{min-height:44px!important;padding:10px 15px!important;font-weight:900!important}
.nw-sm-hint{font-size:12px!important;color:#526981!important;background:#f8fafc!important;padding:10px!important;border-radius:8px!important}
.nw-sm-section{margin-top:22px!important;min-width:0!important}
.nw-sm-section h3{color:#264a7d!important;font-size:16px!important;font-weight:900!important;margin:0 0 10px!important}
.nw-sm-section h3 small{font-size:12px!important;color:#687f99!important;margin-left:7px!important}
.nw-sm-table-wrap{overflow:auto!important;max-width:100%!important;border:1px solid #e0e7f0!important;border-radius:10px!important;max-height:300px!important}
.nw-sm-table-wrap table{border-collapse:collapse!important;min-width:680px!important;width:100%!important;font-size:11px!important;table-layout:auto!important}
.nw-sm-table-wrap th,.nw-sm-table-wrap td{border-bottom:1px solid #e6ecf3!important;padding:10px!important;text-align:left!important;vertical-align:top!important;overflow-wrap:anywhere!important;word-break:break-word!important}
.nw-sm-table-wrap th{background:#f2f6fc!important;color:#38557e!important;position:sticky!important;top:0!important;z-index:2!important;font-weight:900!important}
.nw-sm-table-wrap td{color:#40516b!important}
.nw-sm-tag{display:inline-block!important;border-radius:7px!important;background:#edf3fd!important;color:#2158a6!important;font-size:10px!important;padding:5px 7px!important;font-weight:800!important}
.nw-sm-empty{padding:24px!important;text-align:center!important;color:#68788f!important}
.nw-sm-footer{font-size:11px!important;line-height:1.5!important;color:#68778c!important;padding:15px 0 0!important}
@media(max-width:800px){
 #app .header-actions .nw-sm-launch{min-height:39px!important;font-size:11px!important;padding:7px 9px!important;max-width:170px!important;white-space:normal!important}
 .nw-sm-overlay{padding:7px 7px calc(12px + env(safe-area-inset-bottom))!important}
 .nw-sm-dialog{padding:14px!important;border-radius:12px!important}
 .nw-sm-head h2{font-size:19px!important}
 .nw-sm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .nw-sm-metrics b{font-size:20px!important}
 .nw-sm-actions{display:grid!important;grid-template-columns:1fr!important}
 .nw-sm-actions button{width:100%!important;min-height:47px!important}
 .nw-sm-section h3{font-size:14px!important}
}
@media print{
 #nwSmartMatchOverlay,#app .nw-sm-launch{display:none!important}
}

/* Fallback for the separate accounting/work shells without the classic top header. */
body .nw-sm-fallback{
 position:fixed!important;
 right:16px!important;
 bottom:calc(22px + env(safe-area-inset-bottom))!important;
 z-index:1200!important;
 display:inline-flex!important;
 justify-content:center!important;
 align-items:center!important;
 min-height:44px!important;
 max-width:210px!important;
 padding:10px 14px!important;
 color:#fff!important;
 background:#2863c7!important;
 border:1px solid #194a98!important;
 border-radius:22px!important;
 font:900 12px/1.3 "Malgun Gothic",sans-serif!important;
 box-shadow:0 4px 16px rgba(24,69,143,.25)!important;
 cursor:pointer!important;
}
@media(max-width:800px){
 body .nw-sm-fallback{
  right:10px!important;
  bottom:calc(94px + env(safe-area-inset-bottom))!important;
  min-height:46px!important;
  font-size:11px!important;
 }
}
@media print{body .nw-sm-fallback{display:none!important}}


/* Small screens retain their existing launcher layout. Desktop mounts in the header. */
body #nwSmartMatchLauncher.nw-sm-fixed-launch{
  position:fixed!important;
  z-index:2147482500!important;
  right:22px!important;
  bottom:24px!important;
  left:auto!important;
  top:auto!important;
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  justify-content:center!important;
  align-items:center!important;
  min-width:170px!important;
  max-width:min(240px,calc(100vw - 24px))!important;
  min-height:52px!important;
  padding:12px 18px!important;
  border:2px solid #fff!important;
  border-radius:999px!important;
  background:#1f58b3!important;
  color:#fff!important;
  box-shadow:0 8px 26px rgba(20,54,117,.35)!important;
  font:900 14px/1.25 "Malgun Gothic","Noto Sans KR",sans-serif!important;
  letter-spacing:-.02em!important;
  white-space:normal!important;
  text-align:center!important;
  cursor:pointer!important;
  transform:none!important;
}
body #nwSmartMatchLauncher.nw-sm-fixed-launch:focus-visible{
  outline:3px solid #facc15!important;
  outline-offset:3px!important;
}
@media(max-width:800px){
  body #nwSmartMatchLauncher.nw-sm-fixed-launch{
    right:12px!important;
    bottom:calc(94px + env(safe-area-inset-bottom))!important;
    min-width:154px!important;
    max-width:min(195px,calc(100vw - 28px))!important;
    min-height:50px!important;
    font-size:12px!important;
    padding:11px 13px!important;
  }
}
@media print{
  body #nwSmartMatchLauncher.nw-sm-fixed-launch{display:none!important}
}

/* Logo-left desktop action; never floats over form save/cancel buttons. */
body #nwSmartMatchLauncher.nw-sm-header-launch,
body #nwSmartMatchLauncher.nw-sm-inline-launch{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 1 auto!important;
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:40px!important;
  padding:9px 13px!important;
  margin:0!important;
  border:1px solid #c7d8f1!important;
  border-radius:11px!important;
  background:#edf4ff!important;
  color:#225bb0!important;
  box-shadow:0 2px 6px rgba(26,66,126,.06)!important;
  font:800 13px/1.35 "Malgun Gothic","Noto Sans KR",sans-serif!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  transform:none!important;
}
body #nwSmartMatchLauncher.nw-sm-inline-launch{margin:12px 20px!important}
body #nwSmartMatchLauncher.nw-sm-header-launch:hover,
body #nwSmartMatchLauncher.nw-sm-inline-launch:hover{background:#dfeaff!important;border-color:#8fb3e7!important}
body #nwSmartMatchLauncher.nw-sm-header-launch:focus-visible,
body #nwSmartMatchLauncher.nw-sm-inline-launch:focus-visible{outline:3px solid #3b82f6!important;outline-offset:3px!important}
html body #nwSmartMatchLauncher[hidden]{display:none!important;pointer-events:none!important}
@media print{html body #nwSmartMatchLauncher.nw-sm-launch{display:none!important}}
