/* Atom_MessageBox */
.Atom_MessageBox {
    border: solid #888 1px;
    border-radius: 5px;
    position: relative;
    font-size: 12px;
    padding: 3px 10px;
}
.Atom_MessageBox > div.__icon {
    position: absolute;
    top: 5px;
    left: 10px;
}
.Atom_MessageBox > div.__content {
    margin-left: 12px;
}

/* .__error */
.Atom_MessageBox.__error {
    border-color: red;
    color: red;
    background-color: #FDD;
}
.Atom_MessageBox.__error > div.__content {
    font-weight: bold;
}


/* Atom_IconButton */
a.Atom_IconButton {
	text-decoration: none;

    /* disallow selecting the text */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
a.Atom_IconButton.__enabled {
	color: #006600;
	cursor: pointer;
}
a.Atom_IconButton.__neutral {
    color: #666666;
}
a.Atom_IconButton.__enabled:hover {
	color: #228822;
}
a.Atom_IconButton.__enabled.__neutral:hover {
    color: #333333;
}
a.Atom_IconButton.__disabled {
	color: #BBBBBB;
	cursor: default;
	cursor: not-allowed;
}


/* Atom_ItemTabs */
div.Atom_ItemTabs {
    border-bottom: solid 1px #888;
    background: transparent;
}

div.Atom_ItemTabs > ul {
    display: block;

    padding: 0;
    margin: 10px 0 0 0;
}

div.Atom_ItemTabs > ul > li {
    cursor: pointer;
    display: inline-block;
    margin: 0;
    padding: 0;
    position: relative;
    top: 1px;
    list-item-style: none;

    color: #555555;
    font-size: 15px;
    font-weight: bold;
    background-color: #DDDDDD;
    border: solid 1px #888888;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;

    padding: 3px 15px 2px;
    margin-left: 10px;
    text-align: center;
}

div.Atom_ItemTabs > ul > li.__selected {
    color: #333333;
    border-bottom-color: transparent;
    cursor: auto;
}

div.Atom_ItemTabs > ul > li.__hidden {
    display: none;
}

div.Atom_ItemTabs > div.__all_the_tabs {
    border-top: 1px solid #888888;
    background: white;
}

div.Atom_ItemTabs > div.__all_the_tabs > div.__tab_wrapper > p {
    color: #333333;
    border-bottom: 1px solid #888888;
    display: block;
    margin: 0;
    padding: 3px 25px;
    background-color: #DDDDDD;
}
div.Atom_ItemTabs > div.__all_the_tabs > div.__tab_wrapper > p > b {
    font-style: italic;
    font-family: serif;
    color: white;
    display: inline-block;
    width: 18px;
    text-align: center;
    background-color: #888888;
    border-radius: 10px;
    margin-right: 1px;
}

div.Atom_ItemTabs > div.__all_the_tabs > div.__tab_wrapper > div.__tab_wrapper {
    margin-top: 5px;
    margin-bottom: 5px;
}


/* Atom_ItemProjectedDates */
.Atom_ItemProjectedDates > table {
    color: #333333;
    font-size: 12px;
}
.Atom_ItemProjectedDates > table > tbody > tr.__tweak_applied {
    color: #666666;
}
.Atom_ItemProjectedDates > table > tbody > tr.__tweak_skipped {
    color: #666666;
	text-decoration: line-through;
}


/* Atom_Control_Button */
a.Atom_Control_Button {
	color: #333333;
	text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.10);

    border: solid 1px #888888;
    border-radius: 5px;

    background-color: #DDDDDD;
	background-image: linear-gradient(to bottom, #F8F8F8, #DDDDDD);

	font-size: 15px;
	padding: 5px 10px;
	cursor: pointer;

    display: inline-block;
    text-decoration: none;
}
a.Atom_Control_Button:hover {
	background-image: none;
    background-color: #F8F8F8;
}
a.Atom_Control_Button > i.fa {
	margin-right: 0.5em;
	color: #555555;
}
a.Atom_Control_Button.__tiny {
    font-size: 10px;
    padding: 0px 10px;
}
a.Atom_Control_Button[data-btn-working],
a.Atom_Control_Button[data-btn-disabled] {
    color: #AAA;
    cursor: default;
}
a.Atom_Control_Button[data-btn-working] > i.fa,
a.Atom_Control_Button[data-btn-disabled] > i.fa {
	color: #AAA;
}


/* Atom_Control_Text */
.Atom_Control_Text {
    width: 350px;
}

.Atom_Control_Text > input,
.Atom_Control_Text > textarea {
    padding: 2px;
    font-size: 14px;
    border: solid 1px #888888;
    border-radius: 2px;
    margin: 0;
    width: 100%;
    height: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.Atom_Control_Text[data-currency-mode] {
    position: relative;
    /* use inline-block display so the sizing is closer to what an <input> element's behaviour */
    display: inline-block;
}

.Atom_Control_Text > span.__symbol {
    display: none;
}

.Atom_Control_Text[data-currency-mode] > span.__symbol {
    display: inline;
    font-size: 14px;
    color: #888;
    position: absolute;
    top: 2px;
    left: 4px;
}
.Atom_Control_Text[data-currency-mode] > input {
    padding-left: 13px;
    /* need to use 100% width so that the input box becomes the same width as the parent element */
    width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* when in textarea mode, set a standard width/height */
.Atom_Control_Text[data-textarea-mode],
textarea.Atom_Control_Text {
    height: 120px;
}

/* when in readonly mode, need to use a darker colour */
input.Atom_Control_Text.__readonly,
.Atom_Control_Text.__readonly > input,
.Atom_Control_Text.__readonly > textarea {
    color: #888;
    background-color: #DDD;
}
.Atom_Control_Text > .__hint {
    font-size: 10px;
    color: #888;
}


/* Atom_Control_Account */
.Atom_Control_Account {
	display: inline-block;
	position: relative;
}
.Atom_Control_Account > select.__readonly {
	color: #555;
}
.Atom_Control_Account > .__readonly_mask {
	background: transparent;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}



/* Atom_Control_ToFromAccount */
.Atom_Control_ToFromAccount > label {
	font-size: 12px;
	padding: 0px;
	color: #333;
	cursor: pointer;
	width: 80px;
	display: inline-block;
}
.Atom_Control_ToFromAccount > label > input {
	margin-left: 0px;
}
.Atom_Control_ToFromAccount > label > span {
	position: relative;
	top: -1px;
}
.Atom_Control_ToFromAccount > label > input:checked + span {
	font-weight: bold;
}

.Atom_Control_ToFromAccount > .__from_acc > span ,
.Atom_Control_ToFromAccount > .__to_acc > span {
	display: inline-block;
	width: 50px;
	padding-right: 4px;
	font-size: 12px;
	color: #333;
	text-align: right;
}


/* Atom_Control_Tags */
.Atom_Control_Tags {
    /* use columns css feature */
    -moz-column-width: 140px;
    -webkit-column-width: 140px;
    column-width: 140px;
    -moz-column-gap: 10px;
    -webkit-column-gap: 10px;
    column-gap: 10px;
    padding: 0;
}

.Atom_Control_Tags > label {
    display: block;
    margin-bottom: 4px;
    width: 140px;
}

.Atom_Control_Tags > a {
    display: block;
    margin-bottom: 4px;
    width: 140px;
    font-size: 11px;
}

.Atom_Control_Tags > label > input.__tag_chk {
    /* make invisible while still being able to select with tag key */
    opacity: 0;
    /* prevent checkbox from affecting the position of the <span> */
    position: absolute;
}

.Atom_Control_Tags > label > span.__tag_label {
    cursor: pointer;
    background-color: #F8F8F8;
    background: -moz-linear-gradient(top,
                #EEEEEE,
                #DDDDDD                );

    color: #888888;
    font-weight: normal;
    border: solid 1px #DDDDDD;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 11px;
    display: inline-block;
    width: 120px;
}

.Atom_Control_Tags > label > input.__tag_chk:checked + span.__tag_label {
    color: #333333;
    border-color: #333333;
}

.Atom_Control_Tags > label > input.__tag_chk:focus + span.__tag_label {
    text-decoration: underline;
}


/* Atom_Control_Select */
.Atom_Control_Select {
    box-sizing: border-box;
    position: relative;
    display: inline-block;
}

.Atom_Control_Select > select {
    width: 100%;
}

.Atom_Control_Select > .__mask {
    display: none;
}

.Atom_Control_Select.__readonly > .__mask {
    background-color: white;
    opacity: 0.4;
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}


/* Atom_Control_RepeatOption */
.Atom_Control_RepeatOption > label:first-child {
    margin-right: 15px;
}



/* Atom_Control_AmountToApply */
.Atom_Control_AmountToApply > .Atom_Control_Text {
    margin-right: 5px;
}
.Atom_Control_AmountToApply > span.__difference {
    display: inline-block;
    font-size: 10px;
    color: #080;
}
.Atom_Control_AmountToApply > span.__difference.__more_than_orig {
    color: #800; /* bad */
}


/* Atom_Control_FileUploader */
.Atom_Control_FileUploader {
    display: inline-block;
    border: solid 1px #DDD;
    background: #EEE;
    padding: 0px;
}

.Atom_Control_FileUploader > .__input {
    padding: 3px 5px;
}

.Atom_Control_FileUploader > .__file {
    padding: 3px 5px;
    border-top: dashed 1px #ddd;
    display: block;
}
.Atom_Control_FileUploader > .__file > .__delete {
    display: block;
    float: right;
    cursor: pointer;
}


/* Atom_Match_UI */
.Atom_Match_UI {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12px;
}
.Atom_Match_UI > .__layout > tbody > tr > td.__tran {
    width: 45%;
    padding: 5px;
    border-right: dashed 1px #888;
}
.Atom_Match_UI > .__layout > tbody > tr > td.__tran > dl {
    margin: 0;
}
.Atom_Match_UI > .__layout > tbody > tr > td.__tran > dl > dt {
    display: inline-block;
    width: 40px;
    vertical-align: top;
    font-weight: bold;
    margin: 0;
    padding: 0;
}
.Atom_Match_UI > .__layout > tbody > tr > td.__tran > dl > dd {
    display: inline-block;
    width: 330px;
}
.Atom_Match_UI > .__layout > tbody > tr > td.__tran > dl > dd.__amount,
.Atom_Match_UI > .__layout > tbody > tr > td.__tran > dl > dd.__date {
    width: 130px;
}
.Atom_Match_UI > .__layout > tbody > tr > td.__tran > dl > dd.__desc {
    font-family: monospace;
}
.Atom_Match_UI > .__layout > tbody > tr > td {
    vertical-align: top;
}
.Atom_Match_UI > .__layout > tbody > tr > td.__links > span {
    color: red;
    font-weight: bold;
}
.Atom_Match_UI > .__layout > tbody > tr > td.__links > .__linkstable {
    max-height: 300px;
    overflow-y: scroll;
}


/* Atom_Match_UI2 */
.Atom_Match_UI2 {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12px;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td.__detail {
    padding: 5px;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td.__pat {
    border-right: dashed 1px #888;
    width: 45%;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td.__detail > dl {
    margin: 0;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td.__detail > dl dt {
    display: inline-block;
    width: 80px;
    vertical-align: top;
    font-weight: bold;
    margin: 0;
    padding: 0;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td.__sel > dl dt {
    width: 120px;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td.__detail > dl dd {
    display: inline-block;
    margin-left: 0;
    width: 330px;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td.__pat > dl > dd.__accname,
.Atom_Match_UI2 > .__layout > tbody > tr > td.__pat > dl > dd.__trancount,
.Atom_Match_UI2 > .__layout > tbody > tr > td.__pat > dl > dd.__income,
.Atom_Match_UI2 > .__layout > tbody > tr > td.__pat > dl > dd.__expense {
    width: 130px;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td.__pat > dl > dd.__pattern {
    font-family: monospace;
}
.Atom_Match_UI2 > .__layout > tbody > tr > td {
    vertical-align: top;
}


/* Atom_Form */
.Atom_Form {
    padding: 0px 20px;
}

.Atom_Form > table {
    width: 100%;
}

.Atom_Form > table > tbody > tr.__heading > th {
	font-size: 18px;
	font-weight: normal;
	text-align: left;
	vertical-align: top;
	color: #888;
	border-bottom: solid 1px #888;
	padding-top: 20px;
}
.Atom_Form > table > tbody > tr.__heading > th > label {
	font-size: 14px;
    cursor: pointer;
	color: #333;
    line-height: 18px;
    vertical-align: middle;
}
.Atom_Form > table > tbody > tr.__heading > th > label.__radio1 {
	margin-left: 20px;
}
.Atom_Form > table > tbody > tr.__heading.__first > th {
	padding-top: 0px;
}

.Atom_Form > table > tbody > tr > th.__label {
    padding: 5px 5px;
    vertical-align: top;
    text-align: left;
	font-size: 14px;
	color: #333;
}

.Atom_Form > table > tbody > tr > td.__control_disabled,
.Atom_Form > table > tbody > tr > td.__control {
    padding: 5px 0px;
    vertical-align: top;
    text-align: left;
}

.Atom_Form > table > tbody > tr > th.__label > span.__mandatory {
    color: #888;
    font-weight: normal;
}

.Atom_Form > table > tbody > tr > td.__control > div.__control_error {
    color: red;
    font-weight: bold;
    font-size: 12px;
}


/* Atom_CleverBox */
.Atom_CleverBox {
	position: relative;
	border: solid 2px #888888;
background-color: #F8F8F8;
border-radius: 10px;
box-shadow: 3px 3px 3px 0px rgba(0,0,0,0.25);
}
.Atom_CleverBox > .__banner {
    color: #333333;
	padding: 5px 10px;
	background: #DDDDDD;
	background: -webkit-gradient(linear,
				left top,
				left bottom,
				from(#F8F8F8),
				to(#DDDDDD)
				);
	background: -moz-linear-gradient(top,
				#F8F8F8,
				#DDDDDD				);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}
.Atom_CleverBox > .__banner > i {
	margin-right: 5px;
}
.Atom_CleverBox > .__banner > small {
	margin-left: 15px;
	font-size: 10px;
	color: #666666;
}
.Atom_CleverBox > .__banner > .__buttons {
    display: inline-block;
	margin-left: 15px;
}
.Atom_CleverBox > .__banner > .__show_hide {
	position: absolute;
	top: 5px;
	right: 10px;
}

/* the table inside the box */
.Atom_CleverBox > .__box_table {
	font-size: 12px;
	border-collapse: collapse;
	width: 100%;
	border-top: solid 1px #888888;
	color: #333333;
}
.Atom_CleverBox > .__box_table > tbody > tr > td {
	border-top: solid 1px #DDDDDD;
	padding: 2px 5px 1px 0px;
	vertical-align: top;
}
.Atom_CleverBox > .__box_table > tbody > tr > th:first-child,
.Atom_CleverBox > .__box_table > tbody > tr > td:first-child {
	padding-left: 10px;
}
.Atom_CleverBox > .__box_table > tbody > tr > th:last-child,
.Atom_CleverBox > .__box_table > tbody > tr > td:last-child {
	padding-right: 10px;
}
.Atom_CleverBox > .__box_table > tbody > tr:first-child > td {
	border-top: 0px;
}
.Atom_CleverBox > .__box_table > tbody > tr > th {
	color: #666666;
	padding: 2px 5px 1px 0px;
	text-align: left;
}
.Atom_CleverBox > .__box_table > tbody > tr > .__currency {
	text-align: right;
}
.Atom_CleverBox > .__box_table > tbody > tr > .__nobr {
	white-space: nowrap;
}
.Atom_CleverBox > .__box_table > tbody > tr.__alternate {
}
.Atom_CleverBox > .__main_summary {
	padding: 0px 0px 5px;
	font-size: 12px;
	text-align: right;
	color: #333333;
	border-top: solid 1px #888888;
	background: #DDDDDD;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}
.Atom_CleverBox > .__main_summary > .__summary_item {
	padding: 5px 10px;
	display: inline-block;
}
.Atom_CleverBox > .__main_summary > .__extra_summary {
	margin: 0 10px 5px;
	padding: 5px 20px;
	background-color: #F8F8F8;
	border-radius: 5px;
	box-shadow: inset 0px 0px 5px #333333;
}
/* FIXME - this should be made part of the Atom library! */
.Atom_CleverBox > .__main_summary > .__extra_summary > .Atom_MiniTable {
	vertical-align: top;
}


/* Atom_MiniTable */
.Atom_MiniTable {
    border-collapse: collapse;
}
.Atom_MiniTable > tbody > tr > td,
.Atom_MiniTable > tbody > tr > th {
    white-space: nowrap;
    text-align: left;
    padding: 1px 10px 1px 0px;
    font-size: 12px;
}
.Atom_MiniTable > tbody > tr.__fade > td {
    color: #888;
}
.Atom_MiniTable > tbody > tr > td.__currency,
.Atom_MiniTable > tbody > tr > th.__currency {
    text-align: right;
}
.Atom_MiniTable > tbody > tr > td.__mono {
    font-family: monospace;
    padding-right: 10px;
}
.Atom_MiniTable > tbody > tr > td.__longtext {
    white-space: pre;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
    max-width: 290px;
}
.Atom_MiniTable > tbody > tr > th.__summary {
    /*padding: 1px 10px 1px 0px;*/
    /*padding-bottom: 10px;*/
    vertical-align: top;
    background-color: #DDDDDD;
}
.Atom_MiniTable > tbody > tr.__expand > td,
.Atom_MiniTable > tbody > tr.__expand > th {
    border-bottom: solid 10px white;
}
.Atom_MiniTable > tbody > tr > td:last-child,
.Atom_MiniTable > tbody > tr > th:last-child {
    padding-right: 0px;
}
.Atom_MiniTable > tbody > tr > td {
    border-top: solid 1px #DDDDDD;
}



/* Atom_MegaMenuButton */
.Atom_MegaMenuButton {
    border: solid red 1px;
    border: solid 2px #888888;
background-color: #F8F8F8;
border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    color: #333333;
    /* FIXME: this would be unnecessary with new versions of Mosaic that don't do static positioning */
    position: relative !important;
}
.Atom_MegaMenuButton:hover {
    box-shadow: 3px 3px 3px 0px rgba(0,0,0,0.25);
}
.Atom_MegaMenuButton > .__title {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}
.Atom_MegaMenuButton > .__title > .__icon {
    display: block;
    font-size: 20px;
}
.Atom_MegaMenuButton > .__desc {
    font-size: 12px;
    color: #333333;
    text-align: left;
    text-align: justify;
}


