/* -----------------------------------------------------------------------

 MagicMail Server CSS (2.1)
 Component: Spam Management
 http://magicmail.linuxmagic.com/

 Copyright: 2010 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";
/* Webmail Rewrites */
.right {float: none}
#signout_button {text-align: right}
#spam_form {padding-left: 15px;}
#spam_form .SpamManagement {margin: 10px 0 0}

.SpamHeader {margin: 0 0 6px}

.SpamError.success, .SpamError.error {width: 590px}

.SpamManagement {width: 600px}

.AntiSpamProtection .SpamError ul li {
	list-style: none;
}

.AntiSpamProtection {
	margin: 0 0 8px 0;
	position: relative;
	width: 100%;
}

.AntiSpamProtection h2 {
	font-size: 16px;
	text-align: left;
}
.AntiSpamProtection .Description p, 
.AntiSpamProtection h3 {
	font-size: 14px;
	text-align: left;
}

.CustomRule {
	border: 1px solid #CECECE;
	border-bottom: 0;
}
.BlockSpot {
	border: 1px solid #CECECE;
	border-bottom: 0;
}

.EditSpamLists h2,
.CustomRule h2,
.BlockSpot h2 {
	background: #EEE;
	border-bottom: 1px solid #CECECE;
	clear: both;
	color: #000;
	font-size: 14px;
	margin: 0;
	padding: 2px 0;
	text-align: center;
	width: 100%;
}
			
.AntiSpamProtection .Description {
	color: #424242;
	margin: 10px 0px;
	text-align: justify;
}

/* Table layout wrapper for Templates + Spam Status button */
#SpamTemplateStatusWrapper {
    width: 100%;
}
#SpamTemplateStatusWrapper td {
    vertical-align: top;
}
#SpamTemplateStatusWrapper td.sts_template {
    text-align: left;
}
#SpamTemplateStatusWrapper td.sts_status {
    text-align: center;
}

#SpamTemplateStatusWrapper .SpamStatus {
    margin: 0;
    padding: 0;
    text-align: center;
    width: auto;
    position: relative;
}

.AntiSpamProtection .SpamStatus {
	margin: 0 20px 0 0;
	padding: 20px 0 0 0;
	position: absolute;
	right: 0;
	text-align: center;
	width: 200px;
}

.AntiSpamProtection .SpamStatus a {
    text-decoration: none;
}

#pluginbody .AntiSpamProtection .SpamStatus a {
	display: block;
	height: 45px;
	outline: none;
	margin: 0 auto;
	padding: 0;
	text-align: center;
	text-decoration: none;
	width: 164px;
}

.AntiSpamProtection .SpamStatus a:hover {
	color: #000;
	filter: alpha(opacity=80);
	opacity: 0.8;
}

.AntiSpamProtection .SpamStatus small {
	color: #535353;
	font-size: 11px;
	font-weight: normal;
    text-transform: capitalize;
}

.AntiSpamProtection .SpamTypes {
	border: 1px solid #CECECE;
	border-bottom: 0;
	margin: 0 0 0 0px;
	overflow: auto;
	width: 320px;
	font-family: arial;
}
				
.AntiSpamProtection .SpamType,
.CustomRule .SpamOption,
.BlockSpot .nav {
	border-bottom: 1px solid #CCC;
	clear: both;
	font-size: 12px;
	height: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}
			
.AntiSpamProtection .SpamType {
	height: auto;
}

.AntiSpamProtection .SpamType li,
.CustomRule .SpamOption li,
.BlockSpot .nav li {
	display: inline;
	line-height: 30px;
	font-size: 12px;
	margin: 0;
	white-space: nowrap;
}
				
.AntiSpamProtection .SpamType li {
	width: 230px;
}

.AntiSpamProtection .SpamType li.radio,
	.CustomRule .SpamOption li.radio,
	.BlockSpot .nav li.radio {
	height: 20px;
	padding-top: 2px;
    padding-left: 5px;
	width: 20px;
}

.AntiSpamProtection .SpamType > li.radio,
.CustomRule .SpamOption > li.radio,
.BlockSpot .nav > li.radio {
	height: 16px;
	padding-top: 4px;
}

.AntiSpamProtection .SpamType li.helpicon,
.CustomRule .SpamOption li.helpicon,
.BlockSpot .nav li.helpicon,
.BlockSpot .nav li.listicon {
	float: right;
	line-height: 0;
	padding: 4px 8px 0 0;
	width: 20px;
}

.BlockSpot .nav li.listicon {
	padding-right: 0;
}

.AntiSpamProtection .SpamType a:hover {
	filter: alpha(opacity=80);
	opacity: 0.8;
}
			
.AntiSpamProtection .HelpInfo img {
	margin: -8px 0 0 0;
}
		
.EditSpamLists,
.CustomRule,
.BlockSpot {
	border-bottom: 1px solid #ADADAD;
	border-top: 1px solid #ADADAD;
	margin: 8px 0;
	padding: 0;
	text-align: left;
}

.EditSpamLists {
	border-bottom: 0;
	border-left: 1px solid #ADADAD;
	border-right: 1px solid #ADADAD;
	margin: 10px 0px;
	font-family: arial;
}
			
#spam-rules-form {
	margin: 10px 20px;
}

.CustomRule a {
	font-size: 10px;
	text-decoration: none;
}

.BlockSpot .nav #image_sr_ip_whitelist,
.BlockSpot .nav #image_sr_ip_blacklist,
.BlockSpot .nav #image_sr_country_blacklist {
	margin-right: 4px;
}
				
.BlockSpot .section h2 {
	border-top: 1px solid #A2A2A2;
}

.SpamList {
	border-bottom: 1px solid #9C9C9C;
	font-size: 12px;
	margin: 2px 0;
    padding: 6px 0;
	width: 100%
}

.SpamList a.SpamListLink {
	color: #000;
	margin: 0 0 0 20px;
    text-decoration: none;
}

.SpamList a.SpamListLink:hover {
	color: #444;
}

.SpamList a.SpamListLink .listicon {
	border: 0;
	margin: -6px 4px 0 0;
}

.SpamList .helpicon {
	float: right;
	margin: 0 8px 0 0;
}

.HelpInfo {
    color: #666;
	font-size: 11px;
	margin: 4px 0 20px 0;
	text-align: center;
	width: 600px;
}
		
.HelpInfo img {margin: -8px 0 0}

div#per_domain_management_mention {
    width: 90%;	
	margin: 20px auto;
}

div#per_domain_management_mention p {
	font-size: 12px;
	font-style: italic;
	color: #555;
	text-align: center;
}

div#per_domain_management_mention p a {
	padding: 1px 10px;
}

.helpicon.spamListBehaviour {
    float: right;
    margin: -18px 8px 0px 0px;
}

.spamlist .description {
    padding: 8px;
    margin: 0px;
}

table.SpamList {
    border: none;
    padding: 0px;
    margin: 0px;
}

table.SpamList tr td {
    text-align: center;
}

span.recommendSpamRule {
    color: green;
    font-weight: bold;
}

span.obsoleteSpamRule {
    color: orange;
    font-weight: bold;
}

.AntiSpamProtection .SpamStatus a.SpamUserEnabled,
.AntiSpamProtection .SpamStatus a.SpamUserDisabled {
    line-height: 40px;
    height: 40px;
    width: 120px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    box-shadow: 5px 5px 3px #aaa;
    border-radius: 5px;
    text-shadow: 2px 2px #777;
}

.AntiSpamProtection .SpamStatus a.SpamUserEnabled {
    background: #02b925;
    border-top: 2px solid #24dd47;
    border-right: 2px solid #24dd47;
    border-bottom: 1px solid #2dc049;
    border-left: 1px solid #2dc049;
}

.AntiSpamProtection .SpamStatus a.SpamUserDisabled {
    background: #e20905;
    border-top: 2px solid #f842e3;
    border-right: 2px solid #f842e3;
    border-bottom: 1px solid #bd0a07;
    border-left: 1px solid #bd0a07;
}

a.SpamListLinkLabel {
    margin-left: 10px;
    background: transparent url('/pics/edit-list-image.gif') no-repeat;
    height: 18px;
    display: inline-block;
    padding-left: 20px;
    text-decoration: none;
    color: #000;
}

#SpamLists {
    margin-top: 15px;
}

#CustomSettings {
    display: none;
    padding-top: 20px;
}

#CustomSettingsToggle {
    padding-top: 10px;
}


#SpamTemplateStatusWrapper {
    display: flex;
    justify-content: space-between; 
    gap: 20px 0;
}
#SpamTemplateStatusWrapper div:nth-child(2) {
    display: flex;
    flex-direction: column;
}
#SpamTemplateStatusWrapper div:nth-child(2) > a {
    margin: auto;
    padding: 0;
}
.dark-mode #layout-content th {
    background-image: unset;
}
#layout-content .SpamManagement * {
    color: var(--font-color);
}
#layout-content .SpamManagement {
    margin: 50px 50px 0 50px;
    width: unset;
    max-width: 690px;
}
#layout-content .SpamManagement .AntiSpamProtection {
    display: flex;
    flex-direction: column;
    gap: 10px 0;
}
#layout-content .SpamManagement .AntiSpamProtection .HelpInfo {
    width: unset;
}
#layout-content .SpamManagement .AntiSpamProtection h2,
#layout-content .SpamManagement .AntiSpamProtection #CustomSettingsToggle,
#layout-content .SpamManagement .AntiSpamProtection .tableTitleHelpIconLeft {
    color: var(--blue-color);
}
#layout-content #CustomSettingsToggle {
    margin: 0 auto;
}
#layout-content #SpamTemplateStatusWrapper {
    display: flex;
    justify-content: space-around;
}
#layout-content #SpamTemplateStatusWrapper .SpamUserEnabled,
#layout-content #SpamTemplateStatusWrapper .SpamUserDisabled {
    padding: 6px 12px;
    color: white;
}
#layout-content .SpamManagement .SpamStatus a {
    display: flex;
    width: 164px;
    justify-content: center;
    align-items: center;
}
