@import url("../../packages/ui/workforce-design-system.css");

:root {
  --bg: #eef5fb;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: #f7fbff;
  --line: #dbe7f2;
  --line-strong: #c7d7e8;
  --text: #172338;
  --muted: #687d94;
  --faint: #8aa0b7;
  --blue: #2f80ed;
  --blue-deep: #1769d8;
  --violet: #8f67ff;
  --mint: #c9f5e8;
  --peach: #fff1df;
  --green: #12a984;
  --orange: #f2a93b;
  --red: #d65353;
  --shadow: 0 24px 70px rgba(26, 62, 103, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.14), transparent 32rem),
    linear-gradient(180deg, #f4f8fd 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Inter", var(--wf-font-sans);
  font-weight: 400;
  font-size: 12.5px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.desktop-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
}

.is-sidebar-collapsed .desktop-shell {
  grid-template-columns: 96px minmax(0, 1fr);
}

.desktop-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.desktop-auth-card {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.desktop-auth-card.is-focused-flow {
  width: min(880px, 100%);
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
}

.desktop-auth-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.desktop-auth-copy p:last-child {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.desktop-auth-form,
.desktop-auth-accounts,
.auth-group,
.auth-account-grid {
  display: grid;
}

.desktop-auth-form {
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.desktop-auth-form label {
  display: grid;
  gap: 8px;
}

.desktop-auth-form span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.desktop-auth-form input,
.desktop-auth-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.desktop-company-signup-panel h2 {
  margin: 4px 0 8px;
}

.desktop-register-panel h2 {
  margin: 4px 0 0;
}

.desktop-company-signup-panel form {
  display: grid;
  gap: 12px;
}

.desktop-company-signup-panel .auth-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
}

.desktop-company-signup-panel .auth-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.desktop-company-signup-panel .auth-consent span {
  line-height: 1.5;
}

.desktop-company-signup-panel .auth-consent a {
  color: var(--blue-deep);
}

.auth-back-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-weight: 700;
}

.auth-back-button:hover {
  text-decoration: underline;
}

.auth-error {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.desktop-auth-accounts {
  grid-column: 1 / -1;
  gap: 18px;
}

.auth-group {
  gap: 12px;
}

.auth-account-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.auth-account-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: left;
}

.auth-account-card small {
  color: var(--muted);
}

.trial-onboarding {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f0f8ff, #ffffff 55%, #ecfbf6);
}

.trial-onboarding h3,
.trial-onboarding p {
  margin: 4px 0 0;
}

.trial-onboarding-steps {
  display: grid;
  gap: 8px;
}

.trial-onboarding-steps a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.trial-onboarding-steps a.is-complete {
  color: var(--muted);
  text-decoration: line-through;
}

@media (max-width: 760px) {
  .trial-onboarding { grid-template-columns: 1fr; }
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.sidebar-toggle {
  width: 28px;
  height: 28px;
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d8e4f2;
  border-radius: 9px;
  color: #2766db;
  background: #f7fbff;
  box-shadow: none;
}

.sidebar-toggle span {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 160ms ease;
}

.is-sidebar-collapsed .sidebar-toggle span {
  transform: rotate(45deg);
}

.signed-in-card,
.topbar,
.role-panel,
.section-heading,
.action-bar {
  display: flex;
  align-items: center;
}

.signed-in-card strong,
.sidebar-footer-brand strong {
  display: block;
}

small,
.signed-in-card small,
.sidebar-footer-brand small,
.sidebar-footer span,
.hero-card p,
.side-card p,
.activity-list span {
  color: var(--muted);
}

.signed-in-card,
.sidebar-footer {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.signed-in-card {
  gap: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

/* The account card already identifies the signed-in role; avoid a second badge spilling outside the avatar. */
.signed-in-card .role-avatar-badge {
  display: none;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #2f80ed 0%, #49a8ff 100%);
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(47, 128, 237, 0.2);
  overflow: hidden;
  position: relative;
}

.avatar img,
.scheduler-user-avatar img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  border-radius: inherit;
}

.avatar.large {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border-radius: 28px;
  font-size: 1.55rem;
}

.role-avatar-badge {
  position: absolute;
  right: -4px;
  bottom: -3px;
  z-index: 2;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #2bb7d8;
  box-shadow: 0 2px 5px rgba(33, 73, 112, 0.2);
}

.role-avatar-badge svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.role-avatar-badge-owner { background: #a23cc7; }
.role-avatar-badge-manager { background: #2bb7d8; }
.role-avatar-badge-supervisor { background: #32b7c9; }
.staff-avatar .role-avatar-badge { width: 14px; height: 14px; right: -3px; bottom: -2px; border-width: 1.5px; }
.staff-avatar .role-avatar-badge svg { width: 8px; height: 8px; }

.nav-section p,
.eyebrow {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav {
  display: grid;
  gap: 6px;
}

nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 13px;
  color: #52657a;
  font-size: 0.88rem;
  font-weight: 560;
  text-decoration: none;
}

nav a:hover,
nav a.is-active {
  background: #e9f2ff;
  color: var(--blue-deep);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(47, 128, 237, 0.08);
  color: var(--blue-deep);
  position: relative;
  flex: 0 0 auto;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  opacity: 0.95;
}

.nav-icon-home::before {
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  background: transparent;
  transform: translateY(1px) rotate(45deg);
}

.nav-icon-home::after {
  width: 8px;
  height: 6px;
  top: 11px;
  border: 1.5px solid currentColor;
  border-top: 0;
  background: transparent;
}

.nav-icon-calendar::before,
.nav-icon-rule::before,
.nav-icon-list::before,
.nav-icon-user::before,
.nav-icon-dash::before,
.nav-icon-clock::before,
.nav-icon-team::before,
.nav-icon-store::before,
.nav-icon-pay::before,
.nav-icon-chart::before,
.nav-icon-settings::before,
.nav-icon-platform::before {
  width: 12px;
  height: 12px;
  background: transparent;
}

.nav-icon-calendar::before {
  border: 1.5px solid currentColor;
  border-top-width: 2.5px;
  border-radius: 3px;
  transform: translateY(1px);
}

.nav-icon-calendar::after {
  width: 7px;
  height: 1.5px;
  top: 7px;
  left: 5px;
  box-shadow: 0 -2.5px 0 currentColor;
}

.nav-icon-rule::before {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: scale(0.95);
}

.nav-icon-rule::after {
  width: 5px;
  height: 1.5px;
  transform: translateY(1px) rotate(90deg);
  box-shadow: 0 -2.5px 0 currentColor, 0 2.5px 0 currentColor;
}

.nav-icon-list::before {
  width: 11px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background: transparent;
}

.nav-icon-list::after {
  width: 11px;
  height: 1.5px;
  box-shadow: 0 -2.5px 0 currentColor, 0 2.5px 0 currentColor;
}

.nav-icon-user::before {
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translateY(-3px);
}

.nav-icon-user::after {
  width: 11px;
  height: 5px;
  top: 12px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: transparent;
}

.nav-icon-dash::before {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.nav-icon-dash::after {
  width: 6px;
  height: 1.5px;
  box-shadow: 0 -2.5px 0 currentColor, 0 2.5px 0 currentColor;
}

.nav-icon-clock::before {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nav-icon-clock::after {
  width: 1.5px;
  height: 4px;
  top: 6px;
  left: 11px;
  transform-origin: center bottom;
  transform: rotate(-35deg);
}

.nav-icon-team::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  top: 5px;
  left: 6px;
  box-shadow: 5px 0 0 currentColor;
}

.nav-icon-team::after {
  width: 11px;
  height: 5px;
  top: 12px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: transparent;
}

.nav-icon-store::before {
  width: 10px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  top: 7px;
}

.nav-icon-store::after {
  width: 12px;
  height: 1.5px;
  top: 5px;
  box-shadow: 0 2.5px 0 currentColor, 0 5px 0 currentColor;
}

.nav-icon-pay::before {
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.nav-icon-pay::after {
  width: 3px;
  height: 3px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  top: 8px;
  left: 5px;
}

.nav-icon-chart::before {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.nav-icon-chart::after {
  width: 1.5px;
  height: 5px;
  left: 5px;
  top: 7px;
  box-shadow: 3.5px 0 0 currentColor, 7px -2.5px 0 currentColor;
}

.nav-icon-settings::before {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nav-icon-settings::after {
  width: 3px;
  height: 3px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -7px 0 -0.2px currentColor,
    0 7px 0 -0.2px currentColor,
    7px 0 0 -0.2px currentColor,
    -7px 0 0 -0.2px currentColor,
    5px 5px 0 -0.2px currentColor,
    -5px 5px 0 -0.2px currentColor,
    5px -5px 0 -0.2px currentColor,
    -5px -5px 0 -0.2px currentColor;
}

.nav-icon-platform::before {
  width: 12px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  transform: translateY(1px);
}

.nav-icon-platform::after {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  box-shadow: -4px -2px 0 currentColor, 4px -2px 0 currentColor, -4px 3px 0 currentColor, 4px 3px 0 currentColor;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.sidebar-footer-brand {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.footer-brand-wordmark {
  width: min(172px, 100%);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.footer-brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(145deg, #0f172a 0%, #153a7a 48%, #2f80ed 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 10px 24px rgba(27, 76, 155, 0.2);
  position: relative;
}

.footer-brand-icon.todaycrew-mark {
  display: block;
  box-sizing: border-box;
  padding: 0;
  object-fit: cover;
  background: #2475df;
}

.footer-brand-icon::before,
.footer-brand-icon::after {
  content: "";
  position: absolute;
  border-radius: 10px;
}

.footer-brand-icon::before {
  inset: 11px;
  background:
    radial-gradient(circle at 7px 7px, #fff 0 2.4px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 7px) 7px, #9fd2ff 0 2.4px, transparent 2.8px),
    radial-gradient(circle at 7px calc(100% - 7px), #9fd2ff 0 2.4px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #fff 0 2.4px, transparent 2.8px);
}

.footer-brand-icon::after {
  inset: 17px;
  border: 1.5px solid rgba(255,255,255,0.28);
}

.sidebar-footer-brand strong {
  font-size: 1rem;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.sidebar-footer-brand small {
  font-size: 0.82rem;
}

.workspace {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px;
}

.topbar {
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 4px 0 2px;
}

.page-intro,
.topbar-right {
  display: grid;
  gap: 8px;
}

.page-intro {
  min-width: 0;
}

.topbar-right {
  justify-items: end;
}

.title-block h1 {
  margin: 0;
  font-size: clamp(1.95rem, 2.7vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
  font-weight: 560;
}

.topbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
}

.topbar-copy h2 {
  font-size: 1.08rem;
}

.topbar-copy p {
  font-size: 0.86rem;
}

.search-box,
.select-wrap {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--muted);
}

.search-box {
  width: min(300px, 28vw);
  padding: 0 14px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 480;
}

.search-mark {
  width: 14px;
  height: 14px;
  border: 2px solid var(--faint);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: var(--faint);
  transform: rotate(45deg);
}

.select-wrap {
  padding: 0 12px;
}

.select-wrap.is-static strong {
  color: var(--text);
  font-weight: 560;
  white-space: nowrap;
}

.select-wrap span {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 760;
}

select {
  min-height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 620;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 900;
}

.scheduler-hidden-date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.status-chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-chip {
  min-height: 34px;
  padding: 0 14px;
  background: #e9f2ff;
  color: var(--blue-deep);
  font-weight: 700;
}

.role-panel,
.main-surface,
.side-card,
.metric-card,
.panel-card,
.profile-card,
.table-card,
.chart-card,
.hero-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(26, 62, 103, 0.06);
}

.role-panel {
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 22px;
}

.role-panel-quiet {
  min-height: 72px;
  padding-block: 12px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.session-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.session-actions.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-actions.inline small {
  white-space: nowrap;
}

.role-copy h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-weight: 620;
}

.role-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.role-panel h2,
.hero-card h2,
.section-heading h2,
.profile-card h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.role-panel p {
  margin: 7px 0 0;
  color: var(--muted);
}

.role-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-switcher button,
.primary-action,
.secondary-action {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 700;
}

.role-switcher button {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.role-switcher button.is-active {
  border-color: var(--blue);
  background: linear-gradient(180deg, #2f80ed 0%, #1d66c9 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(47, 128, 237, 0.18);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.workspace-grid.is-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-grid.is-single-column .insight-rail {
  display: none;
}

.is-admin-schedule-route .workspace {
  padding: 18px 20px 20px;
}

.is-admin-schedule-route .topbar {
  display: none;
}

.is-admin-schedule-route .workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}

.is-admin-schedule-route .insight-rail {
  display: none;
}

.is-admin-schedule-route .main-surface {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.is-sidebar-collapsed .sidebar {
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
}

.is-sidebar-collapsed .signed-in-card {
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 4px 0 10px;
  border: 0;
  background: transparent;
}

.is-sidebar-collapsed .signed-in-card div,
.is-sidebar-collapsed .nav-section p,
.is-sidebar-collapsed .sidebar-footer-brand small {
  display: none;
}

.is-sidebar-collapsed .sidebar-toggle {
  margin-left: 0;
}

.is-sidebar-collapsed .nav-section,
.is-sidebar-collapsed nav {
  width: 100%;
}

.is-sidebar-collapsed nav {
  justify-items: center;
  gap: 8px;
}

.is-sidebar-collapsed nav a {
  width: 48px;
  min-height: 44px;
  justify-content: center;
  padding-inline: 0;
  font-size: 0;
}

.is-sidebar-collapsed .nav-icon {
  width: 30px;
  height: 30px;
}

/* A horizontal wordmark cannot stay legible in a narrow icon rail. */
.is-sidebar-collapsed .sidebar-footer {
  display: none;
}

.main-surface,
.insight-rail {
  min-width: 0;
}

.main-surface {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
}

.workspace-grid.is-single-column .main-surface {
  max-width: none;
}

.insight-rail {
  display: grid;
  gap: 14px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.09), transparent 58%),
    #fff;
}

.hero-card h2 {
  max-width: 640px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 620;
}

.hero-card p {
  max-width: 640px;
  line-height: 1.55;
}

.time-clock-widget {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 24px;
  background: #f7fbff;
  border: 1px solid var(--line);
}

.time-clock-widget span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.time-clock-widget strong {
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  font-weight: 620;
}

.action-bar {
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action,
.danger-action {
  padding: 0 16px;
  border: 1px solid transparent;
}

.primary-action {
  color: #fff;
  background: linear-gradient(180deg, #2f80ed 0%, #1d66c9 100%);
  box-shadow: 0 16px 28px rgba(47, 128, 237, 0.18);
}

.secondary-action {
  color: var(--blue-deep);
  background: #fff;
  border-color: rgba(47, 128, 237, 0.28);
}

.danger-action {
  color: #b4232c;
  background: #fff1f1;
  border-color: #efb9bd;
}

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

.metric-card {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border-radius: 18px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-weight: 600;
}

.metric-card strong {
  font-size: 2rem;
  letter-spacing: -0.055em;
  font-weight: 620;
}

.metric-card.warning {
  background: linear-gradient(180deg, #fff9ec 0%, #fff4df 100%);
}

.metric-card.danger {
  background: linear-gradient(180deg, #fff4f4 0%, #ffe9e9 100%);
}

.metric-card.success {
  background: linear-gradient(180deg, #edfbf6 0%, #def8ef 100%);
}

.split-panels,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.panel-card,
.profile-card,
.side-card {
  padding: 18px;
  border-radius: 20px;
}

.panel-card h3,
.side-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.activity-list,
.permission-list {
  display: grid;
  gap: 10px;
}

.activity-list span,
.permission-list span {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.activity-list span:last-child,
.permission-list span:last-child {
  border-bottom: 0;
}

.permission-list strong {
  display: block;
  color: var(--text);
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
}

.table-card {
  overflow: auto;
  border-radius: 18px;
}

.dashboard-preview-panels .panel-card {
  min-width: 0;
}

.dashboard-preview-panels .table-card {
  overflow-x: hidden;
}

.dashboard-preview-panels .table-card table {
  min-width: 0;
  table-layout: fixed;
}

.dashboard-preview-panels .table-card th,
.dashboard-preview-panels .table-card td {
  padding: 11px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-empty-state {
  min-height: 126px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #c9d9ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
  color: #71839a;
  text-align: center;
}

.dashboard-empty-state span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: #e8f8f1;
  color: #1d9c72;
  font-weight: 700;
}

.dashboard-empty-state p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 520;
}

.workspace-grid.is-single-column .table-card,
.workspace-grid.is-single-column .panel-card,
.workspace-grid.is-single-column .profile-card,
.workspace-grid.is-single-column .chart-card,
.workspace-grid.is-single-column .hero-card {
  width: 100%;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #f7fbff;
}

td {
  color: #33445a;
  font-weight: 500;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  min-height: 28px;
  padding: 0 10px;
}

.table-action {
  border: 0;
  cursor: pointer;
  line-height: 1;
}

.badge.success {
  background: #e1f7ef;
  color: #087a60;
}

.badge.warning {
  background: #fff4dc;
  color: #9a6308;
}

.badge.danger {
  background: #fff0f0;
  color: #af3636;
}

.badge.neutral {
  background: #eef4fb;
  color: #52657a;
}

.profile-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 280px;
  text-align: center;
}

.schedule-month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.schedule-month-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(26, 62, 103, 0.06);
}

.schedule-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.schedule-month-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

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

.schedule-shift-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbff;
  text-align: left;
}

.schedule-shift-item strong {
  color: var(--text);
}

.schedule-shift-item span,
.schedule-shift-item small {
  color: var(--muted);
}

.schedule-shift-item.is-published {
  border-color: #a9c4f1;
  background: #edf4ff;
}

.schedule-shift-item.is-pending {
  border-color: #f0cc87;
  background: #fff7e7;
}

.schedule-shift-item.is-draft {
  border-color: #c7d1e4;
  background: #fff;
}

.profile-card p {
  margin: 8px 0 14px;
  color: var(--muted);
}

.chart-card {
  min-height: 260px;
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.12), rgba(143, 103, 255, 0.08) 52%, transparent),
    #fff;
}

.chart-card span {
  flex: 1;
  min-width: 28px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #2f80ed, #9bc9ff);
}

.chart-card span:nth-child(1) { height: 38%; }
.chart-card span:nth-child(2) { height: 70%; }
.chart-card span:nth-child(3) { height: 52%; }
.chart-card span:nth-child(4) { height: 84%; }
.chart-card span:nth-child(5) { height: 62%; }
.chart-card span:nth-child(6) { height: 92%; }

.staff-table-shell {
  display: grid;
  gap: 12px;
}

.staff-table-head,
.staff-tabs,
.staff-row-actions,
.store-settings-head {
  display: flex;
  align-items: center;
}

.staff-table-head,
.store-settings-head {
  justify-content: space-between;
  gap: 14px;
}

.staff-tabs {
  gap: 8px;
  flex-wrap: wrap;
}

.staff-tab,
.icon-mini-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.staff-tab {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 560;
}

.staff-tab.is-active {
  border-color: rgba(47, 128, 237, 0.24);
  background: linear-gradient(180deg, #f4f9ff 0%, #ebf4ff 100%);
  color: var(--blue-deep);
}

.staff-table-card {
  background:
    linear-gradient(180deg, rgba(47, 128, 237, 0.03), transparent 18rem),
    #fff;
}

.staff-directory-table th {
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
}

.staff-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-name-cell strong {
  display: block;
  font-weight: 580;
}

.staff-name-cell small {
  font-size: 0.76rem;
}

.staff-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.78rem;
  box-shadow: none;
}

.staff-row-actions {
  gap: 5px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-width: max-content;
  max-width: 214px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}

.icon-mini-button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 560;
}

.icon-mini-button:hover {
  border-color: rgba(47, 128, 237, 0.24);
  color: var(--blue-deep);
}

.staff-action-icon {
  position: relative;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  color: #5f7189;
  background: #fff;
}

.staff-action-icon span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
}

.staff-action-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.staff-action-icon:hover::after,
.staff-action-icon:focus-visible::after {
  content: attr(title);
  position: absolute;
  right: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 160px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.18);
  transform: translateX(50%);
  pointer-events: none;
}

.staff-action-icon[data-row-action="delete"]:hover {
  border-color: rgba(220, 38, 38, 0.28);
  color: #b42318;
  background: #fff7f7;
}

.mini-muted {
  color: var(--faint);
  font-size: 0.78rem;
}

.staff-note-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
}

.store-settings-panel {
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(143, 103, 255, 0.08), transparent 16rem),
    radial-gradient(circle at bottom left, rgba(18, 169, 132, 0.08), transparent 14rem),
    #fff;
}

.store-settings-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 620;
}

.store-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.store-settings-grid .wide {
  grid-column: 1 / -1;
}

.billing-settings-panel {
  border-color: #bfd3ff;
  background:
    radial-gradient(circle at top right, rgba(47, 102, 255, 0.12), transparent 20rem),
    #fff;
}

.billing-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.billing-setup-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #805b16;
}

.platform-testing-note {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  border-color: #c8d9ff;
  background: linear-gradient(90deg, #f3f8ff, #ffffff);
}

.platform-testing-note strong {
  color: #175bc3;
  white-space: nowrap;
}

.platform-testing-note span {
  color: var(--muted);
  line-height: 1.45;
}

.platform-company-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.platform-company-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.platform-manage-button {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .billing-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-testing-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.modal-field textarea,
.modal-field input,
.modal-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.modal-field textarea {
  min-height: 110px;
  padding-block: 12px;
  resize: vertical;
}

.modal-field input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  padding: 0;
  accent-color: var(--brand);
}

.manager-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.manager-hero h2 {
  margin: 0;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.075em;
  font-weight: 700;
}

.manager-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.manager-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.select-wrap.compact {
  min-width: 172px;
}

.manager-search {
  width: min(320px, 30vw);
}

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

.manager-kpi {
  min-height: 198px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(219, 231, 242, 0.92);
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  box-shadow: 0 18px 30px rgba(26, 62, 103, 0.06);
  display: grid;
  gap: 14px;
  align-content: start;
}

.manager-kpi:nth-child(1) { background: linear-gradient(180deg, #fff 0%, #f7fbff 100%); }
.manager-kpi:nth-child(2) { background: linear-gradient(180deg, #fff 0%, #f6fcfb 100%); }
.manager-kpi:nth-child(3) { background: linear-gradient(180deg, #fff 0%, #fff5f5 100%); }
.manager-kpi:nth-child(4) { background: linear-gradient(180deg, #fff 0%, #fffaf0 100%); }

.manager-kpi-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 950;
  font-size: 1.15rem;
}

.manager-kpi-icon.people {
  background: #e7f0ff;
  color: #2053d4;
}

.manager-kpi-icon.clock {
  background: #dff5ee;
  color: #0f8a72;
}

.manager-kpi-icon.alert {
  background: #fff1ef;
  color: #d94a3d;
}

.manager-kpi-icon.requests {
  background: #f4ead7;
  color: #946000;
}

.manager-kpi-copy {
  display: grid;
  gap: 6px;
}

.manager-kpi-copy span {
  color: #2d3750;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manager-kpi-copy strong {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 700;
}

.manager-kpi-copy small {
  color: var(--muted);
  font-weight: 800;
}

.manager-live,
.manager-requests,
.manager-insights {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 30px rgba(26, 62, 103, 0.06);
}

.manager-live {
  overflow: hidden;
}

.manager-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
}

.manager-section-head h3,
.manager-requests h3,
.manager-insights h3 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.manager-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.dashboard-panel-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 7px 0 13px;
  border: 1px solid #d6e4f5;
  border-radius: 999px;
  color: #2468d7;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 5px 13px rgba(34, 89, 165, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.dashboard-panel-link i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2f80ed;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1;
}

.dashboard-panel-link:hover,
.dashboard-panel-link:focus-visible {
  border-color: #92b8f7;
  box-shadow: 0 9px 18px rgba(34, 89, 165, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.manager-actions {
  display: flex;
  gap: 12px;
}

.manager-live .table-card {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.manager-live table {
  min-width: 100%;
}

.manager-live th {
  background: #f4f7ff;
  color: #3a4661;
  font-size: 0.88rem;
}

.attendance-link {
  display: block;
  padding: 18px 26px 24px;
  color: var(--blue-deep);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.manager-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.manager-requests {
  padding: 22px;
}

.manager-requests .compact {
  padding: 0 0 14px;
}

.requests-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe3c9;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.request-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f4f6ff;
}

.request-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e6ebff;
  color: #5f6ea6;
  font-weight: 950;
}

.request-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.98rem;
}

.request-item small {
  color: #65708c;
}

.request-arrow {
  color: #7b8193;
  font-size: 1.8rem;
  line-height: 1;
}

.request-status-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow-x: auto;
}

.request-status-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #61748d;
  font-size: 0.82rem;
  font-weight: 560;
  white-space: nowrap;
}

.request-status-tab strong {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #edf3fa;
  color: #61748d;
  font-size: 0.72rem;
}

.request-status-tab.is-active {
  background: linear-gradient(180deg, #eaf4ff 0%, #dfedff 100%);
  color: var(--blue-deep);
}

.request-status-tab.is-active strong {
  background: var(--blue);
  color: #fff;
}

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

.request-review-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(26, 62, 103, 0.05);
}

.request-review-card.is-pending {
  border-left: 4px solid #e5a326;
}

.request-review-card.is-approved {
  border-left: 4px solid var(--green);
}

.request-review-card.is-declined {
  border-left: 4px solid #df6161;
}

.request-review-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #edf5ff;
  color: var(--blue-deep);
  font-size: 1.15rem;
  font-weight: 650;
}

.request-review-card.is-pending .request-review-icon {
  background: #fff4df;
  color: #9a6308;
}

.request-review-card.is-approved .request-review-icon {
  background: #e4f8f1;
  color: #087a60;
}

.request-review-card.is-declined .request-review-icon {
  background: #fff0f0;
  color: #b43838;
}

.request-review-copy {
  min-width: 0;
}

.request-review-title-row,
.request-review-meta,
.request-review-actions {
  display: flex;
  align-items: center;
}

.request-review-title-row {
  justify-content: space-between;
  gap: 12px;
}

.request-review-title-row h3 {
  margin: 3px 0 0;
  font-size: 1.04rem;
  font-weight: 590;
}

.request-kind-label {
  color: #7b8ea6;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-status-badge {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: #60738c;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.request-status-badge.is-pending {
  background: #fff2d7;
  color: #96620a;
}

.request-status-badge.is-approved {
  background: #ddf7ed;
  color: #087a60;
}

.request-status-badge.is-declined {
  background: #ffebeb;
  color: #b43838;
}

.request-review-meta {
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-top: 9px;
  color: #7588a0;
  font-size: 0.76rem;
}

.request-review-meta strong {
  color: #40536b;
  font-weight: 590;
}

.request-target-summary {
  margin: 10px 0 0;
  color: #31506f;
  font-weight: 560;
}

.request-detail-copy {
  max-width: 76ch;
  margin: 5px 0 0;
  color: #6b7f97;
  line-height: 1.45;
  white-space: pre-wrap;
}

.request-manager-response {
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f3f7fb;
  color: #61748d;
  font-size: 0.78rem;
}

.request-manager-response strong {
  color: #34485f;
}

.request-break-decision {
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #f3d58a;
  border-radius: 10px;
  background: #fff8df;
  color: #765419;
  font-size: 0.8rem;
  line-height: 1.4;
}

.request-break-decision strong {
  color: #5e4210;
}

.request-review-actions {
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 270px;
}

.request-review-actions button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.request-approve-action,
.request-decline-action {
  border: 1px solid transparent;
}

.request-approve-action {
  background: #ddf7ed;
  color: #087a60;
}

.request-decline-action {
  background: #fff0f0;
  color: #b43838;
}

.request-empty-state {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 28px;
  border: 1px dashed #cfddeb;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.request-empty-state > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2f8ef;
  color: #088064;
  font-size: 1.15rem;
}

.request-empty-state h3,
.request-empty-state p {
  margin: 0;
}

.request-empty-state p {
  color: var(--muted);
}

.request-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.request-modal-summary span,
.request-modal-detail {
  padding: 11px 12px;
  border: 1px solid #e4edf6;
  border-radius: 12px;
  background: #f8fbff;
  color: #61748d;
}

.request-modal-summary strong,
.request-modal-detail strong {
  display: block;
  margin-bottom: 4px;
  color: #33485f;
  font-size: 0.76rem;
}

.request-modal-detail {
  margin-bottom: 12px;
}

.request-modal-detail p,
.request-decision-hint {
  margin: 0;
  line-height: 1.5;
}

.request-decision-hint {
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff6e5;
  color: #7e5a16;
}

@media (max-width: 900px) {
  .request-review-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .request-review-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }

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

.manager-insights {
  padding: 22px;
  background: linear-gradient(180deg, #2f69f4 0%, #2353da 100%);
  color: #fff;
}

.manager-insights p {
  margin: 14px 0 18px;
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.5;
}

.insight-bar {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.insight-bar div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
}

.insight-meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.insight-meter span {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.light-action {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #2455dc;
  font-weight: 700;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(24, 32, 54, 0.94);
  color: #fff;
  box-shadow: 0 18px 30px rgba(26, 62, 103, 0.24);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}

.modal-shell[data-layout="drawer"] {
  place-items: stretch end;
}

.modal-shell[data-layout="timesheet-detail"] {
  place-items: stretch end;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 42, 0.28);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 30px 80px rgba(26, 62, 103, 0.24);
}

.modal-shell[data-layout="drawer"] .modal-card {
  width: min(430px, calc(100vw - 12px));
  max-height: 100vh;
  height: 100vh;
  border-radius: 24px 0 0 24px;
  padding: 18px 18px 22px;
}

.modal-shell[data-layout="timesheet-detail"] .modal-card {
  width: min(1360px, calc(100vw - 24px));
  max-height: 100vh;
  height: 100vh;
  border-radius: 22px 0 0 22px;
  padding: 20px 22px 24px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
}

.modal-head {
  justify-content: space-between;
  gap: 16px;
}

.modal-head h2 {
  margin: 4px 0 0;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4d6076;
  font-size: 1.4rem;
}

.modal-body {
  margin-top: 18px;
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-shell[data-layout="shift-actions"] .modal-card {
  width: min(560px, calc(100vw - 24px));
}

.modal-shell[data-layout="shift-actions"] .modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-shell[data-layout="shift-actions"] .modal-actions button {
  width: 100%;
  min-width: 0;
}

.modal-shell[data-layout="shift-actions"] .modal-actions button:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .modal-shell[data-layout="shift-actions"] .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-shell[data-layout="shift-actions"] .modal-actions button:first-child {
    grid-column: auto;
  }
}

.modal-grid {
  display: grid;
  gap: 14px;
}

.modal-field {
  display: grid;
  gap: 8px;
}

.modal-field span {
  color: #5e738a;
  font-size: 0.84rem;
  font-weight: 700;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: #203048;
}

.modal-field input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  padding: 0;
}

.modal-field textarea {
  min-height: 120px;
  resize: vertical;
}

.manual-time-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.manual-time-entry-grid .wide {
  grid-column: 1 / -1;
}

.modal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #425a73;
  font-size: 0.9rem;
}

.modal-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

@media (max-width: 640px) {
  .manual-time-entry-grid {
    grid-template-columns: 1fr;
  }

  .manual-time-entry-grid .wide {
    grid-column: auto;
  }
}

.modal-profile {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.schedule-share-link-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.schedule-share-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-share-link-row:last-child {
  border-bottom: 0;
}

.schedule-share-link-row strong,
.schedule-share-link-row small {
  display: block;
}

.schedule-share-link-row strong {
  color: var(--text);
}

.schedule-share-link-row small {
  margin-top: 4px;
  color: var(--muted);
}

.schedule-share-link-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

@media (max-width: 640px) {
  .schedule-share-link-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.scheduler-shell {
  display: grid;
  gap: 10px;
}

.scheduler-shell {
  --scheduler-scale: 1;
}

.scheduler-topbar,
.scheduler-title-row,
.scheduler-header-actions,
.scheduler-summary-row,
.scheduler-board-head,
.scheduler-row,
.scheduler-user-cell,
.scheduler-week-grid,
.scheduler-week-head-row,
.scheduler-week-grid-row,
.scheduler-week-row {
  display: flex;
}

.scheduler-topbar {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(26, 62, 103, 0.05);
}

.scheduler-topbar {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
}

.scheduler-title-row {
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.scheduler-title-row > div:last-child {
  min-width: 0;
}

.scheduler-title-row h2 {
  margin: 2px 0 0;
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.scheduler-store-chip,
.scheduler-user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf4ff;
  color: #2f66ff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.scheduler-header-actions {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
}

.scheduler-view-controls,
.scheduler-action-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scheduler-view-controls {
  min-width: 0;
}

.scheduler-action-controls {
  margin-left: auto;
  flex-shrink: 0;
}

.scheduler-actions-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.scheduler-actions-button span {
  margin-left: 6px;
  font-size: 0.9em;
}

.scheduler-actions-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 258px;
  padding: 12px 0;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(31, 56, 90, 0.16);
}

.scheduler-actions-menu[hidden] {
  display: none;
}

.scheduler-actions-heading {
  margin: 2px 16px 6px;
  color: #98a4b5;
  font-size: 0.78rem;
  font-weight: 700;
}

.scheduler-actions-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: #31435c;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.scheduler-actions-menu button:hover,
.scheduler-actions-menu button:focus-visible {
  background: #f2f7ff;
  color: #2378ed;
  outline: none;
}

.scheduler-actions-menu button span {
  width: 18px;
  color: #64758b;
  text-align: center;
}

.scheduler-actions-menu button:hover span,
.scheduler-actions-menu button:focus-visible span {
  color: #2378ed;
}

.is-admin-schedule-route .scheduler-header-actions {
  width: auto;
  justify-content: space-between;
  overflow: visible;
}

.is-admin-schedule-route .scheduler-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.is-admin-schedule-route .scheduler-header-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.is-admin-schedule-route .scheduler-view-controls {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.is-admin-schedule-route .scheduler-view-controls > button {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.is-admin-schedule-route .scheduler-view-controls .scheduler-date-pill {
  flex: 0 0 142px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.is-admin-schedule-route .scheduler-action-controls {
  margin-left: 0;
}

.scheduler-header-actions [data-scheduler-view][aria-pressed="true"] {
  background: #eef4ff;
  border-color: #b8cffc;
  color: #2455dc;
}

.scheduler-conflict-count {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #ffb8bf;
  border-radius: 999px;
  color: #b4232e;
  background: #fff0f1;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.scheduler-date-pill {
  min-width: 142px;
}

@media (max-width: 1500px) and (min-width: 821px) {
  .is-admin-schedule-route .scheduler-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .is-admin-schedule-route .scheduler-header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .is-admin-schedule-route .scheduler-view-controls {
    width: 100%;
    flex: 1 1 100%;
  }

  .is-admin-schedule-route .scheduler-action-controls {
    width: 100%;
    justify-content: flex-end;
  }
}

.scheduler-summary-row {
  gap: 18px;
  padding: 0 16px;
  color: #6b7890;
  font-size: 0.84rem;
  font-weight: 700;
}

.scheduler-card {
  border: 1px solid #e2e8f3;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  cursor: grab;
}

.scheduler-card.is-panning {
  cursor: grabbing;
  user-select: none;
}

.scheduler-board {
  --scheduler-side-width: 214px;
  --scheduler-hour-width: 74px;
  --scheduler-week-column-width: 168px;
  --scheduler-row-height: 52px;
  overflow-x: auto;
  background: #fff;
}

.scheduler-board-head {
  min-width: calc(var(--scheduler-side-width) + var(--scheduler-grid-width, calc(var(--schedule-columns, 14) * var(--scheduler-hour-width))));
  border-bottom: 1px solid #edf1f8;
  background: #fff;
}

.scheduler-side-head,
.scheduler-user-cell {
  width: var(--scheduler-side-width);
  min-width: var(--scheduler-side-width);
  padding: 8px 10px;
  border-right: 1px solid #edf1f8;
  background: #fff;
}

.scheduler-side-head {
  position: sticky;
  left: 0;
  z-index: 4;
}

.scheduler-search {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #dbe4f1;
  color: #92a0b6;
  background: #fff;
}

.scheduler-hours,
.scheduler-grid-row {
  position: relative;
  flex: 0 0 var(--scheduler-grid-width, auto);
  width: var(--scheduler-grid-width, auto);
  min-width: var(--scheduler-grid-width, auto);
  display: grid;
}

.scheduler-hours {
  grid-template-columns: repeat(var(--schedule-columns, 14), minmax(var(--scheduler-hour-width), 1fr));
  align-items: stretch;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% / var(--schedule-columns) - 1px),
      #edf1f8 calc(100% / var(--schedule-columns) - 1px),
      #edf1f8 calc(100% / var(--schedule-columns))
    ),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.scheduler-grid-row {
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
}

.scheduler-hours span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 0 12px;
  color: #60718c;
  font-size: 0.82rem;
  font-weight: 620;
  text-align: center;
  white-space: nowrap;
}

.scheduler-rows {
  display: grid;
}

.scheduler-row {
  min-width: calc(var(--scheduler-side-width) + var(--scheduler-grid-width, calc(var(--schedule-columns, 14) * var(--scheduler-hour-width))));
  min-height: var(--scheduler-row-height);
}

.scheduler-row + .scheduler-row {
  border-top: 1px solid #f1f4fa;
}

.scheduler-user-cell {
  align-items: center;
  gap: 8px;
  position: sticky;
  left: 0;
  z-index: 2;
}

.scheduler-user-profile {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.scheduler-user-profile > span {
  min-width: 0;
}

.scheduler-user-profile:hover strong,
.scheduler-user-profile:focus-visible strong {
  color: #175dd1;
}

.scheduler-user-profile:focus-visible {
  outline: 2px solid #8bb7ff;
  outline-offset: 4px;
  border-radius: 8px;
}

.scheduler-user-cell strong {
  display: block;
  max-width: 102px;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 570;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheduler-user-cell small {
  display: block;
  max-width: 102px;
  overflow: hidden;
  color: #7b879f;
  font-size: 0.61rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheduler-user-cell.is-ghost {
  color: #69758d;
  font-weight: 700;
}

.scheduler-grid-row {
  min-height: var(--scheduler-row-height);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% / var(--grid-columns) - 1px),
      #edf1f8 calc(100% / var(--grid-columns) - 1px),
      #edf1f8 calc(100% / var(--grid-columns))
    ),
    #fff;
}

.scheduler-hour-cell {
  min-height: var(--scheduler-row-height);
}

.scheduler-shift,
.scheduler-availability {
  position: absolute;
  top: 9px;
  height: 42px;
  border-radius: 10px;
}

.scheduler-shift {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 18px 16px;
  align-items: stretch;
  overflow: hidden;
  border: 1.5px solid #4575d3;
  cursor: grab;
  touch-action: none;
}

.scheduler-shift.has-conflict,
.scheduler-week-shift.has-conflict {
  z-index: 12;
  border-color: #f04452;
  box-shadow: 0 0 0 2px rgba(240, 68, 82, 0.2), 0 8px 18px rgba(180, 35, 46, 0.12);
}

.scheduler-shift.has-conflict {
  overflow: visible;
}

.scheduler-shift.has-conflict:hover,
.scheduler-week-shift.has-conflict:hover,
.scheduler-shift.has-conflict:focus-within,
.scheduler-week-shift.has-conflict:focus-within {
  z-index: 30;
}

.scheduler-shift.is-published {
  background: #4d7fd4;
  color: #fff;
}

.scheduler-shift.is-pending {
  background: #fff;
  color: #8a5a00;
  border-color: #f0c774;
  box-shadow: inset 0 0 0 1px rgba(240, 199, 116, 0.2);
}

.scheduler-shift.is-draft {
  background: #fff;
  color: #3b4a62;
  border-color: #7382b1;
  box-shadow: inset 0 0 0 1px rgba(129, 142, 184, 0.16);
}

.scheduler-shift-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 6px 4px;
}

.scheduler-shift-copy strong,
.scheduler-shift-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheduler-shift-copy strong {
  font-size: 0.78rem;
}

.scheduler-shift-copy span {
  font-size: 0.74rem;
  opacity: 0.92;
}

.scheduler-handle {
  border: 0;
  background: transparent;
  cursor: ew-resize;
}

.scheduler-shift-menu-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.78;
}

.scheduler-shift-menu-button:hover,
.scheduler-shift-menu-button:focus-visible {
  opacity: 1;
}

.scheduler-availability {
  display: grid;
  place-items: center;
  padding: 0 10px;
  background: #ffeff0;
  color: #f06774;
  text-align: center;
}

.scheduler-availability strong,
.scheduler-availability span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
}

.scheduler-week-head-row,
.scheduler-week-grid-row {
  flex: 0 0 var(--scheduler-grid-width, calc(7 * var(--scheduler-week-column-width)));
  width: var(--scheduler-grid-width, calc(7 * var(--scheduler-week-column-width)));
  min-width: var(--scheduler-grid-width, calc(7 * var(--scheduler-week-column-width)));
}

.scheduler-week-head-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.scheduler-week-head {
  min-height: 96px;
  padding: 7px 10px 9px;
  border-right: 1px solid #edf1f8;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  color: #516278;
  background: #fff;
  text-align: center;
}

.scheduler-week-head:hover,
.scheduler-week-head:focus-visible {
  background: #f5f9ff;
}

.scheduler-week-head:last-child {
  border-right: 0;
}

.scheduler-week-head strong,
.scheduler-week-head span {
  display: block;
}

.scheduler-week-head span {
  margin-top: 3px;
  color: #8795aa;
  font-size: 0.66rem;
}

.scheduler-day-meta {
  color: #9aa6b6 !important;
}

.scheduler-day-progress {
  height: 4px;
  margin: 8px 0 10px !important;
  border-radius: 999px;
  background: #dfe4eb;
}

.scheduler-day-progress.is-weekend {
  background: #dfe4eb;
}

.scheduler-board.is-week .scheduler-day-labor {
  display: none !important;
}

.scheduler-day-labor {
  display: flex !important;
  justify-content: space-between;
  gap: 12px;
  color: #7f8ca0 !important;
  line-height: 1.25;
}

.scheduler-day-labor em {
  font-style: normal;
}

.scheduler-day-labor b {
  color: #506079;
  font-weight: 600;
}

.scheduler-week-rows {
  display: grid;
}

.scheduler-week-row {
  min-width: calc(var(--scheduler-side-width) + var(--scheduler-grid-width, calc(7 * var(--scheduler-week-column-width))));
  min-height: 52px;
  border-top: 1px solid #f1f4fa;
}

.scheduler-week-grid-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.scheduler-week-cell {
  position: relative;
  min-height: 52px;
  padding: 3px;
  border-right: 1px solid #edf1f8;
  background: #fbfcff;
  display: grid;
  gap: 3px;
  align-content: start;
}

.scheduler-card {
  overflow: auto;
}

.scheduler-shell .scheduler-board {
  width: max-content;
  transform: scale(var(--scheduler-scale));
  transform-origin: top left;
}

.scheduler-shell .scheduler-card {
  min-height: calc((760px * var(--scheduler-scale)) + 24px);
}

.scheduler-week-cell:last-child {
  border-right: 0;
}

.scheduler-cell-add {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  border-radius: 999px;
  color: #2f66ff;
  background: #fff;
  border: 1px solid #cfe0ff;
  font-size: 0.9rem;
  font-weight: 900;
  opacity: 0;
  transform: translate(50%, -50%);
  transition: opacity 120ms ease, background 120ms ease;
}

.scheduler-week-cell:hover .scheduler-cell-add,
.scheduler-grid-row:hover .scheduler-cell-add {
  opacity: 1;
}

.scheduler-cell-add:focus-visible {
  opacity: 1;
  outline: 2px solid #2f66ff;
}

.scheduler-week-availability {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  border-radius: 0;
  background: #ffeff0;
  color: #f06774;
  text-align: center;
  border: 1px solid #ffd7db;
}

.scheduler-week-availability strong,
.scheduler-week-availability span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
}

.scheduler-week-shift {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 16px 10px;
  align-items: stretch;
  gap: 2px;
  min-height: 43px;
  padding: 3px 4px;
  border-radius: 6px;
  border: 1.5px solid #4575d3;
  text-align: left;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 8px 18px rgba(50, 86, 150, 0.08);
}

.scheduler-conflict-indicator {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 8;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #f04452;
  box-shadow: 0 3px 10px rgba(180, 35, 46, 0.28);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  cursor: help;
}

.scheduler-conflict-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  z-index: 40;
  width: 210px;
  display: none;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #ffd0d5;
  border-radius: 12px;
  color: #26354d;
  background: #fff;
  box-shadow: 0 14px 32px rgba(42, 55, 82, 0.2);
  text-align: left;
  pointer-events: none;
}

.scheduler-conflict-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-left: 1px solid #ffd0d5;
  border-top: 1px solid #ffd0d5;
  background: #fff;
  transform: rotate(45deg);
}

.scheduler-conflict-tooltip > strong {
  color: #b4232e;
  font-size: 0.74rem;
}

.scheduler-conflict-tooltip > span {
  display: grid;
  gap: 2px;
  color: #67758c;
  font-size: 0.68rem;
  font-weight: 600;
}

.scheduler-conflict-tooltip b {
  color: #26354d;
}

.scheduler-conflict-indicator:hover .scheduler-conflict-tooltip,
.scheduler-conflict-indicator:focus-visible .scheduler-conflict-tooltip {
  display: grid;
}

.scheduler-week-shift-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  align-content: center;
}

.scheduler-week-shift-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scheduler-week-shift.is-published {
  color: #fff;
  background: #4d7fd4;
}

.scheduler-week-shift.is-pending {
  color: #8a5a00;
  background: #fff;
  border-color: #efc66e;
  box-shadow: inset 0 0 0 1px rgba(239, 198, 110, 0.22);
}

.scheduler-week-shift.is-draft {
  color: #3b4a62;
  background: #fff;
  border-color: #7382b1;
}

.scheduler-week-shift-copy strong,
.scheduler-week-shift-copy span,
.scheduler-week-shift-copy small {
  display: block;
}

.scheduler-week-shift-copy span,
.scheduler-week-shift-copy small {
  font-size: 0.56rem;
  opacity: 0.92;
}

.scheduler-week-shift-copy strong {
  font-size: 0.63rem;
  font-weight: 650;
}

.scheduler-day-summary {
  min-width: calc(var(--scheduler-side-width) + var(--scheduler-grid-width));
  min-height: 38px;
  display: grid;
  grid-template-columns: var(--scheduler-side-width) repeat(4, minmax(130px, 1fr));
  align-items: center;
  border-bottom: 1px solid #edf1f8;
  color: #718099;
  background: #fbfcfe;
  font-size: 0.7rem;
}

.scheduler-day-summary strong,
.scheduler-day-summary span {
  padding: 0 12px;
  font-weight: 560;
}

.scheduler-day-summary span {
  border-left: 1px solid #edf1f8;
}

.scheduler-day-summary b {
  margin-left: 5px;
  color: #293750;
  font-weight: 650;
}


.scheduler-side-info-row {
  min-width: calc(var(--scheduler-side-width) + var(--scheduler-grid-width, calc(7 * var(--scheduler-week-column-width))));
  min-height: 36px;
  display: flex;
  border-top: 1px solid #f1f4fa;
}

.scheduler-side-info {
  width: var(--scheduler-side-width);
  min-width: var(--scheduler-side-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-right: 1px solid #edf1f8;
  color: #56667c;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

.scheduler-week-summary {
  min-width: calc(var(--scheduler-side-width) + var(--scheduler-grid-width, calc(7 * var(--scheduler-week-column-width))));
  display: grid;
  grid-template-columns: var(--scheduler-side-width) repeat(6, minmax(150px, 1fr));
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
  border-top: 1px solid #e7edf7;
  background: #fff;
  color: #69778d;
  font-size: 0.72rem;
}

.scheduler-week-summary strong,
.scheduler-week-summary span {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f6f7f9;
}

.scheduler-week-summary strong {
  justify-content: flex-start;
  background: transparent;
}

.scheduler-week-summary .has-cost-warning {
  color: #9a5d00;
  background: #fff6df;
}

.scheduler-month-board {
  min-width: 980px;
  background: #fff;
}

.scheduler-month-weekdays,
.scheduler-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(138px, 1fr));
}

.scheduler-month-weekdays {
  border-bottom: 1px solid #e7edf7;
  color: #5d6c81;
  background: #fbfcfe;
  font-size: 0.72rem;
  font-weight: 620;
  text-align: center;
}

.scheduler-month-weekday {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-right: 1px solid #edf1f8;
}

.scheduler-month-cell {
  position: relative;
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 5px;
  border-right: 1px solid #edf1f8;
  border-bottom: 1px solid #edf1f8;
  background: #fff;
}

.scheduler-month-cell:nth-child(7n) {
  border-right: 0;
}

.scheduler-month-cell.is-outside {
  background: #fafbfd;
}

.scheduler-month-cell.is-outside > :not(.scheduler-month-date) {
  opacity: 0.58;
}

.scheduler-month-date {
  justify-self: end;
  min-width: 28px;
  min-height: 24px;
  padding: 0 5px;
  border: 0;
  border-radius: 7px;
  color: #5e6d82;
  background: transparent;
  font-size: 0.72rem;
}

.scheduler-month-date:hover,
.scheduler-month-date:focus-visible {
  color: #155fd6;
  background: #edf5ff;
}

.scheduler-month-unavailable {
  min-height: 20px;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  color: #e64c5b;
  background: #ffeaed;
  font-size: 0.58rem;
  font-weight: 620;
}

.scheduler-month-shift {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 25px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid #4d7fd4;
  border-radius: 4px;
  color: #fff;
  background: #4d7fd4;
  text-align: left;
  cursor: pointer;
}

.scheduler-month-shift.has-conflict {
  border-color: #f04452;
  box-shadow: 0 0 0 2px rgba(240, 68, 82, 0.16);
}

.scheduler-month-shift.has-conflict i {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #f04452;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
}

.scheduler-month-shift strong,
.scheduler-month-shift span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.57rem;
  font-weight: 560;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheduler-month-shift strong {
  font-weight: 680;
}

.scheduler-month-shift.is-manager.is-published {
  border-color: #59457e;
  background: #59457e;
}

.scheduler-month-shift.is-draft,
.scheduler-month-shift.is-pending {
  color: #3b4a62;
  background: #fff;
}

.scheduler-month-shift.is-manager.is-draft,
.scheduler-month-shift.is-manager.is-pending {
  border-color: #59457e;
}

.scheduler-month-more {
  justify-self: end;
  padding: 3px 5px;
  border: 0;
  color: #1683ec;
  background: transparent;
  font-size: 0.58rem;
}

.scheduler-month-add {
  top: 4px;
  left: 4px;
  right: auto;
}

.scheduler-month-cell:hover .scheduler-month-add {
  opacity: 1;
}

.scheduler-month-board .scheduler-week-summary {
  min-width: 980px;
  grid-template-columns: 170px repeat(6, minmax(120px, 1fr));
}

.scheduler-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.shift-drawer-shell {
  display: grid;
  gap: 14px;
}

.shift-drawer-tabs {
  display: flex;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8edf7;
}

.shift-drawer-tab {
  border: 0;
  background: transparent;
  padding: 0;
  color: #7c8ca5;
  font-size: 0.86rem;
  font-weight: 600;
}

.shift-drawer-tab.is-active {
  color: #2f66ff;
}

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

.shift-drawer-stat {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fbff;
  display: grid;
  align-content: center;
}

.shift-drawer-stat span {
  color: #7c8ca5;
  font-size: 0.78rem;
  font-weight: 700;
}

.shift-drawer-stat strong {
  color: #22324a;
  font-size: 0.95rem;
}

.shift-drawer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #4d76de;
  font-size: 0.8rem;
  font-weight: 600;
}

.scheduler-warning {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #b4232e;
  background: #fff0f1;
  border: 1px solid #ffc8cf;
  font-size: 0.78rem;
  font-weight: 800;
}

.scheduler-warning.is-clear {
  color: #217a55;
  background: #ecfff6;
  border-color: #bcefd7;
}

.publish-conflict-intro {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid #ffc8cf;
  border-radius: 14px;
  color: #7d2630;
  background: #fff4f5;
}

.publish-conflict-intro span,
.publish-conflict-footnote {
  color: #6f7d91;
  font-size: 0.8rem;
  line-height: 1.45;
}

.publish-conflict-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: min(48vh, 440px);
  overflow: auto;
}

.publish-conflict-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr);
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f2;
  border-left: 4px solid #f04452;
  border-radius: 12px;
  background: #fff;
}

.publish-conflict-row > div,
.publish-conflict-row li {
  display: grid;
  gap: 3px;
}

.publish-conflict-row > div span,
.publish-conflict-row li span {
  color: #718099;
  font-size: 0.74rem;
}

.publish-conflict-row ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publish-conflict-row li b {
  color: #b4232e;
  font-size: 0.76rem;
}

.publish-conflict-footnote {
  margin: 12px 0 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 620;
}

.filter-row input,
.filter-row select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.inline-week-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-week-switch input {
  min-width: 220px;
}

.timesheet-period-card {
  display: grid;
  gap: 14px;
}

.timesheet-period-head,
.timesheet-employee-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timesheet-period-head h3 {
  margin: 4px 0 0;
  font-size: 1.4rem;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.timesheet-employee-strip {
  padding-top: 4px;
  border-top: 1px solid #ebf0f8;
  color: #61748d;
}

.timesheet-employee-strip span {
  display: inline-flex;
  gap: 6px;
}

.dense-timesheet-table th,
.dense-timesheet-table td {
  text-align: center;
  white-space: nowrap;
}

.timesheet-review-table-card {
  overflow: auto;
}

.timesheet-overview {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(115px, 0.62fr)) auto;
  gap: 1px;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid #d7eadf;
  border-radius: 16px;
  background: #d7eadf;
  box-shadow: 0 8px 22px rgba(24, 75, 61, 0.05);
}

.timesheet-overview-main,
.timesheet-overview-stat,
.timesheet-overview-legend {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  background: #ffffff;
}

.timesheet-overview-main {
  background: linear-gradient(105deg, #e7fbf2, #f5fffa);
}

.timesheet-overview-main .eyebrow {
  margin: 0;
  color: #13815d;
}

.timesheet-overview-main strong {
  color: #173b33;
  font-size: 1rem;
  font-weight: 700;
}

.timesheet-overview-main span,
.timesheet-overview-stat span {
  color: #698177;
  font-size: 0.76rem;
  font-weight: 520;
}

.timesheet-overview-stat strong {
  color: #1e354d;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.timesheet-overview-stat.is-warning {
  background: #fff9eb;
}

.timesheet-overview-stat.is-warning strong {
  color: #b66a08;
}

.timesheet-overview-legend {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: end;
  gap: 11px;
  min-width: 275px;
  background: #fbfdff;
  color: #63788f;
  font-size: 0.72rem;
  font-weight: 600;
}

.timesheet-overview-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.timesheet-overview-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.timesheet-table-tools {
  position: relative;
  display: grid;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 620;
}

.timesheet-column-picker {
  position: relative;
}

.timesheet-column-picker summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 560;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.timesheet-column-picker summary::-webkit-details-marker {
  display: none;
}

.timesheet-column-picker[open] summary {
  border-color: rgba(47, 128, 237, 0.42);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.08);
}

.timesheet-columns-icon {
  color: var(--blue-deep);
  font-size: 1rem;
}

.timesheet-column-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 248px;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 35, 56, 0.18);
}

.timesheet-column-menu-head {
  display: grid;
  gap: 2px;
  padding: 3px 5px 9px;
  border-bottom: 1px solid #edf2f8;
}

.timesheet-column-menu-head small {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 450;
}

.timesheet-column-menu label {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  border-radius: 8px;
  color: #40546d;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.timesheet-column-menu label:hover {
  background: #f5f9fe;
}

.timesheet-column-menu input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.timesheet-compact-option {
  margin-top: 4px;
  padding-top: 8px !important;
  border-top: 1px solid #edf2f8;
}

.timesheet-column-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding-top: 7px;
}

.timesheet-column-menu-actions button {
  min-height: 32px;
  border: 1px solid #cfe0f2;
  border-radius: 9px;
  background: #f7fbff;
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 600;
}

.timesheet-review-table th,
.timesheet-review-table td {
  text-align: center;
  white-space: nowrap;
}

.timesheet-review-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #667b93;
  background: #f7faff;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timesheet-day-cell {
  position: relative;
  min-width: 68px;
  padding: 7px 6px !important;
  background: #fff;
}

.timesheet-day-cell.is-empty {
  min-width: 52px;
  background: #fff;
}

.timesheet-day-value {
  display: inline-flex;
  min-width: 50px;
  border: 0;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 7px;
  color: #557263;
  background: #e6f8f0;
  font-size: 0.76rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.timesheet-day-value:hover,
.timesheet-day-value:focus-visible {
  outline: 2px solid rgba(40, 117, 232, 0.65);
  outline-offset: 2px;
  filter: brightness(0.97);
}

.timesheet-day-cell.is-short-shift .timesheet-day-value,
.timesheet-overview-legend .is-short-shift {
  color: #7c6321;
  background: #fff3cc;
}

.timesheet-day-cell.is-break-eligible .timesheet-day-value,
.timesheet-overview-legend .is-break-eligible {
  color: #167957;
  background: #c7f1df;
}

.timesheet-day-cell.is-exception .timesheet-day-value,
.timesheet-overview-legend .is-exception {
  color: #c53d4b;
  background: #ffe1e4;
}

.timesheet-day-alert {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  border: 0;
  background: #e65862;
  font-size: 0.61rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.timesheet-day-alert:hover,
.timesheet-day-alert:focus-visible {
  outline: 2px solid #9f2631;
  outline-offset: 1px;
  transform: scale(1.08);
}

.timesheet-review-table-card.is-compact th,
.timesheet-review-table-card.is-compact td {
  padding: 8px 10px;
  font-size: 0.78rem;
}

.timesheet-review-table-card.is-compact .timesheet-day-cell {
  padding: 5px 4px !important;
}

.timesheet-review-table-card.is-compact .timesheet-day-value {
  min-width: 44px;
  padding: 4px 5px;
  font-size: 0.71rem;
}

.timesheet-review-table th:first-child,
.timesheet-review-table td:first-child,
.timesheet-review-table .timesheet-title-column {
  text-align: left;
}

.timesheet-staff-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #18385e;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.timesheet-staff-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2f80ed 0%, #49a8ff 100%);
  font-size: 0.68rem;
  font-weight: 800;
  position: relative;
}

.timesheet-staff-avatar img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  object-fit: cover;
}

.timesheet-staff-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.timesheet-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.timesheet-detail-summary > span {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #f7fbff;
}

.timesheet-detail-summary small {
  color: #7890aa;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.timesheet-detail-summary strong {
  color: #1d2e47;
  font-size: 0.94rem;
}

.timesheet-entry-detail-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timesheet-issue-panel,
.timesheet-clear-panel {
  padding: 15px 17px;
  border: 1px solid #f5c7cd;
  border-radius: 14px;
  color: #8e3340;
  background: #fff6f7;
}

.timesheet-issue-panel h3,
.timesheet-clear-panel h3 {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.timesheet-issue-panel ul {
  margin: 0;
  padding-left: 18px;
}

.timesheet-issue-panel li + li {
  margin-top: 6px;
}

.timesheet-clear-panel {
  border-color: #ccebdc;
  color: #257356;
  background: #f2fbf6;
}

.timesheet-clear-panel p {
  margin: 0;
}

.timesheet-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 12px;
}

.timesheet-detail-heading h3,
.timesheet-detail-section h3 {
  margin: 0;
  color: #1b2c45;
  font-size: 1rem;
}

.timesheet-detail-heading p {
  margin: 5px 0 0;
  color: #6c829a;
  font-size: 0.82rem;
}

.break-rule-note {
  flex: none;
  padding: 7px 10px;
  border-radius: 999px;
  color: #9b5d07;
  background: #fff6df;
  font-size: 0.74rem;
  font-weight: 800;
}

.timesheet-entry-table-wrap {
  overflow: auto;
  border: 1px solid #dce6f2;
  border-radius: 16px;
}

.timesheet-entry-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.timesheet-entry-table th {
  padding: 11px 12px;
  color: #71849c;
  background: #f4f8fd;
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.timesheet-entry-table td {
  padding: 10px 12px;
  border-top: 1px solid #e5edf6;
  color: #334963;
  font-size: 0.82rem;
  vertical-align: middle;
}

.timesheet-entry-row.has-break-warning td {
  background: #fff9ed;
}

.timesheet-entry-table td small {
  display: block;
  margin-top: 3px;
  color: #8192a7;
  font-size: 0.7rem;
}

.timesheet-entry-table input {
  min-height: 35px;
  padding: 6px 8px;
  border: 1px solid #d4e2f1;
  border-radius: 9px;
  background: #fff;
  color: #20324b;
  font: inherit;
}

.timesheet-entry-table input[type="number"] {
  width: 76px;
}

.break-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.break-status.is-met {
  color: #187557;
  background: #e2f8ee;
}

.break-status.is-missing {
  color: #b26a0b;
  background: #fff0d6;
}

.timesheet-detail-section {
  margin-top: 20px;
}

.timesheet-detail-section .activity-list {
  margin-top: 10px;
}

.empty-cell {
  padding: 28px !important;
  color: #8192a7 !important;
  text-align: center;
}

@media (max-width: 1180px) {
  .desktop-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .workspace-grid,
  .hero-card,
  .split-panels,
  .profile-layout,
  .manager-bottom {
    grid-template-columns: 1fr;
  }

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

  .manager-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-month-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    width: 240px;
  }

  .manager-search {
    width: 240px;
  }

  .scheduler-topbar {
    align-items: start;
  }

  .is-admin-schedule-route .scheduler-topbar {
    grid-template-columns: 1fr;
  }

  .is-admin-schedule-route .scheduler-header-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .desktop-auth-card,
  .desktop-auth-card.is-focused-flow {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .desktop-auth-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

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

  .sidebar {
    position: static;
    height: auto;
  }

  .workspace {
    padding: 18px;
  }

  .topbar,
  .role-panel,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
  }

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

  .manager-kpis {
    grid-template-columns: 1fr;
  }

  .manager-hero {
    flex-direction: column;
  }

  .manager-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .manager-search {
    width: 100%;
  }
}
