/* Operations workspace: keep dense data legible across the full set of admin pages. */
html{scroll-padding-top:16px}
body{line-height:1.55}
aside{padding-block:26px;gap:16px}
aside .brand{line-height:1.15}
aside .environment{line-height:1.35;letter-spacing:.01em}
#navigation{padding-inline:2px;gap:3px}
#navigation button{gap:12px;padding:10px 12px;border-radius:10px;line-height:1.35;overflow-wrap:anywhere}
#navigation button[aria-current="page"]{box-shadow:inset 3px 0 0 #66a643}
#navigation button span{flex:1;min-width:0}
#navigation .admin-nav-icon{flex-shrink:0}
aside .mobile-link,#logout:not([hidden]){min-height:44px;display:flex;align-items:center}
#logout:not([hidden]){justify-content:flex-start}
main{min-width:0;padding-top:32px;padding-bottom:48px}
main>header{align-items:flex-end;gap:24px;margin-bottom:28px}
main>header h1{font-size:clamp(25px,2.3vw,30px);line-height:1.25;letter-spacing:-.02em}
#identity:not(:empty){max-width:min(320px,45%);font-size:12px;line-height:1.4;word-break:break-word}
#content{min-width:0}
#content>.notice{padding:14px 16px;line-height:1.6}
#content>.panel,#content .two-col>.panel{min-width:0;padding:24px;border:1px solid var(--ops-border);border-radius:16px;background:var(--ops-surface);box-shadow:var(--ops-shadow)}
#content>.stats{margin-bottom:24px}
#content .stat{padding:20px 22px;border:1px solid var(--ops-border);border-radius:14px;background:var(--ops-surface);box-shadow:var(--ops-shadow)}
#content .stat small{font-size:12px;line-height:1.45;color:var(--ops-subtle)}
#content .stat strong{margin:8px 0 4px;color:#123e2a;font-size:clamp(25px,2.3vw,30px);line-height:1.25;font-variant-numeric:tabular-nums}
#content .two-col{gap:20px}
#content .two-col>.panel h2{margin-bottom:16px}
#content .steps{gap:8px}
#content .steps a{min-height:48px;display:flex;align-items:center;padding:12px 14px;border:1px solid #e0ebe0;border-radius:10px;background:#f5f9f2;color:#145735;font-size:13px;line-height:1.45}
#content .steps a:hover{background:#e9f4e4;border-color:#c7dfc5}
#content .toolbar{align-items:flex-start;gap:20px;margin-bottom:20px}
#content .toolbar>div{min-width:0}
#content .toolbar h2{margin:0 0 6px;font-size:19px;line-height:1.3}
#content .toolbar p,#content .muted{font-size:13px;line-height:1.55;color:var(--ops-subtle)}
#content .toolbar>button{flex-shrink:0;min-height:44px}
#content .tablewrap{max-width:100%;border:1px solid var(--ops-border);border-radius:12px;overflow:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
#content table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.5}
#content thead th{padding:12px 14px;background:#f3f8f1;color:#405c49;font-weight:700;white-space:nowrap}
#content tbody td{padding:14px;vertical-align:top;border-color:#e5eee5;overflow-wrap:anywhere}
#content tbody tr:last-child td{border-bottom:0}
#content tbody tr:hover{background:#f7fbf6}
#content td strong{font-size:13px;line-height:1.45;color:#193a29}
#content td small{margin-top:4px;color:var(--ops-subtle);font-size:12px;line-height:1.45}
#content td.money{font-variant-numeric:tabular-nums;color:#a82420}
#content td .code,#content td.code{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
#content .product-cell{align-items:flex-start;gap:12px;min-width:0}
#content .product-thumb{width:48px;height:58px;border-radius:9px;border:1px solid #dce8dc}
#content .badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border:1px solid #cce5cc;border-radius:999px;background:#e8f5e6;color:#155a31;font-size:12px;line-height:1.35;white-space:normal}
#content .badge.warn{border-color:#ead5a2;background:#fff3d7;color:#76500b}
#content .badge.bad{border-color:#efc4be;background:#ffedea;color:#9e221b}
#content .claim-status{margin-top:6px;color:#315b43;font-weight:700;line-height:1.45}
#content .actions{gap:8px;align-items:flex-start;min-width:0}
#content .actions button{line-height:1.35;font-size:13px;white-space:normal}
#content button,#editor button{min-height:44px}
#content button:not(.danger),#editor button:not(.danger){line-height:1.35}
#content button:disabled,#editor button:disabled{cursor:not-allowed;opacity:.6;filter:none}
#content .empty{padding:32px 16px;color:var(--ops-subtle);font-size:13px}
#editor{width:min(650px,calc(100% - 28px));max-height:min(90dvh,850px);padding:24px;border:1px solid var(--ops-border);overscroll-behavior:contain}
#editor::backdrop{background:rgba(2,29,19,.62)}
#editor .dialog-head{gap:16px;padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid #e3ece2}
#editor .dialog-head h2{min-width:0;font-size:20px;line-height:1.3;overflow-wrap:anywhere}
#editor .dialog-head button{flex:none;width:44px;height:44px;min-height:44px;padding:0}
#editorBody h3{margin:18px 0 6px;color:#254c35;font-size:14px;line-height:1.4}
#editorBody p{line-height:1.6;overflow-wrap:anywhere}
#editorBody .claim-recipient{padding:14px 16px;margin:8px 0 18px;border:1px solid #cde2cf;border-radius:10px;background:#f3f9f1}
#editorBody .claim-recipient strong{font-size:14px}
#editorBody .claim-recipient p{margin:5px 0 0}
#content form label,#editor form label{margin-bottom:16px;color:#294b37;font-size:13px;line-height:1.4}
#content form :is(input:not([type=checkbox]):not([type=radio]),select,textarea),#editor form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:44px;margin-top:6px;padding:10px 12px;border:1px solid #bdcfc0;border-radius:9px;color:#172e20;line-height:1.45}
#content form textarea,#editor form textarea{min-height:96px;resize:vertical}
#content .check,#editor .check{min-height:44px;gap:8px}
#content .error:empty,#editor .error:empty{display:none}
#content .error:not(:empty),#editor .error:not(:empty){margin:8px 0 12px;padding:10px 12px;border-left:3px solid #bd261c;border-radius:4px;background:#fff1ef;color:#951c15;line-height:1.5}
#content fieldset{min-width:0;margin:14px 0;padding:14px;border:1px solid var(--ops-border);border-radius:10px}
#content fieldset legend{padding:0 6px;color:#244b34;font-size:13px;font-weight:700}
#content fieldset label:has(.security-permission){display:inline-flex;align-items:center;gap:7px;min-height:40px;margin:4px 12px 4px 0;padding:5px 8px;border-radius:8px;background:#f3f8f1}
#content fieldset .security-permission{flex:none;width:18px;min-height:18px;margin:0;accent-color:#07633e}
#content details summary{min-height:40px;display:inline-flex;align-items:center;padding:8px 2px;color:#075e39;cursor:pointer}
#content pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
#content :is(button,a,input,select,textarea,summary):focus-visible,#editor :is(button,a,input,select,textarea):focus-visible,aside :is(button,a):focus-visible{outline:3px solid var(--ops-focus);outline-offset:2px}
#toast:not([hidden]){max-width:min(520px,calc(100vw - 32px));padding:12px 16px;border:1px solid #b9d8b6;background:#123e2c;color:#fff;font-size:13px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
@media(max-width:1000px){
  main{padding-inline:24px}
  #content>.panel,#content .two-col>.panel{padding:20px}
  #content>.stats{gap:12px}
}
@media(max-width:650px){
  aside{padding:16px 14px;gap:10px}
  aside .environment{display:inline-flex;align-self:flex-start;font-size:11px}
  #navigation{max-width:100%;padding:3px 2px 7px;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
  #navigation button{flex:0 0 auto;min-height:44px;padding:9px 12px;white-space:nowrap}
  aside .mobile-link,#logout:not([hidden]){display:inline-flex;min-height:44px}
  main{padding:20px 14px 36px}
  main>header{align-items:flex-start;gap:10px;margin-bottom:20px}
  #identity:not(:empty){max-width:100%}
  #content>.panel,#content .two-col>.panel{padding:16px}
  #content>.stats{gap:8px}
  #content .stat{padding:15px}
  #content .stat strong{font-size:clamp(20px,6vw,25px)}
  #content .toolbar{flex-wrap:wrap;gap:12px}
  #content .tablewrap table{min-width:680px}
  #editor{width:calc(100% - 20px);max-height:calc(100dvh - 24px);padding:18px 16px}
}
@media(max-width:360px){main{padding-inline:10px}#content>.panel,#content .two-col>.panel{padding:14px}}
@media(prefers-reduced-motion:reduce){#content button:active,#editor button:active{transform:none}}

#content .tablewrap:focus-visible{outline:3px solid #08783f;outline-offset:2px}

/* Read-only controls stay identifiable; keyboard focus remains visible on both surfaces. */
aside :is(button,a):focus-visible{outline-color:#d9f1af}
#content :is(input,select,textarea):disabled,#editor :is(input,select,textarea):disabled{background:#f1f5f0;color:#52675a;cursor:not-allowed;opacity:1}
#content button:disabled:hover,#editor button:disabled:hover{filter:none;transform:none}
#content .panel>.notice{margin:14px 0 18px}

/* Operations workspace: quiet surfaces and a clear reading order. */

aside{background:#073c2d;border-right:1px solid #124b39}
aside .brand{color:#f2f8df}
aside .brand small{color:#bdd1c1;letter-spacing:0}
aside .environment{padding:6px 10px;border-color:#4d735c;background:#ffffff0a;color:#e3edd9}
#navigation button{color:#d9e8dc}
#navigation button.active{background:#dcecd3;border-color:#dcecd3;color:#104631}
#navigation button[aria-current="page"]{box-shadow:inset 3px 0 0 #71a74e}
aside .mobile-link{color:#e1efd9}
#logout:not([hidden]){border-color:#5a7d68;color:#e5efe4}
main>header{padding-bottom:20px;border-bottom:1px solid #dce7dd}
main>header .eyebrow{color:#60796a;letter-spacing:.13em}
main>header h1{color:#173c2b;letter-spacing:-.035em}
#identity:not(:empty){border-color:#dbe6dc;color:#415e4c}
#content>.notice{border-color:#dbe8d4;background:#f2f8ee;color:#35583a}
#content>.panel,#content .two-col>.panel,#content .stat{border-color:var(--ops-border);box-shadow:var(--ops-shadow)}
#content .stat{position:relative;min-height:126px;border-radius:12px}
#content .stat small:first-child{color:#4f685a;font-weight:650}
#content .stat strong{color:#143b29;letter-spacing:-.04em}
#content .stat small:last-child{color:#637b6b}
#content .two-col>.panel h2,#content .toolbar h2{color:#183e2b;letter-spacing:-.015em}
#content .steps a{border-color:#e3ece2;background:#f8fbf7;color:#175d37;font-weight:600}
#content .steps a:hover{border-color:#c8ddc7;background:#eef7eb}
#content .toolbar p,#content .muted{color:#536d5c}
#content .tablewrap{border-color:#dfe8df;border-radius:10px}
#content thead th{background:#f3f7f2;color:#4f6858;letter-spacing:.01em}
#content tbody td{border-color:#e9efea}
#content tbody tr:hover{background:#f7faf7}
#content td.money{color:#274839}
#content .badge.claim-win{border-color:#ad1018;background:#c81720;color:#fff}
#content .badge.claim-miss{border-color:#cedbe2;background:#edf2f5;color:#405a69}
#content button.quiet,#editor button.quiet{border:1px solid #d8e7d8;background:#f3f8f1;color:#215a38}
#content button.quiet:hover:not(:disabled),#editor button.quiet:hover:not(:disabled){background:#e8f3e7;filter:none}
#content button.danger,#editor button.danger{border:1px solid #f1d3ce}
#editor{border-color:#d8e4d9;border-radius:14px;box-shadow:0 20px 70px #052a1b30}
#editor .dialog-head{border-color:#e5ede5}
#editor .dialog-head h2{color:#183d2b}
#content form :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus,#editor form :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:#5d9f70}
@media(max-width:650px){
  aside{border-bottom:1px solid #164f3c}
  #navigation{scrollbar-color:#779d82 transparent}
  #navigation button[aria-current="page"]{box-shadow:inset 0 -3px 0 #71a74e}
  #content .stat{min-height:112px}
}

/* Nombor operations: forest, warm brass and a clear neutral reading surface. */
:root{
  --ops-ink:#18372a;
  --ops-subtle:#526b5d;
  --ops-border:#dce6dd;
  --ops-surface:#fff;
  --ops-focus:#08784b;
  --ops-shadow:0 1px 3px rgba(12,48,31,.045),0 12px 32px rgba(12,48,31,.045);
}
body{background:#f5f7f3;color:var(--ops-ink);-webkit-font-smoothing:antialiased}
aside{
  background:#073b2b;
  border-right:1px solid #23543e;
  box-shadow:3px 0 18px rgba(8,45,28,.06);
}
aside .brand{color:#fffbea;font-weight:800;letter-spacing:-.035em}
aside .brand small{color:#c8d9c9;font-weight:500}
aside .environment{border:1px solid rgba(220,194,122,.48);background:rgba(255,255,255,.04);color:#eee8d4;font-weight:600}
#navigation{gap:5px}
#navigation button{min-height:46px;border:1px solid transparent;border-radius:9px;color:#d8e7dc;font-weight:600;transition:background-color .16s ease,color .16s ease,border-color .16s ease}
#navigation button:hover:not(.active){background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.05);color:#fff}
#navigation button.active{background:#1b5b42;border-color:#397658;color:#fff}
#navigation button[aria-current="page"]{box-shadow:inset 3px 0 0 #d7ae55}
#navigation button.active .admin-nav-icon{color:#f4d689}
aside .mobile-link{color:#e1eadb}
aside .mobile-link:hover{color:#fff}
#logout:not([hidden]){border-color:#5b806c;background:transparent;color:#eff7ef;box-shadow:none}
#logout:not([hidden]):hover{border-color:#dfc77d;background:rgba(255,255,255,.06);filter:none}
main>header{padding-bottom:21px;border-color:#dae5dc}
main>header .eyebrow{color:#667f6e;font-size:10px;font-weight:700;letter-spacing:.12em}
main>header h1{color:#123d2b;font-weight:780;letter-spacing:-.025em}
#identity:not(:empty){border:1px solid #dbe6de;border-radius:9px;background:#fff;color:#496454;padding:8px 12px;box-shadow:0 1px 3px rgba(9,39,23,.035)}
#content>.notice{border:1px solid #dbe6d7;border-left:4px solid #c4a151;border-radius:11px;background:#f4f8ef;color:#344e3e;padding:15px 18px}
#content>.stats{gap:16px}
#content .stat,#content>.panel,#content .two-col>.panel{background:var(--ops-surface);border:1px solid var(--ops-border);box-shadow:var(--ops-shadow)}
#content .stat{min-height:132px;border-radius:13px;padding:21px 22px;overflow:hidden}
#content .stat:before{content:'';display:block;width:26px;height:3px;margin-bottom:13px;border-radius:2px;background:#c9a454}
#content .stat small:first-child{color:#4e6859;font-size:12px;font-weight:700}
#content .stat strong{margin:7px 0 4px;color:#103d2b;font-size:clamp(27px,2.35vw,32px);font-weight:780;letter-spacing:-.035em;line-height:1.2}
#content .stat small:last-child{color:#63796c;font-size:12px;line-height:1.45}
#content>.panel,#content .two-col>.panel{border-radius:14px}
#content .toolbar h2,#content .two-col>.panel h2{color:#173d2b;font-size:19px;font-weight:750;letter-spacing:-.015em}
#content .toolbar p,#content .muted{color:#526b5b}
#content .steps a{position:relative;border:1px solid #e1e9df;border-radius:9px;background:#f8faf7;color:#155d3a;padding:13px 15px;font-weight:650}
#content .steps a:hover{border-color:#c6dac6;background:#eff7ed}
#content .two-col>.panel p{color:#4c6355;line-height:1.7}
#content .preview-link{font-weight:650;color:#08784b}
#content .tablewrap{border:1px solid #dbe5dd;border-radius:11px;background:#fff;box-shadow:none}
#content thead th{background:#eef4ee;color:#405f4d;border-bottom:1px solid #dce8dc;font-size:12px;font-weight:750;letter-spacing:0}
#content tbody td{border-color:#ebf0eb;color:#263f32;line-height:1.55}
#content tbody tr:hover{background:#f8fbf7}
#content tbody td strong{color:#173a29;font-weight:700}
#content td small{color:#62786a}
#content td.money{color:#174432;font-weight:750}
#content .badge{border:1px solid #cce3cf;background:#edf7ed;color:#175c36;font-weight:700}
#content .badge.warn{border-color:#ead7a8;background:#fbf4df;color:#76520c}
#content .badge.bad{border-color:#ecc7c2;background:#fff0ed;color:#9a241d}
#content .badge.claim-win{border-color:#aa1520;background:#c51f2c;color:#fff}
#content .badge.claim-miss{border-color:#d4dfe2;background:#f0f4f5;color:#4b6068}
#content .claim-status{color:#335d43}
#content :is(button:not(.quiet):not(.danger)),#editor :is(button:not(.quiet):not(.danger):not(#closeEditor)){background:#08784b;color:#fff;box-shadow:none}
#content :is(button:not(.quiet):not(.danger)):hover:not(:disabled),#editor :is(button:not(.quiet):not(.danger):not(#closeEditor)):hover:not(:disabled){background:#075f3d;filter:none}
#content button.quiet,#editor button.quiet{border:1px solid #d3e4d5;background:#f2f8f1;color:#205c38;box-shadow:none}
#content button.quiet:hover:not(:disabled),#editor button.quiet:hover:not(:disabled){border-color:#bdd5bf;background:#eaf4e9}
#content button.danger,#editor button.danger{border:1px solid #efcfca;background:#fff0ed;color:#9d241c;box-shadow:none}
#content button:disabled,#editor button:disabled{opacity:.58;cursor:not-allowed}
#content .actions button{padding:8px 12px}
#editor{background:#fff;border:1px solid #d8e5da;border-radius:16px;box-shadow:0 22px 72px rgba(4,35,22,.22)}
#editor::backdrop{background:rgba(4,28,18,.64)}
#editor .dialog-head{border-color:#e1ebe2}
#editor .dialog-head h2{color:#123d2b;font-weight:750}
#editor .dialog-head button{border:1px solid #d7e5d8;background:#f2f7ef;color:#285a3b;box-shadow:none}
#editorBody .claim-recipient{border-color:#d5e4d3;background:#f4f8f0;color:#234634}
#content form label,#editor form label{color:#294e39;font-weight:700}
#content form :is(input:not([type=checkbox]):not([type=radio]),select,textarea),#editor form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:#c9d9ca;background:#fff;color:#173b29}
#content :is(button,a,input,select,textarea,summary):focus-visible,#editor :is(button,a,input,select,textarea):focus-visible,#content .tablewrap:focus-visible{outline:3px solid var(--ops-focus);outline-offset:2px}
aside :is(button,a):focus-visible{outline:3px solid #f0d88a;outline-offset:2px}
@media(max-width:1000px){#content .stat{min-height:125px;padding:19px}}
@media(max-width:650px){
  aside{box-shadow:none;border-right:0;border-bottom:1px solid #275a42}
  #navigation{scrollbar-color:#729785 transparent}
  #navigation button[aria-current="page"]{box-shadow:inset 0 -3px 0 #d7ae55}
  main>header{padding-bottom:16px}
  #content .stat{min-height:116px;padding:16px}
  #content .stat:before{margin-bottom:10px}
  #content .stat strong{font-size:clamp(22px,6vw,27px)}
  #content .toolbar>button,#content .actions button{min-height:44px}
}
@media(max-width:360px){#content .stat{padding:13px}#content .stat:before{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){#navigation button{transition:none}}

/* Cross-check: improve small-screen reading and form control affordances. */
main>header .eyebrow{color:#4f6a59;font-size:11px}
#content form :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
#editor form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:#7c9784}
#content .preview-link{display:inline-flex;align-items:center;min-height:44px}
#content details summary{min-height:44px}
@media(max-width:650px){
  #content button,#editor button{min-width:44px}
  #content form :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
  #editor form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
  #content .actions{gap:8px}
}

/* Page-by-page refinement: forms, order details and security settings share one hierarchy. */
#content>.panel>h2{margin:0 0 10px;color:#173d2b;font-size:19px;font-weight:750;line-height:1.35}
#content>.panel>h3{margin:28px 0 10px;color:#214b35;font-size:15px;line-height:1.4}
#content>.panel>h3:first-child{margin-top:0}
#content>.panel>p{max-width:78ch;line-height:1.65;overflow-wrap:anywhere}
#content>.panel>ul{margin:4px 0 20px;padding-left:20px;color:#365747;line-height:1.7}
#content>.panel>ul li+li{margin-top:6px}
#drawForm,#settingsForm,#content>.panel>form:not(.login){max-width:880px}
#content .formgrid,#editor .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
#content form label,#editor form label{min-width:0;overflow-wrap:anywhere}
#content form :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
#editor form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;width:100%;min-width:0;max-width:100%}
#content form label small,#editor form label small{display:block;margin-top:6px;color:#526b5b;line-height:1.5}
#content form>button[type=submit],#editor form>button[type=submit]{min-height:44px;padding-inline:18px}
#content .actions button{min-height:44px}
#content .tablewrap{scroll-padding:8px}
#content .tablewrap td:focus-within{position:relative;z-index:1}
#content td small,#content td .code,#editorBody .code{overflow-wrap:anywhere;word-break:normal}
#editorBody .code{font-variant-numeric:tabular-nums;line-height:1.65}
#editorBody .badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border:1px solid #cce3cf;border-radius:999px;background:#edf7ed;color:#175c36;font-size:12px;font-weight:700;line-height:1.35;white-space:normal}
#editorBody .badge.warn{border-color:#ead7a8;background:#fbf4df;color:#76520c}
#editorBody .badge.bad{border-color:#ecc7c2;background:#fff0ed;color:#9a241d}
#editorBody>p{margin-bottom:14px}
#editorBody>h3{margin:20px 0 7px}
#editorBody>h3+p{color:#365344;line-height:1.65}
#content button:disabled,#editor button:disabled{border:1px solid #cbd9ce!important;background:#e8efe9!important;color:#52695a!important;opacity:1!important;cursor:not-allowed}
@media(max-width:650px){
  #content .formgrid,#editor .formgrid{grid-template-columns:minmax(0,1fr);gap:0}
  #content>.panel>h3{margin-top:24px}
  #content>.panel>ul{padding-left:18px}
  #editorBody>h3{margin-top:18px}
}
/* Keep the mobile navigation compact while preserving both useful actions. */
@media(max-width:650px){
  aside{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 10px;padding:12px 14px}
  aside .brand{grid-column:1;grid-row:1;min-width:0}
  aside .environment{grid-column:2;grid-row:1;justify-self:end;align-self:center;white-space:nowrap}
  #navigation{grid-column:1 / -1;grid-row:2;min-width:0}
  aside .mobile-link{grid-column:1;grid-row:3;margin:0;min-height:44px}
  #logout:not([hidden]){grid-column:2;grid-row:3;justify-self:end;margin:0;min-height:44px}
}
@media(max-width:650px){aside .brand{font-size:20px;white-space:nowrap}aside .brand small{font-size:10px;margin-left:5px;white-space:nowrap}}

/* Keep dense values, long dialogs and keyboard navigation usable across pages. */
#content .stat strong{overflow-wrap:anywhere}
#content fieldset label:has(.security-permission){min-height:44px;cursor:pointer}
#editor .dialog-head{position:sticky;top:0;z-index:3;background:#fff}
@media(max-width:650px){
  #navigation button:focus-visible{outline:2px solid #f0d88a;outline-offset:-3px}
}

/* Commerce emphasis: prices and offers use red; payment exceptions remain distinguishable. */
#content:has(#refreshOrders) tbody td.money{color:#b12633}
#content:has(#newCoupon) tbody td:nth-child(2){color:#b12633;font-weight:700}
#content:has(#refreshPayments) .badge.warn{border-color:#e9bdb9;background:#fff0ee;color:#9a241d}
/* Cover the dialog's top padding when its heading is pinned during scrolling. */
#editor .dialog-head::before{content:'';position:absolute;left:-24px;right:-24px;top:-24px;height:24px;background:#fff;pointer-events:none}

/* Security setup has a standalone credential field outside its nested form. */
#content .panel:has(input[autocomplete="current-password"]) > section{
  min-width:0;margin:18px 0;padding:18px;
  border:1px solid #dce6dd;border-radius:12px;background:#f8faf6;
}
#content .panel:has(input[autocomplete="current-password"]) > section > label{
  display:block;min-width:0;margin-bottom:16px;color:#294e39;font-size:13px;font-weight:700;line-height:1.4;
}
#content .panel:has(input[autocomplete="current-password"]) > section > label > input{
  box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;margin-top:6px;
  padding:10px 12px;border:1px solid #7c9784;border-radius:9px;background:#fff;color:#173b29;line-height:1.45;
}
#content .panel:has(input[autocomplete="current-password"]) > p[role="status"]:empty{display:none}
#content .panel:has(input[autocomplete="current-password"]) > p[role="status"]:not(:empty){
  padding:11px 13px;border:1px solid #e5d4a7;border-left:3px solid #c39839;
  border-radius:7px;background:#fff8e6;color:#604a1c;line-height:1.55;overflow-wrap:anywhere;
}
/* The verification and cancellation controls must read as separate actions. */
#content .panel:has(input[autocomplete="current-password"]) > section > form + button{
  min-height:44px;margin-top:12px;border:1px solid #c9dccd;background:#edf5ea;color:#1a5737;
}
/* Visible horizontal scrolling helps locate actions in long operational tables. */
#content .tablewrap{scrollbar-width:thin;scrollbar-color:#8aa794 #f0f5f0}
#content .tablewrap::-webkit-scrollbar{width:8px;height:8px}
#content .tablewrap::-webkit-scrollbar-thumb{border:2px solid #f0f5f0;border-radius:8px;background:#8aa794}
#content tbody tr:focus-within{background:#f5faf4}
@media(max-width:650px){
  #content .panel:has(input[autocomplete="current-password"]) > section{padding:14px}
  #content .panel:has(input[autocomplete="current-password"]) > section > label > input{font-size:16px}
}

/* Optional product translations are grouped by language without disturbing the main form. */
#editor .product-locales{margin:18px 0;padding:0 14px;border:1px solid #d9e8d9;border-radius:12px;background:#f8fbf7}
#editor .product-locales>summary,#editor .product-locale>summary{display:flex;align-items:center;min-height:44px;padding:9px 2px;color:#145b36;font-weight:750;cursor:pointer;list-style:none}
#editor .product-locales>summary::before,#editor .product-locale>summary::before{content:'▸';margin-right:8px;transition:transform .15s ease}
#editor .product-locales[open]>summary::before,#editor .product-locale[open]>summary::before{transform:rotate(90deg)}
#editor .product-locales>p{margin:0 0 12px;font-size:12px;line-height:1.5}
#editor .product-locale{border-top:1px solid #e0eae0}
#editor .product-locale label{display:block}
#editor .product-locales summary:focus-visible{outline:3px solid var(--ops-focus);outline-offset:2px}
@media(prefers-reduced-motion:reduce){#editor .product-locales summary::before{transition:none}}

/* Pickluno shared brand mark. */
aside .brand>img{vertical-align:middle;margin-right:5px;border-radius:7px}

.admin-order-controls,.admin-order-number-pages{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0}
.admin-order-controls label{display:flex;flex-direction:column;gap:4px;min-width:130px}
.admin-order-controls input,.admin-order-controls select{max-width:240px;min-height:40px}
#adminOrderNumberResults{max-height:180px;overflow:auto;overflow-wrap:anywhere;line-height:1.8}

/* Unified admin density: shared edges, predictable controls and unbroken table values. */
body{font-size:13px;line-height:1.5}
aside{width:216px;padding:24px 16px 16px;gap:14px}
aside .brand{font-size:23px;line-height:1.2}
aside .brand small{font-size:12px;margin:5px 0 0 42px}
aside .brand>img{width:30px;height:30px;margin-right:4px}
aside .environment{font-size:11px;padding:5px 9px}
#navigation{margin-top:8px;padding:0;gap:4px}
#navigation button{min-height:42px;padding:10px 12px;font-size:13px;gap:10px;border-radius:8px;white-space:nowrap}
#navigation .admin-nav-icon{width:18px;height:18px;flex-basis:18px}
aside .mobile-link,#logout:not([hidden]){min-height:40px;font-size:13px}
main{margin-left:216px;max-width:none;padding:28px 32px 40px}
main>header{align-items:center;gap:16px;padding-bottom:18px;margin-bottom:24px}
main>header .eyebrow{font-size:10px;line-height:1.4;margin-bottom:6px}
main>header h1{font-size:24px;line-height:1.25;letter-spacing:0;font-weight:700}
#identity:not(:empty){padding:7px 10px;font-size:12px;line-height:1.5}
#content>.panel,#content .two-col>.panel{padding:20px;border-radius:12px;margin-bottom:20px}
#content h2,#content .toolbar h2,#content .two-col>.panel h2{font-size:17px;line-height:1.4;font-weight:700}
#content h3{font-size:14px;line-height:1.5}
#content .toolbar{align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
#content .toolbar>div:first-child{flex:1;min-width:0}
#content .toolbar h2{margin:0 0 5px}
#content .toolbar p{margin:0;font-size:12px;line-height:1.6;max-width:780px}
#content .toolbar .toolbar-actions{display:flex;flex:none;align-items:center;gap:8px;flex-wrap:wrap}
#content button,#editor button{min-height:38px;padding:8px 13px;font-size:13px;line-height:20px;border-radius:8px;white-space:nowrap}
#content .actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#content .actions button{min-height:34px;padding:6px 10px;font-size:12px;line-height:20px;white-space:nowrap}
#content .tablewrap{border-radius:9px}
#content table{font-size:13px;line-height:1.5}
#content thead th{padding:11px 14px;font-size:12px;line-height:18px;vertical-align:middle}
#content tbody td{padding:14px;vertical-align:middle;overflow-wrap:normal}
#content td strong{font-size:13px;line-height:1.5}
#content td small{font-size:12px;line-height:1.5;margin-top:4px}
#content td.money{white-space:nowrap;font-variant-numeric:tabular-nums}
#content .badge{min-height:26px;padding:3px 9px;font-size:12px;line-height:18px;white-space:nowrap;word-break:keep-all}
#content .product-cell{gap:10px;align-items:center;min-width:200px}
#content .product-cell>div:last-child{min-width:0}
#content .product-thumb{width:44px;height:54px;border-radius:7px}
#content .catalog-table table{min-width:920px;table-layout:auto}
#content .catalog-table th:nth-child(1){width:26%}
#content .catalog-table th:nth-child(2){width:12%}
#content .catalog-table th:nth-child(3){width:15%}
#content .catalog-table th:nth-child(4){width:23%}
#content .catalog-table th:nth-child(5){width:11%}
#content .catalog-table th:nth-child(6){width:13%}
#content .catalog-table td:nth-child(n+2){white-space:nowrap}
#content .catalog-table .actions{flex-wrap:nowrap}
#content .stats{gap:16px;margin-bottom:20px}
#content .stat{min-height:116px;padding:18px;border-radius:12px}
#content .stat:before{margin-bottom:10px}
#content .stat strong{font-size:25px;line-height:1.25;margin:6px 0 4px}
#content .steps a{min-height:42px;padding:10px 12px;font-size:13px}
#content .two-col{gap:20px}
#content form,#editor form{min-width:0}
#content form label,#editor form label{font-size:13px;line-height:20px;margin-bottom:16px}
#content .formgrid,#editor .formgrid{gap:0 16px;align-items:start}
#content :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
#editor :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:13px;line-height:20px;min-height:40px;padding:9px 11px;border-radius:8px;margin-top:6px;min-width:0}
#content :is(input:not([type=checkbox]):not([type=radio]),select),
#editor :is(input:not([type=checkbox]):not([type=radio]),select){height:40px}
#content form :is(input:not([type=checkbox]):not([type=radio]),select),
#editor form :is(input:not([type=checkbox]):not([type=radio]),select){min-height:40px;padding:9px 11px}
#content textarea,#editor textarea{min-height:96px;height:auto}
#content input[type=file],#editor input[type=file]{height:auto;padding:8px;line-height:22px}
#content .check,#editor .check{min-height:32px;line-height:20px;align-items:center}
#content form label small,#editor form label small{font-size:12px;font-weight:400;line-height:1.5;margin-top:5px}
#content .admin-order-controls{gap:12px;align-items:flex-end;margin:0 0 18px}
#content .admin-order-controls label{margin:0;gap:0;min-width:140px;font-size:12px}
#content .admin-order-controls input,#content .admin-order-controls select{margin-top:6px}
#content .admin-order-controls button{height:40px}
#content .admin-order-controls>span{align-self:center;font-size:12px}
#content .draw-selected{margin-bottom:16px;padding:10px 12px;font-size:13px}
#content .draw-history-pages,#content .admin-points-pagination{gap:10px;margin-top:16px;font-size:12px}
#editor{width:min(720px,calc(100% - 32px));max-width:720px;padding:24px;max-height:calc(100dvh - 48px);border-radius:12px}
#editor .dialog-head{align-items:center;padding-bottom:14px;margin-bottom:20px;gap:16px}
#editor .dialog-head h2{font-size:18px;line-height:1.4;margin:0}
#editor .dialog-head button{width:34px;height:34px;min-height:34px;padding:0;font-size:23px;line-height:32px}
#editor .product-gallery-actions button{font-size:11px;min-height:30px;padding:4px 3px}
#editor .product-gallery-add{align-items:flex-end}
#editor .product-gallery-add label{margin-bottom:0}
#editor .product-gallery-add button{height:40px;min-height:40px}
#editor .product-locales{margin:16px 0;border-radius:9px}
#editor .product-locales>summary,#editor .product-locale>summary{min-height:40px;font-size:13px}
#content .security-section{padding-top:20px;margin-top:20px;border-top:1px solid var(--ops-border)}
#content .security-section h3{margin:0 0 10px}
#content .security-section>p{font-size:13px;margin-bottom:14px}
#content .security-section form{max-width:720px}
#content .security-fields{max-width:720px}
#content .security-section ul{padding-left:20px;font-size:12px;line-height:1.7}
#content .security-section fieldset{margin:0 0 16px}
#content .security-section fieldset label:has(.security-permission){min-width:0;min-height:36px;margin:4px 8px 4px 0}
@media(max-width:1200px) and (min-width:651px){aside{width:200px}main{margin-left:200px;padding:24px}#content>.panel,#content .two-col>.panel{padding:18px}}
@media(max-width:850px) and (min-width:651px){#content .toolbar{flex-wrap:wrap}#content .toolbar>div:first-child{flex-basis:100%}}
@media(max-width:650px){
 aside{width:auto;padding:12px 14px;gap:8px 10px}aside .brand{font-size:20px}aside .brand small{margin-left:5px;font-size:10px}aside .brand>img{width:26px;height:26px}
 #navigation{gap:6px;margin:0;padding:2px 0 6px}#navigation button{min-height:44px;padding:9px 12px}
 main{margin-left:0;padding:20px 14px 32px}main>header{margin-bottom:18px;padding-bottom:16px;align-items:flex-start;gap:10px}main>header h1{font-size:22px}
 #content>.panel,#content .two-col>.panel{padding:16px}#content .toolbar{gap:12px;flex-wrap:wrap}#content .toolbar>div:first-child{flex-basis:100%}
 #content button,#content .actions button,#editor button{min-height:44px}#content .toolbar .toolbar-actions{gap:8px}
 #content .stat{padding:16px;min-height:112px}#content .stat strong{font-size:23px}
 #content .formgrid,#editor .formgrid{grid-template-columns:minmax(0,1fr)}
 #content :is(input:not([type=checkbox]):not([type=radio]),select,textarea),#editor :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-height:44px}
 #content form :is(input:not([type=checkbox]):not([type=radio]),select),#editor form :is(input:not([type=checkbox]):not([type=radio]),select){min-height:44px;height:44px}
 #editor{width:calc(100% - 20px);padding:20px 16px;max-height:calc(100dvh - 24px)}#editor .dialog-head button{min-height:44px;width:44px;height:44px}
 #editor .product-gallery-add{flex-wrap:wrap}#editor .product-gallery-add label{flex-basis:100%}
 #content .admin-order-controls{gap:10px}#content .admin-order-controls label{flex:1;min-width:140px}
}

#content .security-panel:has(input[autocomplete="current-password"])>.security-section{margin:20px 0 0;padding:20px 0 0;border:0;border-top:1px solid var(--ops-border);border-radius:0;background:transparent}
#content .security-panel>.security-section:last-child{padding-bottom:0}
#content .security-panel>[role=status]:empty{display:none}
#content .security-setup>label{max-width:720px}
#content .security-setup>label>input{width:100%;height:40px;min-height:40px;font-size:13px;line-height:20px;margin-top:6px;padding:9px 11px}

#content .catalog-table :is(th,td){padding-inline:12px}
#content .catalog-table td:nth-child(4) strong{font-size:12px}

#content form textarea,#editor form textarea{min-height:96px;height:auto;padding:10px 11px}
#content .admin-order-controls>span{align-self:flex-end;display:flex;align-items:center;min-height:40px}

/* Align the operational form headings and their explanations. */
#content .panel:has(> #drawForm)>h2,
#content .panel:has(> #settingsForm)>h2,
#content .security-panel>h2{margin:0 0 8px}
#content .panel:has(> #drawForm)>p.muted,
#content .panel:has(> #settingsForm)>p.muted{margin:0 0 16px}
#content .security-panel>p{max-width:880px;line-height:1.6}
#content .security-section form>button{max-width:100%;white-space:normal;text-align:center}
#content .security-setup>label{display:block;min-width:0;margin:0 0 16px;color:#294e39;font-size:13px;font-weight:700;line-height:20px}
#content .security-setup>form+button{margin-top:10px}

/* Detail dialogs: align the search field and pagination with form controls. */
#editorBody>label{display:block;min-width:0;margin:0 0 12px;color:#294e39;font-size:13px;font-weight:700;line-height:20px}
#editorBody>label>input{box-sizing:border-box;width:100%;max-width:100%;margin-top:6px}
#editorBody .admin-order-number-pages{align-items:center;gap:8px;margin:12px 0}
#editorBody .admin-order-number-pages>span{line-height:20px}
#editorBody form:has(input[name="amount"]) .product-locale label.check{display:flex;align-items:center;gap:8px}
#editorBody form:has(input[name="amount"]) .product-locale label.check input{flex:none;margin:0}
@media(max-width:650px){
  #content .security-setup>label>input{height:44px;min-height:44px;font-size:16px}
  #editorBody .admin-order-number-pages{gap:8px}
}
