﻿/*
    The portal theme, shared by the Public and Admin sites. Each site's breezer-overrides.less imports this file whole.

    Breezer reads its colours from the CSS variables in :root; everything else is targeted by Breezer's custom elements.
    Rules are prefixed with `body` so they win over Breezer's base styles regardless of load order, and carry Breezer's
    scope attribute (e.g. [breezer-list-items]) where Breezer's own rule is scoped.
    The app's own `.btn` and `.tab` buttons are excluded from the button rules, as they carry their own styles.
*/
:root {
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --text: #1A2332;
  --text2: #5A6B7F;
  --text3: #8E9BB0;
  --accent: #0D7C5F;
  --accent-light: #E8F5F0;
  --accent-dark: #095C47;
  --coral: #E85D3A;
  --coral-light: #FFF0EC;
  --blue: #2D7DD2;
  --blue-light: #EAF2FC;
  --amber: #E09F1F;
  --amber-light: #FFF8E6;
  --purple: #6B5CE7;
  --purple-light: #F0EEFE;
  --border: #E2E7ED;
  --border2: #D0D7E0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(26, 35, 50, 0.06), 0 1px 2px rgba(26, 35, 50, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.08), 0 2px 4px rgba(26, 35, 50, 0.04);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fredoka', 'DM Sans', system-ui, sans-serif;
  --background-colour: #F4F7FA;
  --primary-colour: #0D7C5F;
  --secondary-colour: #1A2332;
  --text-colour: #1A2332;
  --secondary-text-colour: #5A6B7F;
  --warning-colour: #E85D3A;
  --border-colour: #E2E7ED;
  --background-highlight-colour: #F4F7FA;
  --white: #FFFFFF;
  --max-page-width: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body h1,
body h2,
body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
body a {
  color: var(--accent);
}
body breezer-page {
  margin-top: 0;
  padding: 28px 32px;
  grid-template-columns: 0 minmax(0, 1fr) 0;
}
body breezer-page > header {
  position: static;
  align-items: center;
  margin: 0 0 24px;
  padding: 0;
  box-shadow: none;
  background: none;
}
body breezer-page > header > h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
body breezer-page > header > auto-actions {
  justify-self: end;
}
body breezer-page > content > * {
  margin-bottom: 16px;
}
body breezer-page.br-edit,
body breezer-page.br-display {
  grid-template-columns: 0 min(100%, 800px) 0;
}
body breezer-page.br-edit > content,
body breezer-page.br-display > content {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  background: var(--surface);
}
body button:not(.inline, .btn, .tab) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
body button:not(.inline, .btn, .tab):hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}
body button:not(.inline, .btn, .tab).secondary {
  border-color: var(--border2);
  background: var(--surface);
  color: var(--text);
}
body button:not(.inline, .btn, .tab).secondary:hover {
  border-color: var(--text3);
  background: var(--bg);
}
body button:not(.inline, .btn, .tab).danger {
  border-color: #FECACA;
  background: #FEE2E2;
  color: #991B1B;
}
body button:not(.inline, .btn, .tab).danger:hover {
  border-color: #F87171;
  background: #FECACA;
}
body button:not(.inline, .btn, .tab):disabled {
  border-color: var(--border);
  background: var(--bg);
  color: var(--text3);
  cursor: not-allowed;
}
body button:not(.inline, .btn, .tab):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-light);
}
body list-item auto-actions button:not(.inline, .btn, .tab) {
  padding: 6px;
  border: 0;
  background: none;
  color: var(--text3);
}
body list-item auto-actions button:not(.inline, .btn, .tab):hover {
  background: var(--bg);
  color: var(--accent);
}
body row-action-menu {
  display: flex;
  justify-content: flex-end;
}
body .row-action-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--text3);
  font-size: 16px;
  cursor: pointer;
}
body .row-action-menu__trigger:hover,
body .row-action-menu__trigger:focus-visible {
  outline: none;
  background: var(--bg);
  color: var(--text);
}
body .row-action-menu__items {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
body .row-action-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
body .row-action-menu__item i {
  width: 16px;
  color: var(--text3);
  text-align: center;
}
body .row-action-menu__item:hover:not(:disabled) {
  background: var(--bg);
}
body .row-action-menu__item:disabled {
  color: var(--text3);
  cursor: not-allowed;
}
body split-action {
  display: inline-flex;
}
body split-action button.split-action__main {
  position: relative;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
body split-action button.split-action__main[aria-busy="true"] .split-action__label {
  visibility: hidden;
}
body split-action button.split-action__toggle {
  height: 100%;
  padding-left: 10px;
  padding-right: 10px;
  border-left-color: rgba(255, 255, 255, 0.35);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
body split-action button.split-action__toggle:hover {
  border-left-color: rgba(255, 255, 255, 0.35);
}
body .split-action__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  font-size: 18px;
}
body split-action .popup-control,
body split-action .popup-trigger {
  height: 100%;
}
body input:not([type="color"], [type="checkbox"], [type="radio"]),
body select,
body textarea {
  padding: 9px 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body input:not([type="color"], [type="checkbox"], [type="radio"]):focus,
body select:focus,
body textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
body input:not([type="color"], [type="checkbox"], [type="radio"]):disabled,
body select:disabled,
body textarea:disabled {
  background: var(--bg);
  color: var(--text3);
}
body input[type="checkbox"],
body input[type="radio"] {
  accent-color: var(--accent);
}
body form-field {
  margin-bottom: 20px;
}
body form-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
body validation-for span {
  font-size: 12px;
  color: var(--coral);
}
body .invalid input,
body .invalid dropdown-selected {
  border-color: var(--coral);
}
body dropdown-selected {
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  background: var(--surface);
}
body dropdown-options {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  overflow: hidden;
}
body chosen-option {
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 500;
}
body search-bar[breezer-search-bar] {
  box-sizing: border-box;
  min-width: 280px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  box-shadow: none;
  background: var(--surface);
}
body search-bar[breezer-search-bar]:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
body search-bar[breezer-search-bar] input:not([type="color"], [type="checkbox"], [type="radio"]) {
  border: 0;
  box-shadow: none;
}
body search-bar[breezer-search-bar] input:not([type="color"], [type="checkbox"], [type="radio"]):focus {
  box-shadow: none;
}
body search-bar[breezer-search-bar] button {
  color: var(--text3);
}
body list-items[item-type="grid"][breezer-list-items] {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  background: var(--surface);
  overflow-x: auto;
}
body list-items[item-type="grid"][breezer-list-items] > list-items-grid-header > * {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
body list-items[item-type="grid"][breezer-list-items] > list-item > * {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-content: center;
}
body list-items[item-type="grid"][breezer-list-items] > list-item:last-child > * {
  border-bottom: none;
}
body list-items[item-type="grid"][breezer-list-items] > list-item:hover > * {
  background: var(--bg);
}
body list-items[item-type="card"] > list-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  background: var(--surface);
}
body list-items-no-data {
  padding: 32px;
  color: var(--text3);
  text-align: center;
}
body list-paginator {
  font-size: 12px;
  color: var(--text3);
}
body list-paginator button.page {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  justify-content: center;
  border-radius: var(--radius-xs);
}
body list-paginator button.page:not(.current) {
  border-color: transparent;
  background: none;
  color: var(--text2);
}
body list-paginator button.page:not(.current):hover {
  background: var(--surface);
}
body .blazored-modal-overlay {
  backdrop-filter: none;
  background: rgba(26, 35, 50, 0.5);
}
body .blazored-modal {
  position: relative;
  width: 640px;
  min-width: 0;
  max-width: calc(100vw - 32px);
  max-height: 85vh;
  padding: 0;
  overflow-y: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(26, 35, 50, 0.2);
  background: var(--surface);
}
body .blazored-modal-header {
  display: contents;
}
body .blazored-modal-header h3 {
  display: none;
}
body .blazored-modal-header button.blazored-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--text3);
  font-size: 18px;
}
body .blazored-modal-header button.blazored-modal-close:hover {
  background: var(--bg);
  color: var(--text);
}
body .blazored-modal-content > breezer-page {
  display: flex;
  flex-direction: column;
  padding: 0;
}
body .blazored-modal-content > breezer-page > header {
  display: contents;
}
body .blazored-modal-content > breezer-page > header > h1 {
  margin: 0;
  padding: 20px 64px 20px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}
body .blazored-modal-content > breezer-page > header > auto-actions {
  order: 1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
body .blazored-modal-content > breezer-page > header > auto-actions > .primary {
  order: 1;
}
body .blazored-modal-content > breezer-page > content {
  padding: 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body account-card {
  min-width: 260px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
body account-card .title {
  font-size: 15px;
}
body account-card .email {
  font-size: 12px;
  color: var(--text3);
}
body account-card account-card-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
body account-widget avatar {
  --avatar-size: 36px;
  background-color: var(--accent) !important;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
body ul.validation-errors {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  background: #FEF2F2;
  list-style: none;
}
body ul.validation-errors li.validation-message {
  color: #991B1B;
  font-size: 13px;
}
body div.validation-message {
  margin-top: 4px;
  color: #991B1B;
  font-size: 12px;
}
body validation-for span {
  color: #B42318;
  font-size: 12px;
}
@media (max-width: 900px) {
  body breezer-page {
    padding: 20px 16px;
  }
  body breezer-page > header {
    gap: 12px;
    margin-bottom: 16px;
  }
  body search-bar[breezer-search-bar] {
    min-width: 0;
    width: 100%;
  }
}
header[breezer-breezer-layout] {
  height: 68px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
}
.page[breezer-breezer-layout] {
  grid-template-rows: 68px auto;
}
main-menu-container[breezer-breezer-layout] {
  background: var(--surface);
}
main-menu[breezer-main-menu] {
  flex: 1;
}
menu-item[breezer-menu-item] {
  --highlight-color: var(--accent-light);
}
@media (min-width: 901px) {
  main-menu-container[breezer-breezer-layout] {
    min-width: 240px;
  }
  menu-item[root="True"] > a > span.menu-item-name[breezer-menu-item] {
    display: inline;
  }
}
menu-item[breezer-menu-item] > a.item-content[breezer-menu-item] {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}
menu-item[breezer-menu-item] > a.item-content[breezer-menu-item]:hover {
  background: var(--bg);
}
menu-item[breezer-menu-item] > a.item-content[breezer-menu-item] > i.menu-item-icon {
  width: 20px;
  margin: 0;
  padding: 0;
  color: var(--text3);
  text-align: center;
}
menu-item[breezer-menu-item] > a.item-content[breezer-menu-item] > span.menu-item-name {
  padding: 0;
  white-space: nowrap;
}