:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #d7dde6;
  --soft: #f4f7fb;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warn: #b45309;
  --bad: #b91c1c;
  --ok: #047857;
  --holiday: #fff1f2;
  --hint: #eff6ff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef2f7;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding: 18px clamp(14px, 4vw, 36px);
}

.brand-title {
  display: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 24px;
  margin-bottom: 0;
}

h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.period {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
}

.header-info {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.staff-display {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
  padding: 8px 10px;
}

.logout-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.app-update-btn {
  background: #e6f7d2;
  border: 1px solid #8ac914;
  border-radius: 999px;
  color: #246a00;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 10px;
  white-space: nowrap;
}

.staff-only-app .admin-only,
.admin-only-app .staff-only {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  background: linear-gradient(180deg, #f6f8fb 0%, #e9eef5 100%);
}

.auth-screen .app-header,
.auth-screen .tabs {
  display: none;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(23, 35, 54, 0.12);
  padding: 28px;
  width: min(100%, 420px);
}

.auth-brand {
  margin-bottom: 22px;
}

.auth-brand h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 4px 0 0;
}

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

.auth-form input {
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
  padding: 13px 12px;
  width: 100%;
}

.auth-submit {
  font-size: 16px;
  min-height: 48px;
  width: 100%;
}

.auth-error {
  color: #b42318;
  font-weight: 700;
  margin: 0;
}

.auth-note {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.admin-top-menu {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-top-menu button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  min-height: 72px;
  padding: 16px;
  text-align: left;
}

.tabs {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  position: sticky;
  top: 0;
  z-index: 5;
}

.tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 13px 6px 10px;
}

.tab.active {
  border-color: var(--accent);
  color: var(--accent-strong);
}

main {
  padding: clamp(14px, 4vw, 28px);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.toolbar,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
}

.toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select,
input[type="text"],
input[type="number"],
textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-top {
  display: grid;
  margin: 0 auto;
  max-width: 720px;
}

.staff-top-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.staff-current-datetime {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.staff-top-main {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-top-main-single {
  grid-template-columns: 1fr;
}

.staff-shift-status-card {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
}

.staff-shift-status-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.staff-shift-status-card strong {
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.staff-shift-status-card p {
  border-radius: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0;
  padding: 10px 12px;
}

.staff-shift-status-card.notice p {
  background: #e0f2fe;
  color: #075985;
}

.staff-shift-status-card.warning p {
  background: #fee2e2;
  color: #b91c1c;
}

.staff-shift-status-card.working p,
.staff-shift-status-card.complete p {
  background: #dcfce7;
  color: #166534;
}

.staff-shift-status-card.off {
  background: #f8fafc;
}

.staff-top-time-card {
  align-items: center;
  background: #eef8f7;
  border: 1px solid #b8ded9;
  border-radius: 8px;
  display: flex;
  min-height: 88px;
  padding: 14px;
}

.staff-top-card-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.staff-top-time-value {
  align-items: baseline;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.staff-top-time-card span,
.staff-top-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.staff-top-time-card strong {
  color: #0f766e;
  font-size: 42px;
  font-weight: 800;
  line-height: 0.95;
  margin-top: -2px;
}

.staff-top-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.staff-top-row {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(112px, 0.85fr) minmax(0, 1.3fr);
  min-height: 56px;
  padding: 10px 12px;
}

.staff-top-row:last-child {
  border-bottom: 0;
}

.staff-top-row strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.staff-leave-summary {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.staff-leave-heading {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

.staff-only-app {
  background: #fffbdc;
}

.staff-only-app .app-header {
  background: #8ac914;
  border-bottom: 0;
  min-height: 82px;
  padding: 17px clamp(12px, 3.2vw, 22px);
  position: relative;
}

.staff-only-app .app-header::before {
  background: linear-gradient(#fff, #fff) 0 0 / 35px 6px no-repeat,
    linear-gradient(#fff, #fff) 0 15px / 35px 6px no-repeat,
    linear-gradient(#fff, #fff) 0 30px / 35px 6px no-repeat;
  content: "";
  height: 36px;
  left: clamp(18px, 4vw, 34px);
  position: absolute;
  top: 23px;
  width: 35px;
}

.staff-only-app .period {
  display: none;
}

.staff-only-app .header-info {
  align-items: center;
  width: 100%;
}

.staff-only-app .staff-display {
  border: 2px solid #1aa444;
  border-radius: 999px;
  color: #000000;
  font-size: clamp(19px, 4.2vw, 27px);
  justify-content: center;
  margin-left: auto;
  min-height: 48px;
  min-width: min(46vw, 340px);
  padding: 6px 22px;
  position: relative;
}

.staff-only-app .staff-display span {
  display: block;
  padding: 0 44px;
  text-align: center;
  width: 100%;
}

.staff-only-app .app-update-btn {
  font-size: clamp(11px, 2.6vw, 14px);
  left: 7px;
  min-height: 32px;
  padding: 4px 9px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.staff-only-app .logout-btn {
  display: none;
}

.staff-only-app main {
  padding: 0;
}

.staff-only-app .tabs {
  display: none;
}

.staff-only-app .view:not(#staffTop) {
  margin: 0 auto;
  max-width: 820px;
  padding: 0 clamp(8px, 2.2vw, 16px) max(32px, env(safe-area-inset-bottom));
  width: 100%;
}

.staff-home-design {
  background: #fffbdc;
  color: #000000;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2svh, 18px);
  margin: 0 auto;
  max-width: 820px;
  min-height: calc(100svh - 82px);
  min-height: calc(100dvh - 82px);
  padding: 0 clamp(10px, 2.4vw, 18px) max(20px, env(safe-area-inset-bottom));
  width: 100%;
}

.staff-home-toolbar {
  display: none;
}

.staff-home-nav {
  align-items: center;
  display: grid;
  grid-template-columns: 70px repeat(4, minmax(0, 1fr));
  min-height: 88px;
  padding: 8px 0 6px;
  position: relative;
  column-gap: 4px;
}

.staff-home-nav::after {
  background: #8ac914;
  content: "";
  height: 1px;
  left: 82px;
  position: absolute;
  right: -18px;
  top: 77px;
}

.staff-only-app .view:not(#staffTop) > .staff-home-nav {
  margin-bottom: 10px;
}

.staff-home-chick,
.staff-home-nav-item,
.staff-home-apply-button,
.staff-home-phone {
  -webkit-tap-highlight-color: transparent;
}

.staff-home-chick {
  background: url("./design-asett/top/icon-chapiyo.png") center / contain no-repeat;
  border: 0;
  height: 70px;
  width: 70px;
}

.staff-home-nav-item {
  background: transparent;
  border: 0;
  color: #6f6f6f;
  font-size: clamp(17px, 3.9vw, 25px);
  font-weight: 900;
  min-height: 54px;
  padding: 2px 4px;
}

.staff-home-nav-item:disabled {
  opacity: 1;
}

.staff-home-card {
  background: #ffffff;
  border: 2px solid #8ac914;
  border-radius: 20px;
  flex: 0 0 auto;
  overflow: hidden;
}

.staff-home-card .staff-current-datetime {
  background: #8ac914;
  color: #ffffff;
  font-size: clamp(25px, 5.4vw, 37px);
  font-weight: 900;
  padding: 15px 14px;
  text-align: center;
}

.staff-home-shift-row {
  align-items: center;
  border-bottom: 2px solid #8ac914;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(112px, 0.64fr) minmax(0, 1.36fr);
  min-height: 96px;
  padding: 14px 22px;
}

.staff-home-shift-row span {
  font-size: clamp(21px, 4.2vw, 29px);
  font-weight: 900;
}

.staff-home-shift-row strong {
  color: #000000;
  font-size: clamp(38px, 8vw, 58px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.staff-home-message {
  color: #e4007f;
  font-size: clamp(18px, 3.8vw, 26px);
  font-weight: 900;
  line-height: 1.35;
  margin: 0;
  min-height: 0;
  padding: 9px 16px;
  text-align: center;
}

.staff-home-message[hidden] {
  display: none !important;
}

.staff-home-message.warning {
  color: #d80000;
}

.staff-home-message.notice,
.staff-home-message.working {
  color: #0070c9;
}

.staff-home-message.complete {
  color: #047857;
}

.staff-home-submission-action {
  background: #ffffff;
  border: 2px solid #8ac914;
  border-radius: 999px;
  color: #5a8f00;
  display: block;
  font-size: clamp(15px, 3vw, 21px);
  font-weight: 900;
  margin: 10px auto 14px;
  min-height: 42px;
  padding: 7px 22px;
  width: min(88%, 420px);
}

.staff-home-submission-status {
  color: #e4007f;
  font-size: clamp(15px, 3vw, 21px);
  font-weight: 900;
  line-height: 1.35;
  margin: 10px auto 14px;
  text-align: center;
  width: min(88%, 420px);
}

.staff-home-next {
  align-items: center;
  display: block;
  flex: 0 0 auto;
  margin-top: 0;
}

.staff-home-next-label {
  align-items: center;
  background: #20ad3d;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  min-height: 66px;
  padding: 8px 18px;
  width: 100%;
}

.staff-home-next-label span,
.staff-home-next-label strong {
  color: #ffffff;
  font-size: clamp(18px, 3.8vw, 25px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.staff-home-next-label strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  text-align: center;
}

.staff-home-next-icon,
.staff-home-notices-icon {
  background: #ffffff;
  border-radius: 999px;
  display: block;
  height: 36px;
  justify-self: center;
  position: relative;
  width: 36px;
}

.staff-home-next-icon::after,
.staff-home-notices-icon::after {
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 13px solid #8ac914;
  content: "";
  left: 50%;
  position: absolute;
  top: 11px;
  transform: translateX(-50%);
}

.staff-home-apply-button {
  background: url("./design-asett/top/button-shinsei.png") center / contain no-repeat;
  border: 0;
  height: 48px;
  width: 64px;
}

.staff-home-notices {
  border: 2px solid #08a9e7;
  border-radius: 16px;
  flex: 0 0 auto;
  margin-top: 0;
  overflow: hidden;
}

.staff-home-notices-head {
  align-items: center;
  background: #08a9e7;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  min-height: 68px;
  padding: 9px 18px 9px 22px;
}

.staff-home-notices-head span:first-child {
  color: #ffffff;
  font-size: clamp(23px, 4.7vw, 31px);
  font-weight: 900;
}

.staff-home-notices-icon::after {
  border-top-color: #08a9e7;
}

.staff-home-notices-icon.has-badge::before {
  align-items: center;
  background: #e4002b;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  content: attr(data-badge);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  min-width: 25px;
  padding: 0 5px;
  position: absolute;
  right: -11px;
  top: -12px;
  z-index: 1;
}

.staff-home-notice-permission {
  align-items: center;
  background: #fff7ed;
  border: 0;
  border-top: 2px solid #08a9e7;
  color: #c2410c;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: clamp(15px, 3.3vw, 20px);
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  width: 100%;
}

.staff-home-notice-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-top: 2px solid #08a9e7;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 10px 14px;
  text-align: left;
  width: 100%;
}

.staff-home-notice-row.empty {
  cursor: default;
}

.staff-home-notice-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.staff-home-notice-row strong {
  color: #000000;
  font-size: clamp(18px, 3.7vw, 25px);
  font-weight: 900;
  line-height: 1.2;
}

.staff-home-notice-title time {
  color: #475569;
  font-size: clamp(15px, 3.2vw, 20px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.staff-home-new-mark {
  background: #e4002b;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: clamp(12px, 2.8vw, 16px);
  font-weight: 900;
  justify-content: center;
  min-width: 48px;
  padding: 5px 9px;
}

.staff-notice-body {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 900;
  line-height: 1.75;
  padding: 18px;
  white-space: pre-wrap;
}

.staff-notice-sender {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 12px 16px;
}

.staff-notice-sender span {
  color: #9a3412;
  font-size: clamp(15px, 3.4vw, 19px);
  font-weight: 900;
}

.staff-notice-sender strong {
  color: #431407;
  font-size: clamp(18px, 4.4vw, 23px);
  font-weight: 900;
}

.staff-home-contact {
  display: grid;
  gap: clamp(6px, 1.8vw, 12px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 auto;
  margin-top: 2px;
  width: 100%;
}

.staff-home-phone {
  aspect-ratio: 462 / 127;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: block;
  min-height: 0;
}

.staff-home-phone.yoshida {
  background-image: url("./design-asett/top/button-yoshida.png");
}

.staff-home-phone.honnoji {
  background-image: url("./design-asett/top/button-honnoji.png");
}

.staff-home-phone.sagawa {
  background-image: url("./design-asett/top/button-sagawa.png");
}

.staff-leave-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 8px 10px;
}

.staff-leave-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.staff-leave-item strong {
  color: #0f766e;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.staff-clock-btn {
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  justify-self: end;
  line-height: 1;
  min-height: 32px;
  min-width: 92px;
  padding: 5px 12px;
}

.staff-clock-btn.clock-in {
  background: #0f766e;
}

.staff-clock-btn.clock-out {
  background: #334155;
}

.staff-clock-status {
  color: var(--ok);
  font-size: 14px;
  font-weight: 800;
  min-height: 20px;
  text-align: center;
}

.submit-summary-block {
  display: grid;
  margin-bottom: 14px;
  width: 100%;
}

.btn {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  text-decoration: none;
}

.btn.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.btn.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--warn);
}

.calendar-list {
  display: grid;
  gap: 14px;
}

.day-card {
  background: var(--panel);
  border: 1px solid #7c7c7c;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px 22px;
}

.day-card.holiday {
  background: var(--holiday);
}

.day-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.date-label {
  color: #000000;
  font-size: 28px;
  font-weight: 800;
}

.badge {
  color: #000000;
  font-size: 22px;
  font-weight: 700;
  padding: 0;
}

.badge.holiday {
  background: transparent;
  color: #be123c;
}

.slot-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.slot {
  display: block;
  min-width: 0;
}

.slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot-button {
  align-items: center;
  background: #ffffff;
  border: 2px solid #0098d8;
  border-radius: 14px;
  color: #0098d8;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 500;
  justify-content: center;
  min-height: 54px;
  padding: 6px 4px;
  white-space: nowrap;
  width: 100%;
}

.slot input:checked + .slot-button {
  background: #12a3dd;
  color: #fff200;
}

.custom-time-group {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(120px, 1fr) auto auto minmax(120px, 1fr);
}

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

.custom-time {
  border: 2px solid #0098d8;
  border-radius: 14px;
  color: #0098d8;
  font-size: 22px;
  min-height: 42px;
  min-width: 0;
  width: 100%;
}

.custom-time:disabled {
  background: #eef2f7;
  color: var(--muted);
}

.time-label {
  color: #000000;
  font-size: 14px;
  font-weight: 700;
}

.time-separator {
  color: #0098d8;
  font-size: 24px;
  font-weight: 800;
}

.work-summary {
  align-items: stretch;
  background: #fffbd9;
  border: 1px solid #7c7c7c;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(124px, 0.56fr) minmax(150px, 0.86fr);
  padding: 14px 14px 16px;
}

.work-summary-total {
  align-content: start;
  display: grid;
  gap: 12px;
  justify-items: center;
  min-width: 0;
  padding-top: 2px;
}

.work-summary-heading {
  color: #000000;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.work-summary-total strong {
  color: #000000;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.submit-image-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  margin-top: 2px;
  padding: 0;
}

.submit-image-btn img {
  display: block;
  height: auto;
  max-width: 118px;
  width: 100%;
}

.submit-edit-btn {
  background: #ffffff;
  border: 2px solid #dc2626;
  border-radius: 999px;
  color: #dc2626;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  min-height: 44px;
  min-width: 104px;
  padding: 8px 18px;
}

.submit-confirm-actions {
  display: flex;
  justify-content: center;
  padding: 12px 0 20px;
}

.submit-final-btn {
  background: #e779ad;
  border-color: #e779ad;
  border-radius: 12px;
  color: #ffffff;
  font-size: 18px;
  min-height: 52px;
  min-width: min(100%, 260px);
}

.work-week-list {
  background: #ffffff;
  border: 2px solid #0098d8;
  border-radius: 22px;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  overflow: hidden;
}

.work-week {
  align-items: center;
  border-bottom: 2px solid #0098d8;
  column-gap: 8px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  min-height: 25px;
  padding: 1px 10px;
}

.work-week:last-child {
  border-bottom: 0;
}

.work-week strong {
  color: #000000;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.15;
  text-align: right;
}

.work-week span {
  color: #000000;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", monospace;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.15;
  text-align: right;
}

.monthly-preview {
  background: #ffffff;
  border: 1px solid #7c7c7c;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: visible;
  padding: 1px;
}

.monthly-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.monthly-table th,
.monthly-table td {
  background: #ffffff;
  border: 1px solid #8c8c8c;
  height: 35px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.monthly-table thead th {
  color: #000000;
  font-size: 18px;
  font-weight: 800;
  position: static;
}

.monthly-table .day-column {
  color: #000000;
  font-size: 17px;
  font-weight: 800;
  padding-right: 8px;
  text-align: right;
  width: 88px;
}

.monthly-table .day-column.saturday {
  color: #0098d8;
}

.monthly-table .day-column.sunday {
  color: #e00000;
}

.time-dot {
  border-radius: 50%;
  display: inline-block;
  height: 17px;
  width: 17px;
}

.time-dot.full {
  background: #25a63a;
}

.time-dot.half {
  background: #f4ad20;
}

.shift-week-nav {
  display: grid;
  gap: 54px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 26px;
}

.week-nav-btn {
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  min-height: 58px;
  white-space: nowrap;
}

.week-nav-btn.previous {
  background: #e663a2;
}

.week-nav-btn.next {
  background: #22acd8;
}

.shift-week-list {
  display: grid;
  gap: 15px;
}

.staff-shift-view {
  padding-top: 2px;
}

.shift-day-card {
  background: #ffffff;
  border: 1px solid #7c7c7c;
  border-radius: 14px;
  overflow: hidden;
}

.shift-day-card.today {
  background: #d8f1fb;
}

.shift-day-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.shift-day-table th,
.shift-day-table td {
  background: transparent;
  border: 0;
  border-right: 1px solid #8c8c8c;
  border-bottom: 1px solid #8c8c8c;
  height: 35px;
  padding: 0;
  position: static;
  text-align: center;
  vertical-align: middle;
}

.shift-day-table tr > :last-child {
  border-right: 0;
}

.shift-day-table tbody tr:last-child > * {
  border-bottom: 0;
}

.shift-day-table thead th {
  color: #000000;
  font-size: 21px;
  font-weight: 800;
}

.shift-day-table .shift-staff-col {
  color: #000000;
  font-size: 18px;
  font-weight: 700;
  padding-left: 8px;
  text-align: left;
  width: 122px;
}

.shift-day-table thead .shift-staff-col {
  font-size: 26px;
  font-weight: 800;
}

.shift-day-dow {
  font-size: 0.68em;
}

.wide-table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

th,
td {
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}

th {
  background: #edf6f5;
  color: #134e4a;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sticky-col {
  background: #ffffff;
  left: 0;
  min-width: 130px;
  position: sticky;
  text-align: left;
  z-index: 2;
}

th.sticky-col {
  background: #edf6f5;
  z-index: 3;
}

.schedule-input {
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 34px;
  min-width: 82px;
  padding: 5px 6px;
  text-align: center;
  width: 100%;
}

.schedule-input:hover,
.schedule-input:focus {
  border-color: var(--accent);
  outline: none;
}

.hinted {
  background: var(--hint);
}

.over {
  background: #fee2e2;
  color: var(--bad);
  font-weight: 800;
}

.summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric.over-limit {
  background: #fff1f2;
  border-color: #fecaca;
}

.metric.over-limit strong {
  color: var(--bad);
}

.admin-dashboard {
  display: grid;
  gap: 10px;
}

.admin-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-weekly-totals {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-weekly-title {
  align-items: center;
  background: #fff9d7;
  border-bottom: 1px solid #09a7e3;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 12px;
}

.admin-weekly-limit-btn {
  background: #ffffff;
  border: 1px solid #09a7e3;
  border-radius: 6px;
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
  padding: 5px 10px;
}

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

.admin-weekly-table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 720px;
  table-layout: fixed;
  width: 100%;
}

.admin-weekly-table th,
.admin-weekly-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
}

.admin-weekly-table th:first-child,
.admin-weekly-table td:first-child {
  text-align: left;
  width: 120px;
}

.admin-weekly-table th:nth-child(2),
.admin-weekly-table th:nth-child(3),
.admin-weekly-table th:nth-child(4),
.admin-weekly-table td:nth-child(2),
.admin-weekly-table td:nth-child(3),
.admin-weekly-table td:nth-child(4) {
  background: #fffdf0;
  width: 96px;
}

.admin-weekly-table thead th {
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-weekly-table tbody th {
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.admin-weekly-table td {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.admin-weekly-table .over-limit {
  background: #fff1f2;
  color: #dc2626;
}

.admin-limit-editor-panel {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.admin-actions {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.admin-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.admin-shift-list,
.admin-contact {
  display: grid;
  gap: 12px;
}

.admin-shift-list-summary,
.admin-contact-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  min-width: min(100%, 360px);
}

.admin-shift-list-days {
  display: grid;
  gap: 14px;
}

.admin-shift-list-day {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-shift-list-day.today {
  border-color: var(--accent);
}

.admin-shift-list-day.holiday {
  background: var(--holiday);
}

.admin-shift-list-day-head {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.admin-shift-list-day-head strong {
  font-size: 16px;
}

.admin-shift-list-day-head span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.admin-shift-list-table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 860px;
  table-layout: fixed;
  width: 100%;
}

.admin-shift-list-table th,
.admin-shift-list-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 38px;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}

.admin-shift-list-table thead th {
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-shift-list-table tbody th {
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.admin-shift-list-table tbody tr.empty {
  color: var(--muted);
  opacity: 0.58;
}

.admin-shift-list-table td:last-child {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  min-width: 150px;
  text-align: left;
}

.admin-contact-editor {
  display: grid;
  gap: 14px;
}

.admin-contact-editor textarea {
  min-height: 140px;
  resize: vertical;
}

.admin-contact-preview {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.admin-contact-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-contact-preview strong {
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

.submission-list {
  display: grid;
  gap: 8px;
}

.submission-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 1fr) auto auto minmax(120px, 1fr);
  min-height: 44px;
  padding: 8px 10px;
}

.submission-row.missing {
  background: #fff1f2;
}

.submission-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.staff-editor-actions {
  margin-top: 10px;
}

.admin-adjustment {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.admin-adjustment-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.admin-adjustment-head h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.admin-adjustment-head p {
  margin-bottom: 0;
}

.admin-day-board-list {
  display: grid;
  gap: 8px;
}

.admin-board-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
}

.admin-board {
  min-width: 860px;
  table-layout: fixed;
}

.admin-board th,
.admin-board td {
  font-size: 11px;
  height: 24px;
  line-height: 1.05;
  padding: 1px 3px;
}

.admin-board .sticky-col {
  min-width: 138px;
  width: 138px;
}

.admin-board .sticky-col span {
  display: block;
}

.admin-board .sticky-col small {
  display: none;
}

.admin-shift-cell {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  height: 16px;
  margin: 0 auto;
  width: 26px;
}

.admin-shift-cell.requested {
  box-shadow: inset 0 0 0 2px #93c5fd;
}

.admin-shift-cell.active {
  background: #25a63a;
  border-color: #15803d;
}

.admin-shift-cell.active.requested {
  box-shadow: inset 0 0 0 2px #bbf7d0;
}

.admin-shift-cell.removed {
  background: #ffffff;
  border-color: #15803d;
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 5px #25a63a;
}

.admin-shift-cell.removed.requested {
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 5px #25a63a;
}

.admin-day-staff-total,
.admin-hour-total-row td,
.admin-hour-total-row th {
  background: #fef9c3;
  font-weight: 800;
}

.staff-editor {
  display: grid;
  gap: 8px;
}

.staff-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 1.5fr) 1fr 1fr;
}

.inventory-dashboard {
  display: grid;
  gap: 10px;
}

.inventory-toolbar {
  align-items: end;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.7fr) minmax(260px, 1.6fr) minmax(140px, 0.8fr) auto;
  padding: 10px;
}

.inventory-toolbar input,
.inventory-toolbar select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 8px;
}

.inventory-check {
  align-items: center;
  display: flex;
  gap: 6px;
  min-height: 36px;
  white-space: nowrap;
}

.inventory-updated {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.inventory-section {
  display: grid;
  gap: 8px;
}

.inventory-section-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-section-heading strong {
  color: var(--ink);
  font-size: 15px;
}

.inventory-section-heading span,
.inventory-section-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.inventory-table {
  font-variant-numeric: tabular-nums;
  min-width: 1120px;
  table-layout: fixed;
  width: 100%;
}

.inventory-table th,
.inventory-table td {
  font-size: 12px;
  padding: 6px 8px;
  vertical-align: middle;
}

.inventory-table thead th {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 800;
}

.inventory-product {
  background: #ffffff;
  left: 0;
  min-width: 330px;
  position: sticky;
  text-align: left;
  width: 330px;
  z-index: 2;
}

.inventory-table thead .inventory-product {
  background: #f8fafc;
  z-index: 4;
}

.inventory-product-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.inventory-product-subtitle {
  color: #334155;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 3px;
}

.inventory-product-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.inventory-chip {
  background: #eef2f7;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
}

.inventory-combo-main {
  display: block;
  font-size: 13px;
}

.inventory-table thead small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 2px;
}

.inventory-info-cell {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.inventory-template-code {
  width: 84px;
}

.inventory-template-series {
  width: 170px;
}

.inventory-template-name {
  width: 270px;
}

.inventory-template-average {
  text-align: center;
  width: 104px;
}

.inventory-template-subject,
.inventory-template-adoption,
.inventory-template-grade,
.inventory-template-adoption-code {
  text-align: center;
  width: 76px;
}

.inventory-stock-header,
.stock-cell,
.inventory-total-header,
.inventory-total {
  text-align: center;
  width: 92px;
}

.inventory-total {
  background: #f8fafc;
  font-size: 15px;
  font-weight: 900;
}

.stock-cell {
  min-height: 42px;
}

.stock-cell.empty {
  color: #94a3b8;
  font-weight: 800;
}

.stock-now {
  color: var(--ink);
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.stock-sub {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.2;
  margin-top: 3px;
}

.stock-cell.negative .stock-now,
.inventory-total.negative {
  color: var(--bad);
}

.stock-cell.watch {
  background: #fef9c3;
}

.stock-cell.watch .stock-now {
  color: var(--ink);
}

.inventory-other-list {
  display: grid;
  gap: 3px;
  text-align: left;
}

.inventory-other-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  padding: 3px 6px;
}

.inventory-other-code {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.inventory-other-qty {
  font-size: 12px;
  font-weight: 900;
}

.inventory-other-qty.negative {
  color: var(--bad);
}

.inventory-empty {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.viewer-list {
  display: grid;
  gap: 11px;
}

.viewer-period-summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
  min-height: 52px;
  padding: 10px 12px;
}

.viewer-period-summary span,
.viewer-period-summary strong {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.viewer-period-summary strong {
  color: #0f766e;
}

.viewer-shift {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 14px;
}

.viewer-shift.holiday {
  background: repeating-linear-gradient(
    -45deg,
    #fffbdc 0,
    #fffbdc 8px,
    #fff6bf 8px,
    #fff6bf 16px
  );
}

.viewer-shift.mismatch {
  background: repeating-linear-gradient(
    -45deg,
    #ffe4ef 0,
    #ffe4ef 8px,
    #ffd2e4 8px,
    #ffd2e4 16px
  );
}

.viewer-shift .badge.holiday {
  font-size: 0.78rem;
  font-weight: 800;
}

.viewer-shift-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.viewer-shift-time {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 112px;
}

.viewer-shift-time strong {
  line-height: 1;
  white-space: nowrap;
}

.viewer-shift-time span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.viewer-request-btn {
  background: #ffffff;
  border: 2px solid #ec6aa4;
  border-radius: 8px;
  color: #d63f83;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 800;
  min-height: 38px;
  min-width: 64px;
  padding: 5px 13px;
}

.viewer-request-btn.pending {
  background: #ec6aa4;
  color: #ffffff;
}

.viewer-request-btn.approved {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #ffffff;
}

.viewer-request-btn:disabled {
  cursor: default;
  opacity: 1;
}

.viewer-shift.request-pending-card {
  cursor: pointer;
}

.attendance-request-overlay {
  align-items: center;
  background: rgba(15, 23, 42, 0.45);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 40;
}

.attendance-request-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 18px;
  max-width: 560px;
  padding: 22px;
  width: min(94vw, 560px);
}

.staff-notice-modal {
  border-radius: 16px;
  gap: 18px;
  max-width: 560px;
  padding: 22px;
  width: min(94vw, 560px);
}

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

.modal-title h3 {
  font-size: clamp(21px, 5vw, 28px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0;
}

.staff-notice-modal .modal-title h3 {
  display: grid;
  font-size: clamp(21px, 5vw, 28px);
  font-weight: 900;
  gap: 4px;
  line-height: 1.25;
}

.staff-notice-modal .modal-title h3 time {
  color: #475569;
  font-size: clamp(15px, 3.5vw, 19px);
  font-weight: 900;
}

.modal-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.staff-notice-modal .modal-close {
  font-size: 1.35rem;
  height: 42px;
  width: 42px;
}

.staff-notice-modal .submit-final-btn {
  border-radius: 10px;
  font-size: clamp(20px, 4.7vw, 25px);
  min-height: 58px;
  width: 100%;
}

.attendance-request-actions {
  justify-content: flex-end;
}

.attendance-request-detail-list {
  display: grid;
  gap: 12px;
}

.attendance-request-detail-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.attendance-request-detail-item span {
  color: var(--muted);
  font-size: clamp(15px, 3.4vw, 19px);
  font-weight: 900;
}

.attendance-request-detail-item strong,
.attendance-request-detail-item p {
  color: var(--ink);
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 900;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.admin-notice-panel,
.admin-top-notices {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.admin-notice-list,
.admin-top-notices {
  display: grid;
  gap: 8px;
}

.admin-notice-row,
.admin-top-notices div {
  color: #7c2d12;
  font-weight: 800;
}

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

.toast {
  background: #111827;
  border-radius: 8px;
  bottom: 16px;
  color: #ffffff;
  left: 50%;
  opacity: 0;
  padding: 10px 14px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 10px);
  transition: 160ms ease;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.phone-preview .app-header {
  padding: 12px;
}

.phone-preview .header-info {
  justify-content: flex-start;
  width: 100%;
}

.phone-preview main {
  padding: 12px;
}

@media (max-width: 720px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 21px;
  }

  .toolbar {
    align-items: stretch;
    display: grid;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    align-items: stretch;
    display: grid;
  }

  .inventory-toolbar {
    grid-template-columns: 1fr;
  }

  .inventory-updated {
    text-align: left;
  }

  .submission-row {
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .submission-row small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .staff-top-panel {
    padding: 12px;
  }

  .staff-current-datetime {
    font-size: 16px;
  }

  .staff-top-main {
    grid-template-columns: 1fr;
  }

  .staff-top-time-card {
    min-height: 82px;
  }

  .staff-top-time-card strong {
    font-size: 36px;
  }

  .staff-shift-status-card {
    min-height: 116px;
    padding: 14px;
  }

  .staff-shift-status-card strong {
    font-size: 32px;
  }

  .staff-shift-status-card p {
    font-size: 16px;
  }

  .staff-top-row {
    grid-template-columns: 1fr;
    min-height: 64px;
  }

  .staff-leave-summary {
    padding: 10px;
  }

  .staff-leave-grid {
    gap: 6px;
  }

  .staff-leave-item {
    padding: 8px 6px;
  }

  .staff-leave-item span {
    font-size: 11px;
  }

  .staff-leave-item strong {
    font-size: 19px;
  }

  .staff-clock-btn {
    font-size: 18px;
    min-height: 58px;
  }

  .day-card {
    padding: 16px 20px;
  }

  .date-label {
    font-size: 24px;
  }

  .badge {
    font-size: 20px;
  }

  .slot-grid {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .slot-button {
    border-radius: 10px;
    font-size: clamp(16px, 4.8vw, 19px);
    min-height: 48px;
    padding: 5px 3px;
  }

  .custom-time-group {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .custom-time-group .time-label {
    display: none;
  }

  .custom-time {
    font-size: 20px;
  }

  .work-summary {
    border-radius: 12px;
    gap: 10px;
    grid-template-columns: minmax(112px, 0.56fr) minmax(136px, 0.82fr);
    padding: 12px 10px;
  }

  .work-summary-total {
    gap: 10px;
    padding-top: 0;
  }

  .work-summary-heading {
    font-size: 17px;
  }

  .work-summary-total strong {
    font-size: 29px;
  }

  .submit-image-btn img {
    max-width: 104px;
  }

  .work-week-list {
    border-radius: 18px;
  }

  .work-week {
    column-gap: 6px;
    min-height: 23px;
    padding: 1px 8px;
  }

  .work-week span,
  .work-week strong {
    font-size: 15px;
    font-weight: 600;
  }

  .monthly-table th,
  .monthly-table td {
    height: 26px;
  }

  .monthly-table thead th {
    font-size: 14px;
  }

  .monthly-table .day-column {
    font-size: 14px;
    padding-right: 6px;
    width: 76px;
  }

  .time-dot {
    height: 15px;
    width: 15px;
  }

  .shift-week-nav {
    gap: clamp(22px, 7vw, 40px);
    margin-bottom: 18px;
  }

  .week-nav-btn {
    border-radius: 11px;
    font-size: 15px;
    min-height: 54px;
    padding: 0 8px;
  }

  .shift-week-list {
    gap: 12px;
  }

  .shift-day-table th,
  .shift-day-table td {
    height: 35px;
  }

  .shift-day-table thead th {
    font-size: 19px;
  }

  .shift-day-table .shift-staff-col {
    font-size: 14px;
    padding-left: 7px;
    width: 98px;
  }

  .shift-day-table thead .shift-staff-col {
    font-size: 24px;
  }

  .staff-row {
    grid-template-columns: 1fr 1fr;
  }

  .staff-row input:first-child {
    grid-column: 1 / -1;
  }
}
