/* --------------------------
:: Account Pages (dashboard, record, edit, replies)
-------------------------- */

body[data-account] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body[data-account] .account {
    flex: 1 0 auto;
}

.account {
    background-color: #f5f5f5;
    padding-block: 48px 80px;
}

@media (min-width: 768px) {
    .account {
        padding-block: 64px 96px;
    }
}

.account__header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.account__title {
    color: var(--brand-color);
    font-family: var(--font-family-heavy);
    font-size: 28px;
    margin: 0;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .account__title {
        font-size: 36px;
    }
}

.account__subtitle {
    color: #555;
    font-size: 18px;
    margin: 6px 0 0;
}

.account__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */

.account-btn[hidden] {
    display: none;
}

.account-btn,
.account-btn:focus {
    align-items: center;
    background-color: var(--accent-color);
    border: 0;
    border-radius: 30px;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-family-heavy);
    font-size: 17px;
    font-weight: 700;
    gap: 8px;
    line-height: 1;
    padding: 13px 24px 11px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.account-btn:hover {
    background-color: var(--accent-color-light);
    color: #000;
    text-decoration: none;
}

.account-btn--dark,
.account-btn--dark:focus {
    background-color: #101010;
    color: #fff;
}

.account-btn--dark:hover {
    background-color: #333;
    color: #fff;
}

.account-btn--ghost,
.account-btn--ghost:focus {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px #101010;
    color: #101010;
}

.account-btn--ghost:hover {
    background-color: #101010;
    color: #fff;
}

.account-badge {
    background-color: #d93025;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    padding: 4px 8px 3px;
}

/* Alerts */

.account-alert {
    border-radius: 12px;
    font-size: 17px;
    margin-bottom: 20px;
    padding: 14px 18px;
}

.account-alert--success {
    background-color: #e7f5e9;
    color: #1e6b28;
}

.account-alert--error {
    background-color: #fdecea;
    color: #a3221a;
}

/* Card */

.account-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    padding: 8px;
}

@media (min-width: 768px) {
    .account-card {
        padding: 16px;
    }
}

.account-card--form {
    max-width: 760px;
    padding: 24px;
}

@media (min-width: 768px) {
    .account-card--form {
        padding: 40px;
    }
}

/* Table */

.account-table {
    margin: 0;
    width: 100%;
}

.account-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 8px 4px;
}

.account-field,
.account-field:focus {
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #111;
    font-size: 16px;
    height: 42px;
    padding: 0 12px;
}

.account-field--search {
    flex: 1 1 220px;
    min-width: 180px;
}

.account-toolbar label {
    align-items: center;
    color: #555;
    display: inline-flex;
    font-size: 14px;
    gap: 8px;
    margin: 0;
}

.account-count {
    background-color: #eee;
    border-radius: 12px;
    color: #333;
    font-size: 13px;
    line-height: 1;
    padding: 4px 8px 3px;
}

.account-table th {
    border-bottom: 2px solid var(--border-color);
    border-top: 0;
    color: #777;
    font-family: var(--font-family-heavy);
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-table th button {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    padding: 0;
    text-transform: inherit;
}

.account-table th button.is-sorted::after {
    content: " \25B2";
    font-size: 10px;
}

.account-table th button.is-sorted.is-desc::after {
    content: " \25BC";
}

.account-table tr.is-unread td {
    background-color: #fff8f7;
}

.account-pager {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 12px;
}

.account-pager button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 12px;
}

.account-pager button:disabled {
    cursor: default;
    opacity: 0.45;
}

.account-thread {
    padding: 8px 12px 16px;
}

.account-thread__item {
    border-top: 1px solid #eee;
    display: flex;
    gap: 14px;
    padding: 14px 4px;
}

.account-thread__item.is-company {
    background-color: #f7f7f7;
}

.account-thread__meta {
    color: #666;
    font-size: 14px;
    margin: 4px 0 0;
}

.account-thread__reply {
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
}

.account-thread__reply video {
    border-radius: 10px;
    max-height: 240px;
    width: 100%;
}

.account-table td {
    border-top: 1px solid #eee;
    color: #111;
    font-size: 17px;
    padding: 12px;
    vertical-align: middle;
}

.account-table tbody tr:hover {
    background-color: #fafafa;
}

.account-table__num {
    color: #999;
    width: 40px;
}

.account-table__thumb {
    width: 1%;
}

.account-table__title {
    font-family: var(--font-family-heavy);
}

.account-table__actions {
    text-align: right;
    white-space: nowrap;
}

.account-thumb {
    background-color: #111;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    height: 63px;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 112px;
}

.account-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.account-thumb::after {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    content: "\f04b";
    display: flex;
    font-family: FontAwesome;
    font-size: 18px;
    inset: 0;
    justify-content: center;
    position: absolute;
    transition: background-color 0.2s ease;
}

.account-thumb:hover::after {
    background-color: rgba(0, 0, 0, 0.15);
}

.account-icon-btn {
    align-items: center;
    border-radius: 50%;
    color: #333;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    transition: background-color 0.2s ease;
    width: 38px;
}

.account-icon-btn:hover {
    background-color: #f0f0f0;
    color: #000;
    text-decoration: none;
}

.account-icon-btn--danger:hover {
    background-color: #fdecea;
    color: #d93025;
}

.account-empty {
    color: #666;
    font-size: 18px;
    padding: 56px 16px;
    text-align: center;
}

.account-empty i {
    color: var(--accent-color);
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
}

.account-empty p {
    margin-bottom: 20px;
}

/* Form */

.account-form__group {
    margin-bottom: 24px;
}

.account-form label {
    color: #111;
    display: block;
    font-family: var(--font-family-heavy);
    font-size: 17px;
    margin-bottom: 8px;
}

.account-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 17px;
    height: auto;
    padding: 12px 14px;
}

.account-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: none;
}

.account-form__hint {
    color: #777;
    display: block;
    font-size: 14px;
    margin-top: 6px;
}

.account-form__preview {
    background-color: #000;
    border-radius: 12px;
    display: block;
    margin-top: 14px;
    max-height: 320px;
    max-width: 100%;
}

.account-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.account-form .my-error-class1 {
    color: #d93025;
    font-size: 14px;
    margin: 6px 0 0;
}

/* Video modal */

.account-video-modal .modal-content {
    background-color: #000;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.account-video-modal .modal-header {
    border-bottom: 0;
    color: #fff;
}

.account-video-modal .modal-title {
    color: #fff;
    font-family: var(--font-family-heavy);
    font-size: 20px;
}

.account-video-modal .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.account-video-modal .modal-body {
    padding: 0;
}

.account-video-modal video {
    display: block;
    max-height: 75vh;
    width: 100%;
}

/* Slim footer */

.site-footer--slim {
    padding-top: 28px;
    padding-bottom: 28px;
}

.site-footer--slim .footer-bottom {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.site-footer--slim .footer-bottom p {
    margin-bottom: 0;
    text-align: center;
}
