import{b as l,a as p,j as t,B as a,f as c,d,T as s,a9 as f}from"./index-B1H8BCL7.js";import{d as x}from"./PaletteOutlined-CL0PRuW7.js";import{S as h}from"./Stack-BIAbaqpj.js";import"./useThemeProps-DL_l3A7P.js";const u=[{id:"profile",label:"Profile Settings",description:"Lab name, address, contacts, certificate",icon:c,path:"/ProfileView"},{id:"report-template",label:"Report Template Settings",description:"Logo, palette, letterhead style",icon:x,path:"/settings/report-template"},{id:"report-templates-by-dept",label:"Report Layouts by Department",description:"Per-department body layout (Tabular / Urinalysis / …)",icon:d,path:"/settings/report-templates"}],b=(r,i)=>r===i?!0:r.startsWith(i+"/");function S(){const r=l(),i=p();return t.jsxs(a,{sx:{px:{xs:1.5,sm:2.5},py:1.5},children:[t.jsx(h,{direction:"row",spacing:1,alignItems:"stretch",sx:{mb:2,overflowX:"auto",pb:.5,borderBottom:"1px solid #e2e8f0"},children:u.map(e=>{const n=e.icon,o=b(r.pathname,e.path);return t.jsxs(a,{role:"button",onClick:()=>i(e.path),sx:{position:"relative",display:"flex",alignItems:"center",gap:1,px:1.75,py:1.25,cursor:"pointer",transition:"all 0.15s ease",color:o?"#1d4ed8":"#475569",fontWeight:o?600:500,whiteSpace:"nowrap",borderRadius:"8px 8px 0 0",backgroundColor:o?"#eff6ff":"transparent","&:hover":{backgroundColor:o?"#eff6ff":"#f8fafc",color:o?"#1d4ed8":"#1e293b"},"&::after":o?{content:'""',position:"absolute",left:8,right:8,bottom:-1,height:2.5,borderRadius:"2px 2px 0 0",background:"linear-gradient(90deg, #1d4ed8 0%, #7c3aed 100%)"}:{}},children:[t.jsx(n,{sx:{fontSize:18,flexShrink:0}}),t.jsxs(a,{sx:{minWidth:0},children:[t.jsx(s,{sx:{fontSize:"0.85rem",fontWeight:"inherit",color:"inherit",lineHeight:1.2},children:e.label}),t.jsx(s,{sx:{fontSize:"0.66rem",color:"#94a3b8",mt:.15},children:e.description})]})]},e.id)})}),t.jsx(a,{sx:{width:"100%"},children:t.jsx(f,{})})]})}export{S as default};
