/* Article table styles — override exported table classes */
.userinput table.t1,
.userinput table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 6px;
    overflow: hidden;
}

.userinput table.t1 tr,
.userinput table tr {
    background: #F5F7F8;
}

.userinput table.t1 tr:nth-child(even),
.userinput table tr:nth-child(even) {
    background: #eef1f3;
}

.userinput table.t1 tr td,
.userinput table.t1 tr th,
.userinput table tr td,
.userinput table tr th {
    padding: 12px 15px !important;
    font-size: 14px !important;
    border-bottom: 2px solid #fff !important;
    border-right: 2px solid #fff;
    vertical-align: middle !important;
    text-align: left;
}

.userinput table.t1 tr:first-child td,
.userinput table.t1 tr:first-child th,
.userinput table tr:first-child td,
.userinput table tr:first-child th {
    background: #008B8B;
    color: #fff;
    font-weight: bold;
    padding-top: 14px !important;
}

/* Strip extra <p> tags inside cells */
.userinput table td p,
.userinput table th p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Responsive table wrapper */
.userinput table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Nested tables — simplify */
.userinput table table {
    margin: 0 !important;
    border: none !important;
    overflow: visible;
}

.userinput table table td,
.userinput table table th {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    font-weight: normal !important;
    color: inherit !important;
}

/* Paragraph classes from article export */
.userinput .p1,
.userinput .p2,
.userinput .p3,
.userinput .p4,
.userinput .p5 {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 4px 0;
}

.userinput .s1 {
    font-style: italic;
}
