.account-module-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.bulk-email-preview {
    width: 100%;
    height: 300px;
    border: 1px solid #e8e2dc;
    border-radius: 8px;
    background: #fff;
}

.account-module-nav a {
    padding: 9px 13px;
    border: 1px solid #e5e2df;
    border-radius: 8px;
    color: #68615b;
    background: #fff;
    font-size: 12px;
}

.account-module-nav a[aria-current="page"] {
    background: #f7e9df;
    border-color: #e5c9b6;
    color: #99501f;
}

.account-module-card:hover {
    border-color: #c57b48;
}

.account-users-workspace {
    max-width: none;
}

.account-users-workspace .account-user-panel {
    width: 100%;
    max-width: none;
    padding: 26px;
}

.account-section-heading,
.account-user-search,
.account-pagination,
.account-user-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.account-section-heading h2 {
    font-size: 20px;
}

.account-section-heading p,
.account-edit-form p,
.account-template-form p {
    color: #79716b;
    font-size: 12px;
    margin-bottom: 0;
}

.account-user-summary {
    padding: 18px;
    background: #faf7f3;
    border: 1px solid #eee6df;
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.account-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 30px;
}

.account-edit-form p {
    grid-column: 1 / -1;
}

.account-users-workspace .form-control {
    padding-left: 12px;
}

.account-user-search input {
    flex: 1;
    min-width: 180px;
    max-width: 500px;
}

.account-user-search span {
    margin-left: auto;
    color: #79716b;
    font-size: 12px;
}

.account-user-table th {
    white-space: nowrap;
    font-size: 11px;
    color: #79716b;
}

.account-user-table td {
    font-size: 12px;
    max-width: 290px;
    min-width: 100px;
    overflow-wrap: anywhere;
}

.account-user-table td a {
    color: #a15b2c;
}

.account-template-form {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.account-template-form textarea.form-control {
    height: auto;
    font-family: Consolas, monospace;
}

.account-template-form button {
    justify-self: start;
}

.account-pagination {
    justify-content: flex-end;
    margin: 18px 0 0;
}

.account-user-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}

.account-user-card {
    padding: 16px;
    border: 1px solid #e8e2dc;
    border-radius: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-user-card-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.account-user-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f7e9df;
    color: #99501f;
}

.account-user-card h3 {
    font-size: 14px;
    margin: 0 0 5px;
}

.account-user-card h3 a {
    color: #292c30;
}

.account-user-card p,
.account-user-card dt {
    color: #79716b;
    font-size: 12px;
    margin: 0;
}

.account-user-card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.account-user-card dd {
    font-size: 12px;
    margin: 4px 0 0;
}

.account-user-card-id {
    grid-column: 1 / -1;
}

.account-card-actions {
    display: flex;
    gap: 8px;
}

.account-modal-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
}

.account-modal-fields > div {
    min-width: 0;
}

@media (min-width: 992px) {
    .account-modal-fields.account-details-row {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr) 140px 140px;
        align-items: end;
    }
}

.account-modal-fsid {
    font-size: 12px;
    color: #79716b;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.account-modal-fsid strong {
    color: #292c30;
}

.account-modal-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: -8px 0 18px;
    color: #79716b;
    font-size: 12px;
}

.account-modal-dates strong {
    color: #292c30;
    font-weight: 500;
}

#account-edit-modal .modal-body {
    padding: 16px 20px;
}

#account-edit-modal .form-label {
    font-size: 12px;
    margin-bottom: 4px;
}

#account-edit-modal .form-control,
#account-edit-modal .form-select {
    padding-left: 12px;
    min-height: 36px;
    height: 36px;
    font-size: 12px;
}

#account-edit-modal textarea.form-control {
    height: auto;
}

#account-edit-modal .account-state-select {
    width: 140px;
    max-width: 100%;
    min-height: 30px;
    height: 30px;
    padding: 4px 28px 4px 9px;
    font-size: 11px;
    background-position: right 8px center;
}

@media (min-width: 576px) and (max-width: 991px) {
    .account-modal-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .account-modal-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.account-user-card .account-user-mobile {
    margin-top: 3px;
}

.account-user-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.account-user-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.account-user-indicator > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.account-user-indicator.is-positive {
    color: #227447;
    background: #eaf6ee;
}

.account-user-indicator.is-inactive {
    color: #a63838;
    background: #fcecec;
}

.account-user-indicator.is-pending {
    color: #8a6014;
    background: #fff4dc;
}

#account-user-results[aria-busy="true"] {
    opacity: 0.6;
}

.template-editor-workspace {
    max-width: none;
}

.template-editor-workspace .account-user-panel {
    width: 100%;
    max-width: none;
}

.account-template-form,
.account-template-form .note-editor {
    width: 100%;
    min-width: 0;
}

.template-columns {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    grid-template-areas: "list editor";
    gap: 28px;
    align-items: start;
}

.template-list-column {
    grid-area: list;
    min-width: 0;
}

.template-edit-column {
    grid-area: editor;
    min-width: 0;
    border-left: 1px solid #e8e2dc;
    padding-left: 28px;
}

.template-list-column .account-user-search input {
    flex-basis: 100%;
}

.template-list-column .account-user-table table {
    table-layout: fixed;
    width: 100%;
}

.template-list-column .account-user-table td {
    min-width: 0;
}

.template-list-column a[aria-current="true"] {
    font-weight: 700;
    text-decoration: underline;
}

.template-list-items {
    display: grid;
    gap: 8px;
}

.template-list-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border: 1px solid #e8e2dc;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.template-list-item strong {
    font-size: 12px;
    color: #99501f;
}

.template-list-item span {
    font-size: 12px;
    font-weight: 400;
    color: #79716b;
}

.template-list-item:hover,
.template-list-item[aria-current="true"] {
    background: #faf3ed;
    border-color: #e5c9b6;
}

.template-list-column .template-list-item[aria-current="true"] {
    text-decoration: none;
}

.template-editor-empty {
    padding: 28px;
    border: 1px dashed #e0d9d3;
    border-radius: 10px;
    color: #79716b;
}

@media (max-width: 1050px) {
    .template-columns {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "list" "editor";
    }

    .template-edit-column {
        border-left: 0;
        border-top: 1px solid #e8e2dc;
        padding: 24px 0 0;
    }
}

.account-template-form {
    grid-template-columns: minmax(0, 1fr);
}

.account-template-form .note-editable {
    background: #fff;
    color: #292c30;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.account-template-form .note-editable img {
    max-width: 100%;
}

.account-template-form .note-toolbar {
    background: #faf8f5;
    border-bottom: 1px solid #e8e2dc;
}

.account-template-form .note-editor {
    border-color: #e0d9d3;
    border-radius: 10px;
}

.template-variables {
    padding: 22px;
    background: #faf8f5;
    border: 1px solid #e8e2dc;
    border-radius: 12px;
}

.template-variable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.template-variable {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    color: #716860;
}

.template-variable-insert {
    padding: 6px 10px;
    background: #fff;
    color: #a15b2c;
    border: 1px solid #e2d0c1;
    border-radius: 6px;
    font-family: Consolas, monospace;
}

.note-modal input {
    color: #292c30;
    background: #fff;
}

@media (max-width: 767px) {
    .account-edit-form {
        grid-template-columns: 1fr;
    }

    .account-users-workspace .account-user-panel {
        padding: 18px;
    }
}
