/*
 * Yavaint Mail — teal recolor on top of the Roundcube "elastic" skin.
 * Loads elastic's full compiled stylesheet, then overrides every rule
 * that used elastic's blue accent (#37beff / #00acff family) with
 * Yavaint teal. No layout/structural rules are touched below.
 *
 * Color tokens:
 *   #0e766e  brand teal            (buttons, links, borders, focus rings on light bg)
 *   #0b615a  brand teal, hover     (hover/active/darker states)
 *   #2dd4bf  bright teal           (text/icons on permanently-dark surfaces: task menu
 *                                   sidebar, dark-mode selected rows)
 *   #128f84  mid teal              (button backgrounds in dark mode, needs light text on top)
 *   #e3f2ef  light teal tint       (selected-row / highlight backgrounds on light bg)
 *   #cdeae5  light teal tint 2     (datepicker range/highlight)
 *   #7fc2ba  muted teal            (disabled checked switch)
 *   rgba(14,118,110, a)            (focus-ring box-shadows, replaces rgba(55,190,255, a))
 *   rgba(45,212,191, a)            (dark-mode focus-ring box-shadows)
 */

@import url("/static.php/skins/elastic/styles/styles.min.css");

/* Links */
a { color: #0e766e !important; }
a:hover { color: #0b615a !important; }

/* Generic accent tints / washes */
p.image-attachment { background-color: rgba(14,118,110,.05) !important; }
.image-tools { background-color: rgba(14,118,110,.4) !important; }
.image-tools a:focus,
.image-tools a:hover { background-color: rgba(14,118,110,.5) !important; }
.quota-widget .value { background-color: #0e766e !important; }
.table-widget table.options-table tr.selected td { background-color: #e3f2ef !important; }
.floating-action-buttons a.button {
	background: #0e766e !important;
	box-shadow: 0 0 5px 5px #e3f2ef !important;
}

/* Buttons (incl. the login "Sign in" button — elastic's ui.js adds .btn-primary to it) */
.btn:focus { box-shadow: 0 0 0 .2rem rgba(14,118,110,.3) !important; }
.btn-link { color: #0e766e !important; }
.btn-primary {
	background: #0e766e !important;
	border-color: #0e766e !important;
}
.btn-primary:focus {
	background: #0b615a !important;
	border-color: #0b615a !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.5) !important;
}
.btn-primary:hover {
	background: #0b615a !important;
	border-color: #0b615a !important;
}
.btn-primary.disabled,
.btn-primary:disabled {
	background: #0e766e !important;
	border-color: #0e766e !important;
}
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.53) !important;
}

/* jQuery UI widgets (menus, sliders, datepicker) */
.ui-menu .ui-state-active { background-color: #0e766e !important; }
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset a.btn-link:focus { background-color: rgba(14,118,110,.5) !important; }
.ui-slider .ui-slider-range { background: #cdeae5 !important; }
.ui-slider .ui-slider-handle.ui-state-active {
	background: #0e766e !important;
	border-color: #0b615a !important;
}
.ui-datepicker .ui-datepicker-days-cell-over a,
.ui-datepicker .ui-datepicker-days-cell-over a.ui-state-default,
.ui-datepicker .ui-state-highlight,
.ui-datepicker.ui-widget-content .ui-state-highlight {
	background: #cdeae5 !important;
	color: #0e766e !important;
}
.ui-datepicker a.ui-state-active { background: #0e766e !important; }

/* Popovers / mobile header */
html.layout-phone .popover-header,
html.layout-small .popover-header { background-color: #0b615a !important; }
.popover .menu li a:not(.disabled):hover { background-color: #0e766e !important; }
.popover .menu .dropbutton a.dropdown:hover { background-color: #0e766e !important; }

/* Task menu sidebar (always dark, in both light and dark page mode) */
#taskmenu .action-buttons a { color: #2dd4bf !important; }
#taskmenu .action-buttons a:hover { color: #2dd4bf !important; }
html.dark-mode #taskmenu .action-buttons a { color: #2dd4bf !important; }

/* Alerts / message stack */
.ui.alert { background-color: rgba(14,118,110,.05) !important; }
.ui.alert a:not(.btn) { color: #0e766e !important; }
.ui.alert.boxinformation { background-color: rgba(14,118,110,.2) !important; }
#messagestack .alert-info.information { background-color: #0e766e !important; }

/* Selected / active list rows and folders */
.listing li.selected,
.listing tr.selected td { background-color: #e3f2ef !important; }
.popupmenu .listing li > a:not(.disabled):hover { background-color: #0e766e !important; }
.popupmenu .listing li.selected { background-color: #0e766e !important; }
ul.treelist li.selected > a,
ul.treelist li.selected > div > a { background-color: #e3f2ef !important; }
.folderlist li.mailbox .unreadcount { background: #0e766e !important; }
.folderlist li.mailbox.recent > a > .unreadcount { background: #0e766e !important; }
.image-selector .attachmentslist li:focus,
.image-selector .attachmentslist li:hover { background: #e3f2ef !important; }
.googie_list li.googie_list_onhover { background-color: #0e766e !important; }

/* Message reading pane: quoted-text blockquote accent */
.message-htmlpart blockquote,
.message-part blockquote {
	color: #0e766e !important;
	border-left-color: #0e766e !important;
	border-right-color: #0e766e !important;
}

/* Focus rings: inputs, editors, tag/recipient widgets */
.formcontent.raweditor .CodeMirror-focused {
	border-color: #0e766e !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important;
}
.input-group a:focus { background-color: rgba(14,118,110,.25) !important; }
.multi-input > .content.focused {
	border-color: #0e766e !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important;
}
.recipient-input.focus {
	border-color: #0e766e !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important;
}
.tagedit-list[tabindex="-1"] {
	border-color: #0e766e !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important;
}
.form-control:focus {
	border-color: #0e766e !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important;
}
.input-group-text input:focus { border-color: #0e766e !important; }
.custom-file-input:focus ~ .custom-file-label {
	border-color: #0e766e !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important;
}

/* Checkboxes / toggle switches */
input[type="checkbox"],
input[type="radio"] { accent-color: #0e766e; }
.custom-switch .custom-control-input:focus ~ .custom-control-label:before { box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important; }
.custom-switch .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: #0e766e !important; }
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
	border-color: #0e766e !important;
	background-color: #0e766e !important;
}
.custom-switch .custom-control-input:checked:disabled ~ .custom-control-label::before {
	border-color: #7fc2ba !important;
	background-color: #7fc2ba !important;
}

/* TinyMCE editor dialogs (compose HTML signature editor) */
div.tox.focused {
	border-color: #0e766e !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important;
}
div.tox .tox-dialog .tox-dialog__body-nav-item--active { color: #0e766e !important; }
div.tox .tox-dialog .tox-dialog__body-nav-item--active:hover { color: #0b615a !important; }
div.tox .tox-dialog__footer .tox-button {
	background: #0e766e !important;
	border-color: #0e766e !important;
}
div.tox .tox-dialog__footer .tox-button:focus {
	background: #0b615a !important;
	border-color: #0b615a !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.5) !important;
}
div.tox .tox-dialog__footer .tox-button:hover {
	background: #0b615a !important;
	border-color: #0b615a !important;
}
div.tox .tox-dialog__footer .tox-button.disabled,
div.tox .tox-dialog__footer .tox-button:disabled {
	background: #0e766e !important;
	border-color: #0e766e !important;
}
div.tox .tox-dialog__footer .tox-button:not(:disabled):not(.disabled).active:focus,
div.tox .tox-dialog__footer .tox-button:not(:disabled):not(.disabled):active:focus {
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.53) !important;
}
div.tox .tox-dialog__footer .tox-button:focus:not(:disabled) {
	background: #0e766e !important;
	border-color: #0e766e !important;
}
div.tox .tox-color-input > input:focus,
div.tox .tox-listboxfield .tox-listbox--select:focus,
div.tox .tox-textarea:focus,
div.tox .tox-textfield:focus {
	border-color: #0e766e !important;
	box-shadow: 0 0 0 .2rem rgba(14,118,110,.25) !important;
}

/* Dark mode: bright teal for text/icons, mid teal for button backgrounds */
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: #2dd4bf !important; }
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: #2dd4bf !important; }
html.dark-mode .btn-primary { background-color: #128f84 !important; }
html.dark-mode .floating-action-buttons a.button { background: #128f84 !important; }
html.dark-mode .custom-file-label:focus:not(.is-invalid),
html.dark-mode .form-control:focus:not(.is-invalid) { border-color: #2dd4bf !important; }
html.dark-mode .custom-switch .custom-control-input:checked ~ .custom-control-label::before { background-color: #128f84 !important; }
html.dark-mode .multi-input:not(.is-invalid) > .content.focused { border-color: #2dd4bf !important; }
html.dark-mode .input-group a:focus {
	border-color: #2dd4bf !important;
	box-shadow: 0 0 0 .2rem rgba(45,212,191,.25) !important;
}
html.dark-mode .recipient-input.focus { border-color: #2dd4bf !important; }
html.dark-mode .formcontent.raweditor .CodeMirror-focused { border-color: #2dd4bf !important; }
html.dark-mode .tox .tox-dialog__footer .tox-button { background-color: #128f84 !important; }
html.dark-mode .tox .tox-dialog__footer .tox-button:focus:not(:disabled) { background-color: #128f84 !important; }
html.dark-mode .tox .tox-dialog__body-nav-item--active { color: #2dd4bf !important; }
html.dark-mode .tox .tox-collection__item--enabled { color: #2dd4bf !important; }
html.dark-mode .ui-datepicker .ui-state-highlight,
html.dark-mode .ui-datepicker.ui-widget-content .ui-state-highlight { color: #2dd4bf !important; }

/* Login screen: brand mark logo styling */
#logo { opacity: 1 !important; }
