/* 辅助类 */
.flex-row {
  display: flex;
}
.hidden {
  visibility: hidden;
}
.border {
  border: 1px solid #e3e7e8;
}
/* config 页面 */
#app {
  width: 60vw;
  min-width: 1030px;
}

/* 最上面的说明 */
.settings-heading {
  padding: 1em 0;
}

/* label 样式 */
.kintoneplugin-label {
  padding-left: 20px;
  line-height: 40px;
}
/* laebl input 单行的情况 */
.flex-row .kintoneplugin-label {
  margin: 0;
  width: 8.5em;
}

/* 遮罩 */
#main-area {
  position: relative;
}
#main-area .kuc-spinner-1-18-0__mask {
  position: absolute;
  background-color: white;
}
#main-area .kuc-spinner-1-18-0__spinner {
  position: absolute;
}
#main-area .kuc-spinner-1-18-0__spinner__loader {
  fill: #3498db;
}

/* 表格内容垂直居中 */
.table-area {
  margin: 0;
  align-items: center;
}

/* 整体边框相关样式 */
.header-row {
  padding: 24px 0;
  margin: 0;
  border-bottom: none;
}
.table-main-area {
  flex: 1;
  border-right: 1px solid #e3e7e8;
  padding-top: 24px;
}
.table-area {
  border-bottom: none;
}
.footer-row {
  padding: 24px 0;
  margin-bottom: 32px;
  text-align: right;
  /* border-top: none; */
}

/* 底部按钮空间 */
.save-btn {
  margin-left: 16px;
  margin-right: 24px;
}

/* 输入框宽度 */
.kuc-text-input {
  --kuc-text-input-width: max(16vw, 200px);
  --kuc-dropdown-toggle-width: max(16vw, 200px);
  --kuc-combobox-toggle-width: max(16vw, 200px);
}

.plugin-kuc-table .kuc-text-input {
  --kuc-text-input-width: max(15vw, 200px);
  --kuc-dropdown-toggle-width: max(15vw, 200px);
  --kuc-combobox-toggle-width: max(15vw, 200px);
}

@media screen and (max-width: 1840px) {
  .plugin-kuc-table .kuc-text-input {
    --kuc-text-input-width: max(13vw, 200px);
    --kuc-dropdown-toggle-width: max(13vw, 200px);
    --kuc-combobox-toggle-width: max(13vw, 200px);
  }
}

@media screen and (max-width: 1760px) {
  .plugin-kuc-table .kuc-text-input {
    --kuc-text-input-width: max(12vw, 200px);
    --kuc-dropdown-toggle-width: max(12vw, 200px);
    --kuc-combobox-toggle-width: max(12vw, 200px);
  }
}

/* 统一 kintone +/- 按钮样式 */
.kuc-action-button {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid transparent;
  padding: 2px;
  cursor: pointer;
  margin: 0 4px;
}
.kuc-action-button.remove {
  margin-right: 8px;
}
.kuc-action-button.add {
  margin-left: 8px;
}
.kuc-action-button:focus {
  border: 1px solid #3498db;
  outline: none;
}
.kuc-action-button.remove:hover path {
  fill: #e74c3c;
}

/* 覆盖表格样式 */
.plugin-kuc-table > table > tbody > tr > td {
  border-left-color: rgba(0, 0, 0, 0);
  border-right-color: rgba(0, 0, 0, 0);
  vertical-align: middle;
}

.plugin-kuc-table > table > tbody > tr > td:nth-last-child(2) {
  border-right-color: #e3e7e8;
}
.plugin-kuc-table > table > tbody > tr > td:first-child {
  border-left-color: #e3e7e8;
}
.plugin-kuc-table > table > tbody > tr > td[class$="table__body__row__action"] {
  height: 55px;
  align-items: center;
}
.table-option > table > tbody > tr > td[class$="table__body__row__action"] {
  height: 40px;
  align-items: center;
}
.plugin-kuc-table:not(.condition-table) > table > tbody > tr > td:nth-child(2) {
  --kuc-table-header-1-width: 30px;
  text-align: center;
}

.condition-table > table > tbody > tr > td[style]:not(:first-child),
.condition-table > table > thead > tr > th[style]:not(:first-child) {
  padding-left: 0;
}

/* 絞り込み条件选择相关样式 */
.row-connector-area {
  margin: 0 1em;
}

.condition-combobox-short {
  --kuc-combobox-toggle-width: 168px;
}
/* .condition-combobox-short {
  --kuc-combobox-toggle-width: 140px
}
.condition-combobox-short[data-val='!='] {
  --kuc-combobox-toggle-width: 168px
}
.condition-combobox-short[data-val='like']  {
  --kuc-combobox-toggle-width: 200px
}
.condition-combobox-short[data-val='in'] {
  --kuc-combobox-toggle-width: 185px
}
.condition-combobox-short[data-val='not like'] {
  --kuc-combobox-toggle-width: 225px
}
.condition-combobox-short[data-val='not in'] {
  --kuc-combobox-toggle-width: 200px
} */

.kuc-text-input-placeholder-width {
  --kuc-text-input-width: 258px;
}

.datetime-condition-combobox {
  --kuc-combobox-toggle-width: 130px;
}
.datetime-condition-combobox.mid {
  --kuc-combobox-toggle-width: 112px;
}
.datetime-condition-combobox.short {
  --kuc-combobox-toggle-width: 92px;
}
.datetime-condition-combobox + * {
  margin-left: 8px;
}

.datetime-condition-combobox li[value^='\-'] {
  user-select: none;
  margin: 8px 0;
  cursor: default;
  padding: 0;
  height: 1px;
  background-color: #eee;
  list-style: none;
  pointer-events: none;
}

.week-all-combobox {
  --kuc-combobox-toggle-width: 140px;
}
.week-combobox {
  --kuc-combobox-toggle-width: 72px;
}
.month-all-combobox {
  --kuc-combobox-toggle-width: 100px;
}
.month-combobox {
  --kuc-combobox-toggle-width: 86px;
}
.from-today-input {
  --kuc-text-input-width: 75px;
  --kuc-combobox-toggle-width: 75px;
}
.from-today-input.input {
  --kuc-text-input-width: 50px;
  --kuc-combobox-toggle-width: 50px;
}

/* .from-today-input error */
.condition-table.plugin-kuc-table > table > tbody > tr > td {
  vertical-align: top;
}
.from-today-input.input div[class^="kuc-base-error"] {
  position: absolute;
  left: 0;
  right: 0;
}
.from-today-input.input.error {
  margin-bottom: 20px;
}
.table-option td {
  padding: 1px;
  margin: 0;
  border: none;
}
.dialog-action-bar{
  text-align: right;
}