/*
 * CSquare brand override for osTicket's native Staff Control Panel.
 *
 * This is NOT an edit of scp.css itself - it's a separate stylesheet
 * loaded AFTER scp.css (see include/staff/header.inc.php, right before
 * </head>), so every rule below wins the cascade on selector ties
 * without needing !important. osTicket's staff panel has no built-in
 * theme/customization hook (unlike the client portal's
 * assets/default/css/theme.css, which IS an official customization
 * point) - this file plus the one <link> line added to header.inc.php
 * is the least invasive way to reskin it without editing scp.css's
 * ~3800 lines directly.
 *
 * Palette pulled live from csquare.co on 2026-09-18 (see javascript
 * getComputedStyle() checks against the real site - these are exact
 * values, not estimates):
 *   --cs-navy:   #081835  (site-wide dark brand color; hero/footer bg)
 *   --cs-red:    #f93822  (buttons, active nav, links, accents)
 *   fonts: Poppins (body), "DM Serif Display" (headings) - same fonts
 *   CCD's own dashboard.css already uses.
 *
 * REAPPLY AFTER A FUTURE OSTICKET REINSTALL: DEPLOY.md's step 4 does a
 * fresh git clone of osTicket, which wipes any core-file edit
 * (including the header.inc.php <link> line below). See BRANDING.md
 * for the exact one-line patch to reapply, and re-copy this file back
 * into scp/css/.
 */

:root {
  --cs-navy: #081835;
  --cs-navy-light: #0d2248;
  --cs-red: #f93822;
  --cs-red-hover: #e0301c;
}

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Poppins:wght@400;500;600;700&display=swap');

body {
  font-family: Poppins, "Helvetica Neue", arial, helvetica, sans-serif;
}

#header {
  background-color: var(--cs-navy);
  border-left: none;
  border-right: none;
  box-shadow: inset 0 -3px 0 var(--cs-red);
}
#logo {
  background: #fff;
  border-radius: 6px;
  margin: 6px 0 6px 5px;
  padding: 4px 10px 4px 5px;
}

#nav {
  background: var(--cs-navy);
  border-top: none;
  border-bottom: none;
}
#nav .active, #nav .inactive {
  color: rgba(255,255,255,.75);
}
#nav .inactive a {
  color: rgba(255,255,255,.75);
}
#nav .active a {
  color: #fff;
  font-weight: 600;
}
#nav li.active {
  background-color: rgba(255,255,255,.07);
  border-color: transparent;
  border-bottom: 3px solid var(--cs-red);
}
#nav li.inactive:hover {
  background-color: rgba(255,255,255,.05);
  border-color: transparent;
}
#nav li.inactive > ul {
  background: #fff;
}

#sub_nav {
  background: #f7f7f7;
  border-bottom: 1px solid #e2e2e2;
}
#sub_nav > li > a {
  color: var(--cs-navy);
}
#sub_nav > li > a:hover {
  color: var(--cs-red);
}
#sub_nav a.active, #sub_nav li.active > a, #sub_nav li.child.active > a {
  color: var(--cs-red);
  font-weight: 700;
}

.link,
a {
  color: var(--cs-navy);
}
a:hover, .link:hover {
  color: var(--cs-red);
}
div#header a {
  color: #fff;
}

button[type=submit], input[type="submit"], .primary.button {
  background-color: var(--cs-red);
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
  padding-left: 16px;
  padding-right: 16px;
}
button[type=submit]:hover, input[type=submit]:hover, input[type=submit]:active {
  background-color: var(--cs-red-hover);
  color: #fff;
  box-shadow: none;
}

h2 {
  color: var(--cs-navy);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

/* "Welcome, X | Admin Panel | Profile | Log Out" (#info) sits in its
   own light-gray box inside #header, not directly on the navy
   background - it must NOT inherit the white link color meant for
   the navy header bar itself, or it becomes near-invisible on #eee. */
#header #info a {
  color: var(--cs-navy);
}
#header #info a:hover {
  color: var(--cs-red);
}
#header #info {
  color: var(--cs-navy);
}
