/* "Professional" theme: compact (more on one screen), quiet colours, forms open as a panel on the right.
   Active when <html class="theme-pro">. The classic look stays in app.css. */
html.theme-pro{
  --navy:#111827; --navy2:#1F2937; --navy3:#273244; --ink:#111827; --muted:#4B5563; --muted2:#6B7280;
  --line:#E5E7EB; --line2:#D1D5DB; --bg:#F3F4F6; --card:#FFFFFF;
  --amber:#F59E0B; --blue:#1D4ED8; --blue-d:#1E40AF; --r:8px;
}
html.theme-pro body{font-family:"Segoe UI",Inter,system-ui,-apple-system,Roboto,sans-serif;font-size:13px}
html.theme-pro h1,html.theme-pro h2,html.theme-pro h3,html.theme-pro .cond,html.theme-pro .kpi b,html.theme-pro .stage b,
html.theme-pro .brand b{font-family:"Segoe UI",Inter,system-ui,sans-serif;letter-spacing:0}
/* side menu */
html.theme-pro .side{flex-basis:200px;padding:12px 8px;gap:1px}
html.theme-pro .side .brand{padding:2px 6px 12px;gap:9px}
html.theme-pro .logo.has-img{width:36px;height:36px}
html.theme-pro .brand b{font-size:15px;font-weight:700}
html.theme-pro .brand small{font-size:9.5px;letter-spacing:1px}
html.theme-pro .side .sec{font-size:10px;padding:10px 10px 2px}
html.theme-pro .side a{min-height:30px;padding:0 10px;border-radius:6px;font-size:13px}
html.theme-pro .side a.on{background:#2D3B52;color:#fff;font-weight:600;box-shadow:inset 3px 0 0 var(--amber)}
/* page */
html.theme-pro .main{gap:12px;padding:12px 18px 28px}
html.theme-pro .top{gap:8px 12px}
html.theme-pro .top h1{font-size:20px;font-weight:600}
html.theme-pro .top .sub{font-size:12px}
html.theme-pro .avatar{width:30px;height:30px;font-size:12px}
html.theme-pro .btn{min-height:32px;padding:0 12px;border-radius:6px;font-size:13px;font-weight:600}
html.theme-pro .btn.sm{min-height:26px;padding:0 9px;font-size:12px;border-radius:5px}
html.theme-pro .search{min-height:32px;border-radius:6px}
html.theme-pro .search input{width:170px}
html.theme-pro .card{border-radius:8px;padding:12px 14px;gap:10px;box-shadow:none;border:1px solid var(--line)}
html.theme-pro .card h2{font-size:15px;font-weight:600}
html.theme-pro .kpis{gap:10px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
html.theme-pro .kpi{border-radius:8px;padding:10px 12px;gap:2px;box-shadow:none;border:1px solid var(--line)}
html.theme-pro .kpi span{font-size:10.5px}
html.theme-pro .kpi b{font-size:19px;font-weight:600}
html.theme-pro .kpi small{font-size:11.5px}
html.theme-pro .route{border-radius:8px;padding:12px 14px;gap:10px}
html.theme-pro .route h2{font-size:15px}
html.theme-pro .stage{border-radius:6px;padding:8px 10px}
html.theme-pro .stage b{font-size:18px}
html.theme-pro .chip{font-size:11px;padding:1px 8px;border-radius:10px;font-weight:600}
html.theme-pro .plate{font-size:13px;border-width:1.5px;padding:0 6px;border-radius:4px}
html.theme-pro .vgrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
html.theme-pro .vcard{border-radius:8px;padding:10px;gap:7px}
html.theme-pro .vcard svg{max-height:62px}
html.theme-pro .facts b{font-size:13px}
html.theme-pro .tgrid{grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:6px}
html.theme-pro .tile{border-radius:8px;padding:7px 8px}
/* tables */
html.theme-pro table.tbl{font-size:12.5px}
html.theme-pro .tbl th{font-size:10.5px;padding:7px 8px;border-bottom-width:1px}
html.theme-pro .tbl td{padding:6px 8px}
html.theme-pro .tabs button{min-height:28px;padding:0 10px;border-radius:6px;font-size:12px}
html.theme-pro .empty{padding:16px;border-radius:8px}
html.theme-pro .note{font-size:12.5px;padding:8px 10px;border-radius:6px}
/* forms: centred window, compact */
html.theme-pro .modal{border-radius:10px;padding:16px 20px;gap:12px}
html.theme-pro .modal h2{font-size:18px;font-weight:600}
html.theme-pro .fgrid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 12px}
html.theme-pro .field{gap:3px}
html.theme-pro .field label{font-size:12px}
html.theme-pro .field input,html.theme-pro .field select,html.theme-pro .field textarea{min-height:32px;border-radius:6px;padding:0 9px}
html.theme-pro .field textarea{min-height:54px;padding:6px 9px}
html.theme-pro .field small{font-size:11px}
html.theme-pro .menu{top:36px;border-radius:8px}
html.theme-pro .menu a{padding:7px 10px}
html.theme-pro #toast div{padding:9px 13px;border-radius:6px}
/* side menu groups: the pages of a group open on the right (like the old software) */
html.theme-pro .grp{position:relative}
html.theme-pro .grp-btn{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:34px;padding:0 10px;border:0;
  border-radius:6px;background:transparent;color:#DCE4EF;font-size:13.5px;font-weight:500;cursor:pointer;text-align:left}
html.theme-pro .grp-btn i{font-style:normal;font-size:18px;line-height:1;color:#8A9DB8}
html.theme-pro .grp-btn:hover,html.theme-pro.menu-right .grp:hover .grp-btn,html.theme-pro.menu-right .grp.open .grp-btn{background:var(--navy2)}
html.theme-pro .grp.here .grp-btn{color:#fff;font-weight:600}
html.theme-pro.menu-right .grp.here .grp-btn{background:#2D3B52;box-shadow:inset 3px 0 0 var(--amber)}
html.theme-pro .fly{display:none;flex-direction:column;padding:2px 0 6px 10px}
html.theme-pro .grp.open .fly{display:flex}
html.theme-pro .fly .fly-h{display:none}
html.theme-pro .fly a{min-height:28px;font-size:12.5px;color:#C9D4E3}
html.theme-pro .grp.open .grp-btn i{transform:rotate(90deg)}
html.theme-pro .grp-btn i{transition:transform .15s}
html.theme-pro.menu-right .fly{position:absolute;left:100%;top:-6px;z-index:40;padding:0 0 0 8px;min-width:230px}
html.theme-pro.menu-right .grp.open .grp-btn i{transform:none}
html.theme-pro.menu-right .fly::before{content:"";position:absolute;inset:0 0 0 8px;background:#fff;border:1px solid var(--line2);border-radius:8px;
  box-shadow:0 10px 30px rgba(17,24,39,.22);z-index:-1}
html.theme-pro.menu-right .grp:hover .fly,html.theme-pro.menu-right .grp.open .fly{display:flex}
html.theme-pro.menu-right .fly .fly-h{display:block;font-size:10px;letter-spacing:1.2px;color:var(--muted2);padding:9px 14px 4px}
html.theme-pro.menu-right .fly a{color:var(--ink);min-height:32px;margin:0 4px;padding:0 10px;border-radius:6px;font-size:13px}
html.theme-pro.menu-right .fly a:hover{background:#EEF2F7}
html.theme-pro.menu-right .fly a.on{background:#E8EEFB;color:var(--blue);box-shadow:none;font-weight:600}
html.theme-pro .fly a.on{background:#2D3B52;color:#fff;box-shadow:inset 3px 0 0 var(--amber)}
html.theme-pro.menu-right .fly a:last-child{margin-bottom:5px}
@media (max-width:700px){html.theme-pro .fly{position:static;padding-left:0}html.theme-pro.menu-right .fly::before{display:none}
  html.theme-pro .fly a{color:#DCE4EF}html.theme-pro .fly .fly-h{display:none}}
/* view options under the user's name */
.viewmenu{right:0;top:44px;min-width:250px}
.viewmenu b{font-size:11px;letter-spacing:1px;color:var(--muted2);padding:8px 12px 2px}
.viewmenu a.on::before{content:"✓ ";color:var(--blue)}
/* side menu: a little bigger and clearer (27 Nov) */
html.theme-pro .side{flex-basis:224px;padding:14px 10px;gap:2px}
html.theme-pro .brand b{font-size:16px}
html.theme-pro .side a{min-height:38px;padding:0 12px;font-size:14.5px;font-weight:500;color:#E6ECF5}
html.theme-pro .grp-btn{min-height:38px;padding:0 12px;font-size:14.5px;font-weight:600;color:#F1F5FA;letter-spacing:.1px}
html.theme-pro .grp-btn i{font-size:20px;color:#A9B8CC}
html.theme-pro .grp{margin-top:2px}
html.theme-pro .fly{padding:2px 0 8px 14px;border-left:1px solid #34445C;margin-left:14px}
html.theme-pro .fly a{min-height:33px;font-size:13.5px;font-weight:400;color:#D3DCE8;padding:0 10px}
html.theme-pro .fly a:hover,html.theme-pro .side a:hover{background:#243247;color:#fff}
html.theme-pro .fly a.on{font-weight:600}
html.theme-pro.menu-right .fly{border-left:0;margin-left:0}
html.theme-pro.menu-right .fly a{font-size:14px;color:var(--ink)}
