* {
  font-family: 'Noto Sans JP', sans-serif;
}

.element-monitor {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(0, 68, 136, 1) 0%,
    rgba(0, 17, 34, 1) 100%
  );
}

.element-monitor .glass-bg {
  position: absolute;
  top: 98px;
  left: 80px;
  width: calc(100% - 160px);
  height: 86vh;
  overflow: hidden;
}

.element-monitor .glass-bg-radial {
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  position: absolute;
  top: -2px;
  left: -2px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border-top-width: 1.5px;
  border-top-style: solid;
  border-left-width: 1px;
  border-left-style: solid;
  border-color: #ffffff85;
  box-shadow: 4px 8px 13.1px #2b2b2b40, inset 4px 4px 20px #e5e7eb, inset -8px
    -8px 15.6px #e5e7eb;
  background-blend-mode: luminosity;
}

.element-monitor .div {
  background: linear-gradient(
    123deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  position: absolute;
  top: -2px;
  left: -2px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border-top-width: 1.5px;
  border-top-style: solid;
  border-left-width: 1px;
  border-left-style: solid;
  border-color: #ffffff85;
  box-shadow: 4px 8px 13.1px #2b2b2b40, inset 4px 4px 20px #e5e7eb, inset -8px
    -8px 15.6px #e5e7eb;
  background-blend-mode: luminosity;
  /* padding-bottom: 44px; */
  /* overflow: hidden; */
}

.element-monitor .cards {
  display: flex;
  flex-direction: column;
  width: calc(100% - 80px);
  /* height: calc(100vw - 350px); */
  align-items: flex-start;
  justify-content: space-between;
  position: absolute;
  top: 175px;
  left: 40px;
  /* z-index: -100; */
}

.element-monitor .frame {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 45px;
  position: relative;
  height: auto;
  flex-wrap: wrap;
  overflow: scroll;
  border-radius: 5px;
  scrollbar-width: none;
}

.element-monitor .div-2 {
  display: flex;
  flex-direction: column;
  width: 189px;
  align-items: flex-start;
  position: relative;
  box-shadow:
    0px 4px 6px #0000000d, 0px 10px 15px -3px #0000001a, inset 2px 2px 4px #00000040, inset -2px -2px 4px #00000040;
  border-radius: 4px;
}

.element-monitor .frame-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 4px 4px 0px 0px;
  height: 56px;
  overflow: hidden;
}

.ERRSTOP {
  background: linear-gradient(
    180deg,
    rgba(217, 94, 94, 1) 31%,
    rgba(207, 48, 48, 1) 100%
  );
}
.ERRSTOP .plus-btn {
  display: inline-flex !important;
}

.OK {
  background: linear-gradient(
    180deg,
    rgba(87, 188, 135, 1) 34%,
    rgba(56, 148, 100, 1) 100%
  );
}

.PLANSTOP {
  background: linear-gradient(
    180deg,
    rgba(107, 114, 128, 1) 34%,
    rgba(64, 76, 94, 1) 100%
  );
}

.CONFOK {
  background: linear-gradient(180deg, #E8D631 15.87%, #F4BE43 100%);
}

.element-monitor .frame-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  height: 100%;
}

.element-monitor .text-wrapper {
  position: relative;
  width: fit-content;
  font-family: var(--noto-sans-med-24-font-family);
  font-weight: var(--noto-sans-med-24-font-weight);
  color: var(--variable-collection-neutral-white);
  font-size: var(--noto-sans-med-24-font-size);
  letter-spacing: var(--noto-sans-med-24-letter-spacing);
  line-height: var(--noto-sans-med-24-line-height);
  font-style: var(--noto-sans-med-24-font-style);
}

.element-monitor .plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  position: relative;
  flex: 0 0 auto;
  background-color: var(--variable-collection-neutral-white-duplicate);
  border-radius: 100px;
  box-shadow: 0px 4px 4px #00000040;
  display: none;
  cursor: pointer;
}

.element-monitor .plus {
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(/img/plus-01-5.svg);
  background-size: 100% 100%;
}

.element-monitor .frame-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: var(--variable-collection-neutral-white);
  border-radius: 0px 0px 2px 2px;
}

.element-monitor .item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

.element-monitor .text-wrapper-2 {
  position: relative;
  width: fit-content;
  margin-top: -1.00px;
  font-family: "Noto Sans JP-Bold", Helvetica;
  font-weight: 700;
  color: var(--variable-collection-gray2);
  font-size: 16px;
  letter-spacing: -0.48px;
  line-height: normal;
  text-decoration: underline;
}

.element-monitor .frame-4 {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

.element-monitor .frame-5 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

.element-monitor .text-wrapper-3 {
  align-self: stretch;
  margin-top: -1.00px;
  font-family: var(--reg-16-font-family);
  font-weight: var(--reg-16-font-weight);
  color: var(--variable-collection-gray3);
  font-size: var(--reg-16-font-size);
  letter-spacing: var(--reg-16-letter-spacing);
  position: relative;
  line-height: var(--reg-16-line-height);
  font-style: var(--reg-16-font-style);
}

.element-monitor .text-wrapper-4 {
  align-self: stretch;
  font-family: var(--reg-16-font-family);
  font-weight: var(--reg-16-font-weight);
  color: var(--variable-collection-gray3);
  font-size: var(--reg-16-font-size);
  letter-spacing: var(--reg-16-letter-spacing);
  position: relative;
  line-height: var(--reg-16-line-height);
  font-style: var(--reg-16-font-style);
}

.element-monitor .frame-6 {
  display: flex;
  flex-direction: column;
  width: 53px;
  align-items: flex-end;
  gap: 8px;
  position: relative;
}

.element-monitor .text-wrapper-5 {
  align-self: stretch;
  margin-top: -1.00px;
  font-family: var(--bold-16-font-family);
  font-weight: var(--bold-16-font-weight);
  color: var(--variable-collection-gray1);
  font-size: var(--bold-16-font-size);
  text-align: right;
  letter-spacing: var(--bold-16-letter-spacing);
  position: relative;
  line-height: var(--bold-16-line-height);
  font-style: var(--bold-16-font-style);
  line-height: 39px;
}

.element-monitor .text-wrapper-6 {
  align-self: stretch;
  font-family: var(--bold-16-font-family);
  font-weight: var(--bold-16-font-weight);
  color: var(--variable-collection-gray1);
  font-size: var(--bold-16-font-size);
  text-align: right;
  letter-spacing: var(--bold-16-letter-spacing);
  position: relative;
  line-height: var(--bold-16-line-height);
  font-style: var(--bold-16-font-style);
  line-height: 24px;
}

.element-monitor .div-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 2px 2px 0px 0px;
  height: 56px;
}

.element-monitor .plus-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  position: relative;
  flex: 0 0 auto;
  background-color: var(--variable-collection-neutral-white-duplicate);
  border-radius: 100px;
  box-shadow: 0px 4px 4px #00000040;
  opacity: 0;
}

.element-monitor .plus-2 {
  margin-top: -204.00px;
  margin-left: -457.25px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-13.png);
  background-size: 100% 100%;
}

.element-monitor .frame-7 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 2px 2px 0px 0px;
  height: 56px;
}

.element-monitor .plus-3 {
  margin-top: -206.00px;
  margin-left: -709.50px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-20.png);
  background-size: 100% 100%;
}

.element-monitor .DJT {
  position: relative;
  width: fit-content;
  margin-top: -1.00px;
  font-family: "Noto Sans JP-Bold", Helvetica;
  font-weight: 700;
  color: var(--variable-collection-gray2);
  font-size: 16px;
  letter-spacing: -0.48px;
  line-height: normal;
  text-decoration: underline;
  white-space: nowrap;
}

.element-monitor .plus-4 {
  margin-top: -204.00px;
  margin-left: -961.75px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-12.png);
  background-size: 100% 100%;
}

.element-monitor .plus-5 {
  margin-top: -204.00px;
  margin-left: -1214.00px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-11.png);
  background-size: 100% 100%;
}

.element-monitor .frame-8 {
  display: flex;
  align-items: center;
  gap: 63.25px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.element-monitor .plus-6 {
  margin-top: -459.00px;
  margin-left: -205.00px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-10.png);
  background-size: 100% 100%;
}

.element-monitor .frame-9 {
  background: linear-gradient(
    180deg,
    rgba(232, 214, 49, 1) 16%,
    rgba(244, 190, 67, 1) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 2px 2px 0px 0px;
}

.element-monitor .plus-7 {
  margin-top: -461.00px;
  margin-left: -457.25px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-4.png);
  background-size: 100% 100%;
}

.element-monitor .plus-8 {
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-2.svg);
  background-size: 100% 100%;
}

.element-monitor .plus-9 {
  margin-top: -459.00px;
  margin-left: -961.75px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-21.png);
  background-size: 100% 100%;
}

.element-monitor .plus-10 {
  margin-top: -461.00px;
  margin-left: -1214.00px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-14.png);
  background-size: 100% 100%;
}

.element-monitor .plus-11 {
  margin-top: -714.00px;
  margin-left: -205.00px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-19.png);
  background-size: 100% 100%;
}

.element-monitor .plus-12 {
  margin-top: -716.00px;
  margin-left: -457.25px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-8.png);
  background-size: 100% 100%;
}

.element-monitor .plus-13 {
  margin-top: -714.00px;
  margin-left: -709.50px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-7.png);
  background-size: 100% 100%;
}

.element-monitor .plus-14 {
  margin-top: -716.00px;
  margin-left: -961.75px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-5.png);
  background-size: 100% 100%;
}

.element-monitor .plus-15 {
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/image.svg);
  background-size: 100% 100%;
}

.element-monitor .plus-16 {
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01.svg);
  background-size: 100% 100%;
}

.element-monitor .plus-17 {
  margin-top: -969.00px;
  margin-left: -457.25px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-22.png);
  background-size: 100% 100%;
}

.element-monitor .plus-18 {
  margin-top: -971.00px;
  margin-left: -709.50px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-15.png);
  background-size: 100% 100%;
}

.element-monitor .plus-19 {
  margin-top: -969.00px;
  margin-left: -961.75px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-18.png);
  background-size: 100% 100%;
}

.element-monitor .plus-20 {
  margin-top: -971.00px;
  margin-left: -1214.00px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-2.png);
  background-size: 100% 100%;
}

.element-monitor .plus-21 {
  margin-top: -1226.00px;
  margin-left: -205.00px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-16.png);
  background-size: 100% 100%;
}

.element-monitor .plus-22 {
  margin-top: -1224.00px;
  margin-left: -457.25px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-9.png);
  background-size: 100% 100%;
}

.element-monitor .plus-23 {
  margin-top: -1224.00px;
  margin-left: -709.50px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-3.png);
  background-size: 100% 100%;
}

.element-monitor .plus-24 {
  margin-top: -1226.00px;
  margin-left: -961.75px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-6.png);
  background-size: 100% 100%;
}

.element-monitor .plus-25 {
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-3.svg);
  background-size: 100% 100%;
}

.element-monitor .plus-26 {
  margin-top: -1479.00px;
  margin-left: -205.00px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01.png);
  background-size: 100% 100%;
}

.element-monitor .plus-27 {
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-4.svg);
  background-size: 100% 100%;
}

.element-monitor .plus-28 {
  margin-top: -1481.00px;
  margin-left: -709.50px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/image.png);
  background-size: 100% 100%;
}

.element-monitor .plus-29 {
  margin-top: -1481.00px;
  margin-left: -961.75px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-17.png);
  background-size: 100% 100%;
}

.element-monitor .plus-30 {
  margin-top: -1479.00px;
  margin-left: -1214.00px;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url(./img/plus-01-23.png);
  background-size: 100% 100%;
}

.element-monitor .to-top {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  position: absolute;
  bottom: 82px;
  right: 110px;
  border-radius: 100px;
  border: 2px solid;
  border-color: #ffffff4c;
  box-shadow: 0px 4px 4px #00000040, inset 4px 4px 4px #0000001c;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

.element-monitor .img {
  position: relative;
  width: 24px;
  height: 24px;
}

.element-monitor .dropdown {
  gap: 24px;
  position: absolute;
  top: 40px;
  left: 40px;
  display: inline-flex;
  align-items: center;
}

.element-monitor .dropdown-2 {
  gap: 30px;
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.element-monitor .div-3 {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}

.element-monitor .div-4 {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  position: relative;
  flex: 0 0 auto;
}

.element-monitor .text-wrapper-7 {
  font-family: var(--reg-16-font-family);
  font-weight: var(--reg-16-font-weight);
  color: var(--variable-collection-gray2);
  position: relative;
  width: fit-content;
  font-size: var(--reg-16-font-size);
  letter-spacing: var(--reg-16-letter-spacing);
  line-height: var(--reg-16-line-height);
  font-style: var(--reg-16-font-style);
}

.element-monitor .factory-dropdown {
  display: flex;
  flex-direction: column;
  width: 128px;
  align-items: center;
  gap: 24px;
  padding: 8px 0px;
  position: relative;
  background-color: var(--variable-collection-neutral-white);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.element-monitor .frame-10 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.element-monitor .text-wrapper-8 {
  margin-top: -1.00px;
  font-family: var(--noto-sans-med-16-font-family);
  font-weight: var(--noto-sans-med-16-font-weight);
  color: var(--variable-collection-gray3);
  position: relative;
  width: fit-content;
  font-size: var(--noto-sans-med-16-font-size);
  letter-spacing: var(--noto-sans-med-16-letter-spacing);
  line-height: var(--noto-sans-med-16-line-height);
  font-style: var(--noto-sans-med-16-font-style);
}

.element-monitor .process-dropdown {
  display: flex;
  flex-direction: column;
  width: 172px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 0px;
  position: relative;
  background-color: var(--variable-collection-neutral-white);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.element-monitor .line-dropdown {
  display: flex;
  flex-direction: column;
  width: 100px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 0px;
  position: relative;
  background-color: var(--variable-collection-neutral-white);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.element-monitor .blue-btn {
  /* display: inline-flex; */
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 8px;
  border: none;
  box-shadow: 2px 2px 4px -3px #0000002e, inset 1px 2px 3px #0077ef;
  background: linear-gradient(
    180deg,
    rgba(0, 120, 240, 1) 0%,
    rgba(0, 68, 136, 1) 100%
  );
  cursor: pointer;
}

.element-monitor .blue-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(245, 245, 245, 0.2) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.element-monitor .text-wrapper-9 {
  width: fit-content;
  margin-top: -9.50px;
  margin-bottom: -5.50px;
  font-family: var(--bold-16-font-family);
  font-weight: var(--bold-16-font-weight);
  color: var(--variable-collection-neutral-white);
  font-size: var(--bold-16-font-size);
  letter-spacing: var(--bold-16-letter-spacing);
  position: relative;
  line-height: var(--bold-16-line-height);
  font-style: var(--bold-16-font-style);
}

.element-monitor .machine-toggle {
  display: flex;
  width: 155px;
  align-items: center;
  gap: 17px;
  padding: 2px 2px 2px 2px;
  position: relative;
  background-color: var(--color-white-duplicate);
  border-radius: 100px;
  border-right-width: 1px;
  border-right-style: solid;
  border-bottom-width: 0px;
  border-bottom-style: solid;
  border-color: var(--color-gray6-duplicate);
  box-shadow: var(--lightest-shadow);
  cursor: pointer;
}

.element-monitor .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 24px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 40px;
  border-top-width: 1.5px;
  border-top-style: solid;
  border-color: #00448899;
  box-shadow: 0px 2px 4px -2px #0000000d, 0px 4px 6px -1px #0000001a, inset 2px
    2px 4px #ffffff94;
  background: linear-gradient(
    180deg,
    rgba(0, 120, 240, 1) 0%,
    rgba(0, 68, 136, 1) 100%
  );
  background-color: var(--variable-collection-primary2);
  position: absolute;
  height: 38px;
  width: 75px;
}
.machine-toggle .lablel {
  /* color: red; */
  inset: 0;
  display: flex;
  width: 150px;
  height: 38px;
  align-items: center;
  /* border: thin solid green; */
}
.machine-toggle .lablel div {
  flex: 1;
  text-align: center;
  width: 77px;
}

.element-monitor .text-wrapper-10 {
  width: fit-content;
  margin-top: -1.50px;
  text-shadow: 0px 2px 4px #0000001f;
  font-family: var(--noto-16-bold-font-family);
  font-weight: var(--noto-16-bold-font-weight);
  color: var(--color-white-duplicate);
  font-size: var(--noto-16-bold-font-size);
  letter-spacing: var(--noto-16-bold-letter-spacing);
  position: relative;
  line-height: var(--noto-16-bold-line-height);
  font-style: var(--noto-16-bold-font-style);
  /* box-shadow: var(--drop-1); */
}

.element-monitor .text-wrapper-11 {
  width: fit-content;
  font-family: var(--noto-sans-med-16-font-family);
  font-weight: var(--noto-sans-med-16-font-weight);
  color: var(--color-gray5-duplicate);
  font-size: var(--noto-sans-med-16-font-size);
  letter-spacing: var(--noto-sans-med-16-letter-spacing);
  position: relative;
  line-height: var(--noto-sans-med-16-line-height);
  font-style: var(--noto-sans-med-16-font-style);
}

.element-monitor .data {
  display: flex;
  width: 1206px;
  align-items: center;
  gap: 32px;
  position: absolute;
  top: 110px;
  left: 40px;
}

.element-monitor .red-tab {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  position: relative;
  flex: 0 0 auto;
  margin-top: -1.50px;
  margin-bottom: -1.50px;
  margin-left: -1.50px;
  border-radius: 2px;
  border: 1.5px solid;
  border-color: #d95d5d80;
}

.element-monitor .ellipse {
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(225, 131, 131, 1) 0%,
    rgba(215, 83, 83, 1) 100%
  );
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
}

.element-monitor .text-wrapper-12 {
  font-family: var(--noto-sans-med-16-font-family);
  font-weight: var(--noto-sans-med-16-font-weight);
  color: var(--variable-collection-gray2);
  position: relative;
  width: fit-content;
  font-size: var(--noto-sans-med-16-font-size);
  letter-spacing: var(--noto-sans-med-16-letter-spacing);
  line-height: var(--noto-sans-med-16-line-height);
  font-style: var(--noto-sans-med-16-font-style);
  /* font-weight: 800; */
}

.element-monitor .green-tab {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  position: relative;
  flex: 0 0 auto;
  margin-top: -1.50px;
  margin-bottom: -1.50px;
  border-radius: 2px;
  border: 1.5px solid;
  border-color: #45ad7680;
}

.element-monitor .ellipse-2 {
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(103, 189, 144, 1) 0%,
    rgba(63, 166, 112, 1) 100%
  );
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
}

.element-monitor .gray-tab {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  position: relative;
  flex: 0 0 auto;
  margin-top: -1.50px;
  margin-bottom: -1.50px;
  border-radius: 2px;
  border: 1.5px solid;
  border-color: #3741514c;
}

.element-monitor .ellipse-3 {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(107, 114, 128, 1) 0%,
    rgba(76, 90, 112, 1) 100%
  );
  background-color: var(--variable-collection-gray3);
}

.element-monitor .yellow-tab {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  position: relative;
  flex: 0 0 auto;
  margin-top: -1.50px;
  margin-bottom: -1.50px;
  margin-right: -1.50px;
  border-radius: 2px;
  border: 1.5px solid;
  border-color: #e5a00080;
}

.element-monitor .ellipse-4 {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(241, 195, 90, 1) 0%,
    rgba(229, 160, 0, 1) 100%
  );
}

.element-monitor .outline-btn-small {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 16px;
  position: relative;
  flex: 0 0 auto;
  margin-top: -1.00px;
  margin-bottom: -1.00px;
  margin-right: -1.00px;
  border-radius: 8px;
  border: 2px solid;
  border-color: var(--variable-collection-primary3);
}

.element-monitor .text-wrapper-13 {
  font-family: var(--noto-sans-bold-18-font-family);
  font-weight: var(--noto-sans-bold-18-font-weight);
  color: var(--variable-collection-primary3);
  font-size: var(--noto-sans-bold-18-font-size);
  letter-spacing: var(--noto-sans-bold-18-letter-spacing);
  position: relative;
  width: fit-content;
  line-height: var(--noto-sans-bold-18-line-height);
  font-style: var(--noto-sans-bold-18-font-style);
}

.element-monitor .frame-12 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  flex: 0 0 auto;
}

.element-monitor .text-wrapper-14 {
  font-family: var(--reg-16-font-family);
  font-weight: var(--reg-16-font-weight);
  color: var(--variable-collection-gray3-duplicate);
  position: relative;
  width: fit-content;
  font-size: var(--reg-16-font-size);
  letter-spacing: var(--reg-16-letter-spacing);
  line-height: var(--reg-16-line-height);
  font-style: var(--reg-16-font-style);
}

.element-monitor .text-wrapper-15 {
  width: fit-content;
  margin-top: -1.00px;
  font-family: var(--black-24-font-family);
  font-weight: var(--black-24-font-weight);
  color: var(--variable-collection-gray2-duplicate);
  font-size: var(--black-24-font-size);
  letter-spacing: var(--black-24-letter-spacing);
  position: relative;
  line-height: var(--black-24-line-height);
  font-style: var(--black-24-font-style);
}

.element-monitor .header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 98px;
}

.element-monitor .tab-bar {
  position: absolute;
  top: 98px;
  left: 93px;
  width: calc(100% - 96 * 2px);
  height: 10px;
  display: flex;
  border-radius: 40px;
  box-shadow:
    0px 2px 4px -2px #0000000d, 0px 4px 6px -1px #0000001a, inset 0px 4px 4px #ffffff40, inset 0px -2px 4px #ffffff40;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
}

.element-monitor .bar-wrapper {
  width: 112px;
  margin-left: 324px;
  display: flex;
  border-radius: 20px;
  box-shadow:
    0px 2px 4px -2px #0000000d, 0px 4px 6px -1px #0000001a, inset 0px 4px 4px #ffffff40, inset 0px -2px 4px #ffffff40;
  background: linear-gradient(
    180deg,
    rgba(0, 120, 240, 1) 0%,
    rgba(0, 68, 136, 1) 100%
  );
}

.element-monitor .bar {
  width: 112px;
  height: 10px;
  border-radius: 20px;
  box-shadow:
    0px 2px 4px -2px #0000000d, 0px 4px 6px -1px #0000001a, inset 0px 4px 4px #ffffff40, inset 0px -2px 4px #ffffff40;
  mix-blend-mode: overlay;
  background: linear-gradient(
    180deg,
    rgba(0, 120, 240, 1) 0%,
    rgba(0, 68, 136, 1) 100%
  );
  opacity: 0.6;
}

.element-monitor .tabs {
  gap: 111px;
  position: absolute;
  top: 58px;
  left: 80px;
  /* display: inline-flex; */
  align-items: center;
}

.element-monitor .logo {
  position: relative;
  width: 98px;
  height: 19px;
  background-size: 100% 100%;
}

.element-monitor .tabs-2 {
  height: 34px;
  gap: 24px;
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.element-monitor .active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  position: relative;
  flex: 0 0 auto;
  margin-top: -1.00px;
  margin-bottom: -1.00px;
  margin-left: -1.00px;
  border-radius: 4px 4px 0px 0px;
  border-top-width: 1px;
  border-top-style: solid;
  border-right-width: 2px;
  border-right-style: solid;
  border-color: #ffffffb8;
  box-shadow: inset 4px 4px 6px #9ca3af40, inset -4px -4px 10px #9ca3af40, 2px
    0px 4.6px #00000040;
  background-blend-mode: luminosity;
  background: linear-gradient(
    123deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
}
.active a {
  font-weight: bold;
  color: black !important;
}

.element-monitor .text-wrapper-16 {
  width: fit-content;
  margin-top: -1px;
  font-family: var(--bold-16-font-family);
  font-weight: var(--bold-16-font-weight);
  color: var(--variable-collection-gray1);
  font-size: var(--bold-16-font-size);
  letter-spacing: var(--bold-16-letter-spacing);
  position: relative;
  line-height: var(--bold-16-line-height);
  font-style: var(--bold-16-font-style);
}

.element-monitor .tab-inactive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 4px 4px 0px 0px;
  box-shadow: inset 4px 4px 6px #9ca3af40, inset -4px -4px 10px #9ca3af40, 2px
    0px 4.6px #00000040;
  background-blend-mode: luminosity;
  background: linear-gradient(
    123deg,
    rgba(255, 255, 255, 0.21) 0%,
    rgba(255, 255, 255, 0.37) 100%
  );
}
.element-monitor .tab-inactive div {
  color: #dfdfdf !important;
}

.element-monitor .text-wrapper-17 {
  width: fit-content;
  margin-top: -2.00px;
  font-family: var(--noto-sans-med-16-font-family);
  font-weight: var(--noto-sans-med-16-font-weight);
  color: var(--variable-collection-gray2);
  font-size: var(--noto-sans-med-16-font-size);
  letter-spacing: var(--noto-sans-med-16-letter-spacing);
  position: relative;
  line-height: var(--noto-sans-med-16-line-height);
  font-style: var(--noto-sans-med-16-font-style);
  font-weight: 800;
}

.element-monitor .text-wrapper-18 {
  margin-top: -2.00px;
  font-family: var(--noto-sans-med-16-font-family);
  font-weight: var(--noto-sans-med-16-font-weight);
  color: var(--variable-collection-gray2);
  font-size: var(--noto-sans-med-16-font-size);
  letter-spacing: var(--noto-sans-med-16-letter-spacing);
  white-space: nowrap;
  position: relative;
  width: fit-content;
  line-height: var(--noto-sans-med-16-line-height);
  font-style: var(--noto-sans-med-16-font-style);
  font-weight: 800;
}

.element-monitor .tab-icon {
  display: inline-flex;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 4px 4px 0px 0px;
  box-shadow: inset 4px 4px 6px #9ca3af40, inset -4px -4px 10px #9ca3af40, 2px
    0px 4.6px #00000040;
  background-blend-mode: luminosity;
  background: linear-gradient(
    123deg,
    rgba(255, 255, 255, 0.21) 0%,
    rgba(255, 255, 255, 0.37) 100%
  );
}

.element-monitor .frame-13 {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  flex: 0 0 auto;
  margin-top: -0.50px;
  margin-bottom: -0.50px;
}

.element-monitor .logout {
  position: relative;
  width: 24px;
  height: 24px;
  background-size: 100% 100%;
}

.element-monitor .text-wrapper-19 {
  font-family: var(--noto-sans-med-16-font-family);
  font-weight: var(--noto-sans-med-16-font-weight);
  color: var(--variable-collection-gray2);
  font-size: var(--noto-sans-med-16-font-size);
  letter-spacing: var(--noto-sans-med-16-letter-spacing);
  white-space: nowrap;
  position: relative;
  width: fit-content;
  line-height: var(--noto-sans-med-16-line-height);
  font-style: var(--noto-sans-med-16-font-style);
}

.element-monitor .palette {
  position: relative;
  width: 24px;
  height: 24px;
  background-size: 100% 100%;
}

.element-monitor .menu {
  position: relative;
  width: 23.55px;
  height: 24px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}
.total thead {
  color: #4C5A70;
}
.total thead th {
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
}
.table th {
  padding: 10px 24px;
}
.table a {
  color: inherit !important;
}
.table tbody tr {
  background: #FFFFFF;
  color: #4C5A70;
}
.table tbody tr:hover {
  background: #edeff0;
}
.table tbody td {
  padding: 0px 24px;
  line-height: 30px;
  text-align: right;
  border-left: 1px solid rgba(229, 231, 235, 0.37);
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
}
.stop_factor_1, .stop_factor_0 {
  display: none;
}

.total {
  position: absolute;
  top: 485px;
  left: 40px;
  font-family: var(--reg-16-font-family);
  bottom: 0px;
  /* overflow: auto; */
  width: calc(100% - 80px);
}
.table_sum th {
  border-left: 1px solid rgba(229, 231, 235, 0.37);
}
.stop_factor_view {
  display: inline;
}
.stop_factor_view i {
  background-image: url(/img/eye.svg);
}
.total_chart {
  font-family: var(--reg-16-font-family);
  background: #FFFFFF;
  border-width: 0px 1px 1px 0px;
  border-style: solid;
  border-color: #E5E7EB;
  /* shadow-sm */
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  top: 120px;
  position: absolute;
  left: 40px;
  width: calc(100vw - 240px);
  height: 330px;
  color: #4C5A70;
}
.total_chart .title {
  /* border: thin solid green; */
  padding: 20px 30px;
}
.total_chart .year {
  display: inline-block;
  font-size: 30px;
  font-weight: 900;
  border-bottom: 2px solid #E5E7EB;
  margin-right: 20px;
  line-height: 40px;
  width: 75px;
  text-align: center;
}
.total_chart .legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 130px;
}
.total_chart .color {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08);
}
.total_chart .text {
  /* width: 100px; */
  color: inherit;
}
.chart {
  /* border: thin solid green; */
  margin: 0px 30px 0 20px;
  height: calc(100% - 85px);
}
.insign_control {
  /* border: thin solid green; */
  margin-top: 40px;
  text-align: center;
  font-family: var(--noto-sans-med-24-font-family);
  width: 100%;
  color: #4C5A70;
  font-weight: 700;
  line-height: 19px;
  font-size: 16px;
  font-style: normal;
}
.insign_control label {
  margin-right: 12px;
}
.active_btn {
  justify-content: center;
  align-items: center;
  padding: 0px 26px;
  gap: 8px;
  background: linear-gradient(180deg, #0078F0 0%, #004488 100%);
  box-shadow: 2px 2px 4px -3px rgba(0, 0, 0, 0.18), inset 1px 2px 3px #0078F0;
  border-radius: 8px;
  color: white;
  height: 40px;
  border: none;
  line-height: inherit;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  cursor: pointer;
}
.small_btn {
  justify-content: center;
  align-items: center;
  /* padding: 0px 18px; */
  gap: 8px;
  border: 2px solid #0078F0 !important;
  border-radius: 8px;
  color: #0078F0;
  height: 32px;
  border: none;
  line-height: inherit;
  font-size: 14px;
  display: inline-flex;
  cursor: pointer;
  background: none;
  width: 110px;
  margin-right: 20px;
  font-weight: 600;
}

.iyear {
  font-size: 30px;
  font-family: 'Noto Sans JP', Helvetica;
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  line-height: 72px;
  letter-spacing: 0.04em;
  color: #4C5A70;
  flex: none;
  order: 0;
  flex-grow: 0;
  text-align: center;
  margin-top: 10px;
}
.insight-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 20px;
  border-radius: 10px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
  width: calc(50% - 44px);
  height: 400px;
  background-color: white;
  flex-direction: column;
  padding-bottom: 10px;
}
.insight-item h3, .insight-item h4 {
  font-size: 22px;
  font-family: 'Noto Sans JP', Helvetica;
  color: #253241;
  font-weight: 700;
  margin-top: 20px;
}
.insight-item h4 {
  font-size: 16px;
  margin-bottom: 12px;
}
.insight-item-content {
  width: 92%;
  height: 86%;
}
.insight-item-content canvas {
  margin: auto;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
  font-size: 14px;
  color: #333;
  font-family: 'Noto Sans JP', Helvetica;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.top3-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}

.top3-card {/* border: 1.5px solid #1a3060; */border-radius: 8px;overflow: hidden;filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.08));}

.top3-header {
background: #1a3060;
color: #fff;
text-align: center;
padding: 10px 6px 8px;
}

.top3-hours {
font-size: 22px;
font-weight: 900;
line-height: 1;
}

.top3-hours span {font-size: 12px;font-weight: 500;margin-left: 1px;}

.top3-label {font-size: 12px;font-weight: 700;margin-top: 4px;letter-spacing: 0.02em;}

.top3-body {padding: 8px 10px;background-color: #F9FAFB;text-align: center;}

.top3-diff {display: flex;align-items: center;gap: 5px;font-size: 12px;color: #333;margin-bottom: 10px;}

.top3-diff .badge {background: #1a3060;color: #fff;border-radius: 50%;width: 24px;height: 24px;display: flex;align-items: center;justify-content: center;font-size: 14px;flex-shrink: 0;}

.top3-note {display: flex;align-items: flex-start;gap: 4px;font-size: 12px;color: #555;/* border-top: 1px solid #eee; */padding-top: 10px;}

.top3-note .icon {
font-size: 11px;
flex-shrink: 0;
color: #888;
}

.divider {
height: 1px;
background: #e8eaf0;
margin: 10px 0;
}
.top3-grid {
width: 90%;
}
body {
  font-family: "Noto Sans JP-Bold", Helvetica;
}

/* ── Tag Grid ── */
.tag-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.tag-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  width: 66px;
  height: 28px;
  border-radius: 5px;
  color: #fff;
  cursor: default;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  /* inner shadow to give slight depth like screenshot */
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1);
}
/* Exact colors matched to screenshot */
.g  { background: #3daf6e; }   /* green  < 5%  */
.y  { background: #e8a800; }   /* yellow ~25%  */
.o  { background: #f07628; }   /* orange ~40%  */
.r  { background: #e03030; }   /* red    50%+  */

/* ── Legend ── */
.legend-wrap4 {
  display: flex;
  justify-content: flex-end;
  padding-right: 4px;
}

.legend4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.leg-dots4 {
  display: flex;
  align-items: center;
}

.leg-dot4 {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.leg-line4 {
  height: 3px;
  width: 56px;
  margin: 0 -1px;
  flex-shrink: 0;
  z-index: 0;
}

.leg-labels4 {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.leg-lbl4 {
  font-size: 11.5px;
  color: #374151;
  font-weight: 500;
  text-align: center;
  /* spacing: dot=17px, line=56px → total=17+56+17+56+17+56+17 = 236px, 4 labels over 236px */
  /* first label under first dot, then spaced by dot+line */
  width: 90px;
}
.leg-lbl4:first-child { width: 26px; margin-right: 30px; }
.leg-lbl4:nth-child(2){ width: 26px; margin-right: 30px; }
.leg-lbl4:nth-child(3){ width: 26px; margin-right: 30px; }
.leg-lbl4:nth-child(4){ width: 36px; }
.work_rate {
  background-color: #0078F0;
  border-radius: 4px 4px 0px 0px;
  width: 110px;
  height: 42px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  border: none;
}
#detail_work_rate tr:first-child {
  background-color: #0078F0;
  color: white;
  font-size: 16px;
  font-weight: 700;
}
#detail_work_rate tr:last-child {
  background-color: #002B57;
  color: white;
  font-weight: 700;
}
.sumary {
  background: none;
  color: #4C5A70;
}
.sumary td {
  text-align: center;
  padding: 2px;
}
.sumary tr:nth-child(2) {
  font-weight: 700;
  font-size: 28px;
}
.chart_container {
  position: absolute;
  top: 120px;
  left: 40px;
  width: calc(100% - 80px);
  bottom: 0px;
  background-color: white;
  border-radius: 10px;
  border-width: 0px 1px 1px 0px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08);
  overflow: scroll;
  padding-top: 12px;
  scrollbar-width: none;;
}

/* Chart Screen */
.chart_item {
  background: #fff;
  padding: 25px 85px;
  width: 100%;
  max-width: 100%;
  /* border: 1px solid #e3eaf2; */
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.machine-id {
  font-weight: 700;
  font-size: 22px;
  color: #1a3a5c;
  letter-spacing: 0.04em;
}

.icon-btn {
  background: #1a7cd4;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.unit-label {
  color: black;
  font-size: 13px;
  font-weight: 500;
}

/* Time axis */
.time-axis {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.time-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.time-tick:first-child { align-items: flex-start; }
.time-tick:last-child  { align-items: flex-end; }

.time-label {
  font-size: 12px;
  color: #5a7a99;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.time-sub {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #b0c8e0;
  position: relative;
}
.time-sub:after {
  content: '';
  display: block;
  width: 0px;
  height: 60px;
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 2px dotted #619bd6;
  z-index: 98;
}

/* Body row */
.body-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.bars-col {
  flex: 1;
  position: relative;
}

/* Segment bar */
.segment-bar {
  position: relative;
  height: 50px;
  background: #e8f0f8;
  /* border-radius: 7px; */
  overflow: visible;
  box-shadow: 0px 2px 3px -1px rgba(0, 0, 0, 0.3);
}

.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: filter 0.15s;
  cursor: pointer;
}
.seg:hover { filter: brightness(1.12); z-index: 2; }

/* Tooltip */
.tooltip {
  display: none;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a3a5c;
  color: #fff;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.seg:hover .tooltip { display: block; }

/* Job bar row */
.job-row {
  position: relative;
  height: 26px;
  margin-top: 5px;
  cursor: pointer;
}
.man-row {
  position: relative;
  height: 20px;
  margin-top: 5px;
  overflow: hidden;
}

.man-bars-wrap {
  position: absolute;
  top: 0;
  height: 100%;
  box-shadow: 0px 2px 3px -1px rgba(0, 0, 0, 0.3);
}

.job-bar {
  position: absolute;
  top: 4px;
  height: 18px;
  background: #1a6bbf;
  border-radius: 9px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  padding-right: 24px;
  overflow: visible;
  box-shadow: 0px 2px 3px -1px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.job-bar:hover,
.job-bar:focus-within {
  z-index: 20;
}

.job-edit-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #d95e5e;
  border-radius: 50%;
  background: #ffffff;
  color: #d95e5e;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
  z-index: 21;
  box-shadow: 0 2px 6px rgba(120, 30, 30, 0.35);
}

.job-bar:hover .job-edit-btn,
.job-bar:focus-within .job-edit-btn {
  opacity: 1;
  transform: translateY(0);
}

.job-edit-btn:hover,
.job-edit-btn:focus-visible {
  background: #fff5f5;
  color: #c93030;
  border-color: #c93030;
  box-shadow: 0 3px 8px rgba(120, 30, 30, 0.45);
}

.job-edge-line {
  position: absolute;
  top: 13px;
  height: 0;
  border-top: 1px solid rgba(26, 107, 191, 0.68);
  z-index: 1;
  pointer-events: none;
}

.job-edge-line-start::before,
.job-edge-line-end::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 0;
  height: 17px;
  border-left: 2px solid rgb(26, 107, 191);
  border-radius: 1px;
}

.job-edge-line-start::before { left: 0; }

.job-edge-line-end::after { right: 0; }
.man-bar {
  position: absolute;
  top: 0px;
  height: 20px;
  background: #45AE77;
  display: flex;
  align-items: center;
  padding-left: 12px;
  overflow: hidden;
  /* filter: brightness(1.12) */
}

.job-label {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-end-marker {
  position: absolute;
  top: 0;
  width: 2px;
  height: 26px;
  background: #1a6bbf;
  border-radius: 2px;
}

/* Stats */
.stats-col {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 5px;
  padding-left: 20px;
  /* border-left: 1px solid #e3eaf2; */
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stat-label {
  font-size: 14px;
  color: #5a7a99;
  white-space: nowrap;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: 0.01em;
}
.login_container {
  position: relative;
  width: min(360px, calc(100% - 32px));
  margin: 170px auto 0;
  padding: 30px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.94) 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0px 20px 40px rgba(0, 28, 56, 0.18);
}
.login_container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(36, 145, 255, 0.14), transparent 36%),
    radial-gradient(circle at bottom left, rgba(0, 94, 189, 0.08), transparent 40%);
  pointer-events: none;
}
.login_container > * {
  position: relative;
  z-index: 1;
}
.login-logo {
  margin-bottom: 22px;
  text-align: left;
}
.login-logo .logo_img {
  width: 176px;
  max-width: 100%;
  height: auto;
}
.login-description {
  margin: 0 0 22px;
  color: var(--variable-collection-gray2);
  font-size: 14px;
  line-height: 1.6;
}
.login-card-body {
  padding: 0;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-label {
  color: var(--variable-collection-gray1);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.login_container input.form-control {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  margin-bottom: 0;
  border: 1px solid rgba(0, 94, 189, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: var(--variable-collection-gray1);
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 43, 87, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.login_container input.form-control::placeholder {
  color: #91a1b5;
}
.login_container input.form-control:focus {
  outline: none;
  border-color: rgba(0, 94, 189, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 94, 189, 0.1);
}
.login-error {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(217, 94, 94, 0.1);
  border: 1px solid rgba(217, 94, 94, 0.2);
}
.login-actions {
  margin-top: 4px;
}
.login-submit {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--variable-collection-primary2) 0%, var(--variable-collection-primary3) 100%);
  box-shadow: 0px 10px 20px rgba(0, 94, 189, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.login_container .btn:hover {
  background: linear-gradient(135deg, #004a94 0%, #006ad4 100%);
  box-shadow: 0px 14px 24px rgba(0, 74, 148, 0.22);
  transform: translateY(-1px);
  color: white;
}
@media (max-width: 640px) {
  .login_container {
    width: min(360px, calc(100% - 24px));
    margin-top: 90px;
    padding: 24px 18px 22px;
    border-radius: 16px;
  }

  .login-logo .logo_img {
    width: 156px;
  }
}
.text-danger {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
}
.dropdown-content {
  position: absolute;
  background: #FAFAFA;
  padding: 8px;
  border-radius: 2px;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
  position: absolute;
  top: 44px;
  width: 128px;
  display: none;
  cursor: pointer;
  z-index: 99;
  max-height: 550px;
  overflow: scroll;
  overflow-x: hidden;
}
.dropdown-item {padding: 8px;color: rgba(107, 114, 128, 1);}
.dropdown-item:hover {
  background-color: #E5E7EB;
  color: rgba(76, 90, 112, 1);
}
.red-tab:hover, .red-tab.selected {
  border: 1.5px solid #D95E5E;
  background-color: rgba(217, 94, 94, 0.3);
}
.green-tab:hover, .green-tab.selected {
  border: 1.5px solid #45AE77;
  background-color: rgba(69, 174, 119, 0.3);
}
.gray-tab:hover, .gray-tab.selected {
  border: 1.5px solid #4C5A70;
  background-color: rgba(229, 231, 235, 0.9);
}
.yellow-tab:hover, .yellow-tab.selected {
  border: 1.5px solid #E5A000;
  background-color: rgba(229, 160, 0, 0.3);
}
.color_OK {
  background-color: #45AE77;
}
.color_ERRSTOP {
  background-color: #D95E5E;
}
.search-box {position: relative;margin-right: 18px;width: 250px;height: 46px;border-radius: 23px;background: #fff;box-shadow: var(--lightest-shadow);overflow: hidden;}
.search-box .text-wrapper {height: 46px;border-radius: 23px;border: none;font-size: 16px;padding: 0 56px 0 23px;width: 100%;color: black;}
.search-box .frame {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  /* gap: 8px; */
  padding: 8px;
  position: relative;
  border-radius: 100px;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 120, 240, 1) 0%, rgba(0, 68, 136, 1) 100%
  );
  background-color: var(--variable-collection-primary2);
  position: absolute;
  right: 1px;
  top: 1px;
}
.search-box .search { 
  position: relative;
  width: 24px; height: 24px;
  background-image: url(/img/search.svg);
  background-size: 100% 100%;
}
.product_name {
  font-size: 16px !important;
  font-weight: 700 !important;
}
.product .frame-wrapper {
  height: 35px;
}
.product .Done {
  background: linear-gradient(180deg, #2491FF 0%, #005EBD 100%);
}
.ellipse.Done {
  background: radial-gradient(50% 50% at 50% 50%, #2491FF 0%, #005EBD 100%);
}
.product .InProgress {
  background: linear-gradient(180deg, #57BC87 34.13%, #389464 100%);
}
.ellipse.InProgress {
  background: radial-gradient(50% 50% at 50% 50%, #67BD90 0%, #3FA670 100%);
}
.product .NotYet {
  background: linear-gradient(180deg, #6B7280 33.65%, #404C5E 100%);
}
.ellipse.NotYet {
  background: radial-gradient(50% 50% at 50% 50%, #6B7280 0%, #4C5A70 100%);
}

/* Custom modal to avoid conflicts with other styles */
.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.stop-factor-modal .modal__overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 17, 34, 0.58);
  backdrop-filter: blur(5px);
  z-index: 9999;
}

.stop-factor-modal .modal__container {
  width: min(92vw, 640px);
  max-height: 78vh;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(231, 238, 247, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 22px 48px rgba(0, 17, 34, 0.28);
}

.stop-factor-modal .modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(37, 50, 65, 0.12);
  color: #202530;
}

.stop-factor-modal .modal__title {
  margin: 0;
  color: #202530;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.stop-factor-modal .modal__close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 50, 65, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  color: #4c5a70;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.stop-factor-modal .modal__close:hover {
  background: rgba(255, 255, 255, 0.72);
  color: #202530;
}

.stop-factor-modal .modal__content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.stop-factor-modal .modal__footer {
  min-height: 24px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(37, 50, 65, 0.1);
  color: rgba(43, 48, 58, 0.66);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.stop-factor-modal .modal__footer div {
  margin-top: 4px;
  font-size: 13px;
}

.stop-factor-modal .stop-btn {
  flex: 0 0 calc(25% - 9px);
  min-height: 68px;
  padding: 12px 10px 12px 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(37, 50, 65, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(83, 95, 116, 0.1);
  color: #2b303a;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.stop-factor-modal .stop-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 113, 212, 0.26);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 24px rgba(83, 95, 116, 0.16);
}

.stop-factor-modal .stop-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 17, 34, 0.12), 0 6px 14px rgba(83, 95, 116, 0.1);
}

.stop-factor-modal .stop-btn .label {
  max-height: 38px;
  overflow: hidden;
  word-break: keep-all;
}

.stop-factor-modal .accent-bar.left {
  width: 10px;
  border-radius: 8px 0 0 8px;
}

.product-selection-modal .modal__container {
  width: min(92vw, 720px);
}

.product-selection-modal .modal__content {
  display: block;
  margin-bottom: 0;
}

.product-selection-help {
  margin-bottom: 14px;
  color: rgba(43, 48, 58, 0.66);
  font-size: 14px;
  font-weight: 800;
}

.product-selection-form {
  margin: 0;
}

.product-selection-grid {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
}

.product-selection-grid label {
  margin: 0;
  color: #202530;
  font-size: 14px;
  font-weight: 800;
}

.product-selection-grid input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(37, 50, 65, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #202530;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  outline: none;
}

.product-selection-grid input:focus {
  border-color: rgba(34, 113, 212, 0.42);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(34, 113, 212, 0.12);
}

.product-selection-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-selection-quantity input {
  max-width: 180px;
}

.product-selection-quantity span {
  color: rgba(43, 48, 58, 0.66);
  font-size: 14px;
  font-weight: 800;
}

.product-selection-modal .outside_opentime {
  margin-top: 18px;
}

.product-selection-modal .outside_opentime p {
  margin: 0 0 10px;
  border: 1px solid rgba(244, 190, 67, 0.48);
  border-radius: 8px;
  background: rgba(255, 248, 229, 0.86);
  color: #8a6100;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}

.product-selection-modal .time_adjust {
  display: inline-flex;
  border: 1px solid rgba(217, 94, 94, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #c93030;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.product-selection-modal .modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-selection-meta,
.product-selection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-selection-meta {
  min-width: 0;
}

.product-selection-modal #operation_time {
  color: rgba(43, 48, 58, 0.66);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.product-selection-btn {
  min-width: 104px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(224, 232, 244, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 14px rgba(83, 95, 116, 0.12);
  color: #2b303a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 14px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.product-selection-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 20px rgba(83, 95, 116, 0.16);
}

.product-selection-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 17, 34, 0.14), 0 4px 10px rgba(83, 95, 116, 0.1);
}

.product-selection-btn.secondary {
  color: #2b303a;
}

.product-selection-btn.primary {
  border-color: rgba(34, 113, 212, 0.6);
  background: linear-gradient(180deg, #2f9df5 0%, #0068c9 100%);
  color: #ffffff;
}

.product-selection-btn.danger {
  border-color: rgba(207, 48, 48, 0.5);
  background: linear-gradient(180deg, rgba(217, 94, 94, 0.95) 0%, rgba(207, 48, 48, 0.95) 100%);
  color: #ffffff;
}

@media (max-width: 760px) {
  .stop-factor-modal .modal__overlay {
    padding: 16px;
  }

  .stop-factor-modal .modal__container {
    width: 100%;
    padding: 18px;
  }

  .stop-factor-modal .stop-btn {
    flex-basis: calc(50% - 6px);
  }

  .product-selection-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-selection-modal .modal__footer,
  .product-selection-meta,
  .product-selection-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-selection-btn,
  .product-selection-actions {
    width: 100%;
  }
}
.accent-bar {
  position: absolute;
}
.accent-bar.left {
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 4px 0 0 4px;
  /* box-shadow: 0px 4px 6px #0000000d, 0px 10px 15px -3px #0000001a, inset 2px 2px 4px #00000040, inset -2px -2px 4px #00000040; */
}

.setting-panel {
  display: flex;
  gap: 28px;
  height: 100%;
  padding: 40px;
  color: #20242c;
}

.setting-sidebar {
  flex: 0 0 220px;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
}

.setting-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 16px;
  color: rgba(37, 50, 65, 1);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.setting-sidebar-link:hover, .setting-sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.setting-sidebar-separator {
  display: block;
  height: 1px;
  margin: 8px 18px;
  background: rgba(37, 50, 65, 0.18);
}

.setting-sidebar-accent {
  position: absolute;
  left: -29px;
  width: 6px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4fa8ff 0%, #005fcb 100%);
  box-shadow: 0 0 16px rgba(45, 126, 255, 0.55);
  opacity: 0;
}

.setting-sidebar-link.is-active .setting-sidebar-accent {
  opacity: 1;
}

.setting-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.open-time-register-container {
  overflow: hidden !important;
}

.open-time-register-panel {
  min-height: 0;
  overflow: hidden;
}

.open-time-register-panel .setting-content {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.open-time-register-panel .setting-table-shell {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
}

.open-time-register-panel .bs-docs-section,
.open-time-register-panel .setting-form {
  min-height: 0;
}

.setting-content-header {
  display: flex;
  align-items: anchor-center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  height: 35px;
}

.setting-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: rgba(37, 50, 65, 1);
  letter-spacing: -0.03em;
}

.setting-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.setting-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(224, 232, 244, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 14px rgba(83, 95, 116, 0.12);
  color: #232934;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.setting-button:hover {
  color: #232934;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 20px rgba(83, 95, 116, 0.16);
}

.setting-button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 17, 34, 0.14), 0 4px 10px rgba(83, 95, 116, 0.1);
}

.setting-button-primary {
  min-width: 104px;
  border-color: rgba(34, 113, 212, 0.6);
  background: linear-gradient(180deg, #2f9df5 0%, #0068c9 100%);
  color: #fff;
}

.setting-button-primary:hover {
  border-color: rgba(180, 222, 255, 0.72);
  background: linear-gradient(180deg, #43aaff 0%, #0068c9 100%);
  color: #fff;
}

.setting-button-search {
  min-width: 128px;
  border-color: rgba(34, 113, 212, 0.45);
}

.setting-search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #2a5da8;
  border-radius: 50%;
}

.setting-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  background: #2a5da8;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: center;
}

.setting-list-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.setting-list-filter-field {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #2b303a;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.setting-list-filter .form-control {
  width: min(100%, 260px);
  min-height: 40px;
  margin-bottom: 0;
  padding: 8px 40px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4c5a70 50%),
    linear-gradient(135deg, #4c5a70 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 245, 252, 0.62));
  background-position:
    calc(100% - 20px) 16px,
    calc(100% - 14px) 16px,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 6px 14px rgba(83, 95, 116, 0.08);
  color: #202530;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.setting-list-filter .form-control:focus {
  border-color: rgba(34, 113, 212, 0.58);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 0 4px rgba(47, 157, 245, 0.14);
  color: #202530;
  outline: none;
}

.setting-list-filter .open-time-filter-input {
  width: 96px;
}

.open-time-confirm-actions {
  justify-content: flex-end;
  margin: 0 0 16px;
}

.setting-table-shell + .open-time-confirm-actions {
  margin: 16px 0 0;
}

.setting-table-shell {
  /* flex: 1; */
  min-height: 0px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(231, 238, 247, 0.18));
}

.setting-table {
  width: 100%;
  border-collapse: collapse;
}

.setting-table thead th {
  padding: 18px 18px 14px;
  text-align: left;
  color: #202530;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.setting-table tbody tr {
  background: rgba(255, 255, 255, 0.3);
}

.setting-table tbody tr + tr {
  border-top: 1px solid rgba(255, 255, 255, 0.58);
}

.setting-table tbody td {
  padding: 17px 18px;
  color: #232834;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
}

.setting-table-primary-cell {
  color: #202530;
  /* font-weight: 650 !important; */
}

.setting-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.setting-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #5ee88e 0%, #29b95d 65%, #159448 100%);
  box-shadow: 0 0 0 3px rgba(54, 206, 104, 0.12);
}

.setting-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.setting-table-action {
  color: #2b303a;
  text-decoration: none;
}

.setting-form {
  width: 100%;
  padding: 20px 22px;
}

.setting-form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.setting-form-table th {
  width: 160px;
  padding: 8px 18px 8px 0;
  color: #202530;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.setting-form-table td {
  padding: 0;
  vertical-align: middle;
}

.setting-form .form-control,
.setting-form select,
.setting-form textarea {
  width: min(100%, 420px);
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 245, 252, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 6px 14px rgba(83, 95, 116, 0.08);
  color: #202530;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.setting-form textarea {
  width: min(100%, 620px);
  min-height: 92px;
  resize: vertical;
}

.setting-form select {
  width: min(100%, 260px);
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, #4c5a70 50%),
    linear-gradient(135deg, #4c5a70 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 245, 252, 0.62));
  background-position:
    calc(100% - 20px) 16px,
    calc(100% - 14px) 16px,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.setting-form input[type="file"] {
  width: min(100%, 360px);
  padding: 7px 12px;
}

.setting-form input[type="color"] {
  width: 72px;
  min-height: 38px;
  padding: 4px;
  cursor: pointer;
}

.setting-form input[name="memo"],
.setting-form input[name="machine_memo"],
.setting-form textarea[name="memo"] {
  width: min(100%, 620px);
}

.setting-form input[name="id"],
.setting-form input[name="password"],
.setting-form input[name="machine_id"],
.setting-form input[name="machine_line"],
.setting-form input[name="worker_name_kana"] {
  width: min(100%, 300px);
}

.setting-form input[name="factory_name"],
.setting-form input[name="name"],
.setting-form input[name="worker_name"],
.setting-form input[name="machine_name"] {
  width: min(100%, 420px);
}

.setting-form input[type="number"],
.setting-form input[type="date"],
.setting-form input[type="time"],
.setting-form input[name="machine_order"] {
  width: min(100%, 160px);
}

.setting-form select[name="active"],
.setting-form select[name="role"],
.setting-form select[name="machine_line"] {
  width: min(100%, 180px);
}

.setting-form select[name="factory_id"],
.setting-form select[name="operation_process_id"] {
  width: min(100%, 320px);
}

.setting-form .form-control:focus,
.setting-form select:focus,
.setting-form textarea:focus {
  border-color: rgba(34, 113, 212, 0.58);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 0 4px rgba(47, 157, 245, 0.14);
  color: #202530;
  outline: none;
}

.setting-form .form-control::placeholder,
.setting-form textarea::placeholder {
  color: rgba(76, 90, 112, 0.58);
}

.setting-form .text-danger {
  display: inline-block;
  margin-top: 6px;
  color: #cf3030 !important;
  font-size: 14px;
  font-weight: 700;
}

.setting-form .form-text {
  display: inline-block;
  margin-top: 6px;
  color: rgba(43, 48, 58, 0.58);
  font-size: 13px;
  font-weight: 600;
}

.setting-form-inline-field {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  color: #2b303a;
  font-size: 14px;
  font-weight: 700;
}

.setting-form-inline-field + .setting-form-inline-field {
  margin-top: 10px;
}

.setting-form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
}

.setting-form-action-left,
.setting-form-action-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-form-action-left {
  position: absolute;
  left: 0;
}

.setting-form-action-right {
  justify-content: center;
}

.setting-form .btn {
  min-width: 104px;
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 14px rgba(83, 95, 116, 0.12);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.setting-form .btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 20px rgba(83, 95, 116, 0.16);
}

.setting-form .btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 17, 34, 0.14), 0 4px 10px rgba(83, 95, 116, 0.1);
}

.setting-form .btn-primary {
  border-color: rgba(34, 113, 212, 0.6);
  background: linear-gradient(180deg, #2f9df5 0%, #0068c9 100%);
  color: #fff;
}

.setting-form .btn-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(224, 232, 244, 0.66));
  color: #2b303a;
}

.setting-form .btn-danger {
  border-color: rgba(207, 48, 48, 0.5);
  background: linear-gradient(180deg, rgba(217, 94, 94, 0.95) 0%, rgba(207, 48, 48, 0.95) 100%);
  color: #fff;
}

.setting-form .custom-control {
  min-height: 34px;
  margin: 0 8px 8px 0;
  padding: 0;
}

.setting-form .custom-control-input {
  position: absolute;
  opacity: 0;
}

.setting-form .custom-control-label {
  min-height: 34px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(224, 232, 244, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 5px 12px rgba(83, 95, 116, 0.08);
  color: #2b303a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.setting-form .custom-control-label::before,
.setting-form .custom-control-label::after {
  display: none;
}

.setting-form .custom-control-input:checked + .custom-control-label {
  border-color: rgba(34, 113, 212, 0.62);
  background: linear-gradient(180deg, #2f9df5 0%, #0068c9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 18px rgba(0, 80, 160, 0.18);
  color: #fff;
}

.setting-form .custom-control-input:focus + .custom-control-label {
  box-shadow: 0 0 0 4px rgba(47, 157, 245, 0.14);
}

.open-time-worker-picker {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.open-time-worker-list {
  width: min(100%, 300px);
  max-height: 104px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(37, 50, 65, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 1px 3px rgba(83, 95, 116, 0.08);
}

.open-time-worker-list .custom-control {
  display: inline-block;
  min-height: 18px;
  margin: 0 3px 3px 0;
  padding: 0;
}

.open-time-worker-list .custom-control-label {
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 5px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.open-time-worker-list .custom-control-input:focus + .custom-control-label {
  box-shadow: 0 0 0 3px rgba(47, 157, 245, 0.12);
}

.open-time-worker-selected {
  flex: 1;
  min-width: 180px;
  padding-top: 4px;
  color: rgba(43, 48, 58, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.open-time-date-picker {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 12px;
}

.open-time-date-picker #datepicker {
  flex: 0 0 312px;
}

.open-time-date-picker .ui-datepicker {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(235, 242, 250, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(83, 95, 116, 0.12);
}

.open-time-date-picker .ui-datepicker-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: #202530;
  font-weight: 800;
}

.open-time-date-picker .ui-datepicker-title {
  line-height: 38px;
}

.open-time-date-picker .ui-datepicker-prev,
.open-time-date-picker .ui-datepicker-next {
  position: absolute;
  top: 5px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(76, 90, 112, 0.18);
  border-radius: 8px;
  color: #2b303a;
  font-size: 0;
  cursor: pointer;
}

.open-time-date-picker .ui-datepicker-prev {
  left: 6px;
}

.open-time-date-picker .ui-datepicker-next {
  right: 6px;
}

.open-time-date-picker .ui-datepicker-prev::before,
.open-time-date-picker .ui-datepicker-next::before {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.open-time-date-picker .ui-datepicker-prev::before {
  content: "<";
}

.open-time-date-picker .ui-datepicker-next::before {
  content: ">";
}

.open-time-date-picker .ui-datepicker-prev:hover,
.open-time-date-picker .ui-datepicker-next:hover {
  border-color: rgba(34, 113, 212, 0.34);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.open-time-date-picker .ui-datepicker-calendar {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 4px;
}

.open-time-date-picker .ui-datepicker-calendar th {
  width: auto;
  padding: 2px 0 6px;
  color: rgba(43, 48, 58, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
}

.open-time-date-picker .ui-datepicker-calendar td {
  width: 36px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  text-align: center;
}

.open-time-date-picker .ui-datepicker-calendar a,
.open-time-date-picker .ui-datepicker-calendar span {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #202530;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.open-time-date-picker .ui-datepicker-calendar a:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(34, 113, 212, 0.24);
}

.open-time-date-picker .ui-datepicker-today a {
  box-shadow: inset 0 0 0 2px rgba(34, 113, 212, 0.34);
}

.open-time-date-picker .ui-datepicker-calendar td.open-time-date-selected a {
  background: linear-gradient(180deg, #2f9df5 0%, #0068c9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px rgba(0, 80, 160, 0.18);
  color: #fff !important;
}

.open-time-date-picker .ui-datepicker-other-month span {
  color: rgba(43, 48, 58, 0.28);
}

.open-time-selected-dates {
  flex: 1;
  min-width: 220px;
  /* max-width: 620px; */
  height: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.open-time-selected-dates-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(43, 48, 58, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.open-time-selected-dates #date_list {
  color: #202530;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  word-break: break-word;
}

.setting-section-divider {
  margin: 6px 22px 18px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.setting-subtitle {
  margin: 0 22px 12px;
  color: #202530;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.machine-option-section {
  padding: 0 22px 22px;
}

.machine-option-form {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(231, 238, 247, 0.16));
}

.machine-option-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.machine-option-grid .form-group {
  display: block;
}

.machine-option-grid .col-form-label {
  width: 100%;
  max-width: none;
  margin-bottom: 6px;
  padding: 0 !important;
  color: #202530;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.machine-option-grid .col-3,
.machine-option-grid .col-4,
.machine-option-grid .col-6,
.machine-option-grid .col-8,
.machine-option-grid .col-9 {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  flex: none;
}

.machine-option-grid .form-control {
  width: 100% !important;
  min-height: 38px;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 245, 252, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 5px 12px rgba(83, 95, 116, 0.08);
  color: #202530;
  font-size: 14px;
}

.machine-option-grid .custom-control {
  min-height: 32px;
  margin: 0 6px 6px 0;
  padding: 0;
}

.machine-option-grid .custom-control-input {
  position: absolute;
  opacity: 0;
}

.machine-option-grid .custom-control-label {
  min-height: 32px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(224, 232, 244, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 5px 12px rgba(83, 95, 116, 0.08);
  color: #2b303a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.machine-option-grid .custom-control-label::before,
.machine-option-grid .custom-control-label::after {
  display: none;
}

.machine-option-grid .custom-control-input:checked + .custom-control-label {
  border-color: rgba(34, 113, 212, 0.62);
  background: linear-gradient(180deg, #2f9df5 0%, #0068c9 100%);
  color: #fff;
}

.machine-option-grid .btn {
  min-width: 82px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(34, 113, 212, 0.6);
  background: linear-gradient(180deg, #2f9df5 0%, #0068c9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 6px 14px rgba(0, 80, 160, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.machine-option-grid .btn-secondary {
  margin-left: 6px;
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(224, 232, 244, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 14px rgba(83, 95, 116, 0.12);
  color: #2b303a;
}

.machine-option-table {
  margin: 16px 0 0;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.24);
}

.machine-option-table thead th {
  padding: 12px 14px;
  border: 0;
  color: #202530;
  font-size: 14px;
  font-weight: 800;
}

.machine-option-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  color: #232834;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

.machine-option-table .btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.machine-option-table .edit_option {
  margin-right: 6px;
  border: 1px solid rgba(34, 113, 212, 0.6);
  background: linear-gradient(180deg, #2f9df5 0%, #0068c9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 5px 12px rgba(0, 80, 160, 0.14);
  color: #fff;
}

.machine-option-table .delete_option {
  border: 1px solid rgba(207, 48, 48, 0.5);
  background: linear-gradient(180deg, rgba(217, 94, 94, 0.95) 0%, rgba(207, 48, 48, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 5px 12px rgba(207, 48, 48, 0.14);
  color: #fff;
}

.setting-table-divider {
  color: rgba(43, 48, 58, 0.45);
}

.setting-pagination {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding: 22px 0 6px;
}

.setting-page-button {
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(223, 230, 240, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 6px 14px rgba(109, 120, 140, 0.14);
  color: #313745;
  font-size: 24px;
  line-height: 1;
}

.setting-page-button.is-muted {
  opacity: 0.45;
}

.setting-page-button.is-current {
  font-size: 20px;
  font-weight: 700;
  color: #204f95;
  border-color: rgba(84, 134, 212, 0.5);
}

.setting-page-ellipsis {
  color: #515869;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .setting-panel {
    flex-direction: column;
    padding: 128px 24px 28px;
  }

  .setting-sidebar {
    flex: initial;
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  }

  .setting-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .setting-sidebar-link {
    min-width: 180px;
    min-height: 52px;
    font-size: 18px;
  }

  .setting-sidebar-separator {
    flex: 0 0 100%;
    margin: 4px 0;
  }

  .setting-sidebar-accent {
    left: 18px;
    bottom: -10px;
    top: auto;
    width: 44px;
    height: 5px;
  }

  .setting-content-header {
    flex-direction: column;
    align-items: stretch;
  }

  .setting-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .setting-panel {
    gap: 20px;
    padding: 118px 16px 24px;
  }

  .setting-sidebar-nav {
    flex-direction: column;
  }

  .setting-sidebar-link {
    min-width: 0;
    font-size: 17px;
  }

  .setting-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .setting-button {
    width: 100%;
  }

  .setting-table-shell {
    overflow-x: auto;
  }

  .setting-table {
    min-width: 860px;
  }

  .setting-form {
    min-width: 0;
    padding: 18px;
  }

  .setting-form-table,
  .setting-form-table tbody,
  .setting-form-table tr,
  .setting-form-table th,
  .setting-form-table td {
    display: block;
    width: 100%;
  }

  .setting-form-table {
    border-spacing: 0;
  }

  .setting-form-table tr + tr {
    margin-top: 16px;
  }

  .setting-form-table th {
    padding: 0 0 8px;
  }

  .setting-form-inline-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .setting-form-actions,
  .setting-form-action-left,
  .setting-form-action-right {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .setting-form-action-right {
    margin-left: 0;
  }

  .setting-form .btn {
    width: 100%;
  }

  .setting-form .form-control,
  .setting-form select,
  .setting-form textarea,
  .setting-form input[type="file"],
  .setting-form input[name="memo"],
  .setting-form input[name="machine_memo"],
  .setting-form textarea[name="memo"],
  .setting-form input[name="id"],
  .setting-form input[name="password"],
  .setting-form input[name="machine_id"],
  .setting-form input[name="machine_line"],
  .setting-form input[name="worker_name_kana"],
  .setting-form input[name="factory_name"],
  .setting-form input[name="name"],
  .setting-form input[name="worker_name"],
  .setting-form input[name="machine_name"],
  .setting-form input[type="number"],
  .setting-form input[type="date"],
  .setting-form input[type="time"],
  .setting-form input[name="machine_order"],
  .setting-form select[name="active"],
  .setting-form select[name="role"],
  .setting-form select[name="machine_line"],
  .setting-form select[name="factory_id"],
  .setting-form select[name="operation_process_id"] {
    width: 100%;
  }

  .setting-form input[type="color"] {
    width: 72px;
  }

  .open-time-date-picker {
    flex-direction: column;
  }

  .open-time-date-picker #datepicker,
  .open-time-selected-dates {
    width: 100%;
    max-width: 100%;
  }

  .machine-option-section {
    padding: 0 18px 18px;
  }

  .machine-option-grid {
    grid-template-columns: 1fr;
  }

  .machine-option-grid .btn {
    width: 100%;
  }

  .machine-option-grid .btn-secondary {
    margin-top: 8px;
    margin-left: 0;
  }

  .machine-option-table {
    min-width: 680px;
  }
}
.setting-table-name-cell {
  vertical-align: middle;
}

.stop-factor-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  line-height: 1.2;
}

.sf_color {
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(35, 40, 52, 0.14);
}

.sf_tp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.sf_tp.y {
  border: 1px solid rgba(255, 193, 7, 0.42);
  background: rgba(255, 193, 7, 0.22);
  color: #8a6400;
}

.sf_tp.n {
  border: 1px solid rgba(133, 138, 143, 0.28);
  background: rgba(133, 138, 143, 0.16);
  color: #51575f;
}
.close-day-section {
  max-width: 880px;
  padding: 20px 22px 24px;
  margin: 0;
}

.close-day-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.close-day-filter-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #2b303a;
  font-size: 14px;
  font-weight: 800;
}

.close-day-filter .form-control {
  width: 104px;
  min-height: 38px;
  margin-bottom: 0;
  padding: 7px 34px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background:
    linear-gradient(45deg, transparent 50%, #4c5a70 50%) calc(100% - 18px) 16px / 6px 6px no-repeat,
    linear-gradient(135deg, #4c5a70 50%, transparent 50%) calc(100% - 12px) 16px / 6px 6px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 245, 252, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 6px 14px rgba(83, 95, 116, 0.08);
  color: #202530;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  appearance: none;
}

.close-day-calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 6px;
}

.close-day-calendar th {
  padding: 0 8px 8px;
  color: #202530;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.close-day-calendar th:first-child,
.close-day-calendar th:last-child {
  color: #cf3030;
}

.close-day-cell {
  height: 76px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(224, 232, 244, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 6px 14px rgba(83, 95, 116, 0.08);
  text-align: left;
  vertical-align: top;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.close-day-cell:not(.is-empty):hover {
  transform: translateY(-1px);
  border-color: rgba(34, 113, 212, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 20px rgba(83, 95, 116, 0.14);
}

.close-day-cell.is-closed {
  border-color: rgba(207, 48, 48, 0.34);
  background: linear-gradient(180deg, rgba(255, 238, 239, 0.82), rgba(249, 207, 213, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 8px 18px rgba(207, 48, 48, 0.1);
}

.close-day-cell.is-empty {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.close-day-link {
  width: 100%;
  height: 100%;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #2b303a;
  text-decoration: none;
}

.close-day-link:hover {
  color: #2b303a;
  text-decoration: none;
}

.close-day-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: #202530;
  font-size: 14px;
  font-weight: 800;
}

.close-day-cell.is-closed .close-day-number {
  background: linear-gradient(180deg, rgba(217, 94, 94, 0.96), rgba(207, 48, 48, 0.96));
  color: #fff;
  box-shadow: 0 6px 14px rgba(207, 48, 48, 0.18);
}

.cl_memo {
  color: rgba(43, 48, 58, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.close-day-note {
  margin: 14px 6px 0;
  color: rgba(76, 90, 112, 0.86);
  font-size: 14px;
  font-weight: 600;
}

.close-day-date-value {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(224, 232, 244, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 6px 14px rgba(83, 95, 116, 0.08);
  color: #202530;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .close-day-section {
    min-width: 620px;
    max-width: none;
    padding: 18px;
  }

  .close-day-filter {
    align-items: stretch;
  }

  .close-day-cell {
    height: 72px;
  }
}

.setting-table-shell select {
  width: 85px;
  height: 38px;
  border-radius: 12px;
  border: none;
  /* margin-left: 65px; */
  text-align: center;
  margin-bottom: 6px;
}
.element-monitor .camera-menu {
  background: linear-gradient(-50deg, rgba(255, 255, 255, 0.01) -33%, rgba(255, 255, 255, 0.9) 110%);
  float: right;
  width: auto;
  height: auto;
  padding: 6px;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  /* border: 1px solid rgba(255, 255, 255, 0.3); */
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 17, 34, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  margin-top: -12px;
}

.start_stream {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 35px;
  background: rgba(255, 255, 255, 0.18);
  /* border: 1px solid rgba(255, 255, 255, 0.36) !important; */
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 4px 10px rgba(0, 17, 34, 0.12);
  color: #004488;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.start_stream:hover {
  background: linear-gradient(180deg, rgba(47, 157, 245, 0.82) 0%, rgba(0, 104, 201, 0.76) 100%);
  border-color: rgba(180, 222, 255, 0.72) !important;
  box-shadow: 0 10px 22px rgba(0, 80, 160, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.start_stream:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 17, 34, 0.2), inset 0 2px 5px rgba(0, 17, 34, 0.18);
}

.start_stream:focus-visible {
  outline: 3px solid rgba(76, 169, 255, 0.48);
  outline-offset: 3px;
}

.start_stream img {
  width: 23px !important;
  max-height: 23px;
  object-fit: contain;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.start_stream:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.04);
}

.product_select {
  top: -2px;
  width: 0;
  z-index: 250;
  pointer-events: none;
}
.product_select_line {
  margin-left: 15px;
  width: 0;
  height: 30px;
  border-left: 2px solid #1a7cd4;
  filter: drop-shadow(0 0 3px rgba(26, 124, 212, 0.35));
}

.select_time {
  position: absolute;
  top: 32px;
  left: 15px;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 4px;
  background: #1a7cd4;
  color: #ffffff;
  font-size: 11px !important;
  font-weight: 600;
}

.select_time::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-right: 4px solid transparent;
  border-bottom: 4px solid #1a7cd4;
  border-left: 4px solid transparent;
}
