.header-search {
    visibility: hidden;
}
.not-implemented-hide {
    display:none !important;
}
.not-implemented-gray {
    color: var(--scheme-divider);
}
.not-implemented-gray:hover {
    background:inherit !important;
    color: var(--scheme-divider) !important;
}
.tv-reply-detach {
    visibility:hidden;
}
.tickets-new-chk {
    display:none !important;
}
.account-subscription {
    padding: 1rem;
    display: flex;
    flex-direction: column;

}

.account-subscription-project,
.account-subscription-details,
.account-subscription-features,
.account-subscription-coupons,
.account-subscription-sims {
    counter-reset: simcounter;

    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 0.2rem;

    & > div {
        position: relative;

        counter-increment: simcounter;
        border: 1px solid #ccc;
        display: grid;
        grid-template-columns: max-content 1fr;
        gap: 0.2rem;
        padding-bottom: 0.2rem;

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

        strong {
            text-align: right;
            display: block;
            padding: 0 0.5rem;
        }

        span strong {
            display: inline-block;
            text-align: left;
            padding: 0;
        }

        & > span:has(strong) {
            display: grid;
            grid-template-columns: 3fr 2fr;
            align-items: center;
        }

        & > span:last-child {
            padding-right: 0.2rem;
        }

        &::before {
            content: counter(simcounter);
            font-weight: bold;
            grid-column: 1 / -1;
            text-align: center;
            padding: 0.2rem;
            background-color: #eee;
        }
    }
}

.account-subscription-sims {
    & > div {
        grid-template-columns: 4rem 4rem 1fr max-content 1fr 1fr;
        padding-bottom: 0;

        strong {
            font-weight: 400;
        }
        span {
            font-weight: 600;
        }

        span:last-child {
            text-align: right !important;
            font-weight: 500;
        }

        &::before {
            display: block;
            grid-column: 1;
            content: counter(simcounter);
        }
    }
}

.account-subscription-coupons {
    grid-template-columns: 1fr;

    & > div {
        grid-template-columns: 4rem max-content 2fr max-content 1fr;
        padding-bottom: 0;

        strong {
            font-weight: 400;
        }
        span {
            font-weight: 700;
        }

        &::before {
            display: block;
            grid-column: 1;
            content: counter(simcounter);
        }
    }
}

.account-subscription-warning {
    color: orangered;
    font-weight: bold;
}

.account-subscription-coupons > span {
    grid-column: 1 / -1;
    width: 100%;
    border: none;
    display: flex;
    font-size: 1.5rem;
    justify-content: center;
    align-items: center;
}

.account-subscription-features {
    grid-template-columns: 1fr;

    & > div {
        &::before {
            content: 'FEATURE ' counter(simcounter);
        }
    }
}

.account-subscription-features hr,
.account-subscription-project hr {
    width: 100%;
    box-sizing: border-box;
    border: none;
    height: 100%;
    background-color: #eee;
    grid-column: 1 / -1;
}

.account-subscription-details {
    grid-template-columns: 1fr 1fr;
}

.account-subscription-project {
    align-self: start;
}

.account-subscription-details > div.account-subscription-billing::before {
    content: 'BILLING DETAILS';
}

.account-subscription-details > div.account-subscription-project::before {
    content: 'PROJECT DETAILS';
}

.account-subscription-page {
    font-size: 0.9rem;
    .module-nav {
        display: none;
    }
    header.tabs {
        display: none;
    }
    header.header {
        display: none;
    }
    div.center {
        width: auto;
    }

    #main {
        padding-top: 0;
    }
}

.account-subscription-important {
    font-size: 1rem;
    font-weight: 800;
    display: inline-block;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.boards-view {
    display:flex;
}
.boards-view .row {
    display:flex;
    flex-direction: column;
    flex-grow:1;
    flex-shrink:0;
    flex-basis:0;
    padding: 1rem;
    padding-bottom:0;
}
.boards-view .row:first-child {
    padding-left:0;
    flex-grow:2;
}
.boards-view .row:last-child {
    padding-right:0;
}

.boards-view .row::after,
.bv-note {
    background: #fff;
    border: 2px solid var(--scheme-primary);
    margin-bottom:1rem;
    padding:1rem;
}
.bv-note:last-child {
    margin-bottom:0;
}
.bv-note header {
    background: var(--scheme-primary);
    padding:2px 2px 4px 2px;
    margin: -1rem;
    margin-bottom:1rem;
}
.bv-note .table-data {
    margin: -1rem;
}
.bv-note header button:last-child {
    float:right;
}
.bv-note header button {
    padding:0.2rem 0.7rem;
}
.bv-note footer {
    margin-top:1rem;
    margin-right:-1rem;
    margin-bottom:-0.7rem;
    overflow:hidden;
}
.bv-note footer div {
    background: #eeddce;
    padding:0.3rem;
    font-size:0.7rem;
    font-weight:bold;
    margin-right:1rem;
    background: lightblue;
    float:right;
    margin-right:0.3rem;
}
.bv-note-ghost {
    border-color: var(--scheme-divider);
    border-style:dashed;
}
.bv-note-ghost header {
    background: var(--scheme-divider);
}

/* add button */
.boards-view .row::after {
    content: '+';
    color: var(--scheme-divider);
    display:flex;
    align-items: center;
    justify-content: center;
    background:none;
    cursor:pointer;
    border-color: var(--scheme-divider);
    border-style:dashed;
    font-size:2rem;
    flex-grow:1;
    opacity:0;
    margin-bottom:0;
    margin-top:1rem;
}
.boards-view .row:empty::after {
    margin-top:0;
}
.boards-view .row:hover::after {
    animation: rowadd 300ms forwards;
}
@keyframes rowadd {
  from {
    opacity:0;
  }

  to {
    opacity:1;
  }
}
.std-form {
    padding:0;
}

.std-form-cols {
    display:flex;
}

.std-form-cols > div {
    padding:1rem;
}

.std-form-cols > div:first-of-type {
    flex-grow: 2;
}
.std-form-cols > div:last-of-type {
    flex-grow: 1;
}

.std-form select[multiple] {
    background: white;
}

.std-form label {
    display:block;
    padding:0.5rem 0;
}

.std-form input:not([type=checkbox]):not([type="radio"]),
.std-form textarea,
.std-form select {
    width: 100%;
    box-sizing: border-box;
    padding:0.5rem;
    font-size:1rem;
    background:white;
    box-sizing: border-box;
    border: none;
    border-color: Transparent;
}

.std-form select {
    padding:0.5rem 2rem 0.5rem 1rem;
    position:relative;
    background: var(--scheme-primary-light);
    border-radius: 2px;
    color: var(--scheme-link);
    font-weight: bold;
    position:relative;
}
.std-form select::before {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    content: '';
    -o-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -ms-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -moz-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    transform: rotate(0deg) translate3d(0px, -50%, 0px);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: #6c7a86 transparent transparent;
}

.std-form fieldset {
    border: 1px solid var(--scheme-divider);
}
.std-form fieldset > div {
    display:flex;
}
.std-form fieldset > div > div {
    flex-grow: 1;
}
.std-form .fc-field-controls {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem 0.5rem;
    border-left: 1px solid var(--scheme-divider);
}
.std-form .fc-field-controls button {
    margin-bottom: 0.5rem;
}
.std-form .fc-field-controls button:last-child {
    margin: auto 0 0 0
}
.std-form-double {
    display:flex;
}
.std-form-double > label {
    text-align:center;
    padding:0 0.5rem;
    margin-left: 0.5rem;
    cursor:pointer;
    position:relative;
    background-color: var(--scheme-primary-light);
    border-radius:2px;
    font-weight:bold;
    color: var(--scheme-link);
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.std-form-double > label:hover {
    background-color: var(--scheme-primary);
    color:white;
}
.std-form-double > label input {
    display:none;
}
.std-form-double > label input ~ .checkmark {
    color: transparent;
}
.std-form-double > label input:checked ~ .checkmark {
    color: var(--scheme-link);
}
.checkmark::after {
    content: '\2713';
}

/* custom checkbox */
.checkmark {
  display: inline-block;
  padding:0 0.5rem;
  background-color: #eee;
  font-size:1.5rem;
  margin-right:0.5rem;
  border-radius:2px;
}

.forms-create-fields-container fieldset {
    margin:1rem 0;
}

.forms-create-fields-container fieldset:first-child .btn-arrow-up,
.forms-create-fields-container fieldset:last-child .btn-arrow-down,
.forms-create-fields-container fieldset:first-child:last-child .btn-trash {
    background: var(--scheme-divider);
    cursor:default;
    color:white;
}


.forms-btn-add-field {

}

/* -------------------------------------------------------------------------- */
#autoComplete_wrapper {
    position: relative;
    display: inline-block;
}

.autoComplete_wrapper {
    flex-grow:1;
    height:100%;
}
.autoComplete_wrapper input {
    width:100%;
    height:100%;
}
  

  
  /* #autoComplete::placeholder {
    color: rgba(255, 122, 122, 0);
    transition: all 0.3s ease;
  }
  
  #autoComplete:hover::placeholder {
    color: rgba(255, 122, 122, 0.3);
    transition: all 0.3s ease;
    -webkit-transition: all -webkit-transform 0.3s ease;
  }
  
  #autoComplete:focus::placeholder {
    padding: 0.1rem 0.6rem;
    font-size: 1rem;
    color: rgba(255, 122, 122, 0.3);
    transition: all 0.3s ease;
    -webkit-transition: all -webkit-transform 0.3s ease;
  } */
  
  
  /* #autoComplete:focus::selection {
    color: #fff;
    background-color: rgba(255, 122, 122, 1);
  }
  
  #autoComplete:hover {
    padding: 0 2rem 0 3.5rem;
    color: rgba(255, 122, 122, 1);
    height: 3rem;
    width: 16.5rem;
    background-image: url(./images/magnifier.svg);
    background-size: 1.7rem;
    background-position: left 1.05rem top 0.7rem;
    transition: all 0.3s ease;
    -webkit-transition: all -webkit-transform 0.3s ease;
  }
  
  #autoComplete:focus {
    padding: 0 2rem 0 3.5rem;
    color: rgba(255, 122, 122, 1);
    height: 3rem;
    width: 16.5rem;
    border: 0.05rem solid rgb(255, 122, 122);
    background-image: url(./images/magnifier.svg);
    background-size: 1.5rem;
    background-position: left 1.05rem top 0.8rem;
    box-shadow: rgba(255, 122, 122, 0.1) 0px 0px 20px 5px;
  }
   */ 
#autoComplete_list {
    position: fixed;
    z-index: 1000;
    padding: 0;
    top: 5rem;
    left: 0;
    right: 0;
    margin-top: -2px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    transition: all 0.1s ease-in-out;
    -webkit-transition: all -webkit-transform 0.1s ease;
    height: 100vh;
    background:rgba(245, 245, 245, 0.85);
    display:flex;
    flex-direction: column;
}
#autoComplete_list:empty,
#autoComplete_list[hidden] {
    display:none;
}
#autoComplete_list > p {
  text-align: center;
  background:white;
  padding:0.6rem;
  border-top:5px solid #eee;
  margin-top:-5px;
}
#autoComplete_list > p,
#autoComplete_list > a {
  width: calc(100% - 47rem);
  align-self: center;
  margin-left: 5rem;
  margin-top:0;
  margin-bottom:0;
  background:white;
  box-sizing: border-box;
}
#autoComplete_list a {
    background: #e3e3e3;
    display:block;
    box-sizing: border-box;
    border:0.2rem solid #fff;
    display:flex;
    color: var(--scheme-link);
}
#autoComplete_list a:hover {
  color: var(--main-hover-color);
}
#autoComplete_list a i {
  padding:1rem;
  align-self: center;
}
#autoComplete_list a div {
  align-self: center;
}
#autoComplete_list a div > strong {
    font-weight:bold;
    display:block;
}
#autoComplete_list a > div.hlp-autocomplete-label {
  display:block;
  color:white;
  flex-grow:0;
  margin-left:auto;
  margin-right:0.5rem;
}
#autoComplete_list a > div.hlp-autocomplete-label i {
  padding:0.2rem;
  font-size: 12px;
  border-radius:2px;
}


  .autoComplete_result, .no_result {
    margin: 0.15rem auto 0.15rem 26rem;
    padding: 0.6rem;
    max-width: calc(100% - 47rem);
    border: 2px solid #e3e3e3;
    list-style: none;
    text-align: left;
    font-size: 1.1rem;
    box-sizing:border-box;
    color: rgb(123, 123, 123);
    transition: all 0.1s ease-in-out;
    background-color: #fff;
  }
  .no_result {
    text-align:center;
    padding:2rem;
  }
  
  .autoComplete_result::selection {
    color: rgba(#ffffff, 0);
    background-color: rgba(#ffffff, 0);
  }
  
  .autoComplete_result:hover {
    cursor: pointer;
    background-color: rgba(255, 248, 248, 0.9);
    border-left: 2px solid var(--main-active-color);
    border-right: 2px solid var(--main-active-color);
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
  }
  
  .autoComplete_result:focus {
    outline: none;
    background-color: rgba(255, 248, 248, 0.9);
    border-left: 2px solid var(--main-active-color);
    border-right: 2px solid var(--main-active-color);
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
  }
  
  .autoComplete_highlighted {
    opacity: 1;
    color: var(--main-active-color);
    font-weight: bold;
  }
  
  .autoComplete_highlighted::selection {
    color: rgba(#ffffff, 0);
    background-color: rgba(#ffffff, 0);
  }
  
  .autoComplete_selected {
    cursor: pointer;
    background-color: rgba(255, 248, 248, 0.9);
    border-left: 2px solid var(--main-active-color);
    border-right: 2px solid var(--main-active-color);
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
  }
  
  /* @media only screen and (max-width: 600px) {
    #autoComplete {
      width: 5rem;
    }
  
    #autoComplete:focus {
      width: 11rem;
      background-size: 1.6rem;
      background-position: left 1.1rem top 0.75rem;
    }
  
    .autoComplete_result:first-child {
      border-radius: 1rem 1rem 0 0;
    }
  
    .autoComplete_result:last-child {
      border-radius: 0 0 1rem 1rem;
    }
  
    .autoComplete_result:only-child {
      border-radius: 1rem;
    }
  }
  
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
    #autoComplete {
      border-width: 1px;
    }
  
    #autoComplete:hover {
      border-width: 1px;
    }
  
    #autoComplete:focus {
      border-width: 1px;
    }
  }
  
  @-moz-document url-prefix() {
    #autoComplete {
      border-width: 1px;
      background-size: 1.2rem;
      background-origin: border-box;
      background-position: center;
    }
  
    #autoComplete:hover {
      border-width: 1px;
    }
  
    #autoComplete:focus {
      border-width: 1px;
      background-position: left 1.1rem top 0.8rem;
    }
  } */


  .hlp-chk-list {
    padding-left: 1.5rem;
}

.hlp-chk-list li {
    margin: 0.5rem 0;
    list-style-type: none;
}

.hlp-chk-list li::before,
.hlp-chk-checked-special span::before,
.hlp-chk-addon span::before {
    display: inline-block;
    width: 1rem;
    padding: 0.2rem 0.1rem;
    margin-right: 0.5rem;
    font-family: 'Font Awesome 6 Sharp';
    font-size: 0.8rem;
    font-weight: 900;
    color: white;
    text-align: center;
    background: var(--scheme-divider);
    border-radius: 2px;
}

.hlp-chk-list li.hlp-chk-checked::before {
    background: var(--main-ok-color);
}

.hlp-chk-list li.hlp-chk-readonly:not(.hlp-chk-checked)::before {
    background: none !important;
    color: var(--scheme-secondary-text);
}

.hlp-chk-list li.hlp-chk-checked-trial::before {
    background: var(--main-important-color) !important;
}

.hlp-chk-list li.hlp-chk-expired::before {
    background: var(--main-error-color) !important;
}

.hlp-chk-list li::before {
    content: '\f00d'; /* fa-times */
}

.hlp-chk-list li.hlp-chk-checked::before {
    content: '\f00c'; /* fa-check */
}

.hlp-chk-list li.hlp-chk-locked::before {
    color: var(--scheme-secondary-text);
    content: '\f023'; /* fa-lock */
    background: none !important;
}

.hlp-chk-list li.hlp-chk-addon {
    margin-left: -1.5rem;
}

.hlp-chk-list li.hlp-chk-addon::before {
    margin-right: 0.3rem;
    content: '\f067'; /* fa-plus */
    background: var(--main-ok-color);
}

.hlp-chk-list li.hlp-chk-addon.hlp-chk-addon-core::before {
    margin-right: 0.3rem;
    content: '\f067'; /* fa-plus */
    background: var(--main-important-color);
}

.hlp-chk-list li.hlp-chk-addon.hlp-chk-addon-special::before {
    margin-right: 0.3rem;
    content: '\f067'; /* fa-plus */
    background: var(--scheme-primary-dark);
}

.hlp-chk-list li.hlp-chk-addon span::before {
    content: '\f00c'; /* fa-check */
    background: var(--main-ok-color);
}

.hlp-chk-list li.hlp-chk-expired.hlp-chk-addon span::before {
    background: var(--main-error-color) !important;
}

li.hlp-chk-checked-special span::after {
    display: inline-block;
    margin-left: 0.2rem;
    font-style: italic;
    color: var(--scheme-secondary-text);
    content: '[VIP Trial]';
}

.hlp-chk-list li.hlp-chk-checked-special {
    margin-left: -1.5rem;
}

.hlp-chk-list li.hlp-chk-checked-special::before {
    margin-right: 0.3rem;
    content: '\f067';
    background: var(--scheme-secondary-text);
}

.hlp-chk-list li.hlp-chk-checked-special span::before {
    content: '\e5d6';
    background: var(--scheme-secondary-text);
    outline: 2px solid var(--main-ok-color);
    outline-offset: -1px;
}

li.hlp-chk-checked-trial span::after {
    display: inline-block;
    margin-left: 0.2rem;
    font-style: italic;
    color: var(--scheme-secondary-text);
    content: '[trial]';
}

/* -- */
.hlp-chk-list-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-gap: 0;
}

.hlp-chk-list-form li {
    grid-column: 2;
    cursor: pointer;
}

.hlp-chk-list-form li.hlp-chk-list-col1 {
    grid-column: 1;
}

.hlp-chk-list-form li.hlp-chk-list-col1 span::before {
    display: inline-block;
    width: 1rem;
    padding: 0.2rem 0.1rem;
    margin-right: 0.5rem;
    font-family: 'Font Awesome 6 Sharp';
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--main-error-color);
    text-align: center;
    content: '\f00d'; /* fa-times */
    background: none;
    border-radius: 2px;
}

.hlp-chk-list-form li.hlp-chk-checked.hlp-chk-list-col1 span::before,
.hlp-chk-list-form li.hlp-chk-checked-locked.hlp-chk-list-col1 span::before {
    color: var(--main-ok-color) !important;
    content: '\f00c'; /* fa-check */
}

.hlp-chk-list-form li.hlp-chk-locked,
.hlp-chk-list-form .hlp-chk-checked-locked {
    cursor: default;
}

.hlp-chk-list-form li:not(.hlp-chk-locked):hover::before {
    background: var(--scheme-primary);
}

.hlp-chk-list-form .hlp-chk-checked-locked::before {
    color: var(--scheme-secondary-text);
    content: '\f00c'; /* fa-check */
    background: none !important;
}
/*
.hlp-chk-list-co2::before,
.hlp-chk-list-co2 span::before {
    background: var(--scheme-divider) !important;
} */
/* Animations */
@keyframes init-loading {
    from {
        width:0%;
        left:0;
    }
    25% {
        width:100%;
        left:0;
    }
    45% {
        width:0%;
        left:100%;
    }
    75% {
        width:100%;
        left:0;
    }
    to {
        width:0%;
        left:0
    }
}

@keyframes loading {
    from {
      background:#ddd;
    }
    50% {
      background:#f5f5f5;
    }
    to {
      background:#ddd;
    }
}

@keyframes loading-opacity {
    from {
        opacity: 0.5;
    }
    50% {
        opacity: 0.2;
    }
    to {
        opacity: 0.5;
    }
}

/** init */
.init-loading section div,
.init-loading section::before,
.init-loading section::after {
    content:'';
    display:block;
    height:5px;
    background:var(--scheme-primary-dark);
    position:absolute;
    top:0;
    left:0;
    z-index:9;
    animation-duration: 3s;
    animation-name: init-loading;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.init-loading section div {
    opacity:0.5;
    z-index:10;
    background:var(--scheme-primary-light);
    animation-delay: 500ms;
}
.init-loading section::after {
    z-index:11;
    opacity:0.5;
    background:var(--scheme-primary-light);
    animation-delay: 1s;
}
.init-loading section {
    text-align:center;
    position:relative;
    overflow:hidden;
    letter-spacing: 0.1rem;
}

/* Loading placeholders */
.menu-list.loading li a::before,
header.tabs.loading::before,
.table-loading .tabulator-cell::after {
    content: '';
    display:block;
    width:100%;
    height:1rem;
    background:#ddd;
    animation-duration: 1s;
    animation-name: loading;
    animation-iteration-count: infinite
}
.table-loading .tabulator-cell {
    /* fix for rownum */
    font-size:0px;
}
.menu-list.loading li a::before {
    animation-name: loading-opacity;
    background: var(--scheme-link);
    content: 'loading';
    border-radius:2px;
    width: 80%;
    display: inline-block;
}
.menu-list.loading li a:hover {
    background:none !important;
    cursor: default;
}
.menu-list.loading li a {
    color: rgba(0,0,0,0);
    white-space: nowrap;
}
.menu-list.loading li a span {
    display:none;
}

/* tabs header */
header.tabs.loading::before {
    content:'Loading';
    color:rgba(0,0,0,0);
    margin: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    height:auto;
    width: 40%;
    border-radius:2px;
}
header.tabs.loading > h1,
header.tabs.loading > a,
header.tabs.loading > button,
header.tabs.loading > form,
header.tabs.loading .table-filter {
    display:none;
} 

/* tickets view sidebar - icons */
.tv-sidebar.loading .tv-pin,
.tv-sidebar.loading .back,
.tv-sidebar.loading .tv-number,
.tv-sidebar.loading .tv-estimated,
.tv-sidebar.loading .tv-due,
.tv-sidebar.loading .tv-created,
.tv-sidebar.loading .tv-updated,
.tv-sidebar.loading .tv-agent,
.tv-sidebar.loading .tv-assignee,
.tv-sidebar.loading .tv-subscribers,
.tv-sidebar.loading .tv-subscribers-ext {
    color: rgba(0,0,0,0);
    border-radius:2px;
    background: var(--scheme-primary-text);
    animation-duration: 1s;
    animation-name: loading-opacity;
    animation-iteration-count: infinite;
}

.tv-sidebar.loading .tv-pin,
.tv-sidebar.loading .back {
    background: var(--scheme-link);
}
/* */
.tv-sidebar.loading .tickets-icons {
    color: rgba(0,0,0,0);
}
.tv-sidebar.loading .tickets-icons > span::before {
    content:'';
    width: 50%;
    height:1rem;
    display:inline-block;
    background: var(--scheme-secondary-text);
    animation-duration: 1s;
    animation-name: loading-opacity;
    animation-iteration-count: infinite;
}
.tv-sidebar.loading .tickets-icons > div {
    background: var(--main-normal-color);
    animation-duration: 1s;
    animation-name: loading-opacity;
    animation-iteration-count: infinite;
}

/* chk-list */
.tv-sidebar.loading .hlp-chk-list span {
    color:rgba(0,0,0,0);
    background: var(--main-normal-color);
    animation-duration: 1s;
    animation-name: loading-opacity;
    animation-iteration-count: infinite;
}.header {
    display:flex;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    align-items: stretch;
    border-bottom:1px solid #9E0F07;
    background: #C30D24;
    background-image: url('/img/background.jpg');
    background-size: cover;
    height:5rem;
    z-index:2;
    box-shadow: inset 0 -7px 9px -7px rgba(0,0,0,0.2);
}

.banner {
    box-sizing: border-box;
    top:0;
    right:0;
    height:100%;
    z-index: 5;
    background: rgba(255,165,0,0.3);
    color:#fff;
    position: absolute;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 0 1rem;

    i {
        font-size: 1.5rem;
        color: rgba(255,255,255,.82);
        margin-right: 1rem;
    }

    & > div {
        display: flex;
        flex-direction: column;
        line-height: 1.5rem;

        div {
            display: grid;
            grid-template-columns: 80px 1fr;
        }

        strong {
            text-align: center;
        }
    }
}

.header-logo {
    width:26rem;
    padding-left:1rem;
    padding-right:1rem;
    flex-shrink: 0;
    height:100%;
    box-sizing:border-box;
    z-index:1;
    border-bottom:1px solid #9E0F07;
    display:flex;

    color: white;
    align-items: center;
    font-size: 19.8px;
}
.header-logo img {
    flex-grow: 0;
    margin-right: 1.5rem;
    max-height: 50px;
}
.header-search {
    background:rgba(0,0,0,.26);
    height:100%;
    flex-grow:1;
    display:block;
    padding: 0 1rem;
    align-self: center;
    display:flex;
    align-items: center;
    position: relative;

    box-sizing:border-box;
    border-bottom:1px solid #9E0F07;

    transition: background 200ms, width 200ms;
}
.header-search .fa-search {
    color: rgba(255,255,255,.26);
    font-size:1.5rem;
    margin-right:1rem;
}
.header-search input {
    font-size:1.5rem;
    border: none;
    background:none;
    caret-color: #9E0F07;
    color: rgba(255,255,255,.82);
    text-overflow: ellipsis;
    outline:0;
}
/* focused header */
header.header:focus-within .header-buttons .btn-submit,
header.header:focus-within .banner {
    display:none;
}
header.header:focus-within .header-buttons {
    min-width:0;
}

.header-search:focus-within {
    background: rgba(255,255,255,.72);
}
.header-search:focus-within .fa-search {
    color: rgba(0,0,0,.26);
}
.header-search:focus-within input {
    color: inherit;
}
/* -- */

.header-search input::selection {
    color: transparent;
}
.header-buttons {
    padding: 0 1rem;
    min-width: 19rem;
    flex-shrink:0;
    flex-grow:0;
    display:flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border-bottom:1px solid #9E0F07;
}
.header-buttons a:link,
.header-buttons a:visited {
    text-transform: uppercase;
    padding:1rem 1.2rem;
}
.header-buttons a.btn-submit {
    padding:1rem;
}
.header-buttons a.btn-new-ticket {
    white-space: nowrap;
}

.header-buttons a.btn {
    border: 1px solid rgba(0,0,0,.28);
}

.header-buttons a.btn-docs {
    text-align:center;
    height:53px;
    box-sizing: content-box;
    font-size: 1.5rem;
    padding: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
    padding-left: .7rem;
    padding-right: .7rem;
}
.header-buttons .header-user {
    background: rgb(250, 176, 158);
    border-color: rgb(247, 137, 110);
    color: rgb(145, 35, 8);
}

.header-buttons a.btn-docs::after {
    display:none;
}

.header-buttons a {
    margin-right:0.7rem;
}
.header-buttons a:last-of-type {
    margin-right:0;
}
.module-nav {
    z-index: 10;
    box-sizing: border-box;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    flex-direction: column;
    width: 5rem;
    background: var(--scheme-primary);
    border-right: 1px solid var(--scheme-primary);
    box-shadow:
        inset -7px 0 9px -7px rgba(0 0 0 / 40%),
        inset 0 7px 9px -7px rgba(0 0 0 / 40%);

    a {
        &:link,
        &:visited {
            display: block;
            flex-grow: 0;
            padding: 1rem 0;
            color: var(--scheme-text);
            text-align: center;
            text-decoration: none;
            text-shadow: 0 0 2px rgba(0 0 0 / 40%);
        }

        &:hover,
        &.active {
            background: var(--scheme-primary-dark);
        }
    }

    i {
        font-size: 2rem;
    }

    span {
        display: block;
        margin-top: 0.2rem;
        font-size: 0.8rem;
        font-weight: bold;
        color: rgba(255 255 255 / 70%);
    }

    .sub {
        margin-top: 3rem;

        i {
            font-size: 1.5rem;

            &.fa-thumbtack {
                position: absolute;
                top: 0.4rem;
                right: 0.4rem;
                display: none;
                font-size: 0.8rem;
                color: rgba(0 0 0 / 40%);
                text-shadow: none;
            }
        }

        a {
            position: relative;
            flex-grow: 1;

            &.sub-pinned i.fa-thumbtack {
                display: block;
            }
        }
    }

    .settings {
        margin-top: auto;
        margin-bottom: 0.5rem;
    }
}
table {
    width:100%;
    border-spacing:0;
}

th {
    padding: 1rem 0.5rem;
    text-transform: uppercase;
    font-size:0.8rem;
    font-weight: bold;
}
th, td {
    text-align:left;
    margin:0;
    white-space: nowrap;
    /*text-overflow:ellipsis;*/
}
td {
    padding: 0.6rem 0.5rem;
    border-top: 1px solid #ddd;
}

.table-actions {
    padding: 0 1rem;
    text-align:right !important;
    color:#08C;
}

.table-data-monospace {
    display: flex;
    align-items: center;

    font-size: 0.85rem;
    font-weight: bold;
    font-family: monospace;
}

.table-data-monospace-c-sms,
.table-data-monospace-c-upgraded,
.table-data-monospace-c-upgraded-nochange,
.table-data-monospace-c-trial,
.table-data-monospace-c-riwl,
.table-data-monospace-c-trial-info,
.table-data-monospace-c-upgrade-info,
.table-data-monospace-c {
    margin: 0 3px;
    border: 2px solid #ccc;
    width: 40px;
    display: inline-block;
    text-align: center;
    font-family: var(--default-font-family);
}

.table-data-monospace-c-upgraded-nochange {
    width: 40px;
    visibility: hidden;
}

.table-data-monospace-c-trial-info {
    background: #eee;
    color: #888;
    box-sizing:border-box;
    width: calc(44px + 6px + 44px);
}


.table-data-monospace-c-upgrade-info {
    box-sizing:border-box;
    width: calc(44px + 6px + 44px);
}

.table-data-monospace-c-core,
.table-data-monospace-c-pro,
.table-data-monospace-c-sms,
.table-data-monospace-c-trial,
.table-data-monospace-c-riwl,
.table-data-monospace-c-package {
    --pill-color: var(--pkg-core-color);
    --pill-color-dark: hsl(from var(--pill-color) h s calc(l * 0.5));

    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-color: var(--pill-color-dark);
    font-size: 0.8rem;
    color: var(--pill-color-dark);
    font-weight: 800;
    width: 65px;
    height: 1.3rem;
    line-height: 1.3rem;
    box-sizing: border-box;
    padding-left: 0.4rem;
    background: none;
    border-radius: 2px;
    text-align: left;
    border-right: none;
    border-left: none;
    text-shadow: 0 0 2px rgba(255,255,255,0.7);

    i {
        font-size: 1.5rem;
    }

    span {
        display: flex;
        align-items: center;
        position: absolute;
        font-size: 0.8rem;
        font-weight: bolder;
        top: 0;
        right: 0;
        line-height: 10px;
        border-left: 2px solid var(--pill-color);
        color: white;
        background: var(--pill-color);
        justify-content: space-around;
        width: 16px;
        height: 100%;

    }
}


.icon-pkg-demo,
.icon-pkg-trial,
.icon-pkg-legacy,
.icon-pkg-core,
.icon-pkg-pro,
.icon-pkg-scff,
.icon-pkg-scce {
    --pill-color: var(--pkg-core-color);
    --pill-color-dark: hsl(from var(--pill-color) h s calc(l * 0.5));
    --fa-primary-color: var(--pill-color-dark);
    --fa-secondary-color: var(--pill-color);
    --fa-secondary-opacity: 1;

    font-size: 1.6rem;
    background-color: transparent;
    text-shadow: 0 0 2px rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border-radius: 80%;
    z-index: 1;
    margin-right: -0.3rem;
}

.icon-pkg-secondary {
    --fa-primary-color: var(--pill-color-dark);
    --fa-secondary-color: var(--pill-color-dark);
    --fa-secondary-opacity: 1;

    z-index: 2;
    position: absolute !important;
    font-size: 1rem;
    background: none;
    top: 50%;
    left: 0;
    display: block;
    text-align: center;
    width: 2.6rem;
    transform: translate(0, -50%);
    text-shadow: none;
}


.table-data-monospace-c-pd220 {
    border-color: #00535b;
    span {
        background: #00535b;
        border-color: #00535b
    }
}

.pkg-warning {
    background: orange;
}

.icon-pkg-pro,
.table-data-monospace-c-pro {
    --pill-color: var(--pkg-pro-color);
}

.icon-pkg-trial,
.table-data-monospace-c-trial {
    --pill-color: var(--pkg-trial-color);
    /* border: 2px solid #084c61;
    color: #084c61;
    background: none;
    span {
        background: #084c61;
        border-color: #084c61
    } */
}

.icon-pkg-legacy,
.table-data-monospace-c-legacy {
    --pill-color: var(--pkg-legacy-color);
}
.table-data-monospace-c-riwl {
    border: 2px solid rgb(66 84 24);
    color: rgb(66 84 24);
    background: none;
    span {
        background: rgb(66 84 24);
        border-color: rgb(66 84 24)
    }
}

.table-data-monospace-c-warning span {
    background: orange;
    color: purple;
}
.table-data-monospace-c-sms {
    border-color: green;
    color: green;
    span {
        background: green;
        border-color: green
    }
}
.table-data-monospace-c span {
    margin-left: 3px;
}
.table-data-monospace-c-upgraded-nochange,
.table-data-monospace-c-upgraded {
    opacity: 0.5;
    border-top:0;
    border-bottom:0;
    background: #ccc;
    font-size: 0.8rem;
}

.table-data-monospace-c-upgraded-nochange:first-child,
.table-data-monospace-c-upgraded:first-child {
    padding-right:15px;
}

.table-data-monospace-c.feature-type-default {
    border-color: transparent;
    color: var(--scheme-secondary-text);
    width: 60px;
}
.table-data-monospace-c.feature-type-special {
    --pill-color:var(--scheme-primary-dark);
    width: 60px;
}
.table-data-monospace-c.feature-type-demo {
    border-color: #084c61;
    color: #084c61;
    width: 60px;
}

.icon-pkg-scff,
.table-data-monospace-c-scff,
.table-data-monospace-c-special {
    --pill-color: var(--pkg-special-color);
}

.icon-pkg-scce,
.table-data-monospace-c-scce {
    --pill-color: var(--pkg-special-color);
}



.table-data-monospace-c-pro {
    --pill-color: var(--pkg-pro-color);
}

.table-data-release-codename {
    display: block;
    padding: 0 0.3rem;
    text-align: center;
    width: auto;
    font-weight: bold;
    line-height: 1rem;
    color: purple;
    border: 3px solid rgba(128, 0, 128, 0.25);
    outline: 1px solid rgba(128, 0, 128, 0.55);
    border-radius: 4px;
}

.table-data-release-date {
    border: 0;
    outline: 0;
    background: rgba(0 0 0 / 10%);
    margin: 0.2rem;
    padding: 0 0.2rem;
    width: auto;
    font-weight: bold;
    line-height: 1rem;
    color: rgba(0 0 0 / 70%);
    font-size: 0.8rem;
    border-radius: 4px;
}

/* ----------------------------------------- */

.table-loading .tabulator-row-even {
    background:#fff;
}
.table-loading .tabulator-row.tabulator-selectable:hover {
    background: #fff;
    cursor: default;
}
.table-loading .tabulator-row.tabulator-group  {
    display:none;
}

.table-error,
.table-empty {
    position:absolute;
    top:0;
    width:100%;
    z-index:1;
    padding-top:10rem;
    padding-bottom:10rem;
    text-align:center;
}

.table-data .tabulator-tableHolder {
    scrollbar-color: var(--scheme-divider) Transparent;
    scrollbar-width: thin;
}

/* tickets list */
.table-data .tickets-priority-normal {
    visibility:hidden;
}
.table-data a:link,
.table-data a:visited {
    font-weight:bold;
    color: var(--scheme-link);
}
.table-data a:hover {
    color: var(--scheme-accent);
}

.table-data-avatar {
    position: relative;
    font-weight: bold;
    padding: 0.3rem 0;
    margin-top: -0.3rem;
    margin-bottom: -0.3rem;
    text-align:center;
    width: 40px;
    border-radius:2px;
    line-height:1.3rem;
    font-size: 0.8rem;
}

.table-data-avatar-suffix {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    font-size: 0.5rem;
}

.table-filter {
    flex-grow:1;
    display:flex;
    padding-left:1rem;
    border-left: 1px solid var(--scheme-divider);
}
.table-filter i {
    color: var(--scheme-divider);
    flex-grow:0;
    margin-top:0.6rem;
}
.table-filter input {
    padding:0.6rem;
    border:0;
    background:none;
    flex-grow:1;
    outline:0;
}
.table-download {
    margin-right: 1rem;
}

.table-row-box {
    padding:0.6rem 0;
    background:#ddd;
    text-align:center;
    width: 100%;
    font-weight:bold;
}
.table-ts-warn {
    background: var(--main-important-color) !important;
}
.table-ts-red {
    background: var(--main-error-color) !important;

}

.table-not-important {
    color: var(--scheme-secondary-text);
}
span.table-not-important  {
    margin-left:0.3rem;
}
.tabulator-cell[title]:not([title=""]) {
    cursor:help;
}
.table-not-clickable .tabulator-row {
    cursor:default !important;
}

.tabulator-col.table-right-align .tabulator-col-content {
  text-align: right !important;
}

.tabulator-tree-level-1 .tabulator-cell:first-child {
    background: var(--scheme-divider);
}
.table-tree-orphan .tabulator-cell:first-child {
    background: var(--main-critical-color);
}
.table-tree-orphan .tabulator-cell:first-child::after {
    content: '?';
    font-weight:bold;
}
.table-ico-device .tabulator-cell:first-child::after,
.table-ico-trial .tabulator-cell:first-child::after {
    content: '\f0c3';
    font-family: "Font Awesome 6 Sharp";
    font-weight: 900;
    color: rgba(0,0,0,0.1);
    width:100%;
    text-align:center;
}
.table-ico-device .tabulator-cell:first-child::after {
    content: '\f1b2';
}
.table-tree-btn {
    cursor:pointer;
    color: var(--scheme-secondary-text);
}
/*.tabulator-row.tabulator-selectable:hover .table-tree-btn,*/
.table-tree-btn:hover {
    color: var(--scheme-link);
}
.tabulator-tree-level-1 .tabulator-cell:first-child {
    padding-left:0 !important;
    padding-right:0 !important;
}

.tabulator-unselectable * {
    color: var(--scheme-secondary-text);
}

.tabulator-row.tabulator-group {
    padding-top:8px;
}
.tabulator-row.tabulator-group,
.tabulator-row.tabulator-group:hover {
    background: #ccc;
}
.tabulator-row.tabulator-group span {
    color: var(--scheme-secondary-text);
    font-weight:normal;
}
.tabulator-row.tabulator-group .tabulator-arrow {
    border-left-color: var(--scheme-link);
    cursor:pointer;
}
.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow {
    border-top-color: var(--scheme-link);
}

.hlp-table-sub {
    border: 1px solid var(--scheme-divider);
    font-family: monospace;
    font-size: 0.9rem;
}
.hlp-table-sub tr,
.hlp-table-sub td {
    border:0;
    margin:0;
    padding:2px;
}

.hlp-table-calendar {
    display:flex;
}

.hlp-table-calendar div {
    display:flex;
    flex-direction:column;
}
.hlp-table-calendar input {
    width:130px;
    text-align:center;
    display:block;
    padding:0;
    height:auto;
    border-radius:0;
}
.hlp-table-calendar button {
    margin-right:0.5rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.conn-container {
    display: flex;
    align-items: center;

    span {
        padding: 0.2rem;
        font-family: monospace;
        font-size: 0.8rem;
        border: 1px solid var(--scheme-divider);
        border-radius: 0.2rem;
    }

    .fa-right,
    .fa-left,
    .fa-equals,
    .fa-right-left {
        color: var(--scheme-secondary-text);
        font-size: 0.8rem;
        margin: 0 0.2rem;

        &.nomargin {
            margin: 0;
        }
    }

    .annotated-value {
        width: 60px;
        margin-right: 0.5rem;
        text-align: center;

        &.value-long {
            width: 80px;
        }

        &.value-auto {
            width: auto !important;
        }

        &.value-first {
            margin-right: 0.2rem;
        }

        &.value-sub {
            width: 20px;
            padding: 0.3rem 0.2rem 0.3rem 0;
            margin-right: 0;
            margin-left: 0;
            font-weight: bold;
            line-height: 1;
            background: var(--scheme-divider-light);
            border-left: 0;
            border-radius: 0 0.2rem 0.2rem 0;
        }
    }

    .box,
    .box-title,
    .fa-tower-cell,
    .fa-stopwatch,
    .fa-snooze,
    .fa-ethernet,
    .fa-square-e,
    .fa-square-m,
    .fa-left-to-line,
    .fa-right-to-line,
    .fa-arrows-to-dotted-line,
    .fa-brackets-square,
    .fa-globe,
    .fa-microchip,
    .fa-cube {
        z-index: 10;
        padding: 0.3rem 0.2rem;
        margin-right: 0.2rem;
        margin-left: 0.2rem;
        font-size: 0.8rem;
        font-weight: bold;
        background: #bfdfb1;
        border: 1px solid var(--scheme-divider);
        border-radius: 0.2rem;

        &.modified {
            background: #f7f199;
            border-color: var(--main-important-color);
        }

        &.default {
            background: var(--scheme-divider-light);
        }

        &.value-sub {
            margin-right: 0;
            border-radius: 0.2rem 0 0 0.2rem;
            border-right: 0;
            padding-right: 0;
        }

        &.rotated {
            transform: rotate(90deg);
        }
    }

    .box-title {
        padding: 0.2rem;
        margin-right: -2px;
        background: var(--scheme-divider-light);
        border-radius: 0.2rem 0 0 0.2rem;

        &.modified {
            background: #f7f199;
            border-color: var(--main-important-color);
        }
    }

    .box-title + span {
        padding-left: 0.3rem;
    }
}

.conn-container-annotated {
    justify-content: flex-start;

    .fa-circle-info + span {
        &:last-child {
            font-family: var(--default-font-family);
            font-optical-sizing: auto;
            color: rgba(0 0 0 / 60%);
            border-color: transparent;
        }
    }

    .fa-circle-info {
        color: var(--scheme-secondary-text);
        font-size: 0.8rem;
        margin-left: 1rem;
    }
}

.conn-wrapper .conn-container:last-child {
    margin-top: 0.2rem;
}

.wrapper-subinfo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;

    &> div:last-child {
        padding-left: 0.4rem;
        font-size: 0.8rem;
        font-family: var(--default-font-family);
        font-optical-sizing: auto;
        color: rgba(0 0 0 / 60%);
    }

    .conn-container .annotated-value {
        width: 50px;
    }
}

.conn-src,
.conn-dst,
.conn-proxy,
.conn-proxyhost,
.conn-node {
    font-size: 0.8rem;
    font-family: monospace;
    border: 1px solid var(--scheme-divider);
    padding: 0.2rem;
    border-radius: 0.2rem;
}

.conn-src {
    padding-left: 0.4rem;
    margin-right: 0.5rem;
}

.conn-proxy {
    margin-right: 0.5rem;
    padding-left: 0.4rem;
}

.conn-node {
    padding-right: 0.4rem;
}

.conn-dst {
    padding-right: 0.4rem;
}

.conn-proxyhost {
    background: #bfdfb1;
    font-weight: bold;
    padding: 0.3rem 0.2rem;
    margin-left: -0.2rem;
    margin-right: -0.2rem;
    z-index: 10;
}
:root {
    --main-hover-color: #07a;
    --main-active-color: #08c;
    --main-ok-color: #7fb069;
    --main-ok2-color: #69b07dff;
    --main-error-color: #f25f5c;
    --main-critical-color: #ff8b42;
    --main-important-color: #ffbc42;
    --main-stopped-color: #084c61;
    --main-normal-color: #888;
    --main-quoted-color: #610857;

    --scheme-primary-dark: #C30D24;
    --scheme-primary-light: #ccc;
    --scheme-primary: #333;
    --scheme-accent: #C30D24;
    --scheme-text: #FFFFFF;
    --scheme-primary-text: #212121;
    --scheme-secondary-text: #757575;
    --scheme-divider: #BDBDBD;
    --scheme-divider-light: #E0E0E0;

    --scheme-link:#1b009b;
    --scheme-active:#1b009b;

    --scheme-danger: orange;

    /* package colors */
    --pkg-special-color: #E5485D;
    --pkg-pro-color: #B65FCF;
    --pkg-core-color: #4D8DFF;
    --pkg-trial-color: #3C8FA8;
    --pkg-demo-color: #D88A2D;
    --pkg-legacy-color: #9A9A9A;
    --pkg-lowcost-color: #7E9A3A;
}

:root {
    --default-font-family: 'Inter', sans-serif;

    font-family: var(--default-font-family);
    font-feature-settings: 'tnum', 'zero', 'lnum', 'cv01', 'ss01', 'ss02';
    font-variant-alternates: character-variant(alt-1) styleset(open-digits);
    font-variant-numeric: tabular-nums slashed-zero lining-nums;
    font-synthesis: none;
}

input,
select,
.tooltip,
button,
textarea {
    font-family: var(--default-font-family);
    font-feature-settings: 'tnum', 'zero', 'lnum', 'cv01', 'ss01', 'ss02';
    font-variant-alternates: character-variant(alt-1) styleset(open-digits);
    font-variant-numeric: tabular-nums slashed-zero lining-nums;
    font-synthesis: none;
}

@supports (font-variation-settings: normal) {
    :root {
        --default-font-family: 'InterVariable', sans-serif;

        font-family: var(--default-font-family);
        font-optical-sizing: auto;
        font-variant-numeric: tabular-nums slashed-zero lining-nums;
        font-synthesis: none;
    }

    input,
    select,
    .tooltip,
    button,
    textarea {
        font-family: var(--default-font-family);
        font-optical-sizing: auto;
        font-variant-numeric: tabular-nums slashed-zero lining-nums;
        font-synthesis: none;
    }
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

textarea, input, select, button {
    font-size:1rem;
}
a {
    text-decoration:none;
}

/* external link styles */
a[href*="//"]:not([href*="helpena.com"]):not([href*="admin.rayleighconnect.net"])::after {
    font-family: "Font Awesome 6 Sharp";
    font-weight:900;
    font-size:0.8rem;
    padding-left:0.5rem;
    content: '\f35d'; /* fa-external-link-alt */
    vertical-align: 0.1rem;
}

/* emojis */
.emoji {
    font-family: emoji;
}

.btn,
button {
    cursor:pointer;
    padding:0.5rem 1rem;
    box-sizing: border-box;
    border:none;
    font-size:1rem;
    vertical-align:middle;
    line-height:1.3rem;
    display: inline-block;
}

.btn,
button,
.tv-reply .selectr-selected {
    background: var(--scheme-primary-light);
    border-radius:2px;
    color: var(--scheme-link);
    font-weight:bold;
}

.btn-submit {
    background: var(--scheme-accent);
    color:#fff;
}

.btn:hover,
button:hover,
.tv-reply .selectr-selected:hover,
.tv-reply-visiblity label:hover {
    background: var(--main-hover-color);
    border-color: var(--scheme-primary);
    color:white;
}

/* INIT */
.init {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    box-sizing: border-box;
    display:flex;
    flex-direction: column;
    z-index:9998;
    background:#212121;
}
.init .header-logo {
    width: 100%;
    justify-content: space-between;
}

.init-loading {
    z-index:9999;
}
.init-loading span {
    text-transform:uppercase;
}
.init section {
    flex-grow:0;
    margin:auto;
    padding:2rem;
    box-shadow: 1px 2px 3px #000;
    border:1px solid #111;
    width:22%;
    background:#fff;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    .init {
        background:#fff;
    }
    .init section {
        width:80%;
        box-shadow:none;
        border:none;
    }
}

.init input[type=text],
.init input[type=email],
.init input[type=password] {
    width:100%;
    padding:1rem;
    box-sizing: border-box;
    box-shadow:none;
    border: 1px solid #ccc;
}

.init input[type=checkbox] {
    margin-right:0.5rem;
}
.init label div {
    background:#eee;
    border:1px solid #ccc;
    border-right:0;
    padding:1rem;
}
.init.init-login section {
    margin-bottom:2rem;
    position:relative;
    padding-top:94px;
}
.init h1,
.init h2,
.init h3 {
    text-align:center;
    margin: 0;
}
.init h2 {
    font-size:1rem;
    margin-top:0.5rem;
    margin-bottom:2rem;
}
.init h3 {
    font-size:1rem;
    margin-top:0.5rem;
    margin-bottom:2rem;
    font-weight:normal;
}
.init label {
    display:flex;
    margin: 1rem 0;
    align-items: center;
}
.init label.checkbox {
    margin: 0.5rem 0;
}
.init button {
    width:100%;
    box-sizing:border-box;
    margin-top:2rem;
    padding:0.5rem;
}
.init .sub {
    margin-bottom:auto;
    text-align:center;
}


/* FIXME:
box shadows like: (on focus)
color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
    */


/* init form error */
.init .error input[type=text],
.init .error input[type=email],
.init .error input[type=password] {
    border-color: var(--main-error-color);
}
.init .error label div {
    border-color: var(--main-error-color);
}
.init p.success {
    display:none;
}
.init span.error,
.init p.error {
    color: var(--main-error-color);
    margin:0;
    display:none;
}
.init .error p.error {
    display:block;
}
.init .error span.error {
    display:inline;
}
.init a:link,
.init a:visited,
.bp-link:link,
.bp-link:visited {
    color: var(--scheme-link);
}
.init a:hover,
.bp-link:hover {
    color: var(--main-hover-color)
}
.bp-link {
    font-weight:bold;
}

/* init password reset request */
.init .init-reset-request-form {
    display:none;
}
.init.init-reset-request .init-login-form {
    display:none;
}
.init.init-reset-request .init-reset-request-form {
    display:block;
}

.init-sub-passwd {
    overflow:hidden;
    margin-top:-0.5rem;
}
.init-sub-passwd a {
    float:right;
    font-size:0.9rem
}

.init.init-reset-request form.success p.success {
    display:block;
    font-weight:bold;
    width:100%;
    box-sizing:border-box;
    margin-top:2rem;
    padding:0.5rem;
    text-align:center;
    margin-bottom:0;
    font-size: 1rem;
    vertical-align: middle;
    line-height: 1.3rem;
}
.init.init-reset-request form.success button[type="submit"] {
    display:none;
}

/* init strong auth */
.init .init-strong-auth-form {
    display:none;
}
.init.init-strong-auth .init-strong-auth-form {
    display:block;
}
.init.init-strong-auth label:first-of-type {
    display:none;
}
.init.init-strong-auth label.init-strong-auth-form {
    display:flex;
}
.init.init-strong-auth .init-login-form {
    display:none;
}
.init.init-strong-auth .init-reset-request-form {
    display: none;
}

/* --- */


.hidden {
    display:none !important;
    max-width: 0 !important;
}

#main {
    display: flex;
    height: 100%;
    width: 100%;
    padding-top: 5rem;
    box-sizing: border-box;
}

nav label { /* TODO unused ? */
    display:block;
    margin-left:2rem;
    padding:0.5rem 0;
}
nav h1 {
    margin:0 -1rem;
    padding: 1rem;
    box-sizing: border-box;
    font-size:1.3rem;
}
nav h2 {
    text-transform: uppercase;
    font-size:1rem;
    padding-left:2rem;
    margin-top:2rem;
}
nav h1 + h2,
nav h2:first-child {
    margin-top:1rem;
}
nav h2 i.fa-fw {
    width: 2rem;
    text-align: left;
    margin-left:-2rem;
    display:inline-block;
}
nav ol {
    list-style-type:none;
    padding:0;
    margin:0 -1rem 0 0;
}
nav ol li {
    padding:0;
    margin:0;
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;

}
nav ol li > a {
    padding:0.5rem 0 0.5rem 2rem;
    display:block;
    flex-grow:1;
}
/* icon for more */
nav ol li a.more i::before {
    content: "\f141";
}
nav ol li.is-open a.more i::before {
    content: "\f00d";
}
nav ol li.is-open > a:first-child {
    color:inherit !important;
}
nav ol li.is-open a span {
    display:none;
}
nav ol li a.more {
    flex-grow:0;
    text-align:center;
    padding-left: 1rem;
    padding-right: 1rem;
}
nav ol li ul.more {
    width:100%;
    margin:0 0 0 2rem;
    padding:0;
    border-left:3px solid var(--scheme-divider);
    display:none;
}
nav ol li.is-open ul.more {
    display: block;
}
nav ol li ul.more li {
    padding-left:0;
    margin-left:0;
}
nav ol li ul.more li a {
    padding-left:0.5rem;
    margin-left:0;
}
nav ol li:not(.active) a:last-of-type {
    border-right: 3px solid transparent;
}
nav ol li:not(.active) a:last-of-type:hover {
    border-right-color: var(--scheme-divider);
}
nav ol li a:link, nav ol li a:visited {
    color: var(--scheme-link);
}
nav ol li a:hover {
    background:#eee;
}
nav ol li.is-open > a:first-child:hover {
    background: transparent;
    cursor:default;
}
nav ol li.active:not(.is-open) {
    font-weight: bold;
    border-right: 3px solid var(--scheme-link);
}

.center {
    width: 50%; /* hack for overflows */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.tabs {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.4);
    z-index: 10;
    border-bottom: 1px solid var(--scheme-divider);
}
.tabs h1 {
    margin:0;
    padding:1rem;
    font-size:1.3rem;
    font-weight: bold;
}
.tabs a.active {
    color: var(--scheme-accent);
}
.tabs a > small {
    color: var(--scheme-secondary-text);
    vertical-align: 1px;
}
.tabs a.active > small {
    vertical-align: 2px;
}
.tabs > a {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-weight: bold;
    color: var(--scheme-link);
    font-size: 1.3rem;
    padding: 1rem 0.6rem;
}
.tabs > a:has(i) {
    font-size: 1rem;
}

.tabs-short {
    overflow: auto;
    background: #f5f5f5;
}
.tabs-short > .table-filter {
    flex-grow: 10;
}
.tabs-short > a {
    flex-grow: 1;
}
.tabs > a > i {
    display:block;
}
.tabs a:hover {
    color: var(--scheme-accent);
}
.tabs a.active:hover {
    color:var(--scheme-text-primary);
}
.tabs sup {
    color: var(--scheme-danger);
}
.tabs .tabs-separator {
    flex-grow: 0;
    width:1px;
    background:var(--scheme-divider);
    height:2rem;
}

.tabs-hidden:not(.active) {
    display:none;
}

.content {
    padding:1rem;
    padding-top:0;
    flex-grow:1;
    background:#f5f5f5;
    overflow-y: auto;
    scrollbar-color: var(--scheme-divider) Transparent;
    scrollbar-width: thin;
}
.content-table {
    padding:0;
    background:#fff;
}

header.mod-header {
    display:flex;
    margin-top:0;
    align-items:center;
    z-index:1;
    background: var(--scheme-primary-light);
    border-bottom: 1px solid var(--scheme-divider);
    padding:1rem;
    box-shadow:
        inset 0 7px 9px -7px rgba(0,0,0,0.4),
        0 2px 5px 0 rgba(0,0,0,0.16);
}

header.mod-header h1 {
    margin:0;
    font-size:1.5rem;
}

header.mod-header .btn {
    margin-left:auto;
}



.btn span {
    font-size:1rem;
    text-transform: uppercase;
}
.btn input {
    margin: -0.5rem 0 0 0;
    padding:0;
}

.btn-prefix {
    color:#888;
}

/* sidebar */
.sidebar {
    width:21rem;
    box-sizing:border-box;
    padding:1rem;
    flex-shrink:0;
    overflow:hidden;
    z-index:1;
    background: var(--scheme-primary-light);
    box-shadow: inset -7px 0 9px -7px rgba(0,0,0,0.4),
                inset 0 7px 9px -7px rgba(0,0,0,0.4);
}
.sidebar-right {
    box-shadow: inset 7px 0 9px -7px rgba(0,0,0,0.4),
                inset 0 7px 9px -7px rgba(0,0,0,0.4);
}
.sidebar-left {
    padding-top:0;
}
.sidebar hr {
    box-shadow:0;
    border:0;
    background: var(--scheme-divider);
    height:2px;
}

@media only screen and (max-width: 960px) and (pointer: fine) {
    .sidebar-left {
        width:0;
        padding:0;
        overflow:hidden;
    }
    .sidebar-left::after {
        font-family: "Font Awesome 5 Pro";
        content: "\f061"; /* fa-forward */
        font-weight:bold;

        color: var(--scheme-primary-text);
        display:block;
        padding:5vh 0.5rem 5vh 0.5rem;
        background: var(--scheme-primary-light);
        border:1px solid var(--scheme-divider);
        position:absolute;
        top:50%;
        left: 5rem;
        box-shadow: 1px 2px 3px #ccc;
    }
    .sidebar-left:hover {
        width:21rem;
        padding:1rem;
    }
    .sidebar-left:hover::after {
        display:none;
    }
}

.c-tv .sidebar .tickets-icons {
    margin-bottom:0.5rem;
}
.c-tv .sidebar h2,
.tickets-view h2 {
    margin-top:0;
    padding-top:1rem;
}
.c-tv .sidebar h2 {
    display:flex;
    flex-wrap:wrap;
    align-items: center;
}
.c-tv .sidebar h2 a {
    font-size:1rem;
    color: var(--scheme-primary-dark);
}
.c-tv .sidebar h2 a.back {
    font-weight:bold;
}
.flex-break {
    display:block;
    flex-basis:100%;
    height:0;
    width:100%
}
.c-tv .sidebar h2 a.tv-pin {
    margin-left:auto;
}
.c-tv .sidebar h2 a.tv-back {
    margin-top:0.5rem;
}
.c-tv .sidebar h2 a.tv-pin,
.c-tv .sidebar h2 a.back {
    color: var(--scheme-link);
}
.c-tv .sidebar h2 a.back i {
    margin-right:0.3rem;
}
.c-tv .sidebar h2 a:hover {
    color:#08c;
}

.c-tv .sidebar h3 {
    font-size:1rem;
    color: var(--scheme-primary-dark);
}


button[disabled]:not(.disabled):not(.btn-working) {
    background: none !important;
    color: var(--scheme-secondary-text) !important;
    cursor: default !important;
}
button.disabled-lock-icon i {
    display:none;
}
button.disabled-lock-icon::before {
    font-family: "Font Awesome 5 Pro";
    content: "\f023"; /* fa-lock */
}
option.disabled,
option.disabled:hover,
button.disabled,
button.disabled:hover {
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.1) 10px,
        rgba(0,0,0,0.2) 10px,
        rgba(0,0,0,0.2) 20px
    ) !important;
    color: var(--scheme-secondary-text) !important;
    cursor: default !important;
}
button.disabled:not(.selectr-option)::before,
option.disabled:not(.selectr-option)::before {
    font-family: "Font Awesome 5 Pro";
    content: "\f023"; /* fa-lock */
    margin-right:0.5rem;
}
button.disabled-no-icon::before {
    content: '' !important;
    margin-right: 0 !important;
}


.hlp-flex-row-break {
    flex-basis: 100%;
    height: 0;
}

.hlp-header-hide-buttons button {
    display: none;
}

/* hlp-page-error */
.hlp-page-error div {
    display:flex;
    align-items:center;
    height:100%;
    flex-direction:column;
}
.hlp-page-error i {
    font-size:4rem;
    color:var(--scheme-divider);
    margin-top:auto;
}
.hlp-page-error p {
    color:var(--scheme-secondary-text);
    margin-bottom:auto;
    text-align:center;
    line-height:2rem
}


/* pika hack */
.hlp-pika-btn {
    width: calc(100% + 16px);
    display:block;
    clear:left;
    margin:12px -8px -8px -8px;
}

.hlp-info-tooltip {
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #ccc;
    margin-left: 0.5rem;
    color: #666;
}

button.check-ok,
button[disabled]:not(.disabled):not(.btn-working).check-ok {
    outline: 2px solid var(--main-ok-color) !important;
    color: var(--main-ok-color) !important;
}

button.check-warning,
button[disabled]:not(.disabled):not(.btn-working).check-warning {
    outline: 2px solid var(--main-critical-color) !important;
    color: var(--main-critical-color) !important;
}

.bp-conn-debug,
.bp-orders-count,
.bp-tickets-count {
    color: var(--scheme-link) !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    outline: 2px solid var(--scheme-link);
    border-radius: 0.1rem;
    min-width: 1.5rem;
    height: 15px;
    box-sizing: border-box;
    font-weight: 800;
    text-align: center;
    font-size: 1rem;
    border: 2px solid var(--main-critical-color);
    &:empty {
        display: none;
    }
}

.bp-conn-debug {
    outline-color: var(--main-important-color);
}

.tabs > a.active > .bp-conn-debug,
.tabs > a.active > .bp-orders-count,
.tabs > a.active > .bp-tickets-count {
    border: none;
    color: var(--scheme-accent) !important;
    outline-color: var(--scheme-accent);
}

.tabs > a.disabled {
    color: #aaa !important;
    cursor: default !important;
}

.bp-amrep {
    display: flex;
    align-items: center;
}

button[disabled].color-warning:not(.hack) {
    background: var(--scheme-danger) !important;
    color: rgba(0, 0, 0, 0.8) !important;

    i {
        color: rgba(0, 0, 0, 0.8) !important;
    }
}

.tabulator-data-tree-control-hide .tabulator-data-tree-control {
    display: none !important;
}
/* Modal container, styled only when not docked */
.hlp-modal:not(.hlp-docked) {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    box-sizing: border-box;
    display:flex;
    flex-direction: column;
    z-index:9998;
    background:rgba(245, 245, 245, 0.75);
}

.hlp-modal-open {
    animation-duration: 100ms;
    animation-name: hlp-modal-open;
    animation-fill-mode: forwards;
    animation-timing-function:  ease-in;
    transform:scaleY(.01) scaleX(0);
}
.hlp-modal-closed {
    animation-duration: 100ms;
    animation-name: hlp-modal-open;
    animation-fill-mode: forwards;
    animation-direction: reverse;
    animation-timing-function:  ease-in;
}


@keyframes hlp-modal-open {
    0% {
        transform:scaleY(.005) scaleX(0);
    }
    50% {
        transform:scaleY(.5) scaleX(0.5);
    }
    100% {
        transform:scaleY(1) scaleX(1);
    }
}

/* Main modal element */
.hlp-modal form {
    display: block;
    flex-grow: 0;
    margin: auto;
    padding: 0;
    box-shadow: 1px 2px 3px #ccc;
    border: 1px solid #ddd;
    width: 22%;
    background: #fff;
    position: relative;
}

@keyframes hlp-modal-open-backup {
    0% {
        transform:scaleY(.005) scaleX(0);
      }
      50% {
        transform:scaleY(.005) scaleX(1);
      }
      100% {
        transform:scaleY(1) scaleX(1);
      }
}

/* Modal loading mask */
.hlp-modal .hlp-modal-loading {
    display:none;
    position:absolute;
    width:100%;
    height:100%;
    background: #fff;
    top: 0;
    left:0;
    align-items: center;
    justify-content: center;
    font-weight:bold;
    z-index:100;
}

/* Modal loading state */
.hlp-modal .loading .btn-close {
    visibility:hidden; /* TODO: maybe allow closing loading modals? */
}
.hlp-modal .loading .hlp-modal-loading {
    display:flex;
}

/* Modal submitted state */
.hlp-modal .submitted footer .btn-submit,
.hlp-modal .submitted footer .btn-cancel {
    display:none;
}
.hlp-modal .submitted label > div i {
    color: var(--scheme-divider);
}
.hlp-modal .submitted footer .btn-working {
    display: block;
}

/* Modal footer */
.hlp-modal footer .btn-working {
    display: none;
    background: var(--scheme-divider);
    cursor:default;
    color:white;
}
.hlp-modal footer .btn-dock {
    margin-left:auto;
}

/* Modal content */
.hlp-modal-content {
    padding: 1rem;
}

/* Modal error and error state */
.hlp-modal p.error {
    visibility: hidden;
    text-transform: capitalize;
    color: var(--main-error-color);
}
.hlp-modal form.error p.error {
    visibility: visible;
}
.hlp-modal form.error select,
.hlp-modal form.error input,
.hlp-modal form.error textarea,
.hlp-modal form.error label div {
    border-color: var(--main-error-color);
}

/* Modal header */
.hlp-modal header {
    background: var(--scheme-primary);
    font-weight:bold;
    color:white;
    cursor:pointer;
    display:flex;
    align-items: center;
    padding-left:0.5rem;
    position:relative;
    z-index:200;
}
.hlp-modal header span {
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
    flex-grow:1;
}
.hlp-modal header .btn:link,
.hlp-modal header .btn:visited {
    flex-grow:0;
    padding: 0.5rem;
    color:white;
    background:none;
}
.hlp-modal header .btn:hover {
    background: var(--scheme-primary-dark);
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    .hlp-modal {
        background:#fff;
    }
    .hlp-modal form,
    .hlp-modal-wide form {
        width:80%;
        box-shadow:none;
        border:none;
    }
}
/* ---- */
.pricing-form label,
.hlp-modal label {
    display:flex;
    margin: 1rem 0;
    align-items: stretch;
}

.c-tv .hlp-modal select, /* FIXME: hack */
.hlp-modal .selectr-selected,
.hlp-modal select,
.hlp-modal input[type=text],
.hlp-modal input[type=email],
.hlp-modal input[type=number],
.hlp-modal input[type=password],
.hlp-modal input[type=date],
.hlp-modal input[type=time],
.pricing-form select,
.pricing-form input[type=text],
.pricing-form input[type=email],
.pricing-form input[type=number],
.pricing-form input[type=password],
.pricing-form input[type=date],
.pricing-form input[type=time],
.hlp-modal textarea {
    width:100%;
    padding:1rem;
    box-sizing: border-box;
    box-shadow:none;
    border: 1px solid #ccc;
}
.hlp-modal .selectr-selected {
    border-radius: 0;
}
.hlp-modal input[type=time] {
    width: auto;
    min-width:100px;
    text-align:center;
    margin-left:1rem;
}
.hlp-modal textarea {
    min-height: 4rem;
    height: 200px; /* FIXME: height should be calculated */
    margin: 0;
}
.hlp-modal label div.awesomplete {
    width:100%;
}

.pricing-form label > div:first-of-type,
.hlp-modal label > div:first-of-type {
    background:#eee;
    border:1px solid #ccc;
    border-right:0;
    padding:1rem;
}

.hlp-modal label.hlp-modal-checkbox {
    border:1px solid #ccc;
}
.hlp-modal label.hlp-modal-checkbox > div:first-of-type {
    border:0;
}

.hlp-modal footer {
    margin-top: 1rem;
}
.hlp-modal footer {
    display:flex;
    flex-basis: 0;
}
.hlp-modal footer button {
    xflex: 1;
}
.hlp-modal footer button.btn-submit {
    xflex: 2;
    margin-right: 1rem;
}

/* header avatar */
.hlp-modal-avatar {
    display: flex;
    align-items: center;
}

.hlp-modal-avatar h1 {
    margin:0;
    font-size:1rem;
    font-weight:bold;
}

.hlp-modal-avatar span {
    display: block;
    font-weight: normal;
}

.hlp-modal-avatar div {
    background: #eeddce;
    padding:1rem;
    font-weight:bold;
    margin-right:1rem;
}

/* viewonly */
.hlp-modal-wide form {
    width: 40%; /* TODO: abandon when docked */
}
.hlp-modal-60 form {
    width: 60%; /* TODO: abandon when docked */
}
.hlp-modal-xl form {
    width: 80%; /* TODO: abandon when docked */
}
.hlp-modal-viewonly form select,
.hlp-modal-viewonly form input,
.hlp-modal-viewonly form textarea {
    background: white;
    color: var(--scheme-primary-text);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    resize: none; /* for textarea */
    border: 0 !important;
}
.hlp-modal-viewonly label div:first-of-type {
    background:none;
    border: 0;
    color: var(--scheme-secondary-text);
}
.hlp-modal-viewonly-long textarea {
    height: 800px;
    font-family: monospace;
}

.hlp-modal-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}
/* divs */
.hlp-modal-container > div {
    flex-basis: 48%;
}
.hlp-modal-asymetric .hlp-modal-container > div {
    &.hlp-modal-col1 {
        flex-basis: 68%;
    }
    &.hlp-modal-col2 {
        flex-basis: 30%;
    }
}
.hlp-modal-container > div:empty {
    display:none;
}
.hlp-modal-container > div:empty + div {
    flex-basis: 100% !important;
}

.hlp-modal-container label:last-child {
    margin-bottom:0;
}
/* buttons */
.hlp-modal-container > button {
    margin-left: 1rem;
    text-align:center;
    padding:5rem 0;
    flex-grow:1;
    flex-basis: 0 !important;
    border: 5px solid whitesmoke;
}
.hlp-modal-container > button > i {
    font-size:2rem;
}
.hlp-modal-container > button > big {
    display: block;
    padding-top: 0.5rem;
}
.hlp-modal-container > button:last-of-type {
    margin-left: 0;
}
/* only buttons */
.hlp-modal-selector header {
    background:none;
    text-align:center;
    color:black;
}
.hlp-modal-selector header .btn-close,
.hlp-modal-selector p.error,
.hlp-modal-selector footer {
    display:none;
}
.hlp-modal-selector button.disabled {
    background-color: white !important;
}
.pricing-form form,
.hlp-modal-selector form {
    box-shadow: none;
    background:none;
    border:none;
}

.hlp-modal-disabled-view input[disabled],
.hlp-modal-disabled-view select[disabled] {
    background: #f0f0f0;
    color: #444;
    font-weight: bold;
}

.hlp-modal-choice {
    display: grid;
    grid-column-gap: 1rem;
    justify-content: stretch;
    align-items: center;
    margin: 1rem 0;
    width:100%;

    input {
        display: none;
    }
    label {
        flex-grow:1;
        grid-row: 1;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--scheme-link);
        border-radius: 0.2rem;
        cursor: pointer;
        background: var(--scheme-primary-light);
        padding: 0 0 1rem 0;
        position:relative;
        &:hover {
            background:#08c;
        }
    }
    .hlp-modal-choice-header {
        border-bottom: 2px solid var(--scheme-link);
        border-radius: 2px 2px 0 0;
        display:block;
        width:100%;
        box-sizing:border-box;
        padding: 0.3rem;
        text-align:center;
        margin: 0;
    }
    span {
        font-weight: bold;
    }
    i {
        margin: 1rem 0;
        font-size: 3rem;
        color: var(--scheme-link);
    }
}
.hlp-modal-choice label:hover i::after,
.hlp-modal-choice input:checked ~ i::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    font-weight: bold;
    position:absolute;
    z-index: 1;
    color: #08c;
    left: 1rem;
    top: 50%;
    transform: translateY(-40%);
    font-size:1.6rem;
    padding: 0.3rem 0.4rem;
    box-sizing:border-box;
    display: block;
    border-radius:100%;
    border: 3px solid #08c;
}
.hlp-modal-choice label:hover i::after {
    color: #fff;
}
.hlp-modal-choice .hlp-modal-choice-upgrade i::after {
    left: 0.5rem !important;
}

.hlp-modal-choice-upgrade::after {
    content: "\f35b";
    font-family: "Font Awesome 6 Pro";
    font-weight: bold;
    position:absolute;
    z-index: 1;
    color: var(--scheme-accent);
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size:1.6rem;
    box-sizing:border-box;
    display: block;
}
.selectr-option div p {
    margin:0;
    font-style: italic;
}

.selectr-options-container {
    border-radius:0;
    border-color:#ccc;
}

.selectr-option.active, .selectr-option:hover {
	color: #fff;
	background-color: #5897fb;
}

.selectr-option.disabled:first-child {
    display:none !important;
}
.settings-people td:nth-child(4),
.settings-people td:nth-child(6) {
    text-transform: capitalize;
}


.sp-invite {
    padding:1rem;
}


.content h2.subtitle {
    padding:1rem;
    margin:1rem 0 0 0;
}

.settings-slack-integrations-table p {
    margin:0;
    padding:0;
}
.settings-slack-integrations-table span {
    display:block;
    color: var(--scheme-secondary-text);
}
.system-status-container {
    display: flex;
    margin: 1rem;
    background: #fff;
    border: 1px solid #ccc;

    width: 2400px;

    padding-bottom: 1rem;
    padding-top: 1rem;
}

.system-status-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    padding: 0.5rem;
}

.system-status-chart {
    box-sizing: border-box;
    height: 120px;
    padding: 0.2rem 0.5rem 0.3rem 0.5rem;
    border-top: 1px solid rgb(0 0 0 / 10%);
    border-bottom: 1px solid rgb(0 0 0 / 20%);
}

.system-status-chart:first-child {
    border-top: none;
}

.system-status-chart:last-child {
    border-bottom: none;
}

.system-status-subcontainer {
    flex-grow: 1;
    width: auto;
}
.tickets-icons {
    width: 140px; /* HACK */
    height: 100%;
    white-space: nowrap;
}

.tickets-icons div {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3px;
    margin-right: 0.4rem;
    color: white;
    border-radius: 10%;
}

/* -------------------------------------------------------------------------- */

/* Priority icons & tier icons (T1/T2/T3);                                    */

/* -------------------------------------------------------------------------- */

.tickets-priority-critical,
.tickets-priority-urgent,
.tickets-priority-important,
.tickets-priority-high,
.tickets-priority-elevated,
.tickets-priority-normal,
.tickets-priority-minor,
.tickets-priority-low,
.tickets-priority-wishlist,
.tickets-priority-overdue {
    i.fa-fw {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-evenly;
        width: 2.2rem;
        text-shadow: 1px 1px 1px rgba(0 0 0 / 50%);
    }
}

.tickets-priority-normal,
.tickets-priority-minor,
.tickets-tier-1 {
    background: var(--main-normal-color);
}

.tickets-priority-low,
.tickets-priority-wishlist {
    background: var(--main-stopped-color);
}

.tickets-tier-2,
.tickets-priority-high,
.tickets-priority-elevated {
    background: var(--main-important-color);
}

.tickets-tier-3,
.tickets-priority-overdue,
.tickets-priority-urgent,
.tickets-priority-important {
    background: var(--main-critical-color);
}

.tickets-priority-low {
    i {
        &::before {
            content: '\f063'; /* fa-arrow-down */
        }

        &::after {
            content: '2';
        }
    }
}

.tickets-priority-minor {
    i {
        &::before {
            content: '\e105'; /* fa-circle-dashed */
        }

        &::after {
            content: '3';
        }
    }
}

.tickets-priority-normal {
    i {
        &::before {
            content: '\f140'; /* fa-bullseye */
        }

        &::after {
            content: '4';
        }
    }
}

.tickets-priority-high {
    i {
        &::before {
            content: '\f062'; /* fa-arrow-up */
        }

        &::after {
            content: '6';
        }
    }
}

.tickets-priority-important {
    i {
        &::before {
            content: '\f071'; /* fa-exclamation-triangle */
        }

        &::after {
            content: '7';
        }
    }
}

.tickets-priority-urgent {
    i {
        &::before {
            content: '\f06d'; /* fa-fire */
        }

        &::after {
            content: '8';
        }
    }
}

.tickets-priority-critical {
    background: var(--main-error-color);

    i {
        &::before {
            content: '\e4e9'; /* fa-explosion */
        }

        &::after {
            content: '9';
        }
    }
}

.tickets-priority-overdue {
    i {
        &::before {
            content: '\f017'; /* fa-clock */
        }
    }
}

.tickets-priority-elevated {
    i {
        &::before {
            content: '\f077'; /* fa-chevron-up */
        }

        &::after {
            content: '5';
        }
    }
}

.tickets-priority-wishlist {
    i {
        &::before {
            content: '\f39b'; /* fa-ellipsis-stroke */
        }

        &::after {
            content: '1';
        }
    }
}

/* -------------------------------------------------------------------------- */

/* Tier icons (T1 / T2 / T3)                                                  */

/* -------------------------------------------------------------------------- */

.tickets-tier-1,
.tickets-tier-2,
.tickets-tier-3 {
    i {
        &::before {
            font-family: sans-serif;
            font-size: 0.8rem;
            vertical-align: 0.05rem;
        }
    }
}

.tickets-tier-1 {
    i {
        &::before {
            content: 'T1';
        }
    }
}

.tickets-tier-2 {
    i {
        &::before {
            content: 'T2';
        }
    }
}

.tickets-tier-3 {
    i {
        &::before {
            content: 'T3';
        }
    }
}

/* -------------------------------------------------------------------------- */

/* Status icons                                                               */

/* -------------------------------------------------------------------------- */

.tickets-status-new,
.tickets-status-reopened,
.tickets-status-inprogress,
.tickets-status-open {
    background: var(--main-normal-color);
}

.tickets-status-frozen,
.tickets-status-onhold {
    background: var(--main-stopped-color);
}

.tickets-status-quoted {
    background: var(--main-quoted-color);
}

.tickets-status-rejected {
    background: var(--main-error-color);

    i {
        &::before {
            content: '\f00d'; /* fa-times */
        }
    }
}

.tickets-status-accepted,
.tickets-status-ready {
    background: var(--main-ok2-color);
}

.tickets-status-resolved,
.tickets-status-completed {
    background: var(--main-ok-color);
}

.tickets-status-new {
    i {
        &::before {
            content: '\f069'; /* fa-asterisk */
        }
    }
}

.tickets-status-reopened {
    i {
        &::before {
            content: '\f01e'; /* fa-redo */
        }
    }
}

.tickets-status-inprogress {
    i {
        &::before {
            content: '\f04e'; /* fa-forward */
        }
    }
}

.tickets-status-ready {
    i {
        &::before {
            content: '\e4b2'; /* fa-arrow-right-to-arc */
        }
    }
}

.tickets-status-accepted {
    i {
        &::before {
            content: '\e2f2'; /* fa-briefcase-arrow-right */
        }
    }
}

.tickets-status-open {
    i {
        &::before {
            content: '\f140'; /* fa-bullseye */
        }
    }
}

.tickets-status-frozen {
    i {
        &::before {
            content: '\f2dc'; /* fa-snowflake */
        }
    }
}

.tickets-status-onhold {
    i {
        &::before {
            content: '\f04c'; /* fa-pause */
        }
    }
}

.tickets-status-quoted {
    i {
        &::before {
            content: '\f154'; /* fa-sterling-sign */
        }
    }
}

.tickets-status-resolved {
    i {
        &::before {
            content: '\f00c'; /* fa-check */
        }
    }
}

.tickets-status-completed {
    i {
        &::before {
            content: '\f560'; /* fa-check-double */
        }
    }
}

.tickets-status-locked {
    i {
        &::before {
            content: '\f023'; /* fa-lock */
        }
    }
}

/* -------------------------------------------------------------------------- */

/* Other icons                                                               */

/* -------------------------------------------------------------------------- */

.tickets-comments-count {
    color: var(--main-normal-color) !important;

    i {
        &::before {
            content: '\f075'; /* fa-comment */
        }
    }
}

.tickets-has-attachments {
    margin-right: 0 !important;
    color: var(--main-normal-color) !important;

    i {
        &::before {
            content: '\f0c6'; /* fa-paperclip */
        }
    }
}

.tickets-no-attachments {
    visibility: hidden;
    margin-right: 0 !important;

    i {
        &::before {
            content: '\f0c6'; /* fa-paperclip */
        }
    }
}


.tl-queues-closed::before {

}
.tl-queues-home,
.tl-queues-private {
    position:relative;
}
.tl-queues-home a::before,
.tl-queues-private a::before {
    font-family: "Font Awesome 6 Sharp";
    font-weight: 900;
    content: '\f502';
    display: block;
    color: var(--scheme-secondary-text);
    position:absolute;
    font-size:0.8rem;
    left:0.3rem;
    top:0.6rem;
}
.tl-queues-home a::before {
    content: '\f965';
}

.queues-stats {
    border-radius: 10%;
    padding: 3px 0.3rem;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 0.8rem;
    float: right;
    min-width: 1rem;
    text-align: center;
    line-height: 0.7rem;
    background: var(--main-normal-color);
    color: white;
}
.active .queues-stats {
    background: var(--scheme-primary)
}
.queues-stats:empty {
    display:none;
}
.table-tickets-list {
    .tabulator-group-toggle {
        display: none !important;
    }

    .tabulator-group {
        min-height: 1rem;
        padding: 0;
        border-top: none;
        border-bottom: none;
    }

    .ticket-priority-header {
        padding: 0.3rem 0.3rem 0.3rem 1rem;
        font-size: 0.8rem;
        line-height: 0.8rem;
        text-transform: uppercase;
    }
}
#tickets-new-container {
    position:absolute;
    bottom:0;
    right:10%;
    max-width:90%;
    display:flex;
    flex-direction: row;
    align-items:flex-end;
    z-index:100;
}
.tickets-new {
    background:#fff;
    border:1px solid #aaa;
    box-shadow: 1px 0 3px #ccc, -1px 0 3px #ccc;
    margin-right:1rem;
    position:relative;
}
.tickets-new.minimized form {
    display:none;
}
.tickets-new.minimized .btn-minimize {
    display:none;
}
.tickets-new .btn-maximize{
    display:none;
}
.tickets-new.minimized .btn-maximize{
    display:inline-block;
}
.tickets-view-image header,
.tickets-new header {
    background: var(--scheme-primary);
    font-weight:bold;
    color:white;
    cursor:pointer;
    display:flex;
    align-items: center;
    padding-left:0.5rem;
}
.tickets-new.submitted header {
    z-index:20;
}
.tickets-view-image header span,
.tickets-new header span {
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
    flex-grow:1;
}
.tickets-view-image header .btn:link,
.tickets-view-image header .btn:visited,
.tickets-new header .btn:link,
.tickets-new header .btn:visited {
    flex-grow:0;
    padding: 0.5rem;
    color:white;
    background:none;
}
.tickets-view-image header .btn:hover,
.tickets-new header .btn:hover {
    background: var(--scheme-primary-dark);
}
.tickets-new footer {
    margin-top:0.5rem;
    padding: 0.5rem;
}
.tickets-new label > * {
    vertical-align: middle;
}
.tickets-new-chk {
    padding:0.25rem 0.5rem 0.25rem 0.5rem;
}
.tickets-new-chk:hover {
    background:#eee;
    cursor:pointer;
}
.hint {
    padding:0.5rem;
    background:var(--scheme-danger);
    box-sizing:border-box;
}
.tv-reply-hint {
    margin-bottom:1rem;
}
.tn-public-hint {
    display:none;
    margin:0.5rem 0.5rem 0 0.5rem;
}
.hint p {
    padding:0;
    margin:0;
}
.hint p:first-child {
    margin-bottom:0.5rem;
}
.tickets-new-chk input:checked ~ .hint {
    display:block !important;
}

.tickets-new input[type="text"],
.tickets-new input[type="email"],
.tickets-new textarea,
.tickets-new select,
.tickets-new .selectr-selected {
    width:100%;
    padding:0.5rem;
    box-sizing: border-box;
    border: none;
    border-color: Transparent;
    border-bottom:1px solid #eee;
    box-shadow: 0;
    margin:0;
    background:white;
}
.tickets-new textarea {
    min-width:100%;
    max-width:100%;
    min-height:4rem;
    padding-right: 2rem;
}
.tickets-new label {
    display:block;
    position:relative;
    margin:2px 0;
}
.tickets-new label.tickets-new-queue {
    display:flex;
    align-items: center;
}


.tickets-new label .input-ico {
    color:#ccc;
    position:absolute;
    right:0;
    padding: 0.5rem;
    padding-left:0;
    background:white;
    z-index:1;
}
/*
.tickets-new input:invalid ~ .input-ico {
    color:red;
}
.tickets-new input:valid ~ .input-ico {
    color:green;
}
*/

.tickets-new-queue .tickets-icons {
    font-size:1.5rem;
}
.tickets-new-queue .tickets-icons div {
    margin:0;
}
.tickets-new-queue label {
    flex-grow:1;
}
.tickets-new-priority {
    flex-shrink:1;
    width: 5rem !important;
    margin-left:0.5rem;
}
.tickets-new-priority .selectr-option {
    padding:0.5rem;
}
.tickets-new-priority .tickets-icons {
    width: auto;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}
.tickets-new footer .btn-file, .tickets-new footer .btn-view-ticket {
    width:auto;
    display:inline-block;
    cursor:pointer;
}
.tickets-new footer button[type="submit"] {
    margin-right:0.5rem;
}
.tickets-new footer button[disabled],
.tickets-new.disabled .btn-file {
    background: var(--scheme-divider);
    cursor:default;
    color:white;
}
.tickets-new .loading-mask {
    display:none;
    position: absolute;
    top: 0;
    left:0;
    z-index: 10;
    width: 100%;
    background: rgba(255,255,255,0.4);
    height: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    font-weight:bold;
}
.tickets-new.disabled .loading-mask {
    display: flex;
}
.tickets-new.disabled.minimized .loading-mask {
    display:none;
}
.tickets-new.submitted .loading-mask > span,
.tickets-new.failure .loading-mask > span {
    display:none;
}
.tickets-new .loading-mask div {
    display:none;
}
.tickets-new.submitted .loading-mask div.success {
    display:block;
    text-align:center;
}
.tickets-new.failure .loading-mask div.failure {
    display:block;
    text-align:center;
}

.tickets-new-attachment {
    display:flex;
    padding:0.5rem;
    border-bottom:1px solid #eee;
    align-items: center;
}
.tickets-new-attachment i,
.tickets-new-attachment .filesize,
.tickets-new-attachment .fileloading {
    color:#888;
}
.tickets-new-attachment i.fa-times {
    margin:-0.5rem -0.5rem -0.5rem auto;
    padding:0.5rem;
    color:#08c;
}
.tickets-new-attachment .fa-times:hover {
    background:#eee;
    cursor:pointer;
}
.tickets-new-attachment span {
    margin-left: 0.5rem;
}
/* sidebar */
.tv-priority span,
.tv-status span {
    text-transform: capitalize;
}

/* content */
.tv-post {
    z-index: 1;
}

.tv-post.loading {
    background:#ddd;
    animation-duration: 1s;
    animation-name: loading;
    animation-iteration-count: infinite;
    height: 20rem;
}
.tv-post.loading header > * {
    background: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0);
}

.tv-post,
.tv-reply,
.tv-attachments div {
    background:#fff;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
    padding:1rem;
    margin-top:1rem;
    z-index:1;
}
.tv-post .tv-public-line,
.tv-post .tv-public-stamp {
    display:none;
}
.tv-post.tv-public .tv-public-line,
.tv-post.tv-public .tv-public-stamp {
    display:block;
}

.tv-post.tv-public {
    position:relative;
}
.tv-public-line {
    width:0.5rem;
    height:100%;
    position:absolute;
    left:0;
    top:0;
}
.tv-public-line,
.tv-public-stamp {
    background: #b8b !important;
}
.tv-public-stamp {
    margin-right:0.5rem !important;
}

.tv-post header,
.tv-reply header {
    display:flex;
    align-items: center;
}
.tv-post header time,
.tv-reply header time {
    margin-left: auto;
}
.tv-post header h1,
.tv-reply header h1 {
    margin:0;
    font-size:1rem;
    font-weight:bold;
}
.tv-post header span,
.tv-reply header span {
    display:block;
    font-weight: normal;
}
.tv-post header div,
.tv-reply header div {
    background: #eeddce;
    padding:1rem;
    font-weight:bold;
    margin-right:1rem;
}
.tv-post-body {
    margin-top:1rem;
    word-wrap: break-word;
}
.tv-changes-body a:link,
.tv-changes-body a:visited,
.tv-post-body a:link,
.tv-post-body a:visited {
    font-weight:bold;
    color: var(--scheme-link);
}
.tv-changes-body a:hover,
.tv-post-body a:hover {
    color:#08c;
}
.tv-post-body hr {
    border:none;
    border-top: 1px solid var(--scheme-divider);
}
.tv-post-body .emoji {
    font-size:1.2rem;
}

.tv-changes {
    padding:1rem;
    border-left:1.5rem solid var(--scheme-divider);
    margin-bottom:-1rem;
    display:flex;
    align-items: center;
}
.tv-changes-ico {
    margin-left:-2rem;
    padding:1rem 0;
    box-sizing: border-box;
    width:3rem;
    text-align: center;
    background:white;
    z-index:1;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}
.tv-changes-body {
    color:#666;
    padding:1rem;
}
.tv-changes .tickets-subicons {
    display:inline-flex;
    padding:3px;
    align-items:center;
    justify-content:center;
    color:white;
    margin-right:0.4rem;
    margin-left:0.4rem;
    border-radius:10%;
    box-sizing:border-box;
}
.tv-changes time {
    margin-left:auto;
    color:#666;
    text-align:right;
}

.tv-attachments {
    position:relative;
}

.tv-attachments div {
    display:flex;
    align-items:center;
    margin-left:1rem;
    margin-top:0;
    margin-bottom:1rem;
}
.tv-attachments div:first-child {
    margin-left:-2rem;
}
.tv-attachments p {
    margin:0;
}
.tv-attachments span {
    color:#666;
    margin-left:0.5rem;
}


.tv-reply {
    margin-bottom:2rem;
    position:relative;
}
.tv-reply textarea {
    width: 100%;
    min-width:100%;
    max-width:100%;
    height: 10rem;
    min-height:4rem;
    border:1px solid var(--scheme-divider);
}


.tv-requester a {
    display:block;
}

.tv-reply .loading-mask {
    position:absolute;
    top:0;
    left:0;
    z-index:100;
    width:100%;
    height:100%;
    background: rgba(255,255,255,0.8);
    display:flex;
}
.tv-reply .loading-mask div {
    margin: auto;
    font-weight:bold;
}
.tv-reply .loading-navigate a {
    border: 1px solid #ccc;
    padding: 1rem 0.5rem;
    background: #eee;
    text-decoration:none;
}

.tv-reply-new-changes input,
.c-tv select, .selectr-selected {
    padding:0.5rem;
    box-sizing: border-box;
    border: none;
    border-color: Transparent;
    box-shadow: 0;
    margin:0;
    background:white;
}
.tv-reply-new-changes input {
    margin-right:1rem;
    flex-grow:1;
}
.tv-reply-new-changes input:read-only {
    background: none;
    border:1px solid #ddd;
    /* note: cannot be mixed with -moz-read-only due to bug in FF */
}
.tv-reply-new-changes input:-moz-read-only {
    background: none;
    border:1px solid #ddd;
}

.tv-reply header {
    margin-bottom:1rem;
}

.tv-reply-changes {
    display:flex;
    margin:0 -1rem 0 -1rem;
    padding:1rem;
    background:#f5f5f5;
    border-bottom:1px solid #eee;
}
.tv-reply-changes strong {
    margin-left:2rem;
    border-width:4px 4px 0 4px;
    border-style:solid;
    border-color: Transparent;
    padding:0.5rem;
    display:inline-block;
    color:#666;
}
.tv-reply-changes strong:first-child {
    margin-left:0;
}
.tv-reply-new-changes input,
.tv-reply-changes button {
    padding:0.5rem 2rem 0.5rem 1rem;
    position:relative;
}
.tv-reply-visiblity input:checked + label,
.tv-reply-changes button.changed,
.tv-reply-changes div.changed > div {
    box-sizing: border-box;
    border-bottom: 3px solid var(--scheme-active);
}
.tv-reply-changes button.no-arrow {
    padding-right:1rem;
}
.tv-reply-changes button:not(.no-arrow)::before {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    content: '';
    -o-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -ms-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -moz-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    transform: rotate(0deg) translate3d(0px, -50%, 0px);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: #6c7a86 transparent transparent;
}
.tv-reply-estimated {
    margin-left:auto;
}
.tv-reply-due {
    margin-left:0.5rem;
}

.dropdown {
    overflow:visible;
    position:relative;
    z-index:1;
}
.dropdown ul {
    margin:0.5rem 0 0 0;
    padding:0;
    position:absolute;
    left:0;
    list-style: none;
    box-sizing:border-box;
    text-align: left;
    z-index:20;
    background:#eee;
    color:black;
    border:1px solid #ccc;
    display:none;
    max-height:15rem;
    overflow:auto;
    scrollbar-width:thin;
}
.dropdown ul li {
    padding:0.5rem;
    white-space: nowrap;
}
.dropdown ul li a {
    color: var(--scheme-link);
    padding:0.5rem;
    margin:-0.5rem;
}
.dropdown ul li:hover,
.dropdown ul li:hover a {
    background: var(--main-hover-color);
    color: white;
}

.dropdown:focus ul {
    display:block;
    z-index:100;
}

.tv-changes-priority,
.tv-changes-status {
    flex-grow:0;
    flex-shrink:1;
    margin-left:0.5rem;
    width:11rem !important;
}

.tv-changes-priority .selectr-option,
.tv-changes-status .selectr-option {
    padding:0.5rem;
}
.tv-changes-priority .tickets-icons,
.tv-changes-status .tickets-icons {
    width: auto;
}

.tv-sidebar .tickets-icons {
    width:100%;
}

.tv-changes-priority {
    width: 10rem !important;
    margin-left:0 !important;
}

.tv-reply-visiblity {
    display:flex;
    margin-top:1rem;
}
.tv-reply-visiblity div {
    border:1px solid var(--scheme-divider);
    border-bottom:0;
    margin-right:0.5rem;
}
.tv-reply-visiblity label {
    box-sizing:border-box;
    padding:0.5rem 1rem;
    display:block;
    cursor:pointer;
    background: var(--scheme-primary-light);
    color: var(--scheme-link);
    border-top: 3px solid var(--scheme-primary-light);
    border-bottom:3px solid var(--scheme-primary-light);
    font-weight:bold;
}
.tv-reply-visiblity input {
    display:none;
}
.tv-reply textarea {
    margin-top:0;
    margin-bottom:1rem;
    padding:0.5rem;
    box-sizing: border-box;
}

.tv-reply footer {
    display:flex;
}
.tv-reply footer .btn-file,
.tv-reply footer .btn-cancel {
    margin-left:0.5rem;
}
.tv-reply-detach {
    margin-left:auto;
}
.tv-reply-more {
    margin-left:auto;
    margin-right:1rem;
    position:relative;
}
.dropdown.tv-reply-change-assignee ul,
.dropdown.tv-reply-more ul {
    right:0;
    left:initial;
}

.tv-att-download {
    padding: 1rem;
    margin-top: -1rem;
    margin-bottom: -1rem;
    margin-right: -1rem;
    border-left: 1px solid var(--scheme-divider);
    margin-left: 1rem;
    display: block;
    color: var(--scheme-link);
}
.tv-att-download:hover {
    color: #08c;
}

.tv-assets table {
    margin-bottom:1rem;
    table-layout: fixed;
}
.tv-assets table td,
.tv-assets table th {
    padding: 0.2rem 0;
    overflow:hidden;
    text-overflow: ellipsis;
    border:0;
}
.tv-assets table td {
    text-align:right;
    padding-left:0.2rem;
}
.tv-assets table th {
    max-width: 5rem;
    width: 5rem;
    color: var(--scheme-secondary-text);
    border-right: 1px solid var(--scheme-divider);
}
.tv-assets table tr td,
.tv-assets table tr th {
    border-bottom:1px solid var(--scheme-divider);
}
.tv-assets table tr:last-child td,
.tv-assets table tr:last-child th {
    border-bottom: 0;
}
.tv-assets h4 {
    padding-bottom: 0.3rem;
    margin:0;
}
.tv-assets tr.tv-assets-warning td {
    background: var(--scheme-danger);
}
.tv-requester a,
.tv-assets a {
    color: var(--scheme-link);
    font-weight:bold;
}
.tv-requester a:hover,
.tv-assets a:hover {
    color: var(--scheme-accent);
    font-weight:bold;
}

.tv-subscribers-ext,
.tv-subscribers {
    list-style-type:none;
    margin-left:0;
    padding-left:0;
}
.tv-subscribers-ext li,
.tv-subscribers li {
    padding:0.1rem 0;
}

.backdrop {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.7);
    display:flex;
    z-index:100;
}
.tickets-view-image {
    z-index:100;
    max-height:90%;
    min-height:50%;
    width:50%;
    margin: auto;
    border: 5px solid var(--scheme-primary);
    background:var(--scheme-primary);
}
.tickets-view-image header {
    border-bottom: 5px solid var(--scheme-primary);
}
.tickets-view-image img {
    max-width:100%;
    max-height:100%;
    margin:auto;
    display:block;
}

.tv-title-with-btn {
    display:flex;
    align-items:center;
}
.tv-title-with-btn button,
.tv-title-with-btn div {
    margin-left:auto;
    padding:0;
    /* TODO: consider increasing clickable area size via eg. border */
}
.tv-title-with-btn div > button {
    margin-left:1rem;
}

.tv-reply p.error {
    display: none;
    text-transform: capitalize;
    color: var(--main-error-color);
}
.tv-reply.error .error {
    display: block;
}
.hlp-user-switcher {
    position:absolute;
    top:0;
    left:0;
    height:100%;
    width:100%;
    z-index: 9995;
   
    background:rgba(10, 10, 10, 0.75);
}
.hlp-user-switcher > div {
    position:absolute;
    z-index:500;
    top:0;
    right:0;
    width: 21rem;
    margin:0;
    background:white;
    height:100%;
    box-sizing:border-box;
    overflow-y: auto;
    background: var(--scheme-primary-light);
    box-shadow: inset 7px 0 9px -7px rgba(0,0,0,0.4),
                inset 0 7px 9px -7px rgba(0,0,0,0.4);
}
.hlp-user-switcher header {
    display: flex;
    height: 5rem;
    cursor:pointer;
    align-items:center;
    background: var(--scheme-primary);
    padding: 0 1rem;
    margin-bottom: 1rem;
}
.hlp-user-switcher header h1 {
    color:white;
}
.hlp-user-switcher header .hlp-user-square {
    text-transform: uppercase;
    padding: 1rem 1.2rem;
}
.hlp-user-switcher a {
    margin-bottom: 1rem;
    padding: 0;
    display:block;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid var(--scheme-divider);
    color: var(--scheme-link);
}
.hlp-user-switcher a:hover {
    color:white;
    background: var(--scheme-primary);
}
.hlp-user-switcher a.active,
.hlp-user-switcher a:not(.hlp-user-switcher-disabled):hover p:first-of-type {
    background: var(--scheme-primary);
}
.hlp-user-switcher a p {
    margin:0;
}
.hlp-user-switcher a p:first-of-type {
    font-weight:bold;
    padding:0.5rem;
    background: var(--scheme-divider);
}
.hlp-user-switcher a.active p:first-of-type {
    background: var(--scheme-primary);
    color:white !important;
}
.hlp-user-switcher .btn-sign-out {
    width: calc(100% - 2rem); /* FIXME: this */
    box-sizing:border-box;
    text-align:center;
    margin-left: 1rem;
    margin-right: 1rem;
}

a.hlp-user-switcher-disabled .tickets-icons span,
a.hlp-user-switcher-disabled,
a.hlp-user-switcher-disabled:hover {
    color: var(--scheme-secondary-text);
    background:none;
    cursor:default;
}

.hlp-user-switcher .tickets-icons {
    font-size: 12px;
    margin-left:0.5rem;
    margin-right:0.5rem;
    margin-bottom:0.5rem;
    margin-top:0.3rem;
}
.hlp-user-switcher .tickets-icons > div {
    padding-left:0;
}
.hlp-user-switcher .tickets-icons span {
    color: var(--scheme-link);
    font-weight: bold;
}
.hlp-user-switcher a.active .tickets-icons span,
.hlp-user-switcher a:hover .tickets-icons span {
    color: white;
}
a.hlp-user-switcher-disabled .tickets-icons span {
    color: var(--scheme-secondary-text) !important;
}

.hlp-user-switcher-disabled .tickets-icons > div > div {
    background: var(--main-normal-color);
}