.btn{font-size: 14px;}
.btn-white{color: #34495e;}
.btn-white:hover,
.btn-white.hover,
.btn-white:focus,
.btn-white:active,
.btn-white.active{
  color: #34495e;
  background-color: #f4f4f4;
}
.btn-flat.grey{color: #ccc;}
.btn-flat.grey:hover,
.btn-flat.grey.hover,
.btn-flat.grey:focus,
.btn-flat.grey:active,
.btn-flat.grey.active{
  color: #ccc;
}
.btn-file,
.btn-file:hover,
.btn-file.hover,
.btn-file:focus,
.btn-file:active,
.btn-file.active{
  margin-top: 5px;
  color: #fff;
  background-color: #3498db;
}
button{outline: none;}
.bg-grey{background-color: #F6F6F6;}
.bg-light-grey{
  background-color: #fafafa;
  -webkit-box-shadow: 0px 1px 3px 1px rgba(204,204,204,0.3);
  -moz-box-shadow: 0px 1px 3px 1px rgba(204,204,204,0.3);
  box-shadow: 0px 1px 3px 1px rgba(204,204,204,0.3);
}
.search-panel{
  padding: 5px;
  background-color: #F6F6F6;
}
.nowrap{white-space: nowrap;}
.tooltip.top .tooltip-arrow{top: auto !important; display: none;}
.form-control[disabled], .form-control[readonly]{
  color: #666;
}
.bg-light-pink{background-color: #fff7ff;}
.table-middle > tbody > tr > td,  .table-middle > thead > tr > th{vertical-align: middle;}
.bootstrap-tagsinput{margin-bottom: 0px; border-color: #bdc3c7;}
.select2-container.wide{width: 100%;}
.select2-choice{font-size: 14px;}
.select{min-width: inherit;}
.select2-container-multi.multiselect-primary{border-color: #bdc3c7;}
.select2-search-field:first-child input[type="text"]{color: #bdc3c7}
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child){
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
tr.report_apply{display: none;}
td.report_status{display: none;}
th.report_status{display: none;}
.message-tbody{height: calc(100vh - 400px);}
.scroll_div { overflow: auto; }
.checkbox-inline + .checkbox-inline {margin-left: 0px;margin-right: 10px;}
.checkbox-inline:first-child {margin-right: 10px;}
.stats-table > thead > tr > th, .stats-table > tbody > tr > td{padding: .45em;}
.stats-td{padding: 0px .45em !important; line-height: 2.5em;}
.stats-td-div{line-height: 2.5em;}
.text-white{color:#fff;}
.text-grey{color: #ccc;}
.text-left{text-align:left;}
.btn-report-action{width: 100%; min-height: 100px; display: table; line-height: 22px;}
.btn-max{width: 100%;}
.select-width-max{width: 100%;}
.select-width-inherit{width:  inherit;}
.middle.report{display: table-cell; vertical-align: middle; width: 150px;}
.col-sm-2.report{padding:7px;}
.form-control[readonly]{color:#34495e; border-color: #bdc3c7;}
.store_name, .store_name_new, .store_name_edit{cursor: pointer;}
#table-status > tbody > tr > td:hover{background-color: #d9edf7;}
#toast-container > .toast{
  font-size: 13px;
  background-image: none !important;
  padding: 15px;
  box-shadow: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  opacity: 0.95;
}
.toast-info{
  background-color: #3498db;
}
.toast-success{
  background-color: #2ecc71;
}
.toast-error{
  background-color: #e74c3c;
}
.tooltip-inner{max-width: 100%;}

.trash{color: #e74c3c;}
.saved{color: #F1C40F;}
.unsaved{color: #ccc;}
.save_area{cursor: pointer;}
.pointer{cursor: pointer;}
.bold{font-weight: bold;}

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

.rotate-45{
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  transition: .3s;
}

.rotate-0{
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  transition: .3s;
}

.image-remove-button {
  position: absolute;
  bottom: 15px;
  right: 0px;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  background-color: #f6f5f5;
  border-radius: 20px;
  cursor: pointer;
}

tr.bdtn > td{
  border-top: none !important;
}

tr.bdbn > td{
  border-bottom: none !important;
}

#crm-history-table td:nth-child(1){
  width: 15%;
}

#crm-history-table td:nth-child(2){
  width: 12%;
}

#crm-history-table td:nth-child(3){
  width: 15%;
}

#crm-history-table td:nth-child(5){
  width: 30px;
}

#crm-history-collapse-table td:nth-child(1) {
  width: 27%;
}

@media (max-width: 500px) {
  .table-responsive-block tr {
    position: relative;
    border-top: 1px solid #ddd !important;
    padding: 10px;
  }
  .table-responsive-block th, .table-responsive-block td{
      display: block;
      width: 100% !important;
      padding: 2px !important;
      border: none !important;
  }
  .table-responsive-block td:nth-child(4){
    padding-bottom: 5px !important;
  }
  .table-responsive-block td:nth-child(1){
    padding-top: 5px !important;
  }
  .table-responsive-block td.arrow{
    text-align: right;
    position: absolute;
    top: 3px;
  }
  #crm-history-collapse-table td:nth-child(1) {
    width: 0%;
    padding: 0;
  }
}

.label-secondary {
  background-color: #EC8826;
}

.badge{
  background-color: #E74C3C;
  margin-left: 3px;
  margin-top: -2px;
}

.badge-tag{
  padding-left: 2px;
  padding-right: 2px;
  margin-right: 3px;
  border-radius: 3px;
  font-weight: normal;
  font-size: 10px;
  display: inline-block;
  color: #fff;
  vertical-align: text-bottom;
}

.badge-primary{
  background-color: rgba(26, 188, 156, 0.1);
  color: rgba(26, 188, 156, 0.8);
  border: solid 1px rgba(26, 188, 156, 0.8);
}

.badge-success{
  background-color: rgba(46, 204, 113, 0.1);
  color: rgba(46, 204, 113, 0.8);
  border: solid 1px rgba(46, 204, 113, 0.8);
}

.badge-info{
  background-color: rgba(52, 152, 219, 0.1);
  color: rgba(52, 152, 219, 0.8);
  border: solid 1px rgba(52, 152, 219, 0.8);
}

.badge-warning{
  background-color: rgba(241, 196, 15, 0.1);
  color: rgba(241, 196, 15, 0.8);
  border: solid 1px rgba(241, 196, 15, 0.8);
}

.badge-danger{
  background-color: rgba(217, 83, 79, 0.1);
  color: rgba(217, 83, 79, 0.8);
  border: solid 1px rgba(217, 83, 79, 0.8);
}

.badge-default{
  background-color: rgba(189, 195, 199, 0.1);
  color: rgba(189, 195, 199, 0.8);
  border: solid 1px rgba(189, 195, 199, 0.8);
}

.btn-chat{
  position:fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius:50px;
  text-align: center;
  -webkit-box-shadow: 0px 1px 3px 1px rgba(204,204,204,1);
  -moz-box-shadow: 0px 1px 3px 1px rgba(204,204,204,1);
  box-shadow: 0px 1px 3px 1px rgba(204,204,204,1);
  background-color: #fff;
  z-index: 10000;
}

#facility .checkbox{
  margin-bottom: 7px;
  margin-top: 7px;
  padding-left: 28px;
}

.inline-radio ul{
  padding-left: 0px;
  margin-bottom: 0px;
}

.inline-radio ul li{
  display: inline-block;
}

.inline-radio input[type=radio]{
  display: none;
}

.inline-radio label {
  position: relative;
  padding: 10px;
  margin-right: 2.5px;
  transition: .3s;
  color: #bdc3c7;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #bdc3c7;
  display: inline-block;
  line-height: 1;
  cursor: pointer;
}

.checkedlabel{
  color: #fff !important;
  background-color: #2f4154 !important;
  border: 1px solid #2f4154 !important;
}

.checkedlabel.has-error{
  background-color: #F39C12 !important;
  border: 1px solid #F39C12 !important;
}

.has-error .form-control, .has-error .select2-search input[type="text"], .select2-search .has-error input[type="text"] {
    color: #F39C12;
    border-color: #F39C12;
    box-shadow: none;
}

.has-error .form-control:focus, .has-error .select2-search input[type="text"]:focus{
  border-color: #F39C12;
  box-shadow: none;
}

.has-error .form-control::placeholder {
  color: #F39C12;
}
.has-error .form-control:-ms-input-placeholder {
  color: #F39C12;
}
.has-error .form-control::-ms-input-placeholder {
  color: #F39C12;
}

.select-danger .select2-choice{
  background-color: #F39C12;
}

.text-error{
  color: #F39C12;
}

/* uploader */

#uploader, .uploader{
  border:2px dotted #3498db;
  width:100%;
  color:#92AAB0;
  text-align:center;vertical-align:middle;
  padding: 60px;
  margin-bottom:10px;
  margin-top: 30px;
  font-size:200%;
}

.uploader.dragover{
  border:2px solid #3498db;
}

.uploader p{
  margin-top: 5px;
  margin-bottom: 5px;
}

.drag-drop-buttons input{
    margin: auto;
}

.loader {
  display: none;
  margin: 30px auto;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#image-progress-bar-wrapper, #info-get-progress-bar-wrapper{
  display: none;
  position: fixed;
  top:0;
  left:0;
  width: 100%;
}

#image-progress-bar-wrapper .progress-bar, #info-get-progress-bar-wrapper .progress-bar{
  -webkit-transition: none !important;
  transition: none !important;
}

/* fileinput */
.kv-file-content{
  width: inherit;
}
.file-preview-frame{
  box-shadow: 0px 1px 4px 0 #ddd !important;
}

.file-preview-frame:hover{
  box-shadow: 0px 1px 10px 0 #ddd !important;
}

.file-drop-zone-title{
  padding: 12px !important;
}

/* bootstrap */
.checkbox, .radio{
  cursor: pointer;
}

/* flat-ui */
.plxl{
 padding-left: 25px;
}
.prxl{
 padding-right: 25px;
}
.ptxl{
 padding-top: 25px;
}
.pbxl{
 padding-bottom: 25px;
}
.mlxl{
 margin-left: 25px;
}
.mrxl{
 margin-right: 25px;
}
.mtxl{
 margin-top: 25px;
}
.mbxl{
 margin-bottom: 25px;
}
.mbxs{
  margin-bottom: 3px;
}
.mlxs{
  margin-left: 3px;
}
.mrxs{
  margin-right: 3px;
}

/* pickadate */
.picker--opened .picker__holder{outline: none;}

/* Responsive */
@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
  .kill-container{
    width: 100%;
    margin-left: 0;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
  .kill-container{
    width: 106%;
    margin-left: -3%;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1050px;
  }
  .kill-container{
    width: 110%;
    margin-left: -5%;
  }
}

/* material icons */
.material-icons{
  line-height: inherit;
}

/* bootstrap-material-datetimepicker */
.dtp-actual-num{
  padding-top: 5px !important;
}
.dtp-btn-cancel, .dtp-btn-ok{
  display:none;
}

.dtp > .dtp-content{
  max-height: inherit !important;
}

/* five columns */

.col-xs-1-5, .col-sm-1-5, .col-md-1-5, .col-lg-1-5,
.col-xs-2-5, .col-sm-2-5, .col-md-2-5, .col-lg-2-5,
.col-xs-3-5, .col-sm-3-5, .col-md-3-5, .col-lg-3-5,
.col-xs-4-5, .col-sm-4-5, .col-md-4-5, .col-lg-4-5 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
.col-sm-1-7 {
  position: relative;
  min-height: 1px;
  padding-right: 10px;
  padding-left: 10px;
}
.col-xs-1-5 {
    width: 20%;
    float: left;
}
.col-xs-2-5 {
    width: 40%;
    float: left;
}
.col-xs-3-5 {
    width: 60%;
    float: left;
}
.col-xs-4-5 {
    width: 80%;
    float: left;
}

@media (min-width: 768px) {
  .col-sm-1-5 {
      width: 20%;
      float: left;
  }
  .col-sm-2-5 {
      width: 40%;
      float: left;
  }
  .col-sm-3-5 {
      width: 60%;
      float: left;
  }
  .col-sm-4-5 {
      width: 80%;
      float: left;
  }
  .col-sm-1-7{
    width: 14.28%;
    float: left;
  }
}
@media (min-width: 992px) {
  .col-md-1-5 {
      width: 20%;
  }
}

/* HTML tags */
html {
  height: 100%;
}
body {
  height: 100%;
  font-size: 14px;
}
main {
  min-height: calc(100% - 80px);
  padding-top: 44px;
}
footer {
  margin-top: 50px;
  padding-bottom: 30px;
}

.navbar {
  min-height: 44px !important;
  height: 44px !important;
}

.navbar-brand {
  height: 44px;
  padding: 10px 15px;
}

.navbar-nav > li > a {
  padding-top: 11px !important;
  padding-bottom: 10px !important;
}

.navbar-collapse, .navbar-fixed-top .navbar-collapse{
  box-shadow: none;
  padding-right: 21px;
  padding-left: 21px;
}

/* Shadow */
.shadow{
 box-shadow: 0 .4rem .7rem rgba(0,0,0,.1)!important;
}

/* Sub Header */
.subheader {
  background-color: #f9f9f9;
  padding-top: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}
.subheader .nav-tabs {
  margin-bottom: -1px;
}

/* Container */
.container {
  padding: 0 20px;
  margin: auto;
  max-width: 980px;
}
.container .page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}
.container.large{
  padding: 0 20px;
  margin: auto;
  max-width: none;
}
/* Forms */
.form-group .help {
  font-size: 15px;
  margin: 10px 0 0;
}
.form .help ul {
  margin-bottom: 0px;
}

/* Tables */
.table-borderless td,
.table-borderless th {
  border: none !important;
}
.table-hstriped tr > *:nth-child(odd) {
  background-color: #ecf0f1;
}

.table-sm > thead > tr > th, .table-sm > tbody > tr > th, .table-sm > tfoot > tr > th, .table-sm > thead > tr > td, .table-sm > tbody > tr > td, .table-sm > tfoot > tr > td{
  padding: .5em;
}

.table-no-wrap > thead > tr > th, .table-no-wrap  > tbody > tr > th, .table-no-wrap  > tfoot > tr > th, .table-no-wrap  > thead > tr > td, .table-no-wrap  > tbody > tr > td, .table-no-wrap  > tfoot > tr > td{
  white-space: nowrap;
}

/* Borders */
.border-left {
  border-left: 1px solid #ddd;
}
.border-bottom {
  border-bottom: 1px solid #ddd;
}
.border-top {
    border-top: 1px solid #ddd;
}
.border-rbl {
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-left: 1px solid #ddd;
}

/* Buttons */
.btn-submit {
  width: 200px;
}

/* Require homes and suumo */
.req-homes::before{
  content: 'H';
  color: #fff;
  border-radius: 10px;
  background-color: #ed6103;
  position: absolute;
  line-height: 21px;
  width: 21px;
  margin-top: 6px;
  top: 0px;
  right: 15px;
  text-align: center;
}

.req-suumo::after{
  content: 'S';
  color: #fff;
  border-radius: 10px;
  background-color: #6FBA2C;
  position: absolute;
  line-height: 21px;
  width: 21px;
  margin-top: 6px;
  top: 0px;
  right: 40px;
  text-align: center;
}

/* SUUMO Facility Not Important */
.suumo{
  color: #7F8C8D;
  font-weight: normal;
}

.fade-animate{
  animation: fadein 1s;
  -moz-animation: fadein 1s; /* Firefox */
  -webkit-animation: fadein 1s; /* Safari and Chrome */
  -o-animation: fadein 1s; 
}

.arrow-steps-wrapper {
  display: table-cell;
  height: 80px;
  vertical-align: middle;
}

.arrow-steps .step {
  font-size: 14px;
  text-align: center;
  color: #666;
  cursor: default;
  margin: 0 3px;
  padding: 6px 10px 6px 30px;
  /* min-width: 180px; */
  float: left;
  position: relative;
  background-color: #ECF0F1;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: background-color 0.2s ease;
}

.arrow-steps .step:after,
.arrow-steps .step:before {
  content: " ";
  position: absolute;
  top: 0;
  right: -17px;
  width: 0;
  height: 0;
  border-top: 19px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 17px solid #ECF0F1;
  z-index: 2;
  transition: border-color 0.2s ease;
}

.arrow-steps .step:before {
  right: auto;
  left: 0;
  border-left: 17px solid #fff;
  z-index: 0;
}

.arrow-steps .step:first-child:before {
  border: none;
}

.arrow-steps .step:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  padding-left: 20px;
}

.arrow-steps .step span {
  position: relative;
}

.arrow-steps .step.current {
  color: #fff;
  background-color: #1ABC9C;
}

.arrow-steps .step.current:after {
  border-left: 17px solid #1ABC9C;
}

.arrow-steps .step.done {
  color: #fff;
  background-color: #16A085;
}

.arrow-steps .step.done:after {
  border-left: 17px solid #16A085;
}

/* for scan */

.img-magnifier {
  position: relative;
  width: 100%;
}

.img-magnifier img {
  width: 100%;
}

#lens {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: none;
  display: none;

  background-repeat: no-repeat;
  pointer-events: none;
}

#imageZoomModal .modal-dialog {
  width: 90%;
  max-width: 1200px;
}

#imageZoomModal img {
  max-height: 80vh;
}

.js-zoom-img:hover {
  cursor: zoom-in;
}

#bottomDrawer {
  position: fixed;
  left: 0;
  width: 100%;
  height: 80vh; /* 最大高さ */
  top: 100%; /* 画面の最下部に配置 */
  margin-top: -300px; /* 200px分だけ上に持ち上げて見せる */
  background: #fff;
  z-index: 1050;
  transition: transform .25s ease;
  box-shadow: 0 -4px 12px rgba(0,0,0,.12);
  /* 下端に固定するために、初期位置を画面下部に飛ばす */
  will-change: transform;
}

#bottomDrawer.dragging {
  transition: none;
}

.drawer-handle {
  height: 30px; /* 少し広めの方が掴みやすい */
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none; /* スマホでのスクロール干渉防止 */
}

.drawer-handle::before {
  content: "";
  width: 40px;
  height: 5px;
  background: #ccc;
  border-radius: 3px;
}
.drawer-content {
  height: calc(300px - 24px); 
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box; /* パディングで高さがズレないように */
}

/* 解析中（スケルトン）のオーバーレイ */
.scanning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(229, 231, 235, 0.9); /* 薄いグレー */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 5px;
}

/* じわじわ光るアニメーション */
.skeleton-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* スケルトン内のダミーテキスト棒 */
.skeleton-bar {
  background: #d1d5db;
  height: 12px;
  width: 70%;
  margin: 4px 0;
  border-radius: 4px;
}

@keyframes fadein {
  from {
      opacity:0.1;
  }
  to {
      opacity:1;
  }
}
@-moz-keyframes fadein { /* Firefox */
  from {
      opacity:0.1;
  }
  to {
      opacity:1;
  }
}
@-webkit-keyframes fadein { /* Safari and Chrome */
  from {
      opacity:0.1;
  }
  to {
      opacity:1;
  }
}
@-o-keyframes fadein { /* Opera */
  from {
      opacity:0.1;
  }
  to {
      opacity: 1;
  }
}