/*
===================================================================================================
TABLE
===================================================================================================
*/

@layer table {

.table {width: 100%; margin-inline: auto; background: var(--color-white); padding: var(--table-padding); border-radius: var(--radius-16);}

/* HEAD
**************************************************************************************************/
.table--head {background: transparent; padding-bottom: var(--spacing-10);}

/* ------------- ELEMENTS ------------- */
.table--head .table--cell {min-height: auto; padding-top: var(--spacing-5); padding-bottom: var(--spacing-5); background: none;}


/* BODY
**************************************************************************************************/
.table--body {background: transparent;}
.table--body .table--row:last-child {margin-bottom: 0;}

/* BODY
**************************************************************************************************/
.table--row {display: grid; gap: var(--spacing-5); margin-bottom: var(--spacing-5); grid-template-columns: var(--table-grid-columns);}

/* ------------- SUB MODULES ------------- */
.table--row__group ~ .table--row__group {margin-top: calc(var(--spacing-20) + var(--spacing-10));}
.table--row__extra {display: none;}
.is-open .table--row__extra {display: grid;}

/* CELL
**************************************************************************************************/
.table--cell {min-height: var(--spacing-40); padding: calc( var(--spacing-10) + var(--spacing-5) ); display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: var(--line-height-140); color: var(--color-blue-800); background: var(--color-grey-50); border-radius: var(--radius-6); font-weight: var(--font-weight-regular);}

/* ------------- SUB MODULES ------------- */
.table--cell__dark {font-weight: var(--font-weight-semibold); color: var(--color-blue-800);}
.table--cell__light {font-weight: var(--font-weight-regular); color: var(--color-grey-600);}
.table--cell__left {justify-content: flex-start; text-align: left;}
.table--cell__right {justify-content: flex-end; text-align: right;}
.table--cell__split {justify-content: space-between; text-align: left; gap: var(--spacing-5);}
.table--cell__sm-padding {padding: var(--spacing-5) calc(var(--spacing-10) + var(--spacing-5));}
.table--cell__no-padding-right {padding-right: 0;}
.table--cell__no-padding {padding: 0;}
.table--cell__no-vertical-padding {padding-top: 0; padding-bottom: 0;}
.table--cell__clear {background: none;}
.table--cell__auto {min-height: auto;}
.table--cell__full {grid-column: 1 / -1;}


/* ------------- ELEMENTS ------------- */
.table--cell .signal {display: inline-flex;}
.table--head .table--cell__dark {font-size: var(--font-size-18); color: var(--color-purple-500);}
.table--head .table--cell__blue {color: var(--color-blue-500);}

/* CELL SMALL
**************************************************************************************************/
.table--cell-small {font-size:var(--font-size-12); line-height:var(--line-height-140);  color:var(--color-grey-600); text-align: center;}

/* EMPTY
**************************************************************************************************/
.table--empty {color: var(--color-grey-500);}

/* CELL BLUR
**************************************************************************************************/
.table--cell-blur {display: flex; flex-direction: column; justify-content: center; align-items: center;}

/* ------------- SUB MODULES ------------- */
.table--cell-blur__score {background: url("/assets/score-xs-blur-99167ff6.png") center center / 84px 56px no-repeat; height: 56px; width: 88px;}
.table--cell-blur__opinion {background: url("/assets/opinion-xs-blur-41f6c483.png") center center / 111px 42px no-repeat; height: 56px; width: 112px;}

/* HINT
**************************************************************************************************/
.table--hint {display: flex; flex-basis: 100%; align-items: center; justify-content: center; column-gap: var(--spacing-5); font-size:var(--font-size-12); color:var(--color-grey-600);}
.table--hint .icon {color: var(--color-grey-500); flex: 0 0 auto;}
.table--hint .icon__info-border {width: 15px; height: 15px;}

/* ORDER
**************************************************************************************************/
.table--order {display: inline-flex; align-items: center; cursor: pointer; color: inherit;}
.table--order .icon__arrow {width: 13px; height: 13px; color: var(--color-grey-600); transition:transform .2s ease;}
.table--order.is-asc .icon__arrow {transform: rotate(180deg);}
.table--order.is-desc .icon__arrow {transform: rotate(0deg);}
.table--order:hover .icon__arrow, .table--order.is-active .icon__arrow {color: var(--color-purple-200);}

/* ENTITY
**************************************************************************************************/
.table--entity {display:flex; flex:1 1 auto; min-width:0; width:100%; align-items: flex-start; justify-content: space-between; gap:var(--spacing-20);}

/* ENTITY PRIMARY
**************************************************************************************************/
.table--entity-primary {display:flex; flex-direction:column; gap: var(--spacing-5); min-width:0;}

/* ENTITY META
**************************************************************************************************/
.table--entity-meta {display:flex; align-items:baseline; gap:var(--spacing-5);}

/* ENTITY SECONDARY
**************************************************************************************************/
.table--entity-secondary {margin-left:auto; text-align:right; white-space:nowrap; align-self:flex-start; display:flex; align-items:flex-start;}
.table--entity-secondary .table--entity-text {display:block;}

/* ENTITY LINK
**************************************************************************************************/
.table--entity-link {font-size:var(--font-size-14); line-height:var(--line-height-120); font-weight:var(--font-weight-semibold); color:var(--color-purple-500); text-decoration: underline;}
.table--entity-link:hover {text-decoration: none;}

/* ENTITY SMALL
**************************************************************************************************/
.table--entity-small {font-size:var(--font-size-12); line-height:var(--line-height-120); color:var(--color-grey-600);}

/* ENTITY TEXT
**************************************************************************************************/
.table--entity-text {font-size:var(--font-size-12); line-height:var(--line-height-140);  color:var(--color-grey-600);}

/* SCORE
**************************************************************************************************/
.table--score {display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--radius-6); color: var(--color-white); font-size: var(--font-size-12); font-weight: var(--font-weight-bold); background: var(--table-score-color);}

/* ------------- SUB MODULES ------------- */
.table--score__score-0 {--table-score-color: var(--color-score-0);}
.table--score__score-1 {--table-score-color: var(--color-score-1);}
.table--score__score-2 {--table-score-color: var(--color-score-2);}
.table--score__score-3 {--table-score-color: var(--color-score-3);}
.table--score__score-4 {--table-score-color: var(--color-score-4);}
.table--score__score-5 {--table-score-color: var(--color-score-5);}
.table--score__score-6 {--table-score-color: var(--color-score-6);}
.table--score__score-7 {--table-score-color: var(--color-score-7);}
.table--score__score-8 {--table-score-color: var(--color-score-8);}
.table--score__score-9 {--table-score-color: var(--color-score-9);}
.table--score__score-10 {--table-score-color: var(--color-score-10);}

/* PRICING TABS
**************************************************************************************************/
.table--tabs-control {position: absolute; opacity: 0; pointer-events: none;}
.table--tabs-toggle {display: none;}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .table--tabs-toggle {display: inline-flex; margin-bottom: var(--spacing-20);}

  .table__pricing-tabs .table--row {grid-template-columns: 1.4fr 1fr;}

  #pricing-table-tab-basic:checked ~ .table--tabs-toggle .table--tabs-toggle-item[for="pricing-table-tab-basic"],
  #pricing-table-tab-pro:checked ~ .table--tabs-toggle .table--tabs-toggle-item[for="pricing-table-tab-pro"],
  #pricing-table-tab-urba:checked ~ .table--tabs-toggle .table--tabs-toggle-item[for="pricing-table-tab-urba"] {
    background: var(--toggle-background-active-color);
    color: var(--toggle-active-color);
  }

  #pricing-table-tab-basic:checked ~ .table__pricing-tabs .table--cell:nth-child(3),
  #pricing-table-tab-basic:checked ~ .table__pricing-tabs .table--cell:nth-child(4) {display: none;}

  #pricing-table-tab-pro:checked ~ .table__pricing-tabs .table--cell:nth-child(2),
  #pricing-table-tab-pro:checked ~ .table__pricing-tabs .table--cell:nth-child(4) {display: none;}

  #pricing-table-tab-urba:checked ~ .table__pricing-tabs .table--cell:nth-child(2),
  #pricing-table-tab-urba:checked ~ .table__pricing-tabs .table--cell:nth-child(3) {display: none;}
}
@media screen and (max-width: 380px) {
  .table--tabs-wrap {overflow-x: scroll;}
  .table__pricing {min-width: 250px;}
}


/*
===================================================================================================
SUB MODULES
===================================================================================================
*/

/* PRICING
**************************************************************************************************/
.table__pricing {
  --table-grid-columns: 2fr 1fr 1fr 1fr;
  --table-grid-mobile-columns: 1.8fr 1fr 1fr 1fr;
  --table-padding: var(--spacing-20);
}

/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .table__pricing {--table-padding: var(--spacing-10);}
  .table__pricing .table--cell {padding: var(--spacing-10);}
}

/* SCORE SCALE
**************************************************************************************************/
.table__score-scale {
  --table-grid-columns: .5fr 2fr 1.1fr .9fr;
  --table-grid-mobile-columns: .5fr 2fr 1.1fr .9fr;
  --table-padding: var(--spacing-10);
  max-width: 800px;
  border: 1px solid var(--color-grey-100);
  box-shadow: var(--shadow-xs);
}
.table__score-scale .table--cell {justify-content: flex-start; text-align: left; min-height: auto; padding: var(--spacing-10); font-size: var(--font-size-12);}
.table__score-scale .table--head .table--cell {align-items: center; padding-top: var(--spacing-5); padding-bottom: var(--spacing-5);}
.table__score-scale .table--body .table--row > .table--cell:first-child {justify-content: center; text-align: center;}

/* RESPONSIVE */
@media screen and (max-width: 540px) {
  .table__score-scale {--table-grid-columns: .5fr .9fr; --table-grid-mobile-columns: .5fr .9fr;}
  .table__score-scale .table--cell:nth-child(2),
  .table__score-scale .table--cell:nth-child(3) {display: none;}
}

/* FINANCIAL
**************************************************************************************************/
.table__financial {
  --table-grid-columns: 2fr .85fr .85fr .55fr;
  --table-grid-mobile-columns: 1.8fr 1fr 1fr 1fr;
  --table-padding: 0;
}

/* WATCHLIST
**************************************************************************************************/
.table__watchlist {
  --table-grid-columns: 2fr .85fr .85fr .55fr .15fr;
  --table-grid-mobile-columns: 1.8fr 1fr 1fr 1fr .15fr;
  --table-padding: 0;
}
.table__watchlist .table--head .table--cell:last-child {width: 70px;}


/* MOBILE
**************************************************************************************************/

/* RESPONSIVE */
@media (max-width: 1180px) {
  .table__mobile-w1180 {position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable both-edges;}
  .table__mobile-w1180 .table--head, .table__mobile-w1180 .table--body {min-width: 1170px;}
  .table__mobile-w1180 .table--row {grid-template-columns: var(--table-grid-mobile-columns);}
}
@media (max-width: 768px) {
  .table__mobile-w768 {overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable both-edges;}
  .table__mobile-w768 .table--head, .table__mobile-w768 .table--body {min-width: 760px;}
  .table__mobile-w768 .table--row {grid-template-columns: var(--table-grid-mobile-columns);}
}

}


