@font-face {
  font-family: "Roboto";
  src: url('/Roboto-Regular.ttf');
}



* {
    box-sizing: border-box;
    font-family: "Roboto Regular", sans-serif !important;
    font-size: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 28.8px;
}


:root {
/* Primary Colors - PBO theme */
--pbo-burnt-orange: #f15824;
--pbo-gold: #ffc20e;
--pbo-orange: #f8971d;
--pbo-grey: #6D6E70;

--pbo-primary-gradient: linear-gradient(270deg, var(--pbo-gold) 0%, var(--pbo-orange) 45%, var(--pbo-burnt-orange) 100%);

--pbo-gold-op: #ffc20e;
--pbo-orange-op: #f8971d;
--pbo-burnt-orange-op: #f15824;
--pbo-primary-gradient-opaque: linear-gradient(270deg, var(--pbo-gold-op) 0%, var(--pbo-orange-op) 45%, var(--pbo-burnt-orange-op) 100%);

--pbo-primary-gradient-transparent: linear-gradient(270deg, #ffc20e00 0%, #f8971d36 45%, #f1582400 100%);
--pbo-primary-gradient-transparent-alt: linear-gradient(278deg, #ffc20e8c 39%, #f8971d00 95%, #f1582482 104%);


--pbo-pale-blue: #C2DEEA; 
--pbo-blue-grey: #8996A0;
--pbo-blue: #0065BD;
--pbo-indigo: #002395;


--pbo-purple: #5541c3; 
--pbo-yellow: #ffd031;

/* Neutrals */
--pbo-grey-light: #ffffff; /* Pure White */
--pbo-grey-dark: #acafb3; /* Slightly darker gray for borders */

/* Backgrounds */
--pbo-background: #ffffff; /* Pure White - Primary background */
--pbo-background-alt: #f8f9fa; /* Light Gray - Secondary backgrounds */

/* Other */
--pbo-indigo-light: #7df599; /* Lighter variation */
--pbo-indigo-dark: #ffffff00; /* Darker variation */


--list-item-height: 120px; /* Height of each list item */
--max-items-per-page: 6; /* Maximum number of items per page */

}


p, button {
  font-size: 16px !important;
}

body {
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}













/* Structure */
.content-main {
    display: grid;
    grid-template-columns: calc(20px + 8vw) auto calc(20px + 8vw);
    grid-template-areas: "border-left main border-right";
}

@media screen and (max-width: 768px) {
.content-main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "main";
}
}

.content-main > div {
    grid-area: main;
}

.standard-link {
  font-size: 1em;
  text-decoration: underline;
}


.info-wrapper {
    padding: 0 10vw 0 10vw;
    margin-top: 4rem !important;
}


.site-h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.site-title {
    font-size: 1.3em!important;
    line-height: 1.3em!important;

    text-decoration: underline;
    text-underline-offset: 1rem;
    font-weight: bold;
    margin-top: 7vw !important;

}

.site-title:not(.form-title) {
    padding: 0 10vw 0 10vw;

}

.anchor-as-button:not(.active-filter) + .clear-filter {
    visibility: hidden;
}

.container {
    gap: 1rem;
    flex-wrap: nowrap !important;
}


.col-lg-6 {
    flex: auto;
}


.footer {
    bottom: 0;
    /* width: 100%; */
    margin-top: auto;
}

.mainContent {
  display: grid;
  grid-template-columns: repeat(14, 1fr); /* Creates 14 equal-width columns */
  grid-auto-rows: auto; /* Automatically adjusts row height based on content */
  gap: 16px; /* Adds spacing between columns and rows */
  width: 100%; /* Makes the container full width */
  margin: 0 auto; /* Center the container */
}

.page-copy {
    grid-column: 2/14;
}



/* Generic styling */
.bold-span {
    font-weight: bold;
}

.half-opacity {
  opacity: 0.3 !important;
}

.secondary-color {
    background-color: var(--pbo-orange);
}

.tertiary-color {
  background-color: var(--pbo-purple);
  color: white;
}

.pbo-badge {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.5rem;
    width: 6rem;
    min-width: fit-content;
    height: fit-content;
}

.pbo-toggle {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--pbo-yellow-dark);
    padding: 0.3rem 0.1rem;
}
.pbo-toggle button {
    border: none;
    background-color: transparent;
}

.highlight {
  background-color: rgba(255, 255, 0, 0.664); /* Light yellow background */
  color: #333; /* Dark text for contrast */
  font-weight: bold; /* Make the text bold */
  padding: 0.2em 0.4em; /* Add some padding for spacing around the text */
  border-radius: 4px; /* Optional: Rounded edges */
  display: inline; /* Ensure it applies only to the text */
}


.a.anchor-inherit-styles.home-button, input#InsertButton, input#UpdateButton {
    background: #003b67;
    border-radius: 4px;
    border: none;
    border-radius: 50em;
    display: inline-block;
    font-size: 1.1em;
    height: auto;
    line-height: normal;
    line-height: 1;
    margin-right: 1em;
    min-width: 160px;
    overflow: hidden;
    padding: .5em 1em;
    position: relative;
    text-align: center;
    text-decoration: none;
    z-index: 1;
    color: white;
}

.draft-btn:hover {
  font-weight: bold;
}

input#InsertButton, input#UpdateButton {

    padding: 8px 16px !important;
}

#EntityFormPanel tbody {
  margin-bottom: 2rem;
}

#EntityFormPanel .actions {
    display: flex;
    justify-content: flex-end !important;
}

#EntityFormPanel .actions input {
  flex-grow: 0;
}

.pbo-blue-button.home-button, input#InsertButton, input#UpdateButton {
  padding: 4px 8px;
  font-weight: 400;
}

.pbo-blue-button.home-button:hover, input#InsertButton:hover, input#UpdateButton:hover, .save-draft-button:hover {
  font-weight: bold;
}

/* Content block */
.content-block {
    background: var(--pbo-background);
    border-radius: 1em;
    box-shadow: 0 0 1em 0 #d3d3d3;
    padding: 2em;
    width: var(--relative-width, 100%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    margin: 2rem 0rem;
    grid-area: "main";
    overflow: hidden;
}

.content-block.overlay {
  max-width: 1400px !important;
  padding-left: 0em;
}

input::placeholder, textarea::placeholder {
    color: gray !important;
}


.content-block .pbo-logo {
    position: absolute;
    top: 5%;
    right: 5%;
    filter: brightness(100);
    width: 50px;
}

/* todo- replace colours with vars */
.content-container a.anchor-inherit-styles {
    background-color: #003b67;
    color: #fff;
    border: none;
    border-radius: 50em;
    display: inline-block;
    font-size: 1.1em;
    height: auto;
    line-height: normal;
    line-height: 1;
    margin-right: 1em;
    min-width: 160px;
    overflow: hidden;
    padding: .5em 1em;
    position: relative;
    text-align: center;
    text-decoration: none;
    z-index: 1;
}

/* component generic */

.component-info {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.hidden {
  visibility: hidden !important;
}

.extra-hidden, .extra-hidden * {
  display: none !important;
}

.jump {
  animation: jump 0.2s ease;
}

/* buttons and inputs */

input {
    border: 1px solid #666;
    border-radius: 2em;
    color: #333;
    flex-grow: 1;
    padding: .5em 1.5em;
}

button:not([title="Select month"]), .anchor-as-button:not([title="Select month"]) {
    background: none;
    border: none;
    box-sizing: content-box;
    padding: .5em 1.5em;
    transition: 0.1s;
    text-align: left;
}

button[title="Toggle navigation"] {
  background: black;
}



.portal-action-button {
    /* background: var(--pbo-pale-blue); */
    padding: 5px;
    color: black;
    /* border-radius: 4px; */
}

.anchor-as-button:hover, .pbo-blue-button.anchor-as-button:hover {
    font-weight: bold;
    cursor: pointer;
    text-decoration: none !important;
}

.anchor-as-button-disabled {
    background-color: #F3F2F1;
    color: #A19F9D;
    pointer-events: none;
    border: 2px;
}




/* Contact us */

.title-block {
    align-items: center;
    align-self: flex-start;
    border-radius: 0 2em 2em 0;
    color: #fff;
    display: flex;
    flex-grow: 1;
    height: -webkit-fit-content;
    height: fit-content;
    max-width: 20em;
    min-width: 12em;
    position: relative;
}

.title-block svg {
  transform: scale(0.5);
}

.contact-block {
    display: flex;
    flex-basis: 60%;
    flex-grow: 5;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: space-around;
}

.address-link {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: .6em;
    text-align: left;
}

.contact-block-item {
      align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
}

.contact-wrapper {
  padding: 0 10vw 0 10vw;
  position: relative;
  z-index: -5;
}

.no-pad {
  padding: 0 !important;
}



/* video component */
.video-wrapper {
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
    position: relative;
    width: 100%;
}

button.video-play-button:hover {
  transform: translateY(-50%) rotate(90deg) scale(1.2);
}

.video-mask:hover {
    filter: brightness(1.05)
}

.video-mask {
    background-size: 100%!important;
    cursor: pointer;
    height: 100%;
    padding-top: 71.25%;
    position: absolute;
    right: 0;
    top: 0;
    transform: scale(1);
    transition: opacity .3s ease-in-out, filter .2s ease;
    width: 100%;
}

.video-play-button {
        align-items: center;
    background: transparent;
    border: none!important;
    cursor: pointer;
    display: flex;
    height: 10%;
    justify-content: center;
    position: absolute;
    right: 45%;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transition: opacity .2s,transform .2s;
    width: 10%;
    z-index: 9999;
}

.video-mask::before {
    background: linear-gradient(180deg,rgba(236,101,12,.839) 5%,rgba(253,195,0,.69) 32%,hsla(0,0%,100%,0) 112%,rgba(236,101,12,0) 0)!important;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
}

video {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    font-family: "Font Awesome 6 Free" !important;
}

.logo-svg {
    width: 2rem;
}

.logo-svg.form-logo-svg {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 4rem;
}


/* Home page videos */
.home-page-videos-component-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10vw 0 10vw;
}


/* Portal Submissions */
.list-swap-wrapper {
  min-height: 800px;
}

#list-swap-wrapper::after {
    content: "Refreshing...";
    top: 1rem;
    right: 1rem;
    position: absolute;
    color: #8080807a;
    font-size: 14px;
    animation: fadeOut 2s forwards;
    opacity: 1;
}

.list-block {
  position: relative;
  min-height: 800px;
}

.list-heading, .section-title h3 {
    background: var(--pbo-primary-gradient);
    border-radius: 0 1.2em 1.2em 0;
    color: #fff;
    display: inline-block;
    font-size: 1.2em;
    font-weight: 600;
    min-width: 25em;
    padding: .5em 4em .5em 1em;
    text-shadow: 0 0 6px #666;
    align-self: flex-start;
}
.section-title h3 {
  width: 50%;
  font-size: 1em;
}
.section-title {
  overflow: hidden;
}

.contact-block-item a {
    margin-left: 10px;
}


.list-row-container-name-container {
    display: flex;
    justify-content: space-between;
    background: var(--pbo-primary-gradient-transparent);
}

.toolbar-module {
    background: linear-gradient(0,var(--pbo-grey) -70%,white);
    border-bottom: 1px solid #aaa;
    border-top: 1px solid #aaa;
    display: flex; /* Use flexbox for horizontal layout */
    justify-content: space-between; /* Evenly distribute items across the full width */
    align-items: center; /* Vertically center items */
    width: 100%; /* Make the toolbar span the full width of the parent container */
    padding: 0px 20px; /* Add some padding around the toolbar */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    gap: 20px; /* Add consistent spacing between groups */
    flex-wrap: wrap;
    height: 30px;
}

.toolbar-module-button-container {
    background: none;
    border: none;
    box-sizing: content-box;
    position: relative;
    padding: 5px 0px;
}

.toolbar-module-button-container.create-record {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-controls-container-search-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.list-row-container-actions-container-banner:has(.submission-state-Active) {
    display: none;
}

.disabled-buttons-info {
    text-align: center;
    margin-bottom: 4px;
    background-color: lightgray;
    border-radius: 4px;
    padding: 3px;
    font-size: 12px;
}

.search-input {
  max-width: 250px;
}

div#list-controls-sort-select {
    display: flex;
    /* flex-direction: column; */
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

div#list-controls-sort-select a, div#list-controls-sort-select label {
  padding: 0;
  text-wrap-mode: nowrap;
}

div#test-list-wrapper {
}

.toolbar-module-button-container button {
    background: none;
    border: none;
    box-sizing: content-box;
    padding: .5em 1.5em;
    transition: 0.1s;
    height: 30px;
}

.toolbar-module-button-container button:not(:disabled):hover {
    font-weight: bold;
}

.search-container {
  display: block;
}

.list-controls-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 0rem 4rem;
    /* grid-gap: 6rem; */
}

.list-controls-container-sorting-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    gap: 20px;
}

.list-controls-container-sorting-container-subcontainer {
    display: flex;
    flex-direction: column;
}

/* Flex Container to Emulate Table */
.list-container, .test-list-wrapper {
  display: flex;
  flex-direction: column; /* Stack rows vertically */
  width: 100%;
  font-family: Arial, sans-serif;
  margin: 20px 0;
  gap: 1rem;
  padding: 0em 2em;
}

.list-container {
    padding-bottom: 2rem;
  min-height: calc(var(--list-item-height) * var(--max-items-per-page) + 128px);

}

.list-row {
    display: flex;
    flex-wrap: wrap;
    box-shadow: 2px 2px 2px var(--pbo-grey-dark);
    border-radius: 4px;
    overflow: hidden;
    min-height: var(--list-item-height);
    transition: 0.1s;
}

.list-row-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 100%;
}

.list-row-container-column-container-wrapper {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    background: var(--pbo-background-alt);
}

.list-header {
  background-color: var(--pbo-indigo); 
  color: #fff;
  font-weight: bold;
  display:none;
}

.list-row-container-column-container {
    display: flex;
    background: var(--pbo-background-alt);
}

.list-row.list-header .list-cell {
    color: white;
}

.list-row:last-child {
  border-bottom: none; /* Remove border for the last row */
}

/* Columns/Cells Inside Rows */
.list-cell {
  flex: 1; /* Equal width for all cells */
  padding: 10px;
  text-align: left;
}

.list-cell h6 {
    font-weight: 600;
}

.list-cell-header {
    display: flex;
    justify-content: space-between;
    padding-right: 1rem;
    align-items: center;
}

.list-cell-header {
    display: flex;
    justify-content: space-between;
    padding-right: 1rem;
}

.list-cell:last-child {
  border-right: none; /* Remove border for the last column */
}

/* Alternate Row Colors */
.list-row:nth-child(odd):not(:first-child) {
  background-color: #f9f9f9; /* Light gray for odd rows */
}

.list-row:nth-child(even) {
  background-color: var(--pbo-grey-light); /* White for even rows */
}

.list-row:hover {
    opacity: 1;
    box-shadow: 2px 2px 2px #5f5f5f !important;
}

.list-row-container-actions-container {
    grid-template-columns: 3fr 1fr;
}

.list-row-container-actions-container > *:not([class*="submission-state-Active"]):only-of-type {
  grid-column: 1 / -1; /* Span across both columns */
}

/* When both children are visible, let each occupy one column */
.list-row-container-actions-container > *:nth-of-type(1):not([class*="submission-state-Active"]) {
  grid-column: span 2; /* Occupy one column */
}

.list-row-container-actions-container > *:nth-of-type(2):not([class*="submission-state-Active"]) {
  grid-column: span 2; /* Occupy another column */
}

.list-row-container-actions-container-buttons-container-subcontainer {
  display: flex;
  flex-direction: column;
}

.list-row-container-actions-container-buttons-container-subcontainer-2 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 3px;
}

button.anchor-as-button[disabled] {
    background-color: transparent;
    color: #A19F9D;
    pointer-events: none;
    border: 2px;
    opacity: 0.5;
}

.active-filter {
  font-weight: bold;
}

.filter-container {
  display: flex;
  align-items: center;
}

.filter-container label {
  white-space: nowrap;
}

.clear-filter {
  padding-left: 5px !important;
}

.content-block:has(div#list-swap-wrapper) {
    padding: 2em 0;
}

.list-row-container-actions-container-banner {
    background-color: var(--pbo-blue-grey);
    padding: 0 1rem;
    border-radius: 0px 0px 0px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.list-row-container-actions-container-banner p {
    color: white;
    text-align: center;
}

.list-row-container-actions-container-buttons-container {
    gap: 0.5rem;
    padding: 0 0 1rem 0;
    justify-content: space-around;
    align-items: flex-end;
}


.pagination-container {
    display: flex;
    flex-wrap:wrap;
}

@media screen and (max-width: 1000px) {
  .list-row-container-actions-container-buttons-container, .list-row-container-column-container {
    flex-direction: column;
    }
  .home-page-videos-component-wrapper {
    flex-direction: column;
  }
}

.list-pagination-container button:hover {
    font-weight: bold;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .list-container {
    font-size: 14px; /* Slightly smaller font size */
  }

  .list-cell {
    padding: 8px; /* Reduce padding for smaller devices */
  }

  .list-row {
    flex-direction: column; /* Stack cells vertically */
  }

  .list-cell {
    border-right: none; /* Remove borders to simplify layout */
    border-bottom: 1px solid #ddd; /* Separate cells vertically */
  }

  .list-cell:last-child {
    border-bottom: none; /* Remove border for the last cell */
  }
  .list-row-container-name-container {
    flex-direction: column;
  }
  .list-row-container-column-container-wrapper {
    padding: 0.2rem 1rem;
  }
  .list-controls-container-sorting-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-block {
    border-radius: 0;
    max-width: 99vw;
  }
  .content-main > div {
    max-width: 100vw;
}
  .site-title {
    text-align: center;
    text-decoration: none !important;
  }
  ul.pagination-container.list-pagination-container button {
    font-size: 24px;
  }
}

@media screen and (min-width: 1800px) {
  .content-main {
    grid-template-columns: auto 1600px auto;
}

}

/* Heading for Views */
h3 {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin: 10px 0;
  color: #333; /* Dark gray */
}

/* Paragraph Styles */
p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 5px 0;
  color: #555; /* Medium gray */
}



/* mmmodal styles */
#test-htmx-target {
  position: absolute;
  top: 0;
  left: 0;
}
.portalaction-input {
  height: 180px;
  width: 100%;
  resize: none;
  padding: 8px !important;
  border-radius: 8px;
  box-shadow: 1px 1px var(--pbo-indigo);
}

textarea#comment-textbox:not(:invalid) + p {
    color: green !important;
}

.mmmodal {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    visibility: hidden;
    /* opacity: 0; */
    transition: all 0.3s ease;
}

.mmmodal .mmmodal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    left: 0;
    position: fixed;
}

.mmmodal-header-details {
  display: flex;
  flex-direction: column;
}

.portalaction-input {
}

#textarea-validation-info {
    font-size: 14px;
    bottom: 5px;
    color: red;
    margin-left: 5px;
    margin: 0 0 0 5px;
}

.mmmodal .mmmodal-content {
    background: #fff;
    border-radius: 5px;
    max-width: 600px;
    position: fixed;
    top: -100%;
    transition: all 0.6s ease;
    z-index: 10000;
    background: #fff;
    border-radius: 5px;
    position: relative;
    max-width: 600px;
    width: clamp(300px, 680px, 800px);
    max-height: 90vh;
    overflow: auto;
    z-index: 10000;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* hides a rendering issue (matching by name not id causing duplicate links) */
a[href] + a[href] {
    display: none;
}

#loading-spinner-container, #submit-button, #submit-action-success-info {
  min-width: 100px;
  transition: all 0.1s;
}

#submit-action-success-info {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

}

button#submit-button, .pbo-blue-button.home-button {
    text-align: center;
    background: var(--pbo-indigo);
    color: white;
    border-radius: 4px;
}

#loading-spinner {
  width: 40px; 
  height: 40px;
  border: 4px solid transparent;
  border-top: 4px solid var(--pbo-burnt-orange);
  border-radius: 50%; 
  animation: spin 1s linear infinite;

}

.mmmodal .mmmodal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 1.5rem;
  background: var(--pbo-primary-gradient-transparent-alt);
}


.mmmodal .mmmodal-header .close-mmmodal {
    font-size: 2rem !important;
    padding: 0;
    margin: 0;
    height: 30px;
    width: 30px;
    text-align: center;
    align-self: flex-start;
}

.mmmodal .mmmodal-header .close-mmmodal:hover {
  color: #000;
}

.mmmodal .mmmodal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mmmodal .mmmodal-footer {
    border-top: 1px solid #ccc;
    padding: 1rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

div#submit-action-failure-info {
    display: flex;
    align-items: center;
}

.mmmodal.visible {
  opacity: 1;
  visibility: visible;
}

.mmmodal.visible .mmmodal-content {
    top: 5%;
    width: clamp(300px, 680px, 800px);
    max-width: 98vw;
}



/* built-in forms */


/* Important! */
tr:has(#y365_saveasdraft) {
    display: none !important;
}



.file-cell .table-info {
  height: 40px !important;
  visibility: hidden !important;
}

.file-cell .table-info label {
  visibility: visible !important;
}


.crmEntityFormView, .entitylist, .mmmodal-content, .popover-content {
    background-color: #FFFFFF;
    color: #000000;
    border: none !important;
}

button#UploadButton {
    background: lightgray;
    border-radius: 4px;
}

button#UploadButton:hover {
    background: #323130;
}

table.section[data-name="supporting_documents"] {
    /* display: none !important; */
}

#y365_ongoing {
  display: grid;
  grid-template-areas: 
        "label input"
        "label2 input2";
  grid-template-columns: 50px 5px;
}

#y365_ongoing_0 {
  grid-area: input;
  width: fit-content !important;
  margin-left: 1rem;
}

label[for="y365_ongoing_0"] {
  grid-area: label;
}

#y365_ongoing_1 {
  grid-area: input2;
  width: fit-content !important;
  margin-left: 1rem;
}

label[for="y365_ongoing_1"] {
  grid-area: label2;
}

label.field-label[for="notescontrol"] {
    visibility: hidden;
}

.fa-file:before {
    content: "*" !important;
}




.entity-lookup .modal-header {
  background-color: var(--pbo-gold);
}

.entity-form input, .entity-form select, .entity-form textarea {
  max-width: 500px;
  width: clamp(200px, 400px, 400px) !important;
  max-width: 400px !important;
}

.entity-form textarea {
  min-height: clamp(80px, 120px, 160px) !important;
  resize: vertical;
}

.entity-form .input-group {
  justify-content: flex-start;
  gap: 1rem;
  display: flex;
  align-items: stretch !important;
}

.fa-magnifying-glass:before, .fa-search:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    height: auto;
    width: auto;
    display: block;
    color: black;
    height: 16px;
    width: 16px;
}

.fa-arrow-up:before {
    content: "" !important;
}

.fa-check:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
    height: auto;
    width: auto;
    display: block;
    color: black;
    height: 16px;
    width: 16px;
}

.fa-close:before, .fa-multiply:before, .fa-remove:before, .fa-times:before, .fa-xmark:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
  height: auto;
  width: auto;
  display: block;
  color: black;
  height: 16px;
  width: 16px;
}

 

span.fa:not(.icon-calendar):hover::before, button.launchentitylookup:hover span::before {
  filter: invert(1)
}

.fa-chevron-right:before {
  content: ">" !important;
}

/* time */
li.picker-switch.accordion-toggle {
    display: none;
}

.fa-chevron-left:before {
    content: "<" !important;

}

.fa-clock-four:before, .fa-clock:before {
  content: "" !important;
}

.input-group-addon, .input-group-addon.active {
  background-color: transparent !important;
}

.fa-calendar:before, .fa-calendar:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='6' x2='12' y2='12'/%3E%3Cline x1='12' y1='12' x2='16' y2='14'/%3E%3C/svg%3E") !important;
    height: auto;
    width: auto;
    display: block;
    color: black;
    height: 16px;
    width: 16px;
}

.datepicker tr {
    display: table !important;
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    margin-bottom: 1rem !important;
}

.bootstrap-datetimepicker-widget td:hover * {
    font-weight: bold;
}


tr[data-entity] {
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
}

.crmEntityFormView table.section, .crmEntityFormView table.section>tbody, .crmEntityFormView table.section>tbody>tr, .crmEntityFormView table.section>tbody>tr>td, .crmEntityFormView table.section>tbody>tr>th, .crmEntityFormView table.section>tfoot, .crmEntityFormView table.section>tfoot>tr, .crmEntityFormView table.section>tfoot>tr>td, .crmEntityFormView table.section>tfoot>tr>th, .crmEntityFormView table.section>thead, .crmEntityFormView table.section>thead>tr, .crmEntityFormView table.section>thead>tr>td, .crmEntityFormView table.section>thead>tr>th {
    display: block;
}

/* 
.entity-lookup .mmmodal {
  opacity: 1 !important;
}

.mmmodal.show .mmmodal-dialog {
  height: auto;
}
 */
/* 
.fa-magnifying-glass:before, .fa-search:before {
  content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M11.742%2010.344a6.5%206.5%200%201%200-1.397%201.398h-.001q.044.06.098.115l3.85%203.85a1%201%200%200%200%201.415-1.414l-3.85-3.85a1%201%200%200%200-.115-.1zM12%206.5a5.5%205.5%200%201%201-11%200%205.5%205.5%200%200%201%2011%200%22%2F%3E%3C%2Fsvg%3E);
  transition: 0.2s;
}

button:hover .fa-magnifying-glass:before, .fa-search:before {
  filter: hue-rotate(180deg);
  transform: scale(1.1);
} 

.input-group {
    display: flex;
    justify-content: center;
    align-items: stretch !important;
}



.actions {
    justify-content: flex-end !important;
    display: flex;
}


 */




/* New submission mmmodal/form */

label.custom-required::after {
    content: '*';
    color: red;
    padding-left: 2px;
}

#new-submission-form-wrapper table, tr, fieldset {
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
}

.entity-grid table, .entity-grid tr, .entity-grid fieldset {
  display: table;
}

#new-submission-form-wrapper tr {
  flex-direction: row;
}

@media screen and (max-width: 1000px) {
#new-submission-form-wrapper tr {
  flex-direction: column !important;
}
}


#new-submission-form-wrapper {
  max-height: 90vh;
}


#new-submission-form-wrapper .mmmodal-content {
  top: 1rem;
  position: absolute;
}





/* Banner Styles */
.pbo-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;

    background: var(--pbo-pale-blue);
    margin-top: 1rem;
    border-radius: 4px;
}

.pbo-banner-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Message Styling */
.pbo-banner-message {
  margin: 0;
  font-size: 16px;
  flex-grow: 1;
}

.pbo-banner-content .pbo-clear-button {
  font-size: 2em !important;
}

/* Button Styling */
.pbo-clear-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Optional Responsive Styles */
@media (max-width: 768px) {
  /* .pbo-banner-content {
    flex-direction: column;
    align-items: stretch;
  } */

  .pbo-clear-button {
    margin-top: 10px;
    width: 100%;
  }
}




.list-row-container:has(div[content-type-ref="advice"]) a[content-type-ref="costing"] {
  display: none;
}
.list-row-container:has(div[content-type-ref="costing"]) a[content-type-ref="advice"] {
  display: none;
}








/* Animations */

@keyframes fadeOut {
  0% {
    opacity: 1; 
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0; 
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg); /* Start spinning */
  }
  to {
    transform: rotate(360deg); /* Complete rotation */
  }
}

@keyframes jump {
  0% {
    transform: scale(1); /* Start spinning */
  }
  50% {
    transform: scale(1.03); /* Complete rotation */
  }
  100% {
    transform: scale(1); 
  }
}

.circle {
  stroke-dasharray: 1194;
  stroke-dashoffset: 1194;
}

svg .circle {
  animation: circle 1s ease-in-out;
  animation-fill-mode: forwards;
}

.tick {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
}

svg .tick {
  animation: tick .8s ease-out;
  animation-fill-mode: forwards;
  animation-delay: .95s;
}

@keyframes circle {
  from {
    stroke-dashoffset: 1194;
  }
  to {
    stroke-dashoffset: 2388;
  }
}

@keyframes tick {
  from {
    stroke-dashoffset: 350;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes title {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  } 
} 












.option-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.option-container .clear-filter {
  padding-left: 0;
}







.list-filter-button {
    padding-top: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap;
    padding-bottom: 0 !important;
}

.filter-container-options-container {
  display: flex;
}


.list-row:has(.submission-state-Inactive) {
    opacity: 0.5;
}






/* header img */

@media only screen and (min-width: 1400px) {
  .image-wrapper {
      position: absolute;
      width: 800px;
      height: 800px;
      margin: 20px auto;
      right: -208px;
      top: -249px;
      z-index: -1;
  }

  .image-mask {
      height: 70%;
      width: 70%;
      transform: rotate(45deg);
      position: relative;
      z-index: 2;
      top: 15%;
      left: 15%;
      border-radius: 135px;
      overflow: hidden !important;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .image-mask::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 3;
      background-image: linear-gradient(
  323deg, rgba(255, 194, 14, 0.55) 16%, rgba(241, 88, 36, 0.51) 60%);
      top: 0;
      left: 0;
      border-radius: 65px;
  }

  .image-underlay {
      position: absolute;
      z-index: 4;
      width: 700px;
      height: 482px;
      border: 1px solid blue;
      transform: rotate(-45deg) scale(1.3);
      top: 60px;
      left: 0%;
      background: #d5a0a03d;
      background-image: url('queenvictoria.jpg');
      background-size: contain;
  }

  .image-underlay::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 3;
      background-image: linear-gradient(
  323deg, rgba(255, 194, 14, 0.55) 38%, rgba(241, 88, 36, 0.51) 82%);
      top: 0;
      left: 0;
      border-radius: 65px;
  }

  #header-image-svg {
      z-index: 10;
      transform: scale(3.2) rotate(-45deg) translate(0, 20px);
      /* margin: 63px 100px; */
  }
}

@media only screen and (max-width: 1400px) {
  .image-wrapper {
      position: absolute;
      width: 400px;
      height: 400px;
      margin: 20px auto;
      right: -90px;
      top: -100px;
      z-index: -1;
  }

  .image-mask {
      height: 70%;
      width: 70%;
      transform: rotate(45deg);
      position: relative;
      z-index: 2;
      top: 15%;
      left: 15%;
      border-radius: 65px;
      overflow: hidden !important;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .image-mask::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
  background-image: linear-gradient(
  323deg, rgba(255, 194, 14, 0.55) 16%, rgba(241, 88, 36, 0.51) 60%);  top: 0;
    left: 0;
    border-radius: 65px; 
  }

  .image-underlay {
      position: absolute;
      z-index: 4;
      width: 360px;
      height: 200px;
      border: 1px solid blue;
      transform: rotate(-45deg) scale(1.3);
      top: 60px;
      left: 0%;
      background: #d5a0a03d;
      background-image: url('queenvictoria.jpg');
      background-size: contain;
  }

  .image-underlay::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 3;
      background-image: linear-gradient(
  323deg, rgba(255, 194, 14, 0.55) 16%, rgba(241, 88, 36, 0.51) 60%);
      top: 0;
      left: 0;
      border-radius: 65px;
  }

  #header-image-svg {
      z-index: 10;
      transform: scale(2) rotate(-45deg) translate(0, 20px);
      /* margin: 63px 100px; */
  }
}

/* Responsive for Small Screens */
@media (max-width: 480px) {
  .image-wrapper {
    display: none;
    width: 200px; 
    height: 200px;
  }
  .contact-block {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1em;
  }
  /* Single line on mobile devices */
  div[data-label="Footer"] {
    /* font-size: 12px !important; */
        /* text-overflow: ellipsis; */
    white-space: nowrap;
    transform: scale(0.7);
  }
  .mmmodal .mmmodal-body {
    padding: 0.5rem;
  }
}



@font-face {
  font-family: "Roboto";
  src: url('/Roboto-Regular.ttf');
}



* {
    box-sizing: border-box;
    font-family: "Roboto Regular", sans-serif !important;
    font-size: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 28.8px;
}


:root {
/* Primary Colors - PBO theme */
--pbo-burnt-orange: #f15824;
--pbo-gold: #ffc20e;
--pbo-orange: #f8971d;
--pbo-grey: #6D6E70;

--pbo-primary-gradient: linear-gradient(270deg, var(--pbo-gold) 0%, var(--pbo-orange) 45%, var(--pbo-burnt-orange) 100%);

--pbo-gold-op: #ffc20e;
--pbo-orange-op: #f8971d;
--pbo-burnt-orange-op: #f15824;
--pbo-primary-gradient-opaque: linear-gradient(270deg, var(--pbo-gold-op) 0%, var(--pbo-orange-op) 45%, var(--pbo-burnt-orange-op) 100%);

--pbo-primary-gradient-transparent: linear-gradient(270deg, #ffc20e00 0%, #f8971d36 45%, #f1582400 100%);
--pbo-primary-gradient-transparent-alt: linear-gradient(278deg, #ffc20e8c 39%, #f8971d00 95%, #f1582482 104%);


--pbo-pale-blue: #C2DEEA; 
--pbo-blue-grey: #8996A0;
--pbo-blue: #0065BD;
--pbo-indigo: #002395;


--pbo-purple: #5541c3; 
--pbo-yellow: #ffd031;

/* Neutrals */
--pbo-grey-light: #ffffff; /* Pure White */
--pbo-grey-dark: #acafb3; /* Slightly darker gray for borders */

/* Backgrounds */
--pbo-background: #ffffff; /* Pure White - Primary background */
--pbo-background-alt: #f8f9fa; /* Light Gray - Secondary backgrounds */

/* Other */
--pbo-indigo-light: #7df599; /* Lighter variation */
--pbo-indigo-dark: #ffffff00; /* Darker variation */


--list-item-height: 120px; /* Height of each list item */
--max-items-per-page: 6; /* Maximum number of items per page */

}


p, button {
  font-size: 16px !important;
}

body {
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}













/* Structure */
.content-main {
    display: grid;
    grid-template-columns: calc(20px + 8vw) auto calc(20px + 8vw);
    grid-template-areas: "border-left main border-right";
}

@media screen and (max-width: 768px) {
.content-main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "main";
}
}

.content-main > div {
    grid-area: main;
}

.standard-link {
  font-size: 1em;
  text-decoration: underline;
}


.info-wrapper {
    padding: 0 10vw 0 10vw;
    margin-top: 4rem !important;
}


.site-h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.site-title {
    font-size: 1.3em!important;
    line-height: 1.3em!important;

    text-decoration: underline;
    text-underline-offset: 1rem;
    font-weight: bold;
    margin-top: 7vw !important;

}

.site-title:not(.form-title) {
    padding: 0 10vw 0 10vw;

}

.anchor-as-button:not(.active-filter) + .clear-filter {
    visibility: hidden;
}

.container {
    gap: 1rem;
    flex-wrap: nowrap !important;
}


.col-lg-6 {
    flex: auto;
}


.footer {
    bottom: 0;
    /* width: 100%; */
    margin-top: auto;
}

.mainContent {
  display: grid;
  grid-template-columns: repeat(14, 1fr); /* Creates 14 equal-width columns */
  grid-auto-rows: auto; /* Automatically adjusts row height based on content */
  gap: 16px; /* Adds spacing between columns and rows */
  width: 100%; /* Makes the container full width */
  margin: 0 auto; /* Center the container */
}

.page-copy {
    grid-column: 2/14;
}



/* Generic styling */
.bold-span {
    font-weight: bold;
}

.half-opacity {
  opacity: 0.3 !important;
}

.secondary-color {
    background-color: var(--pbo-orange);
}

.tertiary-color {
  background-color: var(--pbo-purple);
  color: white;
}

.pbo-badge {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.5rem;
    width: 6rem;
    min-width: fit-content;
    height: fit-content;
}

.pbo-toggle {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--pbo-yellow-dark);
    padding: 0.3rem 0.1rem;
}
.pbo-toggle button {
    border: none;
    background-color: transparent;
}

.highlight {
  background-color: rgba(255, 255, 0, 0.664); /* Light yellow background */
  color: #333; /* Dark text for contrast */
  font-weight: bold; /* Make the text bold */
  padding: 0.2em 0.4em; /* Add some padding for spacing around the text */
  border-radius: 4px; /* Optional: Rounded edges */
  display: inline; /* Ensure it applies only to the text */
}


.a.anchor-inherit-styles.home-button, input#InsertButton, input#UpdateButton {
    background: #003b67;
    border-radius: 4px;
    border: none;
    border-radius: 50em;
    display: inline-block;
    font-size: 1.1em;
    height: auto;
    line-height: normal;
    line-height: 1;
    margin-right: 1em;
    min-width: 160px;
    overflow: hidden;
    padding: .5em 1em;
    position: relative;
    text-align: center;
    text-decoration: none;
    z-index: 1;
    color: white;
}

.draft-btn:hover {
  font-weight: bold;
}

input#InsertButton, input#UpdateButton {

    padding: 8px 16px !important;
}

#EntityFormPanel tbody {
  margin-bottom: 2rem;
}

#EntityFormPanel .actions {
    display: flex;
    justify-content: flex-end !important;
}

#EntityFormPanel .actions input {
  flex-grow: 0;
}

.pbo-blue-button.home-button, input#InsertButton, input#UpdateButton {
  padding: 4px 8px;
  font-weight: 400;
}

.pbo-blue-button.home-button:hover, input#InsertButton:hover, input#UpdateButton:hover, .save-draft-button:hover {
  font-weight: bold;
}

/* Content block */
.content-block {
    background: var(--pbo-background);
    border-radius: 1em;
    box-shadow: 0 0 1em 0 #d3d3d3;
    padding: 2em;
    width: var(--relative-width, 100%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    margin: 2rem 0rem;
    grid-area: "main";
    overflow: hidden;
}

.content-block.overlay {
  max-width: 1400px !important;
  padding-left: 0em;
}

input::placeholder, textarea::placeholder {
    color: gray !important;
}


.content-block .pbo-logo {
    position: absolute;
    top: 5%;
    right: 5%;
    filter: brightness(100);
    width: 50px;
}

/* todo- replace colours with vars */
.content-container a.anchor-inherit-styles {
    background-color: #003b67;
    color: #fff;
    border: none;
    border-radius: 50em;
    display: inline-block;
    font-size: 1.1em;
    height: auto;
    line-height: normal;
    line-height: 1;
    margin-right: 1em;
    min-width: 160px;
    overflow: hidden;
    padding: .5em 1em;
    position: relative;
    text-align: center;
    text-decoration: none;
    z-index: 1;
}

/* component generic */

.component-info {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.hidden {
  visibility: hidden !important;
}

.extra-hidden, .extra-hidden * {
  display: none !important;
}

.jump {
  animation: jump 0.2s ease;
}

/* buttons and inputs */

input {
    border: 1px solid #666;
    border-radius: 2em;
    color: #333;
    flex-grow: 1;
    padding: .5em 1.5em;
}

button:not([title="Select month"]), .anchor-as-button:not([title="Select month"]) {
    background: none;
    border: none;
    box-sizing: content-box;
    padding: .5em 1.5em;
    transition: 0.1s;
    text-align: left;
}

button[title="Toggle navigation"] {
  background: black;
}



.portal-action-button {
    /* background: var(--pbo-pale-blue); */
    padding: 5px;
    color: black;
    /* border-radius: 4px; */
}

.anchor-as-button:hover, .pbo-blue-button.anchor-as-button:hover {
    font-weight: bold;
    cursor: pointer;
    text-decoration: none !important;
}

.anchor-as-button-disabled {
    background-color: #F3F2F1;
    color: #A19F9D;
    pointer-events: none;
    border: 2px;
}




/* Contact us */

.title-block {
    align-items: center;
    align-self: flex-start;
    border-radius: 0 2em 2em 0;
    color: #fff;
    display: flex;
    flex-grow: 1;
    height: -webkit-fit-content;
    height: fit-content;
    max-width: 20em;
    min-width: 12em;
    position: relative;
}

.title-block svg {
  transform: scale(0.5);
}

.contact-block {
    display: flex;
    flex-basis: 60%;
    flex-grow: 5;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: space-around;
}

.address-link {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: .6em;
    text-align: left;
}

.contact-block-item {
      align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
}

.contact-wrapper {
  padding: 0 10vw 0 10vw;
  position: relative;
  z-index: -5;
}

.no-pad {
  padding: 0 !important;
}



/* video component */
.video-wrapper {
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
    position: relative;
    width: 100%;
}

button.video-play-button:hover {
  transform: translateY(-50%) rotate(90deg) scale(1.2);
}

.video-mask:hover {
    filter: brightness(1.05)
}

.video-mask {
    background-size: 100%!important;
    cursor: pointer;
    height: 100%;
    padding-top: 71.25%;
    position: absolute;
    right: 0;
    top: 0;
    transform: scale(1);
    transition: opacity .3s ease-in-out, filter .2s ease;
    width: 100%;
}

.video-play-button {
        align-items: center;
    background: transparent;
    border: none!important;
    cursor: pointer;
    display: flex;
    height: 10%;
    justify-content: center;
    position: absolute;
    right: 45%;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transition: opacity .2s,transform .2s;
    width: 10%;
    z-index: 9999;
}

.video-mask::before {
    background: linear-gradient(180deg,rgba(236,101,12,.839) 5%,rgba(253,195,0,.69) 32%,hsla(0,0%,100%,0) 112%,rgba(236,101,12,0) 0)!important;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
}

video {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    font-family: "Font Awesome 6 Free" !important;
}

.logo-svg {
    width: 2rem;
}

.logo-svg.form-logo-svg {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 4rem;
}


/* Home page videos */
.home-page-videos-component-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10vw 0 10vw;
}


/* Portal Submissions */
.list-swap-wrapper {
  min-height: 800px;
}

#list-swap-wrapper::after {
    content: "Refreshing...";
    top: 1rem;
    right: 1rem;
    position: absolute;
    color: #8080807a;
    font-size: 14px;
    animation: fadeOut 2s forwards;
    opacity: 1;
}

.list-block {
  position: relative;
  min-height: 800px;
}

.list-heading, .section-title h3 {
    background: var(--pbo-primary-gradient);
    border-radius: 0 1.2em 1.2em 0;
    color: #fff;
    display: inline-block;
    font-size: 1.2em;
    font-weight: 600;
    min-width: 25em;
    padding: .5em 4em .5em 1em;
    text-shadow: 0 0 6px #666;
    align-self: flex-start;
}
.section-title h3 {
  width: 50%;
  font-size: 1em;
}
.section-title {
  overflow: hidden;
}

.contact-block-item a {
    margin-left: 10px;
}


.list-row-container-name-container {
    display: flex;
    justify-content: space-between;
    background: var(--pbo-primary-gradient-transparent);
}

.toolbar-module {
    background: linear-gradient(0,var(--pbo-grey) -70%,white);
    border-bottom: 1px solid #aaa;
    border-top: 1px solid #aaa;
    display: flex; /* Use flexbox for horizontal layout */
    justify-content: space-between; /* Evenly distribute items across the full width */
    align-items: center; /* Vertically center items */
    width: 100%; /* Make the toolbar span the full width of the parent container */
    padding: 0px 20px; /* Add some padding around the toolbar */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    gap: 20px; /* Add consistent spacing between groups */
    flex-wrap: wrap;
    height: 30px;
}

.toolbar-module-button-container {
    background: none;
    border: none;
    box-sizing: content-box;
    position: relative;
    padding: 5px 0px;
}

.toolbar-module-button-container.create-record {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-controls-container-search-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.list-row-container-actions-container-banner:has(.submission-state-Active) {
    display: none;
}

.disabled-buttons-info {
    text-align: center;
    margin-bottom: 4px;
    background-color: lightgray;
    border-radius: 4px;
    padding: 3px;
    font-size: 12px;
}

.search-input {
  max-width: 250px;
}

div#list-controls-sort-select {
    display: flex;
    /* flex-direction: column; */
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

div#list-controls-sort-select a, div#list-controls-sort-select label {
  padding: 0;
  text-wrap-mode: nowrap;
}

div#test-list-wrapper {
}

.toolbar-module-button-container button {
    background: none;
    border: none;
    box-sizing: content-box;
    padding: .5em 1.5em;
    transition: 0.1s;
    height: 30px;
}

.toolbar-module-button-container button:not(:disabled):hover {
    font-weight: bold;
}

.search-container {
  display: block;
}

.list-controls-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 0rem 4rem;
    /* grid-gap: 6rem; */
}

.list-controls-container-sorting-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    gap: 20px;
}

.list-controls-container-sorting-container-subcontainer {
    display: flex;
    flex-direction: column;
}

/* Flex Container to Emulate Table */
.list-container, .test-list-wrapper {
  display: flex;
  flex-direction: column; /* Stack rows vertically */
  width: 100%;
  font-family: Arial, sans-serif;
  margin: 20px 0;
  gap: 1rem;
  padding: 0em 2em;
}

.list-container {
    padding-bottom: 2rem;
  min-height: calc(var(--list-item-height) * var(--max-items-per-page) + 128px);

}

.list-row {
    display: flex;
    flex-wrap: wrap;
    box-shadow: 2px 2px 2px var(--pbo-grey-dark);
    border-radius: 4px;
    overflow: hidden;
    min-height: var(--list-item-height);
    transition: 0.1s;
}

.list-row-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 100%;
}

.list-row-container-column-container-wrapper {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    background: var(--pbo-background-alt);
}

.list-header {
  background-color: var(--pbo-indigo); 
  color: #fff;
  font-weight: bold;
  display:none;
}

.list-row-container-column-container {
    display: flex;
    background: var(--pbo-background-alt);
}

.list-row.list-header .list-cell {
    color: white;
}

.list-row:last-child {
  border-bottom: none; /* Remove border for the last row */
}

/* Columns/Cells Inside Rows */
.list-cell {
  flex: 1; /* Equal width for all cells */
  padding: 10px;
  text-align: left;
}

.list-cell h6 {
    font-weight: 600;
}

.list-cell-header {
    display: flex;
    justify-content: space-between;
    padding-right: 1rem;
    align-items: center;
}

.list-cell-header {
    display: flex;
    justify-content: space-between;
    padding-right: 1rem;
}

.list-cell:last-child {
  border-right: none; /* Remove border for the last column */
}

/* Alternate Row Colors */
.list-row:nth-child(odd):not(:first-child) {
  background-color: #f9f9f9; /* Light gray for odd rows */
}

.list-row:nth-child(even) {
  background-color: var(--pbo-grey-light); /* White for even rows */
}

.list-row:hover {
    opacity: 1;
    box-shadow: 2px 2px 2px #5f5f5f !important;
}

.list-row-container-actions-container {
    grid-template-columns: 3fr 1fr;
}

.list-row-container-actions-container > *:not([class*="submission-state-Active"]):only-of-type {
  grid-column: 1 / -1; /* Span across both columns */
}

/* When both children are visible, let each occupy one column */
.list-row-container-actions-container > *:nth-of-type(1):not([class*="submission-state-Active"]) {
  grid-column: span 2; /* Occupy one column */
}

.list-row-container-actions-container > *:nth-of-type(2):not([class*="submission-state-Active"]) {
  grid-column: span 2; /* Occupy another column */
}

.list-row-container-actions-container-buttons-container-subcontainer {
  display: flex;
  flex-direction: column;
}

.list-row-container-actions-container-buttons-container-subcontainer-2 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 3px;
}

button.anchor-as-button[disabled] {
    background-color: transparent;
    color: #A19F9D;
    pointer-events: none;
    border: 2px;
    opacity: 0.5;
}

.active-filter {
  font-weight: bold;
}

.filter-container {
  display: flex;
  align-items: center;
}

.filter-container label {
  white-space: nowrap;
}

.clear-filter {
  padding-left: 5px !important;
}

.content-block:has(div#list-swap-wrapper) {
    padding: 2em 0;
}

.list-row-container-actions-container-banner {
    background-color: var(--pbo-blue-grey);
    padding: 0 1rem;
    border-radius: 0px 0px 0px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.list-row-container-actions-container-banner p {
    color: white;
    text-align: center;
}

.list-row-container-actions-container-buttons-container {
    gap: 0.5rem;
    padding: 0 0 1rem 0;
    justify-content: space-around;
    align-items: flex-end;
}


.pagination-container {
    display: flex;
    flex-wrap:wrap;
}

@media screen and (max-width: 1000px) {
  .list-row-container-actions-container-buttons-container, .list-row-container-column-container {
    flex-direction: column;
    }
  .home-page-videos-component-wrapper {
    flex-direction: column;
  }
}

.list-pagination-container button:hover {
    font-weight: bold;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .list-container {
    font-size: 14px; /* Slightly smaller font size */
  }

  .list-cell {
    padding: 8px; /* Reduce padding for smaller devices */
  }

  .list-row {
    flex-direction: column; /* Stack cells vertically */
  }

  .list-cell {
    border-right: none; /* Remove borders to simplify layout */
    border-bottom: 1px solid #ddd; /* Separate cells vertically */
  }

  .list-cell:last-child {
    border-bottom: none; /* Remove border for the last cell */
  }
  .list-row-container-name-container {
    flex-direction: column;
  }
  .list-row-container-column-container-wrapper {
    padding: 0.2rem 1rem;
  }
  .list-controls-container-sorting-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-block {
    border-radius: 0;
    max-width: 99vw;
  }
  .content-main > div {
    max-width: 100vw;
}
  .site-title {
    text-align: center;
    text-decoration: none !important;
  }
  ul.pagination-container.list-pagination-container button {
    font-size: 24px;
  }
}

@media screen and (min-width: 1800px) {
  .content-main {
    grid-template-columns: auto 1600px auto;
}

}

/* Heading for Views */
h3 {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin: 10px 0;
  color: #333; /* Dark gray */
}

/* Paragraph Styles */
p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 5px 0;
  color: #555; /* Medium gray */
}



/* mmmodal styles */
#test-htmx-target {
  position: absolute;
  top: 0;
  left: 0;
}
.portalaction-input {
  height: 180px;
  width: 100%;
  resize: none;
  padding: 8px !important;
  border-radius: 8px;
  box-shadow: 1px 1px var(--pbo-indigo);
}

textarea#comment-textbox:not(:invalid) + p {
    color: green !important;
}

.mmmodal {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    visibility: hidden;
    /* opacity: 0; */
    transition: all 0.3s ease;
}

.mmmodal .mmmodal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    left: 0;
    position: fixed;
}

.mmmodal-header-details {
  display: flex;
  flex-direction: column;
}

.portalaction-input {
}

#textarea-validation-info {
    font-size: 14px;
    bottom: 5px;
    color: red;
    margin-left: 5px;
    margin: 0 0 0 5px;
}

.mmmodal .mmmodal-content {
    background: #fff;
    border-radius: 5px;
    max-width: 600px;
    position: fixed;
    top: -100%;
    transition: all 0.6s ease;
    z-index: 10000;
    background: #fff;
    border-radius: 5px;
    position: relative;
    max-width: 600px;
    width: clamp(300px, 680px, 800px);
    max-height: 90vh;
    overflow: auto;
    z-index: 10000;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* hides a rendering issue (matching by name not id causing duplicate links) */
a[href] + a[href] {
    display: none;
}

#loading-spinner-container, #submit-button, #submit-action-success-info {
  min-width: 100px;
  transition: all 0.1s;
}

#submit-action-success-info {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

}

button#submit-button, .pbo-blue-button.home-button {
    text-align: center;
    background: var(--pbo-indigo);
    color: white;
    border-radius: 4px;
}

#loading-spinner {
  width: 40px; 
  height: 40px;
  border: 4px solid transparent;
  border-top: 4px solid var(--pbo-burnt-orange);
  border-radius: 50%; 
  animation: spin 1s linear infinite;

}

.mmmodal .mmmodal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 1.5rem;
  background: var(--pbo-primary-gradient-transparent-alt);
}


.mmmodal .mmmodal-header .close-mmmodal {
    font-size: 2rem !important;
    padding: 0;
    margin: 0;
    height: 30px;
    width: 30px;
    text-align: center;
    align-self: flex-start;
}

.mmmodal .mmmodal-header .close-mmmodal:hover {
  color: #000;
}

.mmmodal .mmmodal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mmmodal .mmmodal-footer {
    border-top: 1px solid #ccc;
    padding: 1rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

div#submit-action-failure-info {
    display: flex;
    align-items: center;
}

.mmmodal.visible {
  opacity: 1;
  visibility: visible;
}

.mmmodal.visible .mmmodal-content {
    top: 5%;
    width: clamp(300px, 680px, 800px);
    max-width: 98vw;
}



/* built-in forms */


/* Important! */
tr:has(#y365_saveasdraft) {
    display: none !important;
}



.file-cell .table-info {
  height: 40px !important;
  visibility: hidden !important;
}

.file-cell .table-info label {
  visibility: visible !important;
}


.crmEntityFormView, .entitylist, .mmmodal-content, .popover-content {
    background-color: #FFFFFF;
    color: #000000;
    border: none !important;
}

button#UploadButton {
    background: lightgray;
    border-radius: 4px;
}

button#UploadButton:hover {
    background: #323130;
}

table.section[data-name="supporting_documents"] {
    /* display: none !important; */
}

#y365_ongoing {
  display: grid;
  grid-template-areas: 
        "label input"
        "label2 input2";
  grid-template-columns: 50px 5px;
}

#y365_ongoing_0 {
  grid-area: input;
  width: fit-content !important;
  margin-left: 1rem;
}

label[for="y365_ongoing_0"] {
  grid-area: label;
}

#y365_ongoing_1 {
  grid-area: input2;
  width: fit-content !important;
  margin-left: 1rem;
}

label[for="y365_ongoing_1"] {
  grid-area: label2;
}

label.field-label[for="notescontrol"] {
    visibility: hidden;
}

.fa-file:before {
    content: "*" !important;
}




.entity-lookup .modal-header {
  background-color: var(--pbo-gold);
}

.entity-form input, .entity-form select, .entity-form textarea {
  max-width: 500px;
  width: clamp(200px, 400px, 400px) !important;
  max-width: 400px !important;
}

.entity-form textarea {
  min-height: clamp(80px, 120px, 160px) !important;
  resize: vertical;
}

.entity-form .input-group {
  justify-content: flex-start;
  gap: 1rem;
  display: flex;
  align-items: stretch !important;
}

.fa-magnifying-glass:before, .fa-search:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    height: auto;
    width: auto;
    display: block;
    color: black;
    height: 16px;
    width: 16px;
}

.fa-arrow-up:before {
    content: "" !important;
}

.fa-check:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
    height: auto;
    width: auto;
    display: block;
    color: black;
    height: 16px;
    width: 16px;
}

.fa-close:before, .fa-multiply:before, .fa-remove:before, .fa-times:before, .fa-xmark:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
  height: auto;
  width: auto;
  display: block;
  color: black;
  height: 16px;
  width: 16px;
}

 

span.fa:not(.icon-calendar):hover::before, button.launchentitylookup:hover span::before {
  filter: invert(1)
}

.fa-chevron-right:before {
  content: ">" !important;
}

/* time */
li.picker-switch.accordion-toggle {
    display: none;
}

.fa-chevron-left:before {
    content: "<" !important;

}

.fa-clock-four:before, .fa-clock:before {
  content: "" !important;
}

.input-group-addon, .input-group-addon.active {
  background-color: transparent !important;
}

.fa-calendar:before, .fa-calendar:before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='6' x2='12' y2='12'/%3E%3Cline x1='12' y1='12' x2='16' y2='14'/%3E%3C/svg%3E") !important;
    height: auto;
    width: auto;
    display: block;
    color: black;
    height: 16px;
    width: 16px;
}

.datepicker tr {
    display: table !important;
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    margin-bottom: 1rem !important;
}

.bootstrap-datetimepicker-widget td:hover * {
    font-weight: bold;
}


tr[data-entity] {
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
}

.crmEntityFormView table.section, .crmEntityFormView table.section>tbody, .crmEntityFormView table.section>tbody>tr, .crmEntityFormView table.section>tbody>tr>td, .crmEntityFormView table.section>tbody>tr>th, .crmEntityFormView table.section>tfoot, .crmEntityFormView table.section>tfoot>tr, .crmEntityFormView table.section>tfoot>tr>td, .crmEntityFormView table.section>tfoot>tr>th, .crmEntityFormView table.section>thead, .crmEntityFormView table.section>thead>tr, .crmEntityFormView table.section>thead>tr>td, .crmEntityFormView table.section>thead>tr>th {
    display: block;
}

/* 
.entity-lookup .mmmodal {
  opacity: 1 !important;
}

.mmmodal.show .mmmodal-dialog {
  height: auto;
}
 */
/* 
.fa-magnifying-glass:before, .fa-search:before {
  content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M11.742%2010.344a6.5%206.5%200%201%200-1.397%201.398h-.001q.044.06.098.115l3.85%203.85a1%201%200%200%200%201.415-1.414l-3.85-3.85a1%201%200%200%200-.115-.1zM12%206.5a5.5%205.5%200%201%201-11%200%205.5%205.5%200%200%201%2011%200%22%2F%3E%3C%2Fsvg%3E);
  transition: 0.2s;
}

button:hover .fa-magnifying-glass:before, .fa-search:before {
  filter: hue-rotate(180deg);
  transform: scale(1.1);
} 

.input-group {
    display: flex;
    justify-content: center;
    align-items: stretch !important;
}



.actions {
    justify-content: flex-end !important;
    display: flex;
}


 */




/* New submission mmmodal/form */

label.custom-required::after {
    content: '*';
    color: red;
    padding-left: 2px;
}

#new-submission-form-wrapper table, tr, fieldset {
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
}

.entity-grid table, .entity-grid tr, .entity-grid fieldset {
  display: table;
}

#new-submission-form-wrapper tr {
  flex-direction: row;
}

@media screen and (max-width: 1000px) {
#new-submission-form-wrapper tr {
  flex-direction: column !important;
}
}


#new-submission-form-wrapper {
  max-height: 90vh;
}


#new-submission-form-wrapper .mmmodal-content {
  top: 1rem;
  position: absolute;
}





/* Banner Styles */
.pbo-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;

    background: var(--pbo-pale-blue);
    margin-top: 1rem;
    border-radius: 4px;
}

.pbo-banner-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Message Styling */
.pbo-banner-message {
  margin: 0;
  font-size: 16px;
  flex-grow: 1;
}

.pbo-banner-content .pbo-clear-button {
  font-size: 2em !important;
}

/* Button Styling */
.pbo-clear-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Optional Responsive Styles */
@media (max-width: 768px) {
  /* .pbo-banner-content {
    flex-direction: column;
    align-items: stretch;
  } */

  .pbo-clear-button {
    margin-top: 10px;
    width: 100%;
  }
}




.list-row-container:has(div[content-type-ref="advice"]) a[content-type-ref="costing"] {
  display: none;
}
.list-row-container:has(div[content-type-ref="costing"]) a[content-type-ref="advice"] {
  display: none;
}








/* Animations */

@keyframes fadeOut {
  0% {
    opacity: 1; 
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0; 
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg); /* Start spinning */
  }
  to {
    transform: rotate(360deg); /* Complete rotation */
  }
}

@keyframes jump {
  0% {
    transform: scale(1); /* Start spinning */
  }
  50% {
    transform: scale(1.03); /* Complete rotation */
  }
  100% {
    transform: scale(1); 
  }
}

.circle {
  stroke-dasharray: 1194;
  stroke-dashoffset: 1194;
}

svg .circle {
  animation: circle 1s ease-in-out;
  animation-fill-mode: forwards;
}

.tick {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
}

svg .tick {
  animation: tick .8s ease-out;
  animation-fill-mode: forwards;
  animation-delay: .95s;
}

@keyframes circle {
  from {
    stroke-dashoffset: 1194;
  }
  to {
    stroke-dashoffset: 2388;
  }
}

@keyframes tick {
  from {
    stroke-dashoffset: 350;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes title {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  } 
} 












.option-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.option-container .clear-filter {
  padding-left: 0;
}







.list-filter-button {
    padding-top: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap;
    padding-bottom: 0 !important;
}

.filter-container-options-container {
  display: flex;
}


.list-row:has(.submission-state-Inactive) {
    opacity: 0.5;
}






/* header img */

@media only screen and (min-width: 1400px) {
  .image-wrapper {
      position: absolute;
      width: 800px;
      height: 800px;
      margin: 20px auto;
      right: -208px;
      top: -249px;
      z-index: -1;
  }

  .image-mask {
      height: 70%;
      width: 70%;
      transform: rotate(45deg);
      position: relative;
      z-index: 2;
      top: 15%;
      left: 15%;
      border-radius: 135px;
      overflow: hidden !important;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .image-mask::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 3;
      background-image: linear-gradient(
  323deg, rgba(255, 194, 14, 0.55) 16%, rgba(241, 88, 36, 0.51) 60%);
      top: 0;
      left: 0;
      border-radius: 65px;
  }

  .image-underlay {
      position: absolute;
      z-index: 4;
      width: 700px;
      height: 482px;
      border: 1px solid blue;
      transform: rotate(-45deg) scale(1.3);
      top: 60px;
      left: 0%;
      background: #d5a0a03d;
      background-image: url('queenvictoria.jpg');
      background-size: contain;
  }

  .image-underlay::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 3;
      background-image: linear-gradient(
  323deg, rgba(255, 194, 14, 0.55) 38%, rgba(241, 88, 36, 0.51) 82%);
      top: 0;
      left: 0;
      border-radius: 65px;
  }

  #header-image-svg {
      z-index: 10;
      transform: scale(3.2) rotate(-45deg) translate(0, 20px);
      /* margin: 63px 100px; */
  }
}

@media only screen and (max-width: 1400px) {
  .image-wrapper {
      position: absolute;
      width: 400px;
      height: 400px;
      margin: 20px auto;
      right: -90px;
      top: -100px;
      z-index: -1;
  }

  .image-mask {
      height: 70%;
      width: 70%;
      transform: rotate(45deg);
      position: relative;
      z-index: 2;
      top: 15%;
      left: 15%;
      border-radius: 65px;
      overflow: hidden !important;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .image-mask::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
  background-image: linear-gradient(
  323deg, rgba(255, 194, 14, 0.55) 16%, rgba(241, 88, 36, 0.51) 60%);  top: 0;
    left: 0;
    border-radius: 65px; 
  }

  .image-underlay {
      position: absolute;
      z-index: 4;
      width: 360px;
      height: 200px;
      border: 1px solid blue;
      transform: rotate(-45deg) scale(1.3);
      top: 60px;
      left: 0%;
      background: #d5a0a03d;
      background-image: url('queenvictoria.jpg');
      background-size: contain;
  }

  .image-underlay::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 3;
      background-image: linear-gradient(
  323deg, rgba(255, 194, 14, 0.55) 16%, rgba(241, 88, 36, 0.51) 60%);
      top: 0;
      left: 0;
      border-radius: 65px;
  }

  #header-image-svg {
      z-index: 10;
      transform: scale(2) rotate(-45deg) translate(0, 20px);
      /* margin: 63px 100px; */
  }
}

/* Responsive for Small Screens */
@media (max-width: 480px) {
  .image-wrapper {
    display: none;
    width: 200px; 
    height: 200px;
  }
  .contact-block {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1em;
  }
  /* Single line on mobile devices */
  div[data-label="Footer"] {
    /* font-size: 12px !important; */
        /* text-overflow: ellipsis; */
    white-space: nowrap;
    transform: scale(0.7);
  }
  .mmmodal .mmmodal-body {
    padding: 0.5rem;
  }
}





#sign-in-home {
    text-align: center;
    background: var(--pbo-indigo);
    color: white;
    border-radius: 4px;
    width: max-content;
}