/*****************************************
E20 CRM - MAIN STYLESHEET
This is the only stylesheet for the system (it replaces the old SASS files).
Edit this file directly - there is nothing to compile.

Colours: change the variables in :root below to re-theme a system.
Bootstrap 5 (stylesheets/bootstrap.min.css) loads first; this file overrides it.
PDF quotes use their own file: stylesheets/pdf-template.css
*****************************************/

/*****************************************
COLOURS
*****************************************/
:root {
    --BrandColourOne: #00aeef;
    --BrandColourTwo: #000;
    --BrandColourThree: #0a8bbc;
    --MenuBackground: #ffffff;
    --MenuLink: #374151;
    --MenuDropdownOne: #ffffff;
    --MenuDropdownOneHover: #fff;
    --BackgroundColor: #f4f6f9;
    --OffsetBackgroundColorOne: #f5f5f5;
    --FontColorOne: #4b5563;
    --InputBorderColorOne: #d1d5db;
    --DashboardBG: #00aeef;
    --DashboardBGHover: #0a8bbc;
    --RadioButtonBG: #00aeef;
    --RadioButtonBGChecked: #0a8bbc;
    --HeaderLineDivider: #0a8bbc;
    --TableHyperlinks: #00aeef;
    --TableBtnLinks: #c2c2c2;
    --TableHoverColor: #f8fafc;
    --InputBoxHoverColor: #9ca3af;
    --HeaderColour: #ffffff;
    --HeaderColourText: #374151;
    --HeaderColourLine: #e5e7eb;
    --HeaderColourMessage: #cc060d;
    --IconBG: #cceffc;
    --IconBGColor: #394B53;
    --MessageBG01: #00ADEF;
    --MessageColor01: #fff;
    --MessageNameColor01: #fff;
    --MessageBG02: #f5f5f5;
    --MessageColor02: #777777;
    --MessageNameColor02: #00ADEF;

    /* Added for the "light & clean" look */
    --HeadingColour: #111827;
    --LabelColour: #374151;
    --MutedText: #6b7280;
    --BorderColour: #e5e7eb;
    --SidebarHoverBG: #f0f9ff;
    --SidebarActiveBG: #e0f4fd;
    --SidebarActiveText: #0a8bbc;
    --FocusRing: rgba(0, 174, 239, 0.2);
    --Radius: 10px;
}

/*****************************************
FORMS
*****************************************/
label {
  display: block;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--LabelColour);
  margin: 0 0 6px 0;
}
.form-check-label,
.form-check label,
.checkbox label {
  display: inline;
  font-weight: 400;
  margin: 0;
}
span.requiredfield {
  color: #dc2626;
}

.form-control,
select.form-control {
  min-height: 42px;
  height: auto;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 24px;
  color: var(--HeadingColour);
  background-color: #fff;
  border: 1px solid var(--InputBorderColorOne);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control::placeholder {
  color: #9ca3af;
}
.form-control:hover,
select.form-control:hover {
  border-color: var(--InputBoxHoverColor);
}
.form-control:focus,
select.form-control:focus {
  border-color: var(--BrandColourOne);
  box-shadow: 0 0 0 3px var(--FocusRing);
  outline: 0;
}
.form-control:disabled,
select.form-control:disabled {
  background-color: #f3f4f6;
  color: var(--MutedText);
}
textarea.form-control,
textarea {
  min-height: 100px;
  resize: vertical;
}
.form-control.pwd {
  padding-right: 42px;
}
.form-control-border,
select.form-control-border {
  border: 1px solid var(--InputBorderColorOne);
}

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>") no-repeat right 12px center / 12px 12px;
}

.form-group {
  position: relative;
  margin-bottom: 18px;
}
.form-group p {
  line-height: 20px;
  margin: 0;
  font-size: 14px;
}
.form-text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--MutedText);
}

/* Show/hide password eye - sits inside the input, under a standard label */
span.PassowrdIcon {
  position: absolute;
  right: 10px;
  top: 33px;
  display: block;
  line-height: 1;
}
span.PassowrdIcon button.reveal {
  background-color: transparent;
  border: none;
  color: var(--MutedText);
  padding: 0;
}
span.PassowrdIcon button.reveal:hover {
  color: var(--BrandColourOne);
}
span.PassowrdIcon button.reveal:focus-visible {
  outline: 2px solid var(--BrandColourOne);
  border-radius: 4px;
}

.input-group-text {
  background-color: #f3f4f6;
  border: 1px solid var(--InputBorderColorOne);
  color: var(--MutedText);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border-color: var(--InputBorderColorOne) !important;
  -webkit-text-fill-color: inherit !important;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  transition: background-color 5000s ease-in-out 0s;
}

/*****************************************
BUTTONS / LINKS AND HIGHLIGHT STYLES
*****************************************/
::-moz-selection {
  background: var(--BrandColourOne);
  color: #fff;
}

::selection {
  background: var(--BrandColourOne);
  color: #fff;
}

a:link, a:active, a:visited {
  color: var(--BrandColourOne);
  text-decoration: none;
}

a:hover {
  color: var(--BrandColourTwo);
  text-decoration: none;
}

a:focus,
button:focus {
  outline: none;
}

a[href^=tel],
a[href^=tel]:hover {
  cursor: default;
  color: var(--BrandColourTwo);
}

.btn {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  padding: 10px 18px;
  margin: 0 2px 5px 2px;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:not([class*="btn-outline"]):not(.btn-light):not(.btn-warning):not(.btn-link) {
  color: #fff !important;
}
.btn-warning,
.btn-light {
  color: #212529 !important;
}
.btn-sm {
  padding: 5px 10px !important;
  font-size: 13px;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--BrandColourOne);
  border-color: var(--BrandColourOne);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--BrandColourThree);
  border-color: var(--BrandColourThree);
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--FocusRing) !important;
}

.btn.dropdown-toggle {
  padding: 5px 10px !important;
}

.input-group-prepend {
  justify-content: flex-end;
}
.input-group-prepend .btn {
  padding: 5px 7px;
}

.data-table-styles {
  font-size: 14px;
}

table.table tbody th, table.table tbody td {
  padding: 5px 10px 5px 10px;
  vertical-align: middle !important;
}

.btn-group, .btn-group-vertical {
  position: relative;
  display: block !important;
  float: left;
  width: 100%;
  opacity: 1;
  margin-top: 5px;
  z-index: 0;
}

table.table tbody tr.odd, table.table tbody tr.even {
  position: relative !important;
}

table.table tbody tr:hover .btn-group, table.table tbody tr:hover .btn-group-vertical {
  opacity: 1;
}

.dropdown-menu-action {
  padding: 0;
  margin: 0;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  -webkit-transform: none !important;
  transform: none !important;
  min-width: 200px;
  background-color: transparent !important;
  color: inherit !important;
  display: block;
  border: none;
  position: relative;
}
.dropdown-menu-action li {
  display: inline-flex;
  margin-right: 15px;
  position: relative;
  line-height: 1;
}
.dropdown-menu-action li:after {
  content: "|";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
}
.dropdown-menu-action li:last-child {
  margin: 0;
}
.dropdown-menu-action li:last-child:after {
  display: none;
}
.dropdown-menu-action li a,
.dropdown-menu-action li button {
  color: var(--BrandColourOne) !important;
  font-size: 14px;
  padding: 0 !important;
  border: none;
  background-color: transparent;
  cursor: pointer !important;
}

/*****************************************
MEDIA QUERIES
*****************************************/
/*****************************************
AFFECTS ALL COL-XS COLUMNS (MOBILE LANDSCAPE)
*****************************************/
/* END XS MEDIA QUERY TAG */
/*****************************************
AFFECTS ALL COL-SM COLUMNS (TABLET PORTRAIT)
*****************************************/ /* END SM MEDIA QUERY TAG */
/*****************************************
AFFECTS ALL COL-MD COLUMNS (TABLET LANDSCAPE)
*****************************************/
/* END MD MEDIA QUERY TAG */
/*****************************************
AFFECTS ALL COL-LG COLUMNS (DESKTOP)
*****************************************/
@media (min-width: 1200px) {
  .btn-group, .btn-group-vertical {
    position: absolute;
  }
} /* END LG MEDIA QUERY TAG */
/*****************************************
AFFECTS ALL COL-XL COLUMNS (LARGE DESKTOP)
*****************************************/
@media (min-width: 1600px) {
  table.table tbody tr .btn-group, table.table tbody tr .btn-group-vertical {
    opacity: 0;
    transition: all 0.2s ease;
    transform: translateY(-50%);
  }
  table.table tbody tr:hover .btn-group, table.table tbody tr:hover .btn-group-vertical {
    opacity: 1;
    transition: all 0.2s ease;
    transform: translateY(0);
  }
} /* END XL MEDIA QUERY TAG */
/*****************************************
BODY STYLES
*****************************************/
body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: var(--FontColorOne);
  background-color: var(--BackgroundColor);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -o-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding: 74px 0 0 0;
}

html, body {
  height: 100%;
  min-height: 100%;
}

.SiteLogo {
  padding: 5px;
  width: 150px;
  margin-bottom: 0;
  text-align: left;
}
.SiteLogo img {
  max-width: 100%;
  height: auto;
  max-height: 40px;
  width: auto;
}

a.btn, button.btn {
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.06) !important;
}

/*****************************************
TYPOGRAPHY
*****************************************/
h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  color: var(--HeadingColour);
  margin-bottom: 1rem;
}
h1 { font-size: 1.25rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.95rem; }
h5 { font-size: 0.85rem; }
h6 { font-size: 0.75rem; }

/* Section headings inside forms and cards */
form h1, form h2, form h3, form h4, form h5, form h6,
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
  color: var(--HeadingColour) !important;
}

@media (min-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
}

/* Search box above list tables */
.searchbox {
  padding: 16px;
}
.searchbox .form-group {
  margin-bottom: 0 !important;
}
.searchbox input.form-control {
  padding-left: 40px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%239ca3af' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14'/></svg>") no-repeat 12px center / 18px 18px;
}

/* Tabs above edit forms */
.nav-tabs {
  border: 0 !important;
  margin: 0 0 8px 4px;
  gap: 4px;
}
.nav-tabs .nav-link {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--MutedText);
  background: transparent !important;
}
.nav-tabs .nav-link:hover {
  color: var(--HeadingColour);
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: var(--BrandColourThree);
  border-bottom-color: var(--BrandColourOne) !important;
}

.card-header {
  color: var(--HeadingColour) !important;
  font-weight: 400;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px !important;
  background-color: #fff;
  border: 0 !important;
  border-bottom: 1px solid var(--BorderColour) !important;
  padding: 16px 20px !important;
}

/*****************************************
REMINDERS CAL
*****************************************/

/* Hide scrollbar for IE, Edge and Firefox */

/*****************************************
PAGE TAGS STYLES
*****************************************/

button.innerbutton {
  font-size: 16px;
  padding: 5px 10px;
}

button.tablebutton {
  font-size: 12px !important;
  margin: 0 !important;
  padding: 5px 5px !important;
}

/*****************************************
LOGIN STYLES
*****************************************/
#login {
  background-color: var(--OffsetBackgroundColorOne);
  padding: 0;
}

.MainLogo {
  margin: 0 0 20px 0;
  max-width: 100%;
  height: 90px;
}

.LoginBoxCentered {
  position: relative;
  top: auto;
  transform: none;
  padding: 15px 0;
}

.LoginBoxContainer {
  background-color: #fff;
  padding: 40px 40px;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}
.LoginBoxContainer h1, .LoginBoxContainer h2, .LoginBoxContainer h3, .LoginBoxContainer h4, .LoginBoxContainer h5, .LoginBoxContainer h6 {
  text-align: center;
}
.LoginBoxContainer p {
  text-align: center;
}

/*****************************************
HEADER STYLES
*****************************************/
/* Mobile / tablet top bar (below 992px) */
.MastHead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background-color: var(--HeaderColour);
  border-bottom: 1px solid var(--BorderColour);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.MastHead .container-fluid {
  padding: 0;
  margin: auto;
  height: 100%;
}
.MastHead .container-fluid .row {
  height: 100%;
}
.MastHead ul.UserLinks {
  padding: 0;
  margin: 10px auto 10px auto;
  list-style: none;
  display: flex;
}
.MastHead ul.UserLinks li {
  padding: 0 10px;
  display: inline-flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  line-height: 14px;
}
.MastHead ul.UserLinks li p {
  margin: 0 !important;
  color: var(--HeaderColourText);
}
.MastHead ul.UserLinks li a {
  color: var(--HeaderColourText);
  font-size: 10px;
}
.MastHead ul.UserLinks li .MemberImage {
  border-radius: 50%;
}

/* Desktop top bar */
.StaticHeader {
  background-color: var(--HeaderColour) !important;
  color: var(--HeaderColourText) !important;
  min-height: 60px;
  padding: 8px 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--BorderColour);
}
.StaticHeader ul.UserButton {
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0 0 0 5px;
  flex: none;
}
.StaticHeader ul.UserButton li {
  padding: 0 6px;
  display: inline-flex;
  margin: 0 !important;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  font-size: 18px;
  position: relative;
}
.StaticHeader ul.UserButton li:nth-child(2) {
  padding-right: 14px;
  margin-right: 8px !important;
  border-right: 1px solid var(--HeaderColourLine);
}
.StaticHeader ul.UserButton li p {
  font-size: 14px;
  font-weight: 500;
}
.StaticHeader ul.UserButton li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--MutedText);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.StaticHeader ul.UserButton li a:hover,
.StaticHeader ul.UserButton li a:focus-visible {
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourOne);
}
.StaticHeader ul.UserButton li i {
  margin: 0 !important;
}
.StaticHeader ul.UserButton li .MemberImage {
  border-radius: 50%;
}
.StaticHeader ul.UserButton li .note-number {
  position: absolute;
  right: 6px;
  top: 2px;
  background-color: var(--HeaderColourMessage);
  color: #fff;
  border-radius: 50%;
  display: block;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  width: 16px;
  height: 16px;
  z-index: 4;
}

.menu-btn {
  color: var(--HeaderColourText);
  font-size: 22px;
}

/*****************************************
BREADCRUMBS
*****************************************/
.BreadCrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  width: auto;
  margin-right: auto;
  align-items: center;
}

/*****************************************
VERTICAL SIDEBAR STYLES
*****************************************/
.SideBarMenu {
  display: block;
  height: 100%;
  z-index: 2;
  color: var(--MenuLink) !important;
  background-color: var(--MenuBackground) !important;
  padding: 0 0 16px 0 !important;
  overflow-y: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.SideBarMenu::-webkit-scrollbar {
  display: none;
}

/* Reports etc. open in place under their heading */
.SideBarMenu .dropdown-menu.show,
.SideBarMenu .dropdown:hover > .dropdown-menu {
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  transform: none !important;
  display: block;
  width: 100%;
  box-shadow: none;
}

.SideBarMenu > ul.NavList {
  width: 100%;
  float: left;
  padding: 4px 12px;
  list-style: none;
  margin: 0;
}
.SideBarMenu > ul.NavList > li {
  float: left;
  width: 100%;
  padding: 0;
  margin: 1px 0;
  position: relative;
}

.SideBarMenu > ul.NavList > li > a,
.SideBarMenu ul.dropdown-menu > li > a {
  display: block;
  position: relative;
  color: var(--MenuLink) !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.SideBarMenu > ul.NavList > li > a {
  padding: 9px 12px 9px 44px;
}
.SideBarMenu > ul.NavList > li > a:hover,
.SideBarMenu > ul.NavList > li > a:focus-visible,
.SideBarMenu > ul.NavList > li > a.show,
.SideBarMenu > ul.NavList > li.dropdown:hover > a {
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourThree) !important;
}
.SideBarMenu > ul.NavList > li.active > a {
  background-color: var(--SidebarActiveBG);
  color: var(--SidebarActiveText) !important;
  font-weight: 600;
}

.SideBarMenu .dropdown-menu {
  float: none;
  border-radius: 0;
  border: none;
  padding: 2px 0;
  margin: 0;
  min-width: 0;
  background-color: transparent !important;
}
.SideBarMenu ul.dropdown-menu > li {
  padding: 0;
}
.SideBarMenu ul.dropdown-menu > li > a {
  padding: 7px 12px 7px 44px;
  font-weight: 400;
  color: var(--MutedText) !important;
  background-color: transparent;
}
.SideBarMenu ul.dropdown-menu > li > a:hover,
.SideBarMenu ul.dropdown-menu > li > a:focus-visible,
.SideBarMenu ul.dropdown-menu > li > a[aria-current="page"] {
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourThree) !important;
}
.SideBarMenu ul.dropdown-menu > li > a span.NavIcon {
  display: none; /* sub-items line up with the text above instead */
}
.SideBarMenu ul.dropdown-menu > li hr {
  margin: 0.2rem 0;
}

.dropdown-toggle::after {
  display: none;
}

span.NavIcon {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 100%;
  text-align: center;
  color: var(--BrandColourOne) !important;
}
img.NavIcon {
  position: absolute;
  top: 10px;
  left: 12px;
}
span.NavIcon:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}

.menu-btn-close {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
  width: 44px;
  height: 44px;
  background-color: var(--BrandColourOne);
  font-size: 16px;
}
.menu-btn-close span,
.menu-btn-close i {
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

/*****************************************
FLYOUT MENU
*****************************************/
.sidebar-wrapper {
  width: 100%;
  position: fixed;
  overflow-y: auto;
  z-index: 10;
  display: block;
  top: 0px;
  bottom: 0px;
  left: -100%;
  background-color: #fff;
}
.sidebar-wrapper.active {
  left: 0px;
}

/*****************************************
MAIN
*****************************************/
.dashboard-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  background-color: var(--DashboardBG);
  margin: 15px 0;
  min-height: 100px;
  color: #fff !important;
  padding: 15px 10px;
  transition: all 0.2s ease;
}
.dashboard-box .icon {
  font-size: clamp(1rem, 5vw, 2rem);
}
.dashboard-box .title {
  display: block;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 5px;
  word-break: break-word;
  line-height: 1.2;
}
.dashboard-box:hover, .dashboard-box:focus, .dashboard-box:active {
  background-color: var(--DashboardBGHover);
  transition: all 0.2s ease;
}

.custom-radiobox {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 1rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: var(--RadioButtonBG);
  color: #fff;
  width: 100%;
  text-align: center;
  margin: 0 0 15px 0 !important;
  border-radius: 5px;
}

.custom-radiobox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: transparent;
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 5px;
}

.custom-radiobox input:checked ~ .checkmark {
  background-color: var(--RadioButtonBGChecked);
}

.card {
  border-radius: var(--Radius);
  word-wrap: normal;
  border: 1px solid var(--BorderColour);
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: -20px;
}
.card-icon span,
.card-icon i {
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 30px;
}

.card-icon-content {
  padding: 0 100px 0 0;
  text-align: left;
}
.card-icon-content span.NumberTotal {
  font-size: 18px;
  font-weight: 700;
}
.card-icon-content strong {
  color: var(--BrandColourOne);
}

.card-icon-static {
  background-color: var(--IconBG);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 20px;
  color: var(--IconBGColor);
}

.SingleNumberTotal {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 5px 0;
}

.total-heading {
  display: block;
  line-height: 1.4;
  margin-right: auto;
  font-size: 1.125rem;
}

ul.instant-message {
  display: block;
  padding: 0;
  margin: 0;
}
ul.instant-message li {
  display: flex;
  padding: 0;
  margin: 0 0 30px 0;
  list-style: none;
}
ul.instant-message li.message-reply {
  margin-left: 70px;
}
ul.instant-message li img {
  margin: 10px 30px 0 0;
}

.message-box {
  border-radius: 5px;
  padding: 30px;
  font-size: 0.875rem;
}
.message-box:before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 5px;
  position: absolute;
  left: -8px;
  top: 20px;
  display: block;
  transform: rotate(45deg);
}
.message-box .message-info {
  font-size: 1rem;
}

.message-box01 {
  background-color: var(--MessageBG01);
  color: var(--MessageColor01);
}
.message-box01:before {
  background-color: var(--MessageBG01);
}
.message-box01 .message-name {
  color: var(--MessageNameColor01);
}

.message-box02 {
  background-color: var(--MessageBG02);
  color: var(--MessageColor02);
}
.message-box02:before {
  background-color: var(--MessageBG02);
}
.message-box02 .message-name {
  color: var(--MessageNameColor02);
}

.PageHeading h1 {
  margin: auto 0;
  width: 100%;
  text-transform: capitalize;
  display: flex;
  flex: 1 1 100%;
  font-weight: 500;
  color: var(--HeadingColour);
}
.PageHeading ul.PageButtons {
  padding: 0;
  float: left;
  display: inline-flex;
  margin: 10px 0 0 0;
  flex-wrap: wrap;
}
.PageHeading ul.PageButtons li {
  float: left;
  display: inline-flex;
  padding: 0;
  margin: 0 0 5px 0;
  list-style: none;
  align-items: flex-start;
}
.PageHeading ul.PageButtons li a {
  font-size: 0;
  padding: 8px 16px;
}
.PageHeading ul.PageButtons li a span,
.PageHeading ul.PageButtons li a i {
  font-size: initial;
}

.PageSearch .form-control {
  padding: 15px 80px 15px 10px;
}
.PageSearch button.btn-primary {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 0;
  width: 65px;
  height: 65px;
  margin: 0;
}

.box-number {
  font-size: 2rem;
  font-weight: 700;
}

.stat-header {
  display: flex;
  position: relative;
}
.stat-header .color-tab {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  min-height: 60px;
  border-radius: 0 10px 10px 0;
  background-color: #fff;
  height: 90%;
}
.stat-header .title {
  font-size: 16px;
  display: block;
  margin-top: 5px;
}
.stat-header .stat {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 32px;
  display: block;
}
.stat-header p {
  margin: 0;
  font-size: 16px;
}
.stat-header a {
  color: #006B94;
}

.stat-body {
  margin-top: 30px;
}
.stat-body .title {
  font-size: 16px;
  display: block;
}
.stat-body a {
  color: #006B94;
}

ul.user-stat {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
ul.user-stat li {
  list-style: none;
  padding: 5px 0;
  margin: 0;
  display: flex;
  border-bottom: solid 1px #00A0DE;
  width: 100%;
  font-size: 16px;
}
ul.user-stat li:last-child {
  border-bottom: none;
}

ul.global-list {
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
}
ul.global-list li {
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: solid 1px #dee2e6;
}
ul.global-list li:last-child {
  border-bottom: none;
}
ul.global-list li a h1, ul.global-list li a h2, ul.global-list li a h3, ul.global-list li a h4, ul.global-list li a h5, ul.global-list li a h6 {
  color: #000;
  font-size: 18px;
}

.overflow-hidden {
  overflow: hidden;
}

.flex-none {
  flex: none;
}

/*****************************************
TABLE STYLES
*****************************************/
.table tbody tr .table-leftborder-success {
  border-left: 4px solid var(--BrandColourThree);
}
.table tbody tr td a {
  color: inherit;
}

table.table {
  margin: 0 !important;
}
table.table th {
  background-color: #f8fafc !important;
  color: var(--MutedText);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px !important;
  border: 0;
  border-bottom: 1px solid var(--BorderColour) !important;
}
table.table th:first-child {
  border-radius: var(--Radius) 0 0 0 !important;
}
table.table th:last-child {
  border-radius: 0 var(--Radius) 0 0 !important;
}
table.table td {
  padding: 12px 16px !important;
  border-top: 1px solid var(--BorderColour) !important;
  line-height: 20px;
  vertical-align: middle;
}
table.table tbody tr:first-child td {
  border-top: 0 !important;
}
table.table td a {
  color: var(--TableHyperlinks) !important;
  font-weight: 500;
  text-decoration: none;
}
table.table td a:hover {
  text-decoration: underline;
}
table.table tbody tr:hover {
  background-color: var(--TableHoverColor) !important;
}
table.table a.icon-link,
table.table button.icon-link {
  padding: 0 8px;
  background: none !important;
  border: 0 !important;
  color: var(--MutedText) !important;
  text-decoration: none;
}
table.table a.icon-link:hover,
table.table button.icon-link:hover {
  color: var(--BrandColourOne) !important;
}
table.table a.icon-link i {
  font-size: 18px !important;
}
table.table button.icon-link {
  font-size: 18px;
}
table.table i {
  font-size: 12px;
}
table.table i.fas {
  font-size: 18px !important;
}
table.table .dropdown-menu {
  border-radius: 8px !important;
  border: 1px solid var(--BorderColour);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}
/* The last column (actions, badges) sits on the right - its heading too */
table.table tr td:last-child,
table.table tr th:last-child {
  text-align: right;
}

table.tableinner th {
  background-color: #f8fafc !important;
  border: 0;
  border-top: 1px solid var(--BorderColour) !important;
  border-bottom: 1px solid var(--BorderColour) !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
}
table.tableinner th:first-child,
table.tableinner th:last-child {
  border-radius: 0 !important; /* these tables sit under a card title, not at the top of a card */
}
table.tableinner td {
  padding: 12px 16px !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--BorderColour) !important;
}
table.tableinner {
  margin: 0 0 20px 0 !important;
}

.input-group-prepend .btn {
  padding: 5px 10px;
  border-radius: 0 !important;
}

/*****************************************
TABS STYLES
*****************************************/
.nav.flex-column {
  flex-direction: unset !important;
  border-bottom: solid 1px #e5e5e5;
  justify-content: center;
}
.nav.flex-column .nav-link {
  border-bottom: none;
  color: inherit;
  display: inline-flex;
}
.nav.flex-column .nav-link .badge {
  font-size: 10px;
  border-radius: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 21px;
  margin: 0 0 0 5px;
  text-align: center;
}

/* Older views: tab panes sit straight in the card. Redesigned views put the panes in .card-body, which has its own padding. */
.tab-content:not(.card-body) {
  padding: 20px 0 0 0 !important;
}

/*****************************************
PAGINATION STYLES
*****************************************/
ul.pagination .page-item .page-link {
  color: var(--BrandColourOne);
}
ul.pagination .page-item .page-link:focus {
  outline: none !important;
  box-shadow: none !important;
}
ul.pagination .page-item.active .page-link {
  background-color: var(--BrandColourOne);
  border-color: var(--BrandColourOne);
  color: #fff;
}

/*****************************************
MODAL STYLES
*****************************************/
.modal .btn {
  width: 100%;
}

.modal-header .close {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 5px;
  transform: translateX(-50%);
}

/*****************************************
MISC STYLES
*****************************************/
.bg-primary {
  background-color: var(--BrandColourOne) !important;
}

.text-primary {
  color: var(--BrandColourOne) !important;
}

.col-100,
header,
footer,
section,
aside,
article,
nav,
figure,
figcaption,
main {
  width: 100%;
  float: left;
  position: relative;
  display: block;
}

.alert {
  border-radius: 5px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
  padding: 15px 15px 15px 42px;
  position: relative;
  text-align: center;
  margin: 0 !important;
}
.alert:before {
  position: absolute;
  left: 11px;
  top: 15px;
  font-size: inherit;
  display: block;
  font-family: "Material Symbols Outlined";
  font-feature-settings: "liga";
  line-height: 1;
  width: 25px;
  height: 25px;
  text-align: center;
  font-size: 20px;
}

.alert-primary:before {
  content: "check_circle";
}

.alert-secondary:before {
  content: "notifications";
}

.alert-success:before {
  content: "check_circle";
}

.alert-danger:before {
  content: "priority_high";
}

.alert-warning:before {
  content: "notifications";
}

.alert-info:before {
  content: "notifications";
}

.alert-light:before {
  content: "notifications";
}

.alert-dark:before {
  content: "notifications";
}

.alert button.close {
  position: absolute;
  top: 20px;
  right: 12px;
  padding: 0;
}
.alert a.btn,
.alert button.btn {
  margin: 0 5px 10px 0;
  padding: 5px;
  width: 100%;
}
.alert strong {
  text-transform: uppercase;
}

.badge {
  font-weight: 400;
  line-height: 1.2;
}

.ColMargin {
  margin: 0 0 15px 0;
}

.ColMarginLarge {
  margin: 30px 0 15px 0;
}

.ColMarginSmall {
  margin: 15px 0 15px 0;
}

.bullets ul,
ul.bullets {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.bullets ul li,
ul.bullets li {
  list-style: none !important;
  background: none !important;
  position: relative;
  padding: 0 0 0 15px;
  margin: 0 0 5px 0;
  line-height: 20px;
}

.bullets ul li:before,
ul.bullets li:before {
  display: inline-block;
  font-family: "Material Symbols Outlined";
  font-feature-settings: "liga";
  font-size: 16px;
  content: "chevron_right";
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: inherit;
  color: #687384;
  position: absolute;
  top: 0;
  left: 0;
}

ol.breadcrumb {
  padding: 0;
  background-color: transparent;
  display: none;
}
ol.breadcrumb li {
  font-size: 13px;
}

.flex-wrap {
  flex-wrap: wrap;
}

input[type=checkbox], input[type=radio] {
  vertical-align: middle;
}

.input-group .custom-file-label {
  display: flex;
  align-items: center;
  cursor: pointer !important;
}

.custom-file-label::after {
  border-radius: 0;
}

.modal-header {
  position: relative;
}

.modal-footer {
  flex-wrap: wrap;
}
.modal-footer .btn {
  margin: 2px !important;
}

/*****************************************
MEDIA QUERIES
*****************************************/
/*****************************************
AFFECTS ALL COL-XS COLUMNS (MOBILE LANDSCAPE)
*****************************************/
@media (min-width: 576px) {
  .dashboard-box {
    min-height: 160px;
  }
} /* END XS MEDIA QUERY TAG */
/*****************************************
AFFECTS ALL COL-SM COLUMNS (TABLET PORTRAIT)
*****************************************/
@media (min-width: 768px) {
  .MastHead .container-fluid {
    padding: 0;
  }
  .alert {
    text-align: left;
  }
  .alert a.btn,
  .alert button.btn {
    width: auto;
    margin: 0 5px 0 0;
  }
} /* END SM MEDIA QUERY TAG */
/*****************************************
AFFECTS ALL COL-MD COLUMNS (TABLET LANDSCAPE)
*****************************************/
@media (min-width: 992px) {
  .SiteLogo {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
  }
  .SiteLogo img {
    max-height: 60px;
  }
  body {
    padding: 0px 0 0 250px;
  }
  body.HorizontalMenu {
    padding: 100px 0 0 0;
  }
  .sidebar-wrapper {
    width: 100%;
    position: relative;
    overflow: visible;
    top: auto;
    bottom: auto;
    right: auto;
    background: transparent;
  }
  .SideBarMenu {
    width: 250px;
    position: fixed;
    left: 0;
    padding-top: 0;
    border-right: 1px solid var(--BorderColour);
    background-color: var(--MenuBackground);
  }
  body.HorizontalMenu .SideBarMenu > ul.NavList > li {
    width: auto;
  }
  body.HorizontalMenu .SideBarMenu {
    height: auto;
  }
  .PageHeading h1 {
    width: auto;
    margin: 0;
  }
  .PageHeading ul.PageButtons {
    float: right;
    width: auto;
  }
  .PageHeading ul.PageButtons li {
    float: left;
    padding: 0;
    list-style: none;
    width: auto;
  }
  .PageHeading ul.PageButtons li a {
    font-size: inherit;
  }
  .PageHeading ul.PageButtons li a span {
    font-size: inherit;
  }
  .nav.flex-column {
    border-right: solid 1px #e5e5e5;
    flex-direction: column !important;
    height: 100%;
    justify-content: unset;
  }
  .nav.flex-column .nav-link {
    border-bottom: solid 1px #e5e5e5;
    display: block;
  }
  .nav.flex-column .nav-link:last-child {
    border: none !important;
  }
  .tab-content:not(.card-body) {
    padding: 20px 30px 20px 0;
  }
  .dropdown__row2 .dropdown-menu {
    flex-wrap: wrap;
    width: 100% !important;
  }
  .dropdown__row2 .dropdown-menu.show {
    display: flex !important;
  }
  .dropdown__row2 .dropdown-menu li a {
    white-space: unset !important;
  }
  .dropdown__row2:hover .dropdown-menu {
    display: flex !important;
  }
  .dropdown__row3 .dropdown-menu {
    flex-wrap: wrap;
    width: 700px !important;
  }
  .dropdown__row3 .dropdown-menu.show {
    display: flex !important;
  }
  .dropdown__row3 .dropdown-menu li {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
  .dropdown__row3 .dropdown-menu li a {
    white-space: unset !important;
  }
  .dropdown__row3:hover .dropdown-menu {
    display: flex !important;
  }
} /* END MD MEDIA QUERY TAG */
/*****************************************
AFFECTS ALL COL-LG COLUMNS (DESKTOP)
*****************************************/
/* END LG MEDIA QUERY TAG */
/*****************************************
AFFECTS ALL COL-XL COLUMNS (LARGE DESKTOP)
*****************************************/
@media (min-width: 1600px) {
  .LoginBoxCentered {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  body.HorizontalMenu .sidebar-wrapper {
    width: 100%;
    position: relative;
    overflow: visible;
    top: auto;
    bottom: auto;
    right: auto;
    background: transparent;
  }
  ol.breadcrumb {
    display: flex;
    flex: 1 1 100%;
  }
} /* END XL MEDIA QUERY TAG */
.btn-sm {
  padding: 5px !important;
}

/*****************************************
LAYOUT ADDITIONS (Phase 3)
*****************************************/

/* Bootstrap 5.3 paints each table cell with --bs-table-bg, which hides any
   background set on the row (e.g. the row hover colour above). Make cells see-through. */
.table {
  --bs-table-bg: transparent;
}

/* Announcement in the top bar (replaces the old <marquee>) - scrolls right to left */
.StaticHeader .Announcement {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 10px;
  font-size: 16px;
}
.StaticHeader .Announcement span {
  display: inline-block;
  padding-left: 100%;
  animation: AnnouncementScroll 25s linear infinite;
}
.StaticHeader .Announcement:hover span {
  animation-play-state: paused;
}
@keyframes AnnouncementScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .StaticHeader .Announcement span {
    animation: none;
    padding-left: 0;
  }
}

/*****************************************
2FA DASHBOARD CODE SCREEN (2fa.php)
*****************************************/
body.TwoFactorScreen {
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5; /* the main body rule uses a fixed 24px, which squashes the giant code */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: var(--BackgroundColor);
}
.TwoFactorScreen .code-container {
  background: #fff;
  border-radius: 20px;
  padding: 10px calc(3vw + 15px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.TwoFactorScreen .code-display {
  font-size: clamp(2rem, 12vw, 80rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: clamp(5px, 5vw, 155px);
  color: var(--BrandColourOne);
  margin: 30px -20px 30px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  width: 100%;
  word-break: break-word;
}
.TwoFactorScreen .timer-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  flex: none;
}
.TwoFactorScreen .timer-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--BrandColourOne) 0%, var(--BrandColourThree) 100%);
  transition: width 0.3s ease;
  border-radius: 10px;
}
.TwoFactorScreen .info-text {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 15px;
}
.TwoFactorScreen .fade-in {
  animation: TwoFactorFadeIn 0.5s ease-in;
}
.TwoFactorScreen .pulse {
  animation: TwoFactorPulse 0.5s ease-in-out;
}
@keyframes TwoFactorFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes TwoFactorPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/*****************************************
ICONS - Google Material Symbols (self-hosted)
The font is fonts/material-symbols-outlined.woff2 - a cut-down copy holding only the icons below
(Apache 2.0 licence). Font Awesome is no longer used.

New markup:   <span class="material-symbols-outlined">edit</span>
Old markup still works - the Font Awesome class names below are mapped to Material icons,
e.g. <i class="fas fa-edit"></i> shows the Material "edit" icon.

To add an icon: find its name at https://fonts.google.com/icons, add it to the icon_names list in the
download URL in the change log, download the font again and replace the .woff2 file.
*****************************************/
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/material-symbols-outlined.woff2?v=3") format("woff2");
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: -0.2em;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* Font Awesome class names -> Material Symbols */
.fa, .fas, .far, .fab {
  display: inline-block;
  font-style: normal;
  line-height: 1;
  vertical-align: -0.2em;
}
.fa::before, .fas::before, .far::before, .fab::before {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  display: inline-block;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}
.fa-spin {
  animation: IconSpin 2s linear infinite;
}
@keyframes IconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.fa-arrow-left::before { content: "arrow_back"; }
.fa-edit::before { content: "edit"; }
.fa-trash-alt::before { content: "delete"; }
.fa-plus::before { content: "add"; }
.fa-exclamation::before { content: "priority_high"; }
.fa-eye::before { content: "visibility"; }
.fa-arrow-circle-right::before { content: "arrow_circle_right"; }
.fa-download::before { content: "download"; }
.fa-times::before { content: "close"; }
.fa-check::before { content: "check"; }
.fa-users::before { content: "group"; }
.fa-quote-left::before { content: "format_quote"; }
.fa-eye-slash::before { content: "visibility_off"; }
.fa-pound-sign::before { content: "currency_pound"; }
.fa-user::before { content: "person"; }
.fa-upload::before { content: "upload"; }
.fa-tasks::before { content: "task_alt"; }
.fa-lock::before { content: "lock"; }
.fa-file-pdf::before { content: "picture_as_pdf"; }
.fa-cogs::before { content: "settings"; }
.fa-check-double::before { content: "done_all"; }
.fa-building::before { content: "apartment"; }
.fa-arrow-alt-circle-up::before { content: "arrow_circle_up"; }
.fa-arrow-alt-circle-down::before { content: "arrow_circle_down"; }
.fa-share-square::before { content: "share"; }
.fa-quote-right::before { content: "format_quote"; }
.fa-power-off::before { content: "power_settings_new"; }
.fa-file-import::before { content: "upload_file"; }
.fa-expand::before { content: "fullscreen"; }
.fa-comment-dots::before { content: "chat"; }
.fa-cog::before { content: "settings"; }
.fa-cloud-upload-alt::before { content: "cloud_upload"; }
.fa-user-tag::before { content: "badge"; }
.fa-unlock::before { content: "lock_open"; }
.fa-undo::before { content: "undo"; }
.fa-shield::before { content: "shield"; }
.fa-search::before { content: "search"; }
.fa-project-diagram::before { content: "account_tree"; }
.fa-print::before { content: "print"; }
.fa-phone::before { content: "call"; }
.fa-newspaper::before { content: "newspaper"; }
.fa-mobile::before { content: "smartphone"; }
.fa-minus::before { content: "remove"; }
.fa-microchip::before { content: "memory"; }
.fa-long-arrow-alt-left::before { content: "arrow_back"; }
.fa-key::before { content: "key"; }
.fa-envelope::before { content: "mail"; }
.fa-ellipsis-h::before { content: "more_horiz"; }
.fa-compress::before { content: "fullscreen_exit"; }
.fa-clipboard-user::before { content: "contacts"; }
.fa-check-circle::before { content: "check_circle"; }
.fa-chart-pie::before { content: "pie_chart"; }
.fa-calendar::before { content: "calendar_month"; }
.fa-boxes::before { content: "inventory_2"; }
.fa-bars::before { content: "menu"; }

/*****************************************
PAGE LAYOUT COMPONENTS (Phase 4 standard screens)
Used by the redesigned list and edit screens - see views/countries.php and views/countries-info.php.
*****************************************/
.PageHeading {
  gap: 12px;
  margin: 0 0 16px 0;
}
.PageHeading h1 {
  flex: 1 1 auto;
  width: auto;
  margin: 0;
}
.PageHeading ul.PageButtons {
  margin: 0;
  gap: 8px;
}
.PageHeading ul.PageButtons li {
  margin: 0;
}
.PageHeading ul.PageButtons .btn {
  margin: 0;
}

.PageMessages {
  margin: 0 0 16px 0;
}
.PageMessages .alert + .alert {
  margin-top: 8px !important;
}

/* List screens: one card holding the search toolbar, the table and the paging */
.ListCard {
  overflow: hidden;
}
.ListToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  border-bottom: 1px solid var(--BorderColour);
}
.ListToolbar .searchbox {
  flex: 1 1 280px;
  max-width: 420px;
}
.ListCount {
  margin: 0;
  padding: 0 16px;
  font-size: 13px;
  color: var(--MutedText);
}
.ListFooter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--BorderColour);
}
.ListCard table.table th:first-child,
.ListCard table.table th:last-child {
  border-radius: 0 !important;
}
.pagination .page-link {
  color: var(--LabelColour);
  border-color: var(--BorderColour);
}
.pagination .page-item.active .page-link {
  background-color: var(--BrandColourOne);
  border-color: var(--BrandColourOne);
  color: #fff;
}

/* Edit / delete icons at the end of a row */
td.RowActions {
  white-space: nowrap;
  width: 1%;
}
td.RowActions .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 8px;
  cursor: pointer;
}
td.RowActions .icon-link:hover {
  background-color: var(--SidebarHoverBG) !important;
}
td.RowActions .icon-link .material-symbols-outlined {
  font-size: 20px;
  vertical-align: 0;
}

/* Nothing found */
.EmptyState {
  padding: 48px 16px;
  text-align: center;
  color: var(--MutedText);
}
.EmptyState .material-symbols-outlined {
  font-size: 40px;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.EmptyState p {
  margin: 0;
}

/* Small yes / no or status label */
.StatusBadge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  background-color: #f3f4f6;
  color: var(--MutedText);
}
.StatusBadge--yes {
  background-color: #dcfce7;
  color: #166534;
}
.StatusBadge--no {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Edit screens: tabs sit on the page, the form fields in the card, Save in the card footer */
.EditForm .card-body {
  padding: 20px;
}
.FormActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  background-color: #f9fafb;
  border-top: 1px solid var(--BorderColour);
  border-radius: 0 0 var(--Radius) var(--Radius) !important;
}
.FormActions .btn {
  margin: 0;
}
.RecordInfo {
  margin: 0;
  font-size: 13px;
  color: var(--MutedText);
}

/* Buttons with an icon: icon and text side by side, centred, with a fixed gap */
.btn:has(> .material-symbols-outlined) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn .material-symbols-outlined,
.PageHeading ul.PageButtons li a span.material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  margin: 0;
}
.btn-sm .material-symbols-outlined {
  font-size: 16px;
}

/* Parent path shown before a sub-group's name in tree lists (Product Groups, File Groups) */
.TreePath {
  color: var(--MutedText);
  font-size: 13px;
}
/* File inputs use the normal input box */
input[type="file"].form-control {
  padding: 8px 12px;
  line-height: 24px;
}

/* Heading that splits an edit form into sections (e.g. "Address") */
.FormSection {
  margin: 8px 0 14px 0;
  padding-top: 16px;
  border-top: 1px solid var(--BorderColour);
  font-size: 1.1rem;
}
/* Branch map */
.BranchMap {
  height: 400px;
  border: 1px solid var(--BorderColour);
  border-radius: 8px;
}

/* Admin Settings hub (views/admin-list.php) */
.SettingsGroup {
  display: flex;
  flex-direction: row; /* .card is a column by default */
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 16px;
}
.SettingsGroup__links {
  align-content: start;
}
.SettingsGroup__intro {
  flex: 1 1 280px;
  padding: 20px;
}
.SettingsGroup__intro h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px 0;
  font-size: 1.25rem;
}
.SettingsGroup__intro h2 .material-symbols-outlined {
  color: var(--BrandColourOne);
}
.SettingsGroup__intro p {
  margin: 0;
  color: var(--MutedText);
}
.SettingsGroup__links {
  flex: 2 1 360px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border-left: 1px solid var(--BorderColour);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.SettingsGroup__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: var(--LabelColour) !important;
  font-weight: 500;
}
.SettingsGroup__links a:hover {
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourThree) !important;
}
.SettingsGroup__links a .material-symbols-outlined {
  color: var(--MutedText);
}
@media (max-width: 767px) {
  .SettingsGroup__links {
    border-left: 0;
    border-top: 1px solid var(--BorderColour);
  }
}
/* Rich-text editors */
.RichEditor {
  min-height: 140px;
  background: #fff;
}

/*****************************************
DETAIL PAGES (e.g. views/customers-view.php)
*****************************************/
/* A card with a heading (and optional Add button) above a table or details */
.PanelCard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--BorderColour);
}
.PanelCard__header h2 {
  margin: 0;
  font-size: 1.15rem;
}
.PanelCard__header .btn {
  margin: 0;
}
.PanelCard__empty {
  margin: 0;
  padding: 16px;
  color: var(--MutedText);
}
.PanelCard__scroll {
  max-height: 480px;
  overflow-y: auto;
}
.PanelCard--logo {
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.PanelCard--logo img {
  max-width: 100%;
  height: auto;
}
.PanelCard table.tableinner {
  margin: 0 !important;
}
.PanelCard table.tableinner thead th {
  border-top: 0 !important;
}

/* Label / value pairs */
.DetailList {
  display: grid;
  grid-template-columns: minmax(120px, 35%) 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 16px;
}
.DetailList dt {
  font-weight: 500;
  color: var(--LabelColour);
}
.DetailList dd {
  margin: 0;
  word-break: break-word;
}

/* Notes and audit entries */
.ActivityList {
  list-style: none;
  margin: 0;
  padding: 0 16px;
}
.ActivityList li {
  padding: 12px 0;
  border-bottom: 1px solid var(--BorderColour);
}
.ActivityList li:last-child {
  border-bottom: 0;
}
.ActivityList__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px 0;
  font-size: 13px;
  color: var(--MutedText);
}
.tab-pane .ActivityList {
  padding: 0;
}

/* Row of checkboxes (e.g. Teams) */
.CheckList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 18px;
}

/* Drop-down filter beside a list search box */
.ListFilter {
  flex: 0 1 220px;
  padding: 16px 0;
}
.ListToolbar .ListCount {
  margin-left: auto;
}

/* Small preview of an uploaded image */
.ImagePreview {
  display: block;
  max-width: 160px;
  height: auto;
  border: 1px solid var(--BorderColour);
  border-radius: 8px;
}

/* Smaller second line in a page title, e.g. the customer name on a contact's page */
.PageHeading h1 {
  flex-wrap: wrap; /* lets the second line sit underneath */
}
.PageHeading__sub {
  display: block;
  flex-basis: 100%;
  text-transform: none;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--MutedText);
  margin-top: 2px;
}

/* Quote items table (views/quote-info.php) */
.QuoteItems .QuoteItems__small {
  width: 90px;
}
.QuoteItems .QuoteItems__price {
  width: 130px;
}
.QuoteItems td .form-control {
  min-height: 36px;
  padding: 4px 8px;
}
.QuoteItems tfoot td {
  border-top: 2px solid var(--BorderColour) !important;
}

/* "In progress" status label */
.StatusBadge--info {
  background-color: #e0f4fd;
  color: #0a6c94;
}
/* Free text inside a panel (e.g. job details) */
.PanelCard__body {
  padding: 16px;
}
.RichText p:last-child {
  margin-bottom: 0;
}
.RichText img {
  max-width: 100%;
  height: auto;
}

/*****************************************
PROJECTS (views/projects*.php)
*****************************************/
.StatusBadge--warn {
  background-color: #fef3c7;
  color: #92400e;
}
/* Tasks shown under a project in the list */
.ProjectTaskRow td {
  background-color: #fafbfc;
}
.ProjectTaskRow td.ProjectTaskName {
  padding-left: 36px !important;
}
.ProjectProgressCell {
  min-width: 140px;
}
.ProjectProgress .progress,
.ProjectProgressCell .progress {
  height: 18px;
  border-radius: 999px;
}
.ProjectProgress .progress-bar,
.ProjectProgressCell .progress-bar {
  background-color: var(--BrandColourOne);
  font-size: 11px;
}
/* Members panel */
.MemberList {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
}
.MemberList li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
/* Gantt chart (frappe-gantt) - task colours by status */
.GanttChart {
  min-height: 300px;
  overflow-x: auto;
}
.GanttChart .bar-wrapper.outstanding .bar,
.GanttChart .outstanding rect { fill: #f59e0b !important; }
.GanttChart .bar-wrapper.working-on .bar,
.GanttChart .working-on rect { fill: var(--BrandColourOne) !important; }
.GanttChart .bar-wrapper.complete .bar,
.GanttChart .complete rect { fill: #22c55e !important; }
/* File drop area */
.DropArea {
  border: 2px dashed var(--InputBorderColorOne);
  border-radius: var(--Radius);
  padding: 28px 16px;
  text-align: center;
  color: var(--MutedText);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.DropArea .material-symbols-outlined {
  font-size: 40px;
  color: var(--BrandColourOne);
}
.DropArea p {
  margin: 6px 0 4px;
}
.DropArea--over {
  background-color: var(--SidebarHoverBG);
  border-color: var(--BrandColourOne);
}
.DropArea__pick {
  display: inline;
  margin: 0;
  font-weight: 500;
  color: var(--BrandColourOne);
  cursor: pointer;
  text-decoration: underline;
}

/* Project task comments */
.Mention {
  color: var(--BrandColourThree);
  font-weight: 600;
}
.ActivityList__new {
  background-color: #fff7ed;
  margin: 0 -16px;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.CommentForm {
  border-bottom: 1px solid var(--BorderColour);
}
.CommentForm textarea.form-control {
  min-height: 80px;
}
.ActivityList__meta form {
  margin-left: auto;
}

/*****************************************
CALENDAR (views/calendar.php, includes/calendar.php - also on the dashboard)
*****************************************/
.CalendarBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.CalendarBar__title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--HeadingColour);
}
/* Button groups (own class - the old .btn-group rule is for table row buttons and floats/positions them) */
.CalendarBar__group {
  display: inline-flex;
  gap: 4px;
}
.CalendarBar__group .btn .material-symbols-outlined {
  font-size: 20px;
}
.CalendarBar__group .btn:has(> .material-symbols-outlined:only-child) {
  padding-left: 6px;
  padding-right: 6px;
}
.CalendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--BorderColour);
  border-left: 1px solid var(--BorderColour);
  border-radius: var(--Radius);
  overflow: hidden;
}
.CalendarGrid__head {
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--MutedText);
  background-color: #f9fafb;
  border-right: 1px solid var(--BorderColour);
  border-bottom: 1px solid var(--BorderColour);
}
.CalendarGrid__day {
  min-height: 110px;
  padding: 4px 0 6px;
  background-color: #fff;
  border-right: 1px solid var(--BorderColour);
  border-bottom: 1px solid var(--BorderColour);
}
.CalendarGrid--week .CalendarGrid__day {
  min-height: 260px;
}
.CalendarGrid__day--other {
  background-color: #fafbfc;
}
.CalendarGrid__day--other .CalendarGrid__date span {
  color: #b6bcc6;
}
.CalendarGrid__date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--LabelColour);
}
.CalendarGrid__day--today .CalendarGrid__date span {
  display: inline-block;
  min-width: 24px;
  padding: 0 6px;
  border-radius: 999px;
  text-align: center;
  background-color: var(--BrandColourOne);
  color: #fff;
}
/* + to add a reminder on that day: faint until you hover over the day */
.CalendarGrid__add {
  display: inline-flex;
  color: var(--MutedText);
  opacity: 0.25;
  text-decoration: none;
}
.CalendarGrid__add .material-symbols-outlined {
  font-size: 18px;
}
.CalendarGrid__day:hover .CalendarGrid__add,
.CalendarGrid__add:focus {
  opacity: 1;
  color: var(--BrandColourOne);
}
/* Reminder labels. --cont = carried on from an earlier day, --more = carries on to the next day */
.CalendarEvent {
  display: block;
  margin: 2px 6px 0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  background-color: #e0f4fd;
  color: #0a6c94;
}
a.CalendarEvent:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
.CalendarEvent--personal { background-color: #e0f4fd; color: #0a6c94; }
.CalendarEvent--todo { background-color: #fef3c7; color: #92400e; }
.CalendarEvent--holiday { background-color: #dcfce7; color: #166534; }
.CalendarEvent--cont {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.CalendarEvent--more {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.CalendarKey {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.CalendarKey .CalendarEvent {
  margin: 0;
}
@media (max-width: 767.98px) {
  .CalendarGrid__day { min-height: 70px; }
  .CalendarGrid--week .CalendarGrid__day { min-height: 140px; }
  .CalendarGrid__head { font-size: 11px; }
  .CalendarEvent { font-size: 11px; padding: 0 3px; }
}

/*****************************************
GROUP MESSAGES (views/message*.php)
*****************************************/
/* List: groups with new messages, last-message preview, member photos */
.MessageRow--unread td:first-child a {
  font-weight: 600;
}
.MessagePreview {
  display: block;
  margin-top: 2px;
  color: var(--MutedText);
}
.AvatarStack {
  display: inline-flex;
  padding-left: 8px;
}
.AvatarStack img {
  margin-left: -8px;
  border: 2px solid #fff;
  background-color: #fff;
}
/* People picker on the new / edit group screens */
.PeoplePicker .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Conversation */
.MessageThread {
  list-style: none;
  margin: 0;
  padding: 16px;
  max-height: 560px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.Message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 80%;
}
.Message--mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}
.Message__body {
  min-width: 0;
}
.Message__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px;
  font-size: 12px;
  color: var(--MutedText);
}
.Message--mine .Message__meta {
  justify-content: flex-end;
}
.Message__text {
  padding: 9px 13px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  background-color: #f3f4f6;
  color: var(--HeadingColour);
  overflow-wrap: anywhere;
}
.Message--mine .Message__text {
  border-top-left-radius: 14px;
  border-top-right-radius: 4px;
  background-color: var(--BrandColourThree);
  color: #fff;
}
.Message--new .Message__text {
  background-color: #e0f4fd;
  box-shadow: inset 3px 0 0 var(--BrandColourOne);
}
/* "Seen by 2 of 3" - click to see who and when */
.Message__seen {
  margin-top: 3px;
  font-size: 12px;
  color: var(--MutedText);
}
.Message--mine .Message__seen {
  text-align: right;
}
.Message__seen summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}
.Message__seen summary::-webkit-details-marker {
  display: none;
}
.Message__seen summary .material-symbols-outlined {
  font-size: 16px;
}
.Message__seen ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
/* Reply box */
.MessageReply {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background-color: #fff;
}
.MessageReply textarea.form-control {
  flex: 1 1 auto;
  min-height: 46px;
}
@media (max-width: 767.98px) {
  .Message { max-width: 100%; }
}

/*****************************************
NEWSLETTERS & OUR PEOPLE (views/newsletter*.php, views/our-people*.php)
*****************************************/
/* Small picture column in a list */
.ListThumb {
  width: 64px;
}
.ListThumb img {
  object-fit: cover;
}
/* The current upload beside a file box on an edit screen */
.CurrentFile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.CurrentFile a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* Newsletter cards (staff view) */
.NewsCard {
  flex-direction: row;
  gap: 16px;
  width: 100%;
  padding: 16px;
}
.NewsCard__image {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: var(--Radius);
  object-fit: cover;
}
.NewsCard__image--none {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourOne);
}
.NewsCard__image--none .material-symbols-outlined {
  font-size: 40px;
}
.NewsCard__body {
  min-width: 0;
}
.NewsCard__body h2 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 600;
}
.NewsCard__date {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--MutedText);
}
@media (max-width: 575.98px) {
  .NewsCard { flex-direction: column; }
  .NewsCard__image { width: 100%; height: 160px; flex-basis: auto; }
}
/* Staff directory */
.PeopleFilter {
  max-width: 360px;
  margin-bottom: 16px;
}
.PersonCard {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 16px;
}
.PersonCard > img {
  flex: 0 0 72px;
  object-fit: cover;
}
.PersonCard__body {
  min-width: 0;
}
.PersonCard__body h2 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
}
.PersonCard__role {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--MutedText);
}
.PersonCard__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.PersonCard__contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  overflow-wrap: anywhere;
}
.PersonCard__contact .material-symbols-outlined {
  font-size: 18px;
  color: var(--BrandColourOne);
}

/*****************************************
FILE STORAGE (views/file-storage*.php, views/file-groups*.php, views/_file-*.php)
*****************************************/
/* Folder cards */
.FolderCard {
  height: 100%;
  overflow: hidden;
  color: var(--HeadingColour);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.FolderCard:hover {
  color: var(--HeadingColour);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}
.FolderCard__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.FolderCard__image--none {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourOne);
}
.FolderCard__image--none .material-symbols-outlined {
  font-size: 44px;
}
.FolderCard__body {
  display: block;
  padding: 10px 12px 12px;
}
.FolderCard__name {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.FolderCard__count {
  display: block;
  font-size: 13px;
  color: var(--MutedText);
}
/* Folder names in the admin list, indented by how deep they are */
.FolderName {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.FolderName[data-depth="1"] { padding-left: 20px; }
.FolderName[data-depth="2"] { padding-left: 40px; }
.FolderName[data-depth="3"] { padding-left: 60px; }
.FolderName[data-depth="4"] { padding-left: 80px; }
.FolderName[data-depth="5"] { padding-left: 100px; }
.FolderName__branch {
  color: var(--MutedText);
}

/*****************************************
DASHBOARD (views/homepage.php)
*****************************************/
/* Top boxes */
.StatTile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  color: var(--HeadingColour);
  text-decoration: none;
  border-left: 4px solid var(--BrandColourOne);
  transition: box-shadow 0.15s ease;
}
.StatTile:hover {
  color: var(--HeadingColour);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}
.StatTile__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--MutedText);
}
.StatTile__label .material-symbols-outlined {
  font-size: 18px;
  color: var(--BrandColourOne);
}
.StatTile__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.StatTile__note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--MutedText);
}
.StatTile__note .material-symbols-outlined {
  font-size: 16px;
}
.StatTile__note--up .material-symbols-outlined { color: #15803d; }
.StatTile__note--down .material-symbols-outlined { color: #b91c1c; }
/* Quotes chart */
.DashboardChart {
  position: relative;
  height: 300px;
}
.ChartTable {
  margin-top: 10px;
  font-size: 13px;
}
.ChartTable summary {
  cursor: pointer;
  color: var(--MutedText);
}
.ChartTable table {
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
}
/* Quotes by status - a bar per status */
.StatusBars {
  list-style: none;
  margin: 0;
  padding: 12px 16px 16px;
}
.StatusBars li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.StatusBars__track {
  height: 10px;
  border-radius: 999px;
  background-color: #f0f1f3;
  overflow: hidden;
}
.StatusBars__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background-color: #0a8bbc;
}
.StatusBars__value {
  font-size: 13px;
  color: var(--MutedText);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.StatusBars__value strong {
  color: var(--HeadingColour);
}
/* Your tasks / messages panels */
.DashboardList {
  list-style: none;
  margin: 0;
  padding: 4px 16px 10px;
}
.DashboardList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--BorderColour);
}
.DashboardList li:last-child {
  border-bottom: 0;
}
.DashboardList li a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.DashboardList--new a {
  font-weight: 600;
}
.DashboardList__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--MutedText);
}
/* Branch map */
.BranchMap {
  height: 420px;
  border-bottom-left-radius: var(--Radius);
  border-bottom-right-radius: var(--Radius);
}

/*****************************************
REPORTS (views/report-*.php, views/login-history.php)
*****************************************/
.ReportFilters {
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px 16px;
  gap: 12px;
}
.ReportFilters .form-group {
  margin-bottom: 0;
  min-width: 140px;
}
/* Buttons have a 5px bottom margin everywhere - drop it here so Show / Search line up with the boxes */
.ReportFilters .btn {
  margin: 0;
  min-height: 42px;
}
.ReportFilters__wide {
  flex: 1 1 320px;
  max-width: 480px;
}
.ReportFilters .ListCount {
  margin-left: auto;
  padding: 0 0 8px;
}
.ReportUrl {
  font-size: 12px;
  color: var(--MutedText);
  word-break: break-all;
}

/*****************************************
PASSWORD CHECKLIST (views/_password-checklist.php - My Account, Users add / edit)
*****************************************/
.PasswordChecklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 16px;
  list-style: none;
  margin: 0 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--BorderColour);
  border-radius: var(--Radius);
  background-color: #fafbfc;
  font-size: 13px;
  color: var(--MutedText);
}
.PasswordChecklist li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.PasswordChecklist .material-symbols-outlined {
  font-size: 18px;
  color: #c4c9d1;
}
.PasswordChecklist li.is-ok {
  color: #166534;
}
.PasswordChecklist li.is-ok .material-symbols-outlined {
  color: #16a34a;
}
.PasswordChecklist li.is-no {
  color: var(--LabelColour);
}
.PasswordChecklist li.is-no .material-symbols-outlined {
  color: #dc2626;
}
.PasswordChecklist__hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #b45309;
}
.PasswordChecklistBox {
  margin-bottom: 14px;
}

/* Customer list: logo, or the company's initials when there's no logo */
.CompanyLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--BorderColour);
  border-radius: 8px;
  background-color: #fff;
  overflow: hidden;
  text-decoration: none;
}
.CompanyLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.CompanyLogo__initials {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--BrandColourThree);
}
.CompanyLogo:has(.CompanyLogo__initials) {
  background-color: var(--SidebarActiveBG);
  border-color: transparent;
}

/*****************************************
PEOPLE PICKER (views/_people-picker.php) - tick box, photo, name - on every screen that picks people
*****************************************/
.PeoplePicker__all {
  margin-bottom: 8px;
}
.PeoplePicker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.PeoplePicker__person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--BorderColour);
  border-radius: var(--Radius);
  background-color: #fff;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.PeoplePicker__person:hover {
  border-color: var(--InputBoxHoverColor);
}
.PeoplePicker__person:has(.PeoplePicker__tick:checked) {
  border-color: var(--BrandColourOne);
  background-color: var(--SidebarHoverBG);
}
.PeoplePicker__person .form-check-input {
  flex-shrink: 0;
  margin: 0;
}
.PeoplePicker__person img {
  flex-shrink: 0;
  object-fit: cover;
}
.PeoplePicker__person span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--HeadingColour);
}

/*****************************************
MENU GROUPS & ICONS-ONLY MENU (includes/header.php)
Groups (e.g. Reports) open in place on phones, and to the RIGHT of the menu on desktop (1-4 columns).
The button at the top of the menu shrinks it to icons (html.MenuCollapsed, remembered per computer).
*****************************************/
.SideBarMenu > ul.NavList > li > .NavGroup__toggle {
  display: block;
  position: relative;
  width: 100%;
  padding: 9px 30px 9px 44px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  color: var(--MenuLink);
  font-size: 14px;
  font-weight: 500;
  line-height: inherit;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.SideBarMenu > ul.NavList > li > .NavGroup__toggle:hover,
.SideBarMenu > ul.NavList > li > .NavGroup__toggle:focus-visible,
.SideBarMenu > ul.NavList > li.is-open > .NavGroup__toggle {
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourThree);
}
.SideBarMenu > ul.NavList > li.active > .NavGroup__toggle {
  background-color: var(--SidebarActiveBG);
  color: var(--SidebarActiveText);
  font-weight: 600;
}
.NavGroup__arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--MutedText);
  transition: transform 0.15s ease;
}
/* Phones: the group's links open underneath it */
.NavFlyout {
  display: none;
  padding: 2px 0;
}
.NavGroup.is-open > .NavFlyout {
  display: block;
}
.NavGroup.is-open .NavGroup__arrow {
  transform: translateY(-50%) rotate(90deg);
}
.NavFlyout__title {
  display: none;
}
.NavFlyout ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.NavFlyout a {
  display: block;
  padding: 7px 12px 7px 44px;
  border-radius: 8px;
  color: var(--MutedText);
  font-size: 14px;
  text-decoration: none;
}
.NavFlyout a:hover,
.NavFlyout a:focus-visible,
.NavFlyout a[aria-current="page"] {
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourThree);
}
.NavFlyout a[aria-current="page"] {
  font-weight: 600;
}
/* Logo + shrink button at the top of the menu */
.SideBarTop {
  align-items: center;
  gap: 6px;
  padding: 10px 10px 4px 14px;
}
.SideBarTop .SiteLogo {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
}
.MenuCollapseBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  color: var(--MutedText);
}
.MenuCollapseBtn:hover,
.MenuCollapseBtn:focus-visible {
  background-color: var(--SidebarHoverBG);
  color: var(--BrandColourThree);
}
body.HorizontalMenu .MenuCollapseBtn {
  display: none;
}

@media (min-width: 992px) {
  /* Desktop: the group opens as a panel to the right of the menu (placed by the script in header.php) */
  .NavFlyout {
    position: fixed;
    z-index: 1050;
    padding: 10px;
    background-color: #fff;
    border: 1px solid var(--BorderColour);
    border-radius: var(--Radius);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }
  .NavGroup.is-open .NavGroup__arrow {
    transform: translateY(-50%);
  }
  .NavFlyout__title {
    display: block;
    margin: 2px 10px 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--MutedText);
  }
  .NavFlyout ul {
    display: grid;
    grid-template-columns: repeat(1, 210px);
    gap: 2px 8px;
  }
  .NavFlyout[data-columns="2"] ul { grid-template-columns: repeat(2, 210px); }
  .NavFlyout[data-columns="3"] ul { grid-template-columns: repeat(3, 210px); }
  .NavFlyout[data-columns="4"] ul { grid-template-columns: repeat(4, 210px); }
  .NavFlyout a {
    padding: 7px 10px;
  }

  /* Icons-only menu */
  body {
    transition: padding-left 0.2s ease;
  }
  .SideBarMenu {
    transition: width 0.2s ease;
  }
  html.MenuCollapsed body:not(.HorizontalMenu) {
    padding-left: 72px;
  }
  html.MenuCollapsed body:not(.HorizontalMenu) .SideBarMenu {
    width: 72px;
  }
  html.MenuCollapsed body:not(.HorizontalMenu) .SideBarMenu .NavLabel,
  html.MenuCollapsed body:not(.HorizontalMenu) .NavGroup__arrow,
  html.MenuCollapsed body:not(.HorizontalMenu) .SideBarTop .SiteLogo {
    display: none;
  }
  html.MenuCollapsed body:not(.HorizontalMenu) .SideBarTop {
    justify-content: center;
    padding: 10px 0 4px;
  }
  html.MenuCollapsed body:not(.HorizontalMenu) .SideBarMenu > ul.NavList {
    padding: 4px 12px;
  }
  html.MenuCollapsed body:not(.HorizontalMenu) .SideBarMenu > ul.NavList > li > a,
  html.MenuCollapsed body:not(.HorizontalMenu) .SideBarMenu > ul.NavList > li > .NavGroup__toggle {
    height: 44px;
    padding: 0;
  }
  html.MenuCollapsed body:not(.HorizontalMenu) span.NavIcon {
    width: 100%;
  }
}

/*****************************************
TAKE PICTURE (webcam) - includes/footer.php, used on My Account and Users add / edit
*****************************************/
.WebcamFrame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--Radius);
  background-color: #111827;
  overflow: hidden;
}
.WebcamFrame video,
.WebcamFrame canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.WebcamFrame video {
  transform: scaleX(-1); /* like a mirror */
}
.WebcamMessage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.PhotoPicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.PhotoPicker input[type="file"] {
  flex: 1 1 220px;
}
.PhotoPicker__preview {
  border-radius: 50%;
  object-fit: cover;
}

/*****************************************
LOCATION TRACKING (views/location-check.php, views/report-user-locations.php)
*****************************************/
.LocationCheck {
  max-width: 560px;
  margin: 40px auto;
  padding: 32px 28px;
  text-align: center;
}
.LocationCheck h1 {
  margin: 8px 0 12px;
  font-size: 24px;
}
.LocationCheck__icon {
  font-size: 56px;
  color: var(--BrandColourOne);
}
.LocationCheck .btn-lg {
  margin-top: 8px;
}
.LocationMap {
  height: 380px;
  border-top: 1px solid var(--BorderColour);
}
