html {
  color: #333;
  background: #fff;
}

blockquote,
body,
code,
dd,
div,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
input,
legend,
li,
ol,
p,
pre,
td,
textarea,
th,
ul,
xmp {
  margin: 0;
  padding: 0;
}

fieldset,
img {
  border: 0;
}

ol,
ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: 400;
}

*,
:after,
:before {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  outline: none;
}

body {
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

body {
  color: #333;
  font-family:
    Helvetica Neue,
    Arial,
    Hiragino Kaku Gothic ProN,
    Hiragino Sans,
    Meiryo,
    sans-serif;
}

a {
  color: #337ab7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus {
  outline: 1px solid #337ab7;
}

button {
  cursor: pointer;
}

#head {
  height: 50px;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d8d8d8;
}

#foot {
  height: 50px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #d8d8d8;
}

#ft-note {
  display: flex;
  align-items: center;
  padding-right: 8px;
}

#ft-note,
#ft-note span {
  padding-top: 0;
  padding-left: 0;
  padding-bottom: 0;
}

#ft-note span {
  padding-right: 0;
}

#cat,
#info {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  padding: 0;
  margin-left: 1px;
  margin-right: 1px;
  background-color: transparent;
}

#cat span:focus,
#info span:focus {
  outline: none;
}

#cat {
  visibility: hidden;
}

#operation_buttons {
  display: flex;
  justify-content: flex-end;
  height: 100%;
  padding-top: 0;
  padding-left: 0;
  padding-right: 8px;
  padding-bottom: 0;
}

#operation_buttons button {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  padding: 0;
  margin-left: 1px;
  margin-right: 1px;
  background-color: transparent;
}

#cat_panel {
  z-index: 405000;
  background: #eee;
  top: 50px;
}

#cat_panel #cat_panel_body a {
  color: #1e87f0;
  text-decoration: none;
}

#cat_panel #cat_panel_body a:hover {
  color: #0a6ebd;
  text-decoration: underline;
}

#cat_panel #cat_panel_body table tr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#cat_panel #cat_panel_body span,
#cat_panel #cat_panel_body td,
#cat_panel #cat_panel_body th {
  color: #333 !important;
}

#cat_panel #cat_panel_body th {
  padding-bottom: 0 !important;
}

#cat_panel #cat_panel_body td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  white-space: normal !important;
}

#cat_panel #cat_panel_body td,
#cat_panel #cat_panel_body td span {
  word-break: break-all !important;
  overflow-wrap: break-word !important;
}

#cat_panel #cat_panel_body .dis_none {
  display: none !important;
}

#cat_panel-footer {
  position: sticky;
  bottom: 0;
  padding-top: 10px;
  padding-right: 10px;
  padding-bottom: 0;
  padding-left: 10px;
  height: 40px;
  text-align: center;
  font-size: small;
  border-top: 1px solid #d8d8d8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#cat_panel-footer a {
  color: #1e87f0;
  text-decoration: none;
}

#offcanvas_bar_panel_cat {
  overflow: hidden;
}

#wrap-cat-elements {
  overflow-y: auto;
}

.uk-modal-close-default {
  top: 16px;
  right: 24px;
  color: #333;
  background-color: #fff;
}

#modal_info_panel {
  z-index: 605000;
}

#modal_info_panel p {
  padding-top: 10px;
}

#title_area {
  flex: 1 1 auto;
  min-width: 0;   /* ← これが超重要 */
}

#title {
  display: block;
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uk-tooltip {
  z-index: 800000;
}

:focus {
  outline: none;
}

#modal_info_panel .uk-list li {
  display: flex;
  align-items: center;
}

#modal_info_panel .uk-list li span[uk-icon] {
  display: inline-flex;
  align-items: center;
}

#modal_info_panel span[uk-icon] svg {
  transform: translateY(-1px);
}