/* 
    COMMON ELEMENTS
    Override materialize.css 
*/
/* FORM LAYOUT */
form .row {
	margin-bottom: 0px;
	margin-left: -0.75rem;
    margin-right: -0.75rem; 
}
  
form .help-block {
	line-height: 12px;
	position: relative;
	top: -10px;
	color: rgba(0, 0, 0, 0.6);
	font-size: 75%; 
}

form .error {
	line-height: 12px;
	position: relative;
	top: -10px;
	color: #F44336; 
}

/* INPUT FIELD */
.input-field {
    margin-bottom: 0; 
}
.input-field label {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden; 
}
.input-field.has-error .prefix {
    color: #F44336; 
}
.input-field .prefix {
    line-height: 45px; 
}
.input-field .prefix ~ label {
    width: calc(100% - 21px - 3rem); 
}
.input-field .prefix ~ .errors .error {
    margin-left: 3rem; 
}
.input-field input[type=number] {
    -moz-appearance: textfield; 
}
.input-field .input-field-action {
	position: absolute;
	top: 0;
	right: 0;
	color: #555;
	padding: 0 0.75rem;
	line-height: 3rem;
	background: white; 
}
.input-field .input-field-action i.material-icons {
    vertical-align: middle; 
}
.input-field ::-webkit-inner-spin-button {
    -webkit-appearance: none; 
}
.input-field ::-webkit-outer-spin-button {
    -webkit-appearance: none; 
}

input:-webkit-autofill + label {
	-webkit-transform: translateY(-140%);
	transform: translateY(-140%); 
}

/* SELECT FIELD */
select.material-ignore {
    display: block; 
}

.select-field .prefix {
	position: absolute;
	width: 3rem;
	font-size: 2rem;
	margin-top: 25px;
	-webkit-transition: color .2s;
	transition: color .2s; }
	.select-field .prefix ~ label {
	margin-left: 3rem; 
}

.select-field.has-error input {
	border-bottom: 1px solid #F44336;
	-webkit-box-shadow: 0 1px 0 0 #F44336;
	box-shadow: 0 1px 0 0 #F44336; 
}

.select-field .select-wrapper {
    margin-top: 0px; 
}
.select-field .select-wrapper input.select-dropdown {
    margin-top: -7px; 
}
.select-field .select-wrapper .caret {
    z-index: 0; 
}

/* 
Fix для правильной работы jquery валидатора на materialized select:
    при инициализации material_select добавляет display: none html элементу select,
    а валидатор игнорирует невидимые поля при проверке
*/
select:required {
	display: block; 
	height: 0;
	padding: 0;
	width: 0;
	position: absolute;
}


/* CHECHBOX FIELD */
.checkbox-field {
    line-height: 35px; 
}
.checkbox-field label {
    color: rgba(0, 0, 0, 0.84); 
}
.checkbox-field .prefix {
	position: relative;
	top: 5px;
	width: 2.5rem;
	font-size: 2rem; 
}
.checkbox-field .help-block {
	padding-top: 5px;
	padding-left: 35px;
	font-size: 12px;
	display: block; 
}

/* RADIO FIELD */
.radio-field .radio {
    padding-top: 10px; 
}

.radio-field .error, .radio-field .help-block {
	top: 0px;
	left: 5px; 
}

.radio-field label.item-label {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.84); 
}

.radio-field .prefix {
	position: relative;
	top: 5px;
	width: 2.5rem;
	font-size: 2rem; 
}
.radio-field .prefix ~ label {
    width: calc(100% - 21px - 3rem); 
}

.radio-field .inline {
    margin-top: 10px; 
}
.radio-field .inline .radio {
	display: inline;
	margin-right: 20px; 
}

/* FILE FIELD */
.file-field .btn,
.file-field .btn-large {
    left: auto; 
}

.file-field-clear {
    float: right; 
}
.file-field-clear label {
	margin-right: 25px;
	width: auto; 
}

/* BUTTONS */
.btn, 
.btn-large,
.btn-small,
.btn-floating {
	background-color: #37474f;
}

.btn:hover, 
.btn-large:hover,
.btn-small:hover,
.btn-floating:hover {
    background-color: #41555e;
}

.btn:focus, 
.btn-large:focus,
.btn-small:focus,
.btn-floating:focus {
    background-color: #222c31;
}


/* PAGINATION */
.pagination li.active {
    background-color: #424242; 
}


/* BADGES */
span.badge {
	min-width: 1.5rem;
}
span.badge.new:after {
    content: "";
}
span.badge.new {
	font-weight: 740;
}


/**
SIDE NAV
*/
.sidenav li > a {
	padding: 0 16px 0;
}
.sidenav li > a > i.material-icons {
	margin-right: 16px;
}
.sidenav li > a > i.material-icons.right {
	margin-right: 0;
}



/*
    finplatform CSS
*/
body {
	background-color: #fff;
}



.brand-logo.testing {
	animation: testing-colorchange 8s infinite;
	-webkit-animation: testing-colorchange 8s infinite; /* Safari and Chrome - necessary duplicate */
}
@keyframes testing-colorchange {
	0%   {background: #ffc400;}
	50%  {
	   background: red;
	   color: white;
	}
	100% {background: #ffc400;}
}
@-webkit-keyframes testing-colorchange { /* Safari and Chrome - necessary duplicate */
	0%   {background: #ffc400;}
    50%  {
       background: red;
       color: white;
    }
    100% {background: #ffc400;}
}

.brand-logo.develop {
    animation: develop-colorchange 6s infinite;
    -webkit-animation: develop-colorchange 6s infinite; /* Safari and Chrome - necessary duplicate */
}
@keyframes develop-colorchange {
    0%   {background: #ffc400;}
    50%  {
       background: green;
       color: white;
    }
    100% {background: #ffc400;}
}
@-webkit-keyframes develop-colorchange { /* Safari and Chrome - necessary duplicate */
    0%   {background: #ffc400;}
    50%  {
       background: green;
       color: white;
    }
    100% {background: #ffc400;}
}



.no-margin {
	margin: 0 !important;
}
.no-padding {
	padding: 0 !important;
}



.preloader-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1004;
}
.preloader {
	width: 30%;
	position: fixed;
	top: 35%;
	left: 35%;
	padding: 15px;
	background-color: #fff;
	z-index: 1005;
	border-radius: 3px;
	font-size: 0.9em;
}
.progress {
	background-color: #9aaeb8;
}



.nav-wrapper ul {
    display: block;
}
.nav-wrapper .dropdown-content {
	display: none;
}
.nav-wrapper .brand-logo {
	float: left !important;
	position: relative !important;
	font-size: 1.4rem !important;
	min-width: 300px;
	max-width: 300px;
	height: 64px;
	text-align: center;
}
.nav-wrapper .brand-logo img {
	width: 90%;
}

.nav-wrapper .userli {
	display: table;
	line-height: normal;
	text-align: right;
}
.nav-wrapper .userli > a {
	display: table-row;
}
.nav-wrapper .userli > a > span {
	display: table-cell;
	vertical-align: middle;
}



.button-collapse {
	position: absolute !important;
	right: 0 !important;
}




.nav li.active a {
	background-color: #ffab00 !important;
	color: #fff !important;
}
.nav li a {
	color: #ffab00 !important;
}
nav .sidenav-trigger {
	float: right;
}




.dropdown-content li > a, 
.dropdown-content li > span {
	color: #37474f;
}




.user-view {
	padding: 10px 10px 0 !important;
}
.user-view a {
	display: block;
	padding: 0;
}
.user-view a.avatar {
	padding: 0;
}
.user-view .name {
	margin-top: 8px !important;
}
.user-view .email {
	padding-bottom: 5px !important;
}
.user-view .logout {
	display: block;
	text-align: right;
	font-size: 0.8em;
	line-height: normal;
}
.user-view .logout i {
	vertical-align: middle;
	font-size: 20px;
}



.main-sidebar {
	margin-top: 64px;
}
.main-content,
.main-footer {
	margin-left: 300px;
}



.bs-callout h4 {
	font-size: 1.2em;
	margin-top: 0;
}



table.highlight {
    padding: inherit;
    margin-bottom: inherit;
    background-color: inherit;
    border: inherit;
    border-radius: inherit;
}
table.minify {
	font-size: 0.85em;
}
table.minify-s {
	font-size: 0.8em;
}
table.minify-xs {
    font-size: 0.75em;
}



form .invalid {
    position: relative;
    top: 0;
    left: 0;
    color: #b71c1c !important;
    font-size: 0.75em;
}
form div.invalid {
    margin-bottom: 10px;
}
form select.invalid {
    position: absolute !important;
}
form input {
    margin-bottom: 10px !important;
}
.input-field .tooltipped,
.checkbox-field .tooltipped {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 996;
} 
.checkbox-field {
	position: relative;
	padding-top: 1.65rem;
}
.checkbox-field.no-padding {
	padding-top: 0;
}
[type=checkbox].filled-in:checked+span:not(.lever):after {
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #37474f;
    background-color: #37474f;
    z-index: 0;
}




.material-tooltip {
	opacity: inherit;
	border: none !important;
	visibility: visible !important;
	border-radius: 3px;
	background-color: rgba(50, 50, 50, 0.8);
}



.material-icons.v-middle {
	vertical-align: middle;
}


.system-messages-toast-container {
	position: fixed;
	max-width: 60%;
	right: 10px;
	top: 65px;
	z-index: 1001;
}
.system-messages-toast-container .toast {
	top: auto;
	display: inherit;
}
.system-messages-toast-container .material-icons.toast-action {
	vertical-align: middle;
	cursor: pointer;
	margin-right: -15px !important;
}




table thead td,
table thead th {
	font-weight: 600;
}




.tabular > div {
	display: table-row;
}
.tabular > div > div {
	display: table-cell;
	padding: 4px 8px 4px 0;
}
.tabular div.th {
	font-size: 0.85em;
    font-weight: 500;
}




.breadcrumbs .breadcrumb,
.breadcrumbs .breadcrumb:before {
	color: #9e9e9e;
}
.breadcrumbs .breadcrumb {
	font-size: 0.8em;
}
.breadcrumbs .breadcrumb:before {
	font-size: 1em;
	vertical-align: middle;
	margin-left: 0;
	margin-right: 5px;
}
.breadcrumbs a.breadcrumb {
	text-decoration: underline;
	color: #585858;
}




a.card-panel {
	display: table;
	font-size: 0.9em;
	width: 100%;
	line-height: normal;
	padding: 15px;
	min-height: 135px;
}
a.card-panel i,
a.card-panel span {
	display: table-row;
}
a.card-panel span {
	vertical-align: middle;
}




.ui-datepicker-title select {
	display: initial;
	height: auto;
}
.monthyeardatepicker .ui-datepicker-calendar {
	display: none;
}




@media only screen and (max-width: 992px) {
    .main-sidebar {
        margin-top: 0;
    }
	.main-content,
	.main-footer {
	    margin-left: 0;
	}
	
	
	
	.brand-logo {
		-webkit-transform: none !important;
	    transform: none !important;
	    left: 0 !important;
	}
}

@media only screen and (max-width: 568px) {
	.brand-logo {
        -webkit-transform: none !important;
        transform: none !important;
        left: 0 !important;
        min-width: 260px !important;
        max-width: 260px !important;
        height: 56px !important;
    }
}




/* Timeline */
.timeline-outer {
    width: 100%;
    margin: 0;
}

.timeline {
    border-left: 6px solid #ffab00;
    color: #333;
    margin: 50px auto;
    position: relative;
    line-height: 1.4em;
    padding: 20px !important;
    list-style: none;
    text-align: left;
}

.timeline h1 {
    font-size: 1.1em;
    margin: 5px 0 10px;
    font-weight: 600;
}
.timeline h2 {
    font-size: 1em;
    margin: 5px 0 10px;
    font-weight: 500;
}
.timeline h3 {
    font-size: 0.9em;
    margin: 5px 0 10px;
    font-weight: 450;
    font-style: italic;
}

.timeline .event {
	border-bottom: 1px solid rgba(160, 160, 160, 0.2);
	padding-bottom: 15px;
	margin-bottom: 20px;
	position: relative;
}

.timeline .event:last-of-type {
	padding-bottom: 0;
	margin-bottom: 0;
	border: none;
}

.timeline .event:after {
	position: absolute;
	display: block;
	top: 0;
}

.timeline .event:after {
	box-shadow: 0 0 0 6px #ffab00;
	left: -28px;
	background: #212121;
	border-radius: 50%;
	height: 9px;
	width: 9px;
	content: "";
	top: 5px;
}
/**/

/*——————————————
Responsive Stuff
———————————————*/
@media (max-width: 945px) {
	.timeline h3 {
        font-size: 16px;
	}
	.timeline p {
        padding-top: 20px;
	}
}

@media (max-width: 768px) {
  .timeline h3 {
    font-size: 16px;
  }
  .timeline p {
    padding-top: 20px;
  }
}



/* TABS */
.tabs .tab a {
    color: #000;
} /*Black color to the text*/

.tabs .tab a:hover {
    background-color: #ffe57f;
    color: #000;
} /*Text color on hover*/

.tabs .tab a:focus.active {
    background-color: transparent;
    color: #000;
} /*Background and text color when a tab is active*/

.tabs .indicator {
    background-color: #ffc400;
} /*Color of underline*/