@import url("PannelRightLayout.css?v=20261103-1");

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sora-latin-400-normal-CRt88UEn.woff2") format("woff2");
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/sora-latin-500-normal-01eiPEn0.woff2") format("woff2");
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-latin-600-normal-Cdg4DaK0.woff2") format("woff2");
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-latin-700-normal-9waGdLWo.woff2") format("woff2");
}

:where(#static-clockinout-tech-modal) .sc2-tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  align-content: start;
}
:where(#static-clockinout-tech-modal) .sc2-tech {
  --sc2-tech-color: #f05a7e;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 12px;
  border-radius: 14px;
  /* fallback trắng nếu trình duyệt không hỗ trợ color-mix */
  background: #fff;
  background: color-mix(in srgb, var(--sc2-tech-color) 6%, #fff);
  border: 2px solid var(--sc2-frame-border);
  border: 2px solid color-mix(in srgb, var(--sc2-tech-color) 86%, #fff);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--sc2-tech-color) 12%, transparent);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
:where(#static-clockinout-tech-modal) .sc2-tech:hover {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--sc2-tech-color) 22%, transparent);
}
:where(#static-clockinout-tech-modal) .sc2-tech-list .sc2-tech {
  user-select: none;
  -webkit-user-select: none;
}
:where(#static-clockinout-tech-modal) .sc2-tech--busy {
  background: #fff5f7;
  background: color-mix(in srgb, var(--sc2-tech-color) 12%, #fff);
  border-color: color-mix(in srgb, var(--sc2-tech-color) 36%, #fff);
}
:where(#static-clockinout-tech-modal) .sc2-tech__avatar-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}
:where(#static-clockinout-tech-modal) .sc2-tech__status {
  height: 26px;
  position: relative;
  top: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
}
:where(#static-clockinout-tech-modal) .sc2-tech--ready .sc2-tech__status {
  color: #0d9488;
  background: #d1fae5;
  border: 1px solid #0d9488;
}
:where(#static-clockinout-tech-modal) .sc2-tech--busy .sc2-tech__status {
  color: #fff;
  background: #e11d48;
  border: 1px solid #e11d48;
}
:where(#static-clockinout-tech-modal) .sc2-tech__avatar {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--sc2-tech-color);
  background: #fff;
  overflow: hidden;
}
:where(#static-clockinout-tech-modal) .sc2-tech__initials {
  font-size: 30px;
  font-weight: 800;
  color: #1f2733; /* chữ initials đen (giống bản cũ) */
  text-transform: uppercase;
}
:where(#static-clockinout-tech-modal) .sc2-tech__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--sc2-header-fg);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(#static-clockinout-tech-modal) .sc2-tech-list.is-compact {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
:where(#static-clockinout-tech-modal) .sc2-tech-list.is-compact .sc2-tech {
  padding: 10px 8px 8px;
  gap: 5px;
}
:where(#static-clockinout-tech-modal) .sc2-tech-list.is-compact .sc2-tech__avatar {
  width: 56px;
  height: 56px;
  border-width: 2px;
}
:where(#static-clockinout-tech-modal) .sc2-tech-list.is-compact .sc2-tech__initials {
  font-size: 20px;
}
:where(#static-clockinout-tech-modal) .sc2-tech-list.is-compact .sc2-tech__name {
  font-size: 13px;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech.sc2-tech--profile {
  --sc2-tech-avatar-size: min(132px, 100cqw);
  --sc2-tech-avatar-offset: 8px;
  --sc2-tech-status-overlap: 12px;
  --sc2-tech-activity-height: 24px;
  --sc2-tech-soft-border: color-mix(in srgb, var(--sc2-tech-color) 30%, #fff);
  box-sizing: border-box;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 0;
  padding: 8px 12px;
  border: 1px solid var(--sc2-tech-soft-border);
  border-radius: var(--px-8);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--sc2-tech-color) 12%, #fff) 0%,
    color-mix(in srgb, var(--sc2-tech-color) 4%, #fff) 55%,
    #fff 100%
  );
  box-shadow: 0 6px 18px color-mix(in srgb, var(--sc2-tech-color) 12%, transparent);
  font-family: "Be Vietnam Pro", var(--bs-font-sans-serif, sans-serif);
  text-align: center;
  letter-spacing: 0;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile:hover {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--sc2-tech-color) 20%, transparent);
  transform: none;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile .sc2-tech__avatar-wrap {
  width: var(--sc2-tech-avatar-size);
  height: var(--sc2-tech-avatar-size);
  flex: 0 0 auto;
  margin: 0 auto;
  align-self: center;
  grid-area: auto;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile .sc2-tech__avatar {
  width: 100%;
  height: 100%;
  padding: 7px;
  border: 0;
  background: var(--sc2-tech-soft-border);
}

:where(#static-clockinout-tech-modal)
:is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile .sc2-tech__initials {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 3px solid #fff;
  border-radius: 50%;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile .sc2-tech__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeee;
  color: var(--sc2-tech-color);
  font-size: 36px;
  font-weight: 800;
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 3px solid #ffffff;
  border-radius: 50%;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile .sc2-tech__status {
  --sc2-tech-status-color: #059669;
  position: absolute;
  z-index: 4;
  top: calc(
    var(--sc2-tech-avatar-offset) + var(--sc2-tech-avatar-size) - var(--sc2-tech-status-overlap)
  );
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-height: 26px;
  height: auto;
  padding: 4px 11px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--sc2-tech-status-color);
  color: #fff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--sc2-tech-status-color) 35%, transparent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0;
  white-space: nowrap;
  animation: none;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile.sc2-tech--busy .sc2-tech__status {
  --sc2-tech-status-color: #e11d48;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile.sc2-tech--clocked-out .sc2-tech__status {
  --sc2-tech-status-color: #6b7280;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile .sc2-tech__status::after {
  content: none;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile .sc2-tech__status i {
  font-size: 9px;
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile .sc2-tech__name {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

@keyframes sc2-tech-profile-dot {
  50% {
    opacity: 0.35;
  }
}

:where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile.sc2-tech--busy .sc2-tech__status i {
  animation: sc2-tech-profile-dot 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  :where(#static-clockinout-tech-modal) :is(#sc2-tech-list, [data-sc2-tech-view-list], .sc2-tech-card-host) .sc2-tech--profile.sc2-tech--busy .sc2-tech__status i {
    animation: none;
  }
}

:where(#static-clockinout-tech-modal) :is(:is(#sc2-tech-list, [data-sc2-tech-view-list]).is-compact, .sc2-tech-card-host:has(> .sc2-tech--compact))
  .sc2-tech.sc2-tech--profile {
  --sc2-tech-avatar-size: min(76px, 100cqw);
  --sc2-tech-avatar-offset: 6px;
  --sc2-tech-status-overlap: 10px;
  --sc2-tech-activity-height: 16px;
  padding: 4px 8px;
  border-radius: 8px;
}

:where(#static-clockinout-tech-modal) :is(:is(#sc2-tech-list, [data-sc2-tech-view-list]).is-compact, .sc2-tech-card-host:has(> .sc2-tech--compact))
  .sc2-tech--profile
  .sc2-tech__avatar-wrap {
  margin-top: 0;
}

:where(#static-clockinout-tech-modal) :is(:is(#sc2-tech-list, [data-sc2-tech-view-list]).is-compact, .sc2-tech-card-host:has(> .sc2-tech--compact))
  .sc2-tech--profile
  .sc2-tech__avatar {
  padding: 5px;
}

:where(#static-clockinout-tech-modal)
:is(:is(#sc2-tech-list, [data-sc2-tech-view-list]).is-compact, .sc2-tech-card-host:has(> .sc2-tech--compact))
  .sc2-tech--profile
  .sc2-tech__initials {
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-width: 2px;
}

:where(#static-clockinout-tech-modal) :is(:is(#sc2-tech-list, [data-sc2-tech-view-list]).is-compact, .sc2-tech-card-host:has(> .sc2-tech--compact))
  .sc2-tech--profile
  .sc2-tech__initials {
  font-size: 24px;
}



:where(#static-clockinout-tech-modal) :is(:is(#sc2-tech-list, [data-sc2-tech-view-list]).is-compact, .sc2-tech-card-host:has(> .sc2-tech--compact))
  .sc2-tech--profile
  .sc2-tech__status {
  min-height: 22px;
  padding: 2px 7px;
  gap: 4px;
  font-size: 9px;
  line-height: 12px;
}

:where(#static-clockinout-tech-modal) :is(:is(#sc2-tech-list, [data-sc2-tech-view-list]).is-compact, .sc2-tech-card-host:has(> .sc2-tech--compact))
  .sc2-tech--profile
  .sc2-tech__status
  i {
  font-size: 7px;
}

:where(#static-clockinout-tech-modal) :is(:is(#sc2-tech-list, [data-sc2-tech-view-list]).is-compact, .sc2-tech-card-host:has(> .sc2-tech--compact))
  .sc2-tech--profile
  .sc2-tech__name {
  margin-top: 12px;
  font-size: 13px;
  line-height: 18px;
}

:where(#static-clockinout-tech-modal) .sc2-tech-card-host > .sc2-tech.sc2-tech--profile {
  --sc2-tech-card-width: 180px;
  --sc2-tech-card-height: 280px;
  width: min(var(--sc2-tech-card-width), 100%);
  height: var(--sc2-tech-card-height);
  margin-inline: auto;
}

:where(#static-clockinout-tech-modal) .sc2-tech-card-host > .sc2-tech.sc2-tech--compact {
  --sc2-tech-card-width: 120px;
  --sc2-tech-card-height: 180px;
}

#static-clockinout-tech-modal div.form-list-tech-append.management-tech.sc2-tech-list {
  --sc2-frame-border: var(--bs-border-color);
  --sc2-header-fg: #1f2733;
  --sc2-muted: #5f6b7a;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  overflow: auto;
  align-content: start;
}

#static-clockinout-tech-modal
  div.form-list-tech-append.management-tech
  .management-attendance-card-wrap {
  width: 100%;
  min-width: 0;
}

#static-clockinout-tech-modal .management-attendance-card .sc2-tech__status {
  pointer-events: none;
}

#static-clockinout-tech-modal .management-attendance-card.sc2-tech--profile.sc2-tech--compact {
  --sc2-tech-card-height: 148px;
  --sc2-tech-avatar-offset: 28px;
  --sc2-tech-avatar-size: min(
    76px,
    100cqw,
    calc(var(--sc2-tech-card-height) - var(--sc2-tech-avatar-offset) - 44px)
  );
  padding-top: var(--sc2-tech-avatar-offset);
  justify-content: flex-start;
}

#static-clockinout-tech-modal
  .management-attendance-card.sc2-tech--profile.sc2-tech--compact[data-layout="grid"]
  .sc2-tech__name {
  margin-top: 18px;
}

#static-clockinout-tech-modal .management-attendance-card__action {
  position: absolute;
  z-index: 5;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

#static-clockinout-tech-modal .management-attendance-card__action:is(:hover, :focus-visible) {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

@media (pointer: coarse) {
  #static-clockinout-tech-modal .management-attendance-card.sc2-tech--profile.sc2-tech--compact {
    --sc2-tech-avatar-offset: 48px;
  }

  #static-clockinout-tech-modal .management-attendance-card__action {
    top: 2px;
    right: 2px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 18px;
  }
}

#static-clockinout-tech-modal .management-attendance-card__action.in {
  color: var(--bs-green);
}

@media (min-width: 769px) {
  #static-clockinout-tech-modal div.form-list-tech-append.management-tech.sc2-tech-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }
}

@media (max-width: 1024px) {
  #static-clockinout-tech-modal.static-right-side {
    width: 70vw;
  }
}

@media (max-width: 768px) {
  #static-clockinout-tech-modal.static-right-side {
    width: 80vw;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  #static-clockinout-tech-modal.static-right-side {
    width: 82vw;
    bottom: -32px;
  }
}

#static-clockinout-tech-modal .area-clockin-clockout-tech {
  --attendance-header-height: 64px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0 16px max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: #fff;
}

#static-clockinout-tech-modal .area-clockin-clockout-tech > :is(.area-clockin-tech, .area-clockout-tech) {
  display: flex;
  flex-direction: column;
  flex: 1 1 var(--attendance-header-height);
  height: auto;
  min-height: var(--attendance-header-height);
  padding: 0;
  overflow: visible;
  background: #fff;
  transition: flex-grow 240ms ease;
}

#static-clockinout-tech-modal .area-clockin-clockout-tech > .area-clockin-tech {
  position: relative;
}

#static-clockinout-tech-modal .area-clockin-clockout-tech > .area-clockin-tech::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-bottom: 1px solid #e9edeb;
  pointer-events: none;
  z-index: 11;
}

#static-clockinout-tech-modal .area-clockout-tech {
  margin-top: 0;
}

#static-clockinout-tech-modal :is(.area-clockin-tech, .area-clockout-tech) > .title-descriptions {
  position: relative;
  top: auto;
  z-index: 10;
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  height: var(--attendance-header-height);
  min-height: var(--attendance-header-height);
  padding: 10px 0;
  box-sizing: border-box;
  background: #fff;
}

#static-clockinout-tech-modal .attendance-section-heading {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

#static-clockinout-tech-modal .attendance-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--bs-main-700);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  letter-spacing: 0;
}

#static-clockinout-tech-modal .area-clockout-tech .attendance-section-toggle {
  color: #59656a;
}

#static-clockinout-tech-modal .attendance-section-toggle > span {
  color: inherit;
  font: inherit;
  text-transform: none;
}

#static-clockinout-tech-modal .attendance-section-toggle .quantity {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: var(--bs-main-50);
  font-size: 12px;
  line-height: 1;
}

#static-clockinout-tech-modal .area-clockout-tech .quantity {
  background: #eef0f1;
}

#static-clockinout-tech-modal .attendance-section-toggle .attendance-section-icon {
  flex: none;
  color: inherit;
  font-size: 18px;
}

#static-clockinout-tech-modal .attendance-section-chevron {
  flex: none;
  margin-left: 2px;
  color: #718078;
  font-size: 11px;
  transition: transform 0.16s ease;
}

#static-clockinout-tech-modal .attendance-section-toggle:hover {
  background: #f3f5f4;
}

#static-clockinout-tech-modal .attendance-section-toggle:focus-visible,

#static-clockinout-tech-modal .title-descriptions .btn-clock:focus-visible {
  outline: 2px solid var(--bs-main);
  outline-offset: 2px;
}

#static-clockinout-tech-modal :is(.area-clockin-tech, .area-clockout-tech) .title-descriptions .btn.btn-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 124px;
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  background: #fff;
  color: var(--bs-red);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

#static-clockinout-tech-modal .title-descriptions .btn-clock span {
  color: inherit;
  font: inherit;
  text-transform: none;
}

#static-clockinout-tech-modal .area-clockout-tech .title-descriptions .btn.btn-clock.in {
  background: var(--bs-main);
  border-color: var(--bs-main);
  color: #fff;
}

#static-clockinout-tech-modal .title-descriptions .btn-clock.out:hover:not(:disabled) {
  background: color-mix(in srgb, var(--bs-red) 6%, #fff);
}

#static-clockinout-tech-modal .title-descriptions .btn-clock.in:hover:not(:disabled) {
  background: var(--bs-main-700);
}

#static-clockinout-tech-modal .title-descriptions .btn-clock:disabled {
  opacity: 0.5;
  cursor: default;
}

#static-clockinout-tech-modal .attendance-section-body {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #f2f3f3;
}


#static-clockinout-tech-modal .attendance-empty[hidden] {
  display: none;
}

#static-clockinout-tech-modal .attendance-section-body > div.form-list-tech-append.management-tech.sc2-tech-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  height: auto;
  min-height: 0;
  padding: 12px;
  overflow: visible;
  background: transparent;
  transition: none;
}

#static-clockinout-tech-modal .attendance-section-body > div.form-list-tech-append:empty {
  display: none;
}

#static-clockinout-tech-modal .attendance-empty {
  margin: 0;
  padding: 28px 12px;
  color: #697574;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  #static-clockinout-tech-modal .area-clockin-clockout-tech {
    padding-left: 10px;
    padding-right: 10px;
  }

  #static-clockinout-tech-modal .attendance-section-body > div.form-list-tech-append.management-tech.sc2-tech-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
  }
}

@media (max-width: 480px) {
  #static-clockinout-tech-modal .area-clockin-clockout-tech {
    --attendance-header-height: 56px;
  }

  #static-clockinout-tech-modal :is(.area-clockin-tech, .area-clockout-tech) > .title-descriptions {
    gap: 6px;
    padding: 6px 0;
  }

  #static-clockinout-tech-modal :is(.area-clockin-tech, .area-clockout-tech) .title-descriptions .btn.btn-clock {
    min-height: 44px;
  }

  #static-clockinout-tech-modal .attendance-section-toggle {
    min-height: 44px;
  }

  #static-clockinout-tech-modal .attendance-section-body > div.form-list-tech-append.management-tech.sc2-tech-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (pointer: coarse) {
  #static-clockinout-tech-modal .attendance-section-toggle,

  #static-clockinout-tech-modal :is(.area-clockin-tech, .area-clockout-tech) .title-descriptions .btn.btn-clock {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #static-clockinout-tech-modal .attendance-section-chevron,

  #static-clockinout-tech-modal .area-clockin-clockout-tech > :is(.area-clockin-tech, .area-clockout-tech) {
    transition: none;
  }
}

@media (max-width: 768px) {
  #static-clockinout-tech-modal.static-right-side {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: var(--sc2-visual-viewport-h, 100dvh);
    bottom: auto;
    overflow: hidden;
    background: var(--bs-surface-bg, #fff);
    box-shadow: none;
    z-index: 1060;
  }


  #static-clockinout-tech-modal .area-clockin-clockout-tech {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  #static-clockinout-tech-modal .area-clockin-clockout-tech .header-clock {
    height: 52px;
    flex: 0 0 52px;
    padding: 0 56px 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--bs-border-color);
  }

  #static-clockinout-tech-modal .header-clock p {
    margin: 0;
    color: var(--bs-text);
    font-size: 16px;
    font-weight: 700;
  }

  #static-clockinout-tech-modal .title-descriptions .btn.btn-clock {
    min-width: 88px;
    height: 36px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  #static-clockinout-tech-modal div.form-list-tech-append.management-tech {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    height: 100%;
    padding: 10px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bs-body-bg);
    overscroll-behavior: contain;
  }

  #static-clockinout-tech-modal div.form-list-tech-append.management-tech .wrap-tech-detail {
    width: 100%;
  }

}

#static-clockinout-tech-modal.manage-attendance-shell > .menu-shell-header {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--bs-border-color);
}

#static-clockinout-tech-modal.manage-attendance-shell > .menu-shell-header h2 {
  color: var(--bs-text);
  font-size: 18px;
  line-height: 24px;
}

#static-clockinout-tech-modal.manage-attendance-shell .menu-shell-body {
  padding: 0;
  overflow: hidden;
}

#static-clockinout-tech-modal.manage-attendance-shell .menu-shell-content {
  height: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

#static-clockinout-tech-modal.manage-attendance-shell .header-clock {
  display: none;
}

/* Old integration */
#static-clockinout-tech-modal.manage-attendance-shell {
  --bs-main: var(--main-color, var(--bs-dudu));
  --bs-main-700: color-mix(in srgb, var(--bs-main) 85%, #000);
  --bs-main-50: color-mix(in srgb, var(--bs-main) 6%, #fff);
  --bs-border-color: #dce3e0;
  --bs-text: #263238;
  --bs-heading-color: #263238;
  --bs-text-muted: #697574;
  --bs-surface-bg: #fff;
  --bs-body-bg: #f2f3f3;
  --bs-green: #198754;
  --bs-red: #ff6b6b;
  --sc2-header-fg: #1f2733;
  --sc2-muted: #5f6b7a;
  --px-8: 8px;
  min-width: 0;
  inset: auto;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}

#static-clockinout-tech-modal.manage-attendance-shell,
#static-clockinout-tech-modal.manage-attendance-shell :not(i):not([class*="fa-"]) {
  font-family: Sora, sans-serif !important;
  letter-spacing: 0;
}

#static-clockinout-tech-modal.manage-attendance-shell button {
  box-shadow: none;
}

#static-clockinout-tech-modal.manage-attendance-shell button::before,
#static-clockinout-tech-modal.manage-attendance-shell button::after {
  content: none;
}

#static-clockinout-tech-modal.manage-attendance-shell .sc2-tech--ready .sc2-tech__status {
  --sc2-tech-status-color: #218b39;
}

#static-clockinout-tech-modal.manage-attendance-shell .management-attendance-card__action:disabled {
  opacity: .5;
  cursor: wait;
}

#static-clockinout-tech-modal.manage-attendance-shell .sc2-tech__name {
  color: var(--sc2-header-fg);
}

#static-clockinout-tech-modal.manage-attendance-shell .sc2-tech__initials {
  color: #263238;
  background: #f3f4f6;
}

#static-clockinout-tech-modal.manage-attendance-shell .sc2-tech__photo {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  box-sizing: border-box;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

#static-clockinout-tech-modal.manage-attendance-shell .sc2-tech__avatar.has-photo .sc2-tech__initials {
  visibility: hidden;
}

#static-clockinout-tech-modal.manage-attendance-shell .title-descriptions {
  margin: 0;
}

#static-clockinout-tech-modal.manage-attendance-shell .attendance-section-chevron {
  font-size: 11px;
}

#static-clockinout-tech-modal.manage-attendance-shell .attendance-section-toggle > span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-template-columns: none;
  min-width: 92px;
}

#static-clockinout-tech-modal.manage-attendance-shell .title-descriptions .btn-clock {
  line-height: 18px;
}

#static-clockinout-tech-modal.manage-attendance-shell .title-descriptions .btn-clock > i {
  font-size: inherit;
}

#static-clockinout-tech-modal.manage-attendance-shell .management-attendance-card__action {
  font-weight: 500;
  line-height: 16px;
}

#static-clockinout-tech-modal.manage-attendance-shell .attendance-section-toggle .quantity {
  width: auto;
  color: inherit;
}

#static-clockinout-tech-modal.manage-attendance-shell .form-list-tech-append {
  border-radius: 0;
  box-shadow: none;
}

#static-clockinout-tech-modal.manage-attendance-shell .form-list-tech-append:empty {
  display: none;
}

#static-clockinout-tech-modal.manage-attendance-shell .attendance-section-body {
  position: relative;
}

@media (max-width: 768px) {
  body:has(#static-clockinout-tech-modal.manage-attendance-shell:not([hidden])) #sc-tools-toggle {
    display: none;
  }

  #static-clockinout-tech-modal.manage-attendance-shell {
    border-start-start-radius: 0;
    border-start-end-radius: 0;
  }

  #static-clockinout-tech-modal.manage-attendance-shell > .menu-shell-header {
    box-sizing: border-box;
    padding: 6px 12px 6px 16px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell > .menu-shell-header h2 {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .menu-shell-header .menu-shell-close {
    width: 44px;
    height: 44px;
    flex: none;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .attendance-section-toggle {
    gap: 6px;
    padding-inline: 4px;
    font-size: 13px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .attendance-section-toggle > span:nth-child(2) {
    min-width: 0;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .attendance-section-toggle .attendance-section-icon {
    font-size: 16px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .attendance-section-body {
    border-radius: 8px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .attendance-section-body > div.form-list-tech-append.management-tech.sc2-tech-list {
    gap: 6px;
    padding: 6px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .area-clockin-clockout-tech > section:has(.attendance-empty:not([hidden])) {
    flex: 0 0 auto;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .attendance-section-body:has(.attendance-empty:not([hidden])) {
    flex: none;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .attendance-empty {
    padding: 14px 8px;
    font-size: 12px;
    line-height: 18px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .sc2-tech-card-host > .management-attendance-card.sc2-tech--compact {
    --sc2-tech-card-height: 120px;
    --sc2-tech-avatar-offset: 28px;
    --sc2-tech-avatar-size: 40px;
    box-sizing: border-box;
    width: 100%;
    padding-inline: 6px;
    border-radius: 8px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .management-attendance-card.sc2-tech--compact[data-layout="grid"] .sc2-tech__name {
    margin-top: 14px;
    font-size: 12px;
    line-height: 17px;
  }

  #static-clockinout-tech-modal.manage-attendance-shell .management-attendance-card__action {
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 16px;
  }
}

#static-clockinout-tech-modal.manage-attendance-shell :is(.attendance-section-body, .form-list-tech-append)::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

#static-clockinout-tech-modal.manage-attendance-shell :is(.attendance-section-body, .form-list-tech-append)::-webkit-scrollbar-track {
  background: transparent;
}

#static-clockinout-tech-modal.manage-attendance-shell :is(.attendance-section-body, .form-list-tech-append)::-webkit-scrollbar-thumb {
  background: #d5ddd8;
  border-radius: 99px;
}

#static-clockinout-tech-modal.manage-attendance-shell[aria-busy="true"] .attendance-section-body::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: 2px solid #dce3e0;
  border-top-color: var(--bs-main);
  border-radius: 50%;
  animation: attendance-loading 800ms linear infinite;
}

@keyframes attendance-loading {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #static-clockinout-tech-modal.manage-attendance-shell[aria-busy="true"] .attendance-section-body::after {
    animation: none;
  }
}
