.gab-user-history-root {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.3rem;
}

.gab-user-history-root > .email-count {
    margin: 0 3px 0 0;
}

.gab-user-history-root .show-popup-btn {
    cursor: pointer;
}
.gab-user-history-root .show-popup-btn:hover {
    color: var(--primary-color);
}

.gab-email-history {
    position: relative;
    min-height: min(450px, 95vh);
    padding: 1rem;
}
.gab-email-history .badge {
    background-color: #f2f2f2;
    color: #000;
    padding: 2px 4px;
    font-size: 0.8rem;
    border-radius: 5px;
}
.gab-email-history > table {
    border-collapse: collapse;
    width: 100%;
    min-width: min(800px, 100vw);
}
/* fixed width date column */
.gab-email-history > table > thead > tr > td.date {
    width: 200px;
}
/* striped table */
.gab-email-history > table > tbody > tr:nth-child(odd) {
    background-color: hsl(0 0% 83% / 1);
}
.gab-email-history > table > tbody > tr > td {
    padding: 8px;
}
.gab-email-history .actions > *, .icon {
    cursor: pointer;
    margin-left: 5px;
}
.gab-email-history .email-to-show {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
}
.gab-email-history .email-to-show .email-header {
    margin: 1rem 0;
}
.gab-email-history .email-to-show .email-header label {
    font-weight: bold;
}
.gab-email-history email-body {
    max-width: min(1200px, 100vw);
}

/* Email details within dialog */
.email-header {
    margin: 1rem 0;
}
.email-header label {
    font-weight: bold;
}
.email-body {
    max-width: min(1200px, 100vw);
    overflow-x: auto;
}

/* Additional styling for the PrimeVue dialog */
.p-dialog-content {
    max-height: 80vh;
    overflow-y: auto;
}