:root {
  --bg: #edf6f4;
  --bg-alt: #f8fbfb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --ink: #1b3541;
  --muted: #69808a;
  --line: rgba(19, 61, 75, 0.11);
  --line-strong: rgba(19, 61, 75, 0.18);
  --teal-900: #0d4152;
  --teal-800: #0f6674;
  --teal-700: #1d7f8f;
  --teal-500: #57a7b1;
  --blue-500: #5d8ff3;
  --green-500: #2aa36e;
  --amber-500: #d28b35;
  --danger: #d25b57;
  --sand-600: #ab9166;
  --sand-300: #ece0d0;
  --glass-shadow: 0 22px 50px rgba(30, 68, 79, 0.10);
  --soft-shadow: 0 14px 30px rgba(24, 62, 73, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body {
  line-height: 1.5;
}

body.workspace-body {
  background:
    radial-gradient(circle at top right, rgba(167, 144, 210, 0.16), transparent 22%),
    radial-gradient(circle at 5% 0%, rgba(97, 181, 176, 0.16), transparent 18%),
    linear-gradient(180deg, #eff8f6 0%, #edf5f4 46%, #f4f7fb 100%);
}

body.workspace-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 61, 73, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 61, 73, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 78%);
  pointer-events: none;
}

body.login-page-body {
  background: #0b2531;
}

body.login-page-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 22, 31, 0.42), rgba(9, 37, 48, 0.82)),
    radial-gradient(circle at 18% 10%, rgba(71, 152, 165, 0.25), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(166, 139, 99, 0.18), transparent 28%),
    url('mountain-bg.jpg') center/cover no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(30, 127, 143, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 127, 143, 0.12);
}

input[disabled], select[disabled], textarea[disabled] {
  background: rgba(236, 242, 242, 0.82);
  color: #8b9aa0;
  cursor: not-allowed;
}

label {
  display: grid;
  gap: 0.48rem;
  font-weight: 600;
}

label span {
  font-size: 0.94rem;
}

ul, ol {
  margin: 0;
  padding-left: 1.1rem;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sand-600);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(18, 102, 116, 0.1);
  color: var(--teal-800);
  font-size: 0.84rem;
  font-weight: 700;
}

.section-chip--dark {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
}


.active-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
}

.button-stack--row {
  flex-wrap: wrap;
}

.section-note--left {
  text-align: left;
}

.panel, .metric-card, .user-pill, .sidebar-note, .workspace-header, .sticky-action-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.panel {
  border-radius: var(--radius-xl);
}

.panel--soft {
  background: rgba(255, 255, 255, 0.82);
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 0;
}

.panel__header--tight {
  padding-bottom: 0.2rem;
}

.panel__subcopy, .hero-subtitle, .hero-blurb, .metric-card__note, .section-note, .workspace-subtitle, .user-pill__role {
  color: var(--muted);
}

.workspace-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  position: relative;
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 20px 22px;
  border-radius: 30px;
  background: rgba(247, 251, 251, 0.72);
  border: 1px solid rgba(18, 61, 73, 0.08);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px 18px;
}

.sidebar-brand__mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14, 82, 94, 0.12), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(14, 82, 94, 0.1);
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sidebar-brand__copy {
  display: grid;
  gap: 0.1rem;
}

.sidebar-brand__copy strong {
  font-size: 1.08rem;
}

.sidebar-brand__copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: var(--muted);
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.sidebar-link:hover {
  background: rgba(15, 102, 116, 0.08);
  color: var(--ink);
  transform: translateX(2px);
}

.sidebar-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  box-shadow: 0 14px 28px rgba(15, 102, 116, 0.24);
}

.sidebar-link__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(14, 82, 94, 0.08);
  flex-shrink: 0;
}

.sidebar-link.is-active .sidebar-link__icon {
  background: rgba(255, 255, 255, 0.14);
}

.sidebar-link__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.sidebar-note {
  margin-top: auto;
  padding: 1rem 1rem 1.05rem;
  border-radius: 24px;
}

.sidebar-note p {
  margin: 0;
  font-weight: 800;
}

.sidebar-note span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.workspace-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.workspace-header {
  border-radius: 28px;
  padding: 1.2rem 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 24px;
  z-index: 15;
}

.workspace-title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.75rem, 2.2vw, 2.4rem);
  line-height: 1.04;
}

.workspace-subtitle {
  margin: 0.45rem 0 0;
  max-width: 64ch;
}

.workspace-header__actions,
.hero-actions,
.panel__actions,
.inline-actions,
.form-actions,
.toolbar__left,
.toolbar__right,
.button-stack,
.review-action-row,
.topbar-actions,
.topbar-nav,
.user-pill,
.table-actions,
.admin-user-actions,
.status-legend,
.hero-preview__steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-pill {
  padding: 0.42rem 0.65rem 0.42rem 0.42rem;
  border-radius: 999px;
}

.user-pill__avatar {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand-600), #c3aa7f);
  color: #ffffff;
  font-weight: 800;
}

.user-pill__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.user-pill__role {
  margin: 0.06rem 0 0;
  font-size: 0.8rem;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  box-shadow: 0 14px 26px rgba(15, 102, 116, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 61, 73, 0.1);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(18, 61, 73, 0.12);
}

.btn-ghost--light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-accent {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sand-600), #c0a27b);
  box-shadow: 0 14px 24px rgba(171, 145, 102, 0.24);
}

.btn-sm {
  padding: 0.72rem 0.95rem;
  font-size: 0.93rem;
}

.btn-lg {
  padding: 0.95rem 1.15rem;
}

.btn-login-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #173a4c, #0f6071);
}

.btn-login-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.page {
  display: grid;
  gap: 22px;
}

.portal-hero,
.hero-card,
.section-block,
.toolbar,
.timesheet-hero,
.sticky-action-bar {
  padding: 1.45rem;
}

.portal-hero,
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.85fr);
  gap: 1.2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(247, 252, 252, 0.75)),
    radial-gradient(circle at right top, rgba(88, 168, 170, 0.12), transparent 35%);
}

.hero-title {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.95rem, 2.9vw, 2.85rem);
  line-height: 1.02;
}

.hero-subtitle, .hero-blurb {
  margin: 0;
}

.hero-blurb {
  margin-top: 0.85rem;
  max-width: 62ch;
}

.hero-aside,
.timesheet-hero-card__aside,
.dashboard-side-stack,
.hero-preview {
  display: grid;
  gap: 1rem;
}

.hero-preview__card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 102, 116, 0.12), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(18, 61, 75, 0.08);
}

.hero-preview__card--soft {
  background: rgba(255, 255, 255, 0.86);
}

.hero-preview__label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sand-600);
}

.hero-preview__steps {
  flex-wrap: wrap;
}

.hero-preview__steps span {
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 61, 75, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.metric-card {
  padding: 1.1rem 1.15rem;
  border-radius: 24px;
}

.metric-card__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.metric-card__value {
  margin: 0.5rem 0 0.15rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.accent-card {
  background: linear-gradient(135deg, rgba(171, 145, 102, 0.18), rgba(255, 255, 255, 0.92));
}

.dashboard-metrics-grid,
.timesheet-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timesheet-summary-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.timesheet-month-panel {
  padding: 0 0 1.2rem;
}

.timesheet-month-panel__header {
  padding-bottom: 0.95rem;
}

.timesheet-month-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.month-input-wrap--compact input {
  min-width: 170px;
}

.timesheet-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 1.35rem 1rem;
}

.timesheet-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 61, 73, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-weight: 700;
}

.timesheet-status-chip strong {
  font-size: 0.94rem;
}

.timesheet-status-chip__dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.timesheet-status-chip.is-draft {
  color: #7b8488;
  background: linear-gradient(180deg, rgba(246, 247, 245, 0.98), rgba(237, 240, 236, 0.95));
}

.timesheet-status-chip.is-submitted {
  color: #3f6fcd;
  background: rgba(93, 143, 243, 0.14);
}

.timesheet-status-chip.is-approved {
  color: #228358;
  background: rgba(42, 163, 110, 0.14);
}

.timesheet-status-chip.is-returned {
  color: #a66a1a;
  background: rgba(210, 139, 53, 0.16);
}

.timesheet-month-board {
  padding: 0 1.35rem 0.1rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.timesheet-month-board__weekday {
  padding: 0.35rem 0.2rem 0.15rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timesheet-month-board__blank {
  min-height: 1rem;
}

.timesheet-month-day {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.78rem 0.82rem 0.9rem;
  border-radius: 24px;
  border: 1px solid rgba(18, 61, 73, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 24px rgba(18, 61, 73, 0.05);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.timesheet-month-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(18, 61, 73, 0.12);
}

.timesheet-month-day.is-selected {
  border-color: rgba(15, 102, 116, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 102, 116, 0.12), 0 20px 38px rgba(18, 61, 73, 0.14);
}

.timesheet-month-day.is-draft {
  background: linear-gradient(180deg, rgba(249, 250, 248, 0.98), rgba(238, 241, 237, 0.96));
  color: #6a757a;
}

.timesheet-month-day.is-submitted {
  background: linear-gradient(180deg, rgba(233, 241, 255, 0.98), rgba(220, 233, 255, 0.96));
  color: #315fbb;
}

.timesheet-month-day.is-approved {
  background: linear-gradient(180deg, rgba(233, 249, 241, 0.98), rgba(217, 243, 227, 0.96));
  color: #1f7c52;
}

.timesheet-month-day.is-returned {
  background: linear-gradient(180deg, rgba(255, 244, 228, 0.98), rgba(251, 236, 213, 0.96));
  color: #a16015;
}

.timesheet-month-day.is-empty {
  opacity: 0.96;
}

.timesheet-month-day__accent {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
}

.timesheet-month-day__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.timesheet-month-day__number {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.timesheet-month-day__selected {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  background: rgba(15, 53, 63, 0.1);
  color: #10353f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timesheet-month-day__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.timesheet-month-day__status-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: currentColor;
}

.timesheet-month-day__hours {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.92;
}

.dashboard-grid,
.employee-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.action-grid {
  display: grid;
  gap: 1rem;
}

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

.action-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.action-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(18, 61, 73, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: left;
}

.action-card--primary {
  background: linear-gradient(135deg, rgba(15, 102, 116, 0.16), rgba(255, 255, 255, 0.9));
}

.action-card--muted {
  background: linear-gradient(135deg, rgba(239, 244, 244, 0.96), rgba(248, 250, 251, 0.98));
}

.action-card.is-locked,
.action-card.is-disabled {
  opacity: 0.72;
}

.action-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(15, 102, 116, 0.1);
  color: var(--teal-800);
  flex-shrink: 0;
}

.action-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.permission-grid--stack {
  grid-template-columns: 1fr;
}

.permission-card {
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(18, 61, 73, 0.08);
}

.permission-card h4 {
  margin: 0;
}

.permission-card ul {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.52rem;
  color: var(--muted);
}

.note-panel__body {
  padding: 0 1.5rem 1.4rem;
}

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

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
}

.search-field svg {
  position: absolute;
  left: 0.9rem;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.search-field input {
  padding-left: 2.45rem;
}

.table-shell {
  overflow: auto;
  padding: 0.95rem 1.1rem 1.15rem;
}

.compact-table-shell {
  max-height: 430px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(18, 61, 73, 0.08);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(245, 249, 249, 0.96);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.77rem;
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--teal-800);
  text-align: left;
}

.link-btn:hover {
  text-decoration: underline;
}

.status-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 108px;
  padding: 0.56rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.status-pill::before {
  content: '';
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.52);
  flex: 0 0 auto;
}

.status-badge--draft {
  background: linear-gradient(180deg, rgba(243, 247, 248, 0.98), rgba(234, 240, 241, 0.92));
  color: #5f7881;
  border-color: rgba(118, 136, 144, 0.16);
}

.status-badge--submitted,
.calendar-day.is-submitted {
  background: rgba(93, 143, 243, 0.14);
  color: #3f6fcd;
}

.status-badge--approved,
.calendar-day.is-approved {
  background: rgba(42, 163, 110, 0.14);
  color: #228358;
}

.status-badge--returned,
.calendar-day.is-returned {
  background: rgba(210, 139, 53, 0.16);
  color: #a66a1a;
}

.status-pill--active {
  background: linear-gradient(180deg, rgba(238, 251, 246, 0.98), rgba(226, 244, 236, 0.96));
  color: #228358;
  border-color: rgba(42, 163, 110, 0.16);
}

.status-pill--inactive {
  background: linear-gradient(180deg, rgba(252, 242, 242, 0.98), rgba(248, 233, 233, 0.96));
  color: var(--danger);
  border-color: rgba(210, 91, 87, 0.16);
}

.summary-content {
  padding: 0 1.45rem 1.45rem;
}

.summary-grid {
  display: grid;
  gap: 0.9rem;
}

.summary-stat {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(247, 251, 251, 0.9);
  border: 1px solid rgba(18, 61, 73, 0.08);
}

.summary-stat strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 0.3rem;
}

.summary-list {
  display: grid;
  gap: 0.55rem;
}

.summary-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0.9rem;
  border-radius: 14px;
  background: rgba(247, 251, 251, 0.9);
}

.summary-empty {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(247, 251, 251, 0.88);
  color: var(--muted);
  border: 1px dashed rgba(18, 61, 73, 0.12);
}

.distribution-wrap {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.45rem 1.45rem;
}

.distribution-chart {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--teal-700) 0 var(--client-deg), rgba(93, 143, 243, 0.18) var(--client-deg) 360deg);
  position: relative;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.76);
}

.distribution-chart::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.distribution-copy {
  display: grid;
  gap: 0.65rem;
}

.distribution-legend {
  font-size: 0.94rem;
  color: var(--muted);
}

.distribution-total {
  font-weight: 700;
}

.dot {
  width: 0.72rem;
  height: 0.72rem;
  display: inline-block;
  border-radius: 50%;
  margin-right: 0.42rem;
}

.dot--client {
  background: var(--teal-700);
}

.dot--internal {
  background: rgba(93, 143, 243, 0.55);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.date-input-wrap input,
.month-input-wrap input {
  min-width: 170px;
}

.timesheet-entry-card {
  overflow: hidden;
}

.timesheet-table {
  min-width: 960px;
}

.timesheet-col-time { width: 17rem; }
.timesheet-col-client { width: 24%; }
.timesheet-col-task { width: 30%; }
.timesheet-col-lf { width: 5.75rem; }
.timesheet-col-notes { width: 22%; }

.time-slot-cell {
  width: 17rem;
  min-width: 17rem;
}

.time-slot-text {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timesheet-input,
.timesheet-notes {
  min-width: 200px;
}

.client-cell-wrap,
.notes-cell-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
}

.client-cell-wrap .timesheet-input,
.notes-cell-wrap .timesheet-notes {
  flex: 1 1 auto;
  min-width: 0;
}

.client-clear-btn,
.row-clear-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 61, 73, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 1.1rem;
}

.client-clear-btn:hover,
.row-clear-btn:hover,
.icon-btn:hover {
  color: var(--danger);
  border-color: rgba(210, 91, 87, 0.32);
}

.client-clear-btn.is-empty {
  opacity: 0.7;
}

.checkbox-cell {
  text-align: center;
}

.lf-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-cell input {
  width: 1.05rem;
  height: 1.05rem;
}

.lf-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(15, 102, 116, 0.1);
  color: var(--teal-800);
  font-size: 0.76rem;
  font-weight: 800;
}

.task-multi {
  position: relative;
  min-width: 220px;
}

.task-multi__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.82rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.task-multi__trigger:hover,
.task-multi__trigger:focus-visible {
  border-color: rgba(30, 127, 143, 0.45);
  box-shadow: 0 0 0 4px rgba(30, 127, 143, 0.1);
}

.task-multi__label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.task-multi__label.is-placeholder {
  color: #80939a;
}

.task-multi__caret {
  color: var(--muted);
  flex: 0 0 auto;
}

.task-multi__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: 18rem;
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid rgba(18, 61, 73, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--glass-shadow);
  z-index: 20;
}

.task-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  font-weight: 500;
}

.task-option:hover {
  background: rgba(15, 102, 116, 0.06);
}

.task-option input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  flex: 0 0 auto;
}

.task-multi.is-disabled .task-multi__trigger {
  background: rgba(236, 242, 242, 0.82);
  color: #8a9aa1;
  cursor: not-allowed;
}

.sticky-action-bar {
  position: sticky;
  bottom: 18px;
  z-index: 12;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 24px;
}

.schedule-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.84rem;
  border-radius: 999px;
  background: rgba(15, 102, 116, 0.08);
  font-weight: 700;
}

.calendar-weekday {
  padding: 0.55rem 0.35rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
}

.employee-calendar-grid {
  padding: 0.2rem 1.3rem 1.35rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.calendar-spacer {
  min-height: 1rem;
}

.calendar-day {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 61, 73, 0.1);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.calendar-day.is-selected {
  border-color: rgba(15, 102, 116, 0.22);
  box-shadow: 0 0 0 3px rgba(15, 102, 116, 0.12), 0 18px 32px rgba(18, 61, 73, 0.12);
  transform: translateY(-2px);
}

.calendar-day.is-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.68);
  pointer-events: none;
}

.calendar-day.is-selected .calendar-day__number {
  color: var(--teal-900);
}

.calendar-day.is-selected .calendar-day__hours {
  color: var(--ink);
  font-weight: 700;
}

.calendar-day.is-draft {
  background: rgba(255, 255, 255, 0.84);
}

.calendar-day.is-empty {
  opacity: 0.9;
}

.calendar-day__number {
  font-weight: 800;
  font-size: 1.15rem;
}

.calendar-day__status,
.calendar-day__hours {
  font-size: 0.84rem;
  color: var(--muted);
}

.status-legend-panel {
  padding: 0.85rem 1.2rem;
}

.status-legend {
  flex-wrap: wrap;
}

.status-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 61, 73, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-legend__swatch {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.status-legend__swatch.is-draft { background: #b8c4c8; }
.status-legend__swatch.is-submitted { background: var(--blue-500); }
.status-legend__swatch.is-approved { background: var(--green-500); }
.status-legend__swatch.is-returned { background: var(--amber-500); }

.employee-day-content {
  padding: 0 1.35rem 1.35rem;
}

.calendar-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.calendar-detail__header h3 {
  margin: 0;
}

.calendar-detail__header p,
.review-feedback-card__meta {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.calendar-detail__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.employee-review-actions {
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
}

.review-note-banner,
.review-note-empty,
.credentials-preview {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(248, 251, 251, 0.86);
  border: 1px solid rgba(18, 61, 73, 0.08);
}

.review-note-banner strong,
.credentials-preview strong {
  display: block;
  margin-bottom: 0.35rem;
}

.review-note-banner p,
.review-note-empty,
.credentials-preview,
.field-hint {
  margin: 0;
  color: var(--muted);
}

.review-note-field {
  margin-top: 1rem;
}

.review-entry-list {
  display: grid;
  gap: 0.85rem;
}

.review-entry-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0.95rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 61, 73, 0.08);
}

.review-entry-card.has-lf {
  border-color: rgba(93, 143, 243, 0.24);
}

.review-entry-time {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.78rem;
  border-radius: 18px;
  background: rgba(15, 102, 116, 0.08);
  font-weight: 800;
  text-align: center;
}

.review-entry-body h4 {
  margin: 0;
}

.review-entry-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.review-entry-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(112, 130, 140, 0.12);
  color: #607882;
  font-size: 0.82rem;
  font-weight: 800;
}

.review-entry-chip.is-lf {
  background: rgba(93, 143, 243, 0.14);
  color: #456dd7;
}

.review-entry-task,
.review-entry-note {
  margin: 0.42rem 0 0;
  color: var(--muted);
}

.admin-user-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  padding: 0 1.2rem 1.2rem;
}

.admin-user-list-card,
.admin-user-form-card {
  border-radius: 24px;
}

.admin-user-form-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 250, 0.92));
  border: 1px solid rgba(18, 61, 73, 0.08);
  box-shadow: 0 18px 34px rgba(18, 61, 73, 0.06);
}

.admin-user-form-card .panel__header {
  padding-bottom: 0.25rem;
}

.admin-user-form-card .stack-form {
  gap: 1rem;
  padding-top: 0.75rem;
}

.admin-user-form-card label {
  display: grid;
  gap: 0.5rem;
  padding: 0.92rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.98), rgba(244, 249, 249, 0.95));
  border: 1px solid rgba(18, 61, 73, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.admin-user-form-card label span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e848b;
}

.admin-user-form-card input,
.admin-user-form-card select {
  border-color: rgba(18, 61, 73, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-user-form-card input:focus,
.admin-user-form-card select:focus,
.admin-user-form-card textarea:focus {
  border-color: rgba(15, 102, 116, 0.28);
  box-shadow: 0 0 0 4px rgba(15, 102, 116, 0.1);
}

#admin-user-username,
#admin-user-pin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  letter-spacing: 0.02em;
}

.admin-user-form-card .inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

#generate-admin-user-pin-btn,
#copy-admin-user-credentials-btn {
  min-height: 3.1rem;
  justify-content: center;
  border-radius: 17px;
  border: 1px solid rgba(18, 61, 73, 0.08);
  background: linear-gradient(180deg, rgba(249, 252, 252, 0.98), rgba(240, 246, 246, 0.94));
  box-shadow: 0 12px 22px rgba(18, 61, 73, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: var(--teal-900);
}

#generate-admin-user-pin-btn:hover,
#copy-admin-user-credentials-btn:hover,
#generate-admin-user-pin-btn:focus-visible,
#copy-admin-user-credentials-btn:focus-visible {
  border-color: rgba(15, 102, 116, 0.18);
  box-shadow: 0 16px 26px rgba(18, 61, 73, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#generate-admin-user-pin-btn {
  color: var(--teal-800);
  background: linear-gradient(180deg, rgba(241, 251, 251, 0.99), rgba(229, 244, 244, 0.94));
}

#copy-admin-user-credentials-btn {
  color: #4f6972;
}

.admin-user-form-card .credentials-preview {
  background: linear-gradient(180deg, rgba(247, 250, 250, 0.98), rgba(238, 244, 244, 0.94));
  border-color: rgba(18, 61, 73, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.admin-user-form-card .form-actions {
  margin-top: 0.15rem;
}

#admin-user-save-btn {
  width: 100%;
  min-height: 3.35rem;
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(15, 102, 116, 0.18);
}

#user-form-reset-btn {
  border-radius: 16px;
}

.admin-account-table {
  min-width: 1120px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.admin-account-table thead th {
  background: transparent;
  border-bottom: none;
  padding: 0.25rem 0.9rem 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: #6d8288;
}

.admin-account-table th,
.admin-account-table td {
  vertical-align: middle;
}

.admin-account-table tbody td {
  padding: 1.05rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.94));
  border-top: 1px solid rgba(18, 61, 73, 0.08);
  border-bottom: 1px solid rgba(18, 61, 73, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-account-table tbody tr td:first-child {
  border-left: 1px solid rgba(18, 61, 73, 0.08);
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
}

.admin-account-table tbody tr td:last-child {
  border-right: 1px solid rgba(18, 61, 73, 0.08);
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
}

.admin-account-table tbody tr:hover td {
  background: linear-gradient(180deg, rgba(252, 253, 252, 0.99), rgba(244, 249, 249, 0.96));
  border-color: rgba(15, 102, 116, 0.12);
}

.admin-account-name-cell {
  min-width: 18rem;
}

.admin-account-id-cell {
  min-width: 15rem;
}

.admin-account-status-cell {
  text-align: center;
}

.admin-account-actions-col,
.admin-account-actions-cell {
  width: 31rem;
  min-width: 31rem;
}

.admin-account-table th:last-child,
.admin-account-table td:last-child {
  text-align: right;
}

.admin-user-actions-wrap {
  display: flex;
  justify-content: flex-end;
}

.admin-user-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
  max-width: 29.25rem;
  margin-left: auto;
  padding: 0.42rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 248, 248, 0.96), rgba(236, 243, 243, 0.92));
  border: 1px solid rgba(18, 61, 73, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.account-action-btn {
  --account-action-ink: var(--ink);
  --account-action-border: rgba(18, 61, 73, 0.12);
  appearance: none;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.78rem 0.92rem;
  border-radius: 17px;
  border: 1px solid var(--account-action-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 249, 0.94));
  box-shadow: 0 10px 18px rgba(18, 61, 73, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: var(--account-action-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.account-action-btn:hover,
.account-action-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(18, 61, 73, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.account-action-btn:focus-visible {
  outline: none;
}

.account-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 9px 16px rgba(18, 61, 73, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.account-action-btn__icon {
  width: 1.02rem;
  height: 1.02rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.account-action-btn__icon svg {
  width: 1.02rem;
  height: 1.02rem;
}

.account-action-btn__label {
  display: block;
  white-space: normal;
}

.account-action-btn--edit {
  --account-action-ink: var(--teal-800);
  --account-action-border: rgba(15, 102, 116, 0.18);
  background: linear-gradient(180deg, rgba(241, 251, 251, 0.99), rgba(229, 244, 244, 0.94));
}

.account-action-btn--copy {
  --account-action-ink: #4f6972;
  --account-action-border: rgba(84, 112, 122, 0.16);
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.99), rgba(239, 244, 245, 0.94));
}

.account-action-btn--reset {
  --account-action-ink: #7b581a;
  --account-action-border: rgba(211, 168, 96, 0.28);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.99), rgba(248, 235, 207, 0.95));
}

.account-action-btn--reset:hover,
.account-action-btn--reset:focus-visible {
  border-color: rgba(211, 168, 96, 0.38);
  box-shadow: 0 14px 24px rgba(161, 116, 43, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.admin-account-empty-state {
  text-align: center;
  color: var(--muted);
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.admin-user-avatar {
  width: 2.72rem;
  height: 2.72rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(15, 102, 116, 0.14), rgba(209, 163, 85, 0.28));
  border: 1px solid rgba(15, 102, 116, 0.08);
  color: var(--teal-900);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.admin-portal-id {
  display: inline-flex;
  align-items: center;
  padding: 0.56rem 0.82rem;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(246, 249, 249, 0.98), rgba(238, 243, 243, 0.94));
  border: 1px solid rgba(18, 61, 73, 0.08);
  color: var(--teal-900);
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.54rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 61, 73, 0.08);
  background: linear-gradient(180deg, rgba(246, 249, 249, 0.98), rgba(238, 243, 243, 0.94));
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-role-chip--employee {
  color: #315f73;
  border-color: rgba(49, 95, 115, 0.12);
  background: linear-gradient(180deg, rgba(243, 248, 250, 0.99), rgba(232, 241, 245, 0.95));
}

.admin-role-chip--supervisor {
  color: var(--teal-800);
  border-color: rgba(15, 102, 116, 0.14);
  background: linear-gradient(180deg, rgba(241, 251, 251, 0.99), rgba(228, 244, 244, 0.95));
}

.admin-role-chip--admin {
  color: #7b581a;
  border-color: rgba(211, 168, 96, 0.2);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.99), rgba(248, 237, 213, 0.95));
}

.admin-user-form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stack-form {
  display: grid;
  gap: 0.95rem;
  padding: 1rem 1.4rem 1.4rem;
}

.form-actions--stacked {
  flex-direction: column;
  align-items: stretch;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--muted);
}

.checkbox-inline input {
  width: auto;
  margin: 0;
}

.checkbox-inline--light {
  color: rgba(255, 255, 255, 0.82);
}

.field-hint {
  margin: -0.1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(246, 249, 249, 0.92);
  border: 1px dashed rgba(18, 61, 73, 0.12);
  font-size: 0.9rem;
}

.problem-inbox-list {
  padding: 0 1.4rem 1.4rem;
  display: grid;
  gap: 1rem;
}

.problem-report-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 61, 73, 0.08);
}

.problem-report-card.is-resolved {
  opacity: 0.82;
}

.problem-report-card__header,
.problem-report-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.problem-report-card__title,
.problem-report-card__body,
.problem-report-card__meta {
  margin: 0;
}

.problem-report-card__title {
  font-weight: 800;
}

.problem-report-card__title span,
.problem-report-card__meta,
.problem-report-card__body {
  color: var(--muted);
}

.problem-report-card__meta {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.problem-report-card__body {
  margin: 0.8rem 0 0.95rem;
}

.site-footer {
  margin-top: auto;
  padding: 0 0.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 27, 35, 0.52);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 20px;
  z-index: 60;
}

.modal-backdrop {
  justify-content: center;
  align-items: center;
}

.drawer {
  width: min(1120px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(8, 30, 37, 0.25);
}

.drawer__header,
.modal-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.3rem 0.85rem;
}

.drawer__body {
  padding: 0 1rem 1rem;
}

.drawer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 330px;
  gap: 1rem;
}

.modal-card {
  width: min(520px, calc(100vw - 2rem));
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(8, 30, 37, 0.28);
}

.modal-card__body,
.modal-card__footer {
  padding: 0 1.3rem 1.3rem;
}

.modal-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.75rem;
  z-index: 70;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(10, 27, 35, 0.22);
  animation: toast-in 0.18s ease-out;
}

.toast--success { background: var(--green-500); }
.toast--warning { background: var(--amber-500); }
.toast--danger { background: var(--danger); }
.toast--info { background: var(--teal-800); }

@keyframes toast-in {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.login-scene {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.login-brand-image {
  position: fixed;
  top: 32px;
  left: 32px;
  width: min(540px, calc(100vw - 64px));
  z-index: 2;
}

.login-panel {
  width: min(440px, calc(100vw - 32px));
  padding: 1.5rem;
  border-radius: 32px;
  background: rgba(238, 246, 248, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px);
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.login-panel__intro h1 {
  margin: 0.8rem 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.04;
}

.login-panel__intro p,
.login-panel__footer p,
.login-panel .section-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.login-form {
  padding: 1.1rem 0 0;
}

.login-form label {
  color: rgba(255, 255, 255, 0.95);
}

.login-form input {
  background: rgba(248, 252, 252, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.login-panel .active-session-card {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.login-panel .active-session-card h3,
.login-panel .active-session-card p {
  margin: 0;
}

.login-panel__footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.login-panel__footer strong {
  display: block;
  margin-bottom: 0.3rem;
}

.login-scene__caption {
  position: fixed;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.login-scene__caption span {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

@media (max-width: 1260px) {
  .timesheet-month-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workspace-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .portal-hero,
  .hero-card,
  .dashboard-grid,
  .employee-review-grid,
  .admin-user-management-grid,
  .drawer-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-user-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workspace-sidebar {
    height: calc(100vh - 36px);
    top: 18px;
  }

  .workspace-header {
    top: 18px;
  }
}

@media (max-width: 980px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .workspace-header,
  .site-footer,
  .workspace-header__actions,
  .hero-actions,
  .form-actions,
  .toolbar__left,
  .toolbar__right,
  .review-action-row,
  .status-legend,
  .active-session-card {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-form-card .inline-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics-grid,
  .permission-grid,
  .calendar-detail__stats,
  .action-grid--two,
  .admin-user-form-split {
    grid-template-columns: 1fr;
  }

  .review-entry-card {
    grid-template-columns: 1fr;
  }

  .review-entry-time {
    justify-content: flex-start;
  }

  .login-brand-image {
    position: static;
    width: min(440px, 100%);
    margin-bottom: 24px;
  }

  .login-scene {
    align-content: center;
    gap: 24px;
    padding-top: 28px;
  }

  .login-scene__caption {
    position: static;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .panel__header,
  .toolbar,
  .calendar-detail__header,
  .problem-report-card__header,
  .problem-report-card__footer,
  .review-entry-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .data-table {
    min-width: 660px;
  }

  .search-field {
    min-width: 100%;
  }

  .workspace-layout,
  .login-scene,
  .drawer-backdrop,
  .modal-backdrop {
    padding: 14px;
  }

  .workspace-header,
  .workspace-sidebar,
  .portal-hero,
  .panel,
  .sticky-action-bar,
  .login-panel {
    border-radius: 24px;
  }
}


.timesheet-review-panel {
  overflow: hidden;
}

.review-feedback-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 61, 73, 0.08);
  background: rgba(248, 251, 251, 0.88);
}

.review-feedback-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.review-feedback-card__message {
  margin: 0.9rem 0;
  color: var(--muted);
}

.review-feedback-card.status-badge--draft {
  border-left: 4px solid #b8c4c8;
}

.review-feedback-card.status-badge--submitted {
  border-left: 4px solid var(--blue-500);
}

.review-feedback-card.status-badge--approved {
  border-left: 4px solid var(--green-500);
}

.review-feedback-card.status-badge--returned {
  border-left: 4px solid var(--amber-500);
}

.admin-user-name {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.admin-user-name strong {
  line-height: 1.24;
}

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

.employee-detail-entries__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.employee-detail-entries__header h4 {
  margin: 0.15rem 0 0;
}
