* {
  box-sizing: border-box;
}
html {
  overflow: hidden;
}
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  color: #333;
  background-color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}
div:focus {
  outline: none;
}
input {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  border: 2px solid white;
  border-radius: 8px;
}
input:not([type=button]) {
  padding: 1px 2px;
  background-color: white;
  padding: 4px 4px;
}
input:not([type=button]):focus {
  outline: 0;
  border-color: transparent;
  border-bottom-color: #00a8;
}
input:not([type=button]):disabled {
  border-color: white;
  color: #333;
  background-color: transparent;
}
input[type=checkbox] {
  padding: 0;
  margin-left: 0;
}
input[type=button] {
  cursor: pointer;
  background-color: #f0f0f0;
  border-color: white;
  outline: 0;
}
input[type=button]:hover {
  border-bottom-color: #00a8;
}
input[type=button]:focus {
  outline: 0;
  border-color: transparent;
  border-bottom-color: #00a8;
}
input[type=button]:disabled {
  color: #bbb;
  cursor: default;
}
input[type=date] {
  width: 135px;
}
input[type=time] {
  width: 80px;
}
textarea {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  border: 2px solid white;
  border-radius: 8px;
  min-height: 50px;
}
textarea:hover {
  border-bottom-color: #00a8;
}
textarea:focus {
  outline: 0;
  border-color: transparent;
  border-bottom-color: #00a8;
}
textarea:disabled {
  border-color: white;
  color: #333;
  background-color: transparent;
}
select {
  padding: 1px 2px;
}
select:disabled {
  background-color: transparent;
  border-color: white;
  color: #333;
  border-color: #eee;
  -moz-appearance: none;
  -webkit-appearance: none;
}
/* --- Body (bb) -------------------- */
#bbBody {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
/* --- DataGrid -------------------- */
.bbDataGrid {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  /* card mode */
}
.bbDataGrid_Header {
  position: absolute;
  left: 0;
  top: 0;
  height: 30px;
  line-height: 30px;
  width: 100%;
  white-space: pre;
  border-top: 1px solid lightgray;
  border-bottom: 1px solid lightgray;
}
.bbDataGrid_HeaderCell {
  position: absolute;
  top: 0;
  height: 100%;
  padding: 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bbDataGrid_Rows {
  position: absolute;
  left: 0;
  width: 100%;
  top: 30px;
  bottom: 0;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre;
}
.bbDataGrid_Row {
  position: relative;
  width: auto;
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.07);
}
.bbDataGrid_Row:hover {
  background-color: hsla(0, 0%, 0%, 0.05);
}
.bbDataGrid_Cell {
  position: absolute;
  top: 0;
  height: 100%;
  min-width: 20px;
  padding: 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bbDataGrid_HeaderCard {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  border-bottom: 1px solid lightgray;
}
.bbDataGrid_RowsCard {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre;
}
.bbDataGrid_RowCard {
  position: relative;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-row-gap: 2px;
  line-height: 1.3em;
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.07);
}
.bbDataGrid_LabelCard {
  position: relative;
  color: #888;
  max-width: 100px;
  padding-right: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bbDataGrid_CellCard {
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* --- Dialog -------------------- */
.bbDialog {
  position: absolute;
  width: 600px;
  min-width: 200px;
  height: 400px;
  min-height: 150px;
  background-color: white;
  border: 1px solid lightgray;
  border-radius: 16px;
  box-shadow: #0008 0px 0px 8px;
}
.bbDialog-position {
  box-shadow: #000a 0px 0px 16px;
  opacity: 0.85;
}
.bbDialog_Head {
  position: absolute;
  left: 0px;
  top: 0;
  right: 0px;
  height: 35px;
  padding: 10px 20px 0 20px;
  font-size: 1.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre;
}
.bbDialog_Body {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 35px;
  bottom: 50px;
  padding: 20px 15px 15px 15px;
  background-color: #f4f4f4;
  border-radius: 8px;
  overflow-x: hidden;
  overflow-y: auto;
}
.bbDialog_Buttons {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  bottom: 0;
  padding: 0 5px;
  overflow: hidden;
}
.bbDialog_Buttons_Left {
  position: absolute;
  left: 15px;
  top: 0;
  height: 100%;
  display: flex;
  gap: 10px;
}
.bbDialog_Buttons_Right {
  position: absolute;
  right: 15px;
  top: 0;
  height: 100%;
  display: flex;
  gap: 10px;
}
.bbDialog_Buttons_Button {
  position: relative;
  width: auto;
  min-width: 100px;
  height: 32px;
}
/* --- Dim -------------------- */
.bbDim {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  background-color: transparent;
  backdrop-filter: blur(2px);
}
/* --- Input -------------------- */
.bbInput-invalid {
  border-bottom-color: #8004;
}
/* --- Image -------------------- */
.bbImage {
  position: relative;
  width: 637px;
  height: 402px;
}
.bbImage_Image {
  position: absolute;
}
.bbImage_Image-noimage {
  border: 1px solid lightgray;
}
.bbImage_Buttons {
  position: absolute;
  display: flex;
  gap: 10px;
}
.bbImage_Button {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid lightgray;
  border-radius: 8px;
  cursor: pointer;
}
.bbImage_Button:hover {
  background-color: #0003;
}
.bbImage_Button_Svg {
  position: absolute;
  left: 4px;
  top: 5px;
  width: 16px;
  height: 16px;
  fill: #333;
  pointer-events: none;
}
.bbImage_Button-selected {
  background-color: #0008;
}
.bbImage_Button-selected .bbImage_Button_Svg {
  fill: white;
}
.bbImage_Button-disabled {
  opacity: 0.3;
  cursor: default;
}
.bbImage_Button-disabled:hover {
  background-color: inherit;
}
.bbImage_CropDots {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid white;
  background-color: gray;
  border-radius: 50%;
}
/* --- Input -------------------- */
.bbRow {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 5px;
  width: auto;
  height: auto;
  min-height: 24px;
  margin-bottom: 10px;
}
.bbRow_Label {
  position: relative;
  width: 150px;
  height: 24px;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre;
}
.bbRow_Div {
  position: relative;
  width: auto;
  height: auto;
  line-height: 24px;
}
.bbRow_Input {
  position: relative;
  flex: 1;
}
.bbRow_Select {
  position: relative;
  width: auto;
}
.bbRow_TextArea {
  position: relative;
  flex: 1;
  resize: vertical;
  min-height: 40px;
}
.bbRow_Img {
  position: relative;
  width: 100%;
}
/* --- CheckboxLabel -------------------- */
.bbCheckboxLabel {
  display: flex;
}
.bbCheckboxLabel_Checkbox {
  position: relative;
  cursor: pointer;
}
.bbCheckboxLabel_Checkbox_Disabled {
  cursor: default;
}
.bbCheckboxLabel_Label {
  position: relative;
  cursor: pointer;
  padding-top: 2px;
}
.bbCheckboxLabel_Label_Disabled {
  opacity: 0.5;
  cursor: default;
}
