/* Global */

@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300ita‌​lic,400italic,500,500italic,700,700italic,900italic,900);
@import url('http://fonts.cdnfonts.com/css/monaco');

html, body, html * {
  font-family: 'Roboto', sans-serif;
}

body {
    font-family: 'Roboto';
    margin: 0;
    color: #555;
}

a {
    text-decoration: none;
    color: #470997;
}

a:hover {
    color: #5e0dc7;
}

.hidden {
    display: none;
}

#left_panel {
    background-color: #470997;
    width: 48px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#left-panel .top-icons {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#left-panel .bottom-icons {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
}

#left_panel .link {
    display: block;
    color: #fff;
    margin: 15px auto;
    font-size: 20pt;
    width: 20pt;
}

.page-content {
    margin-left: 48px;
    padding: 20px;
}

.page-content h1 {
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 16pt;
}

.page-content h2 {
    margin: 0 0 10px 5px;
    font-size: 16pt;
}

.h-line {
    border-bottom: 2px solid #d9d9d9;
    margin-bottom: 32px;
}

h1, h2 {
    font-weight: normal;
}

.form-field {
    background-color: #fff;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 2px solid #d9d9d9;
    height: 30px;
    margin: 10px 0;
    font-family: 'Roboto';
    font-size: 12pt;
}

.form-field.error {
    border-bottom: 2px solid #bd0000;
}

.form-field:focus {
    outline: none;
}

input[type="button"], input[type="submit"], a.button {
    background-color: #470997;
    color: #fff;
    font-weight: bold;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
}

input[type="button"]:hover, input[type="submit"]:hover, a.button:hover {
    background-color: #5e0dc7;
}

.form-error {
    color: #bd0000;
    margin: 0;
    font-size: 10pt;
}

.navigation-links {
    display: flex;
    flex-grow: 1;
    justify-content: left;
    border-bottom: 2px solid #d9d9d9;
    margin-bottom: 32px;
    align-items: baseline;
    position: sticky;
    top: 0px;
    background-color: white;
}

.navigation-links a {
    margin-right: 20px;
    padding-bottom: 5px;
    text-decoration: none;
    color: #222;
}

.navigation-links a.rework-link {
    margin-left: 7px;
    margin-right: 0;
    padding-right: 0;
    color: white;
    cursor: pointer;
}

.rework-text {
    display: flex;
    flex-grow: 1;
    justify-content: right;
    margin-right: 30px;
    /*padding-bottom: 20px;*/
    margin-bottom: 5px;
}

.rework-text .important-info{
    color: yellow;
    font-size: 14pt;
    position: relative;
}

.rework-text .small-info{
    /*color: yellow;*/
    font-size: 5pt;
    background-color: #ff4a4a;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: inline-block;
    text-align: center;
    line-height: 10px;
    position: relative;
    bottom: 9px;
    right: 10px;
}

.navigation-links a:hover {
    color: #5e0dc7;
}

.navigation-links a.rework-link:hover {
    color: yellow;
}

.navigation-links a.active {
    border-bottom: 3px solid #361068;
}

.rework-notifications {
    background-color: #f9f9f9;
    border: 3px solid #5e0dc7;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    position: absolute;
    /*top: 110%;*/
    /*right: 25%;*/
    top: 110%;
    right: 30px;
    display: none;
    max-height: 150px;
    overflow-y: auto;
}

.rework-notifications ul {
    list-style-type: none;
    padding: 0;
}


.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    height: 40px;
}

.pagination div {
    line-height: 40px;
}

.paginator {
    display: flex;
}

.paginator > div {
    height: 40px;
    width: 48px;
    border: 1px solid #d0d0d0;
    background-color: #fff;
    text-align: center;
    color: #d0d0d0;
}

.paginator a {
    color: #555;
}

.paginator a:hover {
    color: #5e0dc7;
}

.paginator a {
    height: 40px;
    width: 48px;
    display: block;
}

.paginator > div:first-child {
    border-radius: 5px 0 0 5px;
    border-right: 0;
}

.paginator > div:last-child {
    border-radius: 0 5px 5px 0;
}

.page-notice {
    margin-bottom: 32px;
}
.page-notice span {
    background-color: #5e0dc7;
    color: white;
    font-weight: bold;
    display: inline-block;
    padding: 10px 30px 10px 10px;
    border-radius: 0 30px 30px 0;
}

.page-notice-right span {
    background-color: #5e0dc7;
    color: white;
    font-weight: bold;
    display: inline-block;
    padding: 5px 12px 5px 5px;
    border-radius: 30px 0 0 30px;
}

.notice-description {
    font-style: italic;
    margin-bottom: 32px;
}

/* Login page */

#login_page {
    width: 400px;
    margin: 150px auto 0 auto;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
}

#login_page h1 {
    text-align: center;
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid #d0d0d0;
}

#login_page form {
    padding: 20px 40px;
}

#login_page .form-field {
    width: 100%;
}

#login_page .form-submit {
    width: 100%;
    height: 40px;
    margin: 20px 0;
    font-size: 14pt;
}

/* List pages */

#list_page .list-page {
    display: flex;
    justify-content: stretch;
}

#list_page .list-page > div:first-child {
    width: calc(100% - 251px);
}

#list_page .list-page .empty {
    text-align: center;
}

#list_page .list-page > div:last-child {
    width: 200px;
    padding: 0 20px 0 30px;
}

#list_page .list-page a.button {
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
}

#list_page .list-page .year-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    color: #a0a0a0;
}
#list_page .list-page .year-separator::before,
#list_page .list-page .year-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #a0a0a0;
}
#list_page .list-page .year-separator:not(:empty)::before {
    margin-right: 0.25em;
}
#list_page .list-page .year-separator:not(:empty)::after {
    margin-left: 0.25em;
}

#list_page .right-panel {
    margin-left: 40px;
    border-left: 1px solid #d9d9d9;
}

#list_page .right-panel h3 {
    margin: 0 0 10px 0;
}

#list_page .date-filters > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#list_page .date-filters input {
    width: 95px;
}

#list_page .date-filters select {
    width: 100px;
}

#list_page .date-filters > div:last-child {
    justify-content: right;
}

#list_page .date-filters .apply-filters-btn {
    width: 70px;
    height: 24px;
    font-size: 11pt;
}

#list_page .month-filters > div {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
}

#list_page .month-filters .month-btn {
    display: block;
    padding: 5px;
    margin: 5px;
    font-size: 10pt;
    border-radius: 5px;
    border: 1px solid #470997;
    color: #555;
}

#list_page .month-filters a.month-btn:hover, #list_page .month-filters div.month-btn {
    background-color: #470997;
    color: #fff;
}

#list_page .month-filters div.month-btn {
    cursor: default;
}

#list_page .reset-filters {
    text-align: center;
}

#list_page .reset-filters a {
    width: 100%;
}

#list_page .add-item {
    text-align: center;
    margin-bottom: 40px;
}

#list_page .add-item a.button {
    width: 100%;
    height: 30px;
    line-height: 30px;
}

#list_page .list-item {
    margin-bottom: 40px;
}

#list_page .list-item .item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#list_page .list-item .item-header > div:first-child {
    color: #470997;
}
#list_page .list-item .item-header .dates-block {
    display: flex;
    justify-content: space-between;
    width: 400px;
}
#list_page .list-item .item-header .vacation-dates {
    width: 500px;
}

#list_page .list-item > div:last-child {
    text-align: justify;
}

/* Create form */

#create_item .form-field {
    width: 796px;
    margin-top: 2px;
}

#create_item textarea.form-field {
    height: 400px;
    border: 2px solid #d9d9d9;
    width: 792px;
    margin-top: 10px;
}

#create_item .form-submit {
    width: 200px;
    height: 40px;
    margin: 10px 0;
    font-size: 14pt;
    margin-left: 600px;
}

#create_item .line-fields {
    display: flex;
    justify-content: space-between;
    width: 800px;
}

#create_item .line-fields .form-field {
    width: 376px;
}

#create_item .line-fields > div {
    width: 380px;
}

/* Calendar app */

#calendar_app {
    display: flex;
}

/* Calendar page */

#calendar_page {
    width: 600px;
}

#calendar_page .calendar {
    margin-top: 30px;
}

#calendar_page .calendar .week {
    display: flex;
    justify-content: space-between;
    width: 500px;
    margin: 0 auto;
}

#calendar_page .calendar .week > div {
    width: 70px;
    height: 50px;
    text-align: center;
}

#calendar_page .calendar .day.inactive {
    color: #a0a0a0;
}

#calendar_page .calendar .day > a {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    margin: 1px auto 0px auto;
    padding-top: 1px;
}

#calendar_page .calendar .day > a:hover, #calendar_page .calendar .day.today > a {
    border: 1px solid #d9d9d9;
    margin: 0 auto;
}

#calendar_page .calendar .points {
    height: 10px;
    display: flex;
    justify-content: center;
}

#calendar_page .calendar .points > div {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    margin: 0 1px;
}

#calendar_page .navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    height: 40px;
}

#calendar_page .navigation > div {
    line-height: 40px;
}

#calendar_page .navigation > .navigation-button {
    height: 40px;
    width: 48px;
    border: 1px solid #d0d0d0;
    background-color: #fff;
    text-align: center;
    color: #d0d0d0;
}

#calendar_page .navigation > div a {
    color: #555;
    height: 40px;
    width: 48px;
    display: block;
}

#calendar_page .navigation > div a:hover {
    color: #d6618e;
}

#calendar_page .navigation > .prev {
    border-radius: 5px 0 0 5px;
}

#calendar_page .navigation > .next {
    border-radius: 0 5px 5px 0;
}

#calendar_page .navigation input[type="button"] {
    padding: 6px 10px;
}

#calendar_page .navigation .dropdown {
    display: inline;
    border: 1px solid #d9d9d9;
    padding: 5px;
    border-radius: 5px;
    margin-right: 5px;
}

#calendar_page .navigation .dropdown select {
    border: 0;
    text-align: right;
    color: #555;
    background-color: #fff;
}

/* Day details */

#day_details {
    flex-grow: 2;
    border-left: 1px solid #d9d9d9;
    margin-left: 20px;
}

#day_details .empty {
    text-align: center;
}

#day_details > .actions {
    text-align: right;
    margin-bottom: 20px;
}

#day_details > .actions .button {
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
}

#day_details .event {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    align-items: center;
}

#day_details .event .color {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    margin: 0 20px 0 10px;
}

#day_details .event .time {
    width: 120px;
}

#day_details .event .content {
    flex-grow: 2;
}

#day_details .event .actions {
    display: flex;
    justify-content: space-between;
}

#day_details .event .actions > div {
    margin: 0 10px;
}

/* Event form */

#page_shader {
    z-index: 998;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
}

#event_form {
    position: absolute;
    top: calc((100vh - 650px) / 2);
    left: calc((100vw - 640px) / 2);
    width: 600px;
    padding: 20px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 999;
    border-radius: 10px;
    display: none;
}

#event_form .close-button {
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin-left: 568px;
    text-align: center;
    font-size: 24pt;
    cursor: pointer;
}

#event_form .form-field {
    width: 596px;
    margin-top: 2px;
}

#event_form textarea.form-field {
    height: 200px;
    border: 2px solid #d9d9d9;
    width: 592px;
    margin-top: 10px;
}

#event_form .form-submit {
    width: 200px;
    height: 40px;
    margin: 10px 0 0 0;
    font-size: 14pt;
    margin-left: 400px;
}

#event_form .line-fields {
    display: flex;
    justify-content: space-between;
    width: 600px;
}

#event_form .line-fields .form-field {
    width: 276px;
}

#event_form .line-fields > div {
    width: 280px;
}

#event_form .colors-palette {
    display: flex;
    width: 600px;
    justify-content: space-between;
}

#event_form .colors-palette > div {
    width: 48px;
}

#event_form .colors-palette .color-choice {
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 10px;
}

#event_form .colors-palette .color-choice.active {
    background-color: #eaeaea;
}

#event_form .colors-palette .color-choice > div {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
}

#delete-form .form-submit {
    width: 200px;
    height: 40px;
    margin: 10px 0;
    font-size: 14pt;
}

#delete-form .delete-button {
    background-color: #bd0000;
}
#delete-form .delete-button:hover {
    background-color: #e10000;
}

#delete-form .button {
    line-height: 40px;
    text-align: center;
}
