
body:not(.task-login) {
    font-family: "Segoe UI", Arial, sans-serif;
}

body:not(.task-login) #layout-menu {
    background: #142E50 !important;
}

#layout-menu #logo {
    padding: 8px;
    object-fit: contain;
}

#layout-menu .menu a {
    color: #e2e8f0 !important;
    transition: background .15s ease;
}

#layout-menu .menu a:hover {
    background: #294a70 !important;
}

#layout-menu .menu a.selected {
    background: #294a70 !important;
    box-shadow: inset 4px 0 #DF791E;
}

#layout-menu .menu a.compose {
    background: #DF791E !important;
    color: white !important;
    border-radius: 8px;
    margin: 6px;
    font-weight: 650;
}

#layout-menu .menu a.logout {
    color: #fca5a5 !important;
}

body:not(.task-login) #layout-sidebar {
    border-right: 1px solid #dce3eb;
}

html:not(.dark-mode) body:not(.task-login) #layout-sidebar {
    background: #f4f7fb;
}

html:not(.dark-mode) #layout-sidebar .header,
html:not(.dark-mode) #layout-list .header,
html:not(.dark-mode) #layout-content .header {
    background: #ffffff;
    color: #142E50;
    border-bottom: 1px solid #dce3eb;
}

#layout-sidebar .header,
#layout-list .header,
#layout-content .header {
    min-height: 55px;
}

#mailboxlist li a {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 13px;
}

html:not(.dark-mode) #mailboxlist li a {
    color: #142E50;
}

html:not(.dark-mode) #mailboxlist li.selected > a {
    background: #e3ebf5 !important;
    color: #142E50 !important;
    box-shadow: inset 4px 0 #DF791E;
    font-weight: 650;
}

html:not(.dark-mode) #mailboxlist li a:hover {
    background: #eaf0f7;
}

html:not(.dark-mode) #messagelist tr.selected td {
    background: #e3ebf5 !important;
    color: #142E50 !important;
}

#messagelist td {
    padding-top: 10px;
    padding-bottom: 10px;
}

#messagelist tr.unread {
    font-weight: 650;
}

html:not(.dark-mode) .toolbar a {
    color: #142E50;
}

html:not(.dark-mode) .toolbar a:hover {
    background: #eaf0f7;
    border-radius: 6px;
}

body:not(.task-login) .btn-primary {
    background: #142E50 !important;
    border-color: #142E50 !important;
    color: white !important;
    border-radius: 7px;
}

body:not(.task-login) .btn-primary:hover {
    background: #294a70 !important;
}

body:not(.task-login) .form-control {
    border-radius: 7px;
}

body:not(.task-login) .form-control:focus {
    border-color: #DF791E;
    box-shadow: 0 0 0 3px rgba(223,121,30,.12);
}

html:not(.dark-mode) #layout-content {
    background-color: #f4f7fb;
}

html:not(.dark-mode) #message-header {
    background: #ffffff;
    border-bottom: 1px solid #dce3eb;
}

html:not(.dark-mode) #message-content {
    background: #ffffff;
}

html:not(.dark-mode) .searchbar {
    background: #f4f7fb;
    border-bottom: 1px solid #dce3eb;
}

.modal-content {
    border-radius: 12px;
}


/* PAT MAIL - PROFESSIONAL V2 */

.pat-workspace-header {
    height: 58px;
    flex-shrink: 0;
    background: #142E50;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 3px solid #DF791E;
    box-sizing: border-box;
}

.pat-workspace-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pat-workspace-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 5px;
}

.pat-workspace-brand strong {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: 1px;
}

.pat-workspace-brand strong span {
    color: #DF791E;
}

.pat-workspace-brand small {
    color: #cbd5e1;
    font-size: 12px;
    margin-left: 12px;
}

.pat-workspace-header a {
    color: white !important;
    background: #294a70;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.pat-workspace-header a:hover {
    background: #DF791E;
}

body.pat-workspace {
    display: flex !important;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

body.pat-workspace > #layout {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    position: relative;
}

#layout-menu .menu {
    background: #142E50 !important;
}

#layout-menu .menu a {
    border-bottom: 1px solid rgba(255,255,255,.04);
}

#layout-menu .menu a.compose {
    background: #DF791E !important;
    border-radius: 8px;
}

#mailboxlist li a {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    font-size: 13px;
}

html:not(.dark-mode) #layout-sidebar {
    background: #f1f5f9 !important;
}

html:not(.dark-mode) #layout-list {
    background: white;
}

html:not(.dark-mode) #messagelist tr:hover td {
    background: #f1f5f9;
}

html:not(.dark-mode) #messagelist tr.selected td {
    background: #e3ebf5 !important;
}

#layout-sidebar .header {
    font-size: 12px;
}

@media (max-width: 768px) {
    .pat-workspace-header {
        height: 48px;
        padding: 0 12px;
    }

    .pat-workspace-brand strong {
        font-size: 17px;
    }

    .pat-workspace-brand small {
        display: none;
    }

    .pat-workspace-brand img {
        width: 28px;
        height: 28px;
    }
}


/* PAT MAIL HEADER V3 */

body.pat-workspace {
    height: 100vh;
    height: 100dvh;
}

body.pat-workspace > #layout {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.pat-workspace-header {
    min-height: 60px;
    flex: 0 0 60px;
}

.pat-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pat-professional {
    color: #cbd5e1;
    font-size: 12px;
}

.pat-workspace-header a {
    border: 1px solid rgba(255,255,255,.2);
}

#layout-menu .menu,
#layout-menu .special-buttons {
    background: #142E50 !important;
}

#layout-menu .menu a.compose {
    background: #DF791E !important;
    color: white !important;
}

@media (max-width: 768px) {
    .pat-professional {
        display: none;
    }

    .pat-workspace-header {
        min-height: 48px;
        flex-basis: 48px;
    }

    .pat-header-actions {
        gap: 8px;
    }
}

