/* 全局样式 */
body {
    background-color: #f4f7fb;
    min-width: 760px;
}

.app-navbar {
    -webkit-app-region: drag;
    box-shadow: 0 2px 12px rgba(20, 55, 95, 0.15);
}

.app-navbar a,
.app-navbar button {
    -webkit-app-region: no-drag;
}

/* 邮件列表容器 */
.emails-table-container {
    max-height: 500px;
    overflow-y: auto;
}

/* 邮件内容容器 */
.email-body-container {
    height: calc(100vh - 220px);
    min-height: 460px;
    overflow-y: auto;
    background-color: white !important;
    border: 1px solid #dee2e6;
    padding: 15px;
}

/* 确保邮件内容不影响全局样式 */
#email_body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 邮件内容样式隔离 */
.email-content-wrapper {
    background-color: white !important;
    color: black !important;
    font-family: Arial, sans-serif !important;
}

/* 表格样式 */
#emails_table {
    width: 100%;
    table-layout: fixed;
}

#emails_table th, #emails_table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#emails_table tbody tr {
    cursor: pointer;
}

#emails_table tbody tr:hover {
    background-color: #f5f5f5;
}

.table-active {
    background-color: #e9ecef !important;
}
