/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.jarea {
    display: flex;
}

.jarea-noposts {
    margin-top: 2rem;
}

.jarea__container {
    max-width: 1350px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.jarea .jarea-sidebar {
    flex-shrink: 0;
    border-right: 5px solid #D2232A;
}

.jarea .jarea-sidebar__inner {
    display: flex;
    flex-direction: column;
}

.jarea .jarea-sidebar__inner > span {
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 18px;
    font-weight: 700;
    background: #E9F2F2;
}

.jarea .jarea-sidebar__inner > span:not(:last-of-type) {
    border-bottom: 1px solid #ffffff;
}

.jarea .jarea-sidebar__inner > span.jarea-active {
    background: #fff;
    background: #D2232A;
}

.jarea .jarea-sidebar__inner > span a {
    display: block;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.jarea .jarea-sidebar__inner > span.jarea-active a {
    color: #ffffff;
    pointer-events: none;
}

.jarea .jarea-sidebar__inner > span a svg {
    width: 25px;
    height: 25px;
    margin-right: 0;
}

.jarea .jarea-sidebar__inner > span.jarea-active a svg {
    color: #ffffff;
}

.jarea .jarea-sidebar__inner > span a > span {
    position: relative;
    bottom: -2px;
    display: none;
}

.jarea .jarea-content {
    padding: 15px;
    background: #faead7;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    width: 60%;
}

.jarea .jarea-content__articles-msg {
    /* padding: 10px; */
    background: #faead7;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 70px;
    overflow: hidden;
}

.jarea .jarea-content__articles-msg-content {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jarea .jarea-content__articles-msg-content p:not(:last-child) {
    margin-bottom: 0.5em;
}

.jarea .jarea-content h2 {
    font-weight: 600;
}

.jarea .jarea-content__articles-msg-content *:last-child {
    margin-bottom: 0;
}

.jarea .jarea-content__articles-msg-icon {
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #e9a655;
}

.jarea .jarea-content__articles-msg-icon svg {
    width: 50px;
    height: 50px;
}

.jarea-content .jarea-content__btn {
    padding: 10px 20px 10px 15px;
}

.jarea-content__btn span {
    font-size: 2em;
    line-height: 0;
    vertical-align: middle;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 3px;
}

/* .jarea .jarea-content__articles-msg:before {
    content: '';
    display: inline-block;
    height: 100%;
    width: 100px;
    background: #e9a655;
} */

.jarea .jarea-content__kb ul {
    list-style: none;
    padding-left: 1em;
    margin: 0;
}

.jarea .jarea-content__kb ul li {
    position: relative;
}

.jarea .jarea-content__kb ul li:not(:first-child) {
    margin-top: 5px;
}

.jarea .jarea-content__kb ul li:before {
    content: "";
    width: 0.35em;
    height: 0.35em;
    border-radius: 50%;
    background: #0385B6;
    margin-right: .5rem;
    position: absolute;
    top: 0.58em;
    left: -0.85em;
    flex-shrink: 0;
}

.jarea .jarea-content__kb ul li a {
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.jarea-content__kb > h2 {
    margin-bottom: 0.4em;
}

.jarea-content__kb-text {
    font-size: 14px;
}

.jarea-thumb {
    aspect-ratio: 3/2;
    background-color: #e9e9e9;
}

.jarea-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 3px;
}

.jarea-posts__container {
    width: 100%;
    overflow: auto;
}

.jarea-posts {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}

.jarea-posts thead {
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    color: #333333;
    font-weight: 600;
}

.jarea-posts thead th:first-of-type {
    display: none;
}

.jarea-posts tbody tr:not(:last-of-type), .jarea-posts thead {
    border-bottom: 1px solid #e9f2f2;
}

.jarea-posts tbody td:first-child, .jarea-posts thead th:first-child {
    position: sticky;
    left: 0;
}

.jarea-posts tbody td:last-child, .jarea-posts thead th:last-child {
    position: sticky;
    right: 0;
}

.jarea-posts tbody td, .jarea-posts thead th {
    background: #ffffff;
}

.jarea-posts tbody td {
    font-size: 14px;
    padding: 10px 8px;
}

.jarea-posts thead th {
    padding: 13px 10px 5px;
    text-align: right;
    white-space: nowrap;
    font-size: 15px;
}

.jarea-posts tbody td:first-child, .jarea-posts thead th:first-child {
    padding-left: 0;
}

.jarea-posts tbody td:last-child, .jarea-posts thead th:last-child {
    padding-right: 0;
}

.jarea-posts__item {
    position: relative;
}

.jarea-posts__item:not(:last-child) {
    border-bottom: 1px solid #e9f2f2;
}

.jarea-posts__item td {
    text-align: right;
}

.jarea-posts__item .jarea-posts__item-thumb {
    display: none;
}

.jarea-posts__item .jarea-posts__item-thumb, .jarea-thumb {
    width: 120px;
}

.jarea-posts__item .jarea-posts__item-main {
    text-align: left;
    width: 350px;
    min-width: 200px;
}

.jarea-posts__item .jarea-posts__item-date {
    font-size: 14px;
    color: #707070;
}

.jarea-posts__item .jarea-posts__item-main h3 {
    margin-bottom: 0;
    font-size: 15px;
}

.jarea-posts__item .jarea-posts__item-main h3 a {
    transition: 0.3s;
    color: #333333;
}

.jarea-posts__item .jarea-posts__item-main h3 a:hover, .jarea-posts__item .jarea-posts__item-main h3 a:active, .jarea-posts__item .jarea-posts__item-main h3 a:focus {
    color: #0385B6;
}

.jarea-posts__item-status {
    text-transform: capitalize;
}

.jarea-posts__item-cat {
    font-size: 14px;
    text-transform: lowercase;
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background-color: #e9f2f2;
    color: #0385b6;
    text-decoration: none;
    font-weight: 500;
    margin-right: 8px;
    text-transform: lowercase;
    opacity: 1;
    transition: opacity .3s;
    white-space: nowrap;
}

.jarea-posts__item-cat:hover {
    color: #0385B6;
    opacity: .8;
}

.jarea-posts__item-cat::first-letter {
    text-transform: capitalize;
}

.jarea-posts__item .jarea-posts__item-buttons {
    padding-left: 15px;
}

.jarea-posts__item .jarea-posts__item-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.jarea-posts__item-buttons a, .jarea-posts__item-buttons a:focus, .jarea-posts__item-buttons a.active {
    padding: 0;
    background: transparent;
    margin: 0;
}

.jarea-posts__item-buttons a span {
    display: none;
}

.jarea-posts__item-buttons a svg {
    display: inline-block;
    width: 25px;
    height: 25px;
}

.jarea-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.jarea-pagination .page-numbers {
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0.3rem 0;
    cursor: pointer;
}

.jarea-pagination .page-numbers:not(.next):not(.prev):not(.dots) {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.4rem;
}

.jarea-pagination .page-numbers.current {
    color: #ffffff;
    background: #0385B6;
    font-weight: 600;
    border: 1px solid #0385B6;
}

.jarea-pagination .page-numbers.dots {
    color: #333;
    pointer-events: none;
}

.jarea-pagination .page-numbers.next, .jarea-pagination .page-numbers.prev {
    position: relative;
    top: -2px;
}

.jarea-content__revenue-table-container {
    width: 100%;
    overflow: auto;
}

.jarea-purchase-history__table {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.jarea-content__revenue-table thead,
.jarea-purchase-history__table thead {
    background: #0385B6;
}

.jarea-content__revenue-table thead th,
.jarea-purchase-history__table thead th {
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 500;
    text-align: left;
    padding: 5px 10px 3px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .jarea-content__revenue-table thead,
    .jarea-purchase-history__table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .jarea-content__revenue-table tbody tr,
    .jarea-purchase-history__table tbody tr {
        border-bottom: 3px solid #0385b68c;
        display: block;
        margin-bottom: 0.625em;
        background: #f8f8f8 !important;
    }

    .jarea-content__revenue-table tbody tr:last-child,
		.jarea-purchase-history__table tbody tr:last-child {
        margin-bottom: 0;
    }

    .jarea-content__revenue-table tbody tr td,
    .jarea-purchase-history__table tbody tr td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: .8em;
        text-align: right;
        padding: 0.625em;
    }

    .jarea-content__revenue-table tbody tr td:not(:last-of-type),
	.jarea-purchase-history__table tbody tr td:not(:last-of-type) {
        border-bottom: 1px solid #ddd;
    }

    .jarea-content__revenue-table tbody tr td:before,
	.jarea-purchase-history__table tbody tr td:before {
        content: attr(data-label);
        flex-shrink: 0;
        flex-basis: 30%;
        text-align: left;
        font-weight: 600;
        text-transform: uppercase;
    }
}

.jarea-content__revenue-table tbody tr:nth-child(even),
.jarea-purchase-history__table tbody tr:nth-child(even) {
    background: #E9F2F2;
}

.jarea-content__revenue-table tbody td ,
.jarea-purchase-history__table tbody td {
    padding: 3px 10px;
}

.jarea-content__revenue-date,
.jarea-purchase-history__table-date {
    white-space: nowrap;
}

.jarea-content__revenue-value,
.jarea-purchase-history__table-price {
    text-align: right;
}

.jarea-content__revenue-stats {
    margin-bottom: 0;
}

@media (min-width: 991px) {
    .jarea .jarea-sidebar__inner > span a {
        padding: 10px 50px 10px 10px;
    }

    .jarea .jarea-sidebar__inner > span a > span {
        display: inline;
    }

    .jarea .jarea-sidebar__inner > span a svg {
        margin-right: 10px;
    }
    
    .jarea-posts__item .jarea-posts__item-buttons {
        width: 80px;
    }

    .jarea-posts__item .jarea-posts__item-buttons-container {
        display: table-cell;
    }

    .jarea-posts__item-buttons a svg {
        display: none;
    }

    .jarea-posts__item-buttons a, .jarea-posts__item-buttons a:focus, .jarea-posts__item-buttons a.active {
        display: block;
        text-align: center;
        padding: 5px 15px;
        background: #019E6E;
    }

	.jarea-posts__item-buttons a:focus, .jarea-posts__item-buttons a.active {
		background: #34B18B;
	}

    .jarea-posts__item-buttons a:not(:last-child) {
        margin-bottom: .3em;
    }

    .jarea-posts__item a.btn-delete {
        background: #D2232A;
    }
    
    .jarea-posts__item a.btn-delete:hover, .jarea-posts__item a.btn-delete:active, .jarea-posts__item a.btn-delete:focus {
        background: #d2232aab;
    }

    .jarea-posts__item-buttons a span {
        display: inline;
    }
}

@media (min-width: 768px) {

    .jarea .jarea-content {
        padding: 25px 20px;
    }

    .jarea-content .jarea-content__btn {
        padding: 10px 25px 10px 20px;
    }

    .jarea-posts__item .jarea-posts__item-thumb {
        display: table-cell;
    }

    .jarea-posts__item .jarea-posts__item-thumb, .jarea-thumb {
        width: 180px;
    }

    .jarea-posts__item .jarea-posts__item-main h3 {
        font-size: 17px;
    }

    .jarea-posts__item .jarea-posts__item-date, .jarea-posts__item-cat {
        font-size: 16px;
    }

    .jarea-posts thead th {
        font-size: 17px;
    }

    .jarea-posts thead th:first-of-type {
        display: table-cell;
    }

    .jarea-posts tbody td {
        font-size: 16px;
        padding: 13px 10px;
    }

    .jarea-pagination {
        margin-top: 1em;
    }

    .jarea-pagination .page-numbers {
        font-size: 1.1rem;
        margin: 0.5rem;
    }

    .jarea .jarea-content__articles-msg {
        flex-direction: row;
        margin-top: 5px;
    }

    .jarea .jarea-content__articles-msg-icon {
        padding: 0 5px;
        width: 70px;
    }

    .jarea .jarea-content__kb ul li a {
        font-size: 20px;
    }

    .jarea .jarea-content__kb ul li:before {
        top: 0.7em;
    }

    .jarea-content__kb-text {
        font-size: 16px;
    }
    
}