

input.form-control[type="color"] {
  padding: 2px 4px;
}


div#bfa-project-website-nav {
}

  div#bfa-project-website-nav .bfa-pwn-header {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: bold;
    margin-right: auto;
  }

  .bfa-pwn-sitemap-btn {
    color: var(--t002-nav-accent);
  }
  .bfa-pwn-sitemap-btn:hover {
    color: var(--t002-nav-accent);
    opacity: 0.75;
  }

  div#bfa-project-website-nav .button {
    padding: 0.75rem 1rem;
    margin: 0 0.25rem 0;

    text-transform: none;

    border-radius: 0.5rem;
  }
    div#bfa-project-website-nav .btn-secondary {
      color: #333;
      background-color: #ccc;
    }
      div#bfa-project-website-nav .btn-secondary:focus,
      div#bfa-project-website-nav .btn-secondary:active,
      div#bfa-project-website-nav .btn-secondary:hover {
        background-color: #cfcfcf;
      }

.bfa-project-tab-tools .dropdown-menu a {
  cursor: pointer;
}

.bfa-sitemap-modal {
    position: fixed;
    top: 2%;
    left: 3%;
    right: 3%;
    bottom: 2%;
    z-index: 10000;

    display: flex;
    flex-direction: column;

    background-color: #fff;
    border-radius: 1rem;
    border: 1px solid #ccc;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);

    overflow: hidden;
}

.bfa-sitemap-modal.closed {
    display: none;
}

  .bfa-sitemap-modal .header {
    display: flex;
    justify-content: space-between;

    position: relative;
    z-index: 300;

    padding: 0.75rem 1rem;

    font-size: 1.4rem;

    color: #fff;
    background-color: #00aeef;
  }

    .bfa-sitemap-modal .header .close-btn {
      margin-left: auto;
      margin-right: 0.2rem;
      color: white;
      touch-action: manipulation;
      cursor: pointer;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
    .bfa-sitemap-modal .header .close-btn:hover {
      opacity: 0.75;
    }
    .bfa-sitemap-modal .header .close-btn:active {
      opacity: 0.5;
    }

    .bfa-sitemap-modal .bfa-project-tree-branch {
        list-style: none;
        padding: 0 1rem 1rem 1rem;
        overflow-y: auto;
        text-align: left;
    }

    .bfa-sitemap-modal .bfa-project-tree-branch h3 {
      display: none;
    }

    .bfa-sitemap-body {
      overflow-x: hidden;
      overflow-y: scroll;
    }

      ul.bfa-sitemap-trees {
        margin: 0;
        padding: 0 2rem 2rem;

        list-style: none;
      }

      .bfa-sitemap-filter {
        padding: 0.25rem;
        background: #f1f1f1;
      }

        .bfa-sitemap-filter > input {
          display: block;
          width: 100%;

          text-align: center;

          background: transparent;
          border: 0;
        }

    .bfa-sitemap-modal .bfa-project-child.bfa-project-current > * {
      opacity: 1;
    }

    .bfa-sitemap-modal .bfa-project-child.bfa-project-current > .bfa-project-child-project > a {
      display: inline-block;
      padding: 0 0.25rem;

      background: #ff0;
    }

    .bfa-sitemap-modal .bfa-project-child.bfa-project-filtered > .bfa-project-child-project > a {
      display: inline-block;
      padding: 0 0.25rem;

      background: #0ff;
    }

    /* hide unwanted UI elements */
    .bfa-sitemap-modal .bfa-project-children .bfa-project-child-expand {
        display: none;
    }
    .bfa-sitemap-modal .bfa-project-children .bfa-project-tree-link {
        display: none;
    }
    .bfa-sitemap-modal .bfa-project-children .bfa-project-tree-unlink {
        display: none;
    }
    .bfa-sitemap-modal .bfa-project-children .m-project-leaders {
        display: none;
    }
    .bfa-sitemap-modal .bfa-project-children li.bfa-project-child:before {
        display: none;
    }
    .bfa-sitemap-modal .bfa-project-children .bfa-project-child-project {
        margin-left: 0;
    }


.trellis-web-content-modal,
.trellis-web-preview-modal {
/*
    position: fixed;
    top: 2%;
    left: 3%;
    right: 3%;
    bottom: 2%;
    z-index: 10000;
*/
    display: flex;
    flex-direction: column;

    background-color: #fff;
    border-radius: 1rem;
/*
    border: 1px solid #ccc;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
*/

    overflow: hidden;
}
  .trellis-web-preview-modal {
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    border: 1px solid #ccc;
    border-radius: 0;
  }
    .trellis-web-preview-modal iframe {
      height: 100vh;
    }

  .trellis-web-content-header {
    display: none;
    /*display: flex;*/
    justify-content: space-between;

    position: relative;
    z-index: 300;

    padding: 0.75rem 1rem;

    font-size: 1.4rem;

    color: #fff;
    /*background-color: #00aeef;*/
    background-color: #333;
  }

    span.trellis-web-page-id {
      font-weight: bold;
    }

    .trellis-web-content-header-tools {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }  

      .trellis-web-content-header a {
        color: #fff;
        cursor: pointer;
        font-size: 1rem;
      }

      .trellis-web-content-header a.btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
      }

      .trellis-web-content-editor.btn:hover {
        color: inherit;
      }

      .trellis-web-content-header a.close {
        margin-left: 1rem;

        opacity: 1;
        font-size: 18px;
        text-shadow: none;
        transform: rotateZ(0deg);
        transition: transform 250ms linear;
      }
      
      .trellis-web-content-header a.close:hover {
        transform: rotateZ(90deg);
      }

      .trellis-web-content-header-tools a .text {
        padding-left: 0.25rem;
      }

      .trellis-web-content-header-tools .view {
        /*background-color: #0082B1;*/
      }
      .trellis-web-content-header-tools .view:hover {
        color: #fff;
      }

      .trellis-web-content-header-tools .publish {
        color: #333;
        background-color: white;
      }
      .trellis-web-content-header-tools .publish:hover {
        color: #333;
      }

      .trellis-web-content-header-tools .close:hover {
        color: #fff;
      }

.trellis-web-content-ctr {
  height: 100%;
  padding-top: 2rem;
  padding-right: 2rem;

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  margin-left: 2rem;
  align-items: center;
}
  .trellis-web-preview-modal .trellis-web-content-ctr {
    height: 94%;

    flex-direction: row;
    align-items: stretch;

    margin: 0;
    padding: 0;
  }
    iframe.trellis-web-content-preview {
      display: block;
      width: 100%;
      padding: 0;
      margin: 0;
      min-height: 50vh;

      border: 0;
    }

    .trellis-web-content-ai {
      display: none;

      position: relative;
      flex-direction: column;
      gap: 1rem;

      padding: 0 0 1rem 0;
      min-width: 350px;

      background: #f1f1f1;
    }
      .trellis-web-content-ai > textarea {
        flex-grow: 1;

        padding: 1.5rem;

        background: transparent;
        border: 0;

        outline: none;
      }

      .trellis-web-content-prompt {
        display: flex;
        align-items: center;
        gap: 1rem;

        padding: 0 1rem;
      }
       .trellis-web-content-prompt > .btn-voice {
         width: 40px;
         height: 40px;
         display: flex;
         align-items: center;
         justify-content: center;
       }

       .trellis-web-content-prompt > input {
          padding: 0.5rem 1.5rem;

          font-size: 1em;
          line-height: 1;

          border: 1px solid #aaa;
          border-radius: 12px;
        }

      .trellis-web-content-audio-controls {
        padding-left: 1rem;
        padding-right: 1rem;
      }

      .trellis-web-content-audio-controls > .message {
        font-size: 0.875rem;
        margin-bottom: 0;
        color: #ef4444;
      }

      .trellis-web-content-audio-controls > .buttons {
        display: flex;
        gap: 1rem;
      }

      .trellis-web-content-audio-controls > .buttons > .btn-finish > .fas {
        padding-right: 0.25rem;
      }
      .trellis-web-content-audio-controls > .buttons > .btn-cancel > .fas {
        padding-right: 0.25rem;
      }

      .trellis-web-content-audio-controls > .buttons > .btn-finish {
        padding: 0 0.5rem;
        user-select: none;
      }
      .trellis-web-content-audio-controls > .buttons > .btn-cancel {
        padding: 0 0.5rem;
        user-select: none;
      }



  .trellis-web-content {
    position: relative;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
  }
    .trellis-web-content-ctr .close {
      position: absolute;
      top: 0;
      right: 0;

      display: block;
      padding: 0.5rem 1rem;

      line-height: 1;

      background-color: #ccc;
      border-radius: 0 1rem 0 0.25rem;

      cursor: pointer;
    }

  li.trellis-web-content-section {
    margin-bottom: 2rem;

    border: 1px solid #ccc;
    border-radius: 0.5rem;

    opacity: 0.75;

    overflow: hidden;
  }
    li.trellis-web-content-section.selected {
      opacity: 1;
    }

    .trellis-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;

      padding: 0.25rem 1.5rem;

      font-size: 1.2rem;
      font-weight: bold;

      color: #fff;
      background: #aaa;
      border-radius: 0.5rem 0.5rem 0 0;

      cursor: pointer;
    }
      .trellis-section-header .trellis-section-delete {
        cursor: pointer;
      }

  .trellis-add-section-btn {
    margin-bottom: 2rem;
    text-align: center;
    border-radius: 0.25rem;
  }

  .trellis-add-section-btn .fa-plus {
    margin-right: 0.5rem;
  }

  ul.trellis-section-option-tabs {
    display: flex;
    gap: 0;

    margin: 0;
    padding: 0;

    list-style: none;
    justify-content: space-between;
  }

    .trellis-section-header {
      padding: 0.25rem 1.5rem;

      font-size: 1.2rem;
      font-weight: bold;

      color: #fff;
      background: #aaa;
      cursor: pointer;
    }
      .selected .trellis-section-header {
        background-color: #00aeef;
      }
      .trellis-section-header-buttons {
        display: flex;
        gap: 1rem;
      }

    ul.trellis-section-option-tabs > li {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      padding: 1rem 1.25rem 0.5rem 1.25rem;

      font-size: 0.8rem;

      cursor: pointer;
    }

    ul.trellis-section-option-tabs > .tso-option-tab-add-column {
      margin-left: auto;
    }

      li.tso-option-tab-spacing {
        display: none !important;
      }

      ul.trellis-section-option-tabs > li:hover,
      ul.trellis-section-option-tabs > li.on {
          background-color: rgba(0,0,0,0.1);
      }

      ul.trellis-section-option-tabs > li span {
        font-size: 2rem;
        font-weight: 300;
      }

    ul.trellis-section-options {
      margin: 0;
      padding: 1rem;

      list-style: none;

      background-color: #e5e5e5;
    }

      ul.trellis-section-options > li {
        margin: 0.5rem 0;
      }

    ul.trellis-section-submenu {
      background-color: #e5e5e5;
      display: flex;
      gap: 1rem;
      padding: 1rem;
      list-style: none;
    }

    ul.trellis-section-submenu > li {
      width: 6rem;
    }

    ul.trellis-color-select {
      display: flex;
      align-items: stretch;
      gap: 0.25rem;

      cursor: pointer;
    }

      ul.trellis-color-select > li {
        display: block;
        width: 1.25rem;
        height: 1.25rem;

        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 0.75rem;
      }


      .trellis-section-headings {
        padding: 1rem 0 0.25rem;

        text-align: center;

        background-color: rgba(0,0,0,0.1);
      }
        .trellis-section-headings > * {
          margin: 0;
        }

        .trellis-section-headings h2 {
          font-size: 1.4rem;
          font-weight: bold;
          line-height: 1;
        }

        .trellis-section-headings h4 {
          font-size: 0.9rem;
        }

        .trellis-section-headings:empty {
          display: none;
        }
      .trellis-section-columns:empty:before {
        content: 'Add a column using the tab above!';

        display: block;
        width: 100%;
        padding: 1rem;

        text-align: center;
        font-style: italic;

        background: #e5e5e5;
      }


      .trellis-section-column-header {
        display: flex;
        justify-content: space-between;
        padding: 0px 1.5rem;
        margin: 0 -1.5rem 1rem;

        font-weight: bold;

        background-color: rgba(0, 0, 0, 0.075);
      }
      
        .trellis-column-tools {
          display: flex;
          justify-content: flex-end;
          gap: 0.75rem;
        }
          .trellis-column-tools .trellis-column-move-left,
          .trellis-column-tools .trellis-column-move-right,
          .trellis-column-tools .trellis-column-delete {
            cursor: pointer;
          }

          .trellis-web-content > .trellis-web-content-section:first-child .trellis-section-header .trellis-section-move-up { display: none; }
          .trellis-web-content > .trellis-web-content-section:last-child .trellis-section-header .trellis-section-move-down { display: none; }
          .trellis-section-columns > .trellis-section-column:first-child .trellis-column-tools .trellis-column-move-left { display: none; }
          .trellis-section-columns > .trellis-section-column:last-child .trellis-column-tools .trellis-column-move-right { display: none; }

      .trellis-section-column {
        padding: 0 1.5rem 3rem;
        background-color: #f5f5f5;
      }

  li.trellis-web-content-section.closed .trellis-section-options,
  li.trellis-web-content-section.closed .trellis-section-columns {
    display: none;
  }

  li.trellis-web-content-section.closed .trellis-section-columns {
    border-radius: 0 0 0.5rem 0.5rem;
  }


  a.trellis-web-content-add {
    display: block;
    padding: 1rem 0 0.5rem 0;

    font-size: 0.8rem;
    text-align: center;

    color: #000;
    background-color: rgba(0,0,0,0.05);
    border-radius: 0.5rem;

    cursor: pointer;
  }
    a.trellis-web-content-add:hover {
      text-decoration: none;
    }
    a.trellis-web-content-add.disabled:hover {
      cursor: not-allowed;
    }
    a.trellis-web-content-add:not(.disabled):hover {
      color:#fff;
      background-color: rgba(0,0,0,0.5);
    }
    a.trellis-web-content-add.disabled { opacity: 0.25; }
    a.trellis-web-content-add span {
      display: block;
      font-size: 1.5rem;
    }

ul.trellis-column-activity {
  display: flex;
  justify-content: space-between;
  gap: 1rem;

  padding: 0;
  margin: 0;

  list-style: none;
}


#trellis-tile-buttons ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

li.trellis-tile-button {
  flex-grow: 1;
  padding: 0 1.5rem;

  background-color: #f1f1f1;
}
  li.trellis-tile-button > div {
    margin-bottom: 0.5rem;
  }

li.trellis-tile-button h4 {
    margin-top: 0;
    font-size: 0.8rem;
    font-weight: bold;
}


.trellis-admin-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 33vw;
    height: 33vh;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    border-radius: 1rem;
    padding: 0;
    margin: -16.5vh 0 0 -16.5vw;
    overflow: hidden;
}

  .trellis-admin-popup .trellis-admin-popup-title {
      background: #00aeef;
      color: #fff;
      padding: 0.5rem 2rem;
  }

  .trellis-admin-popup .trellis-admin-popup-content {
      padding: 0.5rem 2rem;
  }

  .tadm-popup-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

    .tadm-popup-fields label {
        display: block;
    }

  .trellis-admin-popup-footer {
      display: flex;
      justify-content: space-between;
      padding: 0.5rem 2rem;
  }
    .trellis-admin-popup .button-cancel {
        background-color: #888;
    }

  #trellis-tile-code {
    background-color: #f1f1f1;
    padding: 0.5rem;
    font-size: 0.6rem;
    font-family: monospace;
    line-height: 1rem;
    height: 150px;
    overflow-x: scroll;
    white-space: pre;
  }


.trellis-web-tile-config,
.trellis-web-page-config,
.trellis-web-site-config {
  padding: 1rem;
  margin: 1rem 0 1rem 1.5rem;

  font-size: 0.8rem;
  line-height: 1.1;

  background-color: #f1f1f1;
  border-radius: 1rem;

  overflow: hidden;
}
  .trellis-web-tile-config > div:first-child > div {
    flex-grow: 1;
  }

  .trellis-web-tile-config > div {
    margin-bottom: 1rem;
  }

.trellis-dz-ctr {
  position: relative;
  height: 100px;

  text-align: center;

  border: 1px solid #ccc;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  
  cursor: pointer;
}
  .trellis-dz-ctr span {
    display: block;
    margin-top: 0.5rem;

    line-height: 1.1rem;
  }

  .trellis-dz-ctr span.trellis-web-upload-file {
    display: none;
  }

.trellis-dz-ctr:not(.trellis-dz-has-upload):before {
    content: 'Upload File';
    line-height: 100px;
    font-size: 1.4rem;
    opacity: 0.7;
}

  .trellis-web-upload-wrapper.trellis-dz-ctr {
    height: auto;
  }
    .trellis-web-upload-wrapper.trellis-dz-ctr:before {
      display: none;
    }


  .trellis-web-upload-tools {
    position: absolute;
    top: 0;
    right: 0;

    display: flex;
    gap: 0.5rem;
  }

    .trellis-web-upload-tools a {
      display: inline-block;
      width: 30px;
      height: 30px;

      font-size: 0.8rem;
      line-height: 30px;

      color: #666;
      background-color: #f1f1f1;
      border-radius: 15px;
    }

      .trellis-web-upload-tools a:hover {
        color: #fff;
        background-color: #00aeef;
      }

.tso-expander-options {
  display: flex;
  gap: 1rem;

  margin-bottom: 1rem;
}
  .tso-expander-options > * {
    flex-grow: 1;
  }


.trellis-web-upload-display {
    display: flex;
    flex-direction: column;
    align-items: center;

    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 1rem;

    overflow: hidden;
}
  .trellis-web-site-config .trellis-web-upload-display {
    border-color: #ccc;
  }
  img.trellis-web-upload-image {
    max-height: 125px;
  }
  .trellis-web-upload-url {
      width: 100%;
      flex-grow: 1;

      font-size: 0.75rem;
      text-align: center;

      background-color: #f1f1f1;
  }
  .trellis-web-upload-url input {
    text-align: center;

    border: 0;
    background: transparent;
  }


.trellis-tile {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 1rem;

  height: 100%;
  max-width: 350px;
 
  border: 1px solid #f1f1f1;
  border-radius: 1rem;
  
  overflow: hidden;
}
  .trellis-tile-image {
  }
    .trellis-tile-image img {
      display: block;
      object-fit: cover;
      object-position: center;

      width: 100%;
      height: 100%;
      aspect-ratio: 3 / 2;
    }

  .trellis-tile .trellis-tile-heading > * {
    margin: 0 0 0.5rem;
  }

  .trellis-tile-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 1rem;

    padding: 0 1.5rem 1rem;

    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2rem;
  }

    .trellis-tile-summary *:last-child {
        margin-bottom: 0;
    }
    .trellis-tile.has-bg .trellis-tile-body {
      justify-content: center;
      padding: 1.5rem;
    }


.vine-ai-generate {
  cursor:  pointer;
}

  .vine-ai-generate.generating {
    background-image: url(/res/js/bfc_common/loading.svg);
    background-size: contain;

    cursor: not-allowed;
  }
    .vine-ai-generate.generating::before {
      visibility: hidden;
    }


@media (min-width:1170px) {

  .trellis-section-columns { display: flex; }
    .trellis-section-columns > div {
      flex-grow: 1;
    }
}

