/*
==========================================================================
    other-income-forecasting
==========================================================================
*/
.other-income-forecasting {
  .container-fluid {
    overflow: visible;
  }

  .ember-table-wrapper-div{
    height:auto;
  }

  .content {
    padding: 10px 15px 0 15px;
    position: relative;

    .topHeadLeft .title{
      white-space: nowrap !important;
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 330px;
    }
  }

  .revenue-driver .topHeadLeft .title {
    max-width: 445px!important;
  }

  input[type="text"] {
    padding: 0 10px;
    height: 26px;
    width:118px;
    font-size: $medium;
    background: color('cumulus');
    color: color('black2');
    border: 1px solid color('manatee');
    @include placeholder();
    @include border-radius(0);

    &:disabled {
      background: color('white-smoke') !important;
    }

    &:-moz-read-only,
    &:read-only {
      background: color('white') !important;
    }

    &:focus {
      outline: 0;
      -webkit-box-shadow: none;
      box-shadow: none;
    }
  }

  input[readonly] {
    background: color('white') !important;
  }

  .mars-select .multiselect-container {
    -webkit-box-shadow: none;
    box-shadow: none;
    max-height: 120px;

    li.disabled { /* please check "input.scss", "disabled" class  "display: block !important;"  */
      display: none !important;
    }
  }

  .btn-other-income-forecast {
    background-color: color("pattens-blue-2") !important;
    padding: 5px 10px; /* restyle for using class .resident-guestforecast */
    display: inline-flex !important; /* restyle for using class .resident-guestforecast */
    @include border-radius(0); /* restyle for using class .resident-guestforecast */
  }

  .switch-area .switch-text {
    //display: none;

    &.active {
      display: block;
    }
  }

  /* top-action-area */
  .top-action-area {
    a {
      text-decoration: none;
    }

    .icon-button {
      margin: 0 0 0 10px;

      &:first-child {
        margin-left: 0;
      }
    }

    .sys-rec-notlinked {
      cursor: default;
      &.active {
        display: inline-flex;
        background-color: transparent !important;
      }
    }

    .btn-relink {

      &.active {
        display: inline-flex;
        background-color: color("white-smoke-2") !important;
      }
    }

    @media (max-width: 1200px) {
      display: flex;
      gap: 10px;
      .icon-button {
        margin-left: 0;
      }
      .fillgap {
        display: none;
      }
    }
  }

  /* fiscal-range  */
  .fiscal-range-wrap {
    display: none;

    .fiscal-range {
      padding: 10px 0;
    }
  }

  .fiscal-action {
    min-width: 78px;
  }

  @media (max-width: 767px) {
    .fiscal-range.fiscal-range-start .fiscal-range__group.is-space {
      padding-right: 0 !important;
    }
  }

  /* criteria */
  .commonDisplayCriteria {
    max-width: 660px !important;

    .lastSubmittedSelect {
      width: 160px;
    }

    .daysofweek-select {
      width: 240px;
    }

    .select-stly,
    .select-calendar,
    .select-lastSubmitted{
      float: left;
      width: 130px;
      display: none;

      &.active {
        display: block;
      }
      &.disabled {
        display: none;
      }
    }

    .select-lastSubmitted{
      width:auto;
    }
  }

  /* table */
  .commonTable {
    .btn-edit,
    .btn-save,
    .btn-close {
      height: 22px;
      margin: 0;
    }

    .btn-close {
      margin-left: 10px;
    }

    .btn-group {
      margin-top: 1px;
    }

    th.twoCell div,
    th.singleOne div {
      padding: 0 10px;
    }

    tr {
      th,
      td {
        &.fixcell {
          &:first-child {
            min-width: 195px !important;
            width: 195px !important;
            max-width: 195px !important;
          }

          .addBtn {
            padding: 1px 10px;
          }
        }
      }

      th {
        font-family: $base-font-semibold !important;
      }

      td.celledit {
        padding: 0 !important;

        input {
          border: 1px solid color('very-light-grey');
          font-size: 13px !important;
          text-align: center !important;
        }
      }

      td {
        border-bottom: none;
      }

      td.averageColumn {
        background-color: color("hawkes-blue-2") !important;
      }

      .negativeValueColor {
        color: color('red') !important;
      }
    }

    .trPattensBlue th,
    .trLinkWater th,
    .trHead th {
      font-family: $base-font !important;
    }
  }

  .consolidatedMaxTable {
    tr {
      th, td {
        width: 118px;
        min-width: 118px;
      }

      td.fixcell:first-child {
        min-width: 245px !important;
        width: 245px !important;
        max-width: 245px !important;
      }

      th.fixcell {
        padding-left: 10px !important;
      }

      td.fixcell {
        padding-left: 35px !important;
        height: 23px;

        &.icon-cirle-show {
          padding-left: 50px !important;

          .icon-cirle {
            display: block;
          }
        }
      }

      .fixcell , .Last ,.headerColumn{
        border-right: 1px solid color("sapphire") !important;
      }

      th:last-child,
      td:last-child {
        border-right: 1px solid color("white") !important;
      }

      .icon-collapse,
      .icon-cirle {
        position: absolute;
        top: 0;
      }

      .icon-collapse {
        padding: 2px 0;
        left: 10px;
      }

      .icon-cirle {
        display: none;
        left: 30px;
        padding: 7px 5px;

        i {
          width: 10px;
          height: 10px;
          display: block;
          @include border-radius(50px);
          background-color: color("atlantis");
        }
      }

      .border-right-white {
        border-right: 1px solid color('white') !important;
      }

      .border-right-blue {
        border-right: 1px solid color('sapphire') !important;
      }
    }

    &.editViewTable {
      th.fixcell {
        padding-left: 10px !important;
      }

      td.fixcell {
        padding-left: 35px !important;
      }

      .contributioncell {
        display: table-cell !important;
      }
    }
  }

  .otherIncomeRevenueTable {
    tr {
      th, td {
        width: 90px;
        min-width: 90px;
        height: 25px !important;
        &.overridecolumn {
          span{
            color: blue;
          }
        }
      }

      &:first-child th {
        height: 25px !important;
        border-top: none !important;
      }

      .forecastLogicColumn {
        min-width: 112px;
        width: 112px;
      }
    }
    input[type="text"] {
      width: 108px !important;
    }
  }

  .otherIncomeRevenueTable.otherIncomeDeptSummaryTable {
    input[type="text"] {
      width: 88px !important;
    }
    .totalColumn {
      input[type="text"] {
        width: 108px !important;
      }
    }
  }

  .revenuerow,
  .revenuecell,
  .contributioncell {
    display: none;
  }

  .gotoselectarea .dropdown-menu {
    z-index: 900 !important;
  }
}

.utilities--other-icome {
  .tab-pane {
    display: none;

    &.active {
      display: block;
    }
  }

  .rollingWeek-departmentLogic {
    font-size: 15px;
    margin: 0 151px 0 8px;
  }

  .utilities-edit,
  .save-utilities-view, /* remove */
  .utilities-view {
    padding-bottom: 120px;
  }

  .new-title-bar {
    padding: 0 100px 0 10px;
    position: relative;
    margin-bottom: 0 !important;

    .action {
      height: 30px;
      min-width: 34px;
      padding-left: 10px;
      position: absolute;
      right: 10px;
      top: 0;
      z-index: 10;
      @include flexbox();
    }

    .btn-close,
    .btn-edit,
    .btn-save {
      display: none;

      &.active {
        display: inline-flex !important;
        background-color: transparent !important;
      }
    }
  }

  .mars-radio label .color {
    width: 16px !important;
  }

  .utilities-outlet {
    .utilities__row {
      -ms-grid-template-columns: 220px auto;
      grid-template-columns: 220px auto;
    }

    .utilities__row-time2 {
      display: flex;
      gap: 10px;
      overflow: visible;

      .utilities-item {
        display: -ms-grid;
        display: grid;
        -ms-grid-template-columns: 170px auto;
        grid-template-columns: 170px auto;
        grid-column-gap: 2px;

        .data {
          width: 120px;
        }

        .data-select {
          width: 220px;
        }

        &.utilities-item--category {
          -ms-grid-template-columns: 120px auto;
          grid-template-columns: 120px auto;

          .forecastPageSelect {
            width: 220px;
            margin-bottom: 0;
          }
        }
      }
    }

    .utilities__row-category-title {
      -ms-grid-template-columns: 1fr;
      grid-template-columns: 1fr;

      .utilities__cell-head {
        text-align: left;
        background-color: color("hawkes-blue") !important;
      }
    }
  }

  .utilities-edit .utilities__row-category {
    display: -ms-grid;
    display: grid;
    -ms-grid-template-columns: 220px 526px;
    grid-template-columns: 220px 526px;

    .utilities__cell.is-historical:first-child,
    .utilities__cell.is-historical {
      @include flexbox();
      justify-content: space-around;
    }

    .utilities__cell.is-historical:first-child strong {
      font-family: $base-font;
      font-weight: normal;
      padding: 3px 0 0 0;
      margin-right: 5px;
      width: auto;
    }
  }

  .utilities-dept {
    .mars-radio.active, .mars-radio:hover {
      background: none !important;
    }

    .utilitiesDeptSelect {
      width: 200px;
      margin-bottom: 0;
    }

    .utilities__row {
      -ms-grid-template-columns: 200px minmax(220px, 1fr);
      grid-template-columns: 200px minmax(220px, 1fr);
    }

    .mars-radio label .color {
      width: 16px !important;
    }

    .utilities-edit .utilities__row-category {
      display: grid;
      -ms-grid-template-columns: 200px 1fr;
      grid-template-columns: 200px 1fr;

      .utilities__cell {
        @include flexbox();
        justify-content: space-between;
      }

      .utilities__cell:first-child strong {
        width: auto;
      }
    }
  }
}

/* change */
.ui-dialog.dialog-autoadjustforcast .otherincome-autoadjust-popup {
  padding: 0 0 10px 0 !important;

  .autoadjust {
    width: auto;
    overflow: auto !important;

    .blocktab {
      display: none;
    }

    .block {
      .block-title {
        width: 150px;
      }

      .block-input {
        margin-left: 160px;
      }
    }
  }

  .right-block .before-after-change .row {
    .head-cell, .cell {
      padding: 5px 10px;
      width: 22%;
    }

    .cell:first-child {
      width: 34%;
    }

    &.head-row:before {
      left: 34%;
    }

    .head-cell:first-child {
      width: 34%;
    }
  }
}

.ui-resizable,
.ui-draggable {
  @media (max-width: 960px) {
    max-width: 95%;
  }
}
