/* Scoped settings presentation, shared by desktop and the Android WebView. */
#content .nw-settings-page{max-width:1120px!important;margin:0 auto!important;padding:6px 0 28px;color:#2e4058;--nw-setting-border:#e3ebf4}
#content .nw-settings-page *,#myPasswordDialog *{box-sizing:border-box}
#content .nw-settings-page .page-title{margin:0 0 21px;padding:4px 2px;background:none;border:0;box-shadow:none}
#content .nw-settings-page .page-title h2{font-size:26px;line-height:1.4;letter-spacing:-1px;color:#243c59}
#content .nw-settings-page .page-title p{margin:7px 0 0;font-size:13px;line-height:1.7;color:#76879d}
#content .nw-settings-quick{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
#content .nw-settings-shortcut{display:grid;grid-template-columns:48px 1fr;column-gap:16px;align-items:center;text-align:left;padding:21px 24px;border:1px solid var(--nw-setting-border);border-radius:19px;background:linear-gradient(125deg,#f0f6ff,#fff);color:#527db5;font:inherit;cursor:pointer;box-shadow:0 5px 20px #25476d04;touch-action:manipulation}
#content .nw-settings-shortcut.nw-tone-mint{background:linear-gradient(125deg,#eef9f4,#fff);border-color:#dcece4;color:#448970}
#content .nw-settings-shortcut>.nw-settings-icon{grid-row:1/3;width:48px;height:48px;border-radius:15px;background:#e4eeff}
#content .nw-settings-shortcut.nw-tone-mint>.nw-settings-icon{background:#dff2e9}
#content .nw-settings-shortcut>b{font-size:17px;font-weight:750;line-height:1.5}
#content .nw-settings-shortcut>small{font-size:12px;line-height:1.6;color:#7b8da2}
#content .nw-settings-shortcut-link{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding-top:12px;margin-top:15px;border-top:1px solid #e2eaf4;font-size:12px;font-weight:650}
#content .nw-settings-shortcut-link>span{font-size:18px}
#content .nw-settings-icon{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:13px}
#content .nw-settings-icon svg{width:23px;height:23px}
#content .nw-settings-icon.nw-tone-blue{background:#ecf3ff;color:#5c8aca}
#content .nw-settings-icon.nw-tone-mint{background:#eaf7f0;color:#589a7d}
#content .nw-settings-icon.nw-tone-purple{background:#f1edfc;color:#9581c2}
#content .nw-settings-icon.nw-tone-peach{background:#fff1e6;color:#bd8b60}
#content .nw-settings-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 20px}
#content .nw-settings-nav button{min-height:40px;padding:8px 15px;border:1px solid var(--nw-setting-border);border-radius:22px;background:#fff;color:#687d97;font-size:12px;font-weight:600;line-height:1.6;font-family:inherit;cursor:pointer;touch-action:manipulation}
#content .nw-settings-nav .nw-settings-collapse{margin-left:auto;background:transparent;border-color:transparent;color:#8492a5}
#content .nw-settings-group{padding:20px;background:#fff;border:1px solid var(--nw-setting-border);border-radius:22px;margin:0 0 16px;box-shadow:0 5px 20px #25476d04;scroll-margin-top:110px}
#content .nw-settings-group>h3{font-size:15px;font-weight:750;line-height:1.5;color:#405671;margin:0 0 14px;padding:0 3px;letter-spacing:-.3px}
#content .nw-settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:11px}
#content .nw-settings-panel{min-width:0;border:1px solid var(--nw-setting-border);border-radius:16px;background:#fff;scroll-margin-top:110px;box-shadow:0 3px 10px #25476d03}
#content .nw-settings-panel>summary{display:flex;align-items:center;gap:13px;min-height:86px;padding:17px;cursor:pointer;list-style:none;touch-action:manipulation;border-radius:16px}
#content .nw-settings-panel>summary::-webkit-details-marker{display:none}
#content .nw-settings-label{flex:1;min-width:0}
#content .nw-settings-label>b{display:block;font-size:14px;font-weight:700;line-height:1.5;color:#405671;letter-spacing:-.3px}
#content .nw-settings-label>small{display:block;font-size:11px;line-height:1.6;color:#7f8fa5;margin-top:3px;word-break:keep-all;overflow-wrap:anywhere}
#content .nw-settings-chevron{width:20px;height:20px;color:#94a7bc;flex:none;transition:transform .15s}
#content .nw-settings-chevron svg{width:100%;height:100%}
#content .nw-settings-panel[open]{grid-column:1/-1}
#content .nw-settings-panel[open]>summary{border-bottom:1px solid #edf1f7;border-radius:16px 16px 0 0;background:#fbfdff}
#content .nw-settings-panel[open] .nw-settings-chevron{transform:rotate(180deg)}
#content .nw-settings-page .nw-settings-body.settings-section{padding:20px!important;margin:0!important;border:0!important;border-radius:0 0 16px 16px!important;box-shadow:none!important;background:#fff!important;min-width:0;overflow-wrap:anywhere}
#content .nw-settings-original-title{display:none!important}
#content .nw-settings-body .settings-section-head{margin:0 0 16px;gap:12px}
#content .nw-settings-body .settings-section-head:empty{display:none}
#content .nw-settings-body .settings-section-head p,#content .nw-settings-body .small{font-size:12px;line-height:1.8;color:#74859a;word-break:keep-all}
#content .nw-settings-body .field>label{font-size:12px;font-weight:650;line-height:1.6;color:#62788f}
#content .nw-settings-body input:not([type=checkbox]):not([type=hidden]),#content .nw-settings-body select,#content .nw-settings-body textarea{min-width:0;max-width:100%;min-height:43px;border:1px solid #dfe7f0;border-radius:10px;background:#f9fbfe;padding:10px 12px;color:#384e69;font-size:13px;font-family:inherit;box-shadow:none}
#content .nw-settings-body input[type=file]{width:100%;font-size:12px;overflow:hidden}
#content .nw-settings-body input[type=checkbox]{width:18px;height:18px;accent-color:#5b8bd3;flex:none}
#content .nw-settings-body .btn{min-height:42px;max-width:100%;padding:10px 14px;border-radius:11px!important;font-size:12px;line-height:1.6;white-space:normal;word-break:keep-all;box-shadow:none!important}
#content .nw-settings-body .btn-primary{background:#5586ce!important;border:1px solid #5586ce!important;color:#fff!important}
#content .nw-settings-body .btn-soft,#content .nw-settings-body .btn-neutral{background:#f3f7fc!important;border:1px solid #e1e9f3!important;color:#617b9b!important}
#content .nw-settings-body .settings-role-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px}
#content .nw-settings-body .settings-role-card{background:#f9fbfe;border:1px solid #e4ecf5;border-radius:14px;padding:16px;min-width:0}
#content .nw-settings-body .settings-menu-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}
#content .nw-settings-body .settings-menu-check{padding:11px;min-height:56px;border-radius:10px;border-color:#e3eaf4;background:#fff}
#content .nw-settings-body .settings-menu-check b,#content .nw-settings-body .settings-switch b{font-size:12px;line-height:1.5}
#content .nw-settings-body .settings-menu-check small,#content .nw-settings-body .settings-switch small{font-size:10px;line-height:1.6;color:#8291a4}
#content .nw-settings-body .quick-slot-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr))}
#content .nw-settings-body .approval-settings-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}
#content .nw-settings-body .approval-setting-row{border-color:#e3ebf4;border-radius:12px;background:#f9fbfe}
#content .nw-settings-body .settings-save-row{border-top:1px solid #edf1f6;padding-top:16px;margin-top:20px;gap:8px}
#content .nw-settings-body .menu-name-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}
#content .nw-settings-body .menu-name-edit{min-width:0;gap:10px;border-color:#e4ebf4;background:#fbfcfe}
#content .nw-settings-body .home-order-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
#content .nw-settings-body .home-order-section-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
#content .nw-settings-body .nw-settings-close{display:block;margin:18px auto 0;min-height:40px;padding:8px 24px;border:0;background:transparent;color:#778aa1;font-family:inherit;font-size:12px;cursor:pointer}
#content .nw-settings-page button:focus-visible,#content .nw-settings-page summary:focus-visible,#content .nw-settings-page input:focus-visible,#content .nw-settings-page select:focus-visible{outline:3px solid #a5c9f4;outline-offset:3px}
/* Account dialog shares the settings palette; authentication stays in account-module. */
#myPasswordDialog{padding:18px;align-items:center}
#myPasswordDialog .modal{width:100%;max-width:440px!important;max-height:calc(100dvh - 36px);overflow:auto;padding:26px!important;border:1px solid #e1e9f3;border-radius:22px!important;background:#fff;box-shadow:0 24px 70px #20395426}
#myPasswordDialog h3{font-size:21px;line-height:1.4;color:#2e4765;margin:0 0 8px}
#myPasswordDialog p,#myPasswordDialog small{font-size:12px;line-height:1.8;color:#7b8ba0}
#myPasswordDialog .field{margin-top:16px}
#myPasswordDialog label{font-size:12px;font-weight:650;color:#61788f}
#myPasswordDialog .input{width:100%;min-height:45px;border:1px solid #dfe7f1;border-radius:11px;padding:11px 12px;background:#f8faff;font-size:14px}
#myPasswordDialog .modal-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
#myPasswordDialog .btn{min-height:44px;border-radius:11px!important;padding:10px 16px;font-size:13px;box-shadow:none!important}
#myPasswordDialog .btn-primary{background:#5586ce!important;color:#fff}
#myPasswordDialog .btn-neutral{background:#f1f5fa!important;color:#627994}
@media(max-width:640px){
  #content .nw-settings-page{padding-top:4px}
  #content .nw-settings-page .page-title h2{font-size:24px}
  #content .nw-settings-quick{gap:10px}
  #content .nw-settings-shortcut{display:flex;flex-direction:column;align-items:flex-start;padding:17px 15px;gap:0;border-radius:17px}
  #content .nw-settings-shortcut>.nw-settings-icon{width:42px;height:42px;margin-bottom:13px}
  #content .nw-settings-shortcut>b{font-size:16px}
  #content .nw-settings-shortcut>small{font-size:11px;margin-top:4px}
  #content .nw-settings-shortcut-link{width:100%;font-size:11px;margin-top:14px;padding-top:11px}
  #content .nw-settings-nav{gap:5px;margin-bottom:16px}
  #content .nw-settings-nav button{font-size:11px;padding:8px 10px}
  #content .nw-settings-nav .nw-settings-collapse{margin-left:0}
  #content .nw-settings-group{padding:15px 12px;border-radius:19px;margin-bottom:13px}
  #content .nw-settings-group>h3{font-size:14px;margin-bottom:12px}
  #content .nw-settings-grid{grid-template-columns:minmax(0,1fr);gap:9px}
  #content .nw-settings-panel>summary{min-height:80px;padding:14px 12px;gap:11px}
  #content .nw-settings-icon{width:36px;height:36px;border-radius:11px}
  #content .nw-settings-icon svg{width:21px;height:21px}
  #content .nw-settings-label>b{font-size:13px}
  #content .nw-settings-label>small{font-size:10px}
  #content .nw-settings-page .nw-settings-body.settings-section{padding:16px 12px!important}
  #content .nw-settings-body .form-grid,#content .nw-settings-body .home-shortcut-editor,#content .nw-settings-body .approval-signature-grid,#content .nw-settings-body .custom-name-grid,#content .nw-settings-body .monthly-backup-box{grid-template-columns:minmax(0,1fr)}
  #content .nw-settings-body .worktime-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #content .nw-settings-body .menu-name-edit{grid-template-columns:minmax(0,1fr)}
  #content .nw-settings-body .home-shortcut-fields,#content .nw-settings-body .home-shortcut-editor>*{min-width:0}
  #content .nw-settings-body .app-update-actions,#content .nw-settings-body .backup-actions{display:flex;flex-wrap:wrap;gap:8px}
  #content .nw-settings-body .settings-save-row .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){#content .nw-settings-chevron{transition:none}}
@media print{
  #content .nw-settings-quick,#content .nw-settings-nav,#content .nw-settings-close{display:none!important}
  #content .nw-settings-grid{display:block!important}
  #content .nw-settings-panel{break-inside:auto;box-shadow:none}
  #content .nw-settings-panel::details-content{content-visibility:visible!important;display:block!important}
  #content .nw-settings-panel>.nw-settings-body{display:block!important;content-visibility:visible!important}
}
