@font-face {
  font-family: 'Material Symbols Sharp';
  font-style: normal;
  font-display: block;
  src: url('../../fonts/MaterialSymbolsSharp.woff2') format('woff2');
}

.light *,
.dark * {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#ui.v3,
:root.dark,
:root.light {
  font-family: Roboto, 'Helvetica Neue', sans-serif;
  color: var(--color-mono-contrast-high);
  line-height: 1.5;
  h3,
  h4,
  h5,
  h6,
  b {
    font-weight: initial;
    color: var(--font-header-color);
  }
  .h1,
  h1 {
    font-size: 2rem;
  }
  .h2,
  h2 {
    font-size: 1.6rem;
    font-weight: 300;
  }
  .h3,
  h3 {
    font-size: 1.1rem;
  }
  .h4,
  h4,
  h5,
  h6 {
    font-size: 1.1rem;
  }
  h4.card__header {
    font-size: 20px;
  }
  small,
  small {
    font-size: 0.9rem;
    &.additional-info-text {
      font-size: 80%;
    }
  }
  yon-full-height-layout h4.card__header {
    font-size: 1.5rem;
  }
  ul li {
    list-style-type: none;
  }
  .k-list-item-text {
    white-space: nowrap;
  }
  kendo-popup[aria-label='Options list'] {
    width: auto !important;
  }
  a {
    color: var(--color-font-a);
    text-decoration: none;
  }
  th {
    text-align: left;
  }
  .img-fluid,
  .section img,
  .section .view,
  .card img,
  .modal-dialog.cascading-modal.modal-avatar .modal-header,
  .comments-list img,
  .reply-form img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  hr {
    margin-top: 1rem;
    border: none;
  }
  .summary-table {
    border-collapse: collapse;
  }
  .sorting__active {
    background-color: var(--color-bg-table-drilled-level2);
  }
  .draggable-field.p-2,
  .entity-table-filter__filter.p-2 {
    padding: 0 0;
  }

  yon-entity-table-card .card-block > hr {
    display: none;
  }
  yon-settings,
  yon-full-height-layout {
    .card-block > .card__header-row {
      border-bottom: 1px solid var(--color-bg-table-drilled-level3);
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
    }
    .card-block {
      padding: 0 0;
      padding-bottom: 2.5rem;
    }
  }
  .mat-mdc-dialog-content {
    yon-full-height-layout {
      head {
        display: none;
      }
      section.v3 {
        height: auto;
        padding-bottom: 0;
      }
    }
  }
  yon-entity-field {
    small.field-title {
      padding-bottom: 2px;
      text-transform: none;
    }

    &.metrics-field {
      small.field-title {
        text-transform: uppercase;
      }
    }
  }
  .field-wrap__normal yon-entity-field small.field-title {
    white-space: normal;
  }
  .card-block p {
    font-size: 14px;
  }
  textarea {
    background-color: var(--color-bg-table-drilled-level1);
    resize: vertical;
    padding: 0.5rem;
    max-height: 400px;
    min-height: 60px;
  }
  .text-center {
    text-align: center;
  }
  .list-group-item {
    width: 100%;
  }
  fieldset {
    border: none;
  }
  input,
  select,
  option {
    background-color: var(--color-bg-table-drilled-level1);
    color: var(--color-mono-contrast-high);
    min-height: 32px;
  }
  .mat-mdc-dialog-content form > .field__readonly-date,
  yon-create-order yon-entity-field:not(.charge-field) form > .field__readonly-date {
    line-height: 32px; 
  }
  .mat-mdc-dialog-container .mdc-dialog__surface,
  .panel-main-right-modal {
    input,
    select,
    option {
      background-color: var(--color-bg-table-drilled-level2);
    }
  }
  .k-input-solid,
  input.k-textbox,
  textarea:not(.email-message-textarea){
    width: 100%;
    border: 1px solid var(--color-input-border);
  }
  .k-textbox.ng-invalid.ng-touched:not(:focus), .k-textbox.ng-invalid.ng-dirty:not(:focus) {
    color: var(--color-red-error);
    border-color: var(--color-red-error);
  }
  input[type='checkbox'] {
    border-color: var(--color-mono-contrast-min);
  }
  .field-title {
    font-size: 14px;
    color: var(--color-mono-contrast-low);
    font-weight: normal;
    text-transform: none;
  }
  .card-block {
    padding-bottom: 1.25rem;
  }
  .k-form,
  .k-form-inline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-mono-contrast-max);
    .card-box-shadow tbody td p { white-space: nowrap; }
  }
  .mat-expansion-panel {
    border-bottom: 1px solid var(--color-bg-table-drilled-level3);
    border-radius: 0;
    margin: 0 0;
    padding-right: 2px;
    background-color: transparent;

    .mat-expansion-panel-body {
      padding: 0 0;
      padding-top: 10px;
      margin-bottom: 30px;
    }
    mat-expansion-panel-header {
      min-height: 45px;
      border-radius: 0;
      padding: 0 0;
      padding-right: 2px;
      height: auto;
    }
  }
  .mat-expansion-panel:not(.mat-expanded)
    .mat-expansion-panel-header:not([aria-disabled='true']):hover {
    background-color: transparent;
    .mat-expansion-panel-header-title,
    .mat-expansion-indicator:after {
      color: var(--color-mono-contrast-max);
    }
  }
}

#ui.v3 {
  .row > div {
    padding: 0 0;
  }
  .panel-main-center
    .mat-mdc-table
    .mat-mdc-row:not(.mat-mdc-no-data-row).selected
    .mat-mdc-cell:not(.entity-table__checkbox-cell):first-child:before,
  .panel-main-center .panel-main-right-modal nav:before {
    content: '';
    display: block;
    width: 3px;
    height: 12px;
    background-color: #0f60a3;
    margin-left: -10px;
    margin-right: 8px;
    position: absolute;
    top: 50%;
    margin-top: -6px;
    z-index: 10;
  }

  
  .panel-second-table
    .mat-mdc-table
    .mat-mdc-row:not(.mat-mdc-no-data-row).selected
    .mat-mdc-cell:first-child:before,
  .panel-main-center
    .panel-second-table
    .mat-mdc-table
    .mat-mdc-row:not(.mat-mdc-no-data-row).selected
    .mat-mdc-cell:not(.entity-table__checkbox-cell):first-child:before,
  .panel-main-center .panel-main-right-modal nav:before {
    background-color: var(--color-green-success);
  }
  .layout-viewport-grid {
    display: block;
    height: 100vh;
    section.layout-viewport-griditem-right {
      position: fixed;
      right: 0;
      left: var(--layout-left-menu-width);
      bottom: 0;
      top: 0;
    }
  }
  .rounded-card {
    padding: var(--layout-card-padding);
    padding-right: calc(var(--layout-card-padding) - 8px);
  }
  .scrollable-when-high {
    max-height: 100% !important;
  }
  .details-layout__content-container yon-details-layout-right-col .card {
    border: none !important;
    box-shadow: none !important;
  }
  ol.breadcrumb {
    display: flex;
    margin-left: 2vw;
  }
  .details-layout__side-panel-header-expanded {
    box-shadow: none;
  }
  .mat-divider {
    margin-top: 15px;
  }
  .container-fluid,
  .col,
  .col-11,
  .col-sm-2,
  .col-sm-8 {
    position: relative;
  }
  .container-fluid.pt-1 {
    padding-top: 0;
  }
  .field-title,
  .entity-table__column-header-text-container .entity-table__column-header-text,
  .entity-table__column-header-text-container .entity-table__column-subheader-text {
    text-transform: none;
  }
  .panel-scrollable {
    overflow-y: scroll;
  }
  .panel-scrollable.full-page-scroll {
    overflow-y: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--layout-grid-gap);
  }
  .card__header-row {
    color: var(--font-header-color);
  }
  .panel-main-top h4.card__header,
  yon-list-view-layout h4.card__header {
    font-size: var(--font-top-header-size);
    font-weight: 700;
    color: var(--color-mono-contrast-max);
    line-height: var(--font-top-header-size);
    margin-right: 3vw;
    margin-bottom: 2px;
    min-height: 40px;
  }

  .panel-main-top h4.card__header {
    white-space: nowrap;
    max-width: 30vw;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-right: 1rem;
    margin-bottom: 0;
    padding-bottom: 2px;
  }
  .rounded-card,
  yon-list-view-layout yon-entity-table {
    border-radius: var(--layout-card-radius);
    padding-bottom: 0;
    background-color: var(--layout-bg-color-card);
  }
}

yon-app-container.v3 {
  display: block;
  background-color: var(--layout-bg-color);
  height: 100vh;
  overflow: hidden;
}

#userpilot-resource-centre-frame.ui-v3 {
  left: 6vw !important;
  z-index: 10;
  transform: translateX(-85px) !important;
  bottom: 29px !important;
}

:root.dark ::-webkit-scrollbar-thumb,
:root.light ::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-bg);
  border-radius: 4px;
  width: 8px;
  opacity: 1;
}
:root.dark ::-webkit-scrollbar-track,
:root.light ::-webkit-scrollbar-track {
  opacity: 1;
  border-radius: 4px;
  box-shadow: none;
}
:root.dark #ui.v3 .full-page-scroll::-webkit-scrollbar-track {
  background-color: hsl(0 0% 15% / 1);
}

#ui.v3 .rounded-card::-webkit-scrollbar,
#ui.v3 .panel-scrollable::-webkit-scrollbar,
#ui.v3 .scrollbar__horizontal::-webkit-scrollbar,
#ui.v3 .mat-mdc-table::-webkit-scrollbar,
#ui.v3 div.entity-table__container::-webkit-scrollbar,
#ui.v3 yon-list-view-layout yon-entity-table mat-table.mat-mdc-table::-webkit-scrollbar {
  background-color: transparent;
  width: 8px;
  height: 8px;
}
#ui.v3 div.entity-table__container::-webkit-scrollbar-thumb {
  background-color: var(--color-bg-table-drilled-level3);
  border-radius: 4px;
}
#ui.v3 yon-list-view-layout div.entity-table__container::-webkit-scrollbar-thumb,
#ui.v3 .scrollvisible-hover::-webkit-scrollbar-thumb {
  background-color: transparent;
}

:root.dark ::-webkit-scrollbar,
:root.light ::-webkit-scrollbar,
#ui.v3 yon-entity-table::-webkit-scrollbar,
#ui.v3 yon-list-view-layout yon-entity-table .entity-table__container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
#ui.v3 .full-page-scroll::-webkit-scrollbar-track {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: hsl(0 0% 80% / 1);
}

#ui.v3 .scrollbar__horizontal::-webkit-scrollbar-track,
#ui.v3 yon-entity-table .entity-table__container:hover::-webkit-scrollbar-thumb,
#ui.v3 .mat-mdc-table::-webkit-scrollbar-track {
  background-color: var(--scrollbar-track-bg);
  opacity: 1;
  border-radius: 4px;
  box-shadow: none;
}

#ui.v3 .scrollvisible-hover:hover::-webkit-scrollbar-thumb,
#ui.v3 .rounded-card:hover::-webkit-scrollbar-thumb,
#ui.v3 .scrollbar__horizontal::-webkit-scrollbar-thumb,
#ui.v3 .panel-scrollable:hover::-webkit-scrollbar-thumb,
#ui.v3 yon-entity-table:hover::-webkit-scrollbar-thumb,
#ui.v3 div.entity-table__container:hover::-webkit-scrollbar-thumb,
#ui.v3 .mat-mdc-table::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-bg) !important;
  border-radius: 4px;
  width: 8px;
  opacity: 1;
}
#ui.v3 .panel-scrollable.full-page-scroll::-webkit-scrollbar-thumb {
  background-color: hsl(0 0% 60% / 1) !important;
  border-radius: 4px;
  width: 8px;
}
:root.dark #ui.v3 .full-page-scroll::-webkit-scrollbar-thumb {
  background-color: #434343 !important;
}
#ui.v3 .mat-mdc-table .mat-mdc-header-row .mat-mdc-header-cell {
  color: var(--color-mono-contrast-low);
  p {
    margin-bottom: 0;
  }
}

#ui.v3 {
  yon-card-header-left {
    .gap-16 {
      gap: 0;
    }
    input::placeholder,
    input,
    span.mat-mdc-select-placeholder {
      color: var(--color-mono-contrast-medium);
      font-size: 14px;
      letter-spacing: initial;
      background-color: transparent;
      min-height: 20px;
    }
    yon-entity-table-card-extended-filter {
      height: 32px;
      line-height: 32px;
      margin-left: 20px;
      > mat-form-field {
        top: 0;
        mat-select > div {
          height: 32px;
          padding-right: 10px;
        }
        span {
          font-size: 14px;
        }
      }
      .mat-mdc-form-field-infix {
        input,
        input::placeholder {
          color: var(--color-mono-contrast-max) !important;
        }
      }
      .mat-mdc-form-field .mdc-text-field--filled {
        .mdc-line-ripple::before {
          display: none;
        }
      }
    }
    yon-entity-table-search.rounded-right {
      border-top-right-radius: 20px;
      border-bottom-right-radius: 20px;
    }
    yon-entity-table-search {
      height: 32px;
      line-height: 32px;
      background-color: var(--input-bg-color);
      border-top-left-radius: 20px;
      border-bottom-left-radius: 20px;
      display: inline-block;
      border-radius: 20px;
      .mat-mdc-form-field-infix {
        margin-left: 23px;
        font-size: 14px;
        input {
          min-height: 32px;
          padding-left: 10px;
        }
      }
      .input-field__wide {
        top: auto;
        width: 175px;
        vertical-align: top;
        transition: width linear 0.2s;
        .mdc-line-ripple::before,
        .mdc-line-ripple::after {
          display: none;
        }
      }
      .input-field__wide.mat-focused,
      .input-field__wide.has-searchterm {
        width: 250px;
      }
      .mat-mdc-form-field-icon-suffix {
        position: absolute;
        padding-left: 0;
        top: 0;
        left: 1px;
        yon-button {
          button.mat-mdc-icon-button {
            width: 32px !important;
            height: 32px !important;
            line-height: 16px;
            .material-symbols-sharp.search {
              font-size: 24px !important;
              opacity: 0.6;
              padding-left: 2px;
            }
          }
        }
      }
    }
    yon-button {
      margin: 0 0;
      button.mat-mdc-button {
        background-color: transparent;
        h6 {
          font-size: 14px;
          /* padding-top: 1px; */
          color: var(--color-mono-contrast-medium);
          line-height: 32px;
          yon-icon {
            margin-top: -1px;
            color: var(--color-mono-contrast-medium);
            span {
              fill: var(--color-mono-contrast-medium) !important;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 980px) {
  #ui.v3 {
    #main-menu.component span.dots {
      display: block;
    }
    yon-breadcrumb {
      margin-left: 40px;
    }
  }

  #ui.v3,
  #ui.v3.main-menu-closed,
  #ui.v3 yon-details-layout.right-modal-open,
  #ui.v3.main-menu-open {
    --layout-left-menu-width: 0;
    #main-menu.component .left-menu-wrapper yon-button span {
      display: none;
    }
  }
  #ui.v3.main-menu-closed {
    --layout-left-menu-width: 0;
    #main-menu.component .left-menu-wrapper {
      display: none;
    }
  }
}

#ui.v3 {

  div.full-width-modal__overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #38383880;
    z-index: 9;
  }
  .full-width-modal.expanded {
    position: fixed;
    top: 25%;
    left: 50%;
    margin: 0 auto;
    z-index: 10;
    padding: 0 var(--layout-card-padding);
    transform: translateX(-50%) translateY(-25%);
    width: 90vw;
    max-width: 1400pxvw;
        
    .full-width-modal__header,
    .full-width-modal__content {
      margin: 0 auto;
      display: block;
      background-color: var(--layout-bg-color-card);
      padding: var(--layout-card-padding);
    }

    .full-width-modal__header {
      cursor: pointer;
      padding: 0 var(--layout-card-padding);
      height: 60px;
      line-height: 60px;
      border: 1px solid var(--color-mono-contrast-min);
      border-radius: 4px;
      border-bottom: none;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      display: flex;
    }

    .full-width-modal__content {
      border: 1px solid var(--color-mono-contrast-min);
      border-radius: 4px;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      max-height: 70vh; 
      overflow-y: auto;
    }
  }
  .full-width-modal:not(.expanded) {
    position: relative;
    .full-width-modal__header {
      yon-button {
        position: absolute;
        left: 70px;
        top: 0;
        margin-top: -54px;
      }
    }
  }
  .expand-icon__right .full-width-modal:not(.expanded) .full-width-modal__header yon-button {       
        left: auto;
        right: 0px;
      }
}
@media (min-width: 1440px) {
  #ui.v3 {
      .full-width-modal.expanded { 
        width: auto;
        min-width: 1050px;
        max-width: 1400px;
    }
  }
}