:root {
    --smalltalkrforeground: #045f80;
    --smalltalkrbackground: #a6e5fc;
    --smalltalkrforegroundcomplement: #802504;
    --smalltalkrbackgroundcomplement: #fcbda6;

    --foreground: #045f80;
    --background: #a6e5fc;
    --foregroundcomplement: #802504;
    --backgroundcomplement: #fcbda6;
    --foregroundgray: #555555;
    --backgroundgray: #f0f0f0;
    --foregrounddisabled: #ddd;

    --sectionbackground: #ffffff;
    --subsectionbackground: #f8f8f8;
    --buttonhoverbackground: #f8f8f8;

    /* Do we need these? */
    --sectionborder: #ffffff;
    --sectionbackground: #ffffff;
    --panelbackground: #f0f0f0;
    --textcolor: #3D3D3D;

    --headerandfootersize: 75px;
    --headerfooterheadingsize: 240px;
}
}

.material-symbols-outlined {
    vertical-align: bottom;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.material-symbols-outlined.md-24 { font-size: 24px; } /* Default */
.material-symbols-outlined.md-36 { font-size: 36px; }


html {
  height: 100svh;
  margin: 0px;
  padding: 0px;
}

body {
  margin: 0px;
  padding: 0px;
  height: 100svh;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 14pt;
  line-height: 1.5em;
  color: var(--textcolor);
  background-color: ffffff;
}

/* Portals */

main.client-portal {
    --foreground: #045f80;
    --background: #a6e5fc;
    --sectionborder: #f0f0f0;

    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

main.client-portal section.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main.client-portal section.center-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0px;
    margin: 0px;
    min-height: calc(100vh - 80px);
    background-color: var(--background);
}

main.client-portal section.footer-section {
    background-color: var(--sectionbackground);
    height: 30px;
    padding: 0px;
    margin: 0px;
    display: flex;
    flex-direction: row;
    justify-content: left;
}


main.user-dashboard {
    --foreground: #045f80;
    --background: #a6e5fc;
    --sectionborder: #f0f0f0;

    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

main.user-dashboard section.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main.user-dashboard section.center-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0px;
    margin: 0px;
    min-height: calc(100vh - 80px);
    background-color: var(--background);
}

main.user-dashboard section.footer-section {
    background-color: var(--sectionbackground);
    height: 30px;
    padding: 0px;
    margin: 0px;
    display: flex;
    flex-direction: row;
    justify-content: left;
}

/* End Portals */



main.client-portal section.center-section div.secure-form-section-wrapper  {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    margin: 0px;
    height: 100%;
    background-color: var(--background);
}

div.secure-form-section-stretch {
    max-width: 1024px;
    min-width: 300px;

    padding: 20px;
    margin: 20px;
    border: solid 1px var(--sectionborder);
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}


/* Header */


section.header-section div.header-wrapper {
    height: 50px;
    width: 90vw;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0px;
  @media only screen and (min-width: 768px) {
    max-width: 1280px;
    width: 90vw;
    height: 50px;
    flex-direction: row;
  }
}

div.header-wrapper div.header-logo {
    align-items: end;
    padding: 0px;
    height: 50px;
    min-width: 300px;
}
section.header-section img.brand-logo, section.header-section-designer img.brand-logo {
    height: 100%;
}

section.header-section div.header-title, section.header-section-designer div.header-title {
    margin: 0px 2em 0px 2em;
    font-size: 1em;
  @media only screen and (min-width: 768px) {
    font-size: 1.25em;
    font-weight: 600;
  }
}

section.header-section div.header-wrapper div.header-menu,
section.header-section div.header-wrapper div.header-leftnav-menu {
    color: var(--foreground);
    display: none;
  @media only screen and (max-width: 767px) {
    background-color: #ffffff;
    position: absolute;
    top: 50px;
    left: 50%;
    width: 95%;
    flex-direction: column;
    transform: translate(-50%, 0%);
    z-index: 1000;
  }
}

section.header-section div.header-wrapper div.header-menu {
  @media only screen and (min-width: 768px) {
    flex-direction: row;
    display: flex;
  }
}

section.header-section div.header-wrapper div.header-leftnav-menu {
    background-color: rgb(0 0 0 / 0.5);
    backdrop-filter: blur(10px);
  @media only screen and (min-width: 768px) {
    flex-direction: column;
    display: flex;
    position: absolute;
    top: 70px;
    left: 10px;
    width: 250px;
    flex-direction: column;
    z-index: 1000;
  }
}

div.header-wrapper div.header-menu-icon {
  color: var(--foreground);
  @media only screen and (min-width: 768px) {
    display:none;
  }
}

div.header-wrapper div.header-menu-item,
div.header-wrapper div.header-menu-item-selected,
div.header-wrapper div.header-menu-item-disabled {
    font-size: 1em;
    margin: 0.5em 0.8em 0.5em 0.8em;
    text-align: left;
    vertical-align: bottom;
}

div.header-wrapper div.header-menu div.header-menu-item,
div.header-wrapper div.header-menu div.header-menu-item-selected,
div.header-wrapper div.header-menu div.header-menu-item-disabled {
  @media only screen and (min-width: 768px) {
    font-size: 0.9em;
    margin: 0px 0.8em 0px 0.8em;
    font-weight: 400;
  }
}

div.header-wrapper div.header-leftnav-menu div.header-menu-item,
div.header-wrapper div.header-leftnav-menu div.header-menu-item-selected,
div.header-wrapper div.header-leftnav-menu div.header-menu-item-disabled {
    color: #ffffff;
    padding: 0.2em 0.5em 0.2em 0.5em;
  @media only screen and (min-width: 768px) {
    font-size: 0.9em;
    margin: 0.3em 0.3em 0.3em 0.3em;
    font-weight: 400;
  }
}

span.menu-item-text {
    line-height: 24px;
    margin-top: auto;
    vertical-align: bottom;
    padding-left: 1em;
}

div.header-wrapper  div.header-menu div.header-menu-item,
div.header-wrapper  div.header-menu div.header-menu-item-disabled {
    padding: 0px 0.05em 0px 0.05em;
}
div.header-wrapper div.header-leftnav-menu div.header-menu-item a {
    color: #ffffff;
}
div.header-wrapper div.header-menu-item a {
    display: block;
    text-decoration: none;
}
div.header-wrapper div.header-menu div.header-menu-item:hover {
    padding: 0px 0px 0px 0px;
    font-weight: 600;
}

div.header-wrapper  div.header-leftnav-menu div.header-menu-item:hover {
    background-color: #5e7f8b;
    border-radius: 1em;
}

div.header-wrapper  div.header-menu div.header-menu-item-selected {
  padding: 0px 0px 0px 0px;
  font-weight: 600;
}

div.header-wrapper  div.header-leftnav-menu div.header-menu-item-selected {
    background-color: #5e7f8b;
    border-radius: 1em;
}

div.header-wrapper  div.header-leftnav-menu div.header-menu-item-selected a {
    color: #ffffff;
    text-decoration: none;
}
div.header-wrapper  div.header-menu div.header-menu-item-disabled a,
div.header-wrapper  div.header-leftnav-menu div.header-menu-item-disabled a,
div.header-wrapper  div.header-menu div.header-menu-item-selected a,
div.header-wrapper  div.header-leftnav-menu div.header-menu-item-selected a {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}
div.header-wrapper  div.header-menu div.header-menu-item-disabled,
div.header-wrapper  div.header-menu div.header-menu-item-disabled a,
div.header-wrapper  div.header-leftnav-menu div.header-menu-item-disabled,
div.header-wrapper  div.header-leftnav-menu div.header-menu-item-disabled a {
   color: #808080;
}


/* End Header */


/* Center Section */

div.background-image {
    position: absolute;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: calc(100% - 80px);
    overflow: hidden;
}

img.background-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


div.portal-main-section {
    position: relative;
    padding: 20px;
    margin: 20px 0px 20px 0px;
    max-width: 1280px;
    width: 80vw;
    background-color: var(--sectionbackground);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    left: 50%;
    transform: translate(-50%, 0%);
}

div.dashboard-main-section {
    position: relative;
    padding: 20px;
    margin: 20px 0px 20px 0px;
    max-width: 1280px;
    width: 80vw;
    background-color: var(--sectionbackground);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    left: 50%;
    transform: translate(-50%, 0%);

  @media only screen and (min-width: 768px) {
    left: calc(50% + 137px);
    width: calc(90vw - 275px);
  }
}

div.dashboard-dialog-section {
    position: relative;
    padding: 20px;
    max-width: 768px;
    width: 80vw;
    background-color: var(--sectionbackground);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* End Center Section */

/* Portal */

div.portal-hero-wrapper {
    width: 100%;
    height: 60vh;
    margin: 0px;
    padding: 0px;
    position: relative;
}

div.portal-hero-box {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    width:80%;
    min-height: 300px;
    max-width: 500px;
    background-color: rgb(0 0 0 / 0.7);
    border-radius: 20px;
  @media only screen and (min-width: 768px) {
    top: 58%;
    left: calc(50% - ((100% - 768px) / 2));
    width: 500px;
    transform: translate(-50%, -50%);
  }
}

div.portal-hero-title {
    padding: 20px;
    color: #ffffff;
    font-size: 1.8em;
    line-height: 1.5em;
}

div.portal-hero-text {
    padding: 20px;
    color: #ffffff;
    font=size:1em;
}

div.portal-hero-button {
    padding: 20px;
}

button.portal-hero-button {
    background-color: var(--foreground);
    color: #FFFFFF;
    border: none;
    border-radius: 1.35em;
    font-size: 1em;
    font-weight: bold;
    padding: 5px;
    height: 2.7em;
    min-width: 100px;
}

div.portal-home-description {
    min-height: 200px;
}

div.portal-main-section-solo {
    min-height: 70vh;
}

div.portal-sub-section {
    padding: 10px;
}

div.portal-panel {
    min-width: 300px;
    min-height: 300px;
  @media only screen and (min-width: 768px) {
    padding: 20px;
  }
}

div.portal-panel-twocol {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

div.portal-panel-twocol > div {
    flex-basis: 1;
    width: 45%;
    min-width: 300px;
    min-height: 300px;
    padding: 20px;
}

div.portal-embed-map {
    min-height: 300px;
}
div.portal-team-user {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
  @media only screen and (min-width: 768px) {
    flex-wrap: nowrap;
  }
}
div.portal-team-user-logo {
    max-width:400px;
    width: 230px;
    padding: 10px;
    margin-top: 20px;
  @media only screen and (min-width: 768px) {
    width: 30%
  }
}

img.portal-team-user-logo {
    width: 100%;
    border-radius: 50%
}
div.portal-team-user-bio {
    max-width: 800px;
    width: 100%;
    padding: 10px;
  @media only screen and (min-width: 768px) {
    width: 60%;
  }
}

/* End Portal */

/* Dashboard */

div.dashboard-section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

h2.dashboard-section-title {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}
h5.dashboard-section-subtitle {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    color: var(--foreground);
}

div.dashboard-section-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
}

div.dashboard-section-button {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

div.dashboard-subsection,
div.dashboard-subsection-nohover {
    padding: 10px;
    margin: 10px 0px 10px 0px;
}

div.dashboard-subsection-border {
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 10px;
    margin: 10px 0px 10px 0px;
}

div.dashboard-subsection-border div.dashboard-subsection-buttons,
div.dashboard-subsection-nohover div.dashboard-subsection-buttons
 {
    display: flex;
}


div.dashboard-subsection:hover,
div.dashboard-subsection-border:hover {
    background-color: var(--subsectionbackground);
}

div.dashboard-subsection:hover div.dashboard-subsection-buttons {
    display: flex;
}


span.dashboard-subsection-button-text {
    font-weight: 700;
    padding-bottom: 0px;
    vertical-align: bottom;
}

div.dashboard-subsection-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

h3.dashboard-subsection-title {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

h5.dashboard-subsection-subtitle {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    color: var(--foreground);
}

ul.pricing-features > li::marker {
  color: var(--foreground);
  content: "✓";
}

div.dashboard-subsection-buttons {
    display: none; /*only show on hover */
    flex-direction: row;
    align-items: flex-end;
}

div.dashboard-subsection-button {
    padding-left: 0.5em;
    padding-right: 0.5em;
    display: flex;
    align-items: center;
}

div.dashboard-subsection-button.type2 {
    background-color: var(--foreground);
    color: #ffffff;
    border: 2px solid var(--foreground);
    border-radius: 1em;
}

div.dashboard-subsection-button.disabled, div.dashboard-subsection-button.disabled:hover {
    background-color: var(--buttonhoverbackground);
    color: var(--foregrounddisabled)
    border: 2px solid var(--foregrounddisabled);
    border-radius: 1em;

    pointer-events: none;
    cursor: default;
    text-decoration: none;
}
div.dashboard-subsection-button:hover {
    background-color: #ffffff;
    color: var(--textcolor);
    border-radius: 1em;
}

div.dashboard-subsection-nohover div.dashboard-subsection-button:hover {
    background-color: var(--subsectionbackground);
    color: var(--textcolor);
    border-radius: 1em;
}


div.dashboard-subsection-body {
    padding-left: 10px;
}
/* End Dashboard */


/* Slideout */

section.slideout-section {
  /* Initial state: hidden off-screen */

  transform: translateX(100%); /* Or adjust for desired slide direction */
  transition: transform 0.3s ease-in-out; /* Smooth transition */
  position: fixed;
  top: 50px;
  right: 0;
  height: calc(100% - 50px);
  width: 90vw;
  max-width: 768px;
  background-color: var(--sectionbackground);

  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}


section.slideout-section.is-open {
  /* Active state: visible */

  visibility: visible;
  transform: translateX(0%);
}

div.slideout-section-header {
    margin-top: 20px;
}
div.slideout-section-body {
    padding: 20px;
}

div.slideout-section-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* End Slideout */

/* Section Buttons */

div.section-button,
div.section-button-disabled {
    padding-left: 1em;
    padding-right: 1em;
}
div.section-button:hover {
    background-color: var(--buttonhoverbackground);
    border-radius: 1em;
}

span.section-button-text {
    font-weight: 700;
}
div.section-button-disabled {
    color: #ddd;
    border-color: var(--disabled);

    pointer-events: none;
    cursor: default;
    text-decoration: none;
}
/* End Section Buttons */
/* Readonly Forms */
div.readonly-form{
    display:block;
}

div.readonly-form div.readonly-form-field {
    display: flex;
    flex-direction: column;
    justify: space-between;
    flex-wrap: wrap;
    margin: 0px 0px 8px 0px;
}

div.readonly-form-field span.title {
    color: var(--foreground);
    font-size: 0.8em;
    font-weight: 300;
}

div.readonly-form-field span.value {
    font-weight: 500;
    min-height: 20px;
    padding: 9px 11px 9px 11px;
    margin: 0px 0px 0px 0px;
}

div.readonly-form-field span.error {
    min-height: 20px;
    padding: 8px 10px 0px 10px;
    margin: 0px 0px 0px 0px;
    color: #ff0000;
}

div.readonly-form-field span.decorator {
    padding: 0px 10px 8px 10px;
    margin: 0px 0;
    font-size: 0.8em;
    font-style: italic;
}

div.readonly-form-field span.value a {
    color: var(--foreground);
}

div.readonly-form-field span.value table a {
    pointer-events: none;
    cursor: default;
}


.readonlyformfield-address {
    display: flex;
    flex-direction: column;
    justify: space-between;
    flex-wrap: wrap;
    padding: 5px 5px 5px 5px;
}


.readonly-form-field img {
    margin: 9px 11px 9px 11px;
    border: 1px solid black;
    padding: 0px 0px 0px 0px;
}
.readonly-form-field img.logo-img {
    height: 50px;
}

.readonly-form-field img.thumbnail-img {
    width: 300px;
}

div.readonly-form-field > fieldset {
    border: 0px;

        padding: 9px 11px 9px 11px;
    margin: 0px 0px 0px 0px;
}

div.readonly-form-field > fieldset:has(> input[type=checkbox]) {
    display: block;
    width: 100%;

    accent-color: var(--foreground);
}

div.readonly-form-field > fieldset > input[type=checkbox] {
    width: 1.5em;
    height: 1.5em;
}
div.readonly-form-field > fieldset > label {
    font-weight: 500;
}

div.readonly-form > p {
    font-size: 0.8em;
}

div.readonly-form-field div.color {
    display: flex;
    flex-direction: row;
    padding: 9px 11px 9px 11px;
    margin: 0px 0px 0px 0px;
}
div.readonly-form-field div.color div.color-box {
    border: 1px solid black;
    width: 1.5em;
    height: 1.5em;
}




div.readonly-form-threecol > div.readonly-form {
    display:flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    border: 1px dotted var(--panelbackground);
}
div.readonly-form-threecol {
    margin-left: 35px;
}
div.readonly-form-threecol > div.readonly-form > div.readonly-form-field {
  flex-grow: 1;
  width: 33%;
}

div.readonly-form div.two-fields,
div.readonly-form div.three-fields {
    display: flex;
    flex-direction: row;
    justify: space-between;
}
.three-fields div {
    flex: 33%;
}

.three-fields .readonlyformfield-region {
    display: flex;
    flex-direction: row;
}

.three-columns {
 display: flex;
 flex-direction: row;
}

.three-columns div {
    flex-basis: 33%;
}

/* End Readonly Forms */

/* Other */

main.client-portal div.section-heading, div.section-sub-heading {
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.3em;

    color: var(--foreground);
    margin: 0px 0px 10px 0px;
}

div.section-heading > div > a {
    text-decoration: none;
    color: var(--textcolor);
}

div.section-heading > div > a:hover {
    text-decoration: underline;
    color: var(--foreground);
}

a {
    color: var(--foreground);
}

/* Rich text area */

div.rich-text-area-editor {
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 150px;
}

div.rich-text-area > button {
    margin-top: 5px;
}
/* End Rich text area */

/* Dashboard Tables */


div.dashboard-table {
 display: table;
 width: 100%;
 border-collapse: collapse;

}

div.dashboard-table-row {
    display: table-row;
}

div.dashboard-table-header {
    display: table-header-group;
    color: var(--foreground);
    font-weight: 400;
}

div.dashboard-table-row:hover {
    background-color: var(--panelbackground);
}

div.dashboard-table-cell {
    display: table-cell;
    wrap: nowrap;
    padding: 0.5em;
}

div.dashboard-table-cell:nth-child(n + 3) {
  @media only screen and (max-width: 768px) {
    display: none;
  }
}

div.dashboard-table-cell:nth-child(n + 4) {
  @media only screen and (max-width: 1024px) {
    display: none;
  }
}

/* End Dashboard Tables */

/* Info and Warnings */
div.confirm,
div.info,
div.warning,
div.error {
    width: 90%;
    padding-10px;
    margin: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

div.icon {
    background-repeat: no-repeat;
    width:50px;
    height: 50px;
    min-width: 50px;
    margin:10px;
}
div.message {
    padding: 10px;
}

div.confirm {  /* green */
    background-color: #D5E6DE;
    color: #28523B;
}

div.confirm > div.icon {
    background-image: url("/static/icons/confirm.svg");
}

div.info {  /* blue */
    background-color: #e9f4fe;
    color: #2559AC;
}

div.info > div.icon {
    background-image: url("/static/icons/info.svg");
}

div.warning { /* yellow */
    background-color: #FDF3D1;
    color: #624E17;
}
div.warning > div.icon {
    background-image: url("/static/icons/warning.svg");
}

div.error { /* red */
    background-color: #F3D8DA;
    color: #7D2C30;
}

div.error > div.icon {
    background-image: url("/static/icons/error.svg");
}

.helptext {
    display: none;
}

/* Info and Warnings */
