/* =========================== */
/* --- tags --- */
/* =========================== */

/* --- input ------- */

input[type=text],
input[type=password],
input[type=email],
input[type=number],
input[type=tel],
select {
    display: inline-block;
    width: 100%;
    min-width: 80px;
    height: 22px;
    min-height: 22px;
    margin: 0;
    padding: 2px 2px 1px;
    background-color: #fff;
    border: 1px solid #9aa0a6;
    vertical-align: middle;
    color: #3b3b3b;
}

textarea {
    width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 2px 2px 1px;
    background-color: #fff;
    border: 1px solid #9aa0a6;
    vertical-align: middle;
    color: #3b3b3b;
}

input[type=text]:hover,
input[type=password]:hover,
input[type=email]:hover,
input[type=number]:hover,
input[type=tel]:hover,
textarea:hover,
select:hover {
    border-color: #f3d64a;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=tel]:focus,
textarea:focus,
select:focus {
    border: 2px solid #000;
}


input[type=submit] {
    display: inline-block;
    position: relative;
    height: 22px;
    padding-left: 2px;
    background: url("img/button_gray.png") no-repeat left -525px transparent;
    box-sizing: content-box;
    border: 0 none;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: #333;
    cursor: pointer;
}

input[type=submit]:hover {
    background-position: left -547px;
}

input[type=submit]:focus {
    outline: 1px dotted #666 !important;
}

/* --- inline ------- */

.inline select,
.inline input[type=number],
.inline input[type=text] {
    display: inline-block;
    width: auto;
}

.inline div {
    display: inline-block;
    padding-right: 5px;
}

.inline>label {
    padding-left: 35px;
    font-weight: 700;
}

.inline label {
    display: inline;
    padding-right: 5px;
}

div.radio-inline div {
    display: inline-block;
    margin: 0 0.5rem;
}

/* --- input - file --- */
input[type="file"] {
    display: none;
}

/* --- button --- */
button,
.button-file-upload {
    display: block;
    margin: 0.5rem auto;
    padding: 6px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-image: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.button-file-upload {
    background-color: buttonface;
    font-weight: 400;
}

button:hover,
.button-file-upload:hover {
    border: 1px solid #000;
    background-color: #ccc;
}

.inline button {
    display: inline-block;
}

.a-button {
    display: block;
    margin: 0.5rem auto;
    padding: 6px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-image: none;
    background-color: buttonface;
    font-weight: 400;
    color: buttontext;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.a-button:hover {
    text-decoration: none;
    border: 1px solid #000;
    background-color: #ccc;
}

/* =========================== */
/* ------- select 2 ---------- */
/* =========================== */

.select2-address {
    padding: 2px 6px;
}

.select2-address-locality {
    height: 16px;
    line-height: 12px;
    font-size: 13px;
}

.select2-address-street {
    line-height: 26px;
    font-size: 16px;
}

/* =========================== */
/* ------- table ------------- */
/* =========================== */

table,
thead,
tfoot,
tbody,
tr,
th,
td {
    padding: 5px;
    background: #fff;
    border: 1px solid #a4abb2;
    border-collapse: collapse;
    text-align: left;
}

table {
    margin-bottom: 1rem;
    width: 100%;
}

.table_small {
    margin: 0 auto;
    margin-bottom: 1rem;
    width: 50%;
}

.table__in_td {
    margin-bottom: 0;
}

.table__in_td>tbody>tr:nth-child(even) td {
    background: Lavender;
}

.table__in_td_in_td {
    margin-bottom: 0;
    border: 0 none;
}

.table__in_td_in_td tbody,
.table__in_td_in_td tr,
.table__in_td_in_td td {
    border: 0 none;
}

.table__in_td_in_td tr:first-child {
    border-bottom: 1px solid #4169E1;
}

.table__in_td_in_td button {
    height: 26px;
    margin: 6px;
    padding: 2px 11px;
}

.table__action-row,
.table__header th,
.table__pagination-row,
.table__in_td th {
    background: linear-gradient(#f6faff, #ccd0d7);
}

.table__action-row input,
.table__action-row label {
    vertical-align: middle;
}

.table__action-row a {
    margin-left: 2rem;
}

.table__action-row img {
    padding-right: 0.5rem;
}

.table__header th,
.table__pagination-row {
    text-align: center;
}

.table__header-col {
    font-weight: 700;
}

.tr__active td {
    background-color: LightGrey;
}

.tr__reject td,
.tr__block td {
    background-color: LightPink;
}

td.td__toggle {
    padding: 5px 0;
    background-color: rgb(219, 223, 228);
}

td.td__toggle a {
    padding: 0;
}

.table__header th.cell__title {
    text-align: left;
}

.table__header th.cell__number {
    text-align: right;
}

.cell__action {
    text-align: center;
}

.cell__title {
    text-align: left;
}

.cell__table {
    padding: 0;
}

.cell__number {
    text-align: right;
}

.cell__center {
    text-align: center;
}

.pages-info {
    text-align: right;
}

td {
    vertical-align: top;
}

.cell-img {
    padding: 5px;
}

.process td {
    background-color: #afeeee;
}

.parsing_error td {
    background-color: #ffd0d0;
}

.parsed td {
    background-color: #90ee90
}

.not-active td {
    background-color: #ccc;
}

.not-use td {
    background-color: #aaa;
    border-color: #fff;
}

td.fixed {
    background-color: #b5a0da;
}

/* =========================== */
/* ------- pagination -------- */
/* =========================== */
.pagination-row label {
    vertical-align: middle;
}

.pagination-button {
    float: left;
    max-width: 400px;
    width: 400px;
    text-align: left;
    word-wrap: break-word;
}

.pagination-button button {
    display: inline-block;
    margin: 0 3px 0 0;
    padding: 0;
}

.current-page {
    display: inline-block;
    margin: 0 3px 0 0;
    padding: 0;
    min-width: 12px;
    border: 1px solid #f00;
    border-radius: 4px;
    text-align: center;
}

.pagination-button a {
    display: inline-block;
    margin: 0 3px 0 0;
    padding: 0 2px;
    min-width: 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    background-image: none;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.pagination-button a:hover {
    border: 1px solid #000;
    background-color: #ccc;
    text-decoration: none;
}

.pagination-count-block {
    float: center;
}

.pagination-count {
    vertical-align: middle;
    min-width: 50px;
    width: 50px;
}

.pagination-info {
    float: right;
    max-width: 400px;
    text-align: right;
    word-wrap: break-word;
}

/* =========================== */
/* page common elements */
/* =========================== */

/* --- form --- */
form {
    max-width: 360px;
    margin: 0 auto;
}

form.form-half {
    max-width: 50%;
}

form.form-wide {
    max-width: 100%;
}

.field_small input {
    min-width: 60px;
    width: 60px;
}

.field_sep {
    margin-left: 60px;
}

.label_sep {
    margin-right: 15px;
}

/* --- values --- */
.empty-value {
    color: #169921;
}

.not-link-text {
    color: #b22222;
}

.not-use-text {
    font-weight: 700;
    color: #b22222;
}

/* --- error & help --- */
.helptext {
    text-align: left;
    font-weight: 700;
    color: #4169E1;
}

.errorlist {
    text-align: left;
    font-weight: 700;
    color: #b22222;
}

.helptext li,
.errorlist li {
    margin-left: 1rem;
    padding-bottom: 0.25rem;
    list-style-type: circle;
    list-style-position: outside;
}

.warning {
    font-size: 18px;
    font-weight: 700;
    color: #b22222;
}

/* --- fieldset --- */
fieldset {
    padding: 0.5rem 1rem;
    margin: 0 auto;
    border: 1px #000 solid;
}

fieldset legend {
    padding: 0 0.5rem;
    font-weight: 700;
}

/* --- form-filter --- */
.form-filter {
    display: flex;
    justify-content: space-between;
}

.form-filter-block {
    display: inline-block;
    vertical-align: top;
    width: 49%;
}

.form-filter-block div {
    line-height: 28px;
}

.form-filter label {
    display: inline-block;
    vertical-align: middle;
    width: 14%;
}

.form-filter select,
.form-filter input[type=number],
.form-filter input[type=text] {
    display: inline-block;
    vertical-align: top;
}

.form-filter-field-no-label {
    margin-left: 72px;
    width: 84%;
}

.form-filter-field-no-label select,
.form-filter-field-no-label input[type=text] {
    width: 100%;
}

.form-filter-field-1 select,
.form-filter-field-1 input[type=text] {
    width: 84%;
}

.form-filter-field-2 select,
.form-filter-field-2 input[type=text] {
    width: 32%;
}

.form-filter-field-p input[type=text] {
    width: 80px;
}

.form-filter-field-sep {
    display: inline-block;
    width: 18px;
}

.form-filter-field-sep-p {
    display: inline-block;
    width: 83px;
}

.form-filter-field-sep-r {
    display: inline-block;
    width: 15%;
}

div.form-filter-field-r {
    line-height: 20px;
}

.form-filter-field-r .form-filter-field-label-left {
    width: 60%;
}

.form-filter-field-r .form-filter-field-label-right {
    width: 15%;
}

.form-filter-field-r input {
    vertical-align: middle;
}

div.form-filter-field-r-1 {
    padding: 0 10px 5px 0;
    line-height: 20px;
    text-align: right;
}

.form-filter-field-r-1 input {
    vertical-align: middle;
}

.form-filter-field-n {
    margin-left: 72px;
}

.form-filter-field-n input[type=text] {
    margin-right: 1%;
    min-width: 70px;
    width: 18.9%;
}

.form-filter-file-upload {
    line-height: 26px;
    padding: 0 1rem 0 1rem;
}

/* --- form-filter-action --- */
.form-filter-action {
    display: flex;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

div.form-filter-action_left {
    line-height: 20px;
}

div.form-filter-action_center {
    padding-top: 20px;
    line-height: 20px;
    text-align: center;
}

div.form-filter-action-n {
    line-height: 20px;
}

div.form-filter-action_bottom {
    display: flex;
    justify-content: space-between;
    width: 84%;
    margin-top: 20px;
    margin-left: 68px;
    line-height: 20px;
}

.form-filter-action_left label {
    display: inline;
}

.form-filter-action_left button,
.form-filter-action-n button,
.form-filter-action_center button,
.form-filter-action_bottom button {
    margin: 0 10px 0 0;
    padding: 2px 11px;
    display: inline;
}

.form-filter-action-n :last-child,
.form-filter-action_bottom :last-child {
    margin: 0;
}


div.form-filter-action-space-between {
    line-height: 20px;
}

.form-filter-action-space-between {
    display: flex;
    justify-content: space-between;
}

.form-filter-action-space-between button {
    margin: 0;
    padding: 2px 11px;
    display: inline;
}

/* --- form-field --- */
.form-field {
    padding: 0px 0px 5px 0px;
}

.form-field label {
    display: inline-block;
    width: 100px;
    font-weight: 700;
}

.form-field-second-label {
    margin-left: 30px;
}

.form-field-second-label label {
    width: 50px;
}

.form-field select,
.form-field input[type=number],
.form-field input[type=text],
.form-period-field input[type=text] {
    display: inline-block;
}

.form-field select,
.form-field input[type=text] {
    width: 200px;
}

.form-period-field label {
    font-weight: 700;
}

.form-period-field span {
    display: inline-block;
}

.form-period-field-first-label {
    width: 100px;
}

.form-period-field-second-label {
    margin-left: 20px;
    margin-right: 10px;
}

.form-period-field input[type=text] {
    width: 80px;
}

.form-action button {
    margin: 5px 0 5px 103px;
}

/* --- row --- */
.row,
.data-row,
.info-row,
.action-row,
.message,
.message p {
    padding-bottom: 0.5rem;
    line-height: inherit;
}

.row,
.message,
.message p,
.data-row label {
    font-weight: 700;
}

.row,
.info-row {
    text-align: left;
}

.data-row {
    text-align: center;
}

.data {
    font-weight: 400;
}

.message,
.message p {
    text-align: center;
    line-height: 1.5;
}

.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.action-row a {
    margin: 0.5rem;
}

.action-row a.a-button {
    margin-left: auto;
    margin-right: auto;
}

.order-number {
    vertical-align: super;
    color: #b22222;
    font-weight: 700;
    font-size: 10px;
}

.line {
    border-top: 1px solid #4169E1;
    height: 1px;
}

/* =========================== */
/* ----- modal windows ------- */
/* =========================== */

.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5);
    z-index: 1000;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal__body {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
}

/* --- modal ------- */

.modal__window {
    min-width: 480px;
    max-width: 640px;
    padding: 5px;
    background-color: buttonface;
    border: 1px solid #000;
    border-radius: .3rem;
}

.modal__window .a-button {
    display: inline;
    margin: 0 0 0 10px;
    padding: 2px 7px;
}

.modal__title-row {
    height: 24px;
    font-weight: 900;
}

.modal__title-row:hover {
    cursor: move;
}

.modal__title-img {
    float: left;
    padding-top: 1px;
}

.modal__title {
    float: left;
    margin-left: 7px;
    vertical-align: center;
}

.modal__title-close {
    float: right;
}

.modal__title-close .a-button {
    border: 0;
}

.modal__content {
    display: block;
    position: relative;
    min-height: 240px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #000;
}

.modal__form {
    padding-bottom: 30px;
    min-width: 480px;
}

.modal__table {
    margin-top: 1rem;
}

.modal__table-top-join {
    margin-top: 0;
}

.modal__table-bottom-join {
    margin-bottom: 0;
}

.modal__content :first-child {
    margin-top: 0;
}

.modal__table,
.modal__table tbody,
.modal__table td,
.modal__table tr {
    border: 0;
}

.modal__table-in-td {
    margin-bottom: 0;
}

.modal__table-in-td,
.modal__table-in-td thead,
.modal__table-in-td tbody,
.modal__table-in-td td,
.modal__table-in-td tr {
    border: 0;
    padding: 0;
    padding-bottom: 5px;
}

.modal__table_label {
    width: 140px;
}

.space-between {
    display: flex;
    justify-content: space-between;
}

.modal-field-1,
.modal-field-n {
    margin-top: 10px;
}

.modal-field-1 label,
.modal-field-n label {
    display: inline-block;
    width: 15%;
    padding-left: 5px;
    padding-right: 10px;
}

.modal-field-n label {
    margin-left: 24px;
}

.modal-field-n :first-child {
    margin-left: 0;
}

.modal-field-1 select {
    width: 85%;
}

.modal-field-n input[type=text] {
    min-width: 50px;
    width: 15%;
}

.modal__info-row {
    margin: 1rem;
}

.modal__action-row {
    display: block;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.modal__window textarea {
    resize: vertical;
    max-height: 240px;
}

.modal__window .datepicker {
    width: 80px;
}

.modal__process {
    display: none;
    position: absolute;
    top: 164px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1100;
}

/* --- popup ------- */

.popup__content {
    max-width: 800px;
    min-width: 350px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #000;
    text-align: left;
    color: black;
}

.popup__title {
    color: red;
    margin-bottom: 1rem;
}

.popup__action-row {
    margin-top: 1rem;
}

.popup__action {
    float: left;
}

.popup__action a {
    margin-right: 20px;
}

.popup__close {
    float: right;
}

/* --- modal map ------- */

.modal__window-map {
    max-width: 1015px;
    width: 1015px;
}

.modal__content-map {
    height: 800px;
}

/* =========================== */
/* for action */
/* =========================== */
.block-hide {
    display: none;
}

.block-hidden {
    visibility: hidden;
}

input[type=text].field-disable {
    background-color: #f3f3f3;
}

/* =========================== */