:root {
  --stickyBackground: #f5f5f5;
  --borderColor: #C9D1DC;
}

.table-wrapper {
    height: 80vh;
    border: 1px solid var(--borderColor);
    overflow: auto;
    width: 99%;
    margin: auto;
    max-width: 800px;
}

.table-wrapper p {
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    padding-bottom: 7px;
}

.table-wrapper em {
    font-size: 80%;
    color: #9C9C9C;
}


.table-wrapper button {
    margin-bottom: 4px;
}

table {
  border-spacing: 0;
}

#page-content table .button-cta button {
    padding-top: 10px!important;
    padding-bottom: 10px!important;
    line-height: 1;
    font-size: 96%;
}

#page-content table i {
    position: relative;
    z-index: 1;
}

thead {
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

tbody {
    font-size: 1rem;
    line-height: 1.2;
}

th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--borderColor);
}

td {
    text-align: center;
    line-height: 1.2;
}


.multiple-amounts td {
    line-height: 3;
}

td.sticky {
    text-align: left;
    line-height: 1.2;
    z-index: 5;
}

th.sticky {
    text-align: center;
}

tr:last-child td {
  border-bottom: none;
}


/*
STICKY ROW
Normal css box-shadow works for the header as it is a single html element
*/

tr.sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--stickyBackground);
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}


/*
STICKY COLUMN
Avoid undesirable overlapping shadows by creating a faux shadow on the ::after psudo-element instead of using the css box-shadow property.
*/

th.sticky,
td.sticky {
    position: sticky;
    left: 0;
    background: var(--stickyBackground);
    /* [disabled]z-index: 10; */
}

th.sticky::after,
td.sticky::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 0;
  bottom: -1px;
  width: 5px;
  border-left: 1px solid var(--borderColor);
  background: linear-gradient(90deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 100%);
}

th.sticky::before,
td.sticky::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  bottom: -1px;
  width: 5px;
  border-right: 1px solid var(--borderColor);
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.08) 100%);
}

/* CUSTOM */
.card-business {
    font-size: 90%;
    min-width: 120px;
}

.card-business span {
    font-weight: bolder;
    font-size: 120%;
    line-height: 1.2;
}

.business-location_1,
.business-location_2,
.business-location_3,
.business-location_4,
.business-location_5,
.business-location_6,
.business-location_7 {
    color: #fff;
}

.business-location_1 {
    background-color: rgba(119,127,150,0.90);
}

.business-location_2 {
    background-color: rgba(117,147,144,0.90);
}

.business-location_3 {
    background-color: rgba(150,144,120,0.90);
}

.business-location_4 {
    background-color: rgba(134,85,110,0.90);
}

.business-location_5 {
    background-color: rgba(85,107,134,0.90);
}

.business-location_6 {
    background-color: rgba(73,96,51,0.90);
}

.card-loc-marker,
.card-website {
    background-color: rgba(240,240,240,0.90);
}

.card-type {
    background-color: rgba(224,224,224,1.00);
}



.card-amount {
    background-color: #fff;
    font-weight: bolder;
}
.card-amount p {
    text-align: right;
}

.card-availability {
    color: #fff;
    background-color: rgba(155,155,155,1.00);
    font-weight: bolder;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-availability p {
    text-align: center
}

.card-type_load,
.card-type_static,
.card-type_punch {
    font-weight: bolder;
}

.card-type_load {
    color: #254D26
}

.card-type_static {
    color: #8A2C2C
}

.card-type_punch {
    color: #235676
}


/* Legend */
    .legend-item {
        display: flex;
        gap:6px;
        margin-bottom: 2px;
    }    
    
    .legend-item_title,
    .legend-item_content {
        padding: 6px 15px;
    }
    
    .legend-item_title {
    white-space: nowrap;
        min-width: 120px;
    background-color: #686868;
    color: #FFFFFF;
    font-weight: bolder;
        align-content: center;
        text-align: center;
    }
    
    .legend-item_content {
        color: rgba(58,58,58,1.00)
    }
