@charset "utf-8";
/*
 * CloudPosta Modern Enterprise Theme for MailEnable WebMail (Mondo)
 * Safe CSS Override Layer - Preserves all JS layout metrics, DOM IDs, and sprite coordinates
 */

/* ==========================================================================
   1. TYPOGRAPHY & FORM CONTROLS
   ========================================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input, textarea, select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    -webkit-box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    -moz-box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
    background: #ffffff;
    outline: 0;
    border: 1px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    -webkit-box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    -moz-box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input:disabled, textarea:disabled, select:disabled {
    color: #94a3b8;
    border-color: #e2e8f0;
    background: #f8fafc;
}

a, a:link, a:visited {
    color: #2563eb;
}

/* ==========================================================================
   2. LOGIN PAGE MODERNIZATION (login.aspx)
   ========================================================================== */
.login_bg {
    background: radial-gradient(circle at 20% 20%, #1e3a8a 0%, #0f172a 55%, #090d16 100%) !important;
    filter: none !important;
}

.login_panel {
    width: 650px !important;
    height: 360px !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    -webkit-border-radius: 16px !important;
    -moz-border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    -moz-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.login_panel_left {
    width: 230px !important;
    height: 360px !important;
    margin-right: 28px !important;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #3598dc 0%, #2574a9 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.login_panel_left_inner {
    width: 230px !important;
    height: 360px !important;
}

.login_panel_left_inner img {
    max-width: 230px !important;
    max-height: 360px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login_panel_right {
    width: 385px !important;
    height: 360px !important;
}

.login_panel h1 {
    font-size: 19px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px;
    border-bottom: 2px solid #f1f5f9 !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    text-shadow: none !important;
}

.login_panel_right input.textfield {
    height: 38px !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
}

.login_panel_right input.textfield:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16) !important;
}

.login_lang_table {
    margin: 6px 0 10px 0 !important;
}

.login_lang_table td {
    color: #475569 !important;
    font-weight: 500;
    font-size: 12px;
}

.login_lang_table td:first-child {
    width: 100% !important;
}

.login_lang_table td.login_lang_table_mid,
.login_lang_table td:nth-child(3),
#SkinLabel,
#ddlSkins {
    display: none !important;
}

.login_lang_table select {
    height: 34px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
}

.login_remember_checkbox {
    margin: 4px 0 14px 0 !important;
}

.login_remember_checkbox label {
    color: #475569 !important;
    font-size: 12.5px !important;
    cursor: pointer;
}

.login_panel #btnLogin {
    width: 100% !important;
    height: 38px !important;
    border-radius: 8px !important;
    border: 1px solid #1d4ed8 !important;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    margin-right: 0 !important;
    text-align: center !important;
    transition: all 0.15s ease;
}

.login_panel #btnLogin:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
}

.login_panel #btnLogin .bttn {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 32px !important;
    line-height: 32px !important;
    padding: 3px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

.login_panel #btnReset,
#tblButtons td:first-child {
    display: none !important;
}

#tblButtons td {
    text-align: left !important;
    width: 100% !important;
}

.login_foot_nav {
    bottom: 22px !important;
}

.login_foot_nav a, .login_foot_nav a:visited {
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 500;
}

.login_copyright {
    width: 698px !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    padding: 14px 0 !important;
    text-align: center;
    text-shadow: none !important;
}

.login_copyright a, .login_copyright a:visited {
    display: inline-block;
    margin-left: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #f8fafc !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.login_copyright a font {
    color: #38bdf8 !important;
}

.login_copyright a:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none !important;
}

/* ==========================================================================
   3. TOP NAVIGATION HEADER & TOOLBAR BAR (client.aspx)
   ========================================================================== */
.header_shell {
    border-bottom: 1px solid #cbd5e1 !important;
}

.topNav, .itopNav {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
}

.topNav_logo_inner img {
    object-fit: contain;
}

.topNav_bttn {
    border-radius: 8px 8px 0 0 !important;
    -webkit-border-radius: 8px 8px 0 0 !important;
    -moz-border-radius: 8px 8px 0 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: none !important;
    transition: background-color 0.15s ease;
}

.topNav_bttn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
    border-radius: 8px 8px 0 0 !important;
}

.topNav_bttn_selected {
    background: #f8fafc !important;
    color: #1e3a8a !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    border-radius: 8px 8px 0 0 !important;
    -webkit-border-radius: 8px 8px 0 0 !important;
    -moz-border-radius: 8px 8px 0 0 !important;
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.12) !important;
    -webkit-box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.12) !important;
    -moz-box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.12) !important;
    filter: none !important;
}

.itopNav_bttn_selected .itopNav_bttn_left {
    background: #f8fafc !important;
    color: #1e3a8a !important;
    font-weight: 600 !important;
    border-radius: 6px 6px 0 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.topNav_bar, .itopNav_bar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0;
    filter: none !important;
}

.toolbar_primary_table.popupWin {
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    filter: none !important;
}

/* ==========================================================================
   4. MODERN TOOLBAR BUTTONS & SEARCH INPUT
   ========================================================================== */
.bttn_toolbar_primary_shell,
.bttn_toolbar_primary_shell_right,
.bttn_toolbar_primary_shell_disabled,
.bttn_toolbar_primary_shell_right_disabled,
.bttn_dropDown_float_left,
.bttn_dropDown_float_right,
.bttn_dropDown_float_left_disabled,
.bttn_dropDown_float_right_disabled,
.bttn_dropDown2_shell {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    -webkit-box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    -moz-box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    text-shadow: none !important;
    filter: none !important;
}

.bttn_toolbar_primary_shell:hover,
.bttn_toolbar_primary_shell_right:hover,
.bttn_dropDown_float_left:hover,
.bttn_dropDown_float_right:hover,
.bttn_dropDown2_shell:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    filter: none !important;
}

.bttn_toolbar_primary_shell:active,
.bttn_toolbar_primary_shell_right:active,
.bttn_dropDown_float_left:active,
.bttn_dropDown_float_right:active {
    background: #e2e8f0 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1) !important;
}

/* Primary Blue Buttons (Send, New, Login, etc.) */
.bttn_toolbar_primary_shell.blue,
.bttn_shell.blue {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25) !important;
    text-shadow: none !important;
    filter: none !important;
}

.bttn_toolbar_primary_shell.blue:hover,
.bttn_toolbar_primary_shell.blue:focus,
.bttn_shell.blue:hover,
.bttn_shell.blue:focus {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    border: 1px solid #1e40af !important;
    filter: none !important;
}

.bttn_toolbar_primary_shell.blue .bttn_toolbar_primary_text,
.bttn_shell.blue .bttn {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* Red / Danger Buttons */
.bttn_toolbar_primary_shell.red {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #be123c !important;
    text-shadow: none !important;
    filter: none !important;
}

.bttn_toolbar_primary_shell.red:hover,
.bttn_toolbar_primary_shell.red:focus {
    background: #ffe4e6 !important;
    border: 1px solid #fda4af !important;
    filter: none !important;
}

.bttn_toolbar_primary_shell.red .bttn_toolbar_primary_text {
    color: #be123c !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* Standard Dialog & Form Buttons */
.bttn_float_left,
.bttn_float_right,
.bttn_float_left_disabled,
.bttn_float_right_disabled,
.bttn_shell,
input[type="button"] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    text-shadow: none !important;
    filter: none !important;
}

.bttn_float_left:hover,
.bttn_float_right:hover,
.bttn_shell:hover,
input[type="button"]:hover {
    background: #f1f5f9 !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
    filter: none !important;
}

.bttn_txt, .bttn {
    color: #334155 !important;
    text-shadow: none !important;
}

/* Search Input in Toolbar */
.search_field_shell,
.popupWin_search_field_shell {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.search_field_shell:focus-within,
.popupWin_search_field_shell:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

.search_form_initial input {
    color: #94a3b8 !important;
    font-style: normal !important;
    box-shadow: none !important;
    border: 0 !important;
}

.search_form_normal input {
    color: #0f172a !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* ==========================================================================
   5. SIDEBAR & FOLDER TREE LIST
   ========================================================================== */
.bodyCol_shell, .bodyCol_calendar_shell {
    background: #f8fafc !important;
    filter: none !important;
}

.bodyCol_folderList_shell, .folderList_shell {
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
}

.bodyCol_folderList_shell a,
.bodyCol_folderList_shell a:link,
.bodyCol_folderList_shell a:visited {
    color: #334155 !important;
    text-shadow: none !important;
}

.bodyCol_folderList_shell span,
.folderList_shell span {
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    text-shadow: none !important;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.bodyCol_folderList_shell span:hover,
.folderList_shell span:hover {
    background-color: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.bodyCol_folderList_shell span.selected,
.folderList_shell span.selected {
    background-color: #dbeafe !important;
    border: 1px solid #93c5fd !important;
    color: #1e40af !important;
    font-weight: 600;
}

.tv_bold, .ls_bold {
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   6. MESSAGE LIST, TABLES & PREVIEW PANE
   ========================================================================== */
.dataTable_shell {
    background: #ffffff !important;
}

.dataTable_table thead td {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600;
    text-shadow: none !important;
}

.dataTable_table_head_shell {
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    filter: none !important;
}

.dataTable_listTable,
.dataTable_listTable_bordered,
.dataTable_rightView_listTable,
.dataTable_rightView_listTable_bordered {
    border-bottom: 1px solid #f1f5f9 !important;
}

#MEMessageListTBody > tr:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

.dataTable_listRow_selected {
    background: #dbeafe !important;
    filter: none !important;
}

.dataTable_listRow_selected a,
.dataTable_listRow_selected a:visited,
.dataTable_listRow_selected a:hover,
.dataTable_listRow_selected .dataTable_rightView_noWidth,
.dataTable_listRow_selected .dataTable_rightView_subject,
.dataTable_listRow_selected .dataTable_rightView_subject_new,
.dataTable_listRow_selected .dataTable_rightView_date,
.dataTable_listRow_selected .dataTable_rightView_txt_right,
.dataTable_listTable_selected {
    color: #1e3a8a !important;
    text-shadow: none !important;
}

.dataTable_listRow_selected .dataTable_listTable,
.dataTable_listRow_selected .dataTable_listTable_bordered,
.dataTable_listRow_selected .dataTable_rightView_listTable,
.dataTable_listRow_selected .dataTable_rightView_listTable_bordered {
    border-bottom: 1px solid #bfdbfe !important;
}

.msgHeader_table {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    padding: 8px !important;
    text-shadow: none !important;
}

.msgHeader_table_left,
.msgHeader_table_label {
    color: #475569 !important;
}

/* ==========================================================================
   7. DROPDOWNS, CONTEXT MENUS, POPUPS & FOOTER
   ========================================================================== */
.dropDown_shell_left,
.dropDown_shell_right,
.rightClickMenu_body_shell,
.popup_bizCard_shell,
.form_autoComplete_body {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18), 0 4px 10px -4px rgba(15, 23, 42, 0.08) !important;
    -webkit-box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18), 0 4px 10px -4px rgba(15, 23, 42, 0.08) !important;
    -moz-box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18), 0 4px 10px -4px rgba(15, 23, 42, 0.08) !important;
    text-shadow: none !important;
}

.dropDown_shell_left .dropDown_shell_pointer:after,
.dropDown_shell_right .dropDown_shell_pointer:after {
    background: #ffffff !important;
    border: 1px solid #cbd5e1;
}

.dropDown_item:hover,
.rightClickMenu_item:hover,
.form_autoComplete_list_hover,
.dropDown_logout_content li a:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.dropDown_hr,
.rightClickMenu_hr {
    background: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
}

/* Modal & Popup Windows */
.popupWin_shell_table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35) !important;
    -webkit-box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35) !important;
    -moz-box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35) !important;
}

.popupWin_shad_body {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
    box-shadow: none !important;
    filter: none !important;
}

.popupWin_table {
    border: 1px solid #1e293b !important;
}

.popupWin_body,
.popupWin_background,
.popupWin_tabbedPanel_shell,
.optionsPanel_shell,
.frameless_popup {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    text-shadow: none !important;
}

.loadPanel_shell {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4) !important;
}

/* Bottom Status Footer */
.footer_shell {
    background: #0f172a !important;
    border-top: 1px solid #1e293b !important;
}

.footer_shell .blueStatusBar_table {
    color: #e2e8f0 !important;
    text-shadow: none !important;
}
