


/* Type : wide */

[data-s4y-namespace="wide-table"].wide-table {
    /* max-width: 100%; */
    margin: auto;
    padding: 5px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: inline-block
}

[data-s4y-namespace="wide-table"].wide-table .event-button {
    text-align: right;
    margin-bottom: 5px;
}

[data-s4y-namespace="wide-table"].wide-table .event-button button {
    text-align: right;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid lightgray;
    background: #fff;
    padding: 5px;
}

[data-s4y-namespace="wide-table"].wide-table .event-button input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid lightgray;
    font-size: 1rem;
    width: 150px;
}

[data-s4y-namespace="wide-table"].wide-table .event-button button.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed
}

[data-s4y-namespace="wide-table"].wide-table table {
    width: 100%;
    border-radius: 5px;
    border-collapse: collapse;
    white-space: nowrap;
}

[data-s4y-namespace="wide-table"].wide-table table th {
    background: #ddd;
    padding: 5px;
    border: 1px solid #fff;
    font-size: 80%;
}

[data-s4y-namespace="wide-table"].wide-table table tr td {
    text-align: center;
    padding: 5px;
    border: 1px solid #fff;
    
}

[data-s4y-namespace="wide-table"].wide-table tbody tr:nth-child(2n + 1) {
    background-color: #eee;
}

[data-s4y-namespace="wide-table"].wide-table .permanent span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

[data-s4y-namespace="wide-table"].wide-table table .hidden {
    display: none;
}

/* end */

/* Type : simple */

[data-s4y-namespace="wide-table"].simple-table {
    margin: auto;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: inline-block;
    width: 100%;
}

[data-s4y-namespace="wide-table"].simple-table input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid lightgray;
    font-size: 1rem;
    width: 150px;
    float: right;
    margin-top: 5px;
    margin-right: 5px;
}

[data-s4y-namespace="wide-table"].simple-table table {
    width: 100%;
    border-spacing: 0px;
    border: 5px solid transparent;
}

[data-s4y-namespace="wide-table"].simple-table table thead tr th {
    font-size: 0.8rem;
    font-weight: bold;
    background-color: #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px 2px;
    text-align: left;
    white-space: nowrap;
}

[data-s4y-namespace="wide-table"].simple-table table tbody tr td {
    font-size: 1rem;
    padding-left: 2px;
}

[data-s4y-namespace="wide-table"].simple-table table tbody tr:nth-child(2n) {
    background: #eee
}

@media screen and (max-width: 650px) {
    [data-s4y-namespace="wide-table"].simple-table table {
        border: 0;
    }
    [data-s4y-namespace="wide-table"].simple-table table thead {
        border: none;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    [data-s4y-namespace="wide-table"].simple-table table tr {
        display: block;
        border: 2px solid lightgrey;
        border-bottom: 5px solid lightgray;
        margin: 10px 5px;
    }
    [data-s4y-namespace="wide-table"].simple-table table tbody tr td {
        border: none;
        display: block;
        text-align: left;
        min-height: 20px;
        padding-top: 2px;
        padding-left: 5px;
    }
    [data-s4y-namespace="wide-table"].simple-table table tbody tr td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        width: 150px;
        text-align: left;
        min-height: 20px;
        font-size: .8rem;
    }
    [data-s4y-namespace="wide-table"].simple-table table tbody tr td:last-child {
        border-bottom: 0;
    }
}
/* end */
/* Mode Head */
[data-s4y-namespace="wide-table"].fixed-table {
    margin: auto;
    padding: 5px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: inline-block
}
[data-s4y-namespace="wide-table"].fixed-table tbody {
    overflow-y: scroll;
    display: block;
    max-height: 500px;
}
[data-s4y-namespace="wide-table"].fixed-table thead {
    display: table-row;
}
 [data-s4y-namespace="wide-table"].fixed-table  {
    border: 1px solid lightgrey;
}
[data-s4y-namespace="wide-table"].fixed-table  table {
    border-collapse: collapse;
}
[data-s4y-namespace="wide-table"].fixed-table  th,
[data-s4y-namespace="wide-table"].fixed-table  td {
  border: 1px solid #bbb;
  min-width: 10rem;
  padding: 5px;
}
[data-s4y-namespace="wide-table"].fixed-table  th {
    background-color: lightgrey;
    border-width: 1px;
}
[data-s4y-namespace="wide-table"].fixed-table  td {
    border-width: 1px;
}
[data-s4y-namespace="wide-table"].fixed-table  tr:first-child td {
    border-top-width: 0;
}
[data-s4y-namespace="wide-table"].fixed-table  tr:nth-of-type(2n) {
    background-color: #eee;
}

[data-s4y-namespace="wide-table"].fixed-table  input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid lightgray;
    font-size: 1rem;
    width: 150px;
    margin-bottom: 5px;
}
/* end */

