/* CCR Academy 2.6.0 - McK Cement brand outside the Control Room screens (matches mckcement.com: ink, flame orange,
   Barlow type), the Settings panel in the same colors, the Control Room View menu, and a cleaner screen tab bar.
   The process screens themselves (.cr) keep their DCS screen style. Loads last. */

/* ---------- Brand colors and type for the app (Home, Drills, Career, Instructor, Settings) ---------- */
:root {
  --bg: #121518; --bg2: #1a1e22; --panel: #22282e; --panel2: #2b3239; --line: #2c343b; --line2: #39424b;
  --text: #e9ecef; --muted: #a9b2ba; --dim: #7d868e;
  --accent: #e2601b; --accent2: #f08a2e; --sp: #f08a2e;
  --flame: #e2601b; --flame-2: #f08a2e; --flame-deep: #b8470d;
  --sans: 'Barlow', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --head: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
}
body { font-size: 14px; }
/* The Control Room keeps its HMI type and setpoint color; each screen style sets its own colors. */
.cr { --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; --sp: #8cc4ec; --accent: #f28c28; --accent2: #ffb35c; font-size: 13px; }

.topnav { background: rgba(18, 21, 24, .97); border-bottom: 1px solid #262d33; }
.topnav .brand span { font: 700 19px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.topnav .brand small { display: inline; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.navlinks button { font: 600 15px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; color: #d5dade; padding: 9px 12px; }
.navlinks button:hover { color: #fff; background: #252b31; }
.navlinks button.on { color: var(--flame-2); background: transparent; box-shadow: inset 0 -2px 0 var(--flame); }
.navbtn { font-family: var(--sans); }
.navbtn:hover { border-color: var(--line2); color: #fff; }
.navbtn.plantbtn, .navbtn.setbtn:hover, .navbtn.plantbtn:hover { border-color: var(--line2); }
.navbtn.plantbtn:hover .pn, .navbtn.setbtn:hover { color: var(--flame-2); }
.unitchip { border-color: var(--line2); }
.whoami .nm { white-space: nowrap; line-height: 1.2; }
.whoami .rk { color: var(--flame-2); }

#view h1, #view h2, .modal h2 { font-family: var(--head); letter-spacing: .03em; text-transform: uppercase; }
#view h3 { font-family: var(--head); letter-spacing: .04em; font-size: 17px; }
.btn.primary { background: var(--flame); border-color: var(--flame); color: #fff; }
.btn.primary:hover { background: var(--flame-2); border-color: var(--flame-2); color: #fff; }

/* ---------- Settings panel in the brand colors ---------- */
.setpanel { background: #121518; border-left-color: #262d33; font-family: var(--sans); }
.setpanel .sett b { font: 700 20px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.setpanel .sett .ico { color: var(--flame-2); }
.settabs { border-bottom-color: #262d33; }
.settabs button { font: 600 13px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; border-radius: 5px; padding: 8px 11px; }
.settabs button.on { background: transparent; color: var(--flame-2); box-shadow: inset 0 -2px 0 var(--flame); border-radius: 0; }
.setbody h3 { font: 700 17px/1.1 var(--head); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.setbody section { border-bottom-color: #262d33; }
.setnote { background: rgba(226, 96, 27, .08); border-color: rgba(240, 138, 46, .35); color: #f6d3b5; }
.pcard, .tcard { background: #1a1e22; border-color: #2c343b; }
.pcard:hover, .tcard:hover { border-color: #4a545d; }
.pcard.on { border-color: var(--flame); background: linear-gradient(90deg, rgba(226, 96, 27, .12), rgba(226, 96, 27, .02)); }
.pcard.on .radio { border-color: var(--flame-2); background: var(--flame-2); box-shadow: inset 0 0 0 3px #1a1e22; }
.tcard.on { border-color: var(--flame); box-shadow: 0 0 0 1px var(--flame), 0 0 18px rgba(226, 96, 27, .18); }
.tcard .tt em { background: var(--flame); color: #fff; }
.seg { border-color: #39424b; }
.seg button { background: #1a1e22; border-right-color: #39424b; font-family: var(--sans); }
.seg button.on { background: var(--flame); color: #fff; }
.setrow select { background: #1a1e22; border-color: #39424b; }
.setx { border-color: #39424b; }

/* ---------- Control Room: View menu ---------- */
.crmenu-wrap { position: relative; display: inline-flex; }
#crView { display: inline-flex; align-items: center; gap: 4px; }
#crView .caret { width: 10px; height: 10px; }
#crView.on { border-color: var(--sp); color: var(--sp); }
.crmenu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; display: none; z-index: 46; padding: 6px; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.crmenu.open { display: grid; gap: 2px; }
.crmenu .btn.mi { width: 100%; justify-content: flex-start; text-align: left; background: none; border: 1px solid transparent; padding: 7px 10px; font-size: 12.5px; color: var(--text); }
.crmenu .btn.mi:hover { background: var(--panel2); border-color: var(--line2); }
.crmenu .btn.mi.on { color: var(--sp); }
.crmenu .mnote { padding: 6px 10px 2px; font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; line-height: 1.4; }
/* "by McK Cement" link next to the logo (2.7.1) */
.brand .mcklink { color: inherit; text-decoration: none; }
.brand .mcklink:hover, .brand .mcklink:focus-visible { color: #f08a2e; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Trends On/Off switch, top-right of the process graphic (2.7.1) ---------- */
.cr .mimicwrap { position: relative; }
#crScr .trsw, .trsw.float { margin-left: auto; align-self: center; height: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 11px; border-radius: 999px; border: 1px solid #f08a2e; background: rgba(240, 138, 46, .14); color: #fff; font: 700 12px var(--sans); letter-spacing: .02em; cursor: pointer; white-space: nowrap; box-shadow: none; }
.trsw.float { position: absolute; right: 10px; top: 10px; z-index: 6; }
#crScr .trsw:hover { background: rgba(240, 138, 46, .26); }
.trsw svg { width: 15px; height: 15px; color: #f08a2e; }
.trsw .knob { position: relative; width: 30px; height: 17px; border-radius: 999px; background: #f08a2e; transition: background .15s; flex: none; }
.trsw .knob i { position: absolute; top: 2px; left: 15px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .15s; }
.trsw b { min-width: 24px; font-weight: 800; color: #f08a2e; }
#crScr .trsw.off { border-color: #5b636b; background: transparent; color: #c9d0d6; }
.trsw.off svg, .trsw.off b { color: #8d979f; }
.trsw.off .knob { background: #4a525a; }
.trsw.off .knob i { left: 2px; }
.cr.hmi-standard #crScr .trsw.off, .cr.hmi-light #crScr .trsw.off { color: #2b3137; border-color: #868c92; }
.cr.hmi-standard #crScr .trsw:not(.off), .cr.hmi-light #crScr .trsw:not(.off) { color: #2b3137; }

/* ---------- Screen tabs: a tab strip attached to the graphic, no scrollbar ---------- */
.cr .scrtabs { gap: 3px; padding: 0 10px; align-items: flex-end; scrollbar-width: none; }
.cr .scrtabs::-webkit-scrollbar { display: none; }
.cr .scrtabs .scrlbl { align-self: center; cursor: help; }
.cr .scrtabs button { height: 34px; padding: 0 15px; border-radius: 6px 6px 0 0; border-bottom: 0; font: 600 12.5px var(--sans); letter-spacing: .01em; position: relative; }
.cr .scrtabs button.on { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55); }
.cr .scrtabs .scrtip { display: none; }
/* FLS ECS classic (default): black strip, grey tabs, the open screen in ECS blue and joined to the graphic */
.cr.hmi-fls-classic .scrtabs { background: #0b0b0b; border-bottom: 2px solid #00a3ff; }
.cr.hmi-fls-classic .scrtabs .scrlbl { color: #8a8a8a; }
.cr.hmi-fls-classic .scrtabs button { background: #1c1c1c; border: 1px solid #3a3a3a; border-bottom: 0; color: #d8d8d8; }
.cr.hmi-fls-classic .scrtabs button:hover { background: #262626; color: #fff; }
.cr.hmi-fls-classic .scrtabs button.on { background: #00a3ff; border-color: #00a3ff; color: #000; box-shadow: none; }
.cr.hmi-fls-classic .crbar { background: #0b0b0b; border-bottom: 1px solid #262626; }
.cr.hmi-fls-classic .kpis { background: #050505; }
.cr.hmi-fls-classic .kpi { border-color: #262626; }
.cr.hmi-fls-classic .crright, .cr.hmi-fls-classic .rbody { background: #0a0a0a; }
.cr.hmi-fls-classic .rtabs button.on { color: #00a3ff; box-shadow: inset 0 -2px 0 #00a3ff; }
.cr.hmi-fls-classic .btn { background: #1a1a1a; border-color: #3a3a3a; color: #eee; }
.cr.hmi-fls-classic .btn:hover { border-color: #00a3ff; color: #fff; }
.cr.hmi-fls-classic .btn.primary { background: #e2601b; border-color: #e2601b; color: #fff; }
.cr.hmi-fls-classic .fp { background: #0d0d0d; border-color: #2c2c2c; }
.cr.hmi-fls-classic .fp .ctl button, .cr.hmi-fls-classic .modesel button { background: #1a1a1a; border-color: #3a3a3a; color: #e6e6e6; }
.cr.hmi-fls-classic .modesel button.on { background: #00a3ff; border-color: #00a3ff; color: #000; }
.cr.hmi-fls-classic .fp .bar i { background: #2bd84a; }
.cr.hmi-fls-classic .trendwrap { background: #000; }
.cr.hmi-fls-classic .crmenu { background: #111; border-color: #3a3a3a; }
