/* ORIGINAL FILE: style.css */
@charset "utf-8";
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body,
div,
dl,
dt,
dd,
p,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
blockquote,
form {
  margin: 0;
  padding: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
img,
a img,
svg {
  border: none;
  display: block;
}
a {
  text-decoration: none;
}
a:active,
a:hover {
  outline: 0;
}
a[href^="tel:"] {
  text-decoration: none !important;
  white-space: nowrap;
}
a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
label,
button {
  cursor: pointer;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
input,
textarea,
button,
select,
label,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  tap-highlight-color: transparent;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 50%;
  border: none;
  padding: 0;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}
input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}

button,
input[type="submit"] {
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}
input:focus,
input:hover {
  outline-style: none;
  box-shadow: none;
}
button:focus,
button:hover {
  outline-style: none;
  box-shadow: none;
}
summary {
  user-select: none;
}
video::-internal-media-controls-overlay-cast-button {
  display: none;
}

::-moz-selection {
  background-color: var(--blue);
  color: var(--white);
}
::selection {
  background-color: var(--blue);
  color: var(--white);
}

@font-face {
  font-family: "light";
  src: url("/assets/fonts/light.woff2") format("woff2");
  font-display: swap;
  text-rendering: optimizeLegibility;
  ascent-override: 90%;
}
@font-face {
  font-family: "regular";
  src: url("/assets/fonts/regular.woff2") format("woff2");
  font-display: swap;
  text-rendering: optimizeLegibility;
  ascent-override: 90%;
}
@font-face {
  font-family: "medium";
  src: url("/assets/fonts/medium.woff2") format("woff2");
  font-display: swap;
  text-rendering: optimizeLegibility;
  ascent-override: 90%;
}
@font-face {
  font-family: "semibold";
  src: url("/assets/fonts/semibold.woff2") format("woff2");
  font-display: swap;
  text-rendering: optimizeLegibility;
  ascent-override: 90%;
}

:root {
  --light: "light", sans-serif;
  --regular: "regular", sans-serif;
  --medium: "medium", sans-serif;
  --semibold: "semibold", sans-serif;
  --line-height: 1.5;
  --text-margin: 1em;
  --text-size: 16px;
  --text-smaller: calc(var(--text-size) - 1px);
  --text-xsmall: calc(var(--text-smaller) - 2px);
  --text-xxsmall: calc(var(--text-xsmall) - 1px);
  --text-larger: calc(var(--text-size) + 1px);
  --text-xlarge: calc(var(--text-larger) + 1px);
  --text-xxlarge: calc(var(--text-xlarge) + 1px);
  --label-size: 14px;
  --input-size: var(--text-smaller);
  --h1-size: 33px;
  --h2-size: 22px;
  --h3-size: 18px;

  /* New font system Optional */
  --font-size-base: 16px;
  --font-size-lg: 24px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;


  --blackRGB: 20, 20, 20;
  --black: rgb(var(--blackRGB));
  --black-5: rgba(var(--blackRGB), 0.05);
  --black-10: rgba(var(--blackRGB), 0.1);
  --black-20: rgba(var(--blackRGB), 0.2);
  --black-50: rgba(var(--blackRGB), 0.5);
  --black-80: rgba(var(--blackRGB), 0.8);
  --whiteRGB: 255, 255, 255;
  --white: rgb(var(--whiteRGB));
  --white-10: rgba(var(--whiteRGB), 0.1);
  --white-70: rgba(var(--whiteRGB), 0.7);
  --light: #faf9f8;
  --grey-100: #817f7c;
  --grey-200: #999796;
  --grey-300: #f2f1f0;
  --grey-400: #e0dfdd;
  --darkRGB: 45, 40, 35;
  --dark: rgb(var(--darkRGB));
  --dark-5: rgba(var(--darkRGB), 0.05);
  --dark-10: rgba(var(--darkRGB), 0.1);
  --dark-15: rgba(var(--darkRGB), 0.15);
  --dark-20: rgba(var(--darkRGB), 0.2);
  --dark-50: rgba(var(--darkRGB), 0.5);
  --dark-60: rgba(var(--darkRGB), 0.6);
  --dark-70: rgba(var(--darkRGB), 0.7);
  --dark-80: rgba(var(--darkRGB), 0.8);
  --dark-90: rgba(var(--darkRGB), 0.9);
  --blueRGB: 89, 119, 178;
  --blue: rgb(var(--blueRGB));
  --blue-10: rgba(var(--blueRGB), 0.1);
  --blue-25: rgba(var(--blueRGB), 0.25);
  --blue-50: rgba(var(--blueRGB), 0.5);
  --blue-75: rgba(var(--blueRGB), 0.75);
  --greenRGB: 164, 178, 89;
  --green: rgb(var(--greenRGB));
  --green-25: rgb(var(--greenRGB), 0.25);
  --green-50: rgb(var(--greenRGB), 0.5);
  --green-75: rgb(var(--greenRGB), 0.75);
  --redRGB: 206, 66, 66;
  --red: rgb(var(--redRGB));
  --red-10: rgba(var(--redRGB), 0.1);
  --red-25: rgba(var(--redRGB), 0.25);
  --red-50: rgba(var(--redRGB), 0.5);
  --red-75: rgba(var(--redRGB), 0.75);
  --feature-red: rgb(145, 68, 56);
  --feature-red-dark: rgb(120, 50, 40);
  --feature-red-light: rgb(200, 100, 80);
  --feature-red-80: rgba(145, 68, 56, 0.8);
  --orangeRGB: 228, 158, 67;
  --orange: rgb(var(--orangeRGB));
  --orange-10: rgba(var(--orangeRGB), 0.1);
  --orange-25: rgba(var(--orangeRGB), 0.25);
  --orange-50: rgba(var(--orangeRGB), 0.5);
  --orange-75: rgba(var(--orangeRGB), 0.75);

  --header-height: 60px;
  --col-width: 320px;
  --row-height: 20px;
  --row-border: 1px solid var(--grey-300);
  --padding: 10px;
  --padding-extra: calc(var(--padding) * 1.5);
  --padding-x2: calc(var(--padding) * 2);
  --padding-x3: calc(var(--padding) * 3);
  --padding-half: calc(var(--padding) / 2);
  --pad: clamp(10px, 1vw, var(--padding-x2));
  --radius: 10px;
  --radius-extra: 16px;
  --shadow: 0px 0px 4px 0px var(--black-10);
  --shadow-top: 0 -4px 6px -2px var(--black-10);
  --shadow-bottom: 0 4px 6px -2px var(--black-10);
  --shadow-hover: 0px 0px 4px 0px var(--black-20);
  --button-height: 40px;
  --button-radius: calc(var(--button-height) / 2);

  --field-bg: var(--white);
  --field-border: var(--dark-15);
  --field-colour: var(--dark);
  --field-hover: var(--black-50);
  --field-focus: 0 0 0 1px var(--blue-25), 0 0 0 3px var(--blue-10);
  --field-height: 40px;
  --field-margin: 0.5em;
  --field-padding: 0 1em;
  --field-padding-textarea: 1em;
  --field-radius: var(--field-height);
}

html {
  height: 100%;
  scroll-behavior: smooth;
  --background: var(--white);
  --colour: var(--dark);
}

body {
  background: var(--white);
  color: var(--colour);
  font-family: var(--regular);
  font-size: var(--text-size);
  line-height: 1;
}
.layout {
  margin-top: 2vh;
  padding-top: 57px;
}
.layout-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.outer {
  box-sizing: border-box;
  padding: 0 var(--padding-x3);
  width: 100%;
}
.flex {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}
.flex-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.auto {
  flex: auto;
}
.sticky {
  position: sticky;
  top: 0;
  width: 100%;
}
.centre {
  text-align: center;
}
.justify {
  text-align: justify;
}
.end {
  margin-top: auto;
  margin-bottom: 0;
}
.number {
  font-variant-numeric: tabular-nums lining-nums;
}
.padding {
  padding: var(--padding);
}
.half {
  flex: 0 0 50%;
  box-sizing: border-box;
}
.quarter {
  flex: 0 0 25%;
  box-sizing: border-box;
}
.three-quarters {
  flex: 0 0 75%;
  box-sizing: border-box;
}
.scroll {
  --scroll-bg: var(--dark-15);
  --scroll-width: 8px;
  height: 100%;
  overflow-y: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  -ms-scroll-chaining: none;
  overscroll-behavior: contain;
}
.grey {
  --colour: var(--grey-200);
}
.green {
  --colour: var(--green);
}

@supports (scrollbar-width: auto) {
  .scroll {
    scrollbar-color: var(--scroll-bg) transparent;
    scrollbar-width: thin;
  }
}
@supports selector(::-webkit-scrollbar) {
  .scroll::-webkit-scrollbar {
    background-color: transparent;
    max-width: var(--scroll-width);
  }
  .scroll::-webkit-scrollbar-track {
    background-color: transparent;
    -webkit-box-shadow: none;
  }
  .scroll::-webkit-scrollbar-thumb {
    background-color: var(--scroll-bg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fadein {
  opacity: 0;
  animation: fadeIn 500ms ease-in forwards;
}
.hidden {
  opacity: 0;
  opacity: all 1s;
  display: none !important;
}
.inview {
  opacity: 1;
}
.hide {
  opacity: 0;
}
.show {
  opacity: 1;
}

[v-cloak] {
  display: none;
}

h1 {
  font-family: var(--medium);
  font-size: var(--h1-size);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h2 {
  font-family: var(--semibold);
  font-size: var(--h2-size);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h3 {
  font-family: var(--medium);
  font-size: var(--h3-size);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h4 {
  font-family: var(--semibold);
  font-size: var(--text-smaller);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.1em;
}
h5 {
  font-family: var(--medium);
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0 0 var(--field-margin);
  text-transform: uppercase;
}
h6 {
  color: var(--grey-100);
  font-family: var(--light);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p {
  line-height: var(--line-height);
  margin: 0 0 var(--text-margin);
  font-size: 14px;
}

/* Potential New Typography */
 h1.typography-v2 {
  font-family: var(--medium);
  font-size: var(--font-size-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

 h2.typography-v2 {
  font-family: var(--medium);
  font-size: var(--font-size-base);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0em;
}

h3.typography-v2 {
  font-family: var(--medium);
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0em;
}

h3.typography-v2.upper {
  text-transform: uppercase;
}

h4.typography-v2 {
  font-family: var(--medium);
  font-size: var(--font-size-sm);
  color: var(--grey-100);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0em;
}

p.typography-v2 {
  font-family: var(--regular);
  font-size: var( --font-size-sm);
  font-weight: 400;
  line-height: var(--line-height);
  margin: 0 0 0em;
}

.typography-v2.light {
  font-family: var(--light);
  color: var(--grey-100);
}

.typography-v2.small {
  font-size: var(--font-size-xs);
}

/* em {  } */
strong {
  font-family: var(--semibold);
  font-weight: normal;
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child,
h1:only-child,
h2:only-child,
h3:only-child,
h4:only-child,
h5:only-child,
h6:only-child,
p:only-child {
  margin-bottom: 0;
}

a {
  color: var(--colour);
  transition: opacity 0.2s ease-out;
}

button {
  padding: 0;
  transition: all 0.2s ease-out;
}

.button {
  --bg: var(--dark);
  --border: transparent;
  --colour: var(--white);
  --bg-hover: var(--dark-90);
  --border-hover: var(--border);
  --colour-hover: var(--colour);
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--colour);
  border-radius: var(--button-radius);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: var(--pad);
  min-height: var(--button-height);
  margin: 0;
  padding: 0 1.1em;
  font-family: var(--regular);
  font-size: var(--text-smaller);
  line-height: 1;
  text-decoration: none !important;
  transition: all 0.1s ease-out;
  min-width: fit-content;
}

.button.dark {
  --bg: var(--dark);
  --colour: var(--grey-300);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
.button.light {
  --bg: var(--light);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
.button.grey {
  --bg: var(--grey-400);
  --colour: var(--dark);
  --bg-hover: var(--grey-200);
  --colour-hover: var(--dark);
}
.button.outline {
  --bg: transparent;
  --border: var(--dark);
  --colour: var(--dark);
  --bg-hover: var(--dark);
  --border-hover: var(--dark);
  --colour-hover: var(--white);
}
.button.outline-medium {
  --bg: transparent;
  --border: var(--grey-200);
  --colour: var(--dark);
  --bg-hover: var(--dark);
  --border-hover: var(--dark);
  --colour-hover: var(--white);
}
.button.outline-light {
  --bg: transparent;
  --border: var(--grey-200);
  --colour: var(--grey-200);
  --bg-hover: var(--white);
  --border-hover: var(--dark);
  --colour-hover: var(--dark);
}
.button.outline-regular {
  --bg: transparent;
  --border: var(--dark);
  --colour: var(--dark);
  --bg-hover: var(--dark);
  --border-hover: var(--dark);
  --colour-hover: var(--white);
}
.button.outline-light.hover-none {
  --bg-hover: transparent;
  --border-hover: var(--grey-200);
  --colour-hover: var(--grey-200);
}
.button.outline-standard {
  --bg: transparent;
  --border: var(--grey-200);
  --colour: var(--dark);
  --bg-hover: var(--light);
  --border-hover: var(--dark);
  --colour-hover: var(--dark);
}
.button-feature {
    --bg: var(--feature-red);
    --colour: var(--white);
    --bg-hover: var(--feature-red-light);
    --colour-hover: var(--white);
  }
.top-nav {
  padding: 8px 16px;
  color: var(--dark);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.top-nav:hover {
  border-bottom: 2px solid var(--white);
}
.top-nav.selected {
  border-bottom: 2px solid var(--dark);
}

.button i {
  font-size: 120%;
  font-style: normal;
}

@media (hover: hover) {
  .button:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--colour-hover);
  }
}

.buttons {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--padding);
}

.tag {
  background-color: var(--dark-5);
  border-radius: 5px;
  color: var(--dark-50);
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.03em;
  padding: 0.5em;
  text-transform: uppercase;
}
.status {
  color: var(--colour);
  display: flex;
  align-items: center;
  line-height: 20px;
}
.status i {
  background-color: var(--colour);
  border-radius: 50%;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
}

.spinner {
  margin: 35vh auto;
  border: 3px solid var(--light);
  border-top: 3px solid var(--dark);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
}
.mini-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #444;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.8s linear infinite;
  margin: 25% auto;
}
.loading-spinner {
  border: 3px solid var(--light);
  border-top: 3px solid var(--dark);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.notificationBackground,
#notificationMessage,
#message,
#notificationBackground {
  position: fixed;
  top: var(--header-height);
  left: 1rem;
  z-index: 9999; /* sits above absolutely everything */
  pointer-events: auto; /* allow clicks */
}

@media (max-width: 1600px) {
  :root {
    --text-size: 14px;
    --h1-size: 30px;
    --h2-size: 20px;
    --h3-size: 16px;
    --padding: 6px;
    --header-height: 80px;
    --col-width: 260px;
  }
}

@media (max-width: 1280px) {
  /* :root { } */
}

@media (max-width: 1080px) {
  :root {
    --header-height: 50px;
    --button-height: 40px;
  }
}

@media (max-width: 600px) {
  /* :root {  } */
  .outer {
    padding: 0 8px;
  }
}

/* FORMS
------------------------------------------------------------------------------------------------------------------------------------------------------*/
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
label:not(.wrap) {
  color: var(--colour);
  display: block;
  font-family: var(--semibold);
  font-size: var(--label-size);
  font-weight: normal;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0 0 var(--field-margin);
  text-transform: uppercase;
  transition: all 0.1s ease-out;
}
label.hidden {
  display: none;
}
label.wrap {
  border-radius: 15px;
  box-sizing: border-box;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: var(--text-smaller);
  margin-bottom: 0;
  padding: 0 0.5em;
  transition: all 0.1s ease-out;
}
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="date"],
textarea,
select {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  box-sizing: border-box;
  color: var(--field-colour);
  font-family: var(--regular);
  font-size: var(--input-size);
  line-height: 20px;
  margin-bottom: var(--field-margin);
  min-height: var(--field-height);
  padding: var(--field-padding);
  width: 100%;
  transition: all 0.1s ease-out;
  height: var(--field-height);
}
select {
  padding: 0 0.5em;
  cursor: pointer;
}
select option {
  padding: 0;
  background-color: var(--green-25) !important;
  cursor: pointer;
}
textarea {
  padding: var(--field-padding-textarea);
}
input[type="search"] {
  --field-bg: var(--light);
}
input[type="radio"],
input[type="checkbox"] {
  --field-border: var(--grey-200);
  border: 1px solid var(--field-border);
  accent-color: var(--colour);
  margin-right: 0.5em;
}
input[type="radio"] {
  height: 16px;
  width: 16px;
}
input[type="checkbox"] {
  height: 15px;
  width: 15px;
}

textarea {
  height: 200px;
  padding: var(--field-padding-textarea);
}

select.select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%23BFB9B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2rem;
  -webkit-appearance: none;
  appearance: none;
}

.toggle {
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  width: 100%;
}
.toggle input[type="radio"] {
  display: none;
}
.toggle span {
  flex: 1 1 auto;
  display: block;
}
.toggle label {
  flex: 1 1 auto;
  background: var(--field-bg);
  color: var(--field-colour);
  display: block;
  letter-spacing: 0;
  line-height: 20px;
  margin: 0;
  padding: var(--field-padding) 1em;
  text-transform: none;
}
.toggle :checked + label {
  background: var(--dark);
  color: var(--grey-300);
}

form button {
  border: none;
}
form button:disabled,
form button[disabled] {
  opacity: 0.5;
  cursor: default;
}
form button.loading {
  opacity: 0.5;
  pointer-events: none;
}
input,
textarea,
select:disabled {
  opacity: 0.7;
  cursor: default;
}

.search {
  position: relative;
  display: inline-block;
}
.search input {
  padding-right: 35px;
  margin: 0;
  min-width: 200px;
}
.search svg {
  stroke: var(--grey-200);
  font-size: 14px;
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.datalist {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  box-sizing: border-box;
  color: var(--field-colour);
  font-family: var(--regular);
  font-size: var(--input-size);
  line-height: 20px;
  margin-bottom: var(--field-margin);
  min-height: var(--field-height);
  padding: var(--field-padding);
  width: auto;
  transition: all 0.1s ease-out;
}

::-webkit-input-placeholder {
  color: currentColor;
  opacity: 0.5;
}
::-moz-placeholder {
  color: currentColor;
  opacity: 0.5;
}
::-ms-placeholder {
  color: currentColor;
  opacity: 0.5;
}
::placeholder {
  color: currentColor;
  opacity: 0.5;
}

@media (hover: hover) {
  label:not(.wrap):hover {
    opacity: 0.5;
  }
  label.wrap:hover {
    background: var(--light);
    color: inherit;
  }
  .toggle label:hover {
    opacity: 1;
  }
  .toggle input:not(:checked) + label:hover {
    background: var(--white);
    color: var(--dark);
    opacity: 1;
  }
  input:hover,
  textarea:hover,
  select:hover {
    --field-bg: var(--white);
    border-color: var(--field-hover);
    outline: none;
  }
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: transparent !important;
  box-shadow: var(--field-focus);
  outline: none;
}

@media (max-width: 1080px) {
  input,
  textarea,
  select {
    font-size: 14px !important;
  }
}

/* LOGIN
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#login {
  background: var(--grey-300);
  height: 100%;
}
#login .layout-full > header {
  padding: var(--padding-x3);
  text-align: center;
}
#login .layout-full > header svg .square {
  stroke: var(--dark-10);
}
#login .layout-full > footer {
  color: var(--grey-200);
  padding: var(--padding-x3);
  text-align: center;
}
#login .layout-full > footer p {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#login .layout-full > footer a:hover {
  text-decoration: underline;
}
#login .layout-full > main {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  max-width: 400px;
  padding: var(--padding-x3);
  text-align: center;
  width: 90%;
}
#login .layout-full > main header {
  margin-bottom: 25px;
}
#login .layout-full > main footer {
  --colour: var(--black-80);
  margin-top: 25px;
}
#login .layout-full > main a {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  #login .layout-full > header {
    padding: 20px;
  }
  #login .layout-full > header svg {
    height: 30px;
    width: auto;
  }
}

/* LOGIN
------------------------------------------------------------------------------------------------------------------------------------------------------*/
.mfa-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
}
.mfa-container p {
  margin: auto 1rem;
}

.mfa-status {
  color: var(--colour);
  display: flex;
  align-items: center;
  line-height: 20px;
}
.mfa-status i {
  background-color: var(--colour);
  border-radius: 50%;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
}

/* HEADER
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#header {
  background: var(--white);
  position: fixed;
  top: 0;
  z-index: 950;
  width: 100%;
}
#header .outer {
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
}
#header #logo {
  width: var(--col-width);
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: -1 !important;
}
#header #logo p {
  color: var(--grey-100);
  margin-left: 1rem;
  font-size: var(--text-small);
}
#header #logo a {
  display: inline-block;
}
#header #logo svg {
  height: 40px;
  width: auto;
}
#header #user {
  display: flex;
  width: var(--col-width);
  justify-content: flex-end;
  flex-direction: row;
  align-items: center;
  gap: var(--padding-extra);
  width: auto;
}
#header #user span {
  color: var(--grey-200);
  font-size: 14px;
  letter-spacing: 0.02em;
  flex: 1;
  line-height: 1.2;
  text-align: right;
}
#header #user a {
  display: flex;
  align-items: center;
}

#header ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--padding);
  z-index: 900 !important;
}
#header ul .button {
  --bg: var(--white);
  --colour: var(--dark);
  --bg-hover: var(--grey-300);
  --colour-hover: var(--dark);
}
#header ul li.on .button {
  --bg: var(--grey-300);
  --colour: var(--dark);
  --bg-hover: var(--bg);
  --colour-hover: var(--colour);
}

/* Dropdown styles */
.dropdown {
  position: relative;
  z-index: 900 !important;
}
.dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100%);
  right: auto;
  left: auto;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  z-index: 900 !important;
  min-width: 150px;
  padding: var(--padding) 0;
  /* margin-top: 1px; */
}
.dropdown.align-right .dropdown-content {
  left: auto;
  right: 0;
}
.dropdown .dropdown-content a {
  display: block;
  padding: var(--padding) var(--padding-extra);
  color: var(--grey-100);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  z-index: 900 !important;
  font-family: var(--regular);
}
.dropdown .dropdown-content a:hover {
  background: var(--grey-300);
  color: var(--dark);
}
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#header #studioName {
  font-size: var(--text-small);
}
#header #studioLogo {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
#header #studioLogo.loaded {
  opacity: 1;
}

.logo-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

@media (hover: hover) {
  #header #logo a:hover svg .square {
    fill: var(--grey-300);
  }
}

@media (min-width: 1600px) {
  #header .button {
    font-size: var(--text-size);
  }
}

@media (max-width: 1400px) {
  #header #logo svg {
    height: 35px;
  }
  #header .button {
    padding: 0 0.8em;
  }
}

@media (max-width: 1280px) {
  #header #logo,
  #header #user {
    width: auto;
  }
  /* #header ul { display: none; } // want to keep the header visable */
}

@media (max-width: 1080px) {
  #header .outer {
    gap: var(--padding-x2);
  }
  #header #logo svg {
    height: 30px;
  }

  /* Mobile dropdown adjustments */
  #header ul li.dropdown .dropdown-content {
    min-width: 120px;
    font-size: var(--text-small);
  }
  #header ul li.dropdown .dropdown-content a {
    padding: calc(var(--padding) * 0.8) var(--padding);
  }
}
#header.zIndex {
  position: relative;
  z-index: 2;
}

/* FOOTER 
------------------------------------------------------------------------------------------------------------------------------------------------------*/
.footer-links {
  color: var(--grey-200);
  padding: var(--padding-x3);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.footer-links a:hover {
  text-decoration: underline;
}

#footer {
  display: none;
}

/* MAIN
------------------------------------------------------------------------------------------------------------------------------------------------------*/
main p {
  color: var(--colour);
}
main p a {
  color: currentColor;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  main p a:hover {
    color: currentColor;
    opacity: 0.5;
    text-decoration: underline;
  }
}

main img {
  height: auto;
  width: 100%;
  box-sizing: border-box;
}
main .video {
  overflow: hidden;
  position: relative;
  padding-top: 56.25%;
}
main .video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
main .video video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

main ul,
main ol {
  color: var(--colour);
  line-height: var(--line-height);
  margin: 0 0 var(--text-margin) 1.5em;
}
main li ul,
main li ol {
  font-size: 100%;
  margin: 0.5em 0 0.5em 1.5em;
}
main ul {
  list-style-type: disc;
}
main ul ul {
  list-style-type: circle;
}
main ul ul ul {
  list-style-type: square;
}
main ol {
  list-style-type: decimal;
}
main ol ol {
  list-style-type: lower-alpha;
}
main ol ol ol {
  list-style-type: lower-roman;
}
main li {
  margin-bottom: 0.5em;
}
main ul:last-child,
main ol:last-child,
main figure:last-child,
main ul:only-child,
main ol:only-child,
main figure:only-child {
  margin-bottom: 0;
}

.error {
  --colour: var(--red);
  background: var(--red-10);
  border: 1px solid var(--red-25);
  border-radius: var(--radius);
  color: var(--colour);
  margin-bottom: var(--padding-x2);
  padding: var(--padding);
  text-align: center;
}
ul.error {
  text-align: left;
}

.msg {
  --colour: var(--grey);
  background: var(--light);
  border: 1px solid var(--dark-20);
  border-radius: var(--radius);
  margin-bottom: var(--padding-x2);
  padding: var(--padding-x2);
  text-align: center;
}
.msg p {
  max-width: 600px;
  margin: auto;
}

.arrow {
  border: solid var(--black-50);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(-45deg);
}
.arrow.left {
  transform: rotate(135deg);
  margin-right: -1px;
}
.arrow.up {
  transform: rotate(-135deg);
}
.arrow.down {
  transform: rotate(45deg);
}

table {
  --pad: 10px;
  --cell-pad: var(--pad);
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 100%;
  white-space: nowrap;
}
thead {
  border-block-end: 1px solid var(--black-5);
  background: var(--light);
}
tbody {
  background: var(--white);
}
tr {
  background: var(--white);
}
th {
  font-family: var(--medium);
  font-weight: 400;
  width: auto;
  white-space: nowrap;
  background: var(--white);
}
th,
td {
  font-size: 14px;
  line-height: 20px;
  min-height: var(--row-height);
  padding: var(--cell-pad);
  text-align: left;
}

th.right,
td.right {
  text-align: right;
}
td {
  background: var(--white);
  border-bottom: var(--row-border);
}
td.caps {
  text-transform: uppercase;
}
td.fit {
  width: 1%;
}
td.link {
  padding: 0;
}
td.link a {
  display: block;
  padding: var(--cell-pad);
}
tr:hover td {
  background-color: var(--light);
}
td a {
  color: var(--colour);
  text-underline-offset: 2px;
}

@media (hover: hover) {
  th button:hover {
    background-color: var(--black-10);
    color: var(--black);
  }
  tr:hover td a {
    color: var(--blue);
  }
  td a:hover {
    opacity: 0.8;
    text-decoration: underline;
  }
}

/* UTILITY
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#utility {
  display: flex;
  gap: var(--padding-x3);
  padding: var(--padding-extra) var(--padding-half);
  width: auto;
  margin-top: var(--header-height);
}
#utility header {
  width: fit-content;
  display: flex;
  flex-direction: row;
  text-align: start;
  align-items: start;
  justify-content: space-evenly;
}
#utility header svg {
  margin: 0 0.5em 1em 0;
  cursor: pointer;
}
#utility header .smaller-h1 {
  font-size: calc(var(--h1-size) - 5px);
}
#utility nav {
  display: flex;
  align-items: flex-start;
  flex: 1;
  gap: var(--padding);
  width: 100%;
  flex-wrap: wrap;
}
#utility nav #subnav {
  display: flex;
  gap: var(--padding);
  flex: 1;
  margin-right: auto;
}
/* #utility nav #subnav .button { margin: 0 var(--padding); } */
#utility nav #subnav fieldset input[type="search"] {
  width: 280px;
}
#utility nav #actions {
  display: flex;
  align-items: flex-end;
  gap: var(--padding);
  margin-left: auto;
}
#utility nav #actions * {
  margin-bottom: 0;
}
#utility nav #actions .sortSelect {
  width: 200px;
}
#utility.collapsed {
  width: var(--col-width);
}
#utility #actions li {
  list-style-type: none;
}
#backArrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-right: 1rem;
  color: var(--colour);
}

/* CONTENT + COLUMN
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#container {
  display: flex;
  align-items: flex-start;
  gap: var(--padding-x3);
  padding: var(--padding) 0;
}
#column {
  width: var(--col-width);
  position: sticky;
  top: var(--field-height);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 120px);
  overflow-y: auto;
  border-radius: var(--radius);
  padding: var(--padding);
}
/* #column { width: var(--col-width); } */
#column input:last-child,
#column textarea:last-child,
#column select:last-child {
  margin-bottom: 0;
}
#column fieldset {
  padding: 0;
  margin: 0 0 1em;
  width: 100%;
}
#column details {
  display: block;
  margin-bottom: 0.5em;
}
#column select,

#column details summary {
  color: var(--colour);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-family: var(--semibold);
  font-size: var(--text-xsmall);
  font-weight: normal;
  letter-spacing: 0.05em;
  margin: 0 0 var(--field-margin);
  padding: 0 var(--padding);
  text-transform: uppercase;
  transition: all 0.1s ease-out;
}
#column details summary::after {
  content: "▼";
  transition: transform 0.2s ease;
}
#column details[open] summary::after {
  transform: rotate(180deg);
}
#column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#column ul li .button {
  --bg: var(--white);
  --colour: var(--dark);
  --bg-hover: var(--grey-300);
  --colour-hover: var(--dark);
  cursor: pointer;
}
#column ul li.on .button {
  --bg: var(--grey-300);
  --colour: var(--dark);
  --bg-hover: var(--bg);
  --colour-hover: var(--colour);
}
#column ul li button.filterButton {
  margin-bottom: 0;
}

@media (hover: hover) {
  #column details summary:hover {
    opacity: 0.5;
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-sizing: border-box;
  box-shadow: var(--shadow);
  display: block;
  font-size: var(--text-smaller);
  overflow: hidden;
  padding: var(--padding-x2);
}
@media (hover: hover) {
  .card:hover {
    box-shadow: var(--shadow-hover);
  }
}

#content {
  flex: 1;

}
#content.padding {
  background: var(--light);
  border-radius: var(--radius);
  padding: var(--padding);
}
#content.columns {
  display: flex;
  gap: var(--padding-x2);
}

#content section.padding {
  background: var(--light);
  border-radius: var(--radius);
  padding: var(--pad);
}
#content section.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--pad);
}
#content section.panel.pad {
  padding: var(--pad);
}
#content section.panel:last-of-type {
  margin-bottom: 0;
}
#content section.col {
  background: var(--light);
  border-radius: var(--radius);
  flex: 1;
  padding: var(--pad);
}
#content section.col > header {
  --button-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--button-height);
}
#content section.col > header h2 {
  margin: 0;
}

@media (max-width: 1080px) {
  #content.columns {
    flex-direction: column;
  }
}

/* CHECKLIST
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#content .checklist .card {
  margin-top: var(--pad);
}
#content .checklist .card header {
  display: flex;
  justify-content: space-between;
  gap: var(--padding);
  margin-bottom: var(--padding);
}
#content .checklist .card header h4 {
  flex: 1;
  line-height: 20px;
}
#content .checklist .card header h6 {
  line-height: 20px;
}
#content .checklist .card header svg {
  line-height: 20px;
  cursor: pointer;
}
#content .checklist .card header svg:hover {
  fill: var(--dark-70);
}
#content .checklist .card p {
  margin-bottom: var(--padding);
}
#content .checklist .card textarea {
  padding: var(--padding);
  height: auto;
}
#content .checklist .card input[type="date"] {
  width: 40%;
}

#content .checklist .card .tag {
  background-color: var(--dark-5);
  border-radius: 5px;
  color: var(--dark-50);
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.03em;
  padding: 0.5em;
  text-transform: uppercase;
  cursor: pointer;
}
#content .checklist .card .tag.open {
  color: var(--dark-90);
}
#content .checklist .card .tag:hover {
  background-color: var(--light);
  color: var(--dark);
  box-shadow: var(--shadow);
}
#content .checklist .card .staff-list {
  font-size: var(--text-xsmall);
  color: var(--dark-90);
  margin: 0.5rem 0 0 1.5rem;
}
#content .checklist .card .notes-section {
  font-size: var(--text-xxsmall);
  color: var(--dark-80);
}
#content .checklist .card .end-date {
  color: var(--grey-100);
  font-family: var(--light);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

#content .checklist.col header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--padding);
}
#content .checklist.col button {
  margin: auto 0 0 auto;
  display: flex;
  justify-self: flex-end;
}
#content .checklist.col .button-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
#content .checklist.col .button-container button {
  margin: var(--padding);
}

.button.complete-button:hover {
  color: white !important;
}

/* TEAM
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#content .team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--pad);
}
#content .team a.card {
  display: flex;
  gap: var(--pad);
  flex-direction: column;
  min-height: 500px;
  height: 45vh;
  max-height: 1000px;
  overflow-y: auto;
}
#content .team a.card div {
  flex: 1;
}
#content .team a.card figure {
  height: 160px;
  width: 120px;
}
#content .team a.card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-extra);
}
#content .team a.card .img-user-card {
  display: flex;
  flex-direction: row;
  gap: var(--pad);
  align-items: start;
}
#content .team a.card .user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#content .team a.card .user > *:not(.end) {
  margin-bottom: 0.25em;
}
#content .team a.card .tag {
  margin-top: 0.5em;
}
#content .team a.card .details p {
  color: var(--grey-100);
  font-size: var(--text-xxsmall);
}

#content .team .project-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

#content .team .project-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: auto;
}

#content .team .project-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xsmall);
  font-weight: 500;
}

#content .team .project-bar-container {
  height: 20px;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
}

.project-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
  display: block;
  min-width: 3px;
  position: relative;
  background: transparent; /* Ensure no background conflicts */
}

#content .options {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: var(--padding-half);
  align-items: end;
}
#content .options button {
  height: var(--button-height);
  margin-bottom: 0;
}

#content #editForm tr.header-contract-row {
  background: var(--grey-200);
  text-align: start;
}
#content #editForm table tr.last-contract-row td {
  background: var(--dark-5);
}
#content #editForm table tr.last-contract-row:hover td {
  background: var(--light);
}

#content #editForm fieldset:disabled .checkbox {
  opacity: 0.75;
}
#content #editForm fieldset:disabled input,
#content #editForm fieldset:disabled select,
#content #editForm fieldset:disabled textarea {
  background-color: var(--grey-300);
}

.form-disabled {
  pointer-events: none;
}
.form-disabled input,
.form-disabled select,
.form-disabled textarea,
.form-disabled button {
  background-color: var(--grey-300);
}

.file-icons i {
  font-size: var(--text-xxlarge);
}
.file-icons-small i {
  font-size: var(--text-larger);
}

.pdf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

.pdf-modal-content {
  position: relative;
  border-radius: var(--radius);
  background: var(--white);
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--padding-extra);
  z-index: 1001;
}

.iframe-container {
  width: 80vw;
  height: 80vh;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: scaleIn 0.2s ease-in-out;
}

/* Close button now outside top-right corner */
.pdf-modal-content .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 32px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: #f8f8f8;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.contract-buttons {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  padding: var(--padding);
  border-radius: var(--button-radius);
}
.contract-buttons button {
  margin-bottom: 1rem;
  background-color: rgb(var(--whiteRGB));
  z-index: 1002;
}

.recent-projects-list {
  font-size: 0.8rem;
  color: var(--grey-100);
  padding: 0.2rem 0.5rem;
}

.close {
  color: var(--dark-70);
}
.close:hover {
  color: var(--dark);
}

/* //  | Colour           | Hex Code  |
      //  | ---------------- | --------- |
      //  | Off White        | `#ECEBE6` |
      //  | Light Beige      | `#D8CCB9` |
      //  | Warm Tan         | `#D6A46C` |
      //  | Taupe Grey       | `#7E7873` |
      //  | Rust             | `#A7552B` |
      //  | Muted Mauve      | `#B9A9AB` |
      //  | Slate Blue-Green | `#556B6E` |
      //  | Charcoal         | `#484542` |
      //  | Brick Red        | `#8C3B2F` | */

/* Studio Settings
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#content .positionRow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--padding);
}
#content .positionRow button {
  padding: 0rem 0.7rem;
  margin: 0;
}
#content.padding {
  background: unset;
  border-radius: unset;
  padding: 6px;
}
#content section {
  background: var(--light);
  border-radius: var(--radius);
  padding: var(--padding);
  margin-bottom: var(--pad) !important;
}

#utility header.header-with-tabs {
  display: flex;
  flex-direction: row;
  min-width: fit-content;
  max-width: 300px;
  justify-content: start;
}

.studio-settings-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: var(--field-margin);
}
.studio-settings-tabs .tab {
  max-width: 7.8rem;
  max-height: 7rem;
  text-align: center;
}

.tab {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  padding: var(--padding);
  width: 140px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s, border 0.1s;
  cursor: pointer;
}
.tab:hover {
  background: #fff;
  border: 2px solid var(--field-border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
  cursor: pointer;
}
.tab.active {
  background: var(--green-50);
  border: 2px solid var(--field-border);
  box-shadow: 0 2px 8px rgba(86, 86, 86, 0.15);
}
.tab-title {
  font-weight: bold;
  color: var(--field-colour);
  font-size: 1.2em;
}
.tab-subtitle {
  color: var(--dark-60);
  font-size: 1em;
}
.hidden-list {
  display: none;
  margin-top: 0.5rem;
  padding-left: 1rem;
}

#phasesGrid.ag-theme-alpine div {
  border: none;
  border-radius: var(--radius);
}
#phasesGrid.ag-theme-alpine .ag-header {
  border-radius: var(--radius) var(--radius) 0 0;
}
#phasesGrid.ag-theme-alpine .ag-row {
  border-radius: 0;
}

#adminTasksGrid.ag-theme-alpine div {
  border: none;
  border-radius: var(--radius);
}
#adminTasksGrid.ag-theme-alpine .ag-header {
  border-radius: var(--radius) var(--radius) 0 0;
}
#adminTasksGrid.ag-theme-alpine .ag-row {
  border-radius: 0;
}

#usersGrid.ag-theme-alpine div {
  border: none;
  border-radius: var(--radius);
}
#usersGrid.ag-theme-alpine .ag-header {
  border-radius: var(--radius) var(--radius) 0 0;
}
#usersGrid.ag-theme-alpine .ag-row {
  border-radius: 0;
}

#complianceGrid.ag-theme-alpine div {
  border: none;
  border-radius: var(--radius);
}
#complianceGrid.ag-theme-alpine .ag-header {
  border-radius: var(--radius) var(--radius) 0 0;
}
#complianceGrid.ag-theme-alpine .ag-row {
  border-radius: 0;
}

/* Delete button styling */
#complianceGrid .button.outline-light {
  background-color: #f5c9c9 !important; /* light red (same as your screenshot) */
  color: #000; /* text color black */
  border: none;
  border-radius: 20px; /* pill style */
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#complianceGrid .button.outline-light:hover {
  background-color: #000; /* black background on hover */
  color: #fff; /* white text */
}

.info-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: #333;
  cursor: help;
  margin-left: 8px;
  position: relative;
  vertical-align: middle;
}

.info-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fafafa;
  color: #333;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  white-space: normal;
  width: 250px;
  line-height: 1.4;
  text-align: left;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  margin-bottom: 10px;
}

.info-icon:hover::before {
  content: "";
  position: absolute;
  bottom: 83%;
  left: 0px;
  transform: translateX(-100%);
  border-width: 6px;
  border-style: solid;
  border-color: #fafafa transparent transparent transparent;
  z-index: 1001;
}

/* PROJECT SUMMARY
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#SummaryPage .wrap {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dark-70);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  margin-bottom: 0.125rem;
  height: auto;
}

#SummaryPage .text-field {
  margin-left: 0.5rem;
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
}

/* Section headers in Summary */
#SummaryPage h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-80);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

/* Improved spacing between sections */
#SummaryPage .space-y-3 > * + * {
  margin-top: 0.75rem;
}

#SummaryPage .space-y-5 > * + * {
  margin-top: 1.25rem;
}

/* Profile image styling */
#SummaryPage img.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 3px solid #f3f4f6;
}

/* Background for text areas */
#SummaryPage .bg-gray-50 {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* Enhanced badge styling */
#SummaryPage .rounded-md {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.heading-underline{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0;
  gap: 10px;
  align-self: stretch;
  border-bottom: 1px solid #F2F1F0;
}

.project-info-column{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
  min-width: 9rem;
}

.project-form img {
  height: 100%;
  width: auto;
  object-fit: cover;
  max-height: 80vh;
  max-width: 45vw;
  min-width: 500px;
}
.admin-project-form img {
  height: 100%;
  width: auto;
  object-fit: cover;
  max-height: 50vh;
  max-width: 50vw;
  min-width: 500px;
}

.contacts-list {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.contacts-list input {
  width: 100%;
}
.contacts-list label {
  width: 75%;
}
.contact-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
  width: 100%;
}
.contact-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 75%;
}
.contact-column button {
  color: var(--dark-50);
  align-items: center;
}
.contact-column input,
.contact-row button {
  margin: 0.5rem;
}

.flex-row { flex-direction: row; align-items: center; }
.flex-column { flex-direction: column; align-items: flex-start; }

.project-title {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.project-title h2 {
  margin: 0;
}
.inactive-staff {
  color: var(--grey-200);
}

.project-team-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.project-team-div {
  width: 50%;
}

.project-team-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: 100%;
}
.project-team-list {
  display: flex;
  flex-direction: column;
  width: 50%;
}
.project-consultant-list {
  display: flex;
  flex-direction: column;
  width: 50%;
}
.project-team-columns span {
  font-size: 0.8rem;
  color: var(--grey-100);
  padding: 0.2rem 0.5rem;
}

.cow-number {
  font-size: 0.9rem;
  color: var(--grey-100);
  margin: 0.2rem 0.5rem;
}

.chart-type-div {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  margin: 0 1rem;
}

#modal-duplicate-window > div {
  margin: auto;
}

.filter-bar {
  background: white;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-toggle-button {
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-size: 14px;
  background: var(--light);
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-toggle-button:hover {
  background-color: #f0f0f0;
  border-color: #c8c8c8;
}

.clear-filter-button {
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  /* font-size: 14px; */
  background: #f8f8f8;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-filter-button:hover {
  background-color: #f0f0f0;
  border-color: #c8c8c8;
}

.phases-toggle-container {
  display: flex;
  align-items: center;
  margin: 0 !important;
}

.phases-toggle-container {
  display: flex;
  margin-left: 1rem;
}

.phases-toggle-container .toggle-button {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: 0;
}

.phases-toggle-container .toggle-left {
  border-radius: 30px 0 0 30px;
  border-right: none;
}

.phases-toggle-container .toggle-right {
  border-radius: 0 30px 30px 0;
}

.phases-toggle-container .toggle-button.on {
  background: #f2f1f0;
  color: #000;
  border-color: #f2f1f0;
}

.timeframe-container select {
  margin: 0;
}

.timeframe-select {
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-size: 14px;
  background: #f8f8f8;
  color: #333333;
  min-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeframe-select:hover {
  background-color: #f0f0f0;
  border-color: #c8c8c8;
}

.timeframe-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}


.toggle-button {
  padding: 8px 16px;
  border: 1px solid #d8d8d8;
  font-size: 14px;
  background-color: var(--grey-300) !important;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-button.toggle-left {
  border-radius: 999px 0 0 999px;
  border-right: none;
  margin-bottom: 0;
}

.toggle-button.toggle-right {
  border-radius: 0 999px 999px 0;
  margin-bottom: 0;
  color: #333333;
}

.toggle-button.on {
  background-color: var(--light) !important;
  color: var(--dark);
  border: var(--grey-100) 1px solid;
  margin-bottom: 0;
  font-weight: var(--semibold) !important;
}

.toggle-button:not(.on) {
  background-color: var(--grey-400) !important;
  color: #5f5f5f;
  border-color: #d8d8d8;
}

.toggle-button:hover {
  background-color: var(--light) !important;
  color: #333333 !important;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.filter-option:hover {
  background-color: #f8f8f8;
}

.filter-option input[type="checkbox"] {
  margin-right: 8px;
}

.filter-option span {
  font-size: 14px;
  color: #333333;
}
.adminfilters {
  display: flex;
  justify-content: space-between;
}
/* #utility nav .adminfilters #actions {
  margin: 0;
} */
.adminfilters-bar {
  display: flex;
  justify-content: unset;
  align-items: center;
  width: 100%;
  gap: 20px;
}
.adminfilters-bar #horizontalTimeframeSelect {
  margin: 0 !important;
  padding: 10px 12px !important;
  font-size: 12px;
}

.adminfilters-bar .filter-buttons {
  width: 85%;
  margin: 0;
  justify-content: unset;
  gap: 20px;
}
.teams-filter-bar #filterDropdown {
  left: 0 !important;
  right: 0 !important;
  top: 55px !important;
  margin: 0 auto !important;
  padding: 0;
}
.clear-filter-button {
  margin-right: 0 !important;
  padding: 10px 12px !important;
  /* font-size: 12px !important; */
}
#horizontalToggleHide,
#horizontalToggleShow,
.filter-button {
  padding: 10px 12px !important;
  font-size: 12px !important;
}
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

input[type="radio"]:checked {
  border-color: #3b82f6;
  background-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
}

input[type="radio"]:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Label hover effect */
label:hover {
  color: #3b82f6;
}

/* Validation loader animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.project-team-columns { display: flex; flex-direction: row; justify-content: space-evenly; width: 100%;}
.project-team-list { display: flex; flex-direction: column; width: 50%; }
.project-consultant-list { display: flex; flex-direction: column; width: 50%; }
.project-team-columns span { font-size: 0.80rem; color: var(--grey-100); padding: 0.2rem 0.5rem;}

.toggle-switch input[type="checkbox"] {
  display: none;
  opacity: 0;
  position: absolute;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-slider .toggle-label {
  position: absolute;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  transition: opacity 0.3s;
}

.toggle-slider .toggle-label.yes {
  left: 8px;
}

.toggle-slider .toggle-label.no {
  right: 8px;
  left: auto;
}

input:checked + .toggle-slider {
  background-color: var(--dark-80);
}

input:checked + .toggle-slider:before {
  transform: translateX(48px);
}

input:checked + .toggle-slider .toggle-label.yes {
  opacity: 1;
  color: var(--white) !important;
}

input:checked + .toggle-slider .toggle-label.no {
  opacity: 0;
}

input:not(:checked) + .toggle-slider .toggle-label.yes {
  opacity: 0;
}

input:not(:checked) + .toggle-slider .toggle-label.no {
  opacity: 1;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.toggle-label {
  flex: 1;
  margin-right: 1rem;
}

.toggle-switch-container {
  flex-shrink: 0;
}

/* Toggle Heading Styles for List Sections */
.list-toggle-header {
  border-radius: 30px;
  padding: 0.25rem 0.5rem;
  justify-content: space-between;
  border: 1px solid #000;
  color: #000;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.list-toggle-header:hover {
  background-color: var(--grey-300);
}
@media (min-width: 1200px) {
  .adminfilters-bar .filter-buttons {
    gap: 6px;
  }
}
@media (min-width: 1600px) {
  .adminfilters-bar .filter-buttons {
    width: 80%;
  }
}
@media (min-width: 1700px) {
  .adminfilters-bar .filter-buttons {
    width: 76%;
  }
}
@media (min-width: 1800px) {
  .adminfilters-bar .filter-buttons {
    width: 71%;
  }
}
@media (min-width: 1900px) {
  .adminfilters-bar .filter-buttons {
    width: 67%;
  }
}

/* PROJECT FEE SCHEDULE
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#phaseForm .displayName {
  width: 15vw;
  min-width: fit-content;
  margin: auto 0.5rem;
}
.resource-months-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.resource-month-column {
  background: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* td.current-month-column { background-color: rgb(214, 239, 225) !important;} DONT NEED THIS: SHOULDNT BE OPAQUE */

/* Current month highlighting for project phase calculator */
.resource-month-column.current-month-highlight {
  /* border: 1px solid var(--green) !important; */
  border: 2px solid rgb(214, 239, 225) !important;
}

.resource-month-column.current-month-highlight .resource-input {
  -webkit-appearance: none; /* Safari / Chrome */
  -moz-appearance: none; /* Firefox */
  appearance: none; /* Standard */
  background-color: rgba(214, 239, 225, 0.75) !important;
  background-image: none !important;
}

.total-allocated-column {
  background: var(--grey-300);
  margin: auto 0;
}

.date-header {
  text-align: center;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.date-header-thin {
  text-align: center;
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-size: var(--text-xsmall);
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.resource-input {
  width: 100%;
  text-align: center;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  padding: 0.5rem;
  font-size: 1rem;
}

.metrics-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
/* .metrics-container-part { display: flex; justify-content: center; gap: 0.5rem; } */
.metric-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
.metric-label {
  font-size: 0.8rem;
  color: var(--grey-100);
  margin-bottom: 0.25rem;
}
.metric-label.xbold-text {
  color: var(--dark-80);
}
.metric-value {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0.25rem auto;
}
.metric-box-2 {
  display: flex;
  margin-top: 0.25rem;
  padding: 0.2rem;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.metric-box-2 button {
  margin: auto;
}

.total-metric-label {
  font-size: 0.8rem;
  color: var(--grey-100);
  align-items: center;
  text-align: center;
  margin: 0.25rem auto;
}

#editForm .input {
  display: flex;
  align-items: center;
  padding: 0 var(--field-padding);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  box-sizing: border-box;
  color: var(--field-colour);
  font-family: var(--regular);
  font-size: var(--input-size);
  line-height: 20px;
  margin-bottom: var(--field-margin);
  min-height: var(--field-height);
  padding: var(--field-padding);
  width: 100%;
  transition: all 0.1s ease-out;
  justify-items: center;
}
#editForm .input:focus {
  border-color: transparent !important;
  box-shadow: var(--field-focus);
  outline: none;
}
.button.save-button {
  --bg: var(--green-50);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
.button.delete-button {
  --bg: var(--red-25);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
.button.phase-button {
  font-size: var(--text-xxsmall);
  margin: 0;
}
.button.delete-button-subtle {
  --bg: var(--red-10);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
  margin: auto;
  font-size: var(--text-xsmall);
}

.table-header {
  padding: var(--padding-x2);
  background-color: var(--light);
  border-radius: var(--radius) var(--radius) 0 0;
}
.table-content {
  padding: var(--padding);
  background-color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
}
.table-row {
  padding: var(--padding-extra);
}

.center-text {
  text-align: center;
}

.end-text {
  text-align: end;
}

.phase-icon {
  width: var(--text-size);
  height: var(--text-size);
  border-radius: 100%;
  margin-right: 1rem;
  justify-content: center;
}

.shrink-resource {
  color: var(--dark-70);
  font-size: var(--text-larger);
}
.shrink-resource:hover {
  color: var(--dark) !important;
}

.shrink-resource::after {
  content: "▼";
  display: inline-block;
  transition: transform 0.2s ease;
}

.shrink-resource.open::after {
  transform: rotate(180deg);
}

.cow-calc {
  border-radius: var(--field-radius);
}

/* PROJECT REGISTER GRID
------------------------------------------------------------------------------------------------------------------------------------------------------*/
.table-wrapper {
  padding: 20px;
  display: flex;
  flex: 1;
  max-height: 100%;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.print-table-wrapper {
  background-color: var(--white);
  padding-bottom: 20px;
}
.fixed-column {
    position: sticky;
    left: 0;           
    background: white;
    z-index: 2;
}
.pro-top-row{
  position: sticky;
  top: 0;
  background: var(--light, #f5f5f5);
  z-index: 5;
}

/* Month row cells - off-white background */
.pro-top-row td {
  background-color: var(--light, #f5f5f5) !important;
}

/* Keep current month green */
.pro-top-row td.current-month-column {
  background-color: #D6EFE1 !important;
}
.scrollable-columns {
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  flex: 1;
}
#registerGrid {
  flex: 1;
  height: 100%;
}
/* #registerGrid { height: 100%; overflow-y: scroll; } */
div#registerGrid {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  height: auto !important;
}
div#registerGrid .table-wrapper {
  padding: 5px;
}

table.statsGridColumnHeader {
  border-collapse: separate;
  border-spacing: 0;
}
table.statsGridContent {
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  min-width: 800px;
}
table.statsGridContent th,
table.statsGridContent td,
table.statsGridContent tr {
  text-align: center;
  padding: 0 20px;
  color: var(--black);
  height: 35px;
  font-size: 1rem;
}
table.statsGridContent .total {
  text-align: end;
}
table.statsGridColumnHeader tr td,
table.statsGridColumnHeader .border-top-row {
  text-align: left;
  padding: 0 20px;
  color: var(--black);
  height: 35px;
  font-size: 1rem;
}
table.statsGridColumnHeader .fees td {
  font-weight: bold;
}
table.statsGridColumnHeader .no-border td {
  border: none;
}
.statsGridColumnHeader tbody {
  margin: 0;
}

tr.padding-bottom-row td {
  padding-bottom: 15px;
}
tr.padding-top-row td {
  padding-top: 15px;
}
tr.odd-colours:nth-child(odd) {
  background-color: var(--grey-300);
}
tr.odd-colours:nth-child(odd) td {
  background-color: var(--grey-300);
}
tr.odd-colours:nth-child(even) {
  background-color: var(--white);
}

.scrollable-columns::-webkit-scrollbar-track {
  background: var(--grey-300);
}
.scrollable-columns::-webkit-scrollbar-thumb {
  background: var(--grey-200);
}

/* MOBILE PORTRAIT - GRID SCROLLING
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media (max-width: 768px) and (orientation: portrait) {
  #statsGrid {
    width: 100vw;
    overflow: hidden;
    display: block;
  }
  
  #statsGrid .table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
  }
  
  #statsGrid .table-wrapper table {
    width: auto;
  }
}
.scrollable-columns::-webkit-scrollbar-thumb:hover {
  background: var(--grey-100);
}

/* BASISBLOCK STYLES - Edit Phases
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#app {
  position: relative;
  z-index: 2;
}

.basisblock h2 {
  text-align: center;
  margin-bottom: 16px;
}

.basisblock {
  border: 2px solid var(--field-border);
  width: 32.5%;
  border-radius: 16px;
  align-items: center;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.basisblock button {
  border: 1px solid rgba(45, 40, 35, 0.15);
  width: auto;
}

.basisblock:last-child {
  width: 100%;
}

@media(max-width:1300px) {
  .basisblock {
    width: 32.3%;
  }
}

@media(max-width:1199px) {
  .basisblock {
    width: 32.1%;
  }
}

/* Tablet view - 1024px and below */
@media(max-width:1024px) {
  .basisblock {
    width: 48%;
    padding: 1.5rem !important;
  }

  .basisblock h2 {
    font-size: 1.25rem;
  }

  .basisblock button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem !important;
  }
}

/* Mobile view - 768px and below */
@media(max-width:768px) {
  .basisblock {
    width: 100%;
    padding: 1rem !important;
  }

  .basisblock h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .basisblock button {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem !important;
  }

  .project-title {
    flex-direction: row;
    align-items: flex-start !important;
  }

}

/* Small mobile - 480px and below */
@media(max-width:480px) {
  .basisblock {
    width: 100%;
    padding: 0.75rem !important;
    border-radius: 0.5rem;
  }

  .basisblock h2 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .basisblock button {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem !important;
  }

  #content.padding {
    padding: 0.5rem !important;
  }
}

.top-row {
  padding: 0;
  margin: 0;
}
.top-bottom-border td {
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}
.border-top-row td {
  border-top: 1px solid var(--black);
}
.border-bottom-row td {
  border-bottom: 1px solid var(--black);
}
.first-pro-row td,
.first-pro-row th {
  background-color: var(--light);
}

.bold-text {
  font-weight: bold;
}
.xbold-text {
  font-weight: bolder;
}

.project-link,
.team-name {
  display: inline-block;
  max-width: 20vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  text-decoration: none;
  color: inherit;
}
.project-link:hover {
  text-decoration: none;
  font-weight: bold;
}
.phase-names {
  max-width: fit-content;
}
.team-member-header {
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

/* Active state for expanded staff member rows */
/* .staff-member-row.active {
    background-color: #f0f8ff !important;
    border-left: 4px solid #007bff;
}

.staff-member-row.active .team-member-header {
    background-color: #e6f3ff !important;
    font-weight: bold;
} */

/* Active state for expanded project and phase rows */
/* .active-row {
    background-color: #f8f9fa !important;
    border-left: 2px solid #28a745;
}

/* Active state for cells within expanded rows */

/* Blank row styling for spacing between staff members */
.blank-row {
  height: 10px;
  background-color: transparent;
}

.blank-row td {
  background-color: transparent !important;
  border: none !important;
  padding: 5px 8px;
}
.project-names {
  max-width: fit-content;
  font-weight: bold;
  text-decoration: underline;
  margin-left: 16px;
}
.phase-names {
  margin-left: 32px;
}
.phase-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.project-group {
  margin-bottom: 12px;
}

/* Single table layout styles */
.single-table-wrapper {
  overflow-x: auto;
  position: relative;
}

.single-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.single-table th,
.single-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.single-table .sticky-column {
  position: sticky;
  left: 0;
  background-color: white;
  z-index: 10;
  min-width: 400px;
  max-width: 400px;
  width: 400px;
}

.single-table .data-column {
  min-width: 60px;
  text-align: center;
}

.single-table .header-row th {
  background-color: #f5f5f5;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 20;
}

.single-table .sticky-column.header-row {
  z-index: 30;
}

.project-total-row {
  background-color: #f8f8f8 !important;
  font-weight: bold;
}

.project-total-cell {
  background-color: #e8e8e8 !important;
  font-weight: bold;
}

.phase-name-row {
  padding-left: 16px;
  display: flex;
  align-items: center;
}

/* View toggle styles */
.percentageView {
  display: table-cell !important;
}

.hourlyView {
  display: none !important;
}

/* Row-level view toggle */
tr.percentageView {
  display: table-row !important;
}

tr.hourlyView {
  display: none !important;
}

/* When hourly view is active */
body.hourly-view .percentageView {
  display: none !important;
}

body.hourly-view .hourlyView {
  display: table-cell;
}

body.hourly-view tr.percentageView {
  display: none !important;
}

/* Hide hourly view rows by default */
tr.hourlyView {
  display: none !important;
}
tr.team-view.staff-member-row.active ~ tr.hourlyView.active-row {
  display: table-row !important;
}
tr.team-view.staff-member-row.active ~ tr.hourlyView td.active-cell {
  display: table-cell !important;
}
/* Show hourly view rows only when in hourly view AND parent section is expanded */
body.hourly-view tr.hourlyView {
  display: table-row;
}
body.hourly-view td.hourlyView {
  display: table-cell !important;
}
/* Hide percentage total row when in hourly view */
body.hourly-view tr.totalPercentView {
  display: none !important;
}
td.phase-names a.project-link.phase-link {
  font-size: 0.8rem;
}
#registerGrid tr.team-view,
#registerGrid tr.team-view td,
#registerGrid .team-view th {
  border: unset !important;
}
#registerGrid tr.header-row th {
  border: unset;
}
#registerGrid tr.project-row td a {
  border-bottom: 1px solid #000 !important;
  font-weight: 400;
}

#registerGrid tr.team-view.staff-member-row td {
  border-bottom: 2px solid #000 !important;
}

.project-name {
  position: relative;
}
.project-name button:hover {
  font-size: var(--text-xlarger);
  text-decoration: none;
  font-weight: bolder;
}

#column ul .toggle-container .toggle-button.on {
  --bg: var(--light);
  --colour: var(--dark);
  border: 2px var(--grey-300);
}
#column ul .toggle-container .toggle-button {
  --bg: transparent;
  --colour: var(--grey-200);
  --bg-hover: var(--light);
  --colour-hover: var(--dark);
}
#column ul .toggle-container .toggle-left {
  border-radius: var(--radius-extra) 0 0 var(--radius-extra);
  margin-right: 0;
}
#column ul .toggle-container .toggle-right {
  border-radius: 0 var(--radius-extra) var(--radius-extra) 0;
  margin-left: 0;
}

/* ADMIN PROJECT REGISTER GRID
------------------------------------------------------------------------------------------------------------------------------------------------------*/
.filter-bar {
  background: white;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-toggle-button {
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-size: 14px;
  background: #f8f8f8;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-toggle-button:hover {
  background-color: #f0f0f0;
  border-color: #c8c8c8;
}

.filter-toggle-button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.clear-filter-button {
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  /* font-size: 14px; */
  background: #f8f8f8;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-filter-button:hover {
  background-color: #f0f0f0;
  border-color: #c8c8c8;
}

.phases-toggle-container {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.toggle-button.toggle-button-expand {
  background-color: var(--white) !important;
  border: none !important;
  box-shadow: var(--shadow) !important;
  border-radius: 100%;
  padding: 4px 10px !important;
  margin: 0;
  width: 30px;
  height: 30px;
  font-size: 1rem !important;
}

.toggle-button-team.toggle-button-expand {
  background-color: var(--white) !important;
  border: none !important;
  box-shadow: var(--shadow) !important;
  border-radius: 100%;
  padding: 4px 10px !important;
  margin: 0;
  width: 30px;
  height: 30px;
  font-size: 1rem !important;
}

.phases-toggle-container {
  display: flex;
  margin-left: 1rem;
}

.filter-button {
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-size: 14px;
  background: #f8f8f8;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-button:hover {
  background-color: #f0f0f0;
  border-color: #c8c8c8;
}

.filter-button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.filter-button svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.filter-button.active svg {
  transform: rotate(180deg);
}

.timeframe-container {
  display: flex;
  align-items: center;
}

.timeframe-select {
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-size: 14px;
  background: #f8f8f8;
  color: #333333;
  min-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeframe-select:hover {
  background-color: #f0f0f0;
  border-color: #c8c8c8;
}

.timeframe-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-option:hover {
  background-color: #f8f8f8;
}

.filter-option input[type="checkbox"] {
  margin-right: 8px;
}

.filter-option span {
  font-size: 14px;
  color: #333333;
}

.adminfilters {
  display: flex;
  justify-content: space-between;
}
/* #utility nav .adminfilters #actions {
  margin: 0;
} */
.adminfilters-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 20px;
}
.adminfilters-bar #horizontalTimeframeSelect {
  margin: 0 !important;
  padding: 10px 12px !important;
  font-size: 12px;
}

.adminfilters-bar .filter-buttons {
  width: fit-content !important;
  margin: 0;
  justify-content: center;
  gap: 20px;
}

.clear-filter-button {
  margin-right: 0 !important;
  padding: 10px 12px !important;
  /* font-size: 12px !important; */
}
#horizontalToggleHide,
#horizontalToggleShow,
.filter-button {
  padding: 10px 12px !important;
  font-size: 12px !important;
}
@media (min-width: 1200px) {
  .adminfilters-bar .filter-buttons {
    gap: 6px;
  }
}
@media (min-width: 1600px) {
  .adminfilters-bar .filter-buttons {
    width: 80%;
  }
}
@media (min-width: 1700px) {
  .adminfilters-bar .filter-buttons {
    width: 76%;
  }
}
@media (min-width: 1800px) {
  .adminfilters-bar .filter-buttons {
    width: 71%;
  }
}
@media (min-width: 1900px) {
  .adminfilters-bar .filter-buttons {
    width: 67%;
  }
}

/* PROJECT INVOICES 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.invoice-table th,
.invoice-table td {
  vertical-align: middle;
}
.invoice-table td .button {
  margin-right: 0.75rem;
}

.invoice-panel {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.invoice-panels {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.invoice-panel input {
  width: auto;
  padding: 0 1rem;
  margin: 0.5rem 1rem;
}

.field-group.padding {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: auto;
}
.invoice-panel.pad.generate-invoice {
  width: 30%;
}

.project-img-cell {
  width: fit-content;
}
.mini-project-img {
  max-height: 100px;
  width: auto;
}

/* TIMESHEET
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#monthlyGrids .button.timesheet-button {
  --bg: var(--dark);
  --border: transparent;
  --colour: var(--white);
  --bg-hover: var(--dark-90);
  --border-hover: var(--border);
  --colour-hover: var(--colour);
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--colour);
  min-width: auto;
  text-align: center;
  border-radius: var(--button-radius);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: var(--pad);
  min-height: var(--button-height);
  margin: 0;
  padding: 0em 1em;
  font-family: var(--regular);
  font-size: var(--text-xsmall);
  line-height: 1;
  text-decoration: none !important;
  transition: all 0.1s ease-out;
  min-width: fit-content;
}
#monthlyGrids .button.timesheet-button.dark {
  --bg: var(--dark);
  --colour: var(--grey-300);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
#monthlyGrids .button.timesheet-button.light {
  --bg: var(--light);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
#monthlyGrids .button.timesheet-button.outline-medium {
  --bg: transparent;
  --border: var(--grey-200);
  --colour: var(--dark);
  --bg-hover: var(--dark);
  --border-hover: var(--dark);
  --colour-hover: var(--white);
}
#monthlyGrids .button.timesheet-button.green {
  --bg: var(--green-50);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
#monthlyGrids .button.timesheet-button.orange {
  --bg: var(--orange-10);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
#monthlyGrids .button.timesheet-button.blue {
  --bg: var(--blue-25);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}
#monthlyGrids .button.timesheet-button.red {
  --bg: var(--red-25);
  --colour: var(--dark);
  --bg-hover: var(--black);
  --colour-hover: var(--white);
}

/*#monthlyGrids span { display: flex; align-items: center; margin: 10px 0;} */

.weekly-section {
  padding: var(--padding-x3);
}
.weekly-section h2 {
  padding: var(--padding);
}

.timesheet-div {
  border-radius: var(--field-radius);
}

.ag-cell-edit-input {
  width: 100%;
  height: 100%;
  padding: 4px;
}
.ag-cell-edit-wrapper select {
  max-height: 200px;
  overflow-y: auto;
}
.ag-cell-edit-wrapper select option {
  padding: 8px;
}

/* TIMESHEET XERO MAPPING
------------------------------------------------------------------------------------------------------------------------------------------------------*/

.project-select,
.staff-select {
  max-width: calc(100% - 40px);
}

.select-mapping-wrapper .select-mapping-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
}
.select-mapping-wrapper .select-mapping-div .sync-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--grey-100);
  font-weight: 200;
  cursor: pointer;
  text-align: center;
  position: relative;
  gap: 0.5rem;
}
.select-mapping-wrapper .select-mapping-div .sync-label::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.select-mapping-wrapper .select-mapping-div .sync-label::after {
  content: "";
  position: absolute;
  top: 25%;
  left: 50%;
  width: 12px;
  height: 6px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0;
  pointer-events: none;
}
.select-mapping-wrapper .select-mapping-div input[type="checkbox"] {
  display: none;
}
.select-mapping-wrapper
  .select-mapping-div
  input[type="checkbox"]:checked
  + .sync-label::before {
  background-color: rgb(var(--greenRGB), 0.5);
  border-color: rgb(var(--greenRGB), 0.5);
}
.select-mapping-wrapper
  .select-mapping-div
  input[type="checkbox"]:checked
  + .sync-label::after {
  opacity: 1;
}

.select-staff-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.5rem 1rem;
}
.select-project-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.5rem 1rem;
}

.select-project-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-sizing: border-box;
  box-shadow: var(--shadow);
  padding: var(--padding-x2);
}

/* ANALYTICS CHARTS 
------------------------------------------------------------------------------------------------------------------------------------------------------*/
.google-visualization-tooltip {
  pointer-events: none;
}
.chart {
  width: 100%;
  height: 25vh;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.chart-div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2rem;
  padding: 2rem;
}
.chart-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  box-shadow: 0px 4px 4px var(--black-10);
  border-radius: var(--radius);
}
.chart-container:hover {
  box-shadow: 0px 6px 4px var(--black-20);
  cursor: pointer;
}

#disciplineChart,
#disciplineByFeeChart,
#disciplineByProfitChart,
#costsChart,
#feesChart,
#profitChart,
#typologyChart,
#typologyByFeeChart,
#typologyByProfitChart,
#regionChart,
#regionByFeeChart,
#regionByProfitChart,
#projectByPhaseChart,
#phaseByFeeChart,
#phaseByProfitChart,
#originChart,
#directorChart,
#leaderChart {
  width: 90%;
  height: 90%;
  margin: 0 auto;
}

.chart-container-modal {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.modal-chart-div div svg {
  width: 100%;
  height: 100%;
}
.modal {
  position: fixed;
  z-index: 951;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background: white;
  margin: 10rem auto;
  padding: 20px;
  width: auto;
  min-width: 450px;
  text-align: center;
  position: relative;
  box-sizing: var(--shadow);
  border-radius: var(--radius);
}

.close-button {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ACCOUNTS PAGE 
------------------------------------------------------------------------------------------------------------------------------------------------------*/
.account-container {
  max-width: 800px;
}

.login-email-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.login-email-container button {
  margin: auto 2rem;
}
.login-email-container input {
  margin: auto 0;
}

.login-pass-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.login-pass-container button {
  margin: 1rem 0;
}

.mfa-container button {
  margin: 0 2rem;
}

.cashflow-preview img {
  max-width: 200px;
}
div#monthFilterContainer {
  align-items: center;
}
.ag-row-pinned {
  font-weight: bold !important;
}

.panel,
#content,
.ag-theme-alpine,
.ag-root-wrapper,
.ag-root {
  overflow: visible !important;
}

.ml-auto {
  margin-left: auto;
}

.app {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100vh;
}

.sidebar {
  background: var(--white);
  border-right: 1px solid var(--grey-200);
  padding: 14px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 0;
}
.header .button {
  margin-bottom: 0px;
}

.title {
  font-weight: 700;
  color: var(--dark);
}

.controls {
  display: grid;
  gap: 10px;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.control {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 10px;
}

.control label {
  display: block;
  font-size: 12px;
  color: var(--grey-200);
  margin-bottom: 6px;
}

.sep {
  height: 1px;
  background: var(--grey-200);
  margin: 6px 0;
}

.list {
  overflow: auto;
  padding: 0 6px 12px;
}

.item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.thumb {
  width: 100%;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.meta {
  display: grid;
  gap: 4px;
}

.name {
  font-weight: 600;
  color: var(--dark);
}

.dim {
  color: var(--grey-200);
  font-size: 12px;
  line-height: 1.2;
}

#map {
  width: 100%;
  height: 100%;
}

.detail-view {
  display: none;
  flex-direction: column;
  height: 100%;
}

.detail-view.active {
  display: flex;
}

.back-btn {
  background: none;
  border: none;
  color: var(--dark);
  font-size: 14px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
}

.detail-image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 12px;
}
.detail-info {
  font-size: 14px;
  color: var(--grey-200);
}

.popup {
  background: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.project-container {
  flex-direction: column;
}
aside.project-filter-column {
  width: 100% !important;
}
ul.project-filter-list {
  width: 100%;
  max-width: 100%;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#column details summary {
  background: rgb(242 241 240);
  padding: 10px 1.1em;
  margin: 0 5px;
  border-radius: 66px;
}
aside.project-filter-column {
  position: relative;
  top: unset !important;
  min-height: 110px;
  max-height: unset;
}

/* Horizontal Filter Bar Styles */
.filter-bar {
  background: white;
  padding: 1rem 0;
  margin-bottom: 1rem;
  width: 100%;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  width: 100%;
  justify-content: center;
}

.filter-buttons select {
  margin-bottom: 0;
}

.filter-toggle-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 30px;
  background: #f9fafb;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-toggle-button.active {
  background: var(--grey-300);
  color: #000;
  border-color: var(--grey-300);
  opacity: 1;
}

.clear-filter-button {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  /* font-size: 0.875rem; */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-right: 1.5rem;
}

.clear-filter-button:hover {
  color: #374151;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: 30px;
  background: var(--grey-300);
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  opacity: 0.5;
}

.filter-button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.filter-button.active {
  background: var(--grey-300);
  color: #000;
  border-color: var(--grey-300);
  opacity: 1;
}

.filter-button .chevron {
  transition: transform 0.2s ease;
}

.filter-dropdown {
  background: #f5f5f5;
  border: 1px solid #f5f5f5;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  width: auto;
  max-width: max-content;
  margin: 0.5rem auto;
}

.filter-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* gap: 0.5rem; */
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
}
label.filter-option {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  text-transform: capitalize;
  margin-bottom: 0px;
}

.filter-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: white;
  cursor: pointer;
}

.filter-option input[type="checkbox"]:checked {
  background: #374151;
  border-color: #374151;
}

.filter-option span {
  user-select: none;
}

.timesheet-phase-section-block {
  padding: 0 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  box-shadow: var(--shadow);
}
.timesheet-phase-section-block button {
  margin-bottom: 0.5rem;
}
.phase-block-item {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}
.studio-settings-tabs {
  width: 100%;
  justify-content: center;
}
.phase-modal-block {
  max-width: 450px;
  text-align: left;
}
.admin-task-modal-block {
  max-width: 450px;
  text-align: left;
}
button.button.outline {
  border-width: 1px;
  outline: unset;
}
@media (max-width: 1600px) {
  .tab-title {
    font-size: 1em;
  }
  .tab-subtitle {
    font-size: 0.875em;
  }
  .studio-settings-tabs .tab {
    max-width: 6.5rem;
    max-height: 6rem;
  }
}

.adminfilters-bar {
  position: relative;
}
.adminfilters-bar .filter-section {
  width: 100%;
  display: flex;
  max-width: initial;
}
.consultFilters-bar {
  justify-content: space-between;
}
.adminfilters-bar .filter-section {
  justify-content: center !important;
  width: 100%;
}
.projectFilters-bar #horizontalTimeframeSelect,
.adminfilters-bar #horizontalTimeframeSelect {
  margin: 0 !important;
}
.projectFilters-bar .filter-buttons,
.adminfilters-bar .filter-buttons {
  width: 100%;
  margin: 0;
  justify-content: center;
  gap: 15px;
}
.teamsFilters-bar #toggleAllFilters {
  height: max-content;
}
.teamsFilters-bar .filter-buttons {
  align-items: center;
  justify-content: unset;
}
.teamsFilters-bar .filter-button {
  padding: 10px 12px !important;
  font-size: 12px !important;
}
.teamsFilters-bar .timeframe-container,
.teamsFilters-bar .phases-toggle-container {
  margin: 0 !important;
}
/* Responsive adjustments */
@media (max-width: 1500px) {
  .teamsFilters-bar .filter-buttons,
  .projectFilters-bar .filter-buttons,
  .adminfilters-bar .filter-buttons {
    justify-content: unset;
    gap: 7px;
  }
  .teamsFilters-bar .filter-buttons {
    gap: 5px;
  }
}
@media (max-width: 1400px) {
  #subnav.projectFilters a,
  #subnav.adminfilters a {
    font-size: 12px;
  }
  #utility nav #actions .sortSelect {
    font-size: 12px;
  }
  #backArrow {
    margin: 0;
  }
  .teamsFilters-bar .filter-toggle-button,
  .teamsFilters-bar #horizontalTimeframeSelect,
  .adminfilters-bar #horizontalTimeframeSelect,
  .adminfilters-bar #horizontalTimeframeSelect {
    margin: 0 !important;
    padding: 10px 12px !important;
    font-size: 12px;
  }

  .clear-filter-button {
    margin-right: 0 !important;
    padding: 10px 12px !important;
    /* font-size: 14px; */
  }
  #horizontalToggleHide,
  #horizontalToggleShow,
  .filter-button {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 1199px) {
  .projectFilters-bar .filter-buttons,
  .adminfilters-bar .filter-buttons {
    gap: 6px;
  }
}
@media (max-width: 768px) {
  .filter-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }

  .filter-button {
    justify-content: center;
  }

  .filter-options {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* IN PROGRESS
------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* Top Bar */
.nav-links {
  display: none !important; /* hidden by default */
}

@media (min-width: 900px) {
  .nav-links {
    display: flex !important;
  }
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem; /* px-4 py-3 */
  border-bottom: 4px solid transparent;
  text-decoration: none;
}

.nav-link:hover {
  border-bottom-color: #f2f1f0;
}

.nav-link.active {
  border-bottom-color: #2d2823;
}

.hamburger {
  display: none !important; /* hidden by default */
  border-style: solid;
  border-width: 1px;
  border-color: #c8c8c8;
  border-radius: 5px;
}

@media (max-width: 899px) {
  .hamburger {
    display: flex !important;
  }
}

/* Avatar */
.avatar-initials {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #914438;
  color: white;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.filter-category {
  display: block;
  padding: 0.75rem 1rem;
  color: #2D2823;
  cursor: pointer;
}

.filter-category:hover {
  background-color: #F2F1F0;
}

.filter-category.active {
  border-left-width: 4px;
  border-left-style: solid;
  background-color: #F2F1F0;
  border-left-color: #2D2823;
}

/* Filter */
label.filter-item {
  font-family: var(--regular);
  font-weight: normal;
  margin: 0;
}

.filter-item {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  cursor: pointer;
  gap: 0.5rem;
  color: #374151;
  transition: background-color 0.2s ease;
  width: 100%;
}

.filter-item:hover {
  background-color: #f2f1f0;
}

.filter-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: white;
  cursor: pointer;
  margin-right: 8px;
}

.filter-item span {
  font-size: 14px;
  font-weight: normal;
  color: #333333;
  user-select: none;
  text-transform: none;
}

/* TEAM MEMBER MODAL
------------------------------------------------------------------------------------------------------------------------------------------------------*/
.team-member-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.team-member-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 1400px;
  width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.3s ease-out;
}

/* Modal label styling */
#memberModal .wrap {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dark-70);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  margin-bottom: 0.125rem;
  height: auto;
}

#memberModal .text-field {
  margin-left: 0.5rem;
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
}

/* Section headers in modal */
#memberModal h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-80);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

/* Improved spacing between sections */
#memberModal .space-y-3 > * + * {
  margin-top: 0.75rem;
}

#memberModal .space-y-5 > * + * {
  margin-top: 1.25rem;
}

/* Better scrollable areas */
#memberModal .overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f3f4f6;
}

#memberModal .overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

#memberModal .overflow-y-auto::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

#memberModal .overflow-y-auto::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

#memberModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Profile image styling */
#memberModal img.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 3px solid #f3f4f6;
}

/* Background for text areas */
#memberModal .bg-gray-50 {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}

/* Enhanced badge styling */
#memberModal .rounded-md {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.team-member-modal .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.team-member-modal .close-button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.team-member-modal .close-button svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

/* Team card cursor pointer */
#content .team a.card {
  cursor: pointer;
}

#content .team a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Modal badge styles */
.role-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
}

.role-badge.project-leader {
  background-color: #dbeafe;
  color: #1e40af;
}

.role-badge.director {
  background-color: #f3e8ff;
  color: #7c3aed;
}

/* Status indicators in modal */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.status-indicator.active {
  color: #059669;
}

.status-indicator.inactive {
  color: #6b7280;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.active {
  background-color: #10b981;
}

.status-dot.inactive {
  background-color: #9ca3af;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* BUILD FEE PANELS RESPONSIVE STYLES
------------------------------------------------------------------------------------------------------------------------------------------------------*/

/* Tablet view - 1024px and below */
@media(max-width:1024px) {
  .flex.gap-x-8.justify-between {
    gap: 1rem !important;
  }

  .flex.w-1\/2.bg-white {
    width: 60% !important;
  }

  .w-1\/4.bg-white {
    width: 35% !important;
  }

  .w-1\/5.rounded-t-lg.bg-white {
    width: 35% !important;
  }

  #popupBuildFee {
    padding: 1rem !important;
  }

  #popupBuildFee .relative.bg-white {
    padding: 1.5rem !important;
  }
}

/* Mobile view - 768px and below */
@media(max-width:768px) {
  .flex.gap-x-8.justify-between {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .flex.w-1\/2.bg-white {
    width: 100% !important;
    padding: 1rem !important;
  }

  .w-1\/4.bg-white {
    width: 100% !important;
    padding: 1rem !important;
  }

  .w-1\/5.rounded-t-lg.bg-white {
    width: 100% !important;
    padding: 1rem !important;
  }

  .w-\[45\%\].flex.flex-col {
    width: 100% !important;
    margin-bottom: 1rem;
  }

  .w-\[5\%\].text-center {
    display: none;
  }

  .w-auto.min-w-\[30\%\].max-w-\[45\%\] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #popupBuildFee {
    padding: 0.5rem !important;
    py: 1rem !important;
  }

  #popupBuildFee .relative.bg-white {
    width: 100% !important;
    padding: 1rem !important;
  }

  #popupBuildFee .absolute.top-\[-40px\] {
    top: 0.5rem !important;
  }

  .flex.flex-row.justify-between.items-center.bg-white.p-2 {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .flex.flex-row.justify-between.items-center.bg-white.p-2 .flex-1 {
    margin-bottom: 0.5rem;
  }

  .ml-4.rounded.border-2.border-primary {
    width: 100%;
    margin-left: 0 !important;
  }
}

/* Small mobile - 480px and below */
@media(max-width:480px) {
  .flex.gap-x-8.justify-between {
    gap: 0.5rem !important;
  }

  .flex.w-1\/2.bg-white {
    padding: 0.75rem !important;
  }

  .w-1\/4.bg-white {
    padding: 0.75rem !important;
  }

  .w-1\/5.rounded-t-lg.bg-white {
    padding: 0.75rem !important;
  }

  #popupBuildFee {
    padding: 0.25rem !important;
  }

  #popupBuildFee .relative.bg-white {
    padding: 0.75rem !important;
  }

  .flex.justify-center.items-center.bg-white.p-6 {
    padding: 1rem !important;
    flex-direction: column;
    text-align: center;
  }

  .flex.justify-center.items-center.bg-white.p-6 h2 {
    font-size: 1rem;
  }

  .flex.flex-row.gap-x-4 {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  .relative.w-3\/5 {
    width: 100% !important;
  }

  .w-2\/3.relative {
    width: 100% !important;
  }

  button[type="button"] {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.75rem;
  }
}
