File "groupReadDrawer.module.scss"

Full Path: /var/www/html/gitep_front/src/pages/ProjectPage/groupReadDrawer/groupReadDrawer.module.scss
File size: 11.51 KB
MIME-type: text/plain
Charset: utf-8

.wrapper {
border-radius: 8px !important;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 1400px;
    background: #fff;
    flex: unset;

  :global {
    .ant-table-thead {
      position: sticky;
      top: 0;
      z-index: 5;
    }

    .ant-table .ant-checkbox-wrapper {
      padding: 12px;
    }
  }
}

.totalColumn,
:global(.ant-table-thead > tr > th.totalColumn) {
  border-right: 1px solid #722ED1 !important;
}

:global(.ant-table-cell-fix-left-last.totalColumn),
:global(.ant-table-thead > tr > th.ant-table-cell-fix-left-last.totalColumn) {
  box-shadow: 3px 0 5px -2px rgba(155, 93, 229, 0.5);
}

.tableArticle {
  min-height: 0;
  max-height: 100%;
  height: 76vh;

  // Сбрасываем зелёный цвет у текста в первой ячейке (например "Доходы" / "Расходы")
  :global(.ant-table-row-level-0 > td:first-child) {
    color: #101828 !important; // основной цвет текста
    font-weight: 600; // можешь убрать, если не нужно выделение
  }

  // Если иконка стрелки идёт перед текстом и Ant Design делает текст ссылкой — сбрасываем у ссылки
  :global(.ant-table-row-level-0 > td:first-child a) {
    color: #101828 !important;
    text-decoration: none !important;
  }

  // И для дочерних строк (если нужно, чтобы они были менее акцентными)
  :global(.ant-table-row-level-1 > td:first-child) {
    color: #344054 !important;
    font-weight: 500;
  }

  :global(.ant-table-tbody > tr > td:first-child) {
    padding-left: 32px !important; //отступ слева для стрелки
  }
  :global(.ant-table-row-level-0 > td:first-child) {
    color: #101828 !important; // основной цвет текста
    font-weight: 600; // можешь убрать, если не нужно выделение
  }
  :global(.ant-table),
  :global(.ant-table-container),
  :global(.ant-table-content),
  :global(.ant-table-thead > tr > th),
  :global(.ant-table-tbody > tr > td) {
    border-radius: 0 !important;
  }

  :global(.ant-table-wrapper) {
    border-radius: 0 !important;
  }

  :global(.ant-table-cell-fix-left),
  :global(.ant-table-cell-fix-right) {
    border-radius: 0 !important;
  }

  //Скрывает боредры в таблице
  //:global(.ant-table-thead > tr > th),
  //:global(.ant-table-tbody > tr > td) {
  //  border-right: none !important;
  //  border-left: none !important;
  //}

  :global(.ant-table-tbody > tr.ant-table-row-level-0 > .ant-table-cell) {
    background-color: #f4f6fa;
  }
}

.wrapperTest {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  //margin: 16px 16px 16px 0;
  height: calc(100vh - 276px);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  :global(.ant-table-cell:hover) {
    background-color: #EFDBFF !important;
  }
}

:global(.ant-table-thead > tr > th) {
  background-color: #fafafa;
  font-weight: 600;
  text-align: center;
}

:global(.ant-table-wrapper .ant-table-thead > tr > th) {
  background: #f9fafb;
}
.groupReadContainer {
    margin-top: 24px;
    height: 60% !important;
}
:global(.ant-segmented-item) {
  width: auto!important;
}
:global(.ant-segmented-item-label) {
  padding: 0 12px!important;
}
:global(.ant-table-cell-ellipsis >.ant-flex .ant-typography-ellipsis-single-line:last-child) {
  margin-top: -4px;
}

.treeSelect {
  height: 40px;

  :global {
    .ant-select-selection-placeholder {
      color: #101828 !important;
    }
  }
}

.dropdown {
  &:global(.ant-select-dropdown) {
    :global {
      .ant-select-tree-switcher {
        display: none !important;
      }

      .ant-select-tree-switcher-noop {
        display: none !important;
      }
      .ant-select-tree-indent {
        display: none !important;
      }
      .ant-select-tree-node-content-wrapper:hover {
        background: unset!important;
      }
      .ant-select-tree-list-holder {
        min-height: 365px!important;
        max-height: max-content!important;
      }
      .ant-select-tree-list-scrollbar {
        display: none !important;
      }
      .ant-select-tree-treenode {
        padding: 8px 12px;
        border-radius: 4px;
        margin-bottom: 0!important;
        &.ant-select-tree-treenode-group {
          font-weight: 500;
          padding-left: 0 !important;
        }

        &.ant-select-tree-treenode-leaf {
          padding-left: 40px;
        }
      }
      .ant-select-tree-treenode:hover {
        color: rgba(0, 0, 0, 0.88)!important;
        background: rgba(0, 0, 0, 0.04)!important;
      }
      .ant-select-tree-treenode:active {
        color: rgba(0, 0, 0, 0.88)!important;
        background: rgba(0, 0, 0, 0.15)!important;
      }

    }
  }
}

.paymentHeader {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plusTitle {
    font-size: 12px;
    color: #52C41A;
}

.headerTable {
  justify-content: space-between;
  padding: 16px;

  .treeSelect {
    &:global(.ant-select) {
      height: 40px;
      display: flex;
      align-items: center;
      :global {
        .ant-select-clear {
          display: none!important;
        }
      }
    }

    &:global(.ant-select-selector) {
      height: 40px !important;
      display: flex;
      align-items: center !important;
      border-radius: 8px;
    }

    &:global(.ant-select-multiple .ant-select-selection-overflow) {
      height: 36px !important;
      display: flex !important;
      flex-wrap: nowrap !important;
      overflow: hidden !important;
      overflow-x: auto !important;
      gap: 10 !important;
      scrollbar-width: none !important;
      &::-webkit-scrollbar {
        display: none !important;
      }
    }
  }
}

.totalTitle {
    font-size: 12px;
    color: #98A2B3;
}

.totalMinus {
    font-size: 12px;
    color: #FF4D4F;
}

.minusTitle {
    font-size: 12px;
}

.paymentRow {
    border: 1px solid gray;
    td {
      padding: 12px !important;
    }
  }

  .ant-tag-green {
    background: #f6ffed;
    border-color: #b7eb8f;
    color: #52c41a;
  }
  
  .ant-tag-orange {
    background: #fff7e6;
    border-color: #ffd591;
    color: #fa8c16;
  }

  .ant-tag-gray {
    background: #fafafa;
    border-color: #d9d9d9;
    color: rgba(0, 0, 0, 0.45);
  }

.ant-tabs-nav {
    margin: 0;
  }
  
  .ant-tabs-tab {
    padding: 8px 12px !important;
    color: #667085 !important;
  }
  
  .ant-tabs-tab-active {
    color: #101828 !important;
    font-weight: 500;
  }
  
  .ant-tabs-ink-bar {
    background: #101828;
  }
  
  .ant-tag-green {
    background: #ECFDF3 !important;
    color: #027A48 !important;
  }
  
  .ant-tag-orange {
    background: #FFFAEB !important;
    color: #B54708 !important;
  }
  
  .ant-tag-gray {
    background: #F9FAFB !important;
    color: #344054 !important;
  }
  
  .ant-tag-blue {
    background: #EFF8FF !important;
    color: #175CD3 !important;
  }

.treeSelect {
  height: 40px;

  :global {
    .ant-select-selection-placeholder {
      color: #101828 !important;
    }
  }
}

  .filter {
    // width: 350px;

    :global {
      .ant-segmented-item-label{
        font-size: 14px !important;
        display: flex;
        justify-content: center;
      }
    }
  }
  
  .groupReadContainer {    
    .universal-table {
      width: 100%;
      border-radius: 8px;
      border: 1px solid #eaecf0;
      overflow: hidden;
      
      .ant-table-thead > tr > th {
        background: #f9fafb;
        padding: 12px 16px;
        color: #667085;
        font-weight: 500;
      }
      
      .ant-table-tbody > tr > td {
        padding: 12px 16px;
        border-bottom: 1px solid #eaecf0;
      }
    }
  }
  
  // Стили для колонок
  .columns {
    display: flex;
    width: 830px;
    
    .dateColumn {
      width: 100px !important;
      flex-shrink: 0;
    }
    
    .purposeColumn {
      width: 300px !important;
      flex-grow: 1;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .projectColumn {
      width: 180px !important;
      flex-shrink: 0;
    }
    
    .amountColumn {
      width: 120px !important;
      flex-shrink: 0;
      text-align: right;
    }
    
    .statusColumn {
      width: 150px !important;
      flex-shrink: 0;
    }
  }

  .articleRow {
    &:hover td {
      background-color: #fafafa !important;
    }
    
    td {
      border-bottom: 1px solid #f0f0f0;
      padding: 12px 16px;
    }
  }
  
  .subcategory {
    td {
      background-color: #fafafa;
    }
  }
  
  .totalRow {
    td {
      background-color: #f6ffed;
      border-bottom: 2px solid #e6f4ff;
    }
  }

  .parentRow {
    & td {
      background: #F4F6FA !important;
      border-bottom: 2px solid #E4E7EC !important;
      
      // Первая ячейка с отступом для стрелки
      &:first-child {
        padding-left: 40px !important;
      }
    }
    
    // Стиль при наведении
    &:hover td {
      background: #F4F6FA !important;
    }
    
    // Стиль для иконки стрелки
    .ant-table-row-expand-icon {
      margin-left: -24px;
      color: #667085;
    }
  }
  
  .subcategory td {
    background: #FFFFFF !important;
    border-bottom: 1px solid #F0F0F0 !important;
    
    // Отступ для подкатегорий
    &:first-child {
      padding-left: 64px !important;
    }
  }

  // styles.module.scss
.treeSelect {
    min-width: 250px;
    height: 40px;
    
    .ant-select-selector {
      padding: 8px 12px;
      border-radius: 8px;
      display: flex;
      align-items: center;
    }
  }

  :global {
    .ant-select-multiple .ant-select-selection-overflow {
        height: 100% !important;
      }
  }

  
  .dropdown {
    .ant-select-tree-switcher {
      display: none;
    }

    .parentLabel {
      font-weight: 500;
      color: #101828;
    }

    .ant-select-tree-node-content-wrapper {
      padding-left: 24px;

      &:hover {
        background-color: #f5f5f5;
      }
    }

    .ant-select-tree-checkbox {
      margin-right: 8px;
    }
        .ant-select-selection-overflow {
          flex-wrap: nowrap !important;
          overflow: auto !important;
          padding: 4px 8px;
        }

  }

  .contragentRow {
    font-weight: 600;
    background-color: #f9fafb;
  }
  
  .paymentRow {
    .ant-typography-secondary {
      color: #667085;
    }
  }
  

  .contragentRow {
    // Применяем стили к глобальным классам Ant Design
    :global {
      .ant-table-cell-with-append {
        padding-left: 0 !important;
      }
  
      // Добавляем вертикальную черту для expandable строк
      .ant-table-row-expand-icon-cell {
        position: relative;
        
        &::after {
          content: '';
          position: absolute;
          top: 0;
          bottom: 0;
          right: 0;
          width: 1px;
          background: #f0f0f0;
        }
      }
    }
  }

.progressContainer {
  position: relative;
  width: 172px;
  height: 4px;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.progressBar {
  position: absolute;
  height: 100%;
  transition: width 0.3s ease;
}

.plusTitle {
  color: #73D13D;
  font-weight: 500;
}

.minusTitle {
  color: #101828;
  font-weight: 500;
}

.totalTitle, .totalMinus {
  color: #98A2B3;
  margin-left: 8px;
}

.contragentGroup {
  :global {
    .ant-table .ant-checkbox-wrapper {
      padding: 12px;
    }
  }
  :global(.ant-table-tbody > tr.ant-table-row-level-0 > .ant-table-cell) {
    background-color: #F4F6FA;
  }
}