@charset "utf-8";
/*
 * CloudPosta Modern Mobile Theme for MailEnable Mobile WebMail (jQuery Mobile 1.4.5)
 * Safe CSS Override Layer - Preserves all jQuery Mobile widgets, swipe handlers, and DOM IDs
 */

/* ==========================================================================
   1. GLOBAL TYPOGRAPHY & PAGE SURFACE
   ========================================================================== */
body,
.ui-mobile-viewport,
.ui-page,
.ui-btn,
input,
select,
textarea,
button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-shadow: none !important;
}

.ui-page-theme-a,
.ui-page {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}

/* ==========================================================================
   2. HEADER & FOOTER BARS (All Mobile Pages)
   ========================================================================== */
.ui-header,
.ui-footer,
.ui-bar-b,
.ui-page-theme-b .ui-bar-inherit,
html .ui-bar-b .ui-bar-inherit,
html .ui-body-b .ui-bar-inherit {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 65%, #1d4ed8 100%) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18) !important;
    text-shadow: none !important;
}

.ui-header .ui-title,
.ui-footer .ui-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px;
    color: #ffffff !important;
    padding: 0.75em 0 !important;
}

.ui-header .ui-btn,
.ui-footer .ui-btn {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.ui-header .ui-btn:hover,
.ui-header .ui-btn:active,
.ui-footer .ui-btn:hover,
.ui-footer .ui-btn:active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   3. MOBILE LOGIN PAGE (#LoginPage)
   ========================================================================== */
#LoginPage.ui-page {
    background: radial-gradient(circle at 20% 20%, #1e3a8a 0%, #0f172a 60%, #090d16 100%) !important;
}

#LoginPage .ui-content {
    max-width: 400px;
    margin: 22px auto 28px auto;
    padding: 22px 20px 24px 20px !important;
    background: #ffffff !important;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (max-width: 450px) {
    #LoginPage .ui-content {
        margin: 14px 12px 20px 12px;
        padding: 18px 16px 20px 16px !important;
    }
}

#LoginPage .login_logo {
    width: 230px !important;
    height: 105px !important;
    margin: 4px auto 14px auto !important;
    background-size: contain !important;
    background-position: center center !important;
}

#LoginPage .ui-field-contain {
    border-bottom: 0 !important;
    padding: 4px 0 !important;
    margin: 0 !important;
}

/* Inputs & Selects */
.ui-input-text,
.ui-input-search,
div.ui-input-text {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    margin: 6px 0 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

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

.ui-input-text input,
.ui-input-search input,
textarea.ui-input-text {
    color: #0f172a !important;
    font-size: 14px !important;
    padding: 0.68em 0.85em !important;
    min-height: 2.5em !important;
}

/* Select Menus & Checkboxes */
.ui-select .ui-btn,
.ui-checkbox .ui-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.ui-select .ui-btn:hover,
.ui-checkbox .ui-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

/* Login & Reset Buttons on LoginPage */
.bttn_grid_shell_login {
    max-width: 100% !important;
    padding-top: 10px !important;
}

#LoginPage .bttn_grid_shell_login .ui-block-a {
    display: none !important;
}

#LoginPage .bttn_grid_shell_login .ui-block-b {
    width: 100% !important;
    float: none !important;
}

#LoginPage .bttn_grid_shell_login .ui-block-b .ui-btn,
.ui-btn.ui-btn-b {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    text-shadow: none !important;
}

#LoginPage .bttn_grid_shell_login .ui-block-b .ui-btn:hover,
.ui-btn.ui-btn-b:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #1e40af !important;
}

#LoginPage .bttn_grid_shell_login .ui-block-a .ui-btn,
#LoginPage a[data-role="button"] {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

#LoginPage .bttn_grid_shell_login .ui-block-a .ui-btn:hover,
#LoginPage a[data-role="button"]:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

hr {
    background: #e2e8f0 !important;
    margin: 18px 0 12px 0 !important;
}

/* ==========================================================================
   4. LEFT NAVIGATION DRAWER (.navpanel)
   ========================================================================== */
#navpanel.navpanel,
.navpanel,
#navpanel .ui-panel-inner {
    background-color: #0f172a !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35) !important;
}

#navpanel .ui-listview > li > a.ui-btn,
.navpanel .ui-listview > li > a.ui-btn,
.navpanel li .ui-btn {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
    font-weight: 500 !important;
    padding-top: 0.85em !important;
    padding-bottom: 0.85em !important;
    text-shadow: none !important;
    text-transform: capitalize;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#navpanel .ui-listview > li > a.ui-btn:hover,
#navpanel .ui-listview > li > a.ui-btn:focus,
#navpanel .ui-listview > li > a.ui-btn:active,
.navpanel .ui-listview > li > a.ui-btn:hover,
.navpanel li .ui-btn:hover,
.navpanel li .ui-btn:active {
    background-color: #1e3a8a !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* ==========================================================================
   5. MESSAGE LIST, FOLDERS & READ MESSAGE VIEW
   ========================================================================== */
.ui-content .ui-listview > .ui-li-static,
.ui-content .ui-listview > .ui-li-divider,
.ui-content .ui-listview > li > a.ui-btn {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
    text-shadow: none !important;
}

.ui-content .ui-listview > li > a.ui-btn:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.ui-content .ui-listview .ui-btn-active {
    background-color: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1e3a8a !important;
    text-shadow: none !important;
}

.msg .subject {
    color: #0f172a;
    font-size: 14px;
}

.read.False .subject {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.msg .received,
.msg .size,
.msg .bottomRow {
    color: #64748b !important;
    font-size: 12px;
}

/* Read Message View Card */
#ReadMessagePage .ui-content > table {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

#ReadMessagePage .field .header {
    color: #64748b;
    font-weight: 600;
    font-size: 12.5px;
    padding: 3px 10px 3px 0;
}

#ReadMessagePage .field .value {
    color: #0f172a;
    font-size: 13px;
    padding: 3px 0;
}

#ReadMessagePage .msgBody {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
