/* Color presets:
--- Blue: #007bff;
------------------------------------------------- */

* {
    outline: none!important;
}

body {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    box-shadow: inset 0px 0px 5px 0px #aaa;
}

::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
    box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.3);
}

/* Main filter form styles 
-------------------------------------------------- */

#filter {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(50% - 50px);
    left: 0;
    right: 0;
    text-align: center;
    height: 100px;
    transition: top 500ms, box-shadow 300ms;
}

#filter:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #4285f4;
    transform: scaleX(0);
    transition: transform 500ms;
    box-shadow: 0px 3px 0px -1px rgba(0, 0, 0, 0);
}

#filter.picked {
    top: 0px;
}

#filter.picked:after {
    transform: scaleX(1);
}

#filter.up {
    box-shadow: 0px 3px 10px -1px rgba(0, 0, 0, 0.3);
}

#search {
    font-weight: bold;
    text-transform: uppercase;
    padding: 6px 15px;
}

/* Inputs
--------------------------- */

.dirrection-wrapper {
    margin: 30px;
}

/* Loader styles
-------------------------------------------------- */

#filter.up ~ #loader {
    top: 110px;
}

#loader {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 500ms;
}

#loader.hidding {
    opacity: 0;
    
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 51px;
    height: 51px;
    margin: 6px;
    border: 6px solid #4285f4;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #4285f4 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Content-container 
--------------------------------------------------- */

#content-container {
    width: 100%;
    position: absolute;
    top: 100px;
    height: calc(100vh - 100px);
    padding-top: 60px;
    overflow: auto;
}

#content-container .row {
    margin-bottom: 60px;
}

/* Table create block
----------------------------- */

#table-creator input {
    width: 290px;
    opacity: 0;
    transition: opacity 500ms, transform 500ms;
    position: absolute;
    z-index: -1;
    transform: scale(0.8);
}

#table-creator button {
    transition: transform 500ms;
    padding: 6px 15px;
}

#table-creator button.activated {
    transform: translateX(320px);
}

#table-creator input.activated {
    opacity: 1;
    transform: scale(1);
    z-index: auto;
}

/* Table styles 
----------------------------- */

.table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-heading .name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.controls {
    color: #999;
}

.controls .action-icon {
    display: block;
    float: left;
    padding: 10px;
    margin: 0 10px;
    cursor: pointer;
    transition: color 250ms;
}

.action-create {
    color: #28a745;
}

.action-update {
    color: #007bff;
}

.action-delete {
    color: #dc3545;
}

.action-create:hover,
.action-create:focus {
    color: #218838;
}

.action-update:hover,
.action-update:focus {
    color: #0069d9;
}

.action-delete:hover,
.action-delete:focus {
    color: #c82333;
}

/* Table grid imitation 
------------------------------ */

.table-header {
    display: flex;
    border: 1px solid #3898ff;
    border-radius: 5px 5px 0 0;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    text-transform: capitalize;
    background-color: #007bff;
    box-shadow: 0px 5px 5px -4px #ccc;
}



.table-inner {
    text-align: center;
}

.table-header > div:not(:last-child) {
    border-right: 1px solid #3898ff;
}

.table-header .group > div:first-child {
    border-bottom: 1px solid #3898ff;
}

.inner-row > div:not(:last-child) {
    border-right: 1px solid #ccc;
}

.table-inner .id,
.table-inner .office,
.table-inner .days,
.table-inner .seats,
.table-inner .seat {
    flex: 0 0 5%;
    padding-top: 20px;
    padding-bottom: 10px;
}

.table-header .id,
.table-header .office,
.table-header .days,
.table-header .seats,
.table-header .seat,
.table-header .price,
.table-inner .table-header .article,
.table-inner .table-header .settlement {
    padding-top: 26px;
}

.table-header .group > div {
    padding: 8px 0;
}

.table-inner .group {
    flex: 0 0 20%;
}

.table-inner .group.price-group {
    flex: 0 0 10%;
}



.group > div {
    padding: 5px 0;
}

.group > div:first-child {
    border-bottom: 1px solid #ccc;
}

.table-inner .article,
.table-inner .settlement {
    flex: 0 0 22.5%;
    padding-top: 10px;
    padding-bottom: 10px;
}

.table-content {
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    margin-top: -1px;
}

.emty-handler {
    padding: 30px 15px;
    font-size: 18px;
    color: #aaa;
    text-align: center;
    border: none;
}

.inner-row + .emty-handler {
    display: none;
}

.inner-row {
    position: relative;
    display: flex;
    border-top: 1px solid #ccc;
    margin-top: -1px;
    font-size: 12px;
    background-color: #fff;
}

.inner-row:first-child {
    border-top-color: #3898ff;
}

.inner-row:hover {
    box-shadow: inset 0px 0px 15px -3px rgba(0, 0, 0, 0.15);
}

.inner-row:nth-child(even) {
    background-color: #f5f5f5;
}

.inner-row input,
.inner-row textarea {
    border: none;
    background-color: transparent;
    width: 100%;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}

textarea {
    resize: none!important;
}

.inner-row .remover {
    border: none!important;
    text-align: center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    line-height: 50px;
    font-size: 22px;
    background: transparent;
    color: #dd0000;
    right: -50px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 300ms;
}

.inner-row:hover .remover {
    opacity: 1;
}

/* Modal styles 
---------------------------------------------- */

.modal-body {
    padding: 0!important;
}

.modal-block {
    border-bottom: 1px solid #eee;
    padding: 30px;
    margin-bottom: 15px;
}

.modal-block:last-child {
    border-bottom: none;
}

.modal-block-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.label {
    font-size: 12px;
}

.radio {
    flex: 0 0 20%;
    text-align: center;
    margin-right: 15px;
}

#createnote-back {
    display: flex;
    align-items: center;
}

.radio label {
    display: block;
    margin: 0;
    border: 1px solid #007bff;
    border-radius: 3px;
    padding: 7px 0;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 300ms;
}

.radio label:hover {
    box-shadow: 0px 2px 5px -1px rgba(0, 0, 0, 0.3);
}

.radio input:checked + label {
    background-color: #007bff;
    color: #fff;
}

.radio input {
    display: none;
}

/* More radios 
--------------------------- */

#download-wrapper {
    margin-top: 15px;
}

.radio-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.radio-wrapper .input-wrapper {
    flex: 0 0 25%;
    text-align: left;
}

.radio-wrapper .input-wrapper input {
    display: none;
}

.radio-wrapper .input-wrapper label {
    position: relative;
    margin-bottom: 15px;
    padding-left: 30px;
}

.radio-wrapper .input-wrapper label:before,
.radio-wrapper .input-wrapper label:after {
    content: '';
    display: block;
    position: absolute;
    width: 10px;
    height: 10px;
    top: 6px;
    left: 5px;
    border-radius: 10em;
}

.radio-wrapper .input-wrapper label:before {
    border: 1px solid #007bff;
}

.radio-wrapper .input-wrapper label:after {
    width: 6px;
    height: 6px;
    top: 8px;
    left: 7px;
    background-color: #007bff;
    transform: scale(0);
    transition: transform 400ms;
}

.radio-wrapper .input-wrapper input:checked + label:after {
    transform: scale(1);
}

.archive .title, .site-login .title  {
    font-size: 35px;
    padding: 30px 0;
    box-shadow: 0px 3px 10px -1px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #4285f4;
    text-align: center;
    line-height: 1;
}
.archive .table-container{
    padding-top: 100px;
}

.archive .table-inner{
    width: 80%;
}
.archive .table-container .name,  .archive .table-container .dirrection{
    flex: 0 0 35%;
}

.archive .table-container .date{
    flex: 0 0 30%;
}


.archive .table-header >div{
    padding: 20px 0;
    
}
.archive .inner-row > div:not(:last-child){
    padding: 10px 0;
}

.archive .controls{
    position: absolute;
    right: 0px;
    bottom: 0px;
    transform: translateX(100%);
    padding-left: 50px;
}

.site-login .form-wrapper{
    position: relative;
    height: calc(100vh - 119px);
   
    
}

.site-login .form-block{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 240px;
    margin: auto;
    display: flex;
    justify-content: center;
    
    
}

.site-login #login-form{
    min-width: 300px;
}

/*
.site-login .remember-me{
    float: left;
    margin: 0;
}
*/
.site-login .remember-me p, .site-login .auth-button
{
    
    margin: 0;
}

.site-login label {
    font-weight: 500;
}

.site-login .help-block{
    color: red;
}

.site-login .error-wrapper {
    transition: height 250ms;
    height: 0;
    overflow: hidden;
}

.site-login .form-group.has-error .error-wrapper{
    height: 24px;
}
.site-login .inputs-group{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.group.w-days {
    flex: 0 0 8%;
}

.table-inner .days {
    flex: 0 0 8%;
}

.table-inner .settlement, .table-inner .article {
    flex: 0 0 15%;
}
.table-inner .group.price-group {
    flex: 0 0 22%;
}
.days.line{
    padding: 6px;
}




