.clean {
    clear: both;
    font-size: 1px;
}

.main {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    padding: 20px;
    background-color: #fcfcfc;
}

.body-content h3 {
    margin-top: 0;
}

.error {
    background-color: #FCC;
}

.editing {
    background-color: #FFC;
}
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  not supported by any browser */
}

hr {
    margin-top: 5px;
    margin-bottom: 5px;
}

pre{
    margin: 0;
    white-space: pre-wrap;
}

.ui-dialog {
    z-index: 9000 !important;
}

.ta-right {
    text-align: right;
}
.ta-left {
    text-align: left;
}
.ta-center {
    text-align: center;
}
.va-center, .child-va-middle > * {
    vertical-align: middle !important;
}
.ts-bold {
    font-weight: bold;
}
.ts-red, tr.ts-red>td {
    color: red;
}

.inline-block {
    display: inline-block;
}

.t-green {
    color: #008800;
}
.t-gray {
    color: #999;
}
.t-red {
    color: red;
}
.t-bold {
    font-weight: bold;
}

.c-default {
    cursor: default;
}

table > tbody > tr > td.td-compact {
    padding: 1px;
}

.pre-sp {
    margin-left: 4px;
}

.border-red {
    border: 1px solid red;
}

.dialog-alert {
    z-index: 5000 !important;
}

.login_box {
    position: absolute;
    top: calc(50% - 100px);
    left: calc(50% - 150px);
    padding: 4px;
    width: 300px;
    min-height: 100px;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: #fff;
}

.login_box table{
    width: 100%;
    border: 0;
    margin-top: 10px;
}
.login_box .input-label {
    text-align: right;
}

.menu {
    width: 100%;
    margin: 3px;
    border: 3px double #333;
}

.menu .menu_item {
    float:left;
    border: 1px solid #333;
    margin: 2px;
    padding: 2px;
}

.menu .logout {
    float: right;
    border: 1px solid #333;
    margin: 2px;
    padding: 2px;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}

.w1prc {
    width: 1%;
}
.w30 {
    width: 30px;
}
.w70 {
    width: 70px;
}
.w85 {
    width: 85px;
}
.w95 {
    width: 95px;
}
.maxw95 {
    max-width: 95px;
}
.w100 {
    width: 100px;
}
.w150 {
    width: 150px;
}
.w200 {
    width: 200px;
}
.sline, .nowrap {
    white-space: nowrap;
}
.ov-h {
    overflow: hidden;
}
.smaller {
    font-size: smaller;
}
.blue {
    color: blue;
}
.color-link {
    color: #337ab7;
}
.boxed {
    color: #555;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
}
.cur-help {
    cursor: help;
}
.sp-left {
    margin-left: 20px;
}
.sp-top {
    margin-top: 8px;
}

.btn-check {
    color: #eee;
    background-color: #fff;
    border-color: #999;
    width: 18px;
    height: 18px;
    padding: 0px;
}
.btn-check:hover, .btn-check:focus {
    color: #eee;
}
.btn-check .fa-check {
    font-size: 10px;
}
.btn-check.in, .btn-check.in .fa-check {
    color: #000;
}
.btn-check:disabled, .btn-check:disabled  .fa-check {
    color: #f99;
    border-color: #f99;
}

.btn-s30 {
    padding: 1px 5px;
    width: 30px;
    height: 30px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}
table.outborder-table {
    border: 1px solid #ddd;
}
table.outborder-table > tbody > tr, table.outborder-table > tbody > tr > td {
    border: 0;
}

.services-table {
    width: 100%;
    background-color: #f5f5f5;
}
.services-table > div {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    /* border: 1px solid silver; */
}
.services-table > div > div {
    flex: 1 1 auto;
    display: inline-block;
    padding: 2px;
}
.services-table > div div.tk-cheat {
    max-width: 300px;
}
.services-table .editable-op select {
    width: 122px;
}
.services-foot {
    display: flex;
}
.services-foot>div {
    flex: 0 1 auto;
    text-align: right;
    vertical-align: middle;
    line-height: 35px;
    padding: 0 2px;
}
.services-foot>div:first-child {
    flex: 1 0 auto;
    text-align: left;
    margin-right: 1px;
}
.services-foot>div.after-insurance {
    border-left: 1px solid silver;
}


.tb_list {
    border-collapse: collapse;
}

.tb_list, .tb_list th, .tb_list td {
    border: 1px solid #333;
}

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

.tk-history {
    max-height: 50px;
    overflow: auto;
}

.tb table {
    border-collapse: collapse;
}
.tb table, .tb tr, .tb td, .tb th {
    border: 1px solid black;
}
.tb td, .tb th {
    padding: 2px;
}

table.sm-pad td, table.sm-pad th, div.panel.sm-pad .panel-body {
    padding: 4px !important;
}

td.ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 200px;
}

.active-input {
    background-color: #ffff99;
}

.cmr-drop {
    display: inline-block;
}
.cmr-drop input {
    width: 200px;
    display: inline-block;
}
.cmr-drop ul {
    text-align: left;
}
.cmr-drop ul li {
    width: 200px;
    overflow: hidden;
    cursor: default;
    padding-left: 3px;
}
.cmr-drop ul li:hover {
    color: white;
    background-color: #428bca;
}

.cmr_row{
    cursor: pointer;
}

.cmr-add-box {
    position: absolute;
    top: 47px;
    right: 100px;
    border: 1px solid black;
    background: white;
    padding: 9px;
    box-shadow: 10px 10px gray;
    display: none;
    border-radius: 4px;
}

.cmr-add-box input[type=text] {
    width: 200px;
    display: inline-block;
}

.bg-ru {
    background-color: #e9e9ff;
}

.win-close-btn {
    position: absolute;
    top: -17px;
    right: -15px;
}

.sort-table .sorting, .sort-table .sorting_asc, .sort-table .sorting_desc {
    cursor: pointer;
}

.bday-active {
    color: #f00;
}

#cmr_add_edit_box td {
    padding: 6px;
}

#cmr_rel_box {
    position:relative;
    height:508px;
}
#cmr_rel_text {
    height: 370px;
    overflow-y: auto;
}
#cmr_rel_text .message {
    color: #3a87ad;
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    margin: 4px;
}
#cmr_rel_input_box {
    position:absolute;
    width: 300px;
    bottom: 0px;
    background-color: #fcf8e3;
    border: 1px solid #fbeed5;
    border-radius: 4px;
    padding: 5px 4px;
}
#cmr_rel_input_box textarea {
    width: 290px;
    height: 54px;
}
.cmr-search-add-box {
    position: relative;
}
.cmr-search-clear-btn {
    position: absolute;
    top: -15px;
    right: 84px;
}

.loading-box {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(102,102,102,0.5) url(/assets/img/ajax-loader.gif) no-repeat;
    background-position: 50%;
    z-index: 9999;
}

.table-page-count label {
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
}

.table-page-count select {
    display: inline-block;
}

.table-footer .pagination {
    margin: 0px;
}

#res_list_tb .filter-row input[type=checkbox] {
    margin-top: 0;
}

#resv_tb_body .resv-row {
    cursor: pointer;
}

.view-edit-box, .view-edit-group {
    margin-bottom: 5px;
}
.view-edit-box .view-edit-check {
    display: inline-block;
}
.tk-headleft-ra {
    text-align: right;
    padding-right: 14px;
}

.tk-payments input {
    display: inline-block;
    width: 100px;
}

.tk-send-msg-box {
    display: flex;
    flex-direction: row;
}
.tk-send-msg-text {
    padding: 0;
    width:550px;
    margin-right:20px;
    flex: 1 0 auto;
}
.tk-send-msg-buttons {
    padding-right: 0;
    flex: 0 1 auto;
}

table.gray-table tr td div.tk-cheat {
    padding: 0;
    vertical-align: middle;
    position: relative;
}
.tk-cheat {
    display: flex;
}
.tk-cheat .tk-cheat-list {
    flex: 1 1 auto;
    display: inline-block;
    font-size: 12px;
}
.tk-cheat .tk-cheat-list-btn {
    flex: 0 1 auto;
    display: inline-block;
}
table.gray-table tr td.tk-service-confirm {
    width: 122px;
    padding: 0;
}
table.gray-table tr td.tk-service-confirm select {
    width: 122px;
}

.file-link {
    float: left;
    width: 200px;
    padding: 0 3px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.inline-edit:disabled {
    cursor: default !important;
}

.gray-table, .gray-table select {
    background-color: #eee;
}

.resv-paid-all {
    font-weight: bold;
}
.resv-paid-none {
    color: #999;
}
.resv-paid-part {
    color: black;
}

#cheat_list_box {
    position: fixed;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 4px;
    padding: 4px;
    width: 250px;
    height: 200px;
    box-shadow: 5px 5px #999;
}
#cheat_list_box .cheat-head {
    display: flex;
    vertical-align: middle;
}
#cheat_list_box .cheat-head>div {
    flex: 0 1 auto;
    margin-bottom: 4px;
}
#cheat_list_box .cheat-head>div button {
    margin: 0 0 0 4px;
}
#cheat_list_box #cheat_list.table > tbody > tr > td {
    padding: 2px;
}
#cheat_list_box #cheat_list.table > tbody > tr > td:last-child {
    width: 22px;
}

.cust-resv {
    width: 100%;
    position: relative;
}
.cust-resv-adt {
    position: absolute;
    right: 0px;
    top: 0px;
    background-color: white;
}
.cust-rel-add-block > * {
    vertical-align: middle;
}
.cust-rel-add-block select {
    display: inline-block;
    width: 120px;
}

.resv-eml-message {
    border: 1px solid #999;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 1px;
}
.resv-eml-message:nth-child(odd) {
    background: #f9f9f9;
}
.resv-eml-message.bg-fade-out {
    background-color: #fcfcb8;
    animation: bgFadeOut 1s forwards;
}
@keyframes bgFadeOut {
    0% {
        background-color: #fcfcb8;
    }
    100% {
        background-color: #f9f9f9;
    }
}

.resv-eml-recipient {
    font-size: 10px;
    padding: 0 4px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.eml-received .resv-eml-recipient {
    color: #fff;
    background-color: #0060df;
}
.resv-eml-subject {
    font-size: 12px;
    padding: 0 8px;
}
.resv-eml-body {
    padding: 4px 16px 4px 4px;
    display: flex;
    flex-direction: row;
    gap: 2px;
}
.resv-eml-body .resv-eml-body-expand-btn {
    font-size: 9px;
    padding: 0 2px;
}
.resv-eml-body .resv-eml-body-expand-btn i {
    font-size: 12px;
}
.resv-eml-body-frame {
    flex: 1 1 auto;
    border: 1px solid #999;
    border-radius: 4px;
    padding: 2px;
    background-color: #fff;
    height: 42px;
    min-height: 42px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 12px;
}
/* .resv-eml-body-frame iframe {
    width: 100%;
    height: 40px;
    border: 0;
} */

#invoice_form, #invoice_payment_edit_form {
    z-index: 2010;
}
#invoice_form .sub-table td, #invoice_form .sub-table th {
    padding: 0px 3px;
}
.sub-table {
    margin: 0px;
}
#invoice_service_table .btn-box {
    position: relative;
}
#invoice_service_table .input-box input[type=text] {
    display: inline-block;
    width: 200px;
}
#invoice_service_table tbody td {
    font-size: 12px;
}
#invoice_service_table .add_val_text {
    padding: 0;
    font-size: 14px;
}

#sockPopup {
    z-index: 5000;
    overflow: hidden;
}
#sockPopup .pop-content {
    padding: 0 0 0 2px;
    background-color: #FEFED0;
    border: 1px solid #000;
    border-radius: 3px;
    overflow-x: hidden;
    overflow-y: auto;
}
#sockPopup .pop-content>div {
    float:left;
}
#sockPopup .pop-unsw {
    text-align: left;
}

#sockPopup.pop-top {
    position: absolute;
    top: 0;
    left: 170px;
    width: 300px;
}
#sockPopup.pop-top .pop-content {
    margin-right: 20px;
    height: 50px;
}
#sockPopup.pop-left .pop-content {
    height: 100%;
}
#sockPopup.pop-left {
    position: fixed;
}

#sockPopup .pop-semaphore {
    position: absolute;
    right: 21px;
    top: 1px;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(102,102,102,0.5);
    border-radius: 4px;
    background-color: #999;
}
#sockPopup .pop-pin-btn {
    position: absolute;
    right: 1px;
    top: 1px;
}
#sockPopup .pop-move-btn {
    position: absolute;
    right: 1px;
    top: 26px;
    width: 19px;
    height: 19px;
    padding: 4px;
    cursor: move;
}

#sockPopup .pop-intent {
    float: right;
    width: 20px;
    height: 42px;
}

#tk_send_msg_tpls .tpl-active {
    font-weight: bold;
    color: #428bca;
}
.tk-send-templates a {
    white-space: nowrap;
}

.pay-date-input {
    margin: 10px;
    vertical-align: middle;
}
.pay-date-input input {
    display: inline-block;
    width: 120px;
}
.pay-list-date {
    margin: 10px;
    font-style: italic;
}
.pay-list-row {
    margin: 10px;
}
.pay-list-title {
    font-weight: bold;
}
.pay-list-ic {
    display: inline-block;
    width: 90px;
}

.rct-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000;
}
.rct-modal-win {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.1);
}

.left-stats {
    margin: 20px 4px 4px;
    color: #959595;
}
.left-stats h5 {
    margin-bottom: 12px;
}
.stats-row {
    margin-bottom: 4px;
    font-size: 12px;
}
.stats-row i {
    margin: 0 1px;
}