
html, body, textarea {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #f5f4ef;
}
body {
    min-height: 100vh;
    background: #4d4d4d;
}
textarea {
    padding: 5px;
    box-sizing: content-box;
}

/* BASE CSS */
    .muted {
        opacity: 0.4;
        -pointer-events: none;
    }
    .faded {
        opacity: 0.4;
    }
    .lightly-faded {
        opacity: 0.7;
    }
    .text-center {
        text-align: center;
    }
    .text-left {
        text-align: left;
    }
    .text-right {
        text-align: right;
    }
    .text-medium {
        font-size: 85%;
    }
    .text-small {
        font-size: 70%;
    }
    .text-mini {
        font-size: 50%;
    }
    .text-bold {
        font-weight: bold;
    }

    /* Module-grouped analytics styling */
    .module-header {
        margin-top: 20px;
        margin-bottom: 10px;
        color: #ddd;
        font-size: 1.1em;
        border-bottom: 1px solid #666;
        padding-bottom: 5px;
    }
    .module-group {
        margin-bottom: 15px;
        margin-left: 10px;
    }
    .hub-item {
        margin-bottom: 8px;
    }
    .hub-item a {
        display: block;
        padding: 8px 12px;
        background: #666;
        border-radius: 4px;
        text-decoration: none;
        color: #ddd;
        transition: all 0.2s ease;
    }
    .hub-item a:hover {
        background: #999;
        transform: translateX(2px);
    }

    .text-capitalize {
        text-transform: capitalize;
    }
    .text-uppercase {
        text-transform: uppercase;
    }

    .full-width {
        width: 100%;
    }

    .no-padding {
        padding: 0 !important;
    }
    .no-margin {
        margin: 0 !important;
    }

    .content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        align-content: center;
        justify-content: flex-start;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #5771D5; /* #666; */

        border-bottom: 2px solid #888;
        width: 100%;
        height: 50px;
    }
    .nav a {
        text-decoration: none;
    }
    .nav a:hover {
        text-decoration: underline;
    }
    .nav .brand {
        margin: 0;
        padding: 0;
        width: 250px;
    }
    .nav ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        padding-top: 15px;
        height: 35px;

        display: flex;
        justify-content: space-around;
    }
    .nav ul li {
        -float: left;
        margin: 0 10px;
    }
    .nav .right-separator {
        border-right: 2px solid #888;
        margin-right: 15px;
        padding-right: 15px;
    }
    .nav .left-separator {
        border-left: 2px solid #888;
        margin-left: 15px;
        padding-left: 15px;
    }
    .nav .full-width {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 550px);
    }
    .nav ul.brand li {
        margin: 0;
        padding: 0;
    }

    .nav .credentials {
        width: 250px;
    }

    .nav .credentials .logout {
    }

    .sidebar {
        top: 52px;
        bottom: 10px;
        background: #06682D; /* #333; */
        width: calc(25% - 10px);
        margin: 0;
        padding: 0 0 10px;
    }

    .sidebar .menu-item {
        font-size: 0.9em;
        border-bottom: 1px solid #FFF3;
        padding-bottom: 10px;
    }
    .sidebar .menu-item.hello {
        margin-top: 40px;
    }
    .sidebar .menu-item.logout {
        /*position: fixed;
        bottom: 30px;
        left: 0;
        width: 200px;*/
        border-bottom: none;
        /*right: 0;*/
    }

    .sidebar .menu-item.logo {
        text-align: center;
    }
    .sidebar .brand {
        text-align: center;
    }
    .sidebar .menu-item.brand .logo {
        width: 100%;
    }
    .sidebar .menu-item.brand .logo-wrapper {
        padding: 20px;
        margin-bottom: 20px;
    }
    .sidebar .brand .mark {
        text-transform: uppercase;
        font-size: 1.75em;
        font-weight: bold;
    }

    .sidebar .heading {
        /* text-transform: uppercase; */
        font-size: 1em;
        margin-bottom: 5px;
        margin-top: 0px;
    }
    .sidebar .heading:not(:first-child) {
        margin-top: 30px;
        padding-bottom: 30px;
    }
    .sidebar .sub-heading {
        text-transform: uppercase;
        font-size: 20px;
        padding-left: 10px;
        margin-bottom: 5px;
        margin-top: 10px;
    }

    .clickable-item {
        text-decoration: underline;
        text-decoration-style: dotted;
        text-decoration-color: #0003;
    }
    .clickable-item:hover, .menu-item:hover {
        text-decoration: underline;
        text-decoration-style: unset;

        cursor: pointer;
    }
    .step-order {
        cursor: pointer;
        opacity: 0.25;
    }
    .step-order:hover {
        opacity: 1.0;
    }


    .sidebar-left {
        left: 0;
        /* flex: 1; 
        z-index: 100; */
        width: 200px;
        text-align: center;
    }
    .sidebar-right {
        right: 0;
        flex: 5.5;
        padding: 0;
    }
    .sidebar-right.full-size {
        flex: 9;
    }
    .sidebar-right.full-size > .workspace {
        min-height: 100%;
    }

    .workspace {
        padding: 100px 0px;
        flex: 7;
        position: relative;
        min-height: calc(100% - 80px - 100px);
    }
    .workspace .heading {
        font-size: 40px;
        text-align: left;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }
    .workspace .heading .heading-detail,
    .workspace .heading ~ .heading-detail {
        font-size: 16px;
        font-family: sans-serif;

        /*
        font-size: 18px;
        font-family: Agrandir-light;
        */
    }
    .workspace .footing {
        border-top: 1px solid #0003;
        margin-top: 0px;
        padding-top: 5px;
    }
    .workspace .workspace-section:not(:first-child),
    .workspace-section > form > .input-group:not(:first-child) {
        margin-top: 25px;
    }
    .workspace-section {
        padding: 10px;
        border-radius: 5px;
        position: relative;
    }

    .input-group .input-label {
        width: 100%;
        margin-left: 1px;
        margin-bottom: 3px;
        font-size: 20px;
    }
    .input-label.input-label-small {
        margin-bottom: 0px;
        font-size: 80%;
        opacity: 0.5;
    }
    .input-group > input,
    .input-group > textarea,
    .input-group > select,
    .input-group .input-block,
    [content-item-key] {
        width: 100%;
    }

    .input-group > input,
    .input-group > textarea,
    .input-group > select,
    [content-item-key] {
        background: #FFFD;
        border: 1px solid #000A;
        border-radius: 3px;
        padding: 7px 3px;
        margin: 3px 0;
        
        font-size: 18px;

        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .input-group.input-group-small > * {
        font-size: 12px;
        line-height: 14px;
        padding: 3px;
    }
    .input-group > .input-block {
        float: left;
    }
    .input-group {
        margin: 10px 0;
    }
    .input-group.input-group-small {
        margin: 4px 0;
    }

    .input-group > .input-group {
        margin-bottom: 20px;
    }
    .input-group > .input-group:last-child {
        margin-bottom: 0;
    }

    .input-block-mini .input-group {
        font-size: 80%;
    }
    .input-block-mini .input-group .input-label {
        width: 100px;
    }
    .input-block-mini .input-group > input,
    .input-block-mini .input-group > textarea,
    .input-block-mini .input-group > select,
    .input-block-mini .input-group .input-block,
    .input-block-mini [content-item-key] {
        width: calc(100% - 110px);
    }

    .input-block-horizontal .input-group {
        display: inline-block;
        /* width: calc(50% - 3px); */
        margin-bottom: 0;
    }

    .input-group label.checkbox {
        display:block;
        margin-bottom: 3px;
        margin-left: 15px;
    }

    .content-item-container {
        margin-bottom: 10px;
    }
    .content-item-container .content-description {
        width: 100%;
    }

    .footer {
        position: fixed;
        bottom:0;
        left:0;
        right:0;
        height: 14px;
        line-height: 14px;
        font-size: 10px;

        text-align: center;
        background: #333;

        z-index: 9999;
    }

    .btn {
        cursor: pointer;

        width: 100px;
        border: 1px solid #000A;
        border-radius: 3px;
        text-align: center;

        padding: 3px 0;
        margin: 5px 0;

        background-color: #FFF3;
    }
    .btn-inline {
        display: inline-block;
    }
    .btn.disabled {
        pointer-events: none;    
        background-color: #9993;
        border: 1px solid #999F;
        color: #FFF3;
        cursor: not-allowed;
    }

    .btn-full-width {
        width: 100%;
    }
    .btn-dynamic-width {
        width: unset;
        padding-left: 10px;
        padding-right: 10px;
        display: inline-block;
    }

    .btn-row .btn {
        width: unset;flex-grow: 1;
    }

    .btn-row {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        column-gap: 10px;
    }
    .footing .btn {
        display: inline-block;
        padding-left: 10px;
        padding-right: 10px;
    }


    table {
        width: 100%;
        border-spacing: 0 5px;
    }
    table thead tr th {
        text-align: left;
        /* border-bottom: 1px solid #0003; */
    }
    table tbody tr:nth-child(odd) {
        /* background: #EEE;
        background-color: #2222; */
    }

    table td {
        padding: 3px;
    }

    table td:first-child, td:last-child {
        /* padding: 3px 10px; */
    }


    .pull-right {
        float: right;
    }
    .pull-left {
        float: left;
    }
    .hide {
        display: none!important;
    }
    .clearfix::after,
    .input-group::after {
        content: "";
        clear: both;
        display: table;
    }

    .auth {
        text-align: center;
        margin:50px;
    }
    .auth img {
        margin: 50px;
        background: black;
        border-radius: 500px;
        border: solid 3px #888;
    }

    .button-block {
        display: flex;
        justify-content: space-around;
        column-gap: 5px;
    }
    .button-block.border-shift {
        width: calc(100% + 4px);
    }
    .button-block .btn {

    }

    .spinner {
        text-align: center;
        display: block;
        margin: 0 auto;
    }
    .spinner-mini {
        max-height: 28.5px;
    }


    .tingle-modal {
        background: #0009;
        z-index: 999999;
    }

    /* Evaluation response modal styling */
    .text-content .eval-qa-pair h3 {
        border-top: 1px solid #666;
        margin-bottom: 3px;
        padding-top: 20px;
    }

    .text-content .eval-qa-pair p {
        margin-top: 3px;
    }

    /* Grouped competencies display */
    .competencies-grouped-container {
        margin-top: 2rem;
    }

    .competency-domain-section {
        margin-bottom: 1.5rem;
    }

    .competency-domain-header {
        cursor: pointer;
        padding: 0.75rem 1rem;
        border: 1px solid #666;
        border-radius: 5px;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }

    .competency-domain-header:hover {
        border-color: #999;
    }

    .competency-domain-header h3 {
        margin: 0;
        font-size: 1.3rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .competency-domain-header .domain-collapse-indicator {
        font-size: 0.8em;
        transition: transform 0.3s ease;
    }

    .competency-domain-header.collapsed .domain-collapse-indicator {
        transform: rotate(-90deg);
    }

    .competency-domain-content {
        padding-left: 1rem;
        transition: all 0.3s ease;
    }

    .competency-domain-content.collapsed {
        display: none;
    }

    .competency-item {
        margin-bottom: 1rem;
    }

    .competency-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }

    .competency-name-section {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: space-between;
    }

    .competency-name {
        font-weight: bold;
        font-size: 1.1rem;
    }

    .competency-measures {
        display: flex;
        gap: 0.5rem;
    }

    .measure-pill {
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .measure-pill.observer {
        background-color: rgba(54, 162, 235, 0.2);
        color: rgba(54, 162, 235, 1);
        border: 1px solid rgba(54, 162, 235, 0.5);
    }

    .measure-pill.reflection {
        background-color: rgba(150, 101, 250, 0.2);
        color: rgba(150, 101, 250, 1);
        border: 1px solid rgba(150, 101, 250, 0.5);
    }

    /* Info button styling - matches EvaluationModal */
    .competency-item .info-button {
        border: none;
        background: none;
        cursor: pointer;
        opacity: 0.5;
        padding: 0.5rem;
        font-size: 1.2em;
        transition: opacity 0.2s ease;
    }

    .competency-item .info-button:hover {
        opacity: 1.0;
    }

    /* Competency details guide - matches matrix-guide styling */
    .competency-details-guide {
        margin-top: 5px;
        font-size: 0.9em;
        padding: 10px;
        border-radius: 15px;
        margin-bottom: 15px;
        background: #FFF2;
        color: white;
    }

    .competency-details-guide.hide {
        display: none;
    }

    .competency-details-guide .competency-description {
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .competency-details-guide .observation-guide {
        margin-bottom: 10px;
    }

    .competency-details-guide .observation-guide > p {
        margin-top: 3px;
        white-space: pre-line;
    }

    .competency-details-guide .competency-notes {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .competency-details-guide .note-item {
        margin-bottom: 8px;
        line-height: 1.5;
    }

    /* Matrix table styling - matches guide table */
    .matrix-table-container {
        margin-top: 10px;
    }

    .matrix-table {
        width: 100%;
        border-collapse: collapse;
    }

    .matrix-table th {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: center;
        font-weight: bold;
    }

    .matrix-table td {
        border: 1px solid #ddd;
        padding: 8px;
        vertical-align: top;
    }

    .matrix-table td.level-name {
        text-align: center;
        font-weight: bold;
        width: 150px;
    }

    .matrix-table td.description-content {
        text-align: left;
    }

    .competency-separator {
        border-bottom: 1px solid #666;
        margin: 0.5rem 0;
    }

    a {
        text-decoration: none;
    }


    /* content boxes */

        .content-container {
            width: 100%;
            max-width: 850px;
            margin-left: auto;
            margin-right: auto;
        }
        .workspace > .content-container {
            margin-top: -100px;
        }

        .content-container .content-title {
            text-align: center;
            font-size: 20px;

            display: block;
            margin-left: auto;
            margin-right: auto;
            width: fit-content;
        }
        .content-container .content-title:after {
            content: "⏷";
            margin-left: 20px;
            padding: 2px 10px;
            border: 1px solid #CCC0;
        }
        .content-container .content-title-no-menu.content-title:after {
            content: "";
            padding: 0;
            margin: 0;
        }

        .content-box {
            position: relative;
            padding: 20px;
            margin: 20px 0px;
            border-radius: 35px;
        }
        .content-box code,
        .content-box pre {
            white-space: pre-line;
        }

        .content-box:first-child {
            margin-top: 0px;
        }

        .content-box.content-info {
            border: solid 1px #5771D5;
            background: #f7f8fd;
            color: #161C35;
            border-radius: 10px;
        }
        .content-box.content-info a {
            color: #161C35;
        }
        .content-box.content-request {
            background: #3D4F95;
            color: #EEF1FB;
        }
        .content-box.content-response {
            background: #5771D5;
            color: #EEF1FB;
        }

        .content-box.content-response .table,
        .content-box.content-request .table {
            color: #EEF1FB;
        }

        .content-box .title {
            font-weight:  bold;
            font-size: 24px;
        }

        .content-box .content-content {
            font-size: 14px;
        }

        .content-box .controls > .btn {
            display: inline-block;
            flex-grow: 1;
        }

        .content-box .controls {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            gap: 10px;
        }

        .content-box .prompt .btn {
            float: right;
            display: inline-block;
            margin: 0;
            padding: 5px 20px;
            font-size: 75%;
        }

        .content-box .prompt {

        }

        .content-box .table .btn {
            width: unset;
            padding: 2px 5px;
            font-size: 75%;
        }

        .content-box .table input {
            width: 100%;
        }

        .content-content > .btn {
            width: 100%;
            font-size: 75%;
        }

        .converastion-break {
            border-top: 1px solid #CCC;
            margin-top: 40px;
            position: relative;
            padding-top: 15px;
        }

        .converastion-break-label {
            position: absolute;
            top: -10px;
            left: 40%;
            right: 40%;
            text-align: center;
            background: #f5f4ef;
            padding: 2px 10px;
            color: #666;
            font-size: 80%;
        }


        .content-content.content-content-row {
            display: flex;
            flex-direction: row;
            align-content: flex-start;
            justify-content: space-around;
            margin-top: 10px;
        }

        .content-visualization:hover {
            background: #f1efe9;
            border: 1px solid #CCC;
        }

        .content-visualization {
            padding: 10px 5px;
            cursor: pointer;
            border-radius: 10px;
            border: 1px solid #0000;
        }
        .content-visualization .content-visualization-label {
            text-align: center;
            margin-top: 10px;
        }
        .content-visualization .content-visualization-content {
            text-align: center;
            -background: #ccc;
            width: 150px;
            height: 150px;
            border-radius: 10px;
            margin-left: auto;
            margin-right: auto;
        }




        .content-title-container {
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
            padding: 0 20px;
        }

        .content-title-links {
          display: none;
          position: relative;
          background-color: #f9f9f9;
          box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
          z-index: 1;
          right: -135px;
          border-radius: 10px;
          top: -10px;
          width: 175px;
        }

        .content-title-links a {
          color: black;
          padding: 12px 16px;
          text-decoration: none;
          display: block;
        }

        .content-title-links a:hover {
          background-color: #f1f1f1;
          border-radius: 10px;
        }

        .content-title-container:hover .content-title-links {
          display: inline-block;
          float: right;
          text-align: center;
        }
        
        .content-title-container:hover .content-title:after {
            background: #f1efe9;
            border: 1px solid #CCC;
            border-radius: 10px;
            z-index: 99999;
            position: relative;
        }



        .content-status-scheduled .btn-change,
        .content-status-active .btn-change,
        .content-status-gathering .btn-change,
        .content-status-analyzing .btn-change,
        .content-status-complete .btn-change {
            display: none !important;
        }

    .content-box.content-info input {
        padding-left: 15px;
    }



    .btn-chunky {
        width: 300px;
        padding: 16px;
        font-size: 18px;
    }
    .content-box .btn {
        display: block;
        padding: 10px 0;
        font-size: 16px;
    }

    .input-group .input-label:first-child {
        margin-bottom: 10px;
    }

    .workspace-section.workspace-header .input-group .input-label:first-child {
        margin-bottom: 0px;
    }


    .input-description {
        opacity: 0.7;
        font-size: 70%;
    }


/* menu */
    .auth .lds-ellipsis div {
        background-color: #3D4F95;
    }

    .auth .lds-ellipsis {
        margin-top: 100px;
    }

    .menu-column {
        width: 100%;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 25px;
    }

    .user-profile-btn {
        position: absolute;
        top: 64px;
        right: 64px;
        height: 48px;
        width: 48px;

        border-radius: 16px;
        font-size: 24px;
        line-height: 48px;
        text-align: center;
        text-decoration: none;
        
        background: #3D4F95;
        color: #EEF1FB;
        border: 1px solid #333;

        cursor: pointer;
        z-index: 10;
    }
    .user-profile-btn:hover,
    .user-profile-btn:focus, /* For keyboard navigation */
    .user-profile-btn:active /* For tap on mobile */ {
        background: #5771D5;
        border-color: #666;
        color: white;
    }


    .user-profile-links {
      display: none;
      position: absolute;
      background-color: #f9f9f9;
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
      right: calc(64px - 16px);
      top: calc(64px + 40px);
      border-radius: 10px;
    }

    .user-profile-links a {
      color: black;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
    }

    .user-profile-links a:hover {
      background-color: #f1f1f1;
      border-radius: 10px;
    }

    .user-profile-container:hover .user-profile-links,
    .user-profile-container:focus .user-profile-links, /* For keyboard navigation */
    .user-profile-container:active .user-profile-links /* For tap on mobile */ {
      display: block;
    }


    .brand-container {
        display: flex;
        justify-content: center;
        align-items: center;

        text-align: center;
        font-size: 24px;

        /*
        background: #4d4d4d;
        */
        background: #343434;

        height: 40px;
        line-height: 40px;
        margin-bottom:40px;

        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;

        font-family: serif;
    }

    .brand-title {
        /*color: #f0eade;*/
        color: #fff;
        position: relative;
        white-space: nowrap;
    }

    .brand-container .text-mini {
        position: absolute;
        left: 100%;
        margin-left: 10px;
    }

    .brand-title:hover {
        color: white;
    }
    .menu-greeting {
        text-align: center;
        font-size: 45px;
        margin-bottom:10px;
    }
    .menu-new {
        text-align: center;
        position: relative;

        transition: height 0.3s ease-in-out; 
        height: auto;
    }
    .menu-new input,
    .menu-new [name='goal'] {
        width: 100%;
        line-height: 26px;
        font-size: 16px;
        border-radius: 10px;
        border: 1px solid #CCC;
        padding: 10px 20px;
        box-sizing: border-box;
    }
    .menu-new input::placeholder,
    .menu-new [name='goal']::placeholder {
        font-size: 12px;
    }
    .menu-new input:focus,
    .menu-new [name='goal']:focus {
        outline: none !important;
    }
    .menu-button-start {
        position:absolute;
        right: 20px;
        bottom: 10px;
        padding: 5px 25px;
        border-radius: 10px;
        border: 1px solid #333;
        cursor: pointer;
        color: #EEF1FB;

        background: #3D4F95;
        border-color: #333;
    }
    .menu-button-start:hover {
        background: #5771D5;
        border-color: #666;
    }
    .menu-intro-container {
        position:relative;
        padding: 25px;
        margin-top: 45px;
        border: 1px solid #5771D5;
        border-radius: 10px;
        background: #ebeae0;
        display: flex;
        flex-direction: row;
        align-content: flex-start;
        justify-content: space-around;
    }
    .menu-intro-title {
        position:absolute;
        padding: 5px;
        left: 20%;
        right: 20%;
        top: -15px;
        text-align: center;
        border: 1px solid #5771D5;
        border-radius: 10px;

        background: #4d4d4d;
        /*color: #f0eade;*/
        color: #fff;
    }
    .menu-intro-item {
        padding: 10px 5px;
        cursor: pointer;
        border-radius: 10px;
        border: 1px solid #0000;
    }
    .menu-intro-item:hover {
        background: #f1efe9;
        border: 1px solid #CCC;
    }
    .menu-intro-item a {
        background: #f7f8fd;
        color: #161C35;
    }
    .menu-intro-item-title {
        text-align: center;
    }
    .menu-intro-item-image {
        text-align: center;
        -background: #ccc;
        width: 150px;
        height:  150px;
        border-radius: 10px;
    }
    .menu-previous {
        border-top: 1px solid #CCC;
        margin-top: 40px;
        position: relative;
        padding-top: 15px;
    }
    .menu-previous-label {
        position: absolute;
        top: -10px;
        left: 40%;
        right: 40%;
        text-align: center;
        background: #f5f4ef;
        padding: 2px 10px;
        color: #666;
        font-size: 80%;
        text-transform: lowercase;
    }
    .menu-previous-label.wide-label {
        left: 20%;
        right: 20%;
        font-weight: bold;
        text-transform: unset;
    }
    .menu-previous-container {

    }
    .menu-previous-item {
        border: 1px solid #CCC;
        margin: 15px auto;
        border-radius: 10px;
        padding: 10px 45px 10px 25px;
        position: relative;
        cursor: pointer;
        display: block;
        color: #161C35;
    }
    .menu-previous-item:hover {
        background: #fff;
        border: 1px solid #5771D5;
    }
    .menu-previous-item-label {

    }
    .menu-previous-item-status {
        position: absolute;
        right: 10px;
        top: 15px;
        font-size:  50%;
    }
    .menu-item-tag {
        position: absolute;
        font-size: 50%;
        background: #3D4F95;
        color: #EEF1FB;
        padding: 2px 10px;
        border-radius: 5px;
        top: -7px;
        left: 10px;
    }
    .menu-item-tag-invert {
        border: solid 1px #5771D5;
        background: #f7f8fd;
        color: #161C35;
    }


/* general ui */
    .floating-container {
        position: fixed;
    }

    .location-top-left {
        top: 0;
        left: 0;
    }

    .location-bottom-right {
        bottom: 0;
        right: 0;
    }

    .orientation-vertical {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }

    .dividing {
        border-bottom: 0px solid #f0eade;
    }
    h1.dividing,
    h2.dividing,
    h3.dividing {
        margin-bottom: 10px;
        margin-top: 50px;
        border-bottom-width: 1px;
        border-bottom-color: #999;
    }
    h1.dividing:first-child, 
    h2.dividing:first-child, 
    h3.dividing:first-child {
        margin-top:0;
    }
    .header {
        font-family: serif;
        text-transform: uppercase;
    }


/* application */

    .application {

    }
    .application > .container {

    }



    .card-collection > .title {
        padding-left: 10px;
        margin-bottom: 7px;
        margin-top: 13px;

        font-family: serif;
        text-transform: uppercase;
    }

    .hub {
        /* min-height: 570px; */
    }

    .card {
        --card-color: #e82b77;
        /*--card-content: #f0eade;*/
        --card-content: #fff;
        --card-height: 450px;
        --card-width: 300px;

        position: relative;
        overflow: hidden;

        width: var(--card-width);
        height: var(--card-height);
        min-height: 525px;

        border-radius: 5px;
        transition: all 0.4s cubic-bezier(0.63, 0.15, 0.03, 1.12);
        /*background-color: #f0eade;*/
        background-color: #fff;

        transition-delay: 0.05s;
        margin: 15px;

        /*
        box-shadow: 0 0 0 1px #ddd, 0px -0.3em 0px 0px var(--card-color) inset;
        */

        border: 0px solid var(--card-color);

        display: flex;
        flex-direction: column;
        z-index: 1;
    }
    .card > .descriptor,
    .card > .content {
        padding: 0 10px;
    }
    .card > .descriptor {
        height: 0;
    }
    .card > * {
        flex-grow: 0;
    }
    .card > .content {
        flex-grow: 1;
        font-size: 14px;
        color: var(--foreground-color);
        height: calc(100% - 61% - 10px);
        overflow: hidden;
    }
    .card > .header {
        position: relative;

        /*
        min-height: calc(61% + 30px);
        */
        height: calc(61% + 10px);
        padding: 10px;

        background-color: var(--card-color);
        color: var(--background-color);
    }

    .card > .descriptor .meta {
        color: #AAA;
    }

    .card > .descriptor .title {
        margin-top: 10px;
        font-size: 20px;
        font-weight: bold;
    }
    .card > .handle {
        width: 100%;
        border-bottom: 2px solid #666;
        margin: 10px 0;
        position: relative;
    }
    .card > .handle:after {
        content: "";
        position: absolute;
        left:  40%;
        right: 40%;
        height: 6px;
        background-color: #666;
        margin-top: -2px;
        border-radius: 5px;
    }







    .header .content-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        align-items: center;
    }
    .header .content-wrapper > * {
        max-width: 100%;
        max-height: 100%;
    }
    .content-wrapper.content-video video {
        border-radius: 15px;
        border: 2px solid;
        object-fit: cover;
    }

    .card > .content > .content-line {
        width: 100%;
        margin: 5px;
    }

    .card > .content > .content-line > .icon {
        min-width:30px;
        margin-right: 5px;
    }
    .card > .content > .content-line > .text, .card > .content > .content-line > .text * {
        color: var(--foreground-color);
    }
    .card .header > .content {
        height: 90%;
        width:  100%;
        align-items: center;
        justify-content: center;
    }
    .card > .header > .content, 
    .card > .header > .content * {
        color: var(--background-color);
        font-family: sans-serif;
        text-transform: none;
    }
    .fa-classic, .fa-regular, .fa-solid, .far, .fas, .fa {
      font-family: "Font Awesome 6 Free" !important;
    }







    .card-wrapper {
        position: relative;
    }

    .card-wrapper .external-decorators,
    .card-wrapper .internal-decorators {
        overflow: visible;
    }

    .cards {
        counter-reset: card_sequence;

        display: grid;
        grid-template-rows: 1fr;
        grid-auto-flow: column;
        grid-auto-columns: 345px;
        grid-column-gap: 8px;

        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        transition: 1000ms;

        padding: 0 10px;
        /*
        -justify-content: space-evenly;
        -overflow: visible;
        */
    }
    .cards > div {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    /*
    .cards > .card:first-child {
        -margin-left: 5px;
    }
    .cards > .card:last-child {
        -margin-right: 5px;
    }
    */



    .deck > .card {
        position: absolute;
    }

    .deck {
        position: relative;
        overflow: visible;
    }

    .deck > .tilt-right {
        /*
        transform: rotate(-3deg);
        transform: translateX(-10px) translateY(-10px) rotate(-1deg);
        */

        transform: translateX(-10px) translateY(-10px);
    }

    .deck > .tilt-left {
        /*
        transform: rotate(3deg);
        transform: translateX(10px) translateY(10px) rotate(-1deg);
        */

        transform: translateX(10px) translateY(10px);
    }





    .card > .header > .title {
        /*
        margin-top: 10px;
        */
        font-size: 18px;
        font-weight: bold;
        color: var(--card-content);
        text-align: center;
        font-family: sans-serif;

        overflow-y: visible;
        max-height: 21px;
    }

    .card .controls, .table-controls {
        position: relative;
        /* top: 0; */
        /* left: 0; */
        /* right: 0; */
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-start;
        column-gap: 7px;
        /*
        margin-right: 10px;
        */
        margin-top: -25px;
        z-index: 100;
    }

    .card .control, .table-controls .control {
        border-radius: 15px;
        height: 50px;
        width: 50px;
        background-color: var(--action-color);
        /*
        box-shadow: 0 0 0 1px #ddd, 0px -0.3em 0px 0px var(--card-color) inset;
        box-shadow: 0 0 0 1px #ddd, 0px -0.3em 0px 0px #ddd inset;
        */
        cursor: pointer;
    }
    .table-controls {
        margin-top: 0;
    }

    .card .control > .label, .table-controls .control > .label {
        display: none;
    }

    .card .control:hover, .table-controls .control:hover {
        /*
        box-shadow: 0 0 0 1px #ddd;
        */
    }

    .card .control > .icon, .table-controls .control > .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .card .control > .icon img, .table-controls .control > .icon img {
        width: 30px;
        height: 30px;
        /*
        margin-top: 10px;
        margin-left: 10px;
        */
    }


    .card > .descriptor .title {
        margin-top: 10px;
        font-size: 20px;
        font-weight: bold;
    }


/* specific cards */
    .card.person-card {
    }
    .card.person-card > .header {
        height: 50%;
        min-height: unset;
        text-align: center;
    }
    .card.person-card > .header > .title {
        margin-top: 20px;
        font-size: 20px;
        font-weight: bold;
        color: white;
        text-align: center;
    }
    .card.person-card > .header .profile-image {
        /* background: linear-gradient(180deg, var(--card-color) 40%, #FFF 40%); */
        padding-top: 50px;
    }
    .card.person-card > .header .profile-image img {
        border-radius: 175px;
        height: calc( 300px * 0.8 );;
        width: calc( 300px * 0.8 );
        object-fit: cover;

        display: block;
        margin-left: auto;
        margin-right:auto;
    }
    .card.person-card > .descriptor {
        margin-top: 50%;
        text-align: center;
    }
    .card.person-card > .descriptor > .title {
        display: none;
    }


    .card.info-card > .header,
    .card.info-card > .meta,
    .card.info-card > .content {
        padding: 10px;
    }


    .card > .header .task-cta {
        text-align: center;
        font-size: 30px;
        color: #FFF9;
        position: absolute;
        top: calc(50% - 15px);
        left: 0;
        right: 0;
        font-family: sans-serif;
        text-transform: none;
    }


    .card.carousel-card {

    }
    .card.carousel-card > .header > .carousel-item.active {
        position: absolute;
        top: 40px;
        left: 10px;
        right: 10px;
        bottom: 40px;
        /*
        background: #fff1;
        */
        border-radius: 15px;
    }





    .card.art-card {
        transition: background 0.5s;
    }

    .card.art-card .image, .card.art-card .header  {
        position: absolute;
        top:0;
        bottom:0;
        left:0;
        right:0;
        
        display: flex;
        justify-content: center;
        align-items: center;

        background-color: var(--background-color);
    }


    .card.art-card .header {
        -bottom: 5px;
    }
    .card.art-card .image {
        overflow: hidden;
        transition: background-color 0.5s;
    }

    .card.art-card .image img {
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: 100%;
        background-size: cover;
        transition: opacity 0.5s;
    }

    .card.art-card .content {
        text-align: center;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .card.art-card .content .title {
        font-size: 32px;
        font-weight: bold;

        margin-top: 15px;
        color: #161C35;

        text-transform: uppercase;
        transition: color 0.1s;
    }
    .card.art-card .content .subtext {
        width: 100%;
        color: #666;
    }

    .card.art-card.card-small .content {
        left: 0px;
        right: 0px;
        top: 0;
        /*
        display: block;
        */

        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    .card.art-card.card-small .content .title {
        font-size: 18px;
        margin: 0;
        font-family: serif;
        letter-spacing: 1px;
        font-weight: normal;
    }
    .card.art-card.card-small .content .subtext {
        font-size: 14px;
    }

    .card.art-card.selected .image img {
        opacity: 0;
    }

    .card.art-card.selected .image {
        background-color: var(--card-color);
    }

    .card.art-card.selected .content .title {
        color: var(--background-color);
    }


.no-scroll-snap {
    scroll-snap-type: none;
}
/*
.application > .container.module-container .hub.card-collection > .cards .card-wrapper:first-child > .card > .header > .title {
    display: none;
}
*/

.application > .container.header-title > .header.standalone {
    position: fixed;
    left: 0;
    right: 0;
    top: 26px;
    text-align: center;
    padding: 10px 0;
    font-weight: normal;
    font-size: 16px;
    cursor: pointer;
    z-index: 999;

    border-top: 2px solid #4d4d4d;
}


    .card-overview {
        display: inline-block;
    }

    .deck-menu .menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 3px;
        justify-content: flex-start;
        padding-top: 10px;
        margin-left: 10px;
    }
    .deck-menu .menu .card.card-small {
        position: relative;
        /* top: -6px; */
        /* right: -6px; */
        border: 5px solid var(--card-color);
        background-color: var(--card-content);
    }
        
    .deck-menu .menu .card.card-small.selected {
        background-color: var(--card-color);
    }

    .shadow-card {
        position: absolute;
        top: 0px;
        left: 0px;
        
        height: 450px;
        width: 300px;

        border: 4px solid var(--card-color);
        background-color: var(--card-content);

        z-index: 0;
        opacity: 0.6;
        border-radius: 5px;
    }

    .shadow-card:last-child {
        bottom: 0px;
        right: 0px;
        left: unset;
        top: unset;
        opacity: 0.2;
    }

@media only screen and (orientation: portrait) and (max-width: 767.98px) {
    .brand-title .text-mini {
        display: none;
    }
    .workspace {
        position: fixed;
        top: 40px;
        bottom: 12px;
        left: 0;
        right: 0;
        padding: 0;
    }
    .hub {
        padding-top: 15px;
    }
    .card {
        --card-height: 67vh;
        --card-width: 80vw;
        min-height: 500px;
    }
    .module-container .card {
        margin-top: 3px;
        margin-bottom: 7px;
    }
    .cards {
        grid-auto-columns: 83vw;
        scroll-snap-align: center;
        justify-items: center;
    }

    .cards::before,
    .cards::after {
        content: "";
        flex: 0 0 50%;
    }

    .vertical-scroll-container {
        overflow-y: scroll;
        height: 100%;
    }

    .application > .container {
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        transition: 1000ms;

        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        padding-bottom: 10px;
    }
    .application > .container .hub {
        scroll-snap-align: center;
        scroll-snap-stop: always;
        min-height: unset;
        padding-bottom: 10px;
    }
    .application > .container.no-scroll-snap {
        scroll-snap-type: none;
        padding-bottom: 20px;
        padding-top: 30px;
    }
    .application > .container.header-title {
        padding-top: 50px;
    }
    .application > .container.header-title:first-child {
        padding-top:75px;
    }
    .application > .container.header-title > .header.standalone {
        position: fixed;
        top: 0;
        padding: 3px 0;
        font-size: 14px;
        margin-top: 40px;
    }
}





    .card.card-small {
        //width: 85vw;
        height: 10vh;
        min-height: unset;
        margin: 10px;
        border: 5px solid var(--card-color);
        background-color: var(--card-content);
    }
    .shadow-card {
        //width: 85vw;
        height: 10vh;
    }



@media only screen and (orientation: portrait) and (max-width: 767.98px) {
    .card.card-small {
        /*
        width: 40vw;
        height: 64vw;
        */
        width: 85vw;
        height: 10vh;
        min-height: unset;
        margin: 10px;

        border: 5px solid var(--card-color);
        background-color: var(--card-content);
    }
    .card.card-medium {
        height: 25vh;
        min-height: 200px;
    }

    .shadow-card {
        /*
        width: 41vw;
        height: 64vw;
        */
        width: 85vw;
        height: 10vh;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    ::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .html {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

}



.button-wrapper {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.button-wrapper > .label {
    text-align: center;
    margin-top: 2px;
    /*
    font-weight: bold;
    */
    font-size: 14px;
}

.button {
    border-radius: 15px;
    height: 44px;
    width: 44px;
    background-color: var(--background-color);
    /*
    border: 3px solid var(--foreground-color);
    */
    border: 3px solid #343434;
    cursor: pointer;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}

.button > .label {
    display: none;
}

.button > .icon {
    background-position: center;
    background-size: cover;
    height: 75%;
    width: 75%;
}

.button.add_icon .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/add.png);
}
.button.chat_icon .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/action_closed.png);
}
.button.alert_icon .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/alert.png);
}
.button.modules_icon .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/modules.png);
}
.button.calendar_icon .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/calendar.png);
}


.button.add_icon:hover .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/add_active.png);
}
.button.chat_icon:hover .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/chat_active.png);
}
.button.alert_icon:hover .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/alert_active.png);
}
.button.modules_icon:hover .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/modules_active.png);
}
.button.calendar_icon:hover .icon {
    background-image: url(https://cdn.teamoptix.com/static/img/icon/calendar_active.png);
}






.floating-container {
    position: fixed;
    bottom: 23px;
    right: 15px;
    background-color: var(--background-color);
    border: 3px solid var(--foreground-color);

    background-image: url(https://cdn.teamoptix.com/static/img/icon/action_closed.png);
    background-position: center;
    background-size: cover;
    z-index: 999999;
}

.floating-container.active {
    background-color: var(--action-color);
    border-color: var(--action-color);

    background-image: url(https://cdn.teamoptix.com/static/img/icon/action_open.png);
}

.floating-container .container {
    display: none;
}

.floating-container.active .container {
    display: flex;
    position: absolute;
    bottom: 65px;
    flex-direction: column;
    gap: 10px;
    color: var(--foreground-color);
}

.floating-container.active .container:before {
    content: " ";
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -5px;
    right: -5px;
    border-radius: 15px;
    background-color: var(--background-color);
    /*
    border: 1px solid var(--foreground-color);
    */
    opacity: 0.8;
}

.floating-container > .container > .button {
    margin-bottom: 20px;
}

.control:hover {
    background-color: #ff4e11;
}
form .control:hover {
    background-color: unset;
}

.floating-container .button:hover {
    background-color: var(--action-color);
    border-color: var(--action-color);
}






.control {
   -webkit-transition: top 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0s, margin 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s;
   -moz-transition: top 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0s, margin 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s;
   -o-transition: top 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0s, margin 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s;
   -ms-transition: top 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0s, margin 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s;
   transition: top 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s, background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0s, margin 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s;
}






.action-content {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background: var(--action-color);
    padding: 10px;
    font-family: sans-serif;
    text-align: center;
}

.action-content.active {
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;

    animation: circular-wipe 0.3s forwards;
}

.card.control-active .control {
    display: none;
}

.card.control-active .control.active {
    position: absolute;
    top: -300px;
    left: 0;
    display: block;
    background: none;

    display: none;
}

.card.control-active .control.active > * {
    display: none;
}

.card.control-active .control.active:after {
    content: "<";
    color: var(--background-color);
    height: 50px;
    width: 50px;
    z-index: 9999999;
    font-size: 34px;
}

@keyframes circular-wipe {
    0% {
        transform: scale(0);
        opacity: 0;
        border-radius: 100%;
    }
    50% {
        border-radius: 80%;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        border-radius: 0;
    }
}


.action-content > * {
    max-height: 100%;
    max-width: 100%;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slider-container > .slider-image {
    height: 75%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.slider-container > .slider-image img {
    max-width: 100%;
    max-height: 70%;
}

.slider-container .slider-control {
    margin: 5px 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.slider-control input[type="range"] {
    width: 100%;
    margin: 0;
    padding: 0;
}

.control.active:hover {
    background-color: var(--action-color);
}








input[type="range"] {
  --g: 8px; /* the gap */
  --l: 5px; /* line thickness*/
  --s: 30px; /* thumb size*/
  
  width: 400px;
  height: var(--s); /* needed for Firefox*/
  --_c: color-mix(in srgb, var(--foreground-color), #000 var(--p,0%));
  -webkit-appearance :none;
  -moz-appearance :none;
  appearance :none;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
input:focus-visible,
input:hover{
  --p: 25%;
}
input:active,
input:focus-visible{
  --_b: var(--s)
}
/* chromium */
input[type="range" i]::-webkit-slider-thumb{
  height: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 var(--_b,var(--l)) inset var(--_c);
  border-image: linear-gradient(90deg,var(--_c) 50%, var(--background-color) 0) 0 1/calc(50% - var(--l)/2) 100vw/0 calc(100vw + var(--g));
  -webkit-appearance: none;
  appearance: none;
  transition: .3s;
}
/* Firefox */
input[type="range"]::-moz-range-thumb {
  height: var(--s);
  width: var(--s);
  background: none;
  border-radius: 50%;
  box-shadow: 0 0 0 var(--_b,var(--l)) inset var(--_c);
  border-image: linear-gradient(90deg,var(--_c) 50%, var(--background-color) 0) 0 1/calc(50% - var(--l)/2) 100vw/0 calc(100vw + var(--g));
  -moz-appearance: none;
  appearance: none;
  transition: .3s;
}
@supports not (color: color-mix(in srgb,red,red)) {
  input {
    --_c: var(--foreground-color);
  }
}


.action-content.active > .control {
    display: unset;
    border: 3px solid var(--foreground-color);
    height: 40px;
    width: 40px;
    position: absolute;
    bottom: -25px;
    right: 10px;
}

.action-content.active .control > .icon img {
    width: 25px;
    height: 25px;
    /*
    margin-top: 8px;
    margin-left: 8px;
    */
}
.card > .content .content-header {
    /* margin-top: -27px; */
    padding-bottom: 6px;
    font-weight: bold;
    font-size: 18px;
}


content-block > .container {
    padding: 0 10px;
    padding-top: 10px;
}
content-block a {
    color: var(--background-color);
}

.workspace > content-block {
    display: block;
    padding: 0 10px;
    color: var(--background-color);
}
table {
    color: var(--background-color);
}


.notification {
    color: var(--foreground-color);
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.btn-dark-hover:hover {
    background-color: #6666;
}
.buttton-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}
.buttton-grid-flexible .btn {
    width: unset;
    min-width: 90px;
    padding: 3px 5px;
}

.content-box.content-info table {
    color: var(--foreground-color);
}
h1 .btn,
h2 .btn,
h3 .btn,
h4 .btn,
h5 .btn {
    font-size: 14px;
    width: unset;
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 0px;
}

.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 13px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 20px;
    width: 0;
    background-color: #ff7444;
    text-align: center;
    line-height: 20px;
    color: white;
}



        @media (max-width: 768px) {
            .tingle-modal {
                width: 100% !important;
                height: 100% !important;
                max-width: 100% !important;
                max-height: 100% !important;
                border-radius: 0 !important;
            }
            .tingle-modal-box {
                height: 100% !important;

            }

            .tingle-modal-box__content {
                position: relative;
                padding-left: 2em;
                padding-right: 2em;
                padding-top: 25px;

                height: calc(100% - 120px);
            }
            .tingle-modal-box__content .progress-bar {
                position: absolute;
                bottom: 10px;
                left: 10px;
                right: 10px;
                width: unset;
            }

            .tingle-modal-box__footer {
                position: absolute;
                left: 0;
                right: 0;
            }

        }

.tingle-modal-box {
    background: #4d4d4d;
    color: #FFF;"
}
.tingle-modal-box__footer .tingle-btn {
    background: #000A;
}


.vertical-likert-input {
    max-width: 600px;
    margin: 0 auto;
}

.vertical-likert-input .option {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    background-color: #eee;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    color: #4d4d4d;
}

.vertical-likert-input .option input[type="radio"] {
    display: none; 
}

.vertical-likert-input .option.selected {
    background-color: white;
    border-color: black;
}

.vertical-likert-input .option:not(.selected):hover {
    background-color: #f0f0f0;
}



.highlighted {
    background-color: #ff7444 !important;
    color: #fff;
}

.tingle-modal-box__footer {
    display: flex;

    user-select: none; /* Prevents text selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    pointer-events: auto; /* Ensures clicks still work */
}

.tingle-modal-box__content {
    padding-bottom:10px;
}




.deck-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: scroll;

    z-index: 10000;
}

.deck-modal .deck-modal-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #4d4d4d;
}

.deck-modal .deck-modal-title {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #343434;
    border-bottom: 1px solid #999;
    z-index: 10;
    color: #fff;
    line-height: 40px;
    text-align: center;
}

.deck-modal .deck {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 45px;
}

/* Team Summary Modal Styles */
/*.team-summary-modal .tingle-modal-box {
    max-width: 600px;
}

.team-summary-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6em;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.team-summary-modal-content h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #4a4a4a;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.team-summary-text {
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.6;
}

.team-summary-text p {
    margin-bottom: 15px;
    color: #555;
}

.team-summary-text p:last-child {
    margin-bottom: 0;
}
*/

.deck-modal .deck-modal-close {
    position: fixed;
    top: 0;
    right: 0;
    color: white;
    font-size: 20px;
    z-index: 10;
    width: 50px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    text-align: center;
}

.clip-container {
    width: 100%;
    height: 100%;
}


.clip-container .clip-shape {
    shape-outside: border-box;
    height: 20px;
    width: 50px;
    float: right;
}

.clip-container.clip-count-2 .clip-shape {
    width: 110px;
}
.clip-container.clip-count-3 .clip-shape {
    width: 165px;
}
.clip-container.clip-count-4 .clip-shape {
    width: 220px;
}
.clip-container.clip-count-5 .clip-shape {
    width: 280px;
}


.heading-small {
    font-size: 16px;
    font-weight: bold;
}

ul.list-small {
    margin: 0;
    margin-bottom: 7px;
    font-size: 14px;
    margin-top: 3px;
}

ul.list-small li {
    text-transform: capitalize!important;
}

ul.list-no-decorators {
    list-style-type: none;
    padding: 0;
}
ul.list-no-decorators li {
    margin: 0;
    padding: 0;
}
ul.list-spaced li {
    margin-bottom: 5px;
}

.loading-wrapper {
    width: 100%;
    text-align: center;
}
.loading-wrapper.loading-wrapper-dark {
    color: black;
}
.loading-wrapper.loading-wrapper-dark .lds-ellipsis > div {
    background: black;
}
.loading-wrapper.loading-wrapper-no-message .loading-label {
    display: none;
}


.loading-wrapper.loading-wrapper-mini .lds-ellipsis {
  width: 40px;
  right: 5px;
}

.loading-wrapper.loading-wrapper-mini .lds-ellipsis div {
  position: absolute;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loading-wrapper.loading-wrapper-mini  .lds-ellipsis div:nth-child(1) {
  left: 10px;
  animation: lds-ellipsis1 0.6s infinite;
}
.loading-wrapper.loading-wrapper-mini .lds-ellipsis div:nth-child(2) {
  left: 0px;
  animation: lds-ellipsis2 0.6s infinite;
}
.loading-wrapper.loading-wrapper-mini .lds-ellipsis div:nth-child(3) {
  left: 10px;
  animation: lds-ellipsis2 0.6s infinite;
  display: none;
}
.loading-wrapper.loading-wrapper-mini .lds-ellipsis div:nth-child(4) {
  left: 20px;
  animation: lds-ellipsis3 0.6s infinite;
}
.table-controls .control .loading-wrapper {
    margin-top: 12px;
    margin-left: 5px;
}


p a {
    text-decoration: underline;
}
.ui.header .descriptor {
    text-transform: none;
}
.ui.html-content {
    padding: 0 10px;
}


.modal-content {
    max-height: 80vh; /* Limit modal height to 80% of the viewport height */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max height */
}
.modal-content input,
.modal-content textarea {
    width: 100%;
    margin-bottom:10px;
}

.modal-content table input,
.modal-content table textarea {
    margin-bottom: unset;
}


.dt-container .top-left,
.dt-container .bottom-left {
    float: left;
}

.dt-container .top-right,
.dt-container .bottom-right {
    float: right;
}

.dt-container {
    margin-top: 20px;
}

.dt-container .bottom-info {
    margin-top: 10px;
    text-align: center;
}



table.stripe>tbody>tr:nth-child(odd)>*, table.dataTable.stripe>tbody>tr:nth-child(odd)>*, table.dataTable.display>tbody>tr:nth-child(odd)>* {
    box-shadow: inset 0 0 0 9999px #3333;
}

table.team-effectiveness {
    border-spacing: 1;
}
table.team-effectiveness.current-only .effectiveness-prev {
    display: none;
}
table.team-effectiveness .review-question,
table.team-effectiveness .review-sparkline {
    margin: 10px 0;
}

table.team-effectiveness .review-question {
    font-size: 80%;
}

table.team-effectiveness .color-performing {
    /*border-top: #248dae 1px solid;
    border-bottom: #248dae 1px solid;*/
    /* background-color: #5bc0de; */
    background-color: #53c7e5;
}
table.team-effectiveness .color-norming {
    /*border-top: #143e1a 1px solid;
    border-bottom: #143e1a 1px solid;*/
    /* background-color: #38b44a; */
    background-color: #00be7e;
}
table.team-effectiveness .color-storming {
    /*border-top: #b38a05 1px solid;
    border-bottom: #b38a05 1px solid;*/
    /* background-color: #efb73e; */
    background-color: #ffcf2e;
}
table.team-effectiveness .color-forming {
    /*border-top: #922420 1px solid;
    border-bottom: #922420 1px solid;*/
    /* background-color: #df382c; */
    background-color: #d54077;
}

table.team-effectiveness-rounded > tbody > tr:first-child td:last-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

table.team-effectiveness-rounded > tbody > tr:nth-child(2) td:first-child {
    border-top-left-radius: 5px;
}

table.team-effectiveness-rounded > tbody > tr:last-child td:first-child {
    border-bottom-left-radius: 5px;
}
table.team-effectiveness-rounded > tbody > tr:last-child td:last-child {
    border-bottom-right-radius: 5px;
}



.review-label.active .fa-chevron-right {
    display: none;
}
.review-label:not(.active) .fa-chevron-down {
    display: none;
}
td.review-label.clickable-item > .fa {
    font-size: 70%;
    margin: 5px;
}


.review-label {
    width: 30%;
}
.review-response .review-label {
    padding-left: 40px !important;
}
.review-figure {
    width: 35%;
}
.review-details {
    width: 20%;
}
.review-sparkline {
    width: 100%;
    
}
.review-sparkline canvas {
    margin-right: -12%;
}

.notyf__toast {
    z-index: 99999999;
}

.notyf {
    z-index: 99999999;
}



        .hub .view-toggle {
            float: right;
        }

        .hub .view-toggle img {
            height: 22px;
        }

        .hub .view-toggle .view-btn {
            float: left;
            margin-left: 10px;

            cursor: pointer;
        }


.profile-portrait {
    border: 5px solid white;
}


.wellbeing-scored .wellbeing-score, .box-pill {
    color: #4d4d4d;
    background-color: #f0eade;
    padding: 3px 10px;
    border-radius: 15px;
}
.wellbeing-scored .wellbeing-score {
    font-size: 14px;
}
.wellbeing-scored[level="struggling"] .wellbeing-score {
    background-color: #ff7444;
}
.wellbeing-scored[level="surviving"] .wellbeing-score {
    background-color: #ffcf2e;
}
.wellbeing-scored[level="ok"] .wellbeing-score {
    background-color: #00be7e;
}
.wellbeing-scored[level="thriving"] .wellbeing-score {
    background-color: #53c7e5;
}

.box-pill-primary-bold {
    background-color: #ff7444;
    color: #4d4d4d;
}
.box-pill-primary-dark {
    background-color: #0d5259;
    color: #f0eade;
}
.box-pill-primary-accent {
    background-color: #c3e761;
    color: #4d4d4d;
}
.box-pill-secondary-neutral {
    background-color: #9147d1;
    color: #f0eade;
}
.box-pill-secondary-exceptional {
    background-color: #53c7e5;
    color: #4d4d4d;
}
.box-pill-secondary-positive {
    background-color: #00be7e;
    color: #4d4d4d;
}
.box-pill-secondary-poor {
    background-color: #ffcf2e;
    color: #4d4d4d;
}
.box-pill-secondary-bad {
    background-color: #d54077;
    color: #4d4d4d;
}

.wellness-incicator-label {
    font-size: 16px;
    line-height: 30px;
}


.control > .loading-wrapper > .lds-ellipsis {
    position: relative;
    right: unset;
    bottom: calc(-1 * 25%);
}

.control > .loading-wrapper {
    height: 100%;
}


.tingle-button-leave .leave-button-icon {
    display: none;
}
.tingle-button-leave {
    border-radius: 10px;
}

@media only screen and (orientation: portrait) and (max-width: 767.98px) {
    .tingle-modal-box__footer {
        padding: 5px;
    }

    .tingle-modal-box__footer .tingle-btn {
        margin-bottom: 0;
    }

    .tingle-modal-box__content {
        padding: 10px;
        height: calc(100% - 70px);
    }

    .tingle-modal--visible .tingle-modal-box__footer {
        overflow-x: scroll;
    }
    .tingle-modal-box__footer .icon-btn {
        flex-shrink: 0;
    }

    .tingle-button-leave .leave-button-text {
        display: none;
    }
    .tingle-button-leave .leave-button-icon {
        display: inline;
    }

    .tingle-modal-box__footer .tingle-btn.tingle-button-leave {
        border-radius: 10px;
        padding: 0;
        margin: 0;
        height: 40px;
        margin-top: 5px;
        width: 75px;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .tingle-modal--visible.tingle-modal--video-session .tingle-modal-box__footer {
        overflow-x: unset;
    }
}





@keyframes wipe_in_left {
  from {
      transform: translateX(-100vw);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes wipe_in_right {
  from {
      transform: translateX(+100vw);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes circular_wipe_grow {
    0% {
        transform: scale(0);
        opacity: 0;
        clip-path: circle(0% at center);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        clip-path: circle(150% at center);
    }
}

@keyframes circular_wipe_shrink {
    0% {
        transform: scale(5);      /* Start very large */
        opacity: 0;
        clip-path: circle(150% at center);
    }
    100% {
        transform: scale(1);      /* End at normal size */
        opacity: 1;
        clip-path: circle(100% at center);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


.pulse {
    animation: pulse 1.5s infinite ease-in-out;
}
.fly-in {
    animation: wipe_in_right 0.7s ease-out forwards;
}
.action_pointer {
    transform-origin: center;
    position: absolute;
    background: #ffcf2e;
    color: #4d4d4d;
    padding: 5px;
    z-index: 990;
    border-radius: 5px 0 0 5px;
}


.action_pointer::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px; /* Extend the arrow to the right */
    transform: translateY(-50%);
    border-width: 14px 0 14px 14px; /* top, right, bottom, left */
    border-style: solid;
    border-color: transparent transparent transparent #ffcf2e;
}



#global_requested_action_indicator {
    position: fixed;
    bottom: 30px;
    right: 20%;
    left: 20%;
    text-align: center;
    background: #ffcf2e;
    color: #4d4d4d;
    padding: 10px 40px; /* extra horizontal padding for triangles */
    z-index: 10000;
    cursor: pointer;
    border-radius: 10px;
}

#global_requested_action_indicator::before,
#global_requested_action_indicator::after {
    content: "\25BC"; /* Unicode downward pointing triangle */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #4d4d4d;
}

#global_requested_action_indicator::before {
    left: 10px;
}

#global_requested_action_indicator::after {
    right: 10px;
}

.button-wrapper.floating-container {
    background-image: unset;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;
}
.button-wrapper.floating-container > .button {
    position: absolute;
}

img.quad-chart-tooltip-icon {
    height: 18px;
    _width: 16px;
}

.quad-chart-tooltip-content {
    _background: #4d4d4d;
    text-align: center;
    border-radius: 5px;
    padding: 3px;
    background: #fff2;
    border: 1px solid white;
}

.quad-chart-wrapper {
    background-color: var(--card-color);
    border-radius: 5px;
}


.ui.card img.lock-overlay {
    position: absolute;
    max-width: 150px!important;
    background: #4d4d4d;
    border-radius: 30px;
    background-size: 150%;
    padding: 20px;
    border: 2px solid white;
    
    top: 25%;
    left: calc(50% - 194px / 2);
}
.ui.card .full-card.locked-wipe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0007;
}


.ui.card .external-decorators .decorator-banner {
    position: absolute;
    background: #d54077;
    color: white;
    
    text-align: center;
    padding: 3px 20px;
    bottom: 0;
    left: 0;
    right: 0;
    font-weight: bold;
}
.ui.card .external-decorators .banner-success {
    background: #00be7e;
    color: #4d4d4d;
}
.ui.card .external-decorators .banner-warning {
    background: #ff7444;
    color: #f0eade;
}


.tingle-modal-box__footer.showing-activity {
    background-color: #4d4d4d;
}


.icon-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    width: 40px;
    height: 40px;
    margin: 5px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: unset;
}
.icon-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.icon-btn.device-picker {
    border: 1px solid #777;
    border-radius: 20%;
}


.icon-wrapper {
  width: 80%;
}
.icon-block {
  margin-bottom: 6px;
}


.resources-container .filename a {
  color: white;
  text-decoration: underline dotted 1px;
}


.card .content .profile-portrait-wrapper {
  height: 100%;
}


.card .content .card-center-wrapper {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}


.histogram-chart {
    margin-bottom: 2rem;
    background-color: #fffa;
    padding: 20px;
    border-radius: 10px;
}




/* Prevent text selection on title for better UX */
.header-title-clickable {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Visual indicator that title is clickable */
.header-title-clickable .descriptor {
    transition: opacity 0.2s ease;
}

.header-title-clickable:hover .descriptor {
    opacity: 0.9;
}

/* Ensure controls don't interfere with title clicking */
.header-controls-container {
    pointer-events: auto;
    z-index: 2;
}

.header-controls-container > * {
    pointer-events: auto;
}




/* Teams-Specific Control Styling - Task 9.2 */
.teams-header-controls {
    display: inline-block;
    align-items: center;
    gap: 15px;
    border-radius: 6px;

    text-align: center;
    justify-content: center;
    align-items: center;

    position: relative;
}

.current-team-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 120px;
}

.current-team-display .team-name {
    font-weight: 600;
    font-size: 0.9em;
    line-height: 1.2;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.current-team-display .team-member-count {
    font-size: 0.75em;
    opacity: 0.7;
    line-height: 1;
    white-space: nowrap;
}

.team-selector-dropdown {
    align-items: center;

    position: absolute;
    right: -100px;
    top: 3px;
}

.team-selector-dropdown .ui.dropdown.button {
    font-size: 0.8em;
    padding: 6px 12px;
    min-height: unset;
    height: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.team-selector-dropdown .ui.dropdown.button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-selector-dropdown .ui.dropdown.button:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.2);
}

.team-selector-dropdown .ui.dropdown.button i.icon {
    margin-right: 6px;
    opacity: 0.8;
}

/* Message state for no teams */
.team-selector-message {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-selector-message .ui.disabled.text {
    font-size: 0.8em;
    opacity: 0.5;
    color: inherit;
}

/* Responsive design for teams controls */
@media (max-width: 992px) {
    .teams-header-controls {
        gap: 10px;
        padding: 6px 10px;
    }
    
    .current-team-display {
        min-width: 100px;
    }
    
    .current-team-display .team-name {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .teams-header-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
        width: 100%;
        max-width: none;
    }
    
    .current-team-display {
        width: 100%;
        min-width: unset;
    }
    
    .current-team-display .team-name {
        max-width: none;
        width: 100%;
    }
    
    .team-selector-dropdown {
        width: 100%;
    }
    
    .team-selector-dropdown .ui.dropdown.button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .teams-header-controls {
        padding: 8px;
        gap: 6px;
    }
    
    .current-team-display .team-name {
        font-size: 0.85em;
    }
    
    .current-team-display .team-member-count {
        font-size: 0.7em;
    }
    
    .team-selector-dropdown .ui.dropdown.button {
        font-size: 0.75em;
        padding: 8px 10px;
        height: 36px;
    }
}



.tingle-modal-box .text-content h3:first-child {
    border-bottom: solid 1px #CCC;
}

.tingle-modal-box .text-content h3 {
    margin-bottom: 5px;
}

.tingle-modal-box .text-content p {
    border-bottom: 1px solid #666;
    margin-top: 5px;
    padding-bottom: 15px;
}

.tingle-modal-box .text-content p:last-child {
    border-bottom: none;
}

.tingle-modal-box .domain-notes-display h3.dividing {
    border-bottom: solid 1px #CCC;
}
