* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

::-moz-selection {
	background: #98409B;
	color: #FFF;
	text-shadow: 0 0 0;
}
::selection {
	background: #98409B;
	color: #FFF;
	text-shadow: 0 0 0;
}
html {
	height: 100%;
}

body {
	padding: 0;
	margin: 0;
	font-family: "Open Sans MS", "Open Sans", "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	background: #3b3b47;
	color: #eee;
}
body.login {
	display: table;
	width: 100%;
	height: 100%;
}

h1, h2, h3 {
	margin: 2.5em 0 1.5em;
	letter-spacing: 0.125em;
	font-weight: normal;
	text-shadow: 1px 1px 0 rgba(0,0,0,.4), 1px 1px 2px rgba(0,0,0,.2);
}
h1 {
	margin-top: 0;
	font-size: 3em;
	text-align: center;
}
h2 {
	font-size: 2.4em;
	color: #DF3A63;
}
h3 {
	font-size: 1.8em;
	color: #D73B69;
}
h4 {
	font-size: 1.6em;
}
h4 {
	font-size: 1.4em;
}

table.main,
div[class^="annee-"],
.add {
	width: 100%;
	margin: auto;
	margin-top: 30px;
}
div[class^="annee-"],
.add,
section.alert {
	max-width: 90%;
	width: 1280px;
}
caption { 
	font-weight: bold;
	color: #aaa;
	font-size: 1.6em;	
}
.zou {
	position: absolute;
	left: -9999px;
}

a,
input,
button {
	transition: all .275s;
}

/**
 *  === Main Navigation
 */
.main-nav ul { 
	width: 1280px;
	max-width: 90%;
	padding: 0;
	margin: 2em auto;
	border: 0 none;
	border-top: 1px solid #ccc;
	border-image: linear-gradient(to right, #df3a62, #7544b7) 25% 25% 25% 25%;
	text-align: center;
	background: #2e2e3a;
	list-style: none;
}
.main-nav li {
	display: inline;
}
.main-nav a {
	display: inline-block;
	font-size: 0.875em;
	padding: 15px 25px;
	font-weight: bold;
	text-decoration: none;
	color: #EEE;
	color: rgba(255,255,255,.7);
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav .current {
	color: #FFF;
	text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.main-nav a:hover,
.main-nav a:focus {
	background: #BE3E7D;
}
.main-nav .current {
	background: #D73B69;
}

/**
 * === Main tables
 */
.main thead tr,
.main tfoot tr {
	background: #DF3A63;
	color: #FFF;
	text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}
.main thead th,
.main tfoot th {
	padding: 10px;
	letter-spacing: 0.1em;
}
.main tbody tr {
	color: #CCC;
}
.main tbody tr:nth-child(even) {
	background: #32323D;
}
.main tbody tr:nth-child(odd) {
	background: #3B3B47;
}
.main tbody tr:hover {
	background: #4A3260;
}
.main tbody tr td:hover,
.main tbody tr td:hover span {
	background: #7C43B1;
	color: #fff;
}
.main tbody td {
	position: relative;
	padding: 8px 6px;
}
.date {
	width: 10%;
	text-align: center;
}
.nature {
	width: 8%;
	text-align: center;
	vertical-align: middle;
}
.montant,
.montant_resume,
.montant input {
	text-align: right;
}
.montant_resume {
	width: 6%;
}
.montant_resume span {
	display: inline-block;
	font-size: 0.8em;
	color: #aaa;
}
.montant_resume span:before {
	content: "(";
}
.montant_resume span:after {
	content: ")";
}

/* header for sort by */
.header { 
	cursor: pointer;
	background: url(../images/sorter.png) right 4px no-repeat;
}
.headerSortUp,
.headerSortDown {
	background-color: #7C43B1;
}
.headerSortUp {
	background-position: right center;
}
.headerSortDown {
	background-position: 100% 108%;
}
.reinit {
	background: url(../images/reinit.png) right center no-repeat;
}

/**
 * Messages Errors, alert & good
 */
.alert {
	width: 1280px;
	max-width: 100%;
	margin: 20px auto;
}
.message {
	font-size: .875em;
	font-weight: bold;
	background: #2e2e3a;
}
.message p:first-child {
	margin-top: 0;
}
.message p:last-child {
	margin-top: 0;
}
.good {
	border-left: 3px solid #83B113;
}
.error {
	border-left: 3px solid #AF1313;
}
.neutral {
	border-left: 3px solid #439EB2;
}
section.alert .message {
	padding: 15px 15px 1px;
	color: #2e2e3a;
}
section.alert .error {
	background: #AF1313;
	color: #FFF;
}
section.alert .good {
	background: #83B113;
}
section.alert .neutral {
	background: #439EB2;
	color: #FFF;
}

/**
 * In & Out datas
 */
.recettes-depenses {
	margin-top: 1.5em;
	background: #2E2E3A;
	border-bottom: 1px solid #000;
	border-image: linear-gradient(to right, #df3a62, #7544b7) 25% 25% 25% 25%;
	box-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}
.recettes-depenses .message {
	display: inline-block;
	padding: 15px;
	background: rgba(0,0,0,.15);
}
.recettes-depenses h4 {
	padding: 10px 0;
	margin: .5em 0;
	font-size: 1.2em;
	letter-spacing: 0.1em;
	font-weight: normal;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 1px 1px 0 rgba(0,0,0,.2);
	color: rgba(255,255,255, .75);
	background: linear-gradient(to right, #df3a62, #7544b7);
}
.recettes-depenses h5 {
	margin: .5em 0;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.recettes-depenses .cols {
	display: table;
	table-layout: fixed;
	border-collapse: collapse;
	width: 100%;
}
.recettes-depenses .cols > div {
	display: table-cell;
	width: 33.333%;
	padding: 10px;
	text-align: center;
	vertical-align: middle;
}

.recettes {
	color: #65B527;
	font-weight: bold;
}
.depenses {
	color: #EA4509;
	font-weight: bold;
}
.value-euro:after {
	content: " €";
}

.recettes-depenses .solde {
	width: auto;
	float: none;
}
.recettes-depenses .solde:before {
	display: block;
	margin: .3em auto;
	width: 1em;
	height: 1em;
	font-size: 3em;
	line-height: 0.8;
	font-weight: bold;
	text-align: center;
	background: rgba(0,0,0,0.4);
	border-radius: 50%;
}
.recettes-depenses .solde-good:before {
	content: "+";
	color: #65B527;
	line-height: 0.95;
}
.recettes-depenses .solde-error:before {
	content: "-";
	color: #EA4509;
}
.solde-value {
	display: block;
	font-size: 3em;
	border-left: 0;
}
.solde-value.error {
	color: #EA4509;
}
.solde-value.good {
	color: #65B527;
}
.solde-value:after,
.nb-waiting:after {
	content: " €";
}
/* solde by month */
.solde-by-month,
.solde-since,
.solde-waiting {
	color: rgba(255,255,255,0.4);
}
.solde-by-month:after {
	content: " €/mois";
}
.solde-since {
	display: block;
	font-size: 0.75em;
}
.solde-waiting {
	margin-top: 2em;
}
.nb-waiting {
	font-weight: bold;
	color: rgba( 101,181,39,.75);
}

/* histo */
.bar {
	position: relative;
	width: 150px;
	height: 300px;
	margin: .5em auto;
	background: rgba(0, 0, 0, .2);
}
.bar-value {
	position: absolute;
	right: 0; left: 0; bottom: 0;
	top: 10%;
}
.recettes .bar-value {
	background: #65B527;
}
.depenses .bar-value {
	background: #EA4509;
}

/**
 * == Add new entry form
 */

#ui-datepicker-div {
	font-size: 0.8em;
}
#ui-datepicker-div .ui-datepicker-today {
	font-weight: bold!important;
	color: #fff!important;
}
.picker.picker {
	max-width: none;
}

.add {
	padding: 20px 0;
}
.add input {
	width: 100%;
}
.add caption {
	color: #d73b69;
	font-weight: lighter;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1em;
}
.add table {
	border-collapse: collapse;
}

.add tr.form-container,
.add .main .form-container:hover,
.add .main .form-container td:hover {
	background: #32323d;
}
.add .main tr:hover,
.add .main td:hover {
	background: transparent;
}
.add td {
}
.add .date,
.add .montant {
	width: 15%;
}
.add th {
	font-weight: lighter;
	font-size: .875em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.4);
}

.add .submit {
	padding-top: 1em;
	text-align: center;
}
.add .submit input {
	width: auto;
}



.footer {
	width: 1280px;
	max-width: 100%;
	margin: 30px auto;
	text-align: center;
}
.footer div { overflow: hidden; }
.footer p.depense,
.footer p.credit {
	display: inline-block;
	width: 250px;
	text-align:center;
	margin: 10px;
	padding: 12px;
	background: #d8e8bb;
	border: 1px solid green;
	color: green;
	border-radius: 12px;
}
.footer p.depense {
	background: #fee7e7;
	border: 1px solid orange;
	color: orange;
}
.footer p.solde {
	display:block;
	width: 350px;
	margin: 0 auto;
	border-radius: 12px;
	padding: 12px;
	background: #fff;
	border:1px solid #bbb;
	color: #999;
}
.footer p.solde.deg {
	color: red;
	border-color: red;
	background: #fee7e7;
}

/**
 * Generic classes
 */
.txt-center {
	text-align: center;
}
.txt-right {
	text-align: right;
}
.txt-left {
	text-align: left;
}

.align-center {
	margin: 1em auto;
}

.m0 {
	margin: 0;
}
.mt0 {
	margin-top: 0;
}
.mb0 {
	margin-bottom: 0;
}
.mh1 {
	margin: 0 1em;
}
.mv1 {
	margin: 1em 0;
}
.mt1 {
	margin-top: 1em;
}
.mb1 {
	margin-bottom: 1em;
}

.mh2 {
	margin: 0 2em;
}
.mv2 {
	margin: 2em 0;
}
.mt2 {
	margin-top: 2em;
}
.mb2 {
	margin-bottom: 2em;
}

.screen-reader-text,
.zou {
	position: absolute;
	clip: rect(0 0 0 0);
	overflow: hidden;
}

/* Form items */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
	padding: 14px 12px;
	font-size: 1em;
	background: rgba(0,0,0,.2);
	color: #DDD;
	border: 0;
	border-bottom: 1px solid #000;
	border-image: linear-gradient(to right, #df3a62, #7544b7) 25% 25% 25% 25%;
}

::-webkit-input-placeholder {
	color: rgba(255,255,255,0.5);
}
::-moz-placeholder {
	color: rgba(255,255,255,0.5);
}
:-ms-input-placeholder {
	color: rgba(255,255,255,0.5);
}
input:-moz-placeholder {
	color: rgba(255,255,255,0.5);
}

/* Buttons */
input[type="submit"],
button,
.btn {
	display: inline-block;
	padding: 10px 25px;
	border: 0 none;
	font-size: 0.875em;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: bold;
	color: #FFF;
	color: rgba(255,255,255,.8);
	background-color: #B23E86;
	border-radius: 3px;
	box-shadow: 1px 1px 3px rgba(0,0,0,.1);
}

/**
 * Connexion page
 */

body.login .error {
	width: 320px;
	max-width: 100%;
	margin: 1em auto;
}
.page {
	display: table-cell;
	padding: 15px;
	vertical-align: middle;
}
.logo {
	margin: 1em auto;
	filter: drop-shadow(1px 1px 3px rgba(0,0,0,.5));
}
.accounts .logo {
	margin-bottom: 0;
}

/**
 * Form boxes
 */
.box {
	padding: 20px 25px;
	background: #2e2e3a;
	box-shadow: 1px 1px 3px rgba(0,0,0,.2);
}
.form.box {
	width: 320px;
	max-width: 100%;
	margin: 1em auto 3em;
}
.form.box p:last-child {
	margin-top: 2em;
}
.form.box input {
	width: 100%;
}

/**
 * Transactions Actions
 */
.item-controls {
	position: absolute;
	bottom: 0; top: 0;
	left: -25px; right: 100%;
	margin: 0;
	opacity: 0;
	background: rgba(0,0,0,.2);
	transition: all .275s;
}
tr:hover .item-controls {
	opacity: 1;
}
.item-controls a {
	display: inline-block;

	color: #FFF;
	text-decoration: none;
	transition: all .275s;
}
.item-controls i:before {
	padding: 5px;
}


/* Icons */
@font-face {
	font-family: 'icomoon';
	src:    url('../fonts/icomoon.eot?3374sr');
	src:    url('../fonts/icomoon.eot?3374sr#iefix') format('embedded-opentype'),
		url('../fonts/icomoon.ttf?3374sr') format('truetype'),
		url('../fonts/icomoon.woff?3374sr') format('woff'),
		url('../fonts/icomoon.svg?3374sr#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
}

[class^="icon-"],
[class*=" icon-"] {
	font-family: 'icomoon' !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.icon-manage:before {
	content: "\f02f";
}
.icon-bank:before {
	content: "\f0b2";
}
.icon-edit:before {
	content: "\e900";
}
.icon-tax:before {
	content: "\e901";
}
.icon-buy:before {
	content: "\e902";
}
.icon-users:before {
	content: "\e903";
}
.icon-user-add:before {
	content: "\e904";
}
.icon-user-del:before {
	content: "\e905";
}
.icon-wait:before {
	content: "\e906";
}
.icon-taxable:before {
	content: "\e907";
}
.icon-nottaxable:before {
	content: "";
	display: inline-block;
	width: 1em; height: 1em;
	background: currentColor;
	border-radius: 50%;
}
.icon-bin:before {
	content: "\e908";
}
.icon-flag:before {
	content: "\e909";
}
.icon-bookmarks:before {
	content: "\e90a";
}
.icon-warning:before {
	content: "\e90b";
}
.icon-notification:before {
	content: "\e90c";
}
.icon-question:before {
	content: "\e90d";
}
.icon-exit:before {
	content: "\e90e";
}

/* Icons size */
.nature i {
	font-size: 1.2em;
}

/* Icons color */
.icon-bank:before {
	color: #eab209;
}
.icon-buy:before {
	color: #EA4509;
}
.icon-nottaxable:before {
	color: #65B527;
}
.icon-taxable:before {
	color: #65B527;
}
.icon-tax:before {
	color: #C61D29;
}