/* Styles 1 and 2 (table). Style 2 differs from style 1 by square corners (--smpt-table-radius) and an
   unfilled header (a heavier rule underneath instead of a background).
   Colors are CSS variables so the Advanced settings can override them (see add_smpt_shortcode_scripts). */
.smpt-table-wrap{
    display: flex;
    flex-direction: column;
    gap:1rem;
    max-width: 35ch;
    font-family: inherit;
    --smpt-table-radius: 0.5rem;
    --smpt-header-bg: #e6e6e6;
    --smpt-active-row-bg: hsla(0,0%,50.2%,.1019607843);
}
.smpt-table-wrap.smpt-table-style-2{
    --smpt-table-radius: 0;
}
.smpt-table-style-2 .smpt-table thead th{
    background-color: transparent;   /* set directly (not via --smpt-header-bg) so no color override can fill it */
    border-top: 1px solid #ddd;
    border-bottom: 2px solid #ddd;
    border-right: 1px solid #ddd;    /* column dividers, as in the body rows (each cell draws its right edge) */
}
.smpt-table-style-2 .smpt-table thead th:first-child{
    border-left: 1px solid #ddd;
}
.smpt-table-wrap>h4{
    text-align: center;
    line-height: 1;
    margin: 0;
}
.smpt-date-header{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:0.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
}
.smpt-table{
    border-collapse:separate;
    border-spacing:0px;
    font-size: 1rem;
    margin: 0;
}
.smpt-table thead th{
    background-color: var(--smpt-header-bg);
    color: var(--smpt-header-color, inherit);
    font-weight: 500;
}
.smpt-table .smpt-row td{
    background-color: #fff;
}
.smpt-table thead th, .smpt-table tbody td{
    padding: 0.3125rem 0.625rem;
}
.smpt-table:nth-of-type(1) thead th:first-child{
    text-align: left;
    padding-left:calc(0.625rem + 1.6rem + 0.5rem);
}
.smpt-table tbody td{
    border: 1px solid #ddd;
}
.smpt-table thead tr:first-child th:first-child{
    border-top-left-radius: var(--smpt-table-radius);
}
.smpt-table thead tr:first-child th:last-child{
    border-top-right-radius: var(--smpt-table-radius);
}
.smpt-table thead tr:nth-child(n+2) th,.smpt-table tbody td{
    border-top:0px;
}
.smpt-table tr:last-child td:first-child{
    border-bottom-left-radius: var(--smpt-table-radius);
}
.smpt-table tr:last-child td:last-child{
    border-bottom-right-radius: var(--smpt-table-radius);
}
.smpt-table tr :nth-child(n+2){
    border-left: none;
}
.smpt-table:nth-of-type(1) td:nth-child(n+2){
    text-align: center;
}
.smpt-table-icon{
    width:1.6rem;
    margin-right:0.5rem;
    vertical-align: bottom;
}
.smpt-box-bottom{
    display:flex;
    align-items:center;
    justify-content: space-between;
    font-size: 1rem;
}
.smpt-box-bottom>div{
    display: flex;
    text-align: center;
}
.smpt-box-bottom img{
    align-self: center;
    width: 2rem;
}
.smpt-table .smpt-active-row td{
    background-color: var(--smpt-active-row-bg);
    color: var(--smpt-active-row-color, inherit);
}
/* Keep theme row-hover styles (some themes color every table row) off our rows. */
.smpt-table tbody tr.smpt-row:hover > td{
    background-color: #fff;
}
.smpt-table tbody tr.smpt-active-row:hover > td{
    background-color: var(--smpt-active-row-bg);
}
.smpt-table:nth-of-type(2) td{
    text-align: center;
}
@media(max-width:500px){
    .smpt-table-wrap{
        max-width: 100%;
    }
}
