:root {
  --app-sidebar-width: 216px;
  --app-sidebar-collapsed-width: 68px;
  --app-sidebar-active-width: var(--app-sidebar-width);
  --attendance-table-min-width: 1276px;
  --late-night-rest-column-width: 76px;
  --note-column-width: 150px;
  --project-work-width: 406px;
  --table-control-row-height: 38px;
  --time-leave-column-width: 76px;
  color-scheme: light;
  font-family:
    "Yu Gothic UI", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #eef2f5;
  color: #1e252c;
}

html {
  scrollbar-gutter: stable;
}

.app-shell-page {
  background: #eef2f5;
}

.app-sidebar {
  background: #26323d;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: width 0.16s ease;
  z-index: 40;
}

.app-sidebar-brand {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 10px;
}

.app-sidebar-brand-main {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.app-sidebar-collapse-button {
  align-items: center;
  background: #26323d;
  border: 1px solid rgba(215, 226, 234, 0.34);
  border-radius: 999px;
  color: #d7e2ea;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 26px;
  justify-content: center;
  margin-top: -13px;
  min-height: 26px;
  padding: 0;
  position: absolute;
  right: -13px;
  top: 50%;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
  width: 26px;
  z-index: 2;
}

.app-sidebar-collapse-button:hover,
.app-sidebar-collapse-button:focus {
  background: #33424f;
  border-color: rgba(215, 226, 234, 0.58);
  outline: none;
}

.app-sidebar-collapse-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(148, 198, 189, 0.45);
}

.app-sidebar-logo-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.app-sidebar-logo-link:hover,
.app-sidebar-logo-link:focus {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.app-sidebar-logo-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(148, 198, 189, 0.35);
}

.app-sidebar-logo {
  display: block;
  height: auto;
  width: 24px;
}

.app-sidebar-link-icon,
.app-sidebar-logout-icon,
.app-sidebar-collapse-button .app-sidebar-link-icon {
  display: block;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.app-sidebar-collapse-button .app-sidebar-link-icon {
  height: 15px;
  width: 15px;
}

.app-sidebar-brand-user {
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.app-sidebar-brand-user #sidebarEmployeeCode {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-brand-user strong {
  font-size: 14px;
  line-height: 1.1;
}

.app-sidebar-environment {
  align-self: flex-start;
  background: #33424f;
  border: 1px solid #516371;
  border-radius: 999px;
  color: #c9d3dc;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-left: 42px;
  padding: 4px 7px;
}

.app-sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding: 0 8px;
}

.app-sidebar-section {
  border-top: 1px solid #3f4f5c;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 10px;
}

.app-sidebar-section-title {
  color: #9fb0bf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 8px 10px 4px;
}

.app-sidebar-category {
  border-top: 1px solid #3f4f5c;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  width: 100%;
}

.app-sidebar-category:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.app-sidebar-category-heading {
  align-items: center;
  color: #9fb0bf;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 28px;
  padding: 6px 10px;
  text-align: left;
  width: 100%;
}

.app-sidebar-category-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-category-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-sidebar-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d7e2ea;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  line-height: 1.2;
  min-height: 36px;
  padding: 9px 10px;
  text-decoration: none;
}

.app-sidebar-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-link:hover {
  background: #33424f;
  border-color: #526677;
  color: #ffffff;
}

.app-sidebar-link.is-active {
  background: #e9f3f1;
  border-color: #94c6bd;
  color: #1f4f47;
}

.app-sidebar-footer {
  border-top: 1px solid #3f4f5c;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
}

.app-sidebar-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app-sidebar-user strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-user span {
  color: #b8c6d1;
  font-size: 12px;
  font-weight: 700;
}

.app-sidebar-logout.secondary-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d7e2ea;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: flex-start;
  line-height: 1.2;
  min-height: 36px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.app-sidebar-logout.secondary-button:hover,
.app-sidebar-logout.secondary-button:focus {
  background: #33424f;
  border-color: #526677;
  color: #ffffff;
  outline: none;
}

.app-sidebar-logout.secondary-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(148, 198, 189, 0.35);
}

.page-action-bar {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.page-action-bar h1 {
  color: #20313c;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.page-action-bar p {
  color: #5b6b76;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
}

.page-action-buttons {
  align-items: center;
  display: flex;
  gap: 8px;
}

@media (min-width: 961px) {
  .app-shell-page {
    --app-sidebar-active-width: var(--app-sidebar-width);
    padding-left: var(--app-sidebar-active-width);
    transition: padding-left 0.16s ease;
  }

  .app-shell-page > main {
    transition: margin 0.16s ease;
  }

  .app-sidebar {
    bottom: 0;
    left: 0;
    position: fixed;
    top: 0;
    width: var(--app-sidebar-active-width);
  }

  .app-sidebar-collapse-button {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .app-sidebar.is-toggle-visible .app-sidebar-collapse-button,
  .app-sidebar:hover .app-sidebar-collapse-button,
  .app-sidebar:focus-within .app-sidebar-collapse-button,
  .app-sidebar-collapse-button:focus-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .app-shell-page.is-sidebar-collapsed {
    --app-sidebar-active-width: var(--app-sidebar-collapsed-width);
  }

  .app-shell-page.is-sidebar-collapsed > main[class^="system-"],
  .app-shell-page.is-sidebar-collapsed > main[class*=" system-"] {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
  }

  .app-sidebar.is-collapsed {
    gap: 10px;
    width: var(--app-sidebar-collapsed-width);
  }

  .app-sidebar.is-collapsed .app-sidebar-brand {
    align-items: center;
    padding: 12px 8px 8px;
  }

  .app-sidebar.is-collapsed .app-sidebar-brand-main {
    flex-direction: column;
    gap: 8px;
  }

  .app-sidebar.is-collapsed .app-sidebar-brand-user,
  .app-sidebar.is-collapsed .app-sidebar-environment {
    display: none;
  }

  .app-sidebar.is-collapsed .app-sidebar-nav {
    align-items: center;
    padding: 0 8px;
  }

  .app-sidebar.is-collapsed .app-sidebar-section {
    align-items: center;
    width: 100%;
  }

  .app-sidebar.is-collapsed .app-sidebar-category {
    align-items: center;
    margin-top: 6px;
    padding-top: 6px;
    width: 100%;
  }

  .app-sidebar.is-collapsed .app-sidebar-section-title {
    display: none;
  }

  .app-sidebar.is-collapsed .app-sidebar-category-heading {
    display: none;
  }

  .app-sidebar.is-collapsed .app-sidebar-category-panel {
    align-items: center;
    display: flex;
    width: 100%;
  }

  .app-sidebar.is-collapsed .app-sidebar-link {
    justify-content: center;
    min-height: 40px;
    padding: 10px;
    width: 40px;
  }

  .app-sidebar.is-collapsed .app-sidebar-link-label,
  .app-sidebar.is-collapsed .app-sidebar-logout-label {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .app-sidebar.is-collapsed .app-sidebar-footer {
    padding: 10px 8px 12px;
  }

  .app-sidebar.is-collapsed .app-sidebar-logout.secondary-button {
    min-height: 40px;
    padding: 10px;
    width: 40px;
  }
}

@media (max-width: 960px) {
  .app-sidebar-collapse-button {
    display: none;
  }

  .app-sidebar {
    border-bottom: 2px solid #3b8a7a;
    display: grid;
    gap: 0;
    grid-template-areas:
      "brand footer"
      "nav nav";
    grid-template-columns: minmax(0, 1fr) auto;
    position: sticky;
    top: 0;
  }

  .app-sidebar-brand {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    grid-area: brand;
    padding: 6px 10px;
  }

  .app-sidebar-brand-main {
    flex: 1 1 auto;
  }

  .app-sidebar-environment {
    align-self: center;
    margin-left: 0;
  }

  .app-sidebar-nav {
    flex-direction: row;
    gap: 2px;
    grid-area: nav;
    overflow-x: auto;
    padding: 4px 8px 6px;
  }

  .app-sidebar-section {
    border-left: 1px solid #3f4f5c;
    border-top: 0;
    flex-direction: row;
    margin: 0;
    padding: 0 0 0 8px;
  }

  .app-sidebar-category {
    border-left: 1px solid #3f4f5c;
    border-top: 0;
    flex: 0 0 auto;
    flex-direction: row;
    margin: 0;
    padding: 0 0 0 4px;
    width: auto;
  }

  .app-sidebar-section-title {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0 4px;
  }

  .app-sidebar-category-heading {
    display: none;
  }

  .app-sidebar-category-panel {
    display: flex;
    flex-direction: row;
    gap: 2px;
  }

  .app-sidebar-link {
    flex: 0 0 auto;
    font-size: 12px;
    gap: 7px;
    min-height: 32px;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .app-sidebar-footer {
    align-self: center;
    border-top: 0;
    grid-area: footer;
    margin-top: 0;
    padding: 6px 10px 6px 0;
  }

  .app-sidebar-logout.secondary-button {
    min-height: 32px;
    padding: 6px 8px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .app-sidebar-environment {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input,
select {
  font: inherit;
}

.app-header {
  align-items: center;
  background: #26323d;
  border-bottom: 2px solid #3b8a7a;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 260px);
  gap: 16px;
  padding: 10px 22px;
}

.header-title {
  min-width: 0;
}

.header-title h1 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-title p {
  color: #c9d3dc;
  font-size: 12px;
  margin: 4px 0 0;
}

.app-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  min-width: 280px;
}

.app-nav-link {
  border: 1px solid transparent;
  border-radius: 4px;
  color: #d7e2ea;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  min-height: 34px;
  padding: 10px 13px;
  text-decoration: none;
  white-space: nowrap;
}

.app-nav-link:hover {
  background: #33424f;
  border-color: #526677;
  color: #ffffff;
}

.app-nav-link.is-active {
  background: #e9f3f1;
  border-color: #94c6bd;
  color: #1f4f47;
}

.system-subnav {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d8e1e7;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 20px;
}

.system-subnav-link {
  border: 1px solid transparent;
  border-radius: 4px;
  color: #465563;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  min-height: 32px;
  padding: 9px 11px;
  text-decoration: none;
  white-space: nowrap;
}

.system-subnav-link:hover {
  background: #eef4f6;
  border-color: #c5d4dc;
  color: #1f303b;
}

.system-subnav-link.is-active {
  background: #e8f5f1;
  border-color: #9ccfc0;
  color: #166657;
}

.environment-badge {
  background: #33424f;
  border: 1px solid #516371;
  border-radius: 999px;
  display: inline-block;
  line-height: 1;
  padding: 4px 9px;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.header-user-control {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.header-user-control span {
  color: #d5dee6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.header-user-control input {
  background: #f7fafb;
  border-color: #7d8d9b;
  color: #1f2b34;
  height: 34px;
  min-height: 34px;
  padding: 5px 8px;
  width: 92px;
}

.status {
  color: #22584d;
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-footer .status {
  background: transparent;
  border: 0;
  color: #22584d;
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status.loading {
  background: #fff5df;
  border-color: #e4c777;
  color: #6d4d12;
}

.status.error {
  background: #fff0ed;
  border-color: #e0aaa2;
  color: #9a3027;
}

main {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1800px;
  min-width: 0;
  padding: 10px 22px 26px;
  width: 100%;
}

label {
  color: #4c5965;
  display: grid;
  font-size: 12px;
  gap: 5px;
}

input,
select {
  background: #ffffff;
  border: 1px solid #b9c4ce;
  border-radius: 4px;
  color: #1e252c;
  min-height: 34px;
  padding: 5px 8px;
}

input:focus,
select:focus {
  border-color: #2c7892;
  outline: 2px solid #b8dfe8;
  outline-offset: 0;
}

button {
  background: #2c7892;
  border: 1px solid #25677d;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  min-height: 34px;
  padding: 6px 13px;
}

button:hover {
  background: #24677d;
}

button:disabled {
  background: #a7b2bc;
  border-color: #98a4ae;
  cursor: not-allowed;
}

.secondary-button {
  background: #465563;
  border-color: #5e6c78;
}

.secondary-button:hover {
  background: #3b4854;
}

.login-page {
  background: #eef2f5;
  min-height: 100vh;
}

.login-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.login-panel {
  background: #ffffff;
  border: 1px solid #d2dae2;
  margin: 0 auto;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-heading {
  border-bottom: 1px solid #e2e8ed;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.login-logo {
  display: block;
  height: auto;
  margin-bottom: 12px;
  width: 142px;
}

.login-heading h1 {
  color: #26323d;
  font-size: 24px;
  margin: 0;
}

.login-heading p {
  color: #64717c;
  margin: 6px 0 0;
}

.login-heading .login-environment {
  background: #eef3f6;
  border: 1px solid #cfdae2;
  border-radius: 999px;
  color: #52616e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 9px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-error {
  background: #fff0ed;
  border: 1px solid #e0aaa2;
  color: #9a3027;
  margin: 0;
  padding: 8px 10px;
}

.login-divider {
  align-items: center;
  display: flex;
  margin: 18px 0;
}

.login-divider span {
  background: #dfe6eb;
  flex: 1 1 auto;
  height: 1px;
}

.entra-login-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #596874;
  border-radius: 6px;
  color: #20313c;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  text-decoration: none;
}

.entra-login-button:hover {
  background: #f2f6f8;
  border-color: #26323d;
}

.admin-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.admin-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 80px;
}

.admin-main-wide {
  max-width: none;
}

.admin-panel {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #d6e0e7;
  background: #fff;
}

.admin-panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.attendance-management-main {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  max-width: 1680px;
  min-height: 100vh;
  padding: 14px 18px 54px;
  width: 100%;
}

.attendance-management-bar,
.attendance-management-surface {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}

.attendance-management-bar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  padding: 16px 18px 16px 30px;
  position: relative;
}

.attendance-management-bar::before {
  background: #218777;
  border-radius: 999px;
  bottom: 14px;
  content: "";
  left: 14px;
  position: absolute;
  top: 14px;
  width: 4px;
}

.attendance-management-title-block {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.attendance-management-title-block h1 {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.attendance-management-period-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: 40px minmax(140px, 150px) 40px;
}

.attendance-management-primary-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.attendance-management-icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  width: 40px;
}

.attendance-management-icon-button:hover,
.attendance-management-icon-button:focus {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  outline: none;
}

.attendance-management-icon-button:focus-visible,
.attendance-management-month:focus-visible,
.attendance-management-list-tools select:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
  outline: none;
}

.attendance-management-icon-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.attendance-management-month {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  box-sizing: border-box;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  height: 40px;
  padding: 4px 10px;
  text-align: center;
  width: 100%;
}

.attendance-management-surface {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.attendance-management-list-header {
  align-items: center;
  border-bottom: 1px solid #d9e2ec;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 13px 16px;
}

.attendance-management-list-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.attendance-management-list-title h2 {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.attendance-management-list-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attendance-management-list-badge {
  align-items: center;
  background: #f7fafc;
  border: 1px solid #dbe5ed;
  border-radius: 999px;
  color: #667085;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 3px 9px;
  white-space: nowrap;
}

.attendance-management-list-badge strong {
  color: #111827;
  font-size: 13px;
}

.attendance-management-list-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.attendance-management-list-tools select {
  background: #ffffff;
  border: 1px solid #c8d3db;
  border-radius: 7px;
  color: #1f2d36;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  min-width: 132px;
  padding: 6px 10px;
}

.attendance-management-list-tools #adminOrganizationFilter {
  min-width: 220px;
}

.attendance-management-summary {
  align-items: center;
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 240px;
}

.attendance-management-summary-badge {
  gap: 4px;
}

.attendance-management-summary-label {
  color: #64717d;
  font-size: 11px;
  font-weight: 900;
}

.attendance-management-summary-badge strong {
  color: #213544;
  font-size: 13px;
  font-weight: 900;
}

.attendance-management-summary-badge em {
  color: #637280;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.attendance-management-summary-badge.is-attention {
  background: #fff0ed;
  border-color: #e6afa8;
  color: #8f2a22;
}

.attendance-management-summary-badge.is-draft {
  background: #f3f6f8;
  border-color: #cbd7df;
}

.attendance-management-summary-badge.is-submitted {
  background: #effaf7;
  border-color: #b7ddd5;
}

.attendance-management-summary-badge.is-approved {
  background: #eef6ff;
  border-color: #bfd7ef;
}

.attendance-management-summary-badge.is-zero-project {
  background: #fff8e6;
  border-color: #efd991;
}

.admin-controls {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-controls label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-weight: 700;
}

.admin-controls input,
.admin-controls select {
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid #b8c7d3;
  border-radius: 6px;
  font: inherit;
}

.admin-controls select {
  background: #ffffff;
}

.admin-metric-filters {
  align-items: center;
  border-top: 1px solid #e2ebf0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.admin-metric-filter-title {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  margin-right: 2px;
}

.admin-metric-filters label {
  align-items: center;
  background: #f8fbfc;
  border: 1px solid #d7e5e7;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 3px 6px 3px 9px;
}

.admin-metric-filters label span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.admin-metric-filters input,
.admin-metric-filters select {
  border: 1px solid #b8c7d3;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  min-width: 0;
  padding: 4px 6px;
}

.admin-metric-filters input {
  text-align: right;
  width: 58px;
}

.admin-metric-filters select {
  background: #ffffff;
  color: #1f3444;
  width: 92px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-list-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.admin-list-actions select {
  min-height: 34px;
  min-width: 116px;
}

.admin-legend {
  align-items: center;
  color: #51606d;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  justify-content: flex-end;
}

.admin-month-label {
  color: #51606d;
  font-weight: 700;
}

.admin-bulk-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}

.admin-bulk-summary {
  background: #f3f8fa;
  border: 1px solid #d7e5e7;
  border-radius: 999px;
  color: #51606d;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
}

.admin-bulk-approve-button {
  background: #2f7f96;
  border-color: #2f7f96;
  color: #ffffff;
  font-weight: 800;
}

.admin-bulk-approve-button:disabled {
  background: #a8b4bf;
  border-color: #a8b4bf;
  color: #ffffff;
}

.admin-approval-issue-panel {
  background: #fff7ed;
  border-bottom: 1px solid #f2b57f;
  border-top: 1px solid #f2b57f;
  padding: 10px 14px;
}

.admin-approval-issue-header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.admin-approval-issue-header strong {
  color: #8a3c00;
  font-size: 13px;
}

.admin-approval-issue-header span {
  color: #62422a;
  font-size: 12px;
  font-weight: 800;
}

.admin-approval-issue-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 0;
}

.admin-approval-issue-list li {
  align-items: center;
  color: #56351d;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
}

.admin-approval-issue-action {
  background: #ffffff;
  border: 1px solid #d49861;
  border-radius: 4px;
  color: #7a3b00;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 6px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.request-issue-panel {
  background: #fff7ed;
  border: 1px solid #f2b57f;
  border-radius: 6px;
  margin: 10px 14px;
  padding: 10px 12px;
}

.request-issue-header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.request-issue-header strong {
  color: #8a3c00;
  font-size: 13px;
}

.request-issue-header span {
  color: #62422a;
  font-size: 12px;
  font-weight: 800;
}

.request-issue-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 0;
}

.request-issue-list li {
  align-items: center;
  color: #56351d;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
}

.request-issue-action {
  background: #ffffff;
  border: 1px solid #d49861;
  border-radius: 4px;
  color: #7a3b00;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 6px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.request-issue-action:hover,
.request-issue-action:focus {
  box-shadow: 0 0 0 2px rgba(212, 152, 97, 0.22);
  outline: none;
}

.admin-summary-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
}

.admin-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d7e5e7;
  border-radius: 999px;
  background: #f8fcfc;
}

.admin-summary-card span {
  color: #64748b;
  font-weight: 700;
}

.admin-summary-card strong {
  color: #1f3444;
  font-size: 1.15rem;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-matrix-wrap {
  max-height: calc(100vh - 245px);
  overflow: auto;
}

.admin-days-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-users-table {
  border-collapse: collapse;
  box-sizing: border-box;
  min-width: 1110px;
  table-layout: fixed;
  width: 100%;
}

.admin-matrix-table {
  font-size: 11px;
  line-height: 1.15;
}

.admin-users-table th,
.admin-users-table td,
.admin-days-table th,
.admin-days-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #dbe4ea;
  text-align: left;
  white-space: nowrap;
}

.admin-matrix-table th,
.admin-matrix-table td {
  padding: 3px 4px;
}

.admin-matrix-table tbody td {
  padding-bottom: 2px;
  padding-top: 2px;
}

.admin-users-table th,
.admin-days-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e9f1f5;
  color: #2b3d4b;
  text-align: center;
}

.admin-users-table tbody tr:hover td,
.admin-days-table tbody tr:hover td {
  background: #f8fbfc;
}

.admin-users-table tr.selected td {
  background: #e8f6f4;
}

.admin-approval-state-header,
.admin-approval-state-cell {
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  width: 24px;
}

.admin-approval-state-cell.admin-status-attention {
  color: #9a3027;
}

.admin-approval-state-cell.admin-status-submitted {
  color: #22584d;
}

.admin-approval-state-cell.admin-status-approved {
  color: #285177;
}

.admin-approval-state-cell.admin-status-draft {
  color: #51606d;
}

.admin-approval-state-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  font-size: inherit;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-height: 22px;
  padding: 0;
  width: 22px;
}

.admin-approval-state-button:hover {
  background: #d8e8f5;
  color: #1f4e72;
}

.admin-selection-header,
.admin-selection-cell {
  min-width: 26px;
  text-align: center;
  width: 26px;
}

.admin-matrix-table .admin-selection-header,
.admin-matrix-table .admin-selection-cell {
  padding-left: 2px;
  padding-right: 2px;
}

.admin-selection-checkbox {
  cursor: pointer;
  height: 14px;
  margin: 0;
  vertical-align: middle;
  width: 14px;
}

.admin-selection-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.admin-user-code-header,
.admin-user-code-cell {
  font-weight: 700;
  width: 64px;
  white-space: nowrap;
}

.admin-user-name-header,
.admin-user-name-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-name-header {
  min-width: 80px;
}

.admin-user-link {
  color: #1f6f8b;
  display: inline-block;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-user-link:hover {
  text-decoration: underline;
}

.admin-sort-header {
  padding: 0;
}

.admin-sort-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  min-height: 22px;
  padding: 0 4px;
  width: 100%;
}

.admin-sort-button:hover {
  background: #dbe8ee;
}

.admin-users-table .numeric {
  text-align: right;
  white-space: nowrap;
}

.attendance-management-table-wrap {
  flex: 1 1 auto;
  height: max(520px, calc(100vh - 230px));
  min-height: 520px;
  overflow: hidden;
}

.attendance-management-grid-table {
  color: #22313b;
  font-size: 13px;
  height: 100%;
  line-height: 1.35;
  min-height: 420px;
  width: 100%;
}

.attendance-management-grid-table.is-grid-message {
  align-items: center;
  color: #6a7882;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 220px;
}

.attendance-management-grid-table.is-grid-message.error {
  color: #b42318;
}

.attendance-management-grid-table.tabulator {
  border: 0;
}

.attendance-management-grid-table .tabulator-header {
  background: #f8fafc;
  border-bottom: 1px solid #dbe4ea;
  color: #2b3d4b;
}

.attendance-management-grid-table .tabulator-header .tabulator-col {
  background: #f8fafc;
  border-right: 1px solid #e6edf5;
}

.attendance-management-grid-table .tabulator-col-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.attendance-management-grid-table .tabulator-row {
  border-bottom: 1px solid #edf2f7;
  min-height: 48px;
}

.attendance-management-grid-table .tabulator-row:nth-child(even) {
  background: #fbfcfd;
}

.attendance-management-grid-table .tabulator-row .tabulator-cell {
  align-items: center;
  border-right: 1px solid #edf2f7;
  display: inline-flex;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  min-height: 48px;
  padding: 8px 10px;
}

.attendance-management-grid-table .tabulator-cell[tabulator-field="employeeCode"],
.attendance-management-grid-table .tabulator-cell[tabulator-field="status"],
.attendance-management-grid-table .tabulator-cell[tabulator-field="actions"] {
  justify-content: center;
}

.attendance-management-grid-table .tabulator-cell[tabulator-field="actions"] {
  padding-left: 4px;
  padding-right: 4px;
}

.attendance-management-grid-table .tabulator-cell[tabulator-field="employeeCode"],
.attendance-management-grid-table .tabulator-cell[tabulator-field="employeeCode"] .admin-user-link {
  font-weight: 600;
}

.attendance-management-grid-table .tabulator-cell[tabulator-field="employeeName"],
.attendance-management-grid-table .tabulator-cell[tabulator-field="organizationName"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-management-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.attendance-management-grid-table .attendance-management-actions {
  flex-wrap: nowrap;
}

.attendance-management-action-icon {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #d0d8e4;
  border-radius: 7px;
  box-sizing: border-box;
  color: #1f6f8b;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
  text-decoration: none;
  width: 28px;
}

.attendance-management-action-icon svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.attendance-management-action-icon.is-attendance {
  background: #eef8fb;
  border-color: #a8d0dd;
}

.attendance-management-action-icon.is-print {
  color: #4f5f6d;
}

.attendance-management-action-icon.is-requests {
  background: #effaf7;
  border-color: #a8d7ce;
  color: #22584d;
}

.attendance-management-action-icon:hover,
.attendance-management-action-icon:focus {
  background: #eef7fa;
  border-color: #89bdcc;
  outline: none;
}

.attendance-management-action-icon:focus-visible {
  box-shadow: 0 0 0 3px rgba(40, 127, 149, 0.2);
}

.admin-metric-header,
.admin-metric-cell {
  min-width: 34px;
  text-align: right;
  width: 34px;
}

.admin-matrix-table .admin-metric-header,
.admin-matrix-table .admin-metric-cell {
  font-size: 10px;
  padding-left: 1px;
  padding-right: 1px;
  width: 34px;
}

.admin-matrix-table .admin-metric-header {
  text-align: center;
}

.admin-matrix-table .admin-metric-cell {
  text-align: right;
}

.compact-button {
  min-height: 28px;
  padding: 3px 8px;
}

.admin-action-cell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 44px;
}

.admin-approval-toggle {
  min-width: 42px;
}

.admin-approval-toggle.is-pressed {
  background: #287f95;
  border-color: #287f95;
  color: #ffffff;
}

.admin-status-badge {
  border: 1px solid #cbd7df;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  white-space: nowrap;
}

.admin-status-attention {
  background: #fff0ed;
  border-color: #dc7d70;
  color: #9a3027;
}

.admin-status-submitted {
  background: #effaf7;
  border-color: #8dc8bd;
  color: #22584d;
}

.admin-status-approved {
  background: #eef6ff;
  border-color: #91b8df;
  color: #285177;
}

.admin-status-draft {
  background: #f3f6f8;
  border-color: #cbd7df;
  color: #51606d;
}

.admin-day-header,
.admin-day-cell {
  text-align: center;
  min-width: 25px;
  width: 25px;
}

.admin-matrix-table .admin-day-header,
.admin-matrix-table .admin-day-cell {
  padding-left: 1px;
  padding-right: 1px;
  text-align: center;
}

.admin-day-approval-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-height: 22px;
  padding: 0;
  width: 100%;
}

.admin-day-approval-button:hover {
  background: rgba(45, 119, 150, 0.14);
}

.admin-matrix-table .admin-day-header {
  line-height: 1.05;
  padding-bottom: 1px;
  padding-top: 1px;
}

.admin-day-header-date,
.admin-day-header-weekday {
  display: block;
}

.admin-day-header-weekday {
  font-size: 9px;
  margin-top: 1px;
}

.admin-users-table th.admin-day-header-saturday {
  color: #2563a8;
}

.admin-users-table th.admin-day-header-holiday {
  color: #bd3f33;
}

.admin-day-chip {
  align-items: center;
  border: 1px solid #cbd7df;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-width: 22px;
  padding: 0 5px;
}

.day-status-invalid {
  background: #fff0ed;
  border-color: #dc7d70;
  color: #9a3027;
}

.day-status-incomplete {
  background: #fff0ed;
  border-color: #dc7d70;
  color: #9a3027;
}

.day-status-warning {
  background: #fff8e8;
  border-color: #ddb45c;
  color: #7a5415;
}

.day-status-draft {
  background: #f3f6f8;
  border-color: #cbd7df;
  color: #51606d;
}

.day-status-submitted {
  background: #effaf7;
  border-color: #8dc8bd;
  color: #22584d;
}

.day-status-approved {
  background: #eef6ff;
  border-color: #91b8df;
  color: #285177;
}

.admin-day-swatch {
  border: 1px solid #cbd7df;
  border-radius: 6px;
  display: inline-flex;
  height: 16px;
  width: 24px;
}

.admin-users-table td.approval-state-draft,
.admin-day-swatch.approval-state-draft {
  background: #f7fafb;
}

.admin-users-table td.approval-state-submitted,
.admin-day-swatch.approval-state-submitted {
  background: #e8f7f2;
}

.admin-day-swatch.approval-state-submitted {
  border-color: #9bcfc4;
}

.admin-users-table td.approval-state-approved,
.admin-day-swatch.approval-state-approved {
  background: #e8f2ff;
}

.admin-day-swatch.approval-state-approved {
  border-color: #9ebfe4;
}

.admin-users-table td.validation-state-invalid,
.admin-day-swatch.validation-state-invalid {
  background: #ffe6e2;
  color: #7c241d;
}

.admin-day-swatch.validation-state-invalid {
  border-color: #e57368;
}

.admin-users-table td.validation-state-incomplete,
.admin-day-swatch.validation-state-incomplete {
  background: #ffe6e2;
  color: #7c241d;
}

.admin-day-swatch.validation-state-incomplete {
  border-color: #e57368;
}

.admin-users-table td.validation-state-warning,
.admin-day-swatch.validation-state-warning {
  background: #fff2d2;
  color: #6e4a10;
}

.admin-day-swatch.validation-state-warning {
  border-color: #d9a845;
}

.admin-users-table tbody tr:hover td.approval-state-draft {
  background: #f7fafb;
}

.admin-users-table tbody tr:hover td.approval-state-submitted {
  background: #e8f7f2;
}

.admin-users-table tbody tr:hover td.approval-state-approved {
  background: #e8f2ff;
}

.admin-users-table tbody tr:hover td.validation-state-invalid {
  background: #ffe6e2;
}

.admin-users-table tbody tr:hover td.validation-state-incomplete {
  background: #ffe6e2;
}

.admin-users-table tbody tr:hover td.validation-state-warning {
  background: #fff2d2;
}

.admin-days-table .approval-status-1 td {
  background: #f0fdfa;
}

.admin-days-table .approval-status-2 td {
  background: #eef6ff;
}

.icon-button {
  align-items: center;
  background: #40505d;
  border-color: #526373;
  display: inline-flex;
  font-size: 18px;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.project-page-controls {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
}

.project-page-controls[hidden] {
  display: none;
}

.duration-column-toggle,
.note-column-toggle {
  align-items: center;
  background: #eef4f6;
  border-color: #b9cad4;
  color: #33414d;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-height: 24px;
  min-width: 0;
  overflow: hidden;
  padding: 2px 8px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  width: 100%;
}

.duration-column-toggle {
  display: grid;
  grid-template-columns: minmax(0, var(--late-night-rest-column-width)) minmax(0, var(--time-leave-column-width));
  margin-inline: auto;
  padding-inline: 0;
  width: calc(var(--late-night-rest-column-width) + var(--time-leave-column-width) - 10px);
}

.duration-column-toggle span {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding-inline: 2px;
  text-overflow: clip;
}

.duration-column-toggle span + span {
  border-left: 1px solid #c5d2da;
}

.note-column-toggle {
  display: flex;
  margin-inline: auto;
  width: calc(var(--note-column-width) - 10px);
}

.duration-columns-collapsed .duration-column-toggle {
  display: inline-flex;
  padding-inline: 0;
  width: 40px;
}

.duration-columns-collapsed .duration-column-toggle span + span {
  border-left: 0;
}

.note-column-collapsed .note-column-toggle {
  padding-inline: 0;
  width: 40px;
}

.duration-column-toggle:hover,
.duration-column-toggle.active,
.note-column-toggle:hover,
.note-column-toggle.active {
  background: #ddebf0;
}

.app-footer {
  align-items: center;
  background: #eef6f3;
  border-top: 1px solid #c9d8dd;
  bottom: 0;
  display: none;
  min-height: 34px;
  padding: 6px 22px;
  position: fixed;
  right: 0;
  left: 0;
  z-index: 8;
}

.app-footer .status {
  margin: 0 auto;
  max-width: 1396px;
  width: 100%;
}

.app-footer:has(.status.error) {
  background: #fff0ed;
  border-color: #e0aaa2;
}

.app-footer:has(.status.loading) {
  background: #fff7e6;
  border-color: #e4c777;
}

.project-page-button {
  background: #eef4f6;
  border-color: #b9cad4;
  color: #33414d;
  min-height: 28px;
  min-width: 62px;
  padding: 4px 8px;
}

.project-page-button:hover {
  background: #ddebf0;
}

.project-page-button.active {
  background: #2e8195;
  border-color: #2e8195;
  color: #ffffff;
}

.project-page-button.detail-group::after {
  content: " +詳細";
}

.action-column-header {
  display: block;
  text-align: center;
}

.status-header-summary {
  align-items: center;
  display: flex;
  gap: 6px;
  height: 100%;
  justify-content: center;
  min-width: 0;
}

.month-header-summary {
  align-items: center;
  display: inline-flex;
  height: 28px;
  margin-left: 2px;
}

.action-summary-line {
  align-items: center;
  background: #eef3f6;
  border: 1px solid #c7d3dc;
  border-radius: 999px;
  color: #64717c;
  display: inline-flex;
  font-size: 12px;
  gap: 4px;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  white-space: nowrap;
}

.action-summary-line strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.action-summary-line.is-active.invalid-summary {
  background: #fff0ee;
  border-color: #e0aaa2;
  color: #b44343;
}

.action-summary-line.is-active.dirty-summary {
  background: #eaf5f8;
  border-color: #a9cfda;
  color: #2f7590;
}

.month-project-list {
  align-content: start;
  display: grid;
  flex: 1;
  gap: 4px;
  grid-auto-rows: min-content;
  min-height: 180px;
  overflow: auto;
  padding-bottom: 2px;
}

.dialog-backdrop {
  align-items: center;
  background: rgb(31 43 52 / 62%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog-panel {
  background: #ffffff;
  border: 1px solid #b7c8d2;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgb(18 30 42 / 30%);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.dialog-header,
.dialog-footer,
.project-search-bar {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dialog-header {
  background: #dbe8ee;
  border-bottom: 1px solid #c4d4de;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 12px 8px 16px;
}

.dialog-header h2 {
  color: #33414d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.dialog-footer {
  background: #edf5f3;
  border-top: 1px solid #bdd5cf;
  justify-content: flex-end;
  min-height: 54px;
  padding: 10px 12px;
}

.modal-panel {
  height: min(780px, calc(100vh - 72px));
  width: min(1040px, calc(100vw - 72px));
}

.project-save-options {
  align-items: center;
  color: #42515e;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px;
}

.project-save-options label {
  align-items: center;
  background: #f8fbfb;
  border: 1px solid #c7d8d5;
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  min-height: 30px;
  padding: 4px 10px;
  white-space: nowrap;
}

.project-search-bar {
  background: #f6fafb;
  border-bottom: 1px solid #d7e3e8;
  padding: 10px 12px;
}

.project-search-bar input {
  background: #ffffff;
  flex: 1;
  font-size: 15px;
  height: 34px;
  min-width: 160px;
}

.project-search-results {
  border: 0;
  border-bottom: 1px solid #d7e3e8;
  display: grid;
  gap: 0;
  max-height: 220px;
  overflow: auto;
}

.project-search-results[hidden] {
  display: none;
}

.project-search-result {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e4e9ee;
  border-radius: 0;
  color: #1e252c;
  display: grid;
  gap: 6px;
  grid-template-columns: 96px 132px minmax(240px, 1fr) minmax(140px, 180px);
  justify-items: start;
  min-height: 36px;
  padding: 5px 12px;
  text-align: left;
}

.project-search-result:hover,
.project-search-result:focus {
  background: #eef7f8;
  color: #1e252c;
}

.project-search-result strong {
  font-variant-numeric: tabular-nums;
}

.project-code-fixed,
.project-short-name,
.project-long-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-code-fixed {
  width: 100%;
}

.project-short-name {
  width: 100%;
}

.project-long-name,
.project-search-result small {
  color: #64717c;
  width: 100%;
}

.project-search-empty {
  color: #6d7883;
  padding: 10px 12px;
}

.confirm-backdrop {
  background: rgb(31 43 52 / 42%);
  z-index: 110;
}

.confirm-panel {
  width: min(420px, calc(100vw - 48px));
}

.confirm-header {
  padding: 10px 14px;
}

.confirm-header h2 {
  font-size: 17px;
}

.confirm-body {
  color: #26323d;
  display: grid;
  font-size: 14px;
  gap: 10px;
  line-height: 1.65;
  padding: 18px 18px 14px;
}

.confirm-body p {
  margin: 0;
}

.confirm-detail-list {
  display: grid;
  gap: 3px;
  margin: 0;
}

.confirm-detail-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.confirm-detail-list dt {
  color: #53616d;
  font-weight: 700;
}

.confirm-detail-list dd {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin: 0;
}

.confirm-project-list {
  border-top: 1px solid #e2e8ed;
  display: grid;
  gap: 3px;
  margin: 2px 0 0;
  padding-top: 8px;
}

.confirm-footer {
  gap: 8px;
}

.confirm-cancel-button {
  background: #eef4f6;
  border-color: #b9cad4;
  color: #33414d;
}

.month-project-dialog {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
  z-index: 100;
}

.month-project-dialog-panel {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 82px rgba(15, 23, 42, 0.28);
  color: var(--monthly-ink, #111827);
  height: min(760px, calc(100vh - 40px));
  width: min(940px, calc(100vw - 32px));
}

.month-project-dialog .dialog-header,
#projectWorkDeleteConfirmDialog .dialog-header {
  background: #eef6f3;
  border-bottom: 1px solid #d3e4df;
  border-radius: 8px 8px 0 0;
  justify-content: flex-start;
  min-height: 58px;
  padding: 16px 18px 16px 30px;
  position: relative;
}

.month-project-dialog .dialog-header::before,
#projectWorkDeleteConfirmDialog .dialog-header::before {
  background: var(--monthly-page-accent, #218777);
  border-radius: 999px;
  bottom: 14px;
  content: "";
  left: 14px;
  position: absolute;
  top: 14px;
  width: 4px;
}

.month-project-dialog .dialog-header h2,
#projectWorkDeleteConfirmDialog .dialog-header h2 {
  color: #173f38;
  font-size: 18px;
  font-weight: 900;
}

.month-project-dialog .dialog-header .status {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #b7e3dc;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 0 10px;
}

.month-project-dialog .icon-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #31544f;
  height: 34px;
  margin-left: auto;
  min-width: 34px;
  width: 34px;
}

.month-project-dialog .icon-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.month-project-dialog .icon-button:hover,
.month-project-dialog .icon-button:focus {
  background: #dcece7;
  color: #31544f;
  outline: none;
}

.month-project-dialog .project-search-bar {
  background: #f8fafc;
  border-bottom: 1px solid #d8e1e7;
  padding: 12px 16px;
}

.month-project-dialog .project-search-bar input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--monthly-ink, #111827);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

.month-project-dialog .project-search-bar input:focus {
  border-color: var(--monthly-accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.month-project-dialog .project-search-results {
  background: #ffffff;
  border-bottom: 1px solid #d8e1e7;
  gap: 2px;
  max-height: 210px;
  padding: 6px;
}

.month-project-dialog .project-search-result {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--monthly-ink, #111827);
  min-height: 36px;
  padding: 7px 9px;
}

.month-project-dialog .project-search-result:hover,
.month-project-dialog .project-search-result:focus {
  background: #eff6ff;
  color: var(--monthly-ink, #111827);
  outline: none;
}

.month-project-dialog .month-project-list {
  background: #f8fafc;
  gap: 6px;
  padding: 12px 16px;
}

.month-project-dialog .month-project-line {
  background: #ffffff;
  border: 1px solid #dde7ef;
  border-radius: 7px;
  min-height: 42px;
  padding: 0 10px;
}

.month-project-dialog .project-line-header {
  background: #f8fbfc;
  border-color: #e2ebf2;
  color: #475467;
  font-weight: 900;
  min-height: 34px;
}

.month-project-dialog .project-row-number,
.month-project-dialog .project-long-name,
.month-project-dialog .project-search-result small {
  color: #667085;
}

.month-project-dialog .project-code-label,
.month-project-dialog .project-search-result strong {
  color: #0f766e;
  font-weight: 900;
}

.month-project-dialog .project-short-name {
  color: #475467;
  font-weight: 800;
}

.month-project-dialog .project-empty,
.month-project-dialog .project-search-empty {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.month-project-dialog .project-order-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  color: #334155;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  width: 36px;
}

.month-project-dialog .project-order-button:not(:disabled):hover,
.month-project-dialog .project-order-button:not(:disabled):focus {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  outline: none;
}

.month-project-dialog .project-order-button:disabled {
  background: #f1f5f9;
  border-color: #d8e1eb;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}

.month-project-dialog .project-order-button:focus-visible,
.month-project-dialog .project-delete-button:focus-visible {
  box-shadow: none;
  outline: 1px solid #667085;
  outline-offset: 2px;
}

.month-project-dialog .project-delete-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  color: var(--monthly-error, #be123c);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  width: 36px;
}

.month-project-dialog .project-delete-button:hover,
.month-project-dialog .project-delete-button:focus {
  background: #ffe4e6;
  border-color: #fda4af;
  outline: none;
}

.month-project-dialog .dialog-footer,
#projectWorkDeleteConfirmDialog .dialog-footer {
  background: #ffffff;
  border-top: 1px solid #d8e1e7;
  border-radius: 0 0 8px 8px;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
}

.month-project-dialog .project-save-options {
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
}

.month-project-dialog .project-save-options label {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 900;
  gap: 8px;
  min-height: 38px;
  padding: 0;
}

.month-project-dialog .project-save-options input[type="checkbox"] {
  accent-color: var(--monthly-accent, #2563eb);
}

.month-project-dialog #applyMonthProjectButton,
#projectWorkDeleteConfirmDialog #confirmProjectWorkDeleteButton {
  background: #2c7892;
  border: 1px solid #25677d;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  min-width: 112px;
  padding: 0 18px;
}

.month-project-dialog #applyMonthProjectButton:hover,
.month-project-dialog #applyMonthProjectButton:focus,
#projectWorkDeleteConfirmDialog #confirmProjectWorkDeleteButton:hover,
#projectWorkDeleteConfirmDialog #confirmProjectWorkDeleteButton:focus {
  background: #24677d;
  outline: none;
}

.month-project-dialog #applyMonthProjectButton:disabled {
  cursor: wait;
  opacity: 0.64;
}

#projectWorkDeleteConfirmDialog {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
  z-index: 40;
}

#projectWorkDeleteConfirmDialog .confirm-panel {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 82px rgba(15, 23, 42, 0.28);
  width: min(440px, calc(100vw - 48px));
}

#projectWorkDeleteConfirmDialog .confirm-body {
  color: var(--monthly-ink, #111827);
  padding: 18px;
}

#projectWorkDeleteConfirmDialog .confirm-detail-list dt {
  color: #667085;
  font-weight: 900;
}

#projectWorkDeleteConfirmDialog .confirm-project-list {
  border-top-color: #e2ebf2;
}

#projectWorkDeleteConfirmDialog .confirm-cancel-button {
  background: #ffffff;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
  color: #344054;
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  min-width: 112px;
  padding: 0 18px;
}

#projectWorkDeleteConfirmDialog .confirm-cancel-button:hover,
#projectWorkDeleteConfirmDialog .confirm-cancel-button:focus {
  background: #f8fafc;
  border-color: #b8c5d4;
  outline: none;
}

.table-wrap {
  background: #ffffff;
  border: 1px solid #d2dae2;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  width: 100%;
}

table {
  border-collapse: collapse;
  min-width: var(--attendance-table-min-width);
  table-layout: fixed;
  width: var(--attendance-table-min-width);
}

.date-column {
  width: 92px;
}

.type-column,
.time-column,
.metric-column,
.non-project-column,
.detail-time-leave-column,
.detail-late-night-column {
  width: 76px;
}

.late-night-rest-column {
  width: var(--late-night-rest-column-width);
}

.time-leave-column {
  width: var(--time-leave-column-width);
}

.note-column {
  width: var(--note-column-width);
}

th:has(> .note-column-toggle) {
  border-left: 1px solid #73a9b5;
}

.project-work-column {
  width: var(--project-work-width);
}

.detail-columns-visible table {
  min-width: var(--attendance-table-min-width);
}

.detail-columns-visible .project-work-column {
  width: var(--project-work-width);
}

.action-column {
  width: 72px;
}

th,
td {
  box-sizing: border-box;
  border-bottom: 1px solid #e4e9ee;
  border-right: 1px solid #eef2f5;
  overflow: hidden;
  padding: 2px;
  text-align: left;
  vertical-align: middle;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tfoot td {
  background: #edf5f3;
  border-top: 2px solid #b8d2cb;
  font-weight: 700;
  bottom: 0;
  box-shadow: 0 -3px 8px rgba(38, 50, 61, 0.12);
  position: sticky;
  z-index: 2;
}

.table-project-summary-cell {
  padding-block: 2px;
}

.table-summary-metrics {
  color: #1f333a;
  font-variant-numeric: tabular-nums;
}

.summary-metric-list {
  align-items: center;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: repeat(6, minmax(48px, 1fr));
}

.summary-metric-item {
  align-items: baseline;
  background: #f8fbfb;
  border: 1px solid #c7d8d5;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  padding: 2px 7px;
  white-space: nowrap;
}

.summary-metric-item small {
  color: #5d6b75;
  font-size: 11px;
  font-weight: 700;
}

.summary-metric-item strong {
  color: #1f333a;
  font-size: 14px;
  font-weight: 800;
}

.table-project-summary-list {
  overflow: hidden;
}

.table-project-summary-item {
  background: #ffffff;
  border-color: #bfd4dd;
  justify-content: center;
}

.table-project-summary-item strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.table-summary-action {
  width: 72px;
}

.table-non-project-summary {
  color: #1f333a;
  font-variant-numeric: tabular-nums;
  padding-inline: 6px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.table-non-project-summary small {
  color: #5d6b75;
  font-size: 11px;
  font-weight: 700;
  margin-right: 5px;
}

.table-non-project-summary strong {
  color: #1f333a;
  font-size: 14px;
  font-weight: 800;
}

.detail-column {
  display: none;
}

.detail-columns-visible td.detail-column,
.detail-columns-visible th.detail-column {
  display: table-cell;
}

.detail-columns-visible col.detail-column {
  display: table-column;
}

th {
  background: #e5edf3;
  color: #34414c;
  font-size: 12px;
  font-weight: 700;
  position: sticky;
  text-align: center;
  top: var(--table-control-row-height);
  z-index: 2;
}

.table-control-row th {
  background: #dbe8ee;
  border-bottom-color: #c4d4de;
  height: var(--table-control-row-height);
  padding-block: 4px;
  top: 0;
  z-index: 3;
}

.table-header-controls {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-height: 28px;
  width: 100%;
}

.table-header-nav-button {
  align-items: center;
  background: #f7fafb;
  border-color: #b9cad4;
  color: #33414d;
  display: inline-flex;
  font-size: 14px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  min-width: 30px;
  padding: 0;
  width: 30px;
}

.table-header-nav-button:hover {
  background: #ddebf0;
}

.table-header-nav-button:disabled {
  background: #eef1f3;
  color: #a0a9b1;
  cursor: not-allowed;
}

.table-header-range {
  align-items: center;
  color: #33414d;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  min-width: 96px;
  text-align: center;
  white-space: nowrap;
}

.month-header-stats {
  align-items: center;
  border-left: 1px solid #b9cad4;
  color: #42515e;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 28px;
  line-height: 1;
  margin-left: 6px;
  padding-left: 10px;
  white-space: nowrap;
}

.project-header-controls .table-header-range {
  min-width: 46px;
}

.project-header-settings-button {
  background: #2c7892;
  border-color: #25677d;
  font-size: 12px;
  font-weight: 700;
  height: 28px;
  line-height: 1;
  margin-left: 4px;
  min-height: 28px;
  padding: 0 10px;
}

.project-header-settings-button:hover {
  background: #24677d;
}

.project-work-column,
th:has(> .inline-project-header) {
  background: #dcebee;
  border-left: 1px solid #73a9b5;
}

th:has(> .actual-header),
th:has(> .inline-project-header),
.actual-work-cell,
.inline-project-cell {
  border-right: 0;
}

th:has(> .note-column-toggle),
.note-cell {
  border-left: 1px solid #73a9b5;
}

.table-control-row th:nth-child(1),
.table-control-row th:nth-child(2) {
  border-right: 0;
}

.table-control-row th:nth-child(2),
.table-control-row th:nth-child(3) {
  border-left: 1px solid #73a9b5;
}

.inline-project-header {
  min-width: 0;
  padding: 0;
}

.inline-project-header-shell {
  display: grid;
  gap: 0;
  min-width: 0;
}

.inline-project-header-list {
  align-items: stretch;
  display: flex;
  gap: 0;
  overflow-x: hidden;
}

.inline-project-header-item {
  align-items: center;
  border-left: 1px solid rgba(115, 169, 181, 0.35);
  display: grid;
  flex: 0 0 76px;
  gap: 1px;
  min-width: 0;
  text-align: center;
}

.inline-project-header-item.first-visible-project {
  border-left: 0;
}

.inline-project-header-item strong,
.inline-project-header-item small {
  display: block;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-project-header-item small {
  color: #5b6874;
  font-size: 10px;
  font-weight: 600;
}

tbody tr:nth-child(4n + 1):not(.project-row) {
  background: #fbfcfd;
}

tbody tr:not(.project-row) > td {
  background-clip: padding-box;
}

tbody tr.weekend:not(.dirty),
tbody tr.holiday:not(.dirty) {
  background: #f7f0ec;
}

tbody tr.weekend:not(.dirty) > .inline-project-cell,
tbody tr.holiday:not(.dirty) > .inline-project-cell {
  background: #f6f0eb;
}

tbody tr.dirty {
  background: #fff6df;
  box-shadow: inset 3px 0 0 #c98a16;
}

tbody tr.dirty > .inline-project-cell {
  background: #fff7e2;
}

tbody tr.validation-incomplete {
  background: #fff8df;
  box-shadow: inset 4px 0 0 #d9a321;
}

tbody tr.validation-incomplete > .inline-project-cell {
  background: #fff7dc;
}

tbody tr.validation-invalid {
  background: #fff0ee;
  box-shadow: inset 4px 0 0 #d25b4d;
}

tbody tr.validation-invalid > .inline-project-cell {
  background: #fff0ee;
}

tbody tr.dirty.validation-incomplete {
  background: #fff4cf;
  box-shadow: inset 4px 0 0 #d9a321, inset 8px 0 0 #c98a16;
}

tbody tr.dirty.validation-invalid {
  background: #ffe8e5;
  box-shadow: inset 4px 0 0 #d25b4d, inset 8px 0 0 #c98a16;
}

tbody tr.saved {
  animation: saved-flash 1.3s ease-out;
}

tbody tr.request-issue-focused:not(.project-row) > td,
tbody tr.request-issue-focused:not(.project-row) > .inline-project-cell {
  box-shadow: inset 0 0 0 2px rgba(212, 152, 97, 0.55);
}

.attendance-monthly-page .tabulator-row.request-issue-focused .tabulator-cell {
  box-shadow: inset 0 0 0 2px rgba(212, 152, 97, 0.65);
}

tbody tr.approved:not(.project-row) {
  background: #eaf5f6;
  box-shadow: inset 0 0 0 1px #88bbc2, inset 4px 0 0 #3f8d98;
}

tbody tr.approved:not(.project-row) > .inline-project-cell {
  background: #e6f3f4;
}

tbody tr:not(.project-row) {
  height: 39px;
}

tbody tr:not(.project-row) > td {
  box-sizing: border-box;
  height: 39px;
}

td:nth-child(1) {
  color: #36434e;
  font-variant-numeric: tabular-nums;
  width: 92px;
}

.date-header {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
}

.date-label {
  display: block;
  text-align: center;
}

.date-label {
  min-width: 0;
  white-space: nowrap;
}

.day-state-badge,
.approved-badge {
  background: #eef3f6;
  border: 1px solid #c5d2dc;
  border-radius: 999px;
  color: #50616f;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  justify-self: center;
  line-height: 1;
  min-width: 42px;
  padding: 3px 5px;
  place-content: center;
  white-space: nowrap;
}

.day-state-badge[data-state="submitted"] {
  background: #e4f4ef;
  border-color: #8fc4b4;
  color: #226450;
}

.day-state-badge[data-state="approved"] {
  background: #d9eef1;
  border-color: #7db4bd;
  color: #225b64;
}

.day-state-badge[data-state="invalid"] {
  background: #ffe7e3;
  border-color: #d25b4d;
  color: #9a3027;
}

.day-state-badge[data-state="incomplete"],
.day-state-badge[data-state="dirty"] {
  background: #fff4d6;
  border-color: #d9a321;
  color: #7a560e;
}

.application-request-mark-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  margin-top: 3px;
  max-width: 100%;
}

.application-request-mark {
  background: #eef3f6;
  border: 1px solid #c5d2dc;
  border-radius: 999px;
  color: #50616f;
  cursor: pointer;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  max-width: 72px;
  min-height: 16px;
  min-width: 28px;
  overflow: hidden;
  padding: 2px 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-request-mark:hover,
.application-request-mark:focus {
  box-shadow: 0 0 0 2px rgba(31, 122, 108, 0.16);
  outline: none;
}

.application-request-mark[data-status="submitted"] {
  background: #fff8e8;
  border-color: #d9b45d;
  color: #75510f;
}

.application-request-mark[data-status="approved"] {
  background: #eef8f5;
  border-color: #82bdb0;
  color: #22584d;
}

.application-request-mark-more {
  background: #f4f6f8;
  color: #64727e;
  min-width: 24px;
}

tbody tr.submitted:not(.project-row):not(.dirty):not(.validation-invalid):not(.validation-incomplete) {
  background: #f3fbf8;
}

tbody tr.submitted:not(.project-row):not(.dirty):not(.validation-invalid):not(.validation-incomplete) > .inline-project-cell {
  background: #edf8f4;
}

tbody tr.approved input:disabled,
tbody tr.approved select:disabled,
tbody tr.approved button:disabled {
  cursor: not-allowed;
}

tbody tr.approved .save-button:disabled {
  background: #5f8e98;
  border-color: #4f7d86;
  color: #fff;
  opacity: 1;
}

.date-column-header {
  align-items: center;
  display: grid;
  gap: 1px;
  justify-items: center;
  line-height: 1.15;
}

.date-column-header small {
  color: #63717d;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

td:nth-child(2),
td:nth-child(3),
td:nth-child(4),
td:nth-child(5),
td:nth-child(6),
td:nth-child(7),
td:nth-child(8) {
  font-variant-numeric: tabular-nums;
  width: 76px;
}

td:nth-child(2) {
  width: 76px;
}

.actual-work-cell {
  color: #2f3d48;
  font-weight: 700;
  text-align: center;
}

tbody tr:not(.project-row) > .inline-project-cell,
.table-project-summary-cell {
  background: #f4faf9;
  border-left: 1px solid #73a9b5;
  padding-inline: 0;
}

.non-project-work-cell {
  color: #31515a;
}

.actual-header,
.actual-stack {
  align-items: center;
  display: grid;
  gap: 0;
  justify-items: center;
  line-height: 1.15;
}

.actual-stack {
  min-height: 28px;
  place-content: center;
}

.actual-summary-line,
.non-project-summary-line {
  align-items: baseline;
  display: inline-flex;
  gap: 2px;
  justify-content: center;
  min-height: 15px;
  white-space: nowrap;
}

.actual-summary-line[hidden],
.non-project-summary-line[hidden] {
  display: none;
}

.actual-summary-line strong,
.non-project-summary-line strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.non-project-summary-line strong {
  color: #31515a;
}

.actual-header small {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.late-night-cell {
  color: #63717d;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}

.late-night-cell[hidden] {
  display: none;
}

.time-leave-cell,
.late-night-absence-cell {
  width: 76px;
}

.late-night-absence-cell {
  width: var(--late-night-rest-column-width);
}

.time-leave-cell {
  width: var(--time-leave-column-width);
}

.note-cell {
  border-left: 1px solid #73a9b5;
  text-align: center;
  width: var(--note-column-width);
}

.note-cell .note-input {
  height: 28px;
  min-height: 28px;
  width: calc(var(--note-column-width) - 10px);
}

.note-indicator {
  background: transparent;
  border-color: transparent;
  color: #a1adb7;
  display: none;
  font-size: 16px;
  height: 28px;
  line-height: 1;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
}

.note-indicator.has-note {
  color: #2c7892;
}

.note-column-collapsed .note-cell .note-input {
  display: none;
}

.note-column-collapsed .note-indicator {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.table-summary-detail {
  border-left: 1px solid #73a9b5;
  min-width: 0;
}

.action-cell {
  padding-inline: 2px;
  width: 72px;
}

.row-actions {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 28px;
  white-space: nowrap;
}

.attendance-type-select {
  font-size: 15px;
  height: 28px;
  line-height: 1.1;
  margin-inline: auto;
  min-height: 28px;
  padding-block: 1px;
  padding-inline: 6px 4px;
  width: 68px;
}

.attendance-type-cell {
  text-align: center;
}

.time-input {
  text-align: center;
  width: 68px;
}

.time-cell {
  padding-block: 2px;
  position: relative;
  text-align: center;
}

.time-display {
  background: #ffffff;
  border: 1px solid #b9c4ce;
  border-radius: 4px;
  color: #1e252c;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  min-height: 28px;
  padding: 2px 5px;
  text-align: center;
  width: 68px;
}

.time-display:hover {
  background: #eef7f8;
  border-color: #2c7892;
}

.locked-time-cell .time-display,
.locked-time-cell .time-display:disabled {
  background: #edf1f4;
  border-color: #d0d8df;
  color: #8a96a0;
  cursor: not-allowed;
}

.locked-time-cell .time-display:hover {
  background: #edf1f4;
  border-color: #d0d8df;
}

.time-editor {
  align-items: center;
  display: flex;
  margin-inline: auto;
  position: relative;
  width: 68px;
}

.time-editor[hidden] {
  display: none;
}

.time-text-input {
  height: 28px;
  min-height: 28px;
  padding: 2px 8px;
}

.time-editor[hidden],
.time-display[hidden] {
  display: none;
}

.duration-input {
  text-align: center;
  width: 66px;
}

.duration-cell {
  padding-block: 2px;
  text-align: center;
}

.duration-display {
  background: #ffffff;
  border: 1px solid #b9c4ce;
  border-radius: 4px;
  color: #1e252c;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  min-height: 28px;
  padding: 2px 5px;
  text-align: center;
  width: 66px;
}

.duration-display:hover {
  background: #eef7f8;
  border-color: #2c7892;
}

.locked-duration-cell .duration-display,
.locked-duration-cell .duration-display:disabled {
  background: #edf1f4;
  border-color: #d0d8df;
  color: #8a96a0;
  cursor: not-allowed;
}

.locked-duration-cell .duration-display:hover {
  background: #edf1f4;
  border-color: #d0d8df;
}

.duration-editor {
  align-items: center;
  display: flex;
  margin-inline: auto;
  width: 66px;
}

.duration-text-input {
  height: 28px;
  min-height: 28px;
  padding: 2px 6px;
}

.duration-editor[hidden],
.duration-display[hidden] {
  display: none;
}

.duration-indicator {
  background: transparent;
  border-color: transparent;
  color: #a1adb7;
  display: none;
  font-size: 16px;
  height: 28px;
  line-height: 1;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
}

.duration-indicator.has-duration {
  color: #2c7892;
}

.duration-combined-indicator {
  display: none;
  gap: 2px;
  justify-content: center;
}

.duration-combined-indicator-button {
  background: transparent;
  border-color: transparent;
  color: #a1adb7;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  line-height: 1;
  min-height: 24px;
  min-width: 18px;
  padding: 0;
}

.duration-combined-indicator-button.has-duration {
  color: #2c7892;
}

.duration-columns-collapsed .late-night-absence-cell .duration-display,
.duration-columns-collapsed .late-night-absence-cell .duration-editor,
.duration-columns-collapsed .late-night-absence-cell .duration-indicator,
.duration-columns-collapsed .time-leave-cell {
  display: none;
}

.duration-columns-collapsed .late-night-absence-cell .duration-combined-indicator {
  align-items: center;
  display: inline-flex;
}

.note-input {
  width: 100%;
}

.inline-project-cell {
  padding-block: 2px;
  padding-left: 3px;
  width: var(--project-work-width);
}

.detail-columns-visible .inline-project-cell {
  width: var(--project-work-width);
}

.inline-project-list {
  align-items: center;
  display: flex;
  gap: 0;
  min-height: 28px;
  overflow: hidden;
  padding-bottom: 0;
  white-space: nowrap;
}

.inline-project-line {
  align-items: center;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 0;
  display: inline-flex;
  flex: 0 0 76px;
  gap: 0;
  min-height: 28px;
  padding: 0;
}

.inline-project-line.project-line-hidden,
.inline-project-header-item.project-line-hidden {
  display: none !important;
}

.inline-project-line .project-time-input {
  background: #ffffff;
  border-color: #adc4cf;
  height: 28px;
  min-height: 28px;
  margin-inline: auto;
  padding-inline: 6px;
  width: 68px;
}

.inline-project-mobile-label {
  display: none;
}

.no-project-work .inline-project-line {
  background: transparent;
  border-color: transparent;
}

.no-project-work .inline-project-line .project-time-input {
  color: #8a96a0;
  cursor: not-allowed;
}

.inline-project-empty {
  align-items: center;
  color: #7b8792;
  display: inline-flex;
  font-size: 12px;
  min-height: 28px;
}

.detail-list {
  align-items: center;
  display: grid;
  flex: 1 1 520px;
  gap: 8px;
  grid-template-columns: 112px 120px minmax(260px, 1fr);
  min-width: 0;
}

.detail-field {
  align-items: center;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.detail-field > span {
  color: #52616e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-field-wide input {
  min-width: 0;
  width: 100%;
}

.save-button {
  min-height: 34px;
  padding-inline: 7px;
}

.save-button {
  background: #ffffff;
  border-color: #d7e0ea;
  color: #334155;
  min-width: 44px;
}

.save-button:hover,
.save-button:focus {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  outline: none;
}

.save-button:disabled {
  background: #f1f5f9;
  border-color: #d8e1eb;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}

.detail-toggle-button {
  background: #ffffff;
  border-color: #d7e0ea;
  border-radius: 7px;
  color: #334155;
  height: 26px;
  min-height: 26px;
  min-width: 26px;
  padding-inline: 0;
  position: relative;
  width: 26px;
}

.detail-toggle-button::before,
.detail-toggle-button::after {
  background: currentColor;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.detail-toggle-button::before {
  height: 2px;
  width: 12px;
}

.detail-toggle-button::after {
  height: 12px;
  width: 2px;
}

.detail-toggle-button[aria-expanded="true"]::after {
  display: none;
}

.detail-toggle-button:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.detail-toggle-button:focus {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  outline: none;
}

.detail-toggle-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
  outline: none;
}

.project-row td {
  background: #f5f8fa;
  padding: 9px 12px;
}

.project-detail-strip {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.project-header,
.project-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-header {
  color: #34414c;
  flex: 0 0 auto;
  font-size: 13px;
}

.project-header strong {
  font-variant-numeric: tabular-nums;
}

.project-list {
  display: grid;
  gap: 4px;
  max-width: 760px;
}

.project-line {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 96px minmax(220px, 1fr) 86px 54px;
}

.project-line.inline-project-line {
  display: inline-flex;
  grid-template-columns: none;
}

.month-project-list {
  background: #ffffff;
  border: 0;
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
  padding: 0;
}

.month-project-line {
  border-bottom: 1px solid #e4e9ee;
  grid-template-columns: 38px 86px 105px minmax(0, 1fr) 110px 116px;
  min-height: 34px;
  min-width: 0;
  padding: 0 12px;
}

.month-project-dialog .project-line-header > span {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}

.month-project-dialog .month-project-line:not(.project-line-header) > span:not(.project-order-actions) {
  font-size: 14px;
}

.month-project-dialog #closeMonthProjectFooterButton {
  border-radius: 6px;
  font-weight: 900;
  min-height: 38px;
  min-width: 112px;
  padding: 0 18px;
}

.project-line-header {
  background: #e5edf3;
  border-bottom: 1px solid #cbd8e0;
  color: #34414c;
  font-size: 12px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.project-time-input {
  font-variant-numeric: tabular-nums;
  min-height: 30px;
  padding: 4px 6px;
  width: 100%;
}

.project-code-label {
  color: #26323d;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.project-row-number {
  color: #697782;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.project-time-input {
  text-align: center;
}

.project-name {
  color: #53606b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-empty {
  border-bottom: 1px solid #e4e9ee;
  color: #6d7883;
  padding: 18px 12px;
  text-align: center;
}

.project-footer {
  color: #66737f;
  flex: 0 0 auto;
  font-size: 12px;
  justify-content: flex-end;
}

.project-save-button {
  min-width: 122px;
}

.project-order-actions {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.project-action-icon {
  fill: none;
  height: 16px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.empty {
  color: #6d7883;
  padding: 28px 8px;
  text-align: center;
}

.mobile-calendar-placeholder,
.mobile-selected-placeholder {
  display: none;
}

@keyframes saved-flash {
  from {
    background: #dff2e7;
  }
  to {
    background: transparent;
  }
}

@media (max-width: 760px) {
  .app-header {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .app-nav {
    justify-content: flex-start;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .app-nav-link {
    flex: 0 0 auto;
  }

  .header-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .header-user-control {
    flex: 1 1 160px;
  }

  .header-user-control input {
    flex: 1;
    min-width: 84px;
  }

  .header-actions button {
    white-space: nowrap;
  }

  .status {
    max-width: none;
    width: 100%;
  }

  main {
    padding: 12px;
  }

  .app-footer {
    bottom: auto;
    display: none;
    position: static;
    padding: 8px 12px;
  }

  .table-wrap {
    background: transparent;
    border: 0;
    max-height: none;
    overflow: visible;
  }

  table,
  tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  tbody {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .attendance-table {
    min-width: 0;
    table-layout: auto;
    width: 100%;
  }

  .detail-columns-visible table {
    min-width: 0;
    width: 100%;
  }

  colgroup,
  thead tr:not(.table-control-row) {
    display: none;
  }

  thead {
    display: block;
    margin-bottom: 8px;
  }

  .table-control-row {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #d2dae2;
    border-radius: 8px;
    box-sizing: border-box;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 46px;
    overflow: visible;
    width: 100%;
  }

  .table-control-row th {
    display: none;
  }

  .table-control-row th:first-child {
    background: transparent;
    border: 0;
    display: block;
    padding: 0;
  }

  .table-control-row th:nth-child(2) {
    background: transparent;
    border: 0;
    display: block;
    padding: 0;
  }

  .table-control-row .month-header-controls {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    padding: 8px;
  }

  .table-control-row .project-header-controls {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    display: flex;
    height: 44px;
    padding: 8px;
  }

  .table-control-row .project-header-controls > :not(#openMonthProjectButton) {
    display: none;
  }

  .table-control-row #openMonthProjectButton {
    height: 28px;
    min-height: 28px;
    padding-block: 0;
    white-space: nowrap;
  }

  .table-control-row .month-header-stats,
  .table-control-row .month-header-summary {
    display: none;
  }

  .table-control-row .table-header-range {
    align-self: center;
    font-size: 17px;
    justify-self: center;
  }

  tbody tr:not(.project-row) {
    background: #ffffff;
    border: 1px solid #d2dae2;
    border-radius: 8px;
    box-sizing: border-box;
    display: grid;
    gap: 0;
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 38px;
    margin-bottom: 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding: 6px;
    scroll-snap-align: start;
  }

  tbody tr.mobile-calendar-placeholder {
    background: #eef3f5 !important;
    border-color: #dbe4e8 !important;
    color: #9aa7b0;
    display: grid;
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 38px;
    pointer-events: none;
  }

  tbody tr.mobile-selected-placeholder {
    background: #e9f6f6;
    border-color: #73a9b5;
    box-shadow: inset 0 0 0 1px #73a9b5;
    display: grid;
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 38px;
  }

  tbody tr.mobile-expanded:not(.project-row) {
    gap: 7px 6px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 42px 38px 38px auto 38px;
    padding: 10px;
  }

  tbody tr:nth-child(4n + 1):not(.project-row) {
    background: #ffffff;
  }

  tbody tr.weekend:not(.dirty),
  tbody tr.holiday:not(.dirty) {
    background: #f7f0ec;
  }

  tbody tr.validation-incomplete {
    background: #fff8df;
  }

  tbody tr.validation-invalid {
    background: #fff0ee;
  }

  tbody tr.approved:not(.project-row) {
    background: #eaf5f6;
    border-color: #76aeb8;
    box-shadow: inset 0 0 0 2px #76aeb8;
  }

  tbody tr.mobile-expanded.approved:not(.project-row) {
    box-shadow: inset 0 0 0 2px #76aeb8;
  }

  tbody tr:not(.mobile-expanded):not(.project-row).validation-incomplete {
    border-color: #d9a321;
    box-shadow: inset 0 0 0 2px #d9a321;
  }

  tbody tr:not(.mobile-expanded):not(.project-row).validation-invalid {
    border-color: #d25b4d;
    box-shadow: inset 0 0 0 2px #d25b4d;
  }

  tbody tr:not(.mobile-expanded):not(.project-row).dirty.validation-incomplete {
    border-color: #d9a321;
    box-shadow: inset 0 0 0 2px #d9a321, inset 0 -4px 0 #c98a16;
  }

  tbody tr:not(.mobile-expanded):not(.project-row).dirty.validation-invalid {
    border-color: #d25b4d;
    box-shadow: inset 0 0 0 2px #d25b4d, inset 0 -4px 0 #c98a16;
  }

  tbody tr:not(.project-row) td {
    border-bottom: 0;
    display: none;
    min-width: 0;
    padding: 0;
    width: auto;
  }

  tbody tr.mobile-expanded:not(.project-row) td {
    display: block;
  }

  tbody tr:not(.project-row) td::before {
    color: #65737f;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 0;
  }

  tbody tr:not(.project-row) td:nth-child(1) {
    align-self: center;
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  tbody tr.mobile-expanded:not(.project-row) td:nth-child(1) {
    grid-column: 1 / 3;
  }

  tbody tr:not(.project-row) td:nth-child(1)::before {
    content: none;
  }

  tbody tr:not(.mobile-expanded):not(.project-row) .day-state-badge {
    display: none;
  }

  tbody tr:not(.mobile-expanded):not(.project-row) .application-request-mark-list {
    display: none;
  }

  tbody tr:not(.project-row) td:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  tbody tr:not(.project-row) td:nth-child(2)::before {
    content: "区分";
  }

  tbody tr:not(.project-row) td:nth-child(3)::before {
    content: "始業";
  }

  tbody tr:not(.project-row) td:nth-child(3) {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  tbody tr:not(.project-row) td:nth-child(4)::before {
    content: "終業";
  }

  tbody tr:not(.project-row) td:nth-child(4) {
    grid-column: 5 / 7;
    grid-row: 2;
  }

  tbody tr:not(.project-row) td:nth-child(5)::before {
    content: "休憩";
  }

  tbody tr:not(.project-row) td:nth-child(5) {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  tbody tr:not(.project-row) td:nth-child(6)::before {
    content: "深夜\A休憩";
    line-height: 1.1;
    white-space: pre-line;
  }

  tbody tr:not(.project-row) td:nth-child(6) {
    grid-column: 3 / 5;
    grid-row: 3;
  }

  tbody tr:not(.project-row) td:nth-child(7)::before {
    content: "時間\A有休";
    line-height: 1.1;
    white-space: pre-line;
  }

  tbody tr:not(.project-row) td:nth-child(7) {
    grid-column: 5 / 7;
    grid-row: 3;
  }

  tbody tr:not(.project-row) td:nth-child(8)::before {
    content: none;
  }

  tbody tr:not(.project-row) td:nth-child(8) {
    align-self: center;
    display: flex;
    grid-column: 3 / 5;
    grid-row: 1;
    justify-content: center;
  }

  tbody tr:not(.project-row) td:nth-child(8) .actual-stack {
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    gap: 3px;
    min-height: 0;
    padding: 0;
    width: 100%;
  }

  tbody tr:not(.project-row) td:nth-child(8) .actual-summary-line,
  tbody tr:not(.project-row) td:nth-child(8) .non-project-summary-line {
    background: #f6fbfb;
    border: 1px solid #cfe0dd;
    border-radius: 999px;
    display: grid;
    gap: 3px;
    grid-template-columns: 34px minmax(0, 1fr);
    justify-content: stretch;
    min-height: 17px;
    padding: 1px 7px;
    text-align: right;
  }

  tbody tr:not(.project-row) td:nth-child(8) .actual-summary-line::before {
    color: #65737f;
    content: "実働";
    font-size: 10px;
    font-weight: 700;
    text-align: left;
  }

  tbody tr:not(.project-row) td:nth-child(8) .non-project-summary-line::before {
    color: #65737f;
    content: "工番外";
    font-size: 10px;
    font-weight: 700;
    text-align: left;
  }

  tbody tr:not(.project-row) td:nth-child(8) .actual-summary-line strong,
  tbody tr:not(.project-row) td:nth-child(8) .non-project-summary-line strong {
    font-size: 11px;
  }

  tbody tr:not(.project-row) td:nth-child(8) .late-night-cell {
    font-size: 10px;
  }

  tbody tr:not(.project-row) td:nth-child(9) {
    align-self: stretch;
    display: grid;
    grid-column: 1 / -1;
    grid-row: 4;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }

  tbody tr:not(.project-row) td:nth-child(9)::before {
    content: none;
  }

  .detail-columns-visible .detail-column,
  tbody tr:not(.project-row) td.detail-column {
    display: none;
  }

  tbody tr:not(.project-row) td:nth-child(10) {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  tbody tr.mobile-expanded:not(.project-row) td:nth-child(10) {
    border-left: 0;
  }

  tbody tr:not(.project-row) td:nth-child(10)::before {
    content: "備考";
  }

  tbody tr:not(.project-row) td:nth-child(11) {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-column: 5 / 7;
    grid-row: 1;
    justify-content: flex-end;
  }

  tbody tr:not(.project-row) td:nth-child(2),
  tbody tr:not(.project-row) td:nth-child(3),
  tbody tr:not(.project-row) td:nth-child(4),
  tbody tr:not(.project-row) td:nth-child(5),
  tbody tr:not(.project-row) td:nth-child(6),
  tbody tr:not(.project-row) td:nth-child(7),
  tbody tr:not(.project-row) td:nth-child(10) {
    align-items: center;
    display: grid;
    gap: 4px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  tbody tr:not(.project-row) td:nth-child(2),
  tbody tr:not(.project-row) td:nth-child(3),
  tbody tr:not(.project-row) td:nth-child(4) {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  tbody tr:not(.project-row) td:nth-child(5),
  tbody tr:not(.project-row) td:nth-child(6),
  tbody tr:not(.project-row) td:nth-child(7) {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  tbody tr:not(.project-row) td:nth-child(10) {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .row-actions {
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
  }

  tbody tr:not(.project-row) td:nth-child(11)::before {
    content: none;
  }

  tbody tr:not(.mobile-expanded):not(.project-row) td:not(:first-child) {
    display: none;
  }

  .date-label {
    font-size: 20px;
    font-weight: 700;
  }

  tbody tr:not(.mobile-expanded):not(.project-row) .date-header {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
  }

  tbody tr:not(.mobile-expanded):not(.project-row) .date-label {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
  }

  tbody tr:not(.mobile-expanded):not(.project-row) .date-label {
    font-size: 0;
  }

  tbody tr:not(.mobile-expanded):not(.project-row) .date-label::before {
    content: attr(data-mobile-date);
    font-size: 12px;
  }

  tbody tr.mobile-calendar-placeholder .date-label {
    color: #9aa7b0;
  }

  tbody tr:not(.mobile-expanded):not(.project-row) {
    cursor: pointer;
  }

  tbody tr.mobile-expanded:not(.project-row) {
    box-shadow: 0 8px 18px rgba(31, 51, 58, 0.12);
  }

  .attendance-type-select,
  .time-display,
  .duration-display {
    min-height: 34px;
    width: 100%;
  }

  .time-input,
  .duration-text-input {
    height: 34px;
    min-height: 34px;
    width: 100%;
  }

  .time-editor,
  .duration-editor {
    width: 100%;
  }

  .note-cell .note-input {
    width: 100%;
  }

  .inline-project-header {
    display: none;
  }

  .inline-project-cell,
  .detail-columns-visible .inline-project-cell {
    align-self: stretch;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding-left: 0;
    width: auto;
  }

  .inline-project-list {
    align-content: start;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding-right: 2px;
    white-space: normal;
  }

  .project-line.inline-project-line {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    flex: none;
    gap: 6px;
    min-height: 0;
    padding: 5px;
  }

  .inline-project-mobile-label {
    display: block;
    min-width: 0;
  }

  .inline-project-mobile-label strong,
  .inline-project-mobile-label small {
    color: #40515f;
    display: block;
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .inline-project-mobile-label small {
    color: #65737f;
    font-weight: 600;
  }

  .inline-project-line .project-time-input {
    min-height: 36px;
    min-width: 0;
    width: 100%;
  }

  .save-button {
    min-height: 36px;
    min-width: 76px;
  }

  .project-row {
    display: block;
    margin: -6px 0 10px;
    width: 100%;
  }

  .project-row td {
    border: 1px solid #d2dae2;
    box-sizing: border-box;
    display: block;
    padding: 10px;
    width: 100%;
  }

  tfoot,
  .table-summary-row,
  .table-summary-row td {
    display: block;
    width: 100%;
  }

  .table-summary-row {
    border: 1px solid #bdd5cf;
    margin-top: 10px;
  }

  .table-summary-row td {
    border-top: 0;
    box-shadow: none;
    position: static;
  }

  .summary-metric-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .table-summary-row .table-project-summary-cell {
    display: none !important;
  }

  .table-summary-row .table-non-project-summary {
    display: none !important;
  }

  .table-summary-action {
    display: none;
  }

  .project-detail-strip {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .project-header,
  .project-footer {
    gap: 8px 12px;
  }

  .detail-list {
    display: grid;
    flex: none;
    gap: 8px;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .detail-field {
    align-items: stretch;
    display: grid;
    gap: 4px;
  }

  .detail-field-wide input {
    min-height: 40px;
  }

  .project-list {
    max-width: none;
  }

  .month-project-list {
    max-height: 62vh;
  }

  .month-project-line.project-line-header {
    display: none;
  }

  .month-project-line {
    align-items: start;
    border-bottom: 1px solid #e4e9ee;
    gap: 4px 8px;
    grid-template-columns: 34px 76px minmax(0, 1fr) auto;
    min-height: 0;
    min-width: 0;
    padding: 8px 4px 8px 10px;
  }

  .month-project-line > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .month-project-line > :nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-weight: 700;
    justify-self: start;
  }

  .month-project-line > :nth-child(3) {
    color: #26323d;
    font-weight: 700;
    grid-column: 3;
    grid-row: 1;
    padding-right: 0;
  }

  .month-project-line > :nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .month-project-line > :nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .month-project-line > :nth-child(6) {
    align-self: center;
    grid-column: 4;
    grid-row: 1 / span 3;
  }

  .project-order-actions {
    align-items: stretch;
    display: grid;
    gap: 4px;
    grid-template-columns: 36px 36px;
  }

  .project-order-actions .project-order-button {
    grid-column: 1;
  }

  .project-order-actions .project-delete-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
  }

  .dialog-backdrop {
    padding: 10px;
  }

  .month-project-dialog {
    align-items: stretch;
  }

  .confirm-backdrop {
    align-items: center;
    padding: 12px;
  }

  .month-project-dialog-panel {
    border-radius: 6px;
    height: calc(100vh - 20px);
    width: calc(100vw - 20px);
  }

  .confirm-panel {
    height: auto;
    max-height: calc(100vh - 24px);
    width: calc(100vw - 24px);
  }

  .project-search-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .project-save-options {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }

  .project-search-result small {
    grid-column: 1 / -1;
  }

  .project-search-result {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
    padding: 8px 10px;
  }

  .admin-main {
    padding: 14px 16px 72px;
  }

  .attendance-management-main {
    padding: 12px 10px 52px;
  }

  .attendance-management-bar {
    grid-template-columns: 1fr;
    padding: 14px 12px 14px 26px;
  }

  .attendance-management-bar::before {
    bottom: 12px;
    left: 10px;
    top: 12px;
  }

  .attendance-management-period-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .attendance-management-primary-actions {
    justify-content: flex-start;
  }

  .attendance-management-list-header {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .attendance-management-list-tools {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .attendance-management-list-tools select,
  .attendance-management-list-tools #adminOrganizationFilter {
    min-width: 0;
    width: 100%;
  }

  .attendance-management-summary {
    flex-basis: 100%;
    min-width: 0;
  }

  .attendance-management-actions {
    justify-content: flex-start;
  }

  .admin-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions {
    flex-direction: column;
  }
}
