/* gerais */
.md-default-theme.md-hue-1.md-bg {background-color: rgb(178, 202, 214);}
md-tabs .md-tab.md-active { color:rgb(76,139,176); }
md-tabs md-ink-bar { background:rgb(76,139,176); color:rgb(76,139,176); }
md-checkbox.md-default-theme.md-checked .md-ink-ripple, md-checkbox.md-checked .md-ink-ripple { color:rgba(86,139,176,0.87); }
md-button.md-default-theme.md-primary, .md-button.md-primary { color: rgb(77,111,128); }
md-default-theme.md-accent.md-hue-2.md-bg { background-color: rgb(44,131,172); }
md-list-item.sg-message-list-item._md-button-wrap.md-with-secondary._md.md-clickable.md-default-theme.md-accent.md-bg.md-hue-2{ background-color: rgb(67, 140, 174); }
md-list-item.md-default-theme.md-accent.md-hue-2._md-button-wrap.md-with-secondary._md.md-clickable.md-bg{ background-color: rgb(67, 140, 174); }
.sg-message-thread-first{ background-color: rgb(206,225,235); }
.sg-message-thread { background-color: rgb(225,238,245); }
div.sg-login.md-default-theme{background-color: rgb(224,224,224) !important; }
@media screen and (max-width:650px)  { [ui-view="login"] md-content .sg-logo { margin: 2vh auto; } }
@media (min-width: 960px) { #login > form {min-height: 300px; justify-content: center; } }
md-input-container.md-default-theme > md-icon, md-input-container > md-icon { color: #6D6E6B; }
md-input-container.md-default-theme:not(.md-input-invalid).md-input-focused label, md-input-container:not(.md-input-invalid).md-input-focused label, md-input-container.md-default-theme:not(.md-input-invalid).md-input-focused md-icon, md-input-container:not(.md-input-invalid).md-input-focused md-icon { color: #40403E;}
md-input-container.md-default-theme:not(.md-input-invalid).md-input-focused .md-input, md-input-container:not(.md-input-invalid).md-input-focused .md-input, md-input-container.md-default-theme:not(.md-input-invalid).md-input-resized .md-input, md-input-container:not(.md-input-invalid).md-input-resized .md-input { border-color: #666; }
md-switch .md-label { color:#6d6e6b; }
#loginContent md-input-container>md-icon {color: rgba(0,0,0,0.54)}
#loginContent md-switch.md-default-theme.md-hue-2.md-checked:not([disabled]) #login .md-thumb, md-switch.md-hue-2.md-checked:not([disabled]) .md-thumb { background-color: #4389ab; }
#loginContent md-switch.md-default-theme.md-hue-2.md-checked:not([disabled]) .md-bar, #login md-switch.md-hue-2.md-checked:not([disabled]) .md-bar { background-color: rgb(194, 193, 185);}
#loginContent div.sg-login.md-default-theme { background-color: rgb(234, 234, 234) !important; }
#loginContent button.md-hue-2.md-accent.md-fab:not([disabled]) { background-color:#4389ab; }
#loginContent .md-button.md-hue-2.md-accent.md-fab:not([disabled]):hover { background-color:#5ea0c0;}
/* MAIN AVATAR */
md-sidenav md-toolbar sg-avatar-image {visibility: hidden !important;}
/* TOOLBAR-MAIN */
md-toolbar:not(.md-menu-toolbar) {background-color: #4389ae;}
md-toolbar.md-default-theme.md-hue-2:not(.md-menu-toolbar), md-toolbar.md-hue-2:not(.md-menu-toolbar) {background-color: #4996bc;}
md-toolbar.md-default-theme.md-hue-2:not(.md-menu-toolbar) md-icon, md-toolbar.md-hue-2:not(.md-menu-toolbar) md-icon {fill: rgba(255,255,255,0.87); color: rgba(255,255,255,0.87);}
/* TOOLBAR SIDENAV */
md-sidenav md-toolbar.md-hue-2:not(.md-menu-toolbar) { background-color: #0f78aa; background-color: #e0e0e0; background-color: #f3f3ec; background-color: #e0e0e0; background-color: #ecebe6; background-color: #587abc; background-color: #F2F4F4; }
/* TEXTO TOOLBAR SIDENAV */
md-toolbar.md-hue-2:not(.md-menu-toolbar) .sg-md-title,
md-toolbar.md-hue-2:not(.md-menu-toolbar) .md-caption { color: #666; color: #6f7070; }
/* ACCOUNT SECTION */
.sg-account-section { background: #f2f4f4; }
/* ICONES TOOLBAR SIDENAV (AVATAR/COG) */
md-sidenav md-toolbar.md-hue-2:not(.md-menu-toolbar) md-icon { fill: rgba(255,255,255,0.87); color: rgba(255,255,255,0.87); fill: rgba(87, 87, 87, 0.87); color: rgba(87, 87, 87, 0.87); }
/* ICONES TOOLBAR MAIN */
md-toolbar.md-default-theme:not(.md-menu-toolbar) md-icon, md-toolbar:not(.md-menu-toolbar) md-icon { fill: rgba(255,255,255,0.87); color: rgba(255,255,255,0.87); }
/* VIEW CARD */
.view-detail .sg-face > md-card { margin-top:0; }
/* BUTTON DISABLED TOOLBAR */
/* md-card-actions icon */
body[ng-app="SOGo.MailerUI"] .md-button.md-hue-1.md-primary:not([disabled]) md-icon, body[ng-app="SOGo.SchedulerUI"] .md-button.md-hue-1.md-primary:not([disabled]) md-icon { color: hsla(0, 0%, 0%, 0.54); }
/* geral */
.md-default-theme.md-hue-1.md-fg { color: rgb(103, 103, 103); }
/* toolbar - ex: pesquisa */
md-toolbar.md-hue-3:not(.md-menu-toolbar) { background-color: #B2B3AD; }
/* md-select-menu */
md-select-menu.md-default-theme md-content md-option[selected], md-select-menu md-content md-option[selected] { color: rgb(198, 198, 198); }
md-select-menu.md-default-theme md-content md-option[selected].md-focused, md-select-menu md-content md-option[selected].md-focused, md-select-menu.md-default-theme md-content md-option[selected]:focus, md-select-menu md-content md-option[selected]:focus { color: rgb(138, 138, 138); }
md-dialog .md-button.md-default-theme.md-hue-1.md-primary:not([disabled]) md-icon, md-dialog .md-button.md-hue-1.md-primary:not([disabled]) md-icon { color: hsla(0, 0%, 0%, 0.54); }
/* cal */
.dayLabels {color: rgb(76,139,176);}
md-list-item[style="color: rgb(99, 153, 151);"] {color:rgb(76,139,176) !important}
[ui-view="calendars"] .view-list .sg-calendar-day {/*vertical-align: middle;*/ color:rgb(76,139,176) !important}
md-colors[style="color: rgb(99, 153, 151);"], md-list-item[style="color: rgb(178, 214, 211);"], [ui-view="calendars"] .view-list .sg-calendar-date .md-caption {color: rgb(178, 192, 214) !important; text-transform: uppercase;}
.sg-calendar-date div[style="color: rgb(178, 214, 211);"] {color: rgb(178, 192, 214) !important; font-size: 90%;}
/*.md-caption[ng-bind="::dayData.month"] {display: none;}*/
.days .md-default-theme.md-accent.md-hue-2.md-fg {color:rgb(76,139,176);}
.days .md-default-theme.md-hue-2.md-fg {color: rgb(178, 188, 214);}
.days .md-default-theme.md-primary.md-hue-1.md-fg {color: rgb(178, 188, 214);}
.days .md-default-theme.md-primary.md-hue-2.md-fg {color:rgb(76,139,176);}
[ui-view="calendars"] .hours {color: rgb(125, 146, 179);}
[ui-view="calendars"] .allDaysView--sidenav, [ui-view="calendars"] .hours .hour, [ui-view="calendars"] .minutes30 {border-bottom: 1px solid #eee;}
[ui-view="calendars"] .days .day {border-left:1px solid #eee;}
/* modal toolbar */
md-dialog md-toolbar {min-height: 56px;}
md-dialog md-toolbar .md-toolbar-tools {height: 56px;}
md-toolbar md-icon.sg-icon-toolbar-bg {font-size: 64px;}
/*md-dialog md-toolbar:not(.md-menu-toolbar) {background-color: #999;}*/
/*md-toolbar:not(.md-accent):not(.md-hue-1) md-input-container:not(.md-input-invalid) .md-input {color: rgba(0,0,0,0.54);}*/
/* toolbar icon */
md-toolbar.md-hue-1:not(.md-menu-toolbar).md-accent md-icon, .md-button.md-default-theme.md-raised:not([disabled]) md-icon, .md-button.md-raised:not([disabled]) md-icon, md-toolbar:not(.md-accent):not(.md-hue-1) md-input-container:not(.md-input-invalid).md-input-focused label {color: rgba(0,0,0,0.54);}
md-toolbar:not(.md-accent):not(.md-hue-1) md-input-container:not(.md-input-invalid).md-input-focused .md-input {border-color: rgba(0,0,0,.87);}
/* main card */
md-toolbar.md-default-theme.md-hue-1:not(.md-menu-toolbar), md-toolbar.md-hue-1:not(.md-menu-toolbar) { background-color: rgb(121,175,202); }
md-sidenav md-toolbar.md-hue-2:not(.md-menu-toolbar) {background: #f2f4f4 url('../img/logo_header.png') 17px 12px no-repeat; background-size: auto 56px;}
md-fab-speed-dial:not(.md-hover-full).md-is-open md-fab-actions .md-button {background-color: rgb(86,176,76); color: rgba(255,255,255,0.87);}
md-fab-speed-dial:not(.md-hover-full).md-is-open .md-button.md-raised:not([disabled]) md-icon {color:rgba(255,255,255,0.87)  !important;}
md-fab-speed-dial:not(.md-hover-full).md-is-open .md-button:hover {background-color: rgb(0,200,83) !important;}
md-fab-speed-dial:not(.md-hover-full).md-is-open .md-button.md-raised:not([disabled]) .md-button:hover md-icon {color:rgba(255,255,255,1) !important;}

/* ICONES TOOLBAR MAIN */
md-toolbar.md-default-theme:not(.md-menu-toolbar) md-icon, md-toolbar:not(.md-menu-toolbar) md-icon, .md-button.md-default-theme.md-hue-1.md-primary:not([disabled]) md-icon, .md-button.md-hue-1.md-primary:not([disabled]) md-icon { fill: rgba(255,255,255,0.87); color: rgba(255,255,255,0.87); }


/* divisão entre mensagens */
.view-list md-list-item._md-button-wrap > div.md-button:first-child {border-top: 1px solid #E0E0E0;}
/* destaque nao lidas */
md-list-item.unread {background-color: #D5F0FF;}
/* badge: mais destaque */
sg-mailbox-list-item .sg-counter-badge, .sg-item-name .sg-counter-badge {color: #FFF; background: #F5455C;  border-left: 0; border-radius: 4px;}
/* destaque para ícone de anexar arquivos */
.sg-mail-editor-attachments .md-icon-button[for="fileInput"]{background-color: rgb(86,176,76);  color: rgba(255,255,255,0.87);}
.sg-mail-editor-attachments .md-icon-button[for="fileInput"] md-icon {color: rgba(255,255,255,0.87);}
.sg-mail-editor-attachments .md-button:not([disabled]).md-icon-button[for="fileInput"]:hover {background-color: rgb(102, 219, 89);  color: rgba(255,255,255,0.87);}
/* destaque dia */
[ui-view="calendars"] .monthView md-grid-tile.dayOfToday {outline: 2px solid rgb(136, 199, 129); border-radius: 4px; background-color: #d5f0de;}
/* calendario - aumentar espaco para eventos */
[ui-view="calendars"] .monthView .sg-event {line-height:110%;}
/* calendario - destaque a confirmar */
[ui-view="calendars"] .sg-event--needs-action {border-width: 2px; border: 2px dashed orange !important;}
/* efeito destaque animado para eventos não confirmados: a1 */
[ui-view="calendars"] .sg-event::before, [ui-view="calendars"] .sg-event::after {box-sizing: inherit; content: ''; position: absolute; width: 100%; height: 100%;}
[ui-view="calendars"] .sg-event--needs-action::before {top: 0; left: 0; animation: a1 linear 2s infinite;}
[ui-view="calendars"] .sg-event--needs-action::after {bottom: 0; right: 0;}
[ui-view="calendars"] .sg-event--needs-action::before {border-top-color: cyan; border-right-color: cyan; transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;}
[ui-view="calendars"] .sg-event--needs-action::after {border-bottom-color: cyan; border-left-color: cyan; transition: border-color 0s ease-out 0.5s, width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;}
sidenav-content {background: #f2f4f4;}
[ui-view="calendars"] md-switch.md-default-theme .md-thumb, md-switch .md-thumb {background-color: rgb(202, 202, 202);}
/* calendario */
#sidenav-content {background-color: #f2f4f4 !important;}

@media (min-width: 1024px) {
    /* posicao botao configuracoes */
    md-sidenav md-toolbar:not(.sg-toolbar-multiple) .md-icon-button {position: absolute;right:0;top:.84em;opacity:.7;}
    md-sidenav md-toolbar:not(.sg-toolbar-multiple) .md-icon-button:hover {opacity: 1;}
    /* posicao do botao nova mensagem */    
    .sg-fab-bottom-center {right: 50vw;}
    /* diminui padding da lista (mensagens e eventos) */
    #messagesList md-list-item._md-button-wrap > div.md-button:first-child {padding-left: 8px !important;}
    [ui-view="calendars"] .view-list .sg-section-list md-list-item.md-no-proxy {padding: 0 8px;}
    .view-list .md-with-secondary .md-list-item-inner {padding-left: 4px;}
    /* diminui padding do conteudo */
    md-card md-card-content {padding: 10px;}
    /* nova mensagem em janela expandida verticalmente */
    #mailEditor[flex="100"] {height: 99%;}
    /* calendar */
    /* view evento 40% para 60% */
    md-dialog.flex-md-60.flex-40 {max-width: 60%; flex: 1 1 60%;}
}

@media (min-width: 960px) {
    /* dimensao mail editor */
    #mailEditor[flex="60"] {flex: 1 1 82%; max-width: 82%; max-width:1200px;}
    /* altura mínima editor */
    #dialogContent_mailEditor {min-height: 80vh;}
    /* colunas: diminuicao espaco diretorios */
    /*.sg-child-level-1 {padding-left:10px;}
    .sg-child-level-2 {padding-left:20px;}
    .sg-child-level-1 {padding-left:10px;}
    .sg-child-level-2 {padding-left:20px;}*/
    /* aumenta ícones de ações da mensagem */
    #detailView md-card-actions button {margin-right:10px; width: 42px; height: 42px; padding: 4px;}
    #detailView md-card-actions button:first-child {margin-left:0;}
    #detailView md-card-actions md-icon {font-size: 30px;}
    #detailView button[ng-switch="viewer.message.isread"] md-icon {margin: 0 auto; width: 28px; height: 32px;}
    #detailView md-menu > button {margin-right:0;}
    #detailView.view-detail > md-card {margin-top: 0 !important;}
    #detailView md-card {border-top-left-radius: 0; border-top-right-radius: 0;}
    /* catalogo */
    body[ng-app="SOGo.ContactsUI"] #detailView .sg-icon-toolbar-bg {display: none;}
    /* calendar */
    md-dialog.flex-70, md-dialog.flex-md-80 {max-height: 98%;}
    /* compacta abas de eventos e tarefas */
    [ui-view="calendars"] md-tabs-canvas, [ui-view="calendars"] md-pagination-wrapper {width:100%; height: 38px;}
    [ui-view="calendars"] md-pagination-wrapper md-tab-item {width:50%; padding:8px 6px; min-width: 120px;}
    /* dias da semana */
    [ui-view="calendars"] .monthView .dayLabels {text-transform: uppercase; font-size: 60%; font-weight: bold;}
    /* diminui espaçamento das ações */
    [ui-view="calendars"] md-card md-card-actions {margin: 2px 0 6px;}
    /* titulo do evento */
    body[ng-app="SOGo.SchedulerUI"] .md-toolbar-tools md-input-container {margin:0 0 !important;}
    /*.md-toolbar-tools md-input-container .md-input {line-height: 22px; height: 28px;}*/
    md-dialog md-input-container.md-input-has-placeholder label:not(.md-no-float), body[ng-app="SOGo.SchedulerUI"] .md-toolbar-tools md-input-container.md-input-has-value label:not(.md-no-float), body[ng-app="SOGo.SchedulerUI"] .md-toolbar-tools md-input-container.md-input-focused label:not(.md-no-float) {transform: translate3d(0,12px,0) scale(.75);}
    /* auto manual blur 
    md-sidenav p[ng-bind="::activeUser.identification"],
md-sidenav p[ng-bind="::activeUser.email"],
.sg-account-section [ng-bind="::account.name"],
.sg-account-section .sg-mailbox-list-item:nth-child(n+6) .sg-item-name span,
.view-list .sg-message-list-item-main .sg-md-subhead > div,
.view-list .sg-message-list-item-main .sg-tile-subject, .sg-event, #contactsList .sg-tile-content
{filter: blur(4px);}*/
    /* DESTAQUES CALENDÁRIOS */
    md-switch.ng-empty .md-thumb {transform:scale(.7) translate(-3px, -1px); box-shadow: 0 1px 1px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14);}
    .md-checked:not(.ng-touched) .md-thumb {transform:scale(1);}
    md-switch.md-checked .md-bar{ border: 1px solid #c8c8c899;}
}

/* botão "Salvar" expandido com texto quando ativo */
.md-button.md-fab-overlap-bottom.md-fab-bottom-left, .md-button.md-fab-overlap-bottom.md-fab-bottom-right, [sg-toggle-grid] md-grid-tile.md-fab-overlap-bottom.md-fab-bottom-left.sg-icon-button, [sg-toggle-grid] md-grid-tile.md-fab-overlap-bottom.md-fab-bottom-right.sg-icon-button {bottom: 4px;}
[ng-app="SOGo.PreferencesUI"] md-toolbar .md-fab:not([disabled="disabled"]) {width: 120px;border-radius: 42px;}
[ng-app="SOGo.PreferencesUI"] md-toolbar .md-fab:not([disabled="disabled"]) md-icon {margin: 0 0 0 12px;display: flex;}
[ng-app="SOGo.PreferencesUI"] md-toolbar .md-fab:not([disabled="disabled"]) md-icon::after {content: 'Salvar'; font-size:16px; text-transform:uppercase; font-family: "Fira sans","Helvetica Neue",sans-serif;  line-height:24px;width: 72px;padding: 1px 4px;}

/* botão "Criar filtro" exibido antes da lista de filtros */
[ng-app="SOGo.PreferencesUI"] md-content[aria-labelledby="mailFiltersView"] {display: flex; flex-direction: column-reverse;}
[ng-app="SOGo.PreferencesUI"] md-content[aria-labelledby="mailFiltersView"] > div[layout="row"] > button.md-button {background-color: rgb(86,176,76); color: rgba(255,255,255,0.87);}

/* botão "Salvar" mantém posição */
.md-toast-open-bottom .md-button.md-fab-bottom-left, .md-toast-open-bottom .md-button.md-fab-bottom-right, .md-toast-open-bottom [sg-toggle-grid] md-grid-tile.md-fab-bottom-left.sg-icon-button, .md-toast-open-bottom [sg-toggle-grid] md-grid-tile.md-fab-bottom-right.sg-icon-button, [sg-toggle-grid] .md-toast-open-bottom md-grid-tile.md-fab-bottom-left.sg-icon-button, [sg-toggle-grid] .md-toast-open-bottom md-grid-tile.md-fab-bottom-right.sg-icon-button {transform:none;}

/* dia da semana */
[ui-view="calendars"] .sg-calendar-tile-week {padding: 0; min-height: auto; font-size: 12px;}
[ui-view="calendars"] .sg-calendar-tile-week span {padding: 2px 2px; border-radius: 0 0 8px 0; background-color: rgb(178, 202, 214) !important;}

@media (min-width: 600px) {
    /* opção fechar mensagem */
    body:not(.popup) #detailView md-card-actions .md-icon-button[aria-label="Fechar"] {display: block !important;}
    #detailView md-card-actions .md-icon-button:first-child {margin-right:0;}
    /* opção anexos */
    #detailView md-card-actions .md-icon-button:nth-child(2) {margin-right:0;}
    #detailView .opt-attachment md-icon {font-size: 26px;}

    /* area empty */
    #detailView > md-content {background-position: center center; background-repeat: no-repeat !important; background-size:60% !important; background-image: url(../img/empty_inbox.png) !important;}
    #detailView md-content .sg-md-title {color: rgba(238, 238, 238, 0) !important;}
}

/* anim a1 */
@keyframes a1 {
  0% {box-shadow: inset 0px 0px 2px 2px orange;}
  50% {box-shadow: inset 0px 0px 0 0 orange;}
  100% {box-shadow: inset 0px 0px 2px 2px orange;}
}

/* CK Editor */
.ck-editor p, .SOGoHTMLMail-CSS-Delimiter p {margin-bottom:.6em;}
