/* Staff Ledger next UI. Rules apply only while body.ui-next is set, so the current screens stay unchanged. */
body.ui-next{background:#f3f6f2;color:#1c2e26;}
body.ui-next .nx-app{min-height:100dvh;display:flex;flex-direction:column;}
body.ui-next .nx-side{display:none;}
body.ui-next .nx-main{flex:1;display:flex;flex-direction:column;min-width:0;}
body.ui-next h1,body.ui-next h2,body.ui-next p,body.ui-next button,body.ui-next a{overflow-wrap:break-word;}
body.ui-next h1{font-size:1.75rem;line-height:1.2;margin:8px 0;}
body.ui-next .nx-bar{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;padding:12px 16px 8px;flex-wrap:wrap;}
body.ui-next .nx-brand{flex:1 1 140px;min-width:0;font-weight:700;letter-spacing:-.02em;color:#163328;text-decoration:none;}
body.ui-next .nx-brand small{display:block;font-weight:500;color:#3e5248;letter-spacing:0;font-size:12px;}
body.ui-next .nx-bar .nx-actions{flex:0 1 auto;justify-content:flex-end;}
body.ui-next .nx-content{flex:1;min-width:0;padding:4px 16px 180px;}
body.ui-next .nx-tabs{position:fixed;left:0;right:0;bottom:0;display:flex;gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d5e0d8;z-index:5;}
body.ui-next .nx-tabs button{flex:1 1 0;min-width:0;min-height:44px;border:0;background:transparent;color:#3e5248;font:inherit;font-size:12px;line-height:1.2;padding:6px 4px;border-radius:12px;white-space:normal;}
body.ui-next .nx-tabs button[aria-current="page"]{background:#e7f2eb;color:#163328;font-weight:650;}
body.ui-next .nx-hero h1{font-size:2rem;line-height:1.15;letter-spacing:-.03em;margin:8px 0;}
body.ui-next .nx-hero h1 em{font-style:italic;color:#234c39;}
body.ui-next .nx-card{background:#fff;border:1px solid #d5e0d8;border-radius:18px;padding:16px;box-shadow:0 8px 24px #1633280d;}
body.ui-next .nx-kicker{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#5c4314;font-weight:700;}
body.ui-next .nx-stack{display:flex;flex-direction:column;gap:12px;}
body.ui-next .nx-row{display:flex;justify-content:space-between;gap:12px;align-items:center;}
body.ui-next .nx-actions{display:flex;flex-wrap:wrap;gap:8px;}
body.ui-next .nx-note{background:#f8edd4;color:#5c4314;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.4;}
body.ui-next button.nx-note{display:block;width:100%;margin:0 0 12px;border:0;text-align:left;font:inherit;color:#5c4314;}
body.ui-next .nx-muted{color:#3e5248;}
body.ui-next .nx-figure{font-size:1.6rem;font-variant-numeric:tabular-nums;}
body.ui-next .nx-person,body.ui-next button.nx-person{display:flex;gap:10px;align-items:center;width:100%;box-sizing:border-box;min-height:44px;padding:10px 4px;border:0;border-top:1px solid #d5e0d8;background:transparent;color:inherit;font:inherit;text-align:left;}
body.ui-next .nx-person:first-child,body.ui-next button.nx-person:first-child{border-top:0;}
body.ui-next .nx-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
body.ui-next .nx-amt{flex:none;font-variant-numeric:tabular-nums;}
body.ui-next .nx-chip{display:inline-block;width:fit-content;margin-top:4px;background:#f8edd4;color:#5c4314;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:700;}
body.ui-next .nx-avatar{width:36px;height:36px;flex:none;border-radius:50%;background:#e7f2eb;color:#163328;display:grid;place-items:center;font-size:13px;font-weight:700;}
body.ui-next .nx-status{font-size:12px;border-radius:999px;padding:3px 8px;background:#e7f2eb;color:#163328;}
body.ui-next .nx-status.wait{background:#f8edd4;color:#5c4314;}
body.ui-next .nx-status.bad{background:#fdf3f1;color:#8c3b32;}
body.ui-next .nx-cal,body.ui-next .nx-cal-head{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}
body.ui-next .nx-cal-head span{text-align:center;font-size:12px;font-weight:700;color:#3e5248;padding:4px 0;}
body.ui-next .nx-day{aspect-ratio:1;border-radius:10px;background:#f3f6f2;font-size:13px;font-weight:650;display:flex;align-items:center;justify-content:center;border:0;color:#1c2e26;}
body.ui-next .nx-day.nx-blank{background:transparent;}
body.ui-next .nx-day.present{background:#e7f2eb;}
body.ui-next .nx-day.absent{background:#fdf3f1;}
body.ui-next .nx-day.half,.nx-day.holiday,.nx-day.leave{background:#f8edd4;}
body.ui-next .nx-steps{display:flex;flex-direction:column;gap:14px;}
body.ui-next .nx-steps article{padding-bottom:12px;border-bottom:1px solid #d5e0d8;}
body.ui-next input.nx,body.ui-next select.nx,body.ui-next textarea.nx{width:100%;box-sizing:border-box;border:1px solid #9bb5a6;border-radius:12px;padding:12px;font:inherit;background:#fff;color:#1c2e26;min-height:48px;height:auto;max-height:none;flex:0 0 auto;}
body.ui-next label.nx{display:flex;flex-direction:column;gap:6px;font-size:14px;}
@media(min-width:1024px){
  body.ui-next .nx-app{flex-direction:row;}
  body.ui-next .nx-side{display:flex;flex-direction:column;gap:8px;width:248px;padding:24px 16px;background:#163328;color:#fff;min-height:100dvh;}
  body.ui-next .nx-side a,body.ui-next .nx-side button{color:#fff;background:transparent;border:0;text-align:left;font:inherit;padding:10px 12px;min-height:44px;border-radius:12px;text-decoration:none;}
  body.ui-next .nx-side button[aria-current="page"],body.ui-next .nx-side a[aria-current="page"]{background:#234c39;}
  body.ui-next .nx-tabs{display:none;}
  body.ui-next .nx-content{padding:24px 32px 48px;max-width:880px;}
  body.ui-next .nx-hero h1{font-size:3.2rem;}
}
@media(max-width:480px){
  body.ui-next .nx-bar .nx-actions{flex:1 1 100%;}
  body.ui-next .nx-bar .nx-actions .btn{flex:1 1 0;min-width:0;}
  body.ui-next .nx-block{flex-direction:column;}
  body.ui-next .nx-block .btn{width:100%;}
}
@media(min-width:700px) and (max-width:1023px){
  body.ui-next .nx-main{align-items:center;}
  body.ui-next .nx-content{width:100%;max-width:680px;}
  body.ui-next .nx-bar{width:100%;max-width:680px;}
}
body.ui-next #toast{bottom:calc(88px + env(safe-area-inset-bottom));z-index:30;border-radius:16px;white-space:normal;text-align:left;}
body.ui-next .switch{width:64px;height:44px;border-radius:22px;}
body.ui-next .switch::after{width:36px;height:36px;top:4px;left:4px;}
body.ui-next .switch:checked::after{transform:translateX(20px);}
body.ui-next .switch-row{width:100%;min-height:44px;margin-top:16px;}
body.ui-next footer a{display:inline-flex;align-items:center;min-height:44px;padding:8px 4px;}
body.ui-next .nx-empty{margin:8px 0 16px;}
body.ui-next details.nx-add summary,body.ui-next details.nx-edit summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer;}
body.ui-next details.nx-edit{background:#fff;border:1px solid #d5e0d8;border-radius:18px;padding:12px 14px;}
body.ui-next .nx-actions .btn{min-height:44px;min-width:44px;}
body.ui-next .nx-actions input.nx{flex:1;min-width:0;}
body.ui-next .nx-auth-links{margin-top:12px;}
