/* -----------------------------------------------------------------------

MagicMail Server CSS (2.1)
Component: Email Options
http://magicmail.linuxmagic.com/

Copyright: 2010-2013 Wizard IT Services, All Rights Reserved
All style attributes in alpha-numeric order starting from 0

----------------------------------------------------------------------- */
/* Requires the mm_modal CSS, not sure the effect on webmail, shared base? */
@import "modal.css";

#EmailOptions {
    line-height: 150%;
    width: 750px;
}

/* Webmail Rewrite */
.right {float: none;}
.right #EmailOptions {float: none; margin: 10px; width: 750px;}
.right .Aliases .minibutton {display: none;}

#EmailOptions .Description {
    color: #343434;
    margin: 8px 0 9px 10px;
    padding: 0;
    text-align: justify;
    width: auto;
}

#EmailOptions > h2 {
    margin-left: 10px;
}

#EmailOptions table th ul li.helplink {
    cursor: auto;
    margin: 0 !important;
    position: absolute;
    left: 4px;
    top: 4px;
}

#EmailOptions table th ul li.helplink a, #EmailOptions table li a.helplink  {
    background: url(../pics/helpicon.gif) no-repeat;
    border: 0;
    cursor: help;
    display: block;
    height: 12px;
    font-size: 0;
    padding-bottom: 2px;
    width: 12px;
}

#EmailOptions table li a.helplink  {
    display: inline-block;
    vertical-align: middle;
}

#EmailOptions table th ul li.helplink a:hover, #EmailOptions table li a.helplink:hover {
    opacity: 0.7;
}

#EmailOptions table.Aliases td {
    padding: 3px 6px;
    border-bottom: 1px solid #DBDBDB;
}

#EmailOptions table.Aliases td.header {
    padding: 2px 6px;
}

#EmailOptions #ForwardLine, #EmailOptions #CopyLine {padding: 0 10px;}
#EmailOptions #CopyLine {margin-top: 5px;}
#EmailOptions #CopyLine input {top: 0;}

#EmailOptions #forwarding ul.listofforwards {
    list-style: none;
    margin: 16px 16px 0;
    padding: 0;
}

#EmailOptions #forwarding .listheader {font-weight: bold;}

#EmailOptions #forwarding .listofforwards li {
    border-bottom: 1px solid #DDD;
    font-size: 12px;
    padding: 2px 0;
}

#EmailOptions #forwarding .listofforwards li small a {
    font-size: 11px !important;
    font-weight: normal !important;
    text-decoration: none;
}

#EmailOptions .listofforwards #forwardadd li {border: 0;}

#EmailOptions .listofforwards #forwardadd li input {
    border: 1px solid #AAA;
}

#EmailOptions .listofforwards #forwardadd li input:focus {
    border: 1px solid #555;
}

/* temporary override to bypass deleterious effects of Webmail Lite skins.
   Schedule for removal / cleanup after Webmail Lite is retired  */
#EmailOptions table {
    border: 1px solid #999;
}

#EmailOptions table.ChangePassword, #EmailOptions table.VacationMsg {
    background: #FFF url(../pics/tablebg.gif) repeat-x;
}

/* Separation between the checkbox and 'Update Vacation Message' button */
#EmailOptions table.vacationMsg input#vacationbox {
    margin-right: 10px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

#EmailOptions table.ChangePassword td label {
    font-size: 11px;
    white-space: nowrap;
}

#EmailOptions table.ChangePassword td .pass_input,
#EmailOptions table.VacationMsg td .vacinput,
#EmailOptions table.VacationMsg td .vactext {
    background: #FFF url(../pics/input.gif) repeat-x;
    border: 1px solid #999;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    width: 100%;
}
#EmailOptions table.VacationMsg td span {
    display: flex;
    width: 90.5%;
    justify-content: end;
    position: relative;
    top: -4px;
}

#EmailOptions table.ChangePassword td .pass_input {width: 110px}

#EmailOptions table.ChangePassword td input.pass_input:focus,
#EmailOptions table.VacationMsg td .vacinput:focus,
#EmailOptions table.VacationMsg td .vactext:focus {
    background: #EBE6D7;
}

#EmailOptions table.ChangePassword td small {
    font-weight: bold;
}

#EmailOptions table.ChangePassword #UpdatePassword {padding: 2px 0 4px;}

#EmailOptions table.ChangePassword #UpdatePassword .minibutton {
    margin: 0 4px 0 0;
}
#EmailOptions td .minibutton a {color: #2951A5; font-weight: normal;}

#EmailOptions table.VacationMsg th .disabled {color: #777;}
#EmailOptions table.VacationMsg th .enabled {color: #4A9210;}

#EmailOptions table.VacationMsg label {
    font-size: 12px;
    white-space: nowrap;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

#EmailOptions table.VacationMsg label span {font-size: 10px;}

#EmailOptions table.VacationMsg .minibutton {
    display: inline-block;
    vertical-align: middle;
    margin: 4px 0 0 0;
}

#EmailOptions table.VacationMsg .vacationDate {
    width: 100%;
}

#EmailOptions table.VacationMsg .vacationDateLabel {
    display: inline-block;
    width: 40%;
}
#EmailOptions table.VacationMsg .vacationDateSelector {
    display: inline-block;
    width: 50%;
    position: relative;
}
#vacation_error_msg {
    display: none;
    position: absolute;
    color: red;
}
#vacation_error_msg.error_label {
    display: flex;
}
#vacation_end.error_input {
    border-color: red;
    animation: vibrate 0.5s linear;
}
@keyframes vibrate {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2px, 0); }
    30% { transform: translate(2px, 0); }
    40% { transform: translate(-2px, 0); }
    50% { transform: translate(2px, 0); }
    60% { transform: translate(-2px, 0); }
    70% { transform: translate(2px, 0); }
    80% { transform: translate(-2px, 0); }
    90% { transform: translate(2px, 0); }
    100% { transform: translate(0px, 0); }
}

.vacationDateSelector > input {
    width: 200px;
}

.country-list {
    width: 300px;
    height: 300px;
}

#EmailOptions table input[type="radio"] {
    margin-left: 3px;
}

.vlalign-top {
    vertical-align: top;
}

.vlalign-bottom {
    vertical-align: bottom;
}

.padding-left {
    padding-left: 15px;
}

.col-width-100 {
    width: 100px;
}

.padding-top-10, #EmailOptions table td.padding-top-10 {
    padding-top: 10px;
}

.confirm-password-fix {
    padding-top: 18px;
    display: inline-block;
}

#pagecontent .confirm-password-fix {
    padding-top: 0;
}

input[type="password"].no-marging-bottom {
    margin-bottom: 0;
}

.col-width-280 {
    width: 280px;
}

.row-height {
    height: 30px;
}

#country-auth {
    position: relative;
}

.country-auth-ul {
    margin-left: 20px;
    padding-left: 20px;
    list-style: none;
    width: 300px;
    border: 1px solid #ccc;
    padding: 0px;
}

.country-auth-ul li {
    border-bottom: 1px solid #ccc;
    padding: 3px 5px;
}

.country-auth-ul li:last-child {
    border-bottom: none;
}

.country-auth-countries {
    width: 44%;
    display: inline-block;
    vertical-align: top;
    max-width: 302px;
}

.country-auth-add-rm {
    width: 10%;
    display: inline-block;
    position: relative;
    top: 154px;
    left: 4px;
    text-align: center;
}

.country-auth-add-rm button img {
    width: 26px;
}

.country-auth-countries .countries-wrap {
    display: inline-block;
    width: 100%;
}

.minibutton-right, #EmailOptions td .minibutton-right, table.MagicDataTable td .minibutton.minibutton-right {
    float: right; 
    margin-bottom: 5px;
    margin-left: 10px;
}

.auth-buttons-wrap {
    text-align: right;
    padding-bottom: 10px;
}

.minibutton-middle {
    margin-top: 5px;
}

.country-auth-select-top-label, .MagicContentCell p.country-auth-select-top-label {
    font-weight: bold;
    margin-bottom: 0 !important;
    padding-bottom: 8px;
    margin-top: 4px;
    font-size: 110%;
}

.text-underline {
    text-decoration: underline;
}

.pointer {
    cursor: pointer;
}

.text-green {
    color: green;
}

.text-red {
    color: red;
}

.small-em {
    font-size: 80%;
    font-style: italic;
}

.country-auth-step2 {
    clear: both; 
    padding-left: 10px;
    position: relative;
}

.country-auth-step1 {
    margin: 5px 10px;
    padding: 15px;
}

.country-auth-step1 label {
    margin-right: 26px;
    position: relative;
    bottom: 3px;
}

.mm-multiselect {                                                                                        
    display: block;                                                                                      
    height: 400px;                                                                                   
    max-width: 300px;                                                                                    
    border: 1px solid #ccc;                                                                              
    list-style: none;                                                                                    
    overflow-y: scroll;                                                                                 
    padding-left: 0;
}                                                                                                        
                                                                                                         
.mm-multiselect ul {                                                                                     
    list-style: none;                                                                                    
    padding-left: 0;
}                                                                                                        
                                                                                                         
.mm-optgroup span {                                                                                      
    font-weight: bold;                                                                                   
}                                                                                                        
                                                                                                         
.mm-multiselect li, .mm-optgroup span {                                                                  
    border-bottom: 1px solid #f1f1f1;                                                                    
    display: block;                                                                                      
    padding: 4px 6px;                                                                                    
    overflow: hidden;                                                                                    
    text-overflow: ellipsis;                                                                             
}                                                                                                        
                                                                                                         
.mm-optgroup span {                                                                                      
    cursor: default;                                                                                     
}                                                                                                        
                                                                                                         
.mm-multiselect > li, .mm-optgroup ul > li {                                                             
    cursor: pointer;                                                                                     
}                                                                                                        
                                                                                                         
.mm-multiselect > li.non-selectable, .mm-optgroup ul > li.non-selectable,  .mm-multiselect > li.non-selectable:hover, .mm-optgroup ul > li.non-selectable:hover {                                                 
    cursor: default;                                                                                     
    color: #ccc;                                 
}                                                                                                        

.mm-multiselect > li:hover, .mm-optgroup ul > li:hover {                                                 
    background: #fafafa;                                                                                 
}                                                                                                        
                                                                                                         
/* Non selectable items */                                                                               
.mm-multiselect > li.non-selectable:hover, .mm-optgroup ul > li.non-selectable:hover, .mm-multiselect > li.mm-optgroup:hover {                                                                                    
    background: none;                                                                                    
}                                                                                                        
                                                                                                         
.mm-multiselect li.selected {                                                                            
    background: #ddd;                                                                                    
}                                                                                                        
                                                                                                         
.mm-multiselect li.mm-optgroup {                                                                         
    padding: 0;                                                                                          
}                                                                                                        
                                                                                                         
.mm-multiselect li.mm-optgroup li {                                                                      
    padding-left: 15px;                                                                                  
}                                                                                                        
                                                                                                         
.mm-multiselect li:last-child {                                                                          
    border-bottom: none;                                                                                 
}

.country-auth-add-rm .arrow-right {
    margin-bottom: 10px;
}

.arrow-right, .arrow-left {
    background-color: #eaeaea;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70%;
    width: 48px;
    height: 28px;
    border: 1px solid #999;
    border-radius: 4px;
}

.arrow-right {
    background-image: url('../pics/right.png');
}

.arrow-left {
    background-image: url('../pics/left.png');
}

.col-6 {
    display: inline-block;
    width: 50%;
    box-sizing: border-box;
    float: left;
}

#country-auth-save-changes {
    width: auto;
    max-width: 691px;
    margin-top: 14px;
}

#country-auth-save-changes div.minibutton {
    float: none;
}

.show {
    display: inline;
}

.hide {
    display: none;
}

.fix-position{
    margin-right: 42px;
}

.system-enforced {
    font-style: italic;
}

/* Device History section */
#device-history {
    width: 100%;
}

table.DeviceManager {
    overflow: visible;
}

#device-history th {
    background-color: #f9f9f9;
    padding: 8px;
    line-height: 1.4;
    vertical-align: top;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.modal {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: 600px;
    margin: 30px auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 0;
    background-clip: padding-box;
    outline: 0;
}


.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 0;
    background-clip: padding-box;
    outline: 0;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.modal .close {
    color: #222;
}

.modal-header .close {
    margin-top: -2px;
}
button.close {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
}
.close {
    opacity: 0.4;
    text-decoration: none;
    text-shadow: none;
    float: right;
    font-size: 22.5px;
    font-weight: bold;
    line-height: 1;
}

.modal-title {
    margin: 0;
    line-height: 1.4;
}

.modal-header h4 {
    font-size: 19px;
}

.modal-body {
    position: relative;
    padding: 0px 10px 10px;
    margin-bottom: 20px;
}

.modal-body .row {
    margin-left: 0px;
    margin-right: 0px;
    clear: both;
}

.col-md-4 {
    width: 40%;
    float: left;
    height: 10px;
}
.col-md-8 {
    width: 60%;
    float: left;
    height: 10px;
    padding-top: 10px;
}

.modal-footer {
    padding: 5px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

.hidden {
    display: none;
}

.btn .glyph {
    font-size: 22px;
}

#device-history .glyph {
    font-size: 20px;
}

.text-muted {
    color: #999;
}

.reduced-font {
    font-size: 0.9em;
}

.btn-group, .btn-group-vertical {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.btn-group .dropdown-toggle.btn-default ~ .dropdown-menu {
    background-color: #e7e7e7;
    border-color: #ccc;
}

.btn .caret {
    margin-left: 0;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.open > .dropdown-menu {
    display: block;
}

.btn-group .dropdown-menu {
    border-top-width: 0;
}

.dropdown-menu {
    font-size: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    margin: 2px 0 0;
    list-style: none;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0;
    box-shadow: 0 0px 12px rgba(0,0,0,0.175);
    background-clip: padding-box;
    box-sizing: border-box;
    line-height: 1.4;
    color: #222;
}

.btn-group .dropdown-toggle.btn-default ~ .dropdown-menu > li > a:hover {
    background-color #d3d3d3;
}
.btn-group .dropdown-toggle.btn-default ~ .dropdown-menu > li > a {
    color #333;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    text-decoration: none;
    color: #262626;
    background-color #ccc;
}
.dropdown-menu > li > a {
    padding: 12px 15px;
}
.dropdown-menu > li > a {
    display: block;
    clear: both;
    font-weight: normal;
    line-height: 1.4;
    white-space: nowrap;
}

/* override for device details modals */
#cid-details .modal-dialog {
    width: 400px;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -ms-transform: translateY(-50%) translateX(-50%);
}

#cid-details .modal-header {
    padding: 10px;
}

#cid-details .col-md-8 {
    height: auto;
}

#cid-details .col-md-4 {
    height: auto;
}

#cid-details .modal-body {
    padding: 0px 10px 10px;
    margin-bottom: 20px;
}

#cid-details .modal-body .row {
    margin-left: 0px;
    margin-right: 0px;
}

#device-history .glyph-old-info-sign {
    cursor: pointer;
}
input[type="text"].error_empty {
    animation-name: invalid_input;
    animation-duration: .3s;
    animation-direction: forwards;
    animation-iteration-count: 1;
}
@keyframes invalid_input {
    25%, 75% {
        transform: translateX(3px);
    }
    50% {
        transform: translateX(-3px);
    }
}

.dropdown-menu > li > a.disabled_btn:focus,
.dropdown-menu > li > a.disabled_btn {
    color: gray;
}

/* Styles for the device details modal popup */
#cid-details .modal-box__details > div {
    display: flex; 
    padding: 5px 0;
}
#cid-details .modal-box__details > div:hover {
    background-color: #f2f2f2;
}
#cid-details .modal-box__details > div div:nth-child(1) {
    min-width: 200px;
    max-width: 200px;
}
#cid-details .modal-box__details label {
    padding-top: 0;
}

/* ELASTIC SKIN */
#layout-content #EmailOptions {
    max-width: 750px;
    width: unset;
    margin: 50px;
    overflow: unset;
}
#layout-content #EmailOptions * {
    color: var(--font-color);
}
#layout-content #EmailOptions .red {
    color: #BA0A0A;
}
#layout-content #EmailOptions .green {
    color: #4E9113;
}
#layout-content #EmailOptions .disabled {
    color: #777;
}
#layout-content #EmailOptions .enabled {
    color: #4A9210;
}
#layout-content table.MagicDataTable td label {
    padding: 0;
}
#layout-content #EmailOptions h2,
#layout-content #EmailOptions .tableTitleHelpIconLeft,
#layout-content #EmailOptions table .minibutton a,
#layout-content #EmailOptions table button {
    color: var(--blue-color);
}
.dark-mode #layout-content #EmailOptions table,
.dark-mode #layout-content #EmailOptions table * {
    background-image: unset;
    background: unset;
}
#layout-content #EmailOptions table .subHeaderDark td {
    color: white;
}
@media (width <= 950px) {
    #layout-content #EmailOptions {
        margin: 30px;
        margin-top: 30px;
    }
}
@media (width <= 780px) {
    #layout-content #EmailOptions {
        margin: 10px;
        margin-top: 30px;
    }
}

.dark-mode #layout-content #EmailOptions .btn-group .dropdown-toggle.btn-default ~ .dropdown-menu {
    background: #21292c;
}
.dark-mode #layout-content .arrow-right {
    background: #4d6066!important;
    background-image: url('../pics/right.png')!important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}
.dark-mode #layout-content .arrow-left {
    background: #4d6066!important;
    background-image: url('../pics/left.png')!important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}
#layout-content #EmailOptions table.ChangePassword td .pass_input {
    width: 100%;
}
