:root {
  --bg: #eef3ff;
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --line: #d9e2f2;
  --line-strong: #c3d0e6;
  --text: #162239;
  --muted: #6d7c97;
  --primary: #2f63dd;
  --primary-strong: #1f4fbf;
  --danger: #c0392b;
  --success-bg: #eafaf1;
  --success-line: #bbe5ca;
  --success-text: #1b7c45;
  --error-bg: #fdeeee;
  --error-line: #efc3c0;
  --error-text: #ac2f27;
  --shadow: 0 18px 44px rgba(30, 52, 93, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #dce8ff 0%, rgba(220, 232, 255, 0) 45%),
    radial-gradient(
      circle at top right,
      #e9f0ff 0%,
      rgba(233, 240, 255, 0) 42%
    ),
    var(--bg);
}

.container-wide {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 8px;
}

.site-header {
  position: relative;
  background: #f7f8fc;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

.header-main {
  min-height: 150px;
  padding-top: 12px;
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand-center {
  display: grid;
  place-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 8px;
  text-align: center;
}

.brand-home-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-home-link:hover .brand-title {
  color: #1c3568;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid #d5dff2;
  background:
    center/cover no-repeat url("/logo/logo.jpeg"),
    radial-gradient(circle at 30% 25%, #6fc7ff, rgba(111, 199, 255, 0) 38%),
    linear-gradient(145deg, #2872e5, #1f56bf);
  box-shadow: 0 8px 20px rgba(47, 99, 221, 0.25);
}

.brand-title {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.18;
  color: #203a72;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.account-area {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #1f3b76;
  text-decoration: none;
  font-weight: 700;
  transition:
    border-color 120ms ease,
    transform 120ms ease;
}

.login-btn:hover {
  border-color: #95ace0;
  transform: translateY(-1px);
}

.user-menu {
  position: relative;
}

.user-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 9px 12px;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-meta {
  display: grid;
  text-align: right;
  gap: 1px;
}

.user-meta strong {
  font-size: 0.97rem;
}

.user-meta span {
  font-size: 0.84rem;
  color: var(--muted);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #c9d5ec;
  background:
    center/cover no-repeat url("/logo/logo.jpeg"),
    #ffffff;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 10;
}

.user-dropdown a,
.user-dropdown .menu-link {
  display: block;
  width: 100%;
  padding: 12px 14px;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf1fa;
  color: #2b3f67;
  font-weight: 600;
  text-align: left;
}

.user-dropdown form {
  margin: 0;
}

.user-dropdown a:hover,
.user-dropdown .menu-link:hover {
  background: #f4f7ff;
}

.user-dropdown a.active {
  background: #f4f7ff;
  color: #1f4fbf;
}

.user-dropdown .danger-link {
  color: #a73428;
}

.container {
  max-width: none;
  width: 100%;
  margin: 26px auto 42px;
  padding: 0 8px;
}

.toast-stack {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1200;
  width: min(420px, calc(100vw - 16px));
  display: grid;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-weight: 700;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.success {
  color: var(--success-text);
  background: var(--success-bg);
  border-color: var(--success-line);
}

.toast.error {
  color: var(--error-text);
  background: var(--error-bg);
  border-color: var(--error-line);
}

.toast-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  min-width: 0;
  width: auto;
  padding: 0;
  line-height: 1;
  font-size: 1.2rem;
  font-weight: 700;
}

.toast-close:hover {
  filter: none;
  opacity: 0.75;
}

.toast.hiding {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.hero-panel {
  background:
    linear-gradient(
      120deg,
      rgba(207, 223, 255, 0.56),
      rgba(234, 241, 255, 0.1)
    ),
    #fff;
}

.hero-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.evaluation-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evaluation-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid #d8e3f7;
  border-radius: 999px;
  background: #f7faff;
  color: #2c416a;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.evaluation-save-all-btn {
  min-width: 120px;
}

.evaluation-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.evaluation-table {
  width: 100%;
  min-width: 1220px;
  table-layout: fixed;
}

.evaluation-table th,
.evaluation-table td {
  text-align: center;
  vertical-align: middle;
}

.evaluation-table th:nth-child(1),
.evaluation-table td:nth-child(1) {
  width: 44px;
}

.evaluation-table th:nth-child(2),
.evaluation-table td:nth-child(2) {
  width: 112px;
}

.evaluation-table th:nth-child(3),
.evaluation-table td:nth-child(3) {
  width: 64px;
}

.evaluation-table th:nth-child(4),
.evaluation-table td:nth-child(4) {
  width: 76px;
}

.evaluation-table th:nth-child(6),
.evaluation-table td:nth-child(6) {
  width: 122px;
}

.evaluation-table th:nth-child(7),
.evaluation-table td:nth-child(7) {
  width: 144px;
}

.evaluation-table th:nth-child(5),
.evaluation-table td:nth-child(5) {
  width: 152px;
}

.evaluation-table th:nth-child(8),
.evaluation-table td:nth-child(8) {
  width: 404px;
}

.evaluation-table th:nth-child(9),
.evaluation-table td:nth-child(9) {
  width: 126px;
}

.evaluation-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid #d8e1f4;
  background: #f7faff;
  color: #334b75;
}

.evaluation-status.is-checkin {
  color: #157347;
  background: #edf9f1;
  border-color: #c6e8d2;
}

.evaluation-status.is-complete {
  color: #1f4fbf;
  background: #eef3ff;
  border-color: #ccd8f6;
}

.evaluation-status.is-late {
  color: #9d650f;
  background: #fff4e6;
  border-color: #f3d8ae;
}

.evaluation-status.is-absent {
  color: #af332a;
  background: #fdeeee;
  border-color: #f0cbc7;
}

.evaluation-status.is-support {
  color: #5f35b5;
  background: #efe8ff;
  border-color: #ddd0ff;
}

.evaluation-status.is-leave {
  color: #6a41c6;
  background: #f3ecff;
  border-color: #dfd1ff;
}

.evaluation-report-cell {
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

.evaluation-score-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.evaluation-score-input {
  width: 92px;
  min-width: 0;
  margin: 0;
  text-align: center;
  padding: 7px 8px;
}

.evaluation-save-btn {
  min-width: 68px;
}

.evaluation-score-col.is-pending-score {
  background: #fff4df;
}

.evaluation-table tbody tr.is-pending-row td {
  background: #fff4df;
}

.evaluation-score-col.is-pending-score .evaluation-score-input {
  border-color: #e8b56b;
  background: #fffaf1;
}

.evaluation-empty-cell {
  text-align: center;
  color: #6d7c97;
  font-weight: 600;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.quick-link-row {
  margin-top: 10px;
}

.rfid-capture-toolbar {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 14px;
}

button.capture-rfid-btn {
  justify-self: start;
  min-width: 150px;
  background: #fff;
  color: #1f3b76;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

button.capture-rfid-btn:hover {
  filter: none;
  border-color: #95ace0;
}

button.capture-rfid-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.rfid-capture-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #c9d5ec;
  background: #f7f9ff;
  color: #31486e;
  font-weight: 600;
}

.rfid-capture-status[data-state="waiting"] {
  border-color: #f0b44c;
  background: #fff8e8;
  color: #8a5800;
}

.rfid-capture-status[data-state="success"] {
  border-color: #b6dfc2;
  background: #edf9f1;
  color: #187347;
}

.rfid-capture-status[data-state="error"] {
  border-color: #efc3c0;
  background: #fdeeee;
  color: #ac2f27;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.register-grid {
  margin-top: 10px;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.member-rfid-form {
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.member-rfid-form input[type="text"] {
  width: 128px;
  height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 8px;
  font-family: inherit;
}

.member-actions-cell {
  text-align: center;
}

.member-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.member-actions form {
  margin: 0;
}

.icon-action-btn {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.icon-action-btn.is-reset {
  background: linear-gradient(135deg, #2f63dd, #1f4fbf);
}

.icon-action-btn.is-delete {
  background: #c0392b;
}

.icon-action-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: none;
}

.week-switcher {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.week-control-stack {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.primary-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.panel-bottom-action-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.register-green-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, #2abf63, #1f9f53);
  color: #ffffff;
  border-radius: 10px;
  border: 1px solid #1f944e;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  min-width: 78px;
  text-align: center;
}

.register-green-btn:hover {
  filter: brightness(0.95);
}

.quick-register-dialog {
  width: min(980px, calc(100vw - 16px));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0;
  background: var(--surface);
}

.shift-slot-dialog {
  width: min(860px, calc(100vw - 16px));
}

.quick-register-dialog::backdrop {
  background: rgba(22, 34, 57, 0.35);
}

.password-change-dialog {
  width: min(520px, calc(100vw - 16px));
}

.quick-register-box {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.quick-register-box h3 {
  margin: 0;
  font-size: 1.35rem;
}

.quick-register-form {
  display: grid;
  gap: 10px;
}

.password-change-form {
  max-width: 100%;
}

.password-change-form .quick-register-actions {
  display: flex;
  gap: 12px;
  width: min(360px, 100%);
  margin-left: auto;
}

.password-change-form .quick-register-actions > * {
  flex: 1 1 0;
  min-width: 0;
}

.password-change-form .quick-register-actions .register-green-btn,
.password-change-form .quick-register-actions .secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.quick-register-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-register-actions.is-tight {
  justify-content: flex-end;
}

.report-yellow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #3b2d00;
  border-radius: 10px;
  border: 1px solid #ca8a04;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  min-width: 78px;
  text-align: center;
}

.report-yellow-btn:hover {
  filter: brightness(0.95);
}

.report-yellow-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: none;
}

.work-report-dialog {
  width: min(760px, calc(100vw - 16px));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0;
  background: var(--surface);
}

.work-report-dialog::backdrop {
  background: rgba(22, 34, 57, 0.35);
}

.work-report-box {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.work-report-box h3 {
  margin: 0;
  font-size: 1.35rem;
}

.work-report-form {
  display: grid;
  gap: 10px;
}

.work-report-label {
  font-weight: 700;
  color: #2b3f67;
}

.work-report-select {
  width: 100%;
  height: 40px;
  border: 1px solid #cfd9ef;
  border-radius: 10px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: #fff;
}

.work-report-select:focus {
  border-color: #0f7bde;
  box-shadow: 0 0 0 3px rgba(15, 123, 222, 0.18);
}

.work-report-textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid #cfd9ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.35;
  resize: vertical;
  outline: none;
}

.work-report-textarea:focus {
  border-color: #0f7bde;
  box-shadow: 0 0 0 3px rgba(15, 123, 222, 0.18);
}

.work-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-register-table-wrap {
  overflow-x: auto;
}

.quick-register-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.quick-register-table th,
.quick-register-table td {
  border: 1px solid #cfd9ef;
  text-align: center;
  vertical-align: middle;
  padding: 8px 5px;
}

.quick-register-table thead th {
  background: #e8efff;
  color: #233d75;
  font-size: 0.88rem;
  line-height: 1.2;
}

.quick-register-table tbody th {
  background: #f5f8ff;
  color: #233d75;
  font-weight: 700;
  width: 92px;
}

.slot-check {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.slot-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  border: 1px solid #93a9d8;
  accent-color: #1f9f53;
  cursor: pointer;
}

.slot-check input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-cell-closed {
  background: #f3f3f3;
}

.quick-register-helper-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.week-switch-link {
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: #eef3ff;
  color: #263f76;
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 6px;
  min-width: 36px;
  text-align: center;
  line-height: 1;
  font-size: 0.9rem;
}

.week-switch-link:hover {
  background: #e2eaff;
}

.week-switch-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-color: transparent;
  color: #fff;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #304669;
}

input,
select,
button {
  width: 100%;
  font: inherit;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  padding: 9px 11px;
}

input:focus,
select:focus {
  outline: 2px solid #afc5f8;
  border-color: #8fabe4;
}

button {
  width: auto;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-width: 126px;
}

button:hover {
  filter: brightness(0.97);
}

.secondary-btn {
  background: #eef3ff;
  color: #253f75;
  border: 1px solid #c8d5f0;
}

button.danger {
  background: var(--danger);
}

button.subtle {
  padding: 6px 9px;
  font-size: 0.84rem;
  min-width: unset;
}

.password-viewer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.password-text {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.password-toggle-btn {
  background: #eef3ff;
  color: #233f76;
  border: 1px solid #c6d4f0;
}

.status-text {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.status-text.success {
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid var(--success-line);
}

.status-text.warning {
  color: #8b5b16;
  background: #fff6e4;
  border: 1px solid #f2d59a;
}

.auth-panel {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.demo-credentials {
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  border: 1px solid #dee5f5;
  padding: 10px;
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--surface-soft);
  font-size: 0.93rem;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.attendance-entry-helper {
  margin-bottom: 16px;
}

.attendance-entry-list {
  display: grid;
  gap: 16px;
}

.attendance-entry-row {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1.42fr) minmax(0, 1fr) minmax(0, 0.78fr)
    minmax(0, 1.08fr) minmax(0, 1.72fr);
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #d7e4f8;
  border-radius: 20px;
  background: #f8fbff;
  box-shadow: 0 12px 22px rgba(25, 64, 145, 0.06);
}

.attendance-entry-row.is-slot-editor {
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.35fr);
}

.attendance-entry-field {
  margin: 0;
  display: grid;
  gap: 6px;
}

.attendance-entry-field span {
  font-size: 0.82rem;
  font-weight: 800;
  color: #5f7196;
}

.attendance-entry-field input,
.attendance-entry-field select,
.attendance-entry-field textarea {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cad8ef;
  border-radius: 14px;
  background: #fff;
  color: #243456;
  font: inherit;
  box-sizing: border-box;
}

.attendance-entry-field textarea {
  min-height: 86px;
  resize: vertical;
}

.attendance-entry-report textarea {
  min-height: 96px;
}

.attendance-entry-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #d2ddf2;
  border-radius: 999px;
  background: #fff;
  color: #5d6f92;
  font-size: 1.28rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.attendance-entry-remove:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.attendance-entry-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.plain-list li {
  background: #f7f9ff;
  border: 1px solid #e6ebf7;
  border-radius: 9px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.personnel-frame-panel {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.personnel-frame {
  display: block;
  width: 100%;
  height: 0;
  min-height: 0;
  border: 0;
  background: transparent;
}

.weekly-board-wrap {
  margin-top: 12px;
  overflow-x: visible;
}

.weekly-duty-board {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f2f2f2;
}

.weekly-duty-board th,
.weekly-duty-board td {
  border: 1px solid #272727;
  text-align: center;
  vertical-align: middle;
  padding: 8px 8px;
}

.weekly-duty-board .day-head {
  background: #cecece;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.weekly-duty-board .shift-head {
  background: #bfbfbf;
  font-size: 0.95rem;
  font-weight: 700;
}

.shift-head-button {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
}

.shift-head-button:hover {
  filter: none;
  text-decoration: underline;
}

.weekly-duty-board .name-cell {
  height: 40px;
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 0;
  white-space: normal;
  word-break: break-word;
}

.slot-entry {
  min-height: 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

.slot-entry.is-empty {
  grid-template-columns: 1fr;
}

.slot-entry.is-report-mode {
  grid-template-columns: 1fr 1fr;
}

.slot-entry.is-name-only {
  grid-template-columns: 1fr;
}

.slot-name {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  color: #1d2e50;
}

.slot-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 6px;
  border-left: 1px solid #b8c5de;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
}

.slot-status.is-checkin {
  background: #edf9f1;
  color: #157347;
}

.slot-status.is-complete {
  background: #eef3ff;
  color: #1f4fbf;
}

.slot-status.is-late {
  background: #fff5e6;
  color: #a35f06;
}

.slot-status.is-absent {
  background: #fdeeee;
  color: #b3362d;
}

.slot-status.is-leave {
  background: #f3ecff;
  color: #6a41c6;
}

.slot-status.is-support {
  background: #efe8ff;
  color: #5f35b5;
}

.slot-status.is-report {
  background: #f5f8ff;
  color: #3d547e;
  justify-content: flex-start;
  text-align: left;
  font-weight: 600;
  padding: 6px 8px;
}

.slot-status.is-pending {
  background: transparent;
  color: transparent;
}

@media (max-width: 1060px) {
  .brand-title {
    font-size: 1.5rem;
  }

  .attendance-entry-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-entry-row.is-slot-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .account-area {
    position: static;
    transform: none;
    justify-self: center;
  }

  .panel h2 {
    font-size: 1.35rem;
  }

  .evaluation-score-cell {
    flex-wrap: wrap;
  }

  .week-switcher {
    justify-content: flex-start;
  }

  .week-control-stack {
    justify-items: start;
  }

  .quick-register-actions {
    justify-content: flex-start;
  }

  .primary-action-row {
    justify-content: flex-start;
  }

  .panel-bottom-action-row {
    justify-content: flex-start;
  }

  .quick-register-table tbody th {
    width: 76px;
  }

  .personnel-frame {
    height: 0;
    min-height: 0;
  }

  .attendance-entry-row {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .attendance-entry-footer {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .container,
  .container-wide {
    padding-left: 4px;
    padding-right: 4px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
    font-size: 0.82rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  th,
  td {
    padding: 8px;
    font-size: 0.9rem;
  }

  .weekly-duty-board .day-head {
    font-size: 0.78rem;
  }

  .weekly-duty-board .shift-head {
    font-size: 0.68rem;
    padding: 5px 3px;
  }

  .attendance-entry-row {
    padding: 14px;
  }

  .attendance-entry-remove {
    top: 8px;
    right: 8px;
  }

  .weekly-duty-board .name-cell {
    font-size: 0.62rem;
    height: 34px;
  }

  .slot-entry {
    min-height: 34px;
  }

  .slot-name {
    padding: 4px 5px;
  }

  .slot-status {
    font-size: 0.56rem;
    padding: 4px 2px;
  }

  .quick-register-table thead th {
    font-size: 0.72rem;
    padding: 6px 3px;
  }

  .quick-register-table tbody th {
    width: 64px;
    font-size: 0.78rem;
    padding: 6px 3px;
  }
}
