:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --line: #dce3e7;
  --text: #172126;
  --muted: #60717a;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --primary-soft: #e0f2ef;
  --accent: #b45309;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
  --radius: 8px;
}

/* Login screen */
.login-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 24px;
  background:
    radial-gradient(circle at 82% 52%, rgba(36, 87, 214, 0.13) 0 210px, transparent 211px),
    radial-gradient(circle at 8% 68%, rgba(36, 87, 214, 0.1) 0 150px, transparent 151px),
    linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #edf3ff 100%);
}

.login-screen::before {
  content: "";
  position: absolute;
  top: 128px;
  right: 76px;
  z-index: -2;
  width: 176px;
  height: 176px;
  background: radial-gradient(circle, rgba(36, 87, 214, 0.22) 1.5px, transparent 2px);
  background-size: 13px 13px;
  opacity: 0.55;
}

.login-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(420px, calc(100vw - 48px));
  justify-items: center;
  gap: 28px;
}

.login-product {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #0f172a;
  text-align: center;
}

.login-product > div {
  display: grid;
  gap: 6px;
}

.login-product strong {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.login-product span:not(.login-logo) {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.login-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #2457d6);
  box-shadow: 0 14px 30px rgba(36, 87, 214, 0.34);
}

.login-logo svg,
.login-field-icon,
.login-icon-button svg,
.login-security-note svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-logo svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.2;
}

.login-card {
  display: grid;
  width: 100%;
  gap: 20px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

.login-card .page-kicker {
  margin: 0;
  color: #2457d6;
  font-size: 12px;
  font-weight: 900;
}

.login-card h2 {
  margin: 0 0 2px;
  color: #0f172a;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.2;
}

.login-field {
  display: grid;
  gap: 8px;
  color: #5c6c82;
  font-size: 12px;
  font-weight: 900;
}

.login-input-wrap {
  position: relative;
  display: block;
}

.login-input-wrap input {
  width: 100%;
  height: 40px;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  color: #101722;
  background: #ffffff;
  padding: 0 42px;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.login-input-wrap input:focus {
  outline: 3px solid rgba(36, 87, 214, 0.14);
  border-color: #2457d6;
}

.login-field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #64748b;
  stroke-width: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-icon-button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  color: #64748b;
  background: transparent;
  transform: translateY(-50%);
}

.login-icon-button:hover {
  color: #2457d6;
}

.login-icon-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.login-help-link {
  justify-self: end;
  margin-top: -8px;
  border: 0;
  color: #2457d6;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 850;
}

.login-submit {
  min-height: 48px;
  margin-top: 4px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2f63e8, #2457d6);
  box-shadow: 0 18px 34px rgba(36, 87, 214, 0.28);
  font-size: 16px;
  font-weight: 950;
}

.login-security-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.login-security-note svg {
  width: 15px;
  height: 15px;
  color: #64748b;
  stroke-width: 2;
}

.login-decoration {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.login-decoration-right {
  right: -170px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 87, 214, 0.15), rgba(36, 87, 214, 0.04) 62%, transparent 63%);
}

.login-decoration-left {
  left: 7%;
  bottom: 16%;
  width: 190px;
  height: 160px;
}

.login-calendar-art {
  position: relative;
  width: 138px;
  height: 112px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(219, 234, 254, 0.78));
  box-shadow: 0 18px 38px rgba(36, 87, 214, 0.14);
  transform: rotate(-5deg);
}

.login-calendar-art::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  border-radius: 8px 8px 0 0;
  background: rgba(59, 130, 246, 0.12);
}

.login-calendar-rings {
  position: absolute;
  top: -7px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
}

.login-calendar-rings::before,
.login-calendar-rings::after {
  content: "";
  width: 12px;
  height: 18px;
  border: 4px solid rgba(100, 116, 139, 0.24);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.login-calendar-grid {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.login-calendar-grid span {
  height: 15px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.18);
}

.login-clock-art {
  position: absolute;
  right: -26px;
  bottom: -22px;
  width: 56px;
  height: 56px;
  border: 8px solid #3b82f6;
  border-radius: 50%;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(36, 87, 214, 0.22);
}

.login-clock-art::before,
.login-clock-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  border-radius: 999px;
  background: #3b82f6;
  transform-origin: bottom center;
}

.login-clock-art::before {
  height: 15px;
  transform: translate(-50%, -100%) rotate(0deg);
}

.login-clock-art::after {
  height: 13px;
  transform: translate(-50%, -100%) rotate(125deg);
}

@media (max-width: 900px) {
  .login-screen {
    padding: 32px 18px;
  }

  .login-decoration-left,
  .login-decoration-right {
    opacity: 0.42;
  }
}

@media (max-width: 560px) {
  .login-content {
    width: min(100%, 380px);
    gap: 22px;
  }

  .login-product strong {
    font-size: 24px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .login-card h2 {
    font-size: 30px;
  }

  .login-decoration-left {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1080px;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

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

.login-card {
  display: grid;
  width: min(420px, 100%);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  background: #102a2d;
  color: #f7fbfb;
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  color: #102a2d;
  background: #9ee6dc;
  font-size: 24px;
  font-weight: 800;
}

.brand-kicker,
.page-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-kicker {
  color: #a8c4c7;
}

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

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

h2 {
  margin-bottom: 0;
  font-size: 28px;
}

h3 {
  font-size: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #d8e7e8;
  background: transparent;
  text-align: left;
}

.nav-tab.active {
  color: #102a2d;
  background: #e9fbf8;
}

.tab-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-weight: 800;
}

.tab-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-panel,
.status-panel,
.sidebar-actions {
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
}

.profile-panel,
.status-panel {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-actions {
  padding: 0 16px;
}

.profile-panel label {
  color: #cfe0e2;
  font-size: 13px;
  font-weight: 700;
}

.profile-label {
  color: #a8c4c7;
  font-size: 13px;
  font-weight: 700;
}

.profile-panel strong {
  font-size: 18px;
}

.role-badge {
  justify-self: start;
  border-radius: 999px;
  color: #102a2d;
  background: #9ee6dc;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.profile-panel input,
.profile-panel select {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #f7fbfb;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 10px;
}

.profile-panel select option {
  color: var(--text);
}

.profile-button {
  width: 100%;
}

.status-panel {
  margin-top: 0;
}

.status-panel[hidden] {
  display: none;
}

.status-label {
  color: #a8c4c7;
  font-size: 13px;
}

.status-period {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.status-panel strong {
  font-size: 22px;
}

.status-panel p {
  margin-bottom: 0;
  color: #cfe0e2;
  line-height: 1.55;
}

.main {
  min-width: 0;
  padding: 28px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

.toolbar-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.toolbar-field select {
  min-width: 180px;
  height: 40px;
  padding: 0 34px 0 10px;
}

.admin-approval-selector select {
  min-width: 220px;
}

.compact-toggle {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
}

.compact-toggle input {
  margin: 0;
}

.primary-button,
.secondary-button,
.icon-button,
.danger-button {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--primary);
}

.primary-button:hover {
  background: var(--primary-strong);
}

.secondary-button {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

.icon-button {
  width: 40px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  font-size: 24px;
}

.danger-button {
  color: var(--danger);
  border-color: #f2bbb6;
  background: #fff7f6;
}

.week-summary,
.holiday-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.week-summary {
  grid-template-columns: 1fr 1fr;
}

.holiday-panel {
  grid-template-columns: 1.4fr repeat(2, minmax(160px, 1fr));
  align-items: center;
}

.week-summary > div,
.holiday-panel,
.review-panel,
.approval-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.week-summary > div {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.holiday-panel {
  padding: 16px;
}

.holiday-panel h3 {
  margin-bottom: 0;
}

.holiday-required input {
  height: 42px;
}

.holiday-metric {
  display: grid;
  gap: 5px;
}

.holiday-metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.week-summary span,
.review-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.week-summary strong {
  font-size: 18px;
}

.calendar-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.calendar-grid {
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(132px, 1fr));
  min-width: 1040px;
}

.calendar-cell {
  position: relative;
  min-height: 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-cell:nth-child(8n) {
  border-right: 0;
}

.calendar-header,
.time-cell {
  background: #f8fafb;
}

.calendar-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 66px;
  padding: 10px;
  text-align: center;
}

.day-name {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.day-date {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 800;
}

.holiday-badge {
  display: inline-block;
  margin-top: 5px;
  border-radius: 999px;
  color: #fff;
  background: #6b7280;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.day-commute-controls {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.day-commute-button {
  min-height: 24px;
  border: 1px solid #c7d2d8;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}

.day-commute-button.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.day-holiday-button {
  border-color: #f59e0b;
  color: #9a3412;
  background: #fff7ed;
}

.day-holiday-button:hover {
  border-color: #ea580c;
  color: #7c2d12;
  background: #ffedd5;
}

.time-cell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.slot-cell {
  min-height: 36px;
}

.slot-cell:hover {
  background: #edf8f6;
}

.slot-cell:hover::after {
  content: "+";
  position: absolute;
  inset: 6px;
  display: grid;
  place-items: center;
  border: 1px dashed #8ecfc5;
  border-radius: 6px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
}

.calendar-grid.is-dragging-event .slot-cell:hover::after {
  content: none;
}

.calendar-header.drop-target,
.slot-cell.drop-target {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: #e0f2ef;
}

.shift-event {
  position: absolute;
  left: 6px;
  right: 6px;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--primary-soft);
  padding: 7px 8px;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.16);
  touch-action: manipulation;
}

.shift-event[draggable="true"] {
  cursor: grab;
}

.shift-event.dragging {
  cursor: grabbing;
  opacity: 0.55;
}

.drag-drop-preview {
  position: absolute;
  left: 5px;
  right: 5px;
  z-index: 120;
  display: grid;
  align-content: center;
  gap: 2px;
  overflow: hidden;
  border: 2px solid #2457d6;
  border-radius: 6px;
  color: #12203a;
  background: rgba(226, 234, 255, 0.72);
  box-shadow: 0 12px 24px rgba(36, 87, 214, 0.18);
  padding: 3px 6px;
  pointer-events: none;
}

.drag-drop-preview strong,
.drag-drop-preview span {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drag-drop-preview strong {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.drag-drop-preview span {
  color: #2f4774;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
}

.shift-event strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
}

.shift-event span {
  display: block;
  color: #245b58;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.shift-event.rest {
  border-color: #f0c982;
  background: #fff4df;
}

.shift-event.off {
  border-color: #9aa4b2;
  background: #f1f5f9;
}

.shift-event.all-day {
  background: repeating-linear-gradient(
    135deg,
    #f8fafc 0,
    #f8fafc 10px,
    #e6edf3 10px,
    #e6edf3 20px
  );
}

.modal {
  width: min(620px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

#eventDialog {
  width: min(500px, calc(100vw - 32px));
}

#submitDialog {
  width: min(540px, calc(100vw - 32px));
}

#commuteDialog {
  width: min(360px, calc(100vw - 32px));
}

#eventDialog form {
  gap: 16px;
  padding: 22px;
}

.modal::backdrop {
  background: rgba(16, 24, 40, 0.42);
}

.modal form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.close-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  padding: 10px;
}

.date-picker-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 17px;
  padding-right: 42px;
}

.date-picker-popover {
  position: fixed;
  z-index: 10000;
  display: grid;
  gap: 12px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

.date-picker-popover[hidden] {
  display: none;
}

.time-select-native {
  display: none;
}

.time-picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd7e3;
  border-radius: 5px;
  color: #101722;
  background: #ffffff;
  padding: 10px;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.time-picker-button::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-right: 2px solid #101722;
  border-bottom: 2px solid #101722;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
}

.time-picker-button:focus {
  outline: 2px solid rgba(36, 87, 214, 0.2);
  border-color: #2457d6;
}

.time-picker-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.time-picker-popover {
  position: fixed;
  z-index: 20000;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #cfd7e3;
  border-radius: 5px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

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

.time-picker-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  color: #101722;
  background: transparent;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.time-picker-option:hover {
  background: #eef4ff;
}

.time-picker-option.selected {
  color: #ffffff;
  background: #2457d6;
  font-weight: 750;
}

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

.date-picker-header strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.date-picker-header div {
  display: flex;
  gap: 4px;
}

.date-picker-header button,
.date-picker-footer button {
  border: 0;
  border-radius: 6px;
  color: #334155;
  background: transparent;
  font-weight: 900;
}

.date-picker-header button {
  width: 34px;
  height: 34px;
  font-size: 22px;
}

.date-picker-header button:hover,
.date-picker-footer button:hover {
  background: #f1f5f9;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-picker-weekdays span {
  display: grid;
  height: 24px;
  place-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.date-picker-weekdays span:nth-child(6) {
  color: #2563eb;
}

.date-picker-weekdays span:nth-child(7) {
  color: #dc2626;
}

.date-picker-day {
  display: grid;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: transparent;
  font-weight: 800;
}

.date-picker-day:hover {
  background: #eef4ff;
}

.date-picker-day.outside {
  color: #94a3b8;
}

.date-picker-day.today {
  box-shadow: inset 0 0 0 1px #2457d6;
  color: #173ca3;
}

.date-picker-day.selected {
  color: #ffffff;
  background: #2457d6;
  box-shadow: 0 8px 18px rgba(36, 87, 214, 0.26);
}

.date-picker-footer {
  display: flex;
  justify-content: flex-end;
}

.date-picker-footer button {
  padding: 7px 10px;
  color: #2457d6;
}

textarea {
  resize: vertical;
}

.form-grid,
.submission-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field-label {
  display: block;
  color: #5c6c82;
  font-size: 12px;
  font-weight: 850;
}

.datetime-field {
  display: grid;
  gap: 7px;
}

.datetime-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.datetime-all-day {
  min-height: 0;
  gap: 7px;
  color: #101722;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.datetime-all-day input {
  width: 16px;
  height: 16px;
}

.datetime-row {
  display: grid;
  grid-template-columns: minmax(146px, 0.95fr) minmax(86px, 0.52fr) max-content minmax(86px, 0.52fr);
  align-items: center;
  gap: 8px;
}

.datetime-row label {
  min-width: 0;
  gap: 0;
}

.datetime-separator {
  color: #5c6c82;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.event-type-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) max-content;
  align-items: end;
  gap: 12px;
}

.event-type-field {
  min-width: 0;
}

.event-type-check {
  min-height: 44px;
  white-space: nowrap;
}

.compact-grid {
  gap: 12px;
}

.submit-context {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  background: #ffffff;
}

.submit-period-line,
.submit-holiday-note {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
}

.submit-holiday-note {
  border-top: 1px solid #e7edf5;
  background: #f8fafc;
}

.submit-period-line span,
.submit-holiday-note span {
  color: #68778c;
  font-size: 12px;
  font-weight: 850;
}

.submit-period-line strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.submit-holiday-note strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.submission-box {
  grid-template-columns: 1fr;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--text);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.time-field.disabled {
  opacity: 0.45;
}

.event-detail-field.disabled {
  opacity: 0.45;
}

.event-title-field.disabled {
  opacity: 0.55;
}

.full-span {
  grid-column: 1 / -1;
}

.submission-box label {
  grid-column: 1 / -1;
}

.submit-validation-alert {
  display: grid;
  gap: 8px;
  border: 1px solid #f1b7ad;
  border-radius: 6px;
  background: #fff3f1;
  padding: 12px 14px;
  color: #9f2a1f;
}

.submit-validation-alert[hidden] {
  display: none;
}

.submit-validation-alert strong {
  color: #9f2a1f;
  font-size: 14px;
  font-weight: 950;
}

.submit-validation-alert ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.submit-validation-alert li {
  line-height: 1.5;
}

.schedule-requirement-alert {
  margin: 0 0 10px;
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.12);
}

.modal-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 16px;
}

.review-panel,
.approval-note,
.settings-panel,
.admin-overview-panel {
  padding: 18px;
}

.settings-panel,
.admin-overview-panel,
.management-schedule-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.admin-overview-panel {
  display: grid;
  gap: 14px;
  margin-top: 0;
  margin-bottom: 16px;
}

.admin-overview-panel.is-collapsed {
  gap: 0;
}

#adminOverviewTitle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfd7e3;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  min-height: 30px;
  padding: 3px 5px 3px 10px;
  font-size: 12px;
  font-weight: 900;
}

.summary-toggle-button:hover {
  border-color: #9eb0ca;
  background: #f8fafc;
}

.summary-toggle-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 14px;
  line-height: 1;
  transition: transform 140ms ease;
}

.summary-toggle-button[aria-expanded="false"] .summary-toggle-icon {
  transform: rotate(180deg);
}

.management-schedule-panel {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.management-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px;
}

.management-title-row h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.1;
}

.management-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.management-heading h3 {
  margin-bottom: 0;
}

#managementPeriod {
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
}

.management-board-wrap {
  overflow: auto;
  border: 1px solid #d4ddea;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 23, 34, 0.08);
}

.management-board {
  display: grid;
  grid-template-columns: minmax(150px, 0.86fr) repeat(7, minmax(150px, 1fr));
  min-width: 1220px;
  background: #ffffff;
  gap: 0;
}

.management-board-cell {
  min-height: 122px;
  border-right: 1px solid #dce4ef;
  border-bottom: 1px solid #dce4ef;
  background: #fff;
  padding: 12px;
}

.management-board-cell:nth-child(8n) {
  border-right: 0;
}

.management-board-cell:nth-last-child(-n + 8) {
  border-bottom: 0;
}

.management-board-cell.table-head {
  min-height: 48px;
  color: #526276;
  background: #f3f7fb;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.management-board-cell.table-head:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  border-right: 2px solid #c8d4e5;
  background: #eaf1fb;
}

.management-employee-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 2px solid #c8d4e5;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
  box-shadow: 8px 0 18px rgba(15, 23, 42, 0.04);
}

.management-employee-cell strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.management-status-pill {
  justify-self: start;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef5f5;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 850;
}

.management-status-pill.is-unsubmitted {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

.management-status-pill.is-pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.management-status-pill.is-approved {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #027a48;
}

.management-status-pill.is-returned {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.management-day-cell {
  display: grid;
  align-content: start;
  gap: 7px;
}

.management-day-cell.is-empty {
  place-items: start center;
  align-content: start;
}

.management-empty {
  color: #8b99aa;
  font-size: 12px;
  font-weight: 850;
}

.management-event-chip {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #b9d9d6;
  border-radius: 7px;
  background: linear-gradient(180deg, #f4fffd 0%, #eefaf8 100%);
  padding: 9px 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.management-event-chip.is-sales {
  border-color: #9fd6d2;
  background: linear-gradient(180deg, #f2fffd 0%, #e9f8f5 100%);
}

.management-event-chip.is-internal {
  border-color: #b8d4ff;
  background: linear-gradient(180deg, #f5f8ff 0%, #eef4ff 100%);
}

.management-event-chip.is-holiday {
  border-color: #f1c56f;
  background: linear-gradient(180deg, #fffaf0 0%, #fff4d9 100%);
}

.management-event-chip time {
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.management-event-chip strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.management-event-chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.admin-overview-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr repeat(4, minmax(92px, 0.8fr));
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 10px 12px;
}

.admin-overview-row.table-head {
  color: var(--muted);
  background: #eef5f5;
  font-size: 12px;
  font-weight: 850;
}

.admin-overview-row strong {
  font-size: 14px;
}

.admin-overview-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.review-heading {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.45fr);
  gap: 12px;
  margin-bottom: 12px;
}

.review-heading > div {
  display: grid;
  gap: 5px;
}

.review-target-select {
  min-height: 38px;
  padding: 8px 34px 8px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  background: #fff;
}

.review-status-pill {
  align-self: center;
  justify-self: start;
}

.approval-note {
  display: grid;
  align-content: start;
  gap: 12px;
}

.approval-note h3 {
  margin-bottom: 0;
}

.approval-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.review-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.submitted-list {
  display: grid;
  gap: 10px;
}

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

.admin-list-section h4 {
  margin: 4px 0 0;
  color: #526276;
  font-size: 13px;
  font-weight: 900;
}

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

.submitted-item {
  display: grid;
  grid-template-columns: 120px 1fr 96px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.submitted-item.commute-request-item {
  border-color: #b7dfd8;
  background: #f0fbf8;
}

.submitted-item > div {
  display: grid;
  gap: 4px;
}

.submitted-item strong {
  font-size: 15px;
}

.submitted-item span {
  color: var(--muted);
  font-size: 13px;
}

.review-week-schedule {
  display: grid;
  gap: 10px;
}

.review-day-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  background: #ffffff;
}

.review-day-card.is-holiday {
  border-color: #f0c982;
  background: #fffaf0;
}

.review-day-header,
.review-event-row {
  display: grid;
  align-items: center;
  gap: 10px;
}

.review-day-header {
  grid-template-columns: 1fr auto;
}

.review-day-header > div:first-child {
  display: grid;
  gap: 3px;
}

.review-day-header strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.review-day-header span,
.review-event-main span,
.review-empty-day,
.review-commute-note span {
  color: #60717a;
  font-size: 12px;
  font-weight: 750;
}

.review-day-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.review-day-badge,
.review-event-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.review-day-badge.is-work,
.review-event-kind.is-internal {
  border-color: #bbf7d0;
  color: #027a48;
  background: #ecfdf3;
}

.review-day-badge.is-holiday,
.review-event-kind.is-holiday {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.review-day-badge.is-empty {
  border-color: #dbe2ec;
  color: #64748b;
  background: #f8fafc;
}

.review-day-badge.is-direct {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.review-event-kind.is-sales {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.review-commute-note {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  background: #f8fbff;
}

.review-commute-note strong {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.review-events {
  display: grid;
  gap: 7px;
}

.review-event-row {
  grid-template-columns: 96px 1fr auto;
  padding: 9px 10px;
  border: 1px solid #e1e7f0;
  border-radius: 5px;
  background: #f8fafc;
}

.review-event-row.is-sales {
  border-color: #c7d7ff;
  background: #f5f8ff;
}

.review-event-row.is-internal {
  border-color: #ccebdc;
  background: #f7fcf9;
}

.review-event-row.is-holiday {
  border-color: #f4d994;
  background: #fffdf5;
}

.review-event-row time {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.review-event-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.review-event-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.review-event-title-line strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.review-event-duration {
  color: #526276;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.review-empty-day {
  padding: 9px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed #c7d2d8;
  border-radius: var(--radius);
  background: #fbfcfd;
}

.settings-panel {
  display: grid;
  gap: 16px;
}

.settings-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-panel-heading h3 {
  margin: 0;
  line-height: 1.25;
}

.settings-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.holiday-master-year select {
  width: 100%;
  height: 38px;
}

.holiday-master-table {
  display: grid;
  min-width: 1040px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding-bottom: 2px;
}

.holiday-master-head,
.holiday-master-values {
  display: grid;
  grid-template-columns: 132px repeat(12, minmax(68px, 1fr));
  align-items: stretch;
}

.holiday-master-head {
  color: var(--muted);
  background: #eef5f5;
  font-size: 13px;
  font-weight: 850;
}

.holiday-master-head span,
.holiday-master-year,
.holiday-master-cell {
  padding: 10px;
  border-right: 1px solid var(--line);
}

.holiday-master-head span:last-child,
.holiday-master-cell:last-child {
  border-right: 0;
}

.holiday-master-values {
  border-top: 1px solid var(--line);
}

.holiday-master-year,
.holiday-master-cell {
  background: #fbfcfd;
}

#holidayMasterRows {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(68px, 1fr));
}

.holiday-master-cell input {
  width: 100%;
  height: 38px;
  padding-right: 6px;
  padding-left: 10px;
}

.employee-master-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

#paidLeaveMasterRows {
  display: grid;
  gap: 8px;
}

.employee-master-row {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.7fr 1fr 0.9fr 0.9fr 0.85fr;
  align-items: center;
  gap: 12px;
  min-width: 980px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.employee-master-row.table-head {
  color: var(--muted);
  background: #eef5f5;
  font-size: 13px;
  font-weight: 800;
}

.employee-master-row input {
  width: 100%;
  height: 38px;
}

.employee-master-row select {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}

.hire-month-selects {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) minmax(64px, 0.75fr);
  gap: 8px;
  width: 100%;
}

.hire-month-selects select {
  width: 100%;
}

.employee-master-row.is-inactive {
  color: #64748b;
  background: #f1f5f9;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30000;
  transform: translateY(12px);
  opacity: 0;
  min-width: 260px;
  border-radius: var(--radius);
  color: #fff;
  background: #172126;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .nav-tabs,
  .week-summary,
  .holiday-panel,
  .review-summary-cards,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }
}

/* Premium operations theme */
:root {
  --bg: #eef1f5;
  --panel: #ffffff;
  --panel-subtle: #f8fafc;
  --line: #d7dde6;
  --line-strong: #b7c0cd;
  --text: #101722;
  --muted: #617085;
  --primary: #2457d6;
  --primary-strong: #173ca3;
  --primary-soft: #e7edff;
  --accent: #b46b0b;
  --danger: #b42318;
  --sidebar: #111827;
  --sidebar-panel: #1b2433;
  --sidebar-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 42px rgba(16, 23, 34, 0.1);
  --radius: 6px;
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #f7f9fc 0, #eef1f5 260px),
    var(--bg);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-feature-settings: "palt";
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.app-shell {
  grid-template-columns: 268px 1fr;
}

.sidebar {
  gap: 20px;
  padding: 24px 22px;
  background:
    linear-gradient(180deg, rgba(36, 87, 214, 0.14), transparent 240px),
    var(--sidebar);
  color: #f8fbff;
}

.brand {
  align-items: flex-start;
  padding-bottom: 6px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #2457d6, #0e1726);
  box-shadow: 0 14px 30px rgba(36, 87, 214, 0.28);
  font-size: 22px;
}

.brand-kicker,
.page-kicker {
  color: #66758b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-kicker {
  color: #8fa0b8;
}

h1 {
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
}

h2 {
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 900;
}

.nav-tabs {
  gap: 6px;
}

.nav-tab {
  min-height: 44px;
  border-color: transparent;
  border-radius: 5px;
  color: #c8d2e0;
  background: transparent;
  font-weight: 800;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  color: #ffffff;
  background: #2457d6;
  box-shadow: 0 12px 24px rgba(36, 87, 214, 0.24);
}

.tab-icon {
  width: 20px;
  height: 20px;
  color: inherit;
}

.profile-panel,
.status-panel {
  border: 1px solid var(--sidebar-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-label,
.status-label,
.profile-panel label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.status-period {
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 900;
}

.profile-panel strong {
  font-size: 20px;
  font-weight: 900;
}

.role-badge {
  border: 1px solid rgba(147, 197, 253, 0.34);
  border-radius: 4px;
  color: #bfdbfe;
  background: rgba(36, 87, 214, 0.18);
  padding: 3px 7px;
}

.profile-panel select {
  height: 40px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #f8fbff;
  background: #273244;
}

.status-panel strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.status-panel p {
  color: #cbd5e1;
}

.status-panel.is-unsubmitted {
  border-color: rgba(248, 113, 113, 0.48);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.46), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 4px 0 0 #ef4444,
    0 14px 32px rgba(127, 29, 29, 0.26);
}

.status-panel.is-unsubmitted .status-label,
.status-panel.is-unsubmitted .status-period {
  color: #fecaca;
}

.status-panel.is-unsubmitted strong {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(248, 113, 113, 0.45);
}

.status-panel.is-unsubmitted p {
  color: #fee2e2;
  font-weight: 750;
}

.sidebar-actions {
  gap: 8px;
  padding: 0;
}

.sidebar-actions .secondary-button {
  color: #e5edf7;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-actions .secondary-button:hover {
  color: #ffffff;
  border-color: rgba(147, 197, 253, 0.42);
  background: rgba(36, 87, 214, 0.22);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  isolation: isolate;
  overflow: hidden;
  height: 100vh;
  min-height: 100vh;
  gap: 24px;
  padding: 30px 24px 80px;
  background:
    radial-gradient(circle at 84% -8%, rgba(51, 112, 255, 0.34), transparent 34%),
    radial-gradient(circle at 16% 100%, rgba(72, 124, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #16284f 0%, #0d1830 48%, #091224 100%);
  box-shadow: inset -1px 0 0 rgba(181, 201, 255, 0.1);
}

.sidebar::before {
  content: "";
  position: absolute;
  right: -92px;
  bottom: 136px;
  z-index: -1;
  width: 310px;
  height: 150px;
  border-top: 1px solid rgba(75, 134, 255, 0.38);
  border-radius: 50%;
  box-shadow:
    0 -22px 56px rgba(41, 98, 255, 0.16),
    inset 0 18px 32px rgba(52, 103, 223, 0.08);
  transform: rotate(-13deg);
}

.sidebar::after {
  content: "";
  position: absolute;
  right: 94px;
  bottom: 252px;
  z-index: -1;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(104, 160, 255, 0.75);
  box-shadow:
    -42px 38px 0 rgba(104, 160, 255, 0.35),
    30px 68px 0 rgba(104, 160, 255, 0.45);
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.brand {
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 8px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(106, 157, 255, 0.52);
  border-radius: 8px;
  color: #8fbaff;
  background:
    linear-gradient(145deg, rgba(38, 94, 224, 0.92), rgba(11, 28, 68, 0.92));
  box-shadow:
    0 18px 32px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sidebar h1 {
  color: #ffffff;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 0;
  color: #7e91b4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.nav-tabs {
  gap: 12px;
}

.nav-tab {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #8f9fbd;
  background: transparent;
  font-size: 15px;
  font-weight: 850;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.nav-tab[hidden] {
  display: none;
}

.nav-tab:hover {
  color: #dbe8ff;
  border-color: rgba(120, 161, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.nav-tab.active {
  color: #ffffff;
  border-color: rgba(115, 163, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(52, 104, 232, 0.96), rgba(35, 67, 160, 0.96));
  box-shadow:
    0 16px 34px rgba(22, 62, 171, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-tab.active:hover {
  transform: translateY(-1px);
}

.tab-icon {
  width: 22px;
  height: 22px;
  color: inherit;
  opacity: 0.95;
}

.profile-panel {
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 5px;
  align-items: center;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(133, 163, 219, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(4, 10, 25, 0.2);
}

.profile-panel:has(+ .status-panel[hidden]),
.status-panel:not([hidden]) {
  margin-bottom: 58px;
}

.profile-panel::before {
  content: "";
  grid-row: 1 / 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #ffffff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 82%, #ffffff 0 28%, transparent 29%),
    linear-gradient(145deg, #86b8ff, #2f6deb 68%, #174090);
  box-shadow:
    0 12px 24px rgba(45, 108, 238, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.profile-label,
.profile-panel strong,
.role-badge {
  grid-column: 2;
}

.profile-label,
.status-label,
.profile-panel label {
  color: #9eb0cf;
  font-size: 12px;
  font-weight: 850;
}

.profile-panel strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  border: 1px solid rgba(135, 181, 255, 0.42);
  border-radius: 999px;
  color: #d9e7ff;
  background: linear-gradient(135deg, rgba(47, 109, 235, 0.42), rgba(21, 46, 112, 0.46));
  padding: 3px 8px;
  font-size: 11px;
}

.status-panel {
  padding: 14px 15px;
  border: 1px solid rgba(133, 163, 219, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.status-period {
  color: #a9c7ff;
  font-size: 12px;
}

.status-panel strong {
  color: #ffffff;
  font-size: 20px;
}

.status-panel p {
  color: #b7c5de;
  font-size: 13px;
}

.status-panel.is-unsubmitted {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.status-panel.is-unsubmitted .status-label,
.status-panel.is-unsubmitted .status-period {
  color: #fecaca;
}

.sidebar-actions {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  padding: 0;
}

.sidebar-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(133, 163, 219, 0.22);
  border-radius: 7px;
  color: #9eacc6;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-actions .secondary-button::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask:
    linear-gradient(#000 0 0) 0 7px / 10px 2px no-repeat,
    linear-gradient(#000 0 0) 8px 4px / 2px 8px no-repeat,
    linear-gradient(#000 0 0) 8px 4px / 6px 2px no-repeat,
    linear-gradient(#000 0 0) 8px 10px / 6px 2px no-repeat,
    linear-gradient(#000 0 0) 14px 1px / 2px 14px no-repeat;
  mask:
    linear-gradient(#000 0 0) 0 7px / 10px 2px no-repeat,
    linear-gradient(#000 0 0) 8px 4px / 2px 8px no-repeat,
    linear-gradient(#000 0 0) 8px 4px / 6px 2px no-repeat,
    linear-gradient(#000 0 0) 8px 10px / 6px 2px no-repeat,
    linear-gradient(#000 0 0) 14px 1px / 2px 14px no-repeat;
}

.sidebar-actions .secondary-button:hover {
  color: #ffffff;
  border-color: rgba(119, 166, 255, 0.46);
  background: rgba(54, 104, 226, 0.2);
}

.main {
  padding: 20px 22px 24px;
}

.topbar {
  margin-bottom: 12px;
}

.topbar .page-kicker {
  margin-bottom: 7px;
}

.schedule-title-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.schedule-period-title {
  display: grid;
  gap: 2px;
}

.schedule-period-title span {
  color: #68778c;
  font-size: 11px;
  font-weight: 900;
}

.schedule-period-title strong {
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.15;
}

.schedule-card-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  align-items: stretch;
}

.period-status-card {
  position: relative;
  display: grid;
  gap: 4px;
  margin-bottom: 0;
  min-height: 76px;
  padding: 10px 14px;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 23, 34, 0.06);
}

.period-status-card::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.period-status-card > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.period-status-label {
  color: #68778c;
  font-size: 12px;
  font-weight: 950;
}

.period-status-card strong {
  color: #0f172a;
  font-weight: 950;
}

#displayPeriodStatus {
  font-size: 22px;
  line-height: 1.15;
}

.period-status-card p {
  margin: 0;
  color: #526276;
  font-size: 11px;
  line-height: 1.45;
}

.period-status-card.is-unsubmitted {
  border-color: #f3a39a;
  background: linear-gradient(135deg, #ffffff 0%, #fff2ef 100%);
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.14);
}

.period-status-card.is-unsubmitted::before {
  background: transparent;
}

.period-status-card.is-unsubmitted #displayPeriodStatus {
  color: #c4251a;
}

.period-status-card.is-unsubmitted .period-status-label {
  color: #9f2a1f;
}

.period-status-card.is-unsubmitted p {
  color: #7f1d1d;
  font-weight: 750;
}

.period-status-card.is-approved {
  border-color: #9fd5b1;
  background: linear-gradient(135deg, #ffffff 0%, #f1fff6 100%);
}

.period-status-card.is-approved #displayPeriodStatus {
  color: #176b3a;
}

.period-status-card.is-pending,
.period-status-card.is-pending-updated {
  border-color: #b8c9f8;
  background: linear-gradient(135deg, #ffffff 0%, #f3f6ff 100%);
}

.period-status-card.is-pending #displayPeriodStatus,
.period-status-card.is-pending-updated #displayPeriodStatus {
  color: #173ca3;
}

.period-status-card.is-returned {
  border-color: #f1b7ad;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f3 100%);
}

.period-status-card.is-returned #displayPeriodStatus {
  color: #ba3324;
}

.topbar-actions {
  gap: 10px;
}

.primary-button,
.secondary-button,
.icon-button,
.danger-button {
  min-height: 40px;
  border-radius: 5px;
  font-weight: 850;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.primary-button {
  color: #ffffff;
  background: #2457d6;
  box-shadow: 0 10px 22px rgba(36, 87, 214, 0.22);
}

.primary-button:hover {
  background: #173ca3;
  transform: translateY(-1px);
}

.secondary-button,
.icon-button {
  color: #263244;
  border-color: #cfd7e3;
  background: #ffffff;
}

.secondary-button:hover,
.icon-button:hover {
  border-color: #9eb0ca;
  background: #f8fafc;
}

.danger-button {
  color: var(--danger);
  border-color: #efc7c2;
  background: #fff7f6;
}

.week-summary {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary-card {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(16, 23, 34, 0.06);
  overflow: hidden;
  position: relative;
}

.summary-metric-pair,
.paid-leave-summary {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.summary-metric-pair {
  grid-template-columns: repeat(2, 1fr);
}

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

.summary-metric-pair > div,
.paid-leave-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #e1e7f0;
  border-radius: 5px;
  background: #f8fafc;
}

.summary-card small {
  color: #68778c;
  font-size: 12px;
  font-weight: 850;
}

.summary-card > span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.summary-card strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.paid-leave-card #paidLeaveRemaining,
.paid-leave-card .paid-leave-remaining {
  color: #173ca3;
  font-size: 20px;
}

.week-summary > div,
.summary-card,
.holiday-panel,
.review-panel,
.approval-note,
.settings-panel,
.calendar-wrap,
.login-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(16, 23, 34, 0.06);
}

.week-summary > div {
  position: relative;
  overflow: hidden;
  padding: 17px 18px;
}

.week-summary > div::before {
  display: none;
}

.week-summary span,
.review-heading span,
.holiday-metric span {
  color: #68778c;
  font-size: 12px;
  font-weight: 850;
}

.week-summary strong,
.holiday-metric strong,
.review-heading strong {
  color: #0f172a;
  font-weight: 950;
}

.week-summary strong {
  font-size: 20px;
}

.holiday-panel {
  grid-template-columns: 1fr;
  gap: 6px;
  min-height: 76px;
  padding: 10px 14px;
  margin-bottom: 0;
}

.holiday-panel.is-complete {
  border-color: #9fd5b1;
  background: linear-gradient(135deg, #ffffff 0%, #f1fff6 100%);
  box-shadow: 0 10px 26px rgba(16, 23, 34, 0.06);
}

.holiday-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.holiday-panel-heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

#holidayScopeLabel {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.holiday-status-badge {
  flex: none;
  padding: 4px 9px;
  border: 1px solid #b8d7c0;
  border-radius: 999px;
  color: #176b3a;
  background: #ecfdf3;
  font-size: 12px;
  font-weight: 900;
}

.holiday-status-badge[hidden] {
  display: none;
}

.holiday-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.holiday-metric {
  min-width: 0;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid #e1e7f0;
  border-radius: 5px;
  background: #f8fafc;
}

.holiday-panel.is-complete .holiday-metric {
  border-color: #dbe2ec;
  background: #ffffff;
}

.holiday-metric strong {
  font-size: 18px;
}

.calendar-wrap {
  overflow: auto;
  border-color: #cfd7e3;
  background: #ffffff;
}

.schedule-mode-switch {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(420px, 100%);
  margin: -4px 0 14px;
  border: 1px solid #cfd7e3;
  border-radius: 7px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.schedule-mode-button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  color: #526276;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.schedule-mode-button.active {
  color: #ffffff;
  background: #2457d6;
  box-shadow: 0 10px 20px rgba(36, 87, 214, 0.18);
}

.weekly-timeline-view {
  overflow: hidden;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 23, 34, 0.06);
}

.weekly-timeline-grid {
  --timeline-time-width: 58px;
  --timeline-header-height: 42px;
  --timeline-hour-height: 52px;
  --timeline-column-height: 676px;
  display: grid;
  grid-template-columns: var(--timeline-time-width) repeat(7, minmax(0, 1fr));
  grid-template-rows: var(--timeline-header-height) var(--timeline-column-height);
  min-width: 0;
}

.timeline-corner,
.timeline-day-header,
.timeline-time-rail,
.timeline-day-column {
  border-color: #dce3ed;
}

.timeline-corner {
  grid-column: 1;
  grid-row: 1;
  background: #ffffff;
  box-shadow:
    inset -1px 0 0 #dce3ed,
    inset 0 -1px 0 #c9d2df;
}

.timeline-day-header {
  display: grid;
  grid-template-columns: max-content max-content;
  align-content: center;
  justify-content: center;
  gap: 1px 3px;
  min-width: 0;
  background: #ffffff;
  box-shadow:
    inset -1px 0 0 #dce3ed,
    inset 0 -1px 0 #c9d2df;
  padding: 7px 4px;
  text-align: center;
}

.timeline-day-header strong,
.timeline-day-header span {
  min-width: 0;
  line-height: 1.1;
}

.timeline-day-header strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.timeline-day-header span {
  color: #526276;
  font-size: 11px;
  font-weight: 900;
}

.timeline-day-header.is-today {
  background: #eff6ff;
  box-shadow: inset 0 3px 0 #2457d6;
}

.timeline-day-header.is-today strong,
.timeline-day-header.is-today span {
  color: #2457d6;
}

.timeline-day-header.is-holiday,
.timeline-day-header.is-empty {
  background: #ffffff;
}

.timeline-time-rail {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  background: #ffffff;
}

.timeline-time-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  color: #526276;
  background: #ffffff;
  box-shadow:
    inset -1px 0 0 #dce3ed,
    inset 0 -1px 0 #e1e7f0;
  padding-top: 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 850;
}

.timeline-day-column {
  position: relative;
  grid-row: 2;
  min-width: 0;
  height: var(--timeline-column-height);
  min-height: var(--timeline-column-height);
  background-color: #ffffff;
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), #e1e7f0 1px);
  background-size: 100% var(--timeline-hour-height);
  box-shadow: inset -1px 0 0 #dce3ed;
}

.timeline-day-column.is-today {
  box-shadow:
    inset -1px 0 0 #dce3ed,
    inset 0 0 0 1px rgba(36, 87, 214, 0.16);
}

.timeline-hour-cell {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--timeline-hour-height);
  border: 0;
  border-bottom: 1px solid #e1e7f0;
  border-radius: 0;
  background: #ffffff;
  padding: 0;
  margin: 0;
}

.timeline-hour-cell:not(:disabled):hover {
  background: #f1f5ff;
}

.timeline-hour-cell.is-offhours,
.timeline-day-column.is-muted-day .timeline-hour-cell {
  background: #f4f7fb;
}

.timeline-day-column.is-holiday .timeline-hour-cell {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.58) 0,
      rgba(255, 255, 255, 0.58) 10px,
      rgba(226, 232, 240, 0.72) 10px,
      rgba(226, 232, 240, 0.72) 20px
    ),
    #f8fafc;
}

.timeline-slot-cell {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-right: 1px solid #dce3ed;
  border-bottom: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 0;
  margin: 0;
}

.timeline-slot-cell.is-hour-end {
  border-bottom: 1px solid #e1e7f0;
}

.timeline-event {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 5;
  display: grid;
  align-content: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #93b4f8;
  border-radius: 6px;
  color: #0f172a;
  background: linear-gradient(180deg, #eef4ff, #dfe9ff);
  box-shadow: 0 8px 16px rgba(36, 87, 214, 0.16);
  padding: 5px 6px;
  text-align: left;
}

.timeline-event strong {
  display: block;
  overflow: hidden;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-event strong {
  font-size: 11px;
  font-weight: 950;
}

.timeline-event.event-internal {
  border-color: #7fcdb5;
  background: linear-gradient(180deg, #ecfdf7, #d9f5ea);
  box-shadow: 0 8px 16px rgba(20, 128, 99, 0.13);
}

.timeline-direct-note {
  position: absolute;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.timeline-direct-note {
  top: 8px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.timeline-footnote {
  margin: 0;
  border-top: 1px solid #e1e7f0;
  color: #64748b;
  background: #f8fafc;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.timeline-empty-state {
  display: grid;
  gap: 6px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 20px;
}

.timeline-empty-state strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.timeline-empty-state p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.calendar-grid {
  grid-template-columns: 58px repeat(7, minmax(128px, 1fr));
  min-width: 980px;
}

.calendar-cell {
  min-height: 38px;
  border-color: #dce3ed;
  background: #ffffff;
}

.calendar-header,
.time-cell {
  background: #f6f8fb;
}

.calendar-header {
  min-height: 48px;
  padding: 6px 5px;
  border-bottom-color: #c9d2df;
}

.day-name {
  color: #526276;
  font-size: 11px;
  font-weight: 850;
}

.day-date {
  margin-top: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.holiday-badge,
.day-commute-button {
  border-radius: 4px;
  letter-spacing: 0;
}

.holiday-badge {
  color: #ffffff;
  background: #576579;
  margin-top: 2px;
  padding: 1px 6px;
  font-size: 10px;
}

.day-commute-controls {
  margin-top: 3px;
}

.day-commute-button {
  min-height: 21px;
  border-color: #c7d2e2;
  color: #526276;
  background: #ffffff;
  padding: 0 6px;
  font-size: 10px;
}

.day-commute-button.active {
  border-color: #2457d6;
  color: #ffffff;
  background: #2457d6;
}

.day-holiday-button {
  border-color: #f59e0b;
  color: #9a3412;
  background: #fff7ed;
}

.day-holiday-button:hover {
  border-color: #ea580c;
  color: #7c2d12;
  background: #ffedd5;
}

.time-cell {
  color: #526276;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 850;
}

.slot-cell:hover {
  background: #f1f5ff;
}

.calendar-header.drop-target,
.slot-cell.drop-target {
  outline: 2px solid #2457d6;
  background: #edf2ff;
}

.shift-event {
  left: 5px;
  right: 5px;
  display: grid;
  align-content: center;
  gap: 1px;
  border: 1px solid #adc0f7;
  border-radius: 5px;
  color: #12203a;
  background: linear-gradient(180deg, #edf3ff, #dfe9ff);
  padding: 3px 6px;
  box-shadow: 0 8px 14px rgba(36, 87, 214, 0.14);
}

.shift-event:hover {
  filter: brightness(0.99);
}

.shift-event strong {
  color: #0f172a;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shift-event span {
  color: #40526e;
  font-size: 10px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shift-event.off {
  border-color: #606b7b;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72) 0,
      rgba(255, 255, 255, 0.72) 12px,
      rgba(226, 232, 240, 0.78) 12px,
      rgba(226, 232, 240, 0.78) 24px
    ),
    #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.shift-event.event-sales {
  border-color: #93b4f8;
  background: linear-gradient(180deg, #eef4ff, #dfe9ff);
  box-shadow: 0 8px 14px rgba(36, 87, 214, 0.14);
}

.shift-event.event-sales span {
  color: #36527e;
}

.shift-event.event-internal {
  border-color: #7fcdb5;
  background: linear-gradient(180deg, #ecfdf7, #d9f5ea);
  box-shadow: 0 8px 14px rgba(20, 128, 99, 0.13);
}

.shift-event.event-internal span {
  color: #2f665a;
}

.shift-event.event-holiday {
  border-color: #f1c56f;
  background: linear-gradient(180deg, #fffaf0 0%, #fff4d9 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.shift-event.event-holiday span {
  color: #526276;
}

.shift-event.all-day strong {
  font-size: 12px;
}

.modal {
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.56);
}

.modal form {
  padding: 24px;
}

.info-modal {
  width: min(430px, calc(100vw - 32px));
}

.info-message {
  margin: 0;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.close-button,
input,
select,
textarea {
  border-color: #cfd7e3;
  border-radius: 5px;
}

input,
select,
textarea {
  color: #101722;
  background: #ffffff;
}

.date-picker-input {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 17px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(36, 87, 214, 0.2);
  border-color: #2457d6;
}

label {
  color: #5c6c82;
  font-size: 12px;
  font-weight: 850;
}

.close-button {
  color: #334155;
  background: #ffffff;
}

.review-panel,
.approval-note,
.settings-panel {
  background: rgba(255, 255, 255, 0.96);
}

.review-heading {
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.45fr);
  gap: 10px;
}

.review-heading > div {
  padding: 12px;
  border: 1px solid #e1e7f0;
  border-radius: 5px;
  background: #f8fafc;
}

.admin-layout {
  display: block;
}

.review-panel {
  padding: 16px;
}

.review-heading {
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.25fr);
  gap: 12px;
}

.review-heading > div {
  min-width: 0;
}

.review-action-card {
  display: grid;
  grid-template-columns: minmax(96px, 0.32fr) minmax(240px, 1fr) minmax(210px, 0.66fr);
  align-items: end;
  gap: 10px;
}

.review-status-block,
.review-memo-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.review-status-block {
  align-self: start;
  align-content: start;
}

.review-memo-field textarea {
  min-height: 40px;
  height: 40px;
  resize: vertical;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.review-action-card .approval-actions {
  align-self: end;
  grid-template-columns: minmax(86px, 0.8fr) minmax(110px, 1fr);
  gap: 8px;
}

.review-action-card .approval-actions button {
  min-height: 40px;
}

.review-summary-cards {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.review-week-schedule {
  gap: 8px;
}

.review-day-card {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 9px 10px;
}

.review-day-header {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  padding-right: 10px;
  border-right: 1px solid #e1e7f0;
}

.review-day-header > div:first-child {
  display: block;
}

.review-day-header strong {
  font-size: 15px;
}

.review-day-badges {
  justify-content: flex-start;
}

.review-events {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.review-event-row {
  flex: 0 0 168px;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 4px;
  padding: 8px 9px;
}

.review-event-row time {
  font-size: 12px;
}

.review-event-main {
  gap: 2px;
}

.review-event-main strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.review-event-main span {
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.review-day-header .review-commute-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: 2px;
  padding: 7px 8px;
}

.review-day-header .review-commute-note span {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.review-empty-day {
  flex: 1;
  min-width: 180px;
}

.submitted-item,
.employee-master-row {
  border-color: #dbe2ec;
  border-radius: 5px;
  background: #ffffff;
}

.submitted-item.commute-request-item {
  border-color: #9fb7f4;
  background: #f1f5ff;
}

.employee-master-row.table-head {
  color: #526276;
  background: #f1f5f9;
}

.empty-state {
  border-color: #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
}

.toast {
  border-radius: 5px;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

#settingsView .settings-topbar {
  align-items: flex-end;
  margin-bottom: 18px;
}

#settingsView .settings-topbar h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.settings-page-lead {
  margin: 8px 0 0;
  color: #627089;
  font-size: 13px;
  font-weight: 750;
}

#settingsView .settings-panel {
  gap: 14px;
  margin-top: 18px;
  padding: 20px 24px 24px;
  border-color: #d9e2ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.07);
}

#settingsView .settings-panel-heading {
  align-items: center;
  gap: 20px;
  min-height: 42px;
}

#settingsView .settings-panel-heading h3 {
  margin: 0;
  color: #071226;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
}

#settingsView .settings-panel-actions {
  align-items: center;
  gap: 10px;
}

#settingsView .holiday-master-panel .settings-panel-actions {
  margin-right: 26px;
}

#settingsView .settings-year-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #53647a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

#settingsView .settings-year-select select {
  height: 42px;
  min-width: 120px;
  border: 1px solid #cbd7e5;
  border-radius: 5px;
  color: #071226;
  background: #ffffff;
  padding: 0 12px;
  font-weight: 900;
}

#settingsView .settings-note {
  margin: 0 0 2px;
  color: #53647a;
  font-size: 13px;
  font-weight: 750;
}

#settingsView .primary-button,
#settingsView .secondary-button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

#settingsView .primary-button {
  box-shadow: 0 16px 30px rgba(36, 87, 214, 0.2);
}

#settingsView .holiday-master-table {
  min-width: 1180px;
  overflow: hidden;
  border-color: #d5dee9;
  border-radius: 6px;
  background: #ffffff;
  padding-bottom: 0;
}

#settingsView .holiday-master-head,
#settingsView .holiday-master-values {
  grid-template-columns: 150px repeat(12, minmax(72px, 1fr));
}

#settingsView .holiday-master-head {
  color: #526276;
  background: #f1f6f8;
  font-size: 13px;
  font-weight: 900;
}

#settingsView .holiday-master-head span,
#settingsView .holiday-master-year,
#settingsView .holiday-master-cell {
  padding: 12px;
  border-color: #dbe3ee;
}

#settingsView .holiday-master-values {
  min-height: 74px;
  border-top-color: #dbe3ee;
}

#settingsView .holiday-master-year,
#settingsView .holiday-master-cell {
  display: flex;
  align-items: center;
  background: #fbfdff;
}

#settingsView .holiday-master-year select {
  height: 40px;
  font-size: 14px;
  font-weight: 900;
}

#settingsView #holidayMasterRows {
  grid-template-columns: repeat(12, minmax(72px, 1fr));
}

#settingsView .holiday-master-cell input {
  width: 100%;
  max-width: 84px;
  height: 40px;
  padding: 0 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

#settingsView .employee-master-table {
  display: block;
  overflow-x: auto;
  border: 1px solid #d5dee9;
  border-radius: 6px;
  background: #ffffff;
}

#settingsView .employee-master-row,
#settingsView #paidLeaveMasterRows {
  min-width: 1320px;
}

#settingsView #paidLeaveMasterRows {
  display: grid;
  gap: 0;
}

#settingsView .employee-master-row {
  grid-template-columns: 0.85fr 0.85fr 1.55fr 1fr 0.85fr 0.85fr 1.05fr 0.85fr;
  gap: 14px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid #dbe3ee;
  border-radius: 0;
  background: #ffffff;
}

#settingsView .japanese-holiday-master-table {
  display: grid;
  overflow-x: visible;
}

#settingsView .japanese-holiday-master-table .employee-master-row {
  grid-template-columns: minmax(140px, 180px) minmax(180px, 1fr) minmax(120px, 180px);
  min-width: 0;
}

#settingsView .paid-leave-master-table .employee-master-row,
#settingsView .paid-leave-master-table #paidLeaveMasterRows {
  min-width: 1560px;
}

#settingsView .paid-leave-master-table .employee-master-row {
  grid-template-columns: 0.8fr 0.8fr 1.55fr 1fr 0.78fr 0.72fr 0.72fr 0.72fr 1fr 0.8fr;
}

#settingsView .employee-master-row.table-head {
  border-top: 0;
  border-radius: 0;
  color: #526276;
  background: #f1f6fa;
  font-size: 13px;
  font-weight: 900;
}

#settingsView .employee-master-row input,
#settingsView .employee-master-row select {
  width: 100%;
  height: 40px;
  border-color: #ccd6e4;
  border-radius: 5px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 750;
}

#settingsView .paid-leave-calculated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #d7e1ee;
  border-radius: 5px;
  color: #0b3b8f;
  background: #f7fbff;
  font-size: 14px;
  font-weight: 900;
}

#settingsView .hire-month-selects {
  grid-template-columns: minmax(82px, 1fr) minmax(68px, 0.72fr);
  gap: 8px;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .week-summary,
  .schedule-card-grid,
  .holiday-panel,
  .period-status-card,
  .admin-layout,
  .admin-overview-row,
  .review-heading,
  .review-action-card,
  .review-summary-cards,
  .review-day-card,
  .employee-master-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .holiday-metrics {
    grid-template-columns: 1fr;
  }

  .holiday-metric {
    padding: 12px;
    border: 1px solid #e1e7f0;
  }

  .review-day-header,
  .review-event-row,
  .review-commute-note {
    grid-template-columns: 1fr;
  }

  .review-day-badges {
    justify-content: flex-start;
  }

  .review-events {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .main {
    padding: 16px;
  }

  .sidebar {
    padding: 18px;
  }

  .topbar-actions {
    width: 100%;
  }

  .toolbar-field {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-field select {
    flex: 1;
    min-width: 0;
  }

  .modal {
    width: min(100vw - 16px, 620px);
  }

  #eventDialog {
    width: min(100vw - 16px, 500px);
  }

  #submitDialog {
    width: min(100vw - 16px, 540px);
  }

  .form-grid,
  .submission-box {
    grid-template-columns: 1fr;
  }

  .datetime-row {
    grid-template-columns: 1fr max-content 1fr;
  }

  .datetime-date-field {
    grid-column: 1 / -1;
  }

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

  .submitted-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-actions span {
    display: none;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
  }
}

.mobile-schedule-appbar,
.mobile-schedule-list {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #2457d6;
  box-shadow: 0 18px 34px rgba(36, 87, 214, 0.34);
  font-size: 31px;
  font-weight: 750;
  line-height: 1;
}

.mobile-fab:not([hidden]) {
  display: grid;
}

.mobile-fab:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.mobile-fab:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  body {
    min-width: 0;
    background: #f4f7fb;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 0 0 104px;
  }

  #scheduleView {
    min-height: 100vh;
  }

  .mobile-schedule-appbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 8px 14px;
    border-bottom: 1px solid #d9e2ef;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-schedule-appbar span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-schedule-appbar strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.2;
  }

  .mobile-schedule-appbar .secondary-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  #scheduleView .topbar {
    position: sticky;
    top: 52px;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #d9e2ef;
    background: rgba(244, 247, 251, 0.96);
    backdrop-filter: blur(14px);
  }

  #scheduleView .schedule-title-row {
    display: block;
  }

  #scheduleView .schedule-period-title span {
    font-size: 10px;
  }

  #scheduleView .schedule-period-title strong {
    font-size: 25px;
    line-height: 1.12;
  }

  #scheduleView .topbar-actions {
    display: grid;
    grid-template-columns: 42px minmax(64px, 1fr) 42px minmax(72px, 0.9fr);
    gap: 8px;
    width: 100%;
  }

  #scheduleView .topbar-actions .compact-toggle,
  #scheduleEmployeeSelector {
    display: none;
  }

  #scheduleView .icon-button,
  #scheduleView .secondary-button,
  #scheduleView .primary-button {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 14px;
  }

  #scheduleView #openSubmit {
    box-shadow: 0 10px 22px rgba(36, 87, 214, 0.22);
  }

  .schedule-requirement-alert {
    margin: 12px 14px;
  }

  #scheduleView .schedule-card-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(178px, 70vw);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    margin: 0;
    padding: 12px 14px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #scheduleView .schedule-card-grid::-webkit-scrollbar {
    display: none;
  }

  #scheduleView .period-status-card,
  #scheduleView .holiday-panel,
  #scheduleView .summary-card {
    min-height: 92px;
    scroll-snap-align: start;
  }

  #scheduleView .holiday-metrics,
  #scheduleView .paid-leave-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scheduleView .holiday-metric,
  #scheduleView .paid-leave-summary > div {
    padding: 7px 8px;
  }

  #scheduleView .calendar-wrap {
    display: none;
  }

  .mobile-schedule-list {
    display: grid;
    gap: 12px;
    padding: 0 14px 86px;
  }

  .schedule-mode-switch {
    display: grid;
    width: auto;
    max-width: none;
    margin: 0 14px 10px;
    border-radius: 8px;
    padding: 3px;
  }

  .schedule-mode-button {
    min-height: 32px;
    font-size: 12px;
  }

  .weekly-timeline-view {
    margin: 0 8px 106px;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .weekly-timeline-grid {
    --timeline-time-width: 42px;
    --timeline-header-height: 38px;
    --timeline-hour-height: 42px;
    grid-template-columns: var(--timeline-time-width) repeat(7, 88px);
    min-width: 658px;
    width: max-content;
  }

  .timeline-day-header {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 5px 1px;
  }

  .timeline-day-header strong {
    font-size: 11px;
  }

  .timeline-day-header span {
    font-size: 10px;
  }

  .timeline-time-label {
    padding-top: 5px;
    font-size: 10px;
  }

  .timeline-event {
    left: 2px;
    right: 2px;
    gap: 1px;
    border-radius: 5px;
    padding: 3px 3px;
  }

  .timeline-event strong {
    display: -webkit-box;
    font-size: 9px;
    line-height: 1.18;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .timeline-direct-note {
    max-width: calc(100% - 4px);
    overflow: hidden;
    padding: 3px 4px;
    font-size: 9px;
    text-overflow: ellipsis;
  }

  .timeline-direct-note {
    top: 5px;
  }

  .timeline-footnote {
    padding: 7px 9px;
    font-size: 10px;
  }

  .mobile-empty-state,
  .mobile-day-card {
    border: 1px solid #d7e0ec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  }

  .mobile-empty-state {
    padding: 18px;
  }

  .mobile-empty-state strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
  }

  .mobile-empty-state p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
  }

  .mobile-day-card {
    overflow: hidden;
  }

  .mobile-day-card.is-holiday {
    border-color: #f2c77c;
    background: #fffaf0;
  }

  .mobile-day-card.is-empty {
    border-style: dashed;
  }

  .mobile-day-head {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #e6edf5;
  }

  .mobile-day-head > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-day-head strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
  }

  .mobile-day-badges,
  .mobile-day-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .mobile-day-badge {
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-day-badge.is-work {
    border-color: #bbf7d0;
    color: #047857;
    background: #ecfdf5;
  }

  .mobile-day-badge.is-holiday {
    border-color: #facc15;
    color: #92400e;
    background: #fffbeb;
  }

  .mobile-day-badge.is-empty {
    border-color: #e2e8f0;
    color: #64748b;
    background: #f8fafc;
  }

  .mobile-day-badge.is-direct {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
  }

  .mobile-day-actions button {
    min-height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #334155;
    background: #ffffff;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-day-actions button.active {
    border-color: #2457d6;
    color: #ffffff;
    background: #2457d6;
  }

  .mobile-event-list {
    display: grid;
    gap: 8px;
    padding: 10px;
  }

  .mobile-event-item,
  .mobile-empty-day {
    width: 100%;
    border-radius: 8px;
    text-align: left;
  }

  .mobile-event-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 10px;
    min-height: 76px;
    border: 1px solid #b9ccfb;
    background: #f0f5ff;
    padding: 10px;
  }

  .mobile-event-item.event-sales {
    border-color: #a9c1fb;
    background: #eef4ff;
  }

  .mobile-event-item.event-internal {
    border-color: #9edccb;
    background: #edfdf7;
  }

  .mobile-event-item.event-holiday {
    border-color: #f0bd64;
    background:
      repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7) 0,
        rgba(255, 255, 255, 0.7) 10px,
        rgba(254, 243, 199, 0.75) 10px,
        rgba(254, 243, 199, 0.75) 20px
      ),
      #fff7ed;
  }

  .mobile-event-time {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.35;
  }

  .mobile-event-body {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .mobile-event-body strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-event-body small {
    color: #2457d6;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-event-item.event-internal .mobile-event-body small {
    color: #047857;
  }

  .mobile-event-item.event-holiday .mobile-event-body small {
    color: #92400e;
  }

  .mobile-event-body em {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-empty-day {
    min-height: 48px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    background: #f8fafc;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
  }

  .mobile-empty-day.is-readonly {
    display: grid;
    place-items: center;
    border-style: dashed;
    cursor: default;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 4px;
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 5px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav.hidden {
    display: none !important;
  }

  .mobile-nav-tab {
    min-width: 0;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: #475569;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-nav-tab.active {
    color: #ffffff;
    background: #2457d6;
    box-shadow: 0 8px 18px rgba(36, 87, 214, 0.22);
  }

  .mobile-nav-logout {
    color: #b42318;
    background: #fff1f2;
  }

  .mobile-fab {
    position: fixed;
    right: 18px;
    bottom: 78px;
    z-index: 60;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: #2457d6;
    box-shadow: 0 18px 34px rgba(36, 87, 214, 0.38);
    font-size: 30px;
    font-weight: 750;
    line-height: 1;
  }
}

.login-screen .login-card {
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

.login-screen .login-card h2 {
  margin: 0 0 2px;
  color: #0f172a;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.2;
}

.login-screen .login-card .page-kicker {
  margin: 0;
  color: #2457d6;
}

.login-screen .login-field label {
  display: block;
  color: #5c6c82;
  font-size: 12px;
  font-weight: 900;
}

.sidebar .profile-panel {
  order: 3;
  margin-top: 0;
}

.sidebar .sidebar-actions {
  position: static;
  order: 4;
  right: auto;
  bottom: auto;
  left: auto;
  margin-top: -10px;
}

.sidebar .status-panel {
  order: 5;
}

.sidebar .profile-panel:has(+ .status-panel[hidden]),
.sidebar .status-panel:not([hidden]) {
  margin-bottom: 0;
}

.sidebar {
  gap: 14px;
  padding-top: 28px;
}

.sidebar .brand {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.sidebar .nav-tabs {
  gap: 4px;
}

.sidebar .nav-tab {
  min-height: 42px;
  padding: 0 14px;
}

.sidebar .profile-panel {
  padding: 14px;
}

.sidebar .sidebar-actions {
  margin-top: -6px;
}

@media (max-width: 560px) {
  .login-screen .login-card {
    padding: 24px 20px;
  }

  .login-screen .login-card h2 {
    font-size: 30px;
  }
}
