/* Styles for helper classes used inside rich text content (.rte-content):
   buttons (btn-special), "read more" links, check-mark lists (ul.checked) and responsive tables.
   Taken over from the old stylesheets so migrated page content keeps its look. */

@import url('../assets/fonts/fontello/css/fontello.css');

.rte-content .btn-special {
    background-color: #2eac6d;
    border-color: #2eac6d;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    padding: .375rem 1.6rem;
}

.rte-content .btn-special:focus,
.rte-content .btn-special:hover {
    text-decoration: underline;
    color: #ffffff;
}

.rte-content .btn-special-inverse {
    background-color: #fff;
    border-color: #2eac6d;
    color: #2eac6d;
    text-transform: uppercase;
    font-weight: 700;
    padding: .375rem 1.6rem;
}

.rte-content .btn-special-inverse:focus,
.rte-content .btn-special-inverse:hover {
    text-decoration: underline;
    color: #2eac6d;
}

.rte-content ul.checked {
    list-style: none;
    padding-left: 0;
}

.rte-content ul.checked li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 6px;
}

.rte-content ul.checked li:before {
    content: '\e803';
    font-family: 'fontello';
    color: #2eac6d;
    left: 1px;
    top: 0;
    position:absolute;
}

.rte-content a.read-more,
.rte-content a .read-more {
    color: #2eac6d;
    display: block;
    margin-top: 1.45em;
    font-size: 0.857em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.rte-content a.read-more:hover {
    color: #2eac6d;
    text-decoration: none;
}

.rte-content a.read-more:after {
    content: '\e802';
    font-family: 'fontello';
    margin-left: 10px;
    font-weight: normal;
}

.rte-content ul.checked {
    list-style: none;
    padding-left: 0;
}

.rte-content ul.checked li {
    position: relative;
    padding-left: 1.4em;
}

.rte-content ul.checked li:before {
    content: '\e803';
    font-family: 'fontello';
    color: #2eac6d;
    left: 0px;
    top: -1px;
    font-size:1.4em;
    position:absolute;
}

@media (max-width: 767.98px) {
  .rte-content table.responsive-grid-table,
    .rte-content .responsive-grid-table thead,
    .rte-content .responsive-grid-table tbody,
    .rte-content .responsive-grid-table tr,
    .rte-content .responsive-grid-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        text-align: left !important;
  }
}

@media (max-width: 767.98px) {
  .rte-content .responsive-grid-table thead {
        display: none !important;
  }
}

@media (max-width: 767.98px) {
  .rte-content .responsive-grid-table tbody tr {
        margin-bottom: 1.25rem !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0.375rem !important;
        padding: 0.5rem !important;
        background-color: #fff !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05) !important;
  }
}

@media (max-width: 767.98px) {
  .rte-content .responsive-grid-table td {
        display: grid !important;
        grid-template-columns: 130px 1fr;
        gap: 10px;
        padding: 0.5rem 0.75rem !important;
        border: none !important;
        border-bottom: 1px solid #f1f3f5 !important;
  }
}

@media (max-width: 767.98px) {
  .rte-content .responsive-grid-table td:last-child {
        border-bottom: none !important;
  }
}

@media (max-width: 767.98px) {
  .rte-content .responsive-grid-table td::before {
        content: attr(data-label) ": ";
        font-weight: 700 !important;
        color: #495057 !important;
        word-break: break-word;
  }
}
