/* 
 * reset.css is in index.js
 * default styles are in App.js
 * responsive breakpoints https://ant.design/components/layout#breakpoint-width :
{
  xs: '480px',
  sm: '576px',
  md: '768px',
  lg: '992px',
  xl: '1200px',
  xxl: '1600px',
}
*/

:root {
  --icon-width: 22px;
}

/* ELEMENTS */

* {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  margin-top: 1em;
  margin-bottom: 1em;
}

hr {
  color: #C2C2C2;
  margin-bottom: 16px;
}

/* BUTTONS & LINKS */

button.ant-btn-link {
  min-width: unset;
  text-decoration: underline;

  & span {
    text-decoration: underline;
  }
}

.no-underline {
  text-decoration: none;
}

.btn-link {
  text-decoration: none;
  color: #1B998B;

  &:hover {
    color: #66D3C7;
  }
}

.dark .ant-btn-link {
  color: #E1E8FF;
}

.link-style {
  text-decoration: underline;
}

.ant-btn {
  min-width: 170px;
}

/* BASE CLASSES */

.main-content {
  margin: 0;
  min-height: 280px;
  padding: 16px;
}

@media (min-width: 992px) {
  .main-content {
    padding: 16px 24px 24px 24px;
  }
}


@media (min-width: 992px) {
  .justify-end-responsive {
    display: flex !important;
    justify-content: flex-end !important;
  }
}

@media (min-width: 992px) {
  .see-all-row {
    margin-top: -64px;
  }
}

.daterange-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;

  & .ant-picker {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .daterange-wrapper .ant-picker {
    width: 216px;
  }
}

@media (min-width: 1200px) {
  .daterange-wrapper {
    gap: 8px;
    flex-direction: row;
  }
}

/* HEADER */

.ant-layout-header {
  padding: 12px 4px !important;
  height: auto !important;
  line-height: unset !important;
}

.light .ant-layout-header {
  border-bottom: 2px solid #C2C2C2;
}

.dark .ant-layout-header {
  & .ant-select-selector,
  & .ant-select-selection-search-input {
    border: none !important;
    background-color: #101010 !important;
  }

  & input {
    background-color: #101010 !important;
  }
}

.header-select,
.header-search {
  width: 100%;
}

@media (min-width: 1200px) {
  .header-select {
    width: 293px !important;
    margin-right: 8px;
  }
  .header-search {
    width: 308px;
    margin-right: 16px;
  }
}

/* TABLES */

.ant-table {
  background: transparent !important;
}

.small-table {

  & table {
    border-collapse: collapse;
  }

  & .ant-table-thead {
    border-bottom: 1px solid #8B8B8B;
  }
}

.light {

  & .ant-table-wrapper:not(.small-table) .ant-table-sticky-holder,
  & .ant-table-wrapper:not(.small-table) .ant-table-thead>tr>th {
    background-color: #F9F9F9;
  }

  & tr:nth-child(even) {
    background-color: #ffffff;
  }

  & .small-table {

    & tr,
    & .ant-table-thead>tr>th {
      background: white;
      border: none;

      & ::before {
        background-color: unset !important;
      }
    }
  }
}

.dark {

  & .ant-table-wrapper:not(.small-table) .ant-table-sticky-holder,
  & .ant-table-wrapper:not(.small-table) .ant-table-thead>tr>th {
    background-color: black;
  }

  & tr:nth-child(even) {
    background-color: #2D2D2D;
  }

  & .small-table {

    & tr,
    & .ant-table-thead>tr>th {
      background: #2D2D2D;
      border: none;

      & ::before {
        background-color: unset !important;
      }
    }
  }
}

.ant-table-wrapper td.ant-table-column-sort {
  background: unset;
}

table a:focus {
  background-color: #FFDA80;
}

.ant-pagination-item a {
  text-decoration: none;
}

.table-ellipsis .ant-table-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.clickable .ant-table-row {
  cursor: pointer;
}

/* FORMS */

@media (min-width: 1200px) {
  .form-width {
    width: 471px;
  }
}

@media (min-width: 1200px) {
  .form-style {
    width: 495px;
    padding-left: 24px !important;
  }
}

/* gray background */
.ant-layout-content {

  & .standard-input,
  & .ant-input,
  & .ant-picker,
  & .ant-select .ant-select-selector,
  & .ant-input-affix-wrapper {
    border-width: 0;
  }
}

/* white background */
.ant-card {
  & .standard-input,
  & .ant-input,
  & .ant-picker,
  & .ant-select .ant-select-selector,
  & .ant-input-affix-wrapper {
    border-width: 1px;
  }
}

.standard-input {
  min-width: 180px;
  width: 100%;
}

@media (min-width: 1200px) {
  .standard-input {
    width: 293px !important;
  }
}

.ant-form-item-label {
  font-weight: bold;
}

.ant-select-arrow {
  font-size: 14px !important;
}

.light .ant-select-arrow {
  color: #000 !important;
}

.dark .ant-select-arrow {
  color: #fff !important;
}

@media (min-width: 1200px) {
  .register-tabs-radio {
    display: flex;
    justify-content: space-between;
    width: 45%;
  }
}

/* SIDEBAR LOGO */

.logo-wrapper {
  display: block;
  text-align: left;
}

.logo {
  height: 68px;
  padding: 8px 24px;
}

.ant-layout-sider-collapsed .logo {
  padding: 8px;
}

.sidebar-logo {
  position: fixed;
  bottom: 10px;
  width: 64px;
}

@media (min-width: 992px) {
  .sidebar-logo {
    width: unset;
  }
}

/* SIDEBAR MENU */

.ant-menu-root {
  border: none !important;
}

.ant-menu-item-selected a {
  font-weight: bold;
}

.dark {

  & .ant-layout-sider-dark,
  & .ant-menu-root {
    background-color: #2D2D2D;
  }

  & .ant-menu-item:hover,
  & .ant-menu-item-selected,
  & .ant-menu-submenu-title:hover {
    background-color: #000000 !important;
  }

  & .ant-menu-item-selected a {
    color: #E1E8FF !important;
  }
}

.light {
  & .ant-menu-light.ant-menu-inline .ant-menu-sub.ant-menu-inline {
    background-color: #ffffff;
  }

  & .ant-menu-item:hover,
  & .ant-menu-item-selected {
    background-color: #F9F9F9 !important;
  }

  & .ant-menu-item-selected a {
    color: #000 !important;
  }
}

.ant-menu-item,
.ant-menu-inline .ant-menu-submenu-title {
  margin: 0 !important;
  width: 100% !important;
}

.ant-menu-inline .ant-menu-submenu .ant-menu-item {
  padding-left: 82px !important;
}

.ant-menu-inline .ant-menu-item,
.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title {
  height: 56px;
  line-height: 56px;
}

.ant-layout-sider li img {
  width: var(--icon-width);
}

/* HOME */

@media (min-width: 1200px) {
  .home-card {
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 1400px) {
  .home-daterange .daterange-wrapper {
    gap: 40px;
  }
}

.homepage-select {
  width: 100%;
}

@media (min-width: 1200px) {
  .homepage-select {
    width: 216px;
  }
}

.free-compartments {
  margin-bottom: 24px;
  margin-top: 12px;
  max-height: 246px;
  overflow-y: auto;
}

/* TEMPLATE EDITOR */

.parameter-modal {
  /* &.ant-modal-content,
  &.ant-modal-header {
    background-color: white;
  } */

  &.ant-modal-body,
  &.ant-modal-footer {
    padding: 30px 60px;
  }

  &.ant-btn {
    min-width: 120px;
  }
}

/* VARIOUS */

.ant-tabs-nav-wrap {
  border-bottom: 1px solid #BFBFBF;
}

.ant-tabs-tab {
  min-width: 100px;
  justify-content: center;
}

.ql-editor {
  min-height: 400px;
}

.light .ant-form-item-required::before {
  color: #000 !important;
}

.dark .ant-form-item-required::before {
  color: #fff !important;
}
