/* v1.11 — constrained additions. Original palette, typography files, table geometry untouched. */
/* Uniform fixed nav typography, matching the upper nav exactly rather than the larger footer buttons. */
#sidebar .pm-side-dock .nav-item,
#sidebar .nav-bottom .nav-item,
#sidebar .pm21-top-pins .nav-item{
  font-family:var(--font-family,Hacen),Hacen,Arial,sans-serif!important;
  font-size:.84rem!important;
  font-weight:400!important;
  line-height:1.48!important;
  letter-spacing:normal!important;
  gap:11px!important;
  text-align:right!important;
}
#sidebar .pm-side-dock .nav-item span,
#sidebar .nav-bottom .nav-item span,
#sidebar .pm21-top-pins .nav-item span{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important}
#sidebar .pm-side-dock .nav-item svg,
#sidebar .nav-bottom .nav-item svg{width:19px!important;height:19px!important;flex:none}
/* Two privileged navigation shortcuts pinned above the scrollable module list. */
#sidebar .pm21-top-pins{flex:0 0 auto;display:flex;flex-direction:column;gap:1px;padding:0 0 9px;margin:0 0 7px;border-bottom:1px solid #ffffff30;min-height:0}
#sidebar .pm21-top-pins .nav-item{height:39px!important;min-height:39px!important;position:relative!important;top:auto!important;z-index:1!important;margin:0!important;padding:7px 11px!important;border:0!important;box-shadow:none}
#sidebar .pm21-top-pins .nav-item.active{box-shadow:inset -3px 0 var(--gold)!important}
#sidebar .pm21-top-pins .nav-item .pm15-count{margin-inline-start:auto}
#sidebar nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
#sidebar .pm-side-dock{flex:0 0 auto;margin-top:3px!important}
#sidebar .nav-bottom{flex:0 0 auto;margin-top:0!important}
/* Standalone route cards and process diagrams, strictly using the native theme variables. */
.pm21-method-header{margin:0 0 14px;padding:17px 20px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.pm21-method-header h2{font-size:1.17rem;color:var(--blue);font-weight:700;margin:0 0 6px}
.pm21-method-header p{font-size:.84rem;color:var(--muted);line-height:1.85;margin:0}
.pm21-method-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 15px}
.pm21-method-tab{display:flex;flex-direction:column;gap:5px;text-align:right;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:12px 15px;color:var(--ink);cursor:pointer;min-width:0;font:inherit}
.pm21-method-tab strong{font-size:.96rem;font-weight:700}
.pm21-method-tab small{font-size:.75rem;color:var(--muted);line-height:1.5}
.pm21-method-tab.active{border-color:var(--blue);background:var(--raised);box-shadow:inset -3px 0 var(--blue)}
.pm21-method-shell{border:1px solid var(--line);border-radius:13px;background:var(--surface);margin:0 0 18px;overflow:hidden}
.pm21-method-head{padding:16px 19px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;gap:14px;justify-content:space-between}
.pm21-method-head h3{font-size:1.02rem;color:var(--blue);font-weight:750}
.pm21-method-head p{font-size:.82rem;color:var(--muted);margin-top:4px;line-height:1.8}
.pm21-process-visual{padding:19px 12px 10px;overflow-x:auto;background:var(--raised)}
.pm21-process-flow{display:grid;grid-template-columns:repeat(var(--stages),minmax(130px,1fr));min-width:calc(var(--stages)*130px);position:relative;padding:6px 3px 10px;direction:rtl}
.pm21-process-flow:before{content:"";position:absolute;right:6%;left:6%;top:28px;border-top:3px solid var(--line)}
.pm21-process-node{position:relative;z-index:1;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px;padding:0 7px}
.pm21-process-dot{height:46px;width:46px;border:2px solid var(--blue);background:var(--surface);color:var(--blue);border-radius:50%;display:grid;place-items:center;font:700 15px Arial,sans-serif;box-shadow:0 2px 7px #0001}
.pm21-process-node strong{font-size:.78rem;font-weight:700;color:var(--ink);line-height:1.55;max-width:155px}
.pm21-method-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:15px}
.pm21-method-detail{padding:12px 13px;background:var(--raised);border:1px solid var(--line);border-radius:9px;min-width:0}
.pm21-method-detail h4{font-size:.86rem;font-weight:700;color:var(--blue);margin:0 0 8px}
.pm21-method-detail ul{padding:0 20px 0 0;margin:0;font-size:.79rem;line-height:1.9}
.pm21-method-note{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;padding:12px 17px;border-top:1px solid var(--line)}
.pm21-method-note small{color:var(--muted);font-size:.77rem;line-height:1.75}
.pm21-method-note .btn{flex:none}
.pm21-guide-divider{height:1px;background:var(--line);margin:16px 0}
@media(max-width:900px){.pm21-method-details{grid-template-columns:1fr}.pm21-method-tabs{grid-template-columns:1fr}.pm21-method-tab{padding:10px 12px}}
/* Reporting views: same Hacen face and navy palette, no changes to other tables or cards. */
#main .pm19-report-tabs,.pm19-report-table,.pm19-report-table button,.pm19-report-table input,.pm19-report-table select,
.pm19-report-stat,.pm19-report-head,.pm19-report-filters{font-family:var(--font-family,Hacen),Hacen,Arial,sans-serif!important}
.pm19-report-table{border-radius:13px}
.pm19-report-table .pm19-report-head{background:var(--raised);padding:16px 20px;border-bottom:1px solid var(--line)}
.pm19-report-table .pm19-report-head h2{font-weight:700;font-size:1.03rem}
.pm19-report-table .pm19-report-filters{gap:12px;padding:14px 18px}
.pm19-report-table .table-wrap{max-height:65vh;overflow:auto}
.pm19-report-table thead th{position:sticky;top:0;z-index:2;background:var(--table);color:#fff;font-family:inherit;font-size:.8rem;padding:10px 12px}
.pm19-report-table tbody td{padding:10px 12px;line-height:1.8}
.pm19-report-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--blue) 2%,var(--surface))}
.pm19-report-table .pm19-report-note{padding:13px 18px}
.pm19-report-stats .pm19-report-stat{border-radius:11px;background:var(--surface);box-shadow:var(--shadow)}
.pm19-report-actions{font-family:inherit;gap:8px}
.pm21-report-help{font-size:.72rem;color:var(--muted);padding:8px 18px;border-top:1px solid var(--line);background:var(--raised)}
