html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Tahoma, Geneva, sans-serif;
    background-color: gray;
}

.container {
    box-sizing: border-box;
    max-width: 460px;
    margin: 0 auto;
    padding: 0 3px;
    background-color: white;
}

.hidden {
    display: none;
}

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

td.nowrap {
    white-space: nowrap;
}

.light {
    color: #868e96;
}

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

.text-right {
    text-align: right;
}

.text-middle {
    vertical-align: middle !important;
}

.text-top {
    vertical-align: top !important;
}

/* colors */
.text-danger {
    color: #dc3545 !important;
}

.text-ok {
    color: #28a745 !important;
}

.ord-error td {
    background-color: #f7f7f9;
}

.ord-active td {
    background-color: #ffe9c7;
}

/* header */
.header table {
    height: 36px;
    padding: 10px 0;
}

td.uname {
    padding: 0 5px;
}

a.btn-menu {
    display: block;
    width: 36px;
    height: 36px;
    background: url(/upload/img/icon/ic_menu_black_36px.svg);
    background-size: 36px 36px;
}

a.btn-back {
    display: block;
    width: 36px;
    height: 36px;
    background: url(/upload/img/icon/ic_back_black_36px.svg);
    background-size: 36px 36px;
}

a.btn-exit {
    display: block;
    width: 36px;
    height: 36px;
    background: url(/upload/img/icon/ic_exit_black_36px.svg);
    background-size: 36px 36px;
}

a.gps-status {
    display: block;
    width: 36px;
    height: 36px;
    background: no-repeat center url(/upload/img/icon/ic_gps_await_36px.svg);
    background-size: 28px 28px;
    margin-right: 5px;
}

a.gps-status.success {
    background: no-repeat center url(/upload/img/icon/ic_gps_success_36px.svg);
    background-size: 28px 28px;
}

a.gps-status.failed {
    background: no-repeat center url(/upload/img/icon/ic_gps_failed_36px.svg);
    background-size: 28px 28px;
}

a.btn-details {
    display: block;
    width: 30px;
    height: 30px;
    background: url(/upload/img/icon/ic_details_black_36px.svg);
    background-size: 30px 30px;
}

.btn-danger {
    display: block;
    width: 30px;
    height: 30px;
    background: url(/upload/img/icon/ic_danger_red_36px.svg);
    background-size: 30px 30px;
}

.btn-ok {
    display: block;
    width: 30px;
    height: 30px;
    background: url(/upload/img/icon/ic_done_green_36px.svg);
    background-size: 30px 30px;
}

.btn-ok-all {
    display: block;
    width: 30px;
    height: 30px;
    background: url(/upload/img/icon/ic_done_all_green_36px.svg);
    background-size: 30px 30px;
}

a.btn-call {
    display: block;
    width: 36px;
    height: 36px;
    background: url(/upload/img/icon/ic_call_green_36px.svg);
    background-size: 36px 36px;
    border: 1px solid #868e96;
    border-radius: 3px;
    margin: 5px auto !important;
}

a.btn-map {
    display: block;
    width: 36px;
    height: 36px;
    background: url(/upload/img/icon/ic_map_green_24px.svg);
    background-size: 36px 36px;
    border: 1px solid #868e96;
    border-radius: 3px;
    margin: 5px auto !important;
}

a.btn-ymap {
    display: block;
    width: 36px;
    height: 36px;
    background: url(/upload/img/icon/ic_ymap.svg);
    background-size: 36px 36px;
    border: 1px solid #868e96;
    border-radius: 3px;
    margin: 5px auto !important;
}

span.btn-menu {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    background: url(/upload/img/icon/ic_menu_black_36px.svg);
    background-size: 24px 24px;
}

span.btn-back {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    background: url(/upload/img/icon/ic_back_black_36px.svg);
    background-size: 24px 24px;
}

span.btn-exit {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    background: url(/upload/img/icon/ic_exit_black_36px.svg);
    background-size: 24px 24px;
}

span.btn-details {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    background: url(/upload/img/icon/ic_details_black_36px.svg);
    background-size: 24px 24px;
}

span.gps-status {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    background: no-repeat center url(/upload/img/icon/ic_gps_await_36px.svg);
    background-size: 24px 24px;
}

.gps-info-holder span.gps-status {
    display: inline-block;
    vertical-align: middle;
}

span.gps-status.success {
    background: no-repeat center url(/upload/img/icon/ic_gps_success_36px.svg);
    background-size: 24px 24px;
}

span.gps-status.failed {
    background: no-repeat center url(/upload/img/icon/ic_gps_failed_36px.svg);
    background-size: 24px 24px;
}

/* smartline */
.smartline table {
    width: 100%;
    height: 7px;
}

.order-wait {
    background-color: #ffeeba !important;
}

.order-done {
    background-color: #c3e6cb !important;
}

.order-next-time {
    background-color: #b8daff !important;
}

.order-decline {
    background-color: #f5c6cb !important;
}

/* menu */

/* menu default */
.menu-def {
    width: 100%;
    height: 41px;
    text-align: center;
}

.menu-def table {
    margin: 0 auto;
}

.menu-def table td {
    width: 24%;
    padding-top: 5px;
    overflow: hidden;
}

.menu-def table td a {
    display: block;
    width: 98%;
    height: 32px;
    font-size: 85%;
    color: #040505;
}

.filter-total {
    border-top: 1px solid #dddfe2;
    border-bottom: 3px solid #dddfe2;
    border-left: 1px solid #dddfe2;
    border-right: 1px solid #dddfe2;
}

.filter-wait {
    border-top: 1px solid #ffeeba;
    border-bottom: 3px solid #ffeeba;
    border-left: 1px solid #ffeeba;
    border-right: 1px solid #ffeeba;
}

.filter-next-time {
    border-top: 1px solid #b8daff;
    border-bottom: 3px solid #b8daff;
    border-left: 1px solid #b8daff;
    border-right: 1px solid #b8daff;
}

.filter-decline {
    border-top: 1px solid #f5c6cb;
    border-bottom: 3px solid #f5c6cb;
    border-left: 1px solid #f5c6cb;
    border-right: 1px solid #f5c6cb;
}

/* content */
.content table.ord-list {
    width: 100%;
    margin-top: 10px;
    table-layout: fixed;
}

.content table .row-a td {
    font-size: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content table td.cell-a {
    width: 7px;
    border-right: 1px solid white;
}

.content table td.cell-b {
    padding: 5px;
    width: 95px;
}

.content table td.cell-c {
    width: 50%;
}

.content table td.cell-d {
    padding: 5px;
    width: 70px;
}

.content table .row-b td {
    font-size: 70%;
    padding: 0 5px 5px 5px;
    border-bottom: 1px solid #dddfe2;
}

.content table td.cell-f {
    padding: 0;
    width: 30px;
    height: 30px;
}

td.cell-f a,
td.cell-f span {
    margin: 0 auto;
}

/* info */
.footer {
    padding: 25px 15px;
}

.footer table td {
    padding: 3px 5px;
    font-size: 85%;
}

.footer table td:first-child {
    width: 30px;
}

.footer table td li {
    padding: 2px 0;
}

/* order page */
.ord td {
    font-size: 90%;
    padding-top: 5px;
    padding-bottom: 3px;
}

td.line {
    height: 1px;
    background-color: #868e96;
    padding: 0 !important;
}

.ord td.cell-d {
    white-space: nowrap;
    padding-right: 5px;
}

.phone {
    font-size: 120% !important;
    padding: 10px 5px;
}

.cell-pre {
    color: #868e96;
    text-align: right;
    vertical-align: top;
    padding-right: 10px;
    white-space: nowrap;
}

.item-list,
.item-list td {
    margin: 0;
    padding: 0;
    vertical-align: top;
    font-size: 100%;
}

.item-list td {
    padding-bottom: 5px;
}

/* order page actions */
table.action {
    margin-top: 15px;
}

table.action td {
    text-align: center;
    vertical-align: middle;
}

.btn-action {
    display: block;
    box-sizing: border-box;
    width: 145px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 3px;
    margin: 5px auto 20px auto !important;
    color: #464a4e;
    background-color: #e7e8ea;
    border: 1px solid #dddfe2;
}

.footer .btn-action {
    width: 30px !important;
    margin: 0 !important;
}

.btn-action-await-gps {
    border-bottom: 3px solid violet;
}

.btn-action-await-response {
    border-bottom: 3px solid orange;
}

.btn-action-response-ok {
    border-bottom: 3px solid #28a745;
}

.btn-action-response-error {
    border-bottom: 3px solid #dc3545;
}

.btn-action-response-failed {
    border-bottom: 3px solid black;
}

.btn-action-wait {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.btn-action-done {
    color: #155724;
    border-color: #c3e6cb;
    background-color: #d4edda;
}

.btn-action-next-time {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.btn-action-decline {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.act-variant {
    margin-top: 10px;
}

.act-variant td {
    text-align: left !important;
    padding-top: 3px;
    padding-right: 0;
    padding-left: 5px;
    padding-bottom: 7px;
}

.action .input-text {
    width: 97%;
    height: 25px;
    font-size: 100%;
}
