/* LaboMail — couleurs LaboSN (prune #75174C, orange #DF7B25) appliquées au skin Elastic.
   Partie 1 : règles générées depuis skins/elastic/styles/styles.min.css (#37beff/#00acff -> prune), sélecteurs
   préfixés par « html » (sans !important) pour ne battre que les règles d'origine de même niveau. */
html a{color:#8c2460}
html p.image-attachment{background-color:rgba(117,23,76,.05)}
html .quota-widget .value{background-color:#75174c}
html .image-tools{background-color:rgba(117,23,76,.4)}
html .image-tools a:focus,html .image-tools a:hover{background-color:rgba(117,23,76,.5)!important}
html .floating-action-buttons a.button{background:#75174c}
html .btn:focus{box-shadow:0 0 0 .2rem rgba(117,23,76,.3)}
html .btn-link{color:#8c2460}
html .btn-primary{background:#75174c;border-color:#75174c}
html .btn-primary:focus{box-shadow:0 0 0 .2rem rgba(117,23,76,.5)}
html .btn-primary.disabled,html .btn-primary:disabled{background:#75174c;border-color:#75174c}
html .btn-primary:not(:disabled):not(.disabled).active:focus,html .btn-primary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(117,23,76,.53)}
html .ui-menu .ui-state-active{background-color:#75174c!important}
html .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset a.btn-link:focus{background-color:rgba(117,23,76,.5)}
html .ui-slider .ui-slider-handle.ui-state-active{background:#75174c}
html .ui-datepicker .ui-datepicker-days-cell-over a,html .ui-datepicker .ui-datepicker-days-cell-over a.ui-state-default,html .ui-datepicker .ui-state-highlight,html .ui-datepicker.ui-widget-content .ui-state-highlight{color:#75174c}
html .ui-datepicker a.ui-state-active{background:#75174c!important}
html .popover .menu li a:not(.disabled):hover{background-color:#75174c}
html .popover .menu .dropbutton a.dropdown:hover{background-color:#75174c}
html #taskmenu .action-buttons a{color:#75174c}
html #taskmenu .action-buttons a:hover{color:#75174c}
html .ui.alert{background-color:rgba(117,23,76,.05)}
html .ui.alert a:not(.btn){color:#75174c}
html .ui.alert.boxinformation{background-color:rgba(117,23,76,.2)}
html #messagestack .alert-info.information{background-color:#75174c}
html .popupmenu .listing li>a:not(.disabled):hover{background-color:#75174c}
html .popupmenu .listing li.selected{background-color:#75174c}
html .folderlist li.mailbox .unreadcount{background:#75174c}
html .folderlist li.mailbox.recent>a>.unreadcount{background:#75174c}
html .formcontent.raweditor .CodeMirror-focused{border-color:#75174c;box-shadow:0 0 0 .2rem rgba(117,23,76,.25)}
html .input-group a:focus{background-color:rgba(117,23,76,.25)}
html .multi-input>.content.focused{border-color:#75174c;box-shadow:0 0 0 .2rem rgba(117,23,76,.25)}
html .recipient-input.focus{border-color:#75174c;box-shadow:0 0 0 .2rem rgba(117,23,76,.25)}
html .tagedit-list[tabindex="-1"]{border-color:#75174c;box-shadow:0 0 0 .2rem rgba(117,23,76,.25)}
html .form-control:focus{border-color:#75174c;box-shadow:0 0 0 .2rem rgba(117,23,76,.25)}
html .input-group-text input:focus{border-color:#75174c!important}
html .custom-switch .custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(117,23,76,.25)}
html .custom-switch .custom-control-input:focus:not(:checked)~.custom-control-label::before{border-color:#75174c}
html .custom-switch .custom-control-input:checked~.custom-control-label::before{border-color:#75174c;background-color:#75174c}
html .custom-file-input:focus~.custom-file-label{border-color:#75174c;box-shadow:0 0 0 .2rem rgba(117,23,76,.25)}
html div.tox.focused{border-color:#75174c!important;box-shadow:0 0 0 .2rem rgba(117,23,76,.25)!important}
html div.tox .tox-dialog .tox-dialog__body-nav-item--active{color:#8c2460}
html div.tox .tox-dialog__footer .tox-button{background:#75174c;border-color:#75174c}
html div.tox .tox-dialog__footer .tox-button:focus{box-shadow:0 0 0 .2rem rgba(117,23,76,.5)}
html div.tox .tox-dialog__footer .tox-button.disabled,html div.tox .tox-dialog__footer .tox-button:disabled{background:#75174c;border-color:#75174c}
html div.tox .tox-dialog__footer .tox-button:not(:disabled):not(.disabled).active:focus,html div.tox .tox-dialog__footer .tox-button:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(117,23,76,.53)}
html div.tox .tox-dialog__footer .tox-button:focus:not(:disabled){background:#75174c;border-color:#75174c}
html div.tox .tox-color-input>input:focus,html div.tox .tox-listboxfield .tox-listbox--select:focus,html div.tox .tox-textarea:focus,html div.tox .tox-textfield:focus{border-color:#75174c;box-shadow:0 0 0 .2rem rgba(117,23,76,.25)}
html .googie_list li.googie_list_onhover{background-color:#75174c}
html.dark-mode #taskmenu .action-buttons a{color:#d07aa8}
html.dark-mode .listing li.selected,html.dark-mode .listing li.selected>a,html.dark-mode .listing li.selected>div>a,html.dark-mode .listing tr.selected td{color:#d07aa8}
html.dark-mode .messagelist tr:not(.flagged):not(.deleted).selected td.subject a,html.dark-mode .messagelist tr:not(.flagged):not(.deleted).selected td.subject span.msgicon.status{color:#d07aa8}
html.dark-mode .custom-file-label:focus:not(.is-invalid),html.dark-mode .form-control:focus:not(.is-invalid){border-color:#d07aa8}
html.dark-mode .multi-input:not(.is-invalid)>.content.focused{border-color:#d07aa8}
html.dark-mode .input-group a:focus{border-color:#d07aa8;box-shadow:0 0 0 .2rem rgba(208,122,168,.25)}
html.dark-mode .recipient-input.focus{border-color:#d07aa8}
html.dark-mode .formcontent.raweditor .CodeMirror-focused{border-color:#d07aa8}
html.dark-mode .tox .tox-dialog__body-nav-item--active{color:#d07aa8}
html.dark-mode .tox .tox-collection__item--enabled{color:#d07aa8}
html.dark-mode .ui-datepicker .ui-state-highlight,html.dark-mode .ui-datepicker.ui-widget-content .ui-state-highlight{color:#d07aa8}

/* Partie 2 : page de connexion */
body.task-login { background: linear-gradient(135deg, #75174c 0%, #5a1139 60%, #3a0c26 100%) !important; }
body.task-login #layout-content { background: transparent !important; }
body.task-login #login-form {
	background: #fff; border-radius: 16px; border-top: 5px solid #df7b25;
	box-shadow: 0 18px 50px rgba(0,0,0,.35); padding: 28px 30px 22px !important; max-width: 420px;
}
html.dark-mode body.task-login #login-form { background: #2c363a; }
body.task-login #logo { max-width: 300px !important; max-height: 90px !important; margin-bottom: 18px; }
body.task-login .formbuttons .btn-primary, body.task-login #rcmloginsubmit { background: #75174c !important; border-color: #75174c !important; border-radius: 8px; font-weight: 700; }
body.task-login #rcmloginsubmit:hover { background: #df7b25 !important; border-color: #df7b25 !important; }
body.task-login #login-footer { color: #f3dfe9 !important; }
body.task-login #login-footer a { color: #fff !important; }
#labomail-footer { position: fixed; left: 0; right: 0; bottom: 14px; text-align: center; color: #f3dfe9; font-size: .85rem; }
#labomail-footer a { color: #ffb46b; font-weight: 700; text-decoration: none; }

/* Partie 3 : barre latérale (sombre dans les deux modes) et accents orange */
html #layout-menu .menu a { color: #d9c4cf; }
html #layout-menu .menu a:hover { color: #fff; }
html #layout-menu .menu a.selected, html #layout-menu .menu a.selected:hover { color: #df7b25; }
.listing li.unread .unreadcount, .listing .unreadcount { background-color: #df7b25 !important; color: #fff !important; }
#layout-menu #logo { max-height: 48px !important; }

/* Corrections de contraste (page de connexion) */
body.task-login #login-footer, body.task-login #login-footer * { color: #7a6872 !important; }
body.task-login #login-footer a { color: #75174c !important; }
html.dark-mode body.task-login #login-footer, html.dark-mode body.task-login #login-footer * { color: #d9c4cf !important; }
#labomail-footer, #labomail-footer strong { color: #f3dfe9 !important; }
#labomail-footer a, #labomail-footer a:hover { color: #ffb46b !important; font-weight: 700; }

/* Logo de connexion dans une pastille blanche (le prune du logo ne ressort pas sur le fond prune) */
body.task-login #logo { background: #fff !important; padding: 12px 20px !important; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); box-sizing: content-box; }
