:root {
  --employee-primary: #1d4ed8;
  --employee-secondary: #f1f5f9;
  --employee-accent: #0f172a;
  --employee-success: #16a34a;
  --employee-danger: #dc2626;
  --employee-radius: 18px;
  --employee-font: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--employee-font);
  background: linear-gradient(160deg, #e0f2fe 0%, #f8fafc 100%);
  color: var(--employee-accent);
  min-height: 100vh;
}

.employee-auth-wrapper,
.employee-dashboard-wrapper {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.employee-auth-wrapper {
  padding: 24px 18px 120px;
}

.employee-dashboard-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 130px 18px 160px;
}

.employee-dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.employee-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100%);
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.86) 100%);
  backdrop-filter: blur(16px);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.15);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.employee-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--employee-primary);
}

.employee-topbar-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--employee-accent);
  flex: 1;
}

.employee-presence-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--employee-accent);
  transition: background 0.2s ease, color 0.2s ease;
}

.employee-presence-pill.is-online,
.employee-drawer-status.is-online {
  background: rgba(22, 163, 74, 0.16);
  color: #15803d;
}

.employee-presence-pill.is-offline,
.employee-drawer-status.is-offline {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.employee-heading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.employee-presence-meta {
  margin-top: 12px;
}

.employee-tag-online {
  background: rgba(22, 163, 74, 0.15);
  color: #166534;
}

.employee-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 90;
}

.employee-drawer-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.employee-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(320px, 82%);
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 28px;
}

.employee-drawer.is-open {
  transform: translateX(0);
}

.employee-drawer-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.employee-drawer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(140deg, #1d4ed8, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.employee-drawer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--employee-accent);
}

.employee-drawer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.employee-drawer-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
  width: fit-content;
}

.employee-drawer-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.employee-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.employee-drawer-link {
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--employee-accent);
  font-weight: 600;
  background: rgba(15, 23, 42, 0.05);
  position: relative;
}

.employee-drawer-link.is-active {
  background: rgba(29, 78, 216, 0.15);
  color: var(--employee-primary);
}

.employee-drawer-link[data-chat-nav-link] {
  padding-right: 44px;
}

.employee-chat-unread-badge {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: #dc2626;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.28);
}

.employee-bottom-nav-button .employee-chat-unread-badge {
  top: -6px;
  right: -6px;
  transform: none;
  font-size: 0.68rem;
  padding: 2px 6px;
}

.employee-bottom-nav-button.has-unread {
  background: rgba(220, 38, 38, 0.15);
  color: #b91c1c;
}

.employee-bottom-nav-button.has-unread:hover {
  background: rgba(220, 38, 38, 0.22);
  color: #b91c1c;
}

.employee-drawer-link.has-unread {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.employee-drawer-footer {
  margin-top: 24px;
}

.employee-drawer-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
}

body.employee-drawer-open {
  overflow: hidden;
}

.employee-card {
  background: #ffffff;
  border-radius: var(--employee-radius);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 24px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.employee-card::before {
  content: '';
  position: absolute;
  inset: -40px auto auto -40px;
  width: 120px;
  height: 120px;
  background: rgba(29, 78, 216, 0.08);
  border-radius: 50%;
}

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

.employee-card h2,
.employee-card h3,
.employee-card h4 {
  margin: 0;
}

.employee-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--employee-primary);
}

.employee-card .employee-meta {
  margin-top: 12px;
  font-size: 0.92rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-card-actions {
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-chip-button,
.employee-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.06);
  color: var(--employee-accent);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.employee-chip-button:hover,
.employee-chip-link:hover {
  background: rgba(29, 78, 216, 0.16);
  color: var(--employee-primary);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.employee-chip-button:focus-visible,
.employee-chip-link:focus-visible {
  outline: 2px solid var(--employee-primary);
  outline-offset: 3px;
}

.employee-chip-button {
  border: none;
  background-clip: padding-box;
}

.employee-chip-link {
  padding-right: 18px;
}

@media (max-width: 640px) {
  .employee-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-chip-button,
  .employee-chip-link {
    width: 100%;
    justify-content: center;
  }
}

.employee-chat-layout {
  display: grid;
  gap: 24px;
  margin-top: 18px;
  grid-template-columns: minmax(260px, 320px) 1fr;
  align-items: flex-start;
}

.employee-chat-sidebar {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.09);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 420px;
}

.employee-chat-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-chat-sidebar-header h2 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--employee-accent);
}

.employee-chat-sidebar-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.employee-chat-participants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 4px;
}

.employee-chat-participant {
  border: 1px solid transparent;
  background: rgba(241, 245, 249, 0.7);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.employee-chat-participant:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.employee-chat-participant.is-active {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.14), rgba(37, 99, 235, 0.22));
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.2);
}

.employee-chat-participant-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.employee-chat-participant-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.employee-chat-participant-name {
  margin: 0;
  font-size: 0.98rem;
  color: var(--employee-accent);
}

.employee-chat-participant-preview {
  font-size: 0.82rem;
  color: #475569;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-chat-participant-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  font-size: 0.76rem;
  color: #64748b;
}

.employee-chat-unread {
  background: var(--employee-primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
  font-size: 0.72rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.employee-chat-status {
  font-weight: 600;
}

.employee-chat-status.is-online {
  color: #15803d;
}

.employee-chat-status.is-offline {
  color: #64748b;
}

.employee-chat-window {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.employee-chat-window.is-empty .employee-chat-messages {
  justify-content: center;
}

.employee-chat-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employee-chat-header h2 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--employee-accent);
}

.employee-chat-header p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #475569;
}

.employee-chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
}

.employee-chat-message {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-chat-message.is-own {
  margin-left: auto;
  align-items: flex-end;
}

.employee-chat-bubble {
  background: rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  padding: 10px 14px;
  color: var(--employee-accent);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  text-align: left;
}

.employee-chat-message.is-own .employee-chat-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.3);
}

.employee-chat-bubble p {
  margin: 0;
  word-break: break-word;
}

.employee-chat-message-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(15, 23, 42, 0.55);
}

.employee-chat-message-time {
  font-style: normal;
  color: inherit;
}

.employee-chat-receipt {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.45);
  transition: color 0.2s ease;
}

.employee-chat-receipt.is-delivered {
  color: rgba(15, 23, 42, 0.65);
}

.employee-chat-receipt.is-read {
  color: #2563eb;
}

.employee-chat-message.is-own .employee-chat-message-meta {
  color: rgba(255, 255, 255, 0.85);
  justify-content: flex-end;
}

.employee-chat-message.is-own .employee-chat-receipt {
  color: rgba(255, 255, 255, 0.6);
}

.employee-chat-message.is-own .employee-chat-receipt.is-delivered {
  color: rgba(255, 255, 255, 0.85);
}

.employee-chat-message.is-own .employee-chat-receipt.is-read {
  color: #bfdbfe;
}

.employee-chat-receipt-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.employee-chat-tick {
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
  display: inline-block;
  transform: rotate(-7deg);
}

.employee-chat-receipt-icon .employee-chat-tick + .employee-chat-tick {
  margin-left: -4px;
}


.employee-chat-composer {
  display: flex;
  gap: 12px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  align-items: center;
}

.employee-chat-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.employee-chat-composer input[type='text'] {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.employee-chat-composer input[type='text']:focus {
  outline: none;
  border-color: var(--employee-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.employee-chat-composer.is-disabled input[type='text'] {
  opacity: 0.6;
  cursor: not-allowed;
}

.employee-chat-emoji-toggle {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.employee-chat-emoji-toggle:hover,
.employee-chat-emoji-toggle:focus-visible,
.employee-chat-emoji-toggle.is-active {
  border-color: var(--employee-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.employee-chat-emoji-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.employee-chat-emoji-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(38px, 1fr));
  gap: 6px;
  z-index: 40;
}

.employee-chat-emoji-menu[hidden] {
  display: none !important;
}

.employee-chat-emoji-option {
  border: none;
  background: transparent;
  font-size: 1.45rem;
  cursor: pointer;
  border-radius: 12px;
  padding: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.employee-chat-emoji-option:hover,
.employee-chat-emoji-option:focus-visible {
  background: rgba(148, 163, 184, 0.18);
  transform: translateY(-1px);
}

.employee-chat-emoji-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.employee-chat-composer.is-sending button {
  opacity: 0.75;
  pointer-events: none;
}

.employee-chat-error {
  margin: -10px 24px 16px;
  font-size: 0.82rem;
  color: #b91c1c;
}

.employee-chat-empty,
.employee-chat-loading {
  text-align: center;
  color: #475569;
  font-size: 0.9rem;
  padding: 28px 12px;
}

.employee-chat-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translate(-50%, 20px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  z-index: 110;
  max-width: min(90%, 360px);
}

.employee-chat-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

@media (max-width: 960px) {
  .employee-chat-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .employee-chat-sidebar {
    order: 2;
    min-height: 0;
    width: 100%;
  }

  .employee-chat-window {
    order: 1;
    min-height: 420px;
  }

  .employee-chat-participants {
    max-height: none;
  }

  .employee-chat-toast {
    bottom: 90px;
  }
}

@media (max-width: 600px) {
  .employee-chat-layout {
    gap: 14px;
  }

  .employee-chat-sidebar {
    padding: 16px;
    border-radius: 20px;
  }

  .employee-chat-participant {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .employee-chat-participant-meta {
    align-items: flex-start;
  }

  .employee-chat-messages {
    padding: 18px 16px;
  }

  .employee-chat-composer {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 16px 14px;
  }

  .employee-chat-composer button {
    width: auto;
    flex-shrink: 0;
  }

  .employee-chat-message {
    max-width: 100%;
  }

  .employee-chat-participant-preview {
    max-width: 100%;
  }

  .employee-chat-toast {
    bottom: 84px;
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .employee-chat-input-group {
    flex: 1 1 auto;
    min-width: 0;
  }

  .employee-chat-input-group input[type='text'] {
    font-size: 1rem;
    padding: 12px;
  }

  .employee-chat-emoji-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .employee-chat-emoji-menu {
    right: 0;
    left: auto;
  }
}

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

  .employee-chat-header h2 {
    font-size: 1rem;
  }

  .employee-chat-header p {
    font-size: 0.82rem;
  }

  .employee-chat-messages {
    gap: 14px;
  }

  .employee-chat-toast {
    bottom: 78px;
  }
}

.employee-card-select {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  z-index: 2;
}

.employee-card-checkbox {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(15, 23, 42, 0.22);
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.employee-card-checkbox:checked {
  background: #2563eb;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.employee-card-checkbox:checked::after {
  content: '✓';
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.employee-card-checkbox:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.employee-card-checkbox-box {
  display: none;
}

.employee-card.is-selected {
  border: 2px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.18);
}

.employee-card.is-selected::before {
  background: rgba(37, 99, 235, 0.12);
}

.employee-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--employee-primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 12px;
}

.employee-card .action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.employee-card.is-hidden {
  display: none;
}

.employee-button {
  flex: 1 1 140px;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.employee-button-nowrap {
  white-space: nowrap;
}

.employee-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.employee-button-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.employee-button-outline {
  background: #ffffff;
  color: var(--employee-primary);
  border: 1px solid rgba(29, 78, 216, 0.18);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.employee-button:active,
.employee-button:hover {
  transform: translateY(-2px);
}

.employee-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(22, 163, 74, 0.12);
  color: var(--employee-success);
  margin-top: 12px;
}

.employee-status-pill.pending {
  background: rgba(234, 179, 8, 0.14);
  color: #b45309;
}

.employee-search-form {
  margin: 12px 0 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.employee-search-form-tight {
  gap: 8px;
}

.employee-search-form input[type='text'] {
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 14px;
  font-size: 0.96rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.employee-search-form select {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 14px;
  font-size: 0.96rem;
  background: #ffffff;
}

.employee-search-form button {
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  background: var(--employee-primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.employee-inline-form {
  margin-top: 16px;
}

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

.employee-inline-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.75);
}

.employee-inline-field span {
  font-weight: 600;
  color: var(--employee-accent);
  display: flex;
  gap: 4px;
  align-items: center;
}

.employee-inline-field small {
  font-weight: 400;
  color: rgba(15, 23, 42, 0.55);
}

.employee-inline-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-size: 0.95rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.employee-inline-field input:focus {
  outline: none;
  border-color: var(--employee-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.employee-inline-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.55);
}

.employee-inline-actions p {
  margin: 0;
}

.employee-bulk-section {
  margin: 24px 0;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 18px;
}

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

.employee-bulk-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
}

.employee-bulk-count strong {
  font-size: 1.6rem;
  color: var(--employee-primary);
  line-height: 1;
}

.employee-bulk-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-button.employee-button-text {
  background: transparent;
  border: none;
  color: var(--employee-primary);
  box-shadow: none;
  padding: 0;
  min-width: unset;
  justify-content: flex-start;
  gap: 6px;
}

.employee-button.employee-button-text:hover,
.employee-button.employee-button-text:focus-visible {
  transform: none;
  text-decoration: underline;
}

.employee-button.employee-button-text:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

.employee-bulk-form {
  display: grid;
  gap: 12px;
}

.employee-bulk-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.employee-bulk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.employee-bulk-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
}

.employee-bulk-field select,
.employee-bulk-field input[type='text'] {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: var(--employee-font);
}

.employee-bulk-field input[type='text'] {
  min-width: 220px;
}

.employee-bulk-field-grow {
  flex: 1 1 260px;
}

.employee-bulk-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
}

.employee-bulk-hint.is-error {
  color: var(--employee-danger);
  font-weight: 600;
}

.employee-bulk-form.has-selection .employee-bulk-hint {
  color: var(--employee-primary);
}

.employee-bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 28px));
  background: rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  z-index: 85;
  backdrop-filter: blur(14px);
}

.employee-bottom-nav-filter-group,
.employee-bottom-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.employee-bottom-nav-filter-group {
  flex: 1;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.employee-bottom-nav-filter-group::-webkit-scrollbar {
  display: none;
}

.employee-bottom-nav-links {
  justify-content: flex-end;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.employee-bottom-nav-links::-webkit-scrollbar {
  display: none;
}

.employee-bottom-nav-button {
  position: relative;
  border: none;
  border-radius: 18px;
  width: 54px;
  height: 54px;
  padding: 0;
  background: rgba(148, 163, 184, 0.12);
  color: var(--employee-accent);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.employee-bottom-nav-button:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.employee-bottom-nav-divider {
  display: none;
}

.employee-bottom-nav-icon {
  font-size: 1.4rem;
}

.employee-bottom-nav-label {
  display: none;
}

.employee-bottom-nav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.employee-bottom-nav-button.is-active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.25);
}

.employee-bottom-nav-button.is-active .employee-bottom-nav-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.employee-bottom-nav-button:active {
  transform: translateY(2px);
}

@media (max-width: 720px) {
  .employee-dashboard-wrapper {
    padding: 120px 14px 150px;
  }

  .employee-topbar {
    width: calc(100% - 18px);
    padding: 16px 16px 18px;
  }

  .employee-dashboard-header {
    padding: 22px;
  }

  .employee-bottom-nav {
    bottom: 12px;
    width: calc(100% - 16px);
    padding: 10px 12px;
    gap: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .employee-bottom-nav-button {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .employee-bottom-nav-icon {
    font-size: 1.3rem;
  }

  .employee-bottom-nav-count {
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  .employee-page-container {
    padding: 24px 12px 130px;
  }

  .employee-panel {
    padding: 20px;
  }
}

.employee-mobile-filter-bar {
  display: none;
}

@media (max-width: 720px) {
  .employee-mobile-filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 4px 8px;
    margin: 0 -4px 16px;
    scroll-snap-type: x proximity;
  }

  .employee-mobile-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .employee-mobile-filter-button {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    scroll-snap-align: center;
  }

  .employee-mobile-filter-button .employee-mobile-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    color: inherit;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .employee-mobile-filter-button.is-active {
    background: #1d4ed8;
    color: #ffffff;
  }

  .employee-mobile-filter-button.is-active .employee-mobile-filter-count {
    background: rgba(255, 255, 255, 0.24);
  }

  .employee-mobile-filter-icon {
    font-size: 1.1rem;
  }

  .employee-mobile-filter-label {
    white-space: nowrap;
  }
}

.employee-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.employee-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.employee-card-header p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.employee-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.employee-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.employee-tag-muted {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.employee-tag-neutral {
  background: rgba(29, 78, 216, 0.12);
  color: var(--employee-primary);
}

.employee-tag-compact {
  padding: 4px 10px;
  font-size: 0.72rem;
}

.employee-tag.status-called,
.employee-tag.employee-tag-compact.status-called {
  background: rgba(22, 163, 74, 0.12);
  color: var(--employee-success);
}

.employee-tag.status-missed,
.employee-tag.employee-tag-compact.status-missed {
  background: rgba(220, 38, 38, 0.12);
  color: var(--employee-danger);
}

.employee-tag.status-unknown,
.employee-tag.employee-tag-compact.status-unknown {
  background: rgba(234, 179, 8, 0.16);
  color: #b45309;
}

.employee-note-hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #1e293b;
  background: rgba(251, 191, 36, 0.16);
  padding: 8px 12px;
  border-radius: 12px;
}

.employee-note-hint-spaced {
  margin-top: 12px;
}

.employee-note-summary {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.employee-note-summary-spaced {
  margin-bottom: 16px;
}

.employee-note-summary-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.employee-note-summary-body {
  margin: 0;
  font-size: 0.88rem;
  color: #1e293b;
}

.employee-assignment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.employee-assignment-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-assignment-field-grow {
  flex: 1 1 220px;
  min-width: 220px;
}

.employee-dashboard-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.employee-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
}

.employee-summary-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #0f172a;
  position: relative;
}

.employee-summary-card span {
  font-size: 0.82rem;
  color: #475569;
}

.employee-summary-card strong {
  font-size: 1.4rem;
}

.employee-summary-card p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.employee-summary-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #1d4ed8;
}

.employee-summary-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.employee-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.employee-note-form {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  background: rgba(15, 23, 42, 0.04);
  padding: 16px;
  border-radius: 16px;
}

.employee-note-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-note-form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.employee-note-form-row label span {
  font-weight: 500;
  color: #64748b;
}

.employee-note-form-row select,
.employee-note-form-row textarea,
.employee-note-form-row input[type='text'] {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: var(--employee-font);
}

.employee-note-form textarea {
  resize: vertical;
  min-height: 80px;
}

.employee-note-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.employee-note-form-footer button {
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.employee-note-form-footer button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.employee-note-feedback {
  font-size: 0.82rem;
  color: #1d4ed8;
}

.employee-notes-list,
.employee-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.employee-note-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.84rem;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-note-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.employee-note-card-time {
  font-size: 0.76rem;
  color: #64748b;
}

.employee-activity-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(226, 232, 240, 0.35);
  color: #1f2937;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.employee-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.employee-activity-time {
  font-size: 0.76rem;
  color: #475569;
}

.employee-empty-inline {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.employee-empty-state {
  text-align: center;
  padding: 48px 16px;
  border-radius: var(--employee-radius);
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  font-size: 0.95rem;
}

.employee-empty-state-tight {
  margin-top: 0;
}

.employee-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 24px 16px;
}

.employee-modal {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 24px 24px 12px 12px;
  padding: 24px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.employee-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.employee-modal h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--employee-primary);
}

.employee-modal-close {
  border: none;
  background: rgba(15, 23, 42, 0.06);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #334155;
}

.employee-detail-section {
  margin-bottom: 20px;
}

.employee-detail-section h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--employee-accent);
}

.employee-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 14px;
}

.employee-detail-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.14);
  font-size: 0.85rem;
  color: #1e293b;
}

.employee-detail-item span {
  display: block;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

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

.employee-document-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-document-card.available {
  border: 1px solid rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.08);
  color: var(--employee-success);
}

.employee-document-card.missing {
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
  color: var(--employee-danger);
}

.employee-login-card {
  text-align: center;
}

.employee-login-card h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--employee-primary);
}

.employee-login-card p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 0.95rem;
}

.employee-login-card form {
  display: grid;
  gap: 16px;
  text-align: left;
}

.employee-login-card label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.employee-login-card input[type='text'],
.employee-login-card input[type='password'],
.employee-login-card input[type='email'] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.employee-login-card input[readonly] {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
  cursor: not-allowed;
}

.employee-login-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  font-family: var(--employee-font);
  resize: vertical;
  min-height: 90px;
}

.employee-login-card button[type='submit'] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.employee-flash {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 500;
}

.employee-error {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--employee-danger);
  font-size: 0.9rem;
}

.employee-error ul {
  margin: 0;
  padding-left: 18px;
}

.employee-error li {
  margin: 4px 0;
}

.employee-auth-subtext {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

.employee-auth-subtext a {
  color: var(--employee-primary);
  font-weight: 600;
  text-decoration: none;
}

.employee-auth-subtext a:hover {
  text-decoration: underline;
}

.employee-primary-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  border-radius: var(--employee-radius);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.employee-primary-link:hover {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
}

.employee-page-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 140px;
}

.employee-section {
  margin-top: 32px;
}

.employee-section-compact {
  margin-top: 28px;
}

.employee-section-large {
  margin-top: 40px;
}

.employee-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.employee-page-header-tight {
  margin-bottom: 16px;
}

.employee-page-header h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--employee-primary);
}

.employee-page-header p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.96rem;
}

.employee-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.employee-quick-link-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.employee-quick-link-card:hover,
.employee-quick-link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.22);
}

.employee-quick-link-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

.employee-quick-link-icon {
  font-size: 1.5rem;
}

.employee-quick-link-card strong {
  font-size: 1.02rem;
}

.employee-quick-link-description {
  font-size: 0.85rem;
  color: #475569;
}

.employee-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 18px 32px -24px rgba(15, 23, 42, 0.35);
}

.employee-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.employee-panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}

.employee-panel-subtitle {
  margin: 4px 0 0;
  color: #475569;
  font-size: 0.92rem;
}

.employee-form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.employee-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.employee-form-field label {
  font-weight: 600;
  color: #1f2937;
}

.employee-form-field input,
.employee-form-field select,
.employee-form-field textarea {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 14px;
  font-size: 0.95rem;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  resize: vertical;
}

.employee-form-field textarea {
  min-height: 96px;
}

.employee-form-field-full {
  grid-column: 1 / -1;
}

.employee-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.employee-table-wrapper {
  overflow-x: auto;
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.employee-table th,
.employee-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  vertical-align: top;
}

.employee-table-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-table-count {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: #1e293b;
}

.employee-table-count strong {
  font-size: 1.1rem;
  color: var(--employee-primary);
}

.employee-table-count span {
  font-size: 0.82rem;
  color: #475569;
}

.employee-table-count small {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.employee-table-count.is-empty strong {
  color: #64748b;
}

.employee-table-count.is-empty span {
  color: #94a3b8;
}

.employee-table thead th {
  background: #f1f5f9;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.employee-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.employee-table-note {
  margin-top: 6px;
  font-size: 0.88rem;
  color: #475569;
}

.employee-table-subtext {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #475569;
}

.employee-profile-summary {
  margin: 12px 0 18px;
  font-size: 0.9rem;
  color: #1f2937;
  line-height: 1.45;
}

.employee-dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(226, 232, 240, 0.85) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  margin: 0;
}

.employee-dashboard-header h1 {
  margin: 0;
  font-size: 1.55rem;
  color: var(--employee-accent);
}

.employee-dashboard-header p {
  margin: 0;
  color: #475569;
  font-size: 0.96rem;
}

.employee-dashboard-header .employee-logout {
  margin-top: 6px;
  align-self: flex-start;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: #ef4444;
}

body.employee-modal-open {
  overflow: hidden;
}

.employee-modal.is-dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.employee-modal.is-dialog.is-visible {
  display: flex;
}

.employee-modal.is-dialog .employee-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.employee-modal-dialog {
  position: relative;
  width: min(520px, 92%);
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 26px 24px;
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
  outline: none;
}

.employee-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  transition: color 0.2s ease;
}

.employee-modal-close:hover {
  color: var(--employee-primary);
}

.employee-modal-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--employee-accent);
}

.employee-modal-header .employee-tag {
  align-self: flex-start;
}

.employee-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.employee-modal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-modal-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.75);
}

.employee-modal-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.85);
  word-break: break-word;
}

.employee-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.employee-modal-footer .employee-button {
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .employee-auth-wrapper {
    padding-top: 40px;
  }

  .employee-dashboard-wrapper {
    padding: 150px 28px 180px;
  }

  .employee-topbar {
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
  }

  .employee-card {
    padding: 28px;
  }
}

@media (min-width: 900px) {
  .employee-dashboard-wrapper {
    padding: 160px 36px 190px;
  }

  .employee-dashboard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .employee-dashboard-header h1 {
    font-size: 1.8rem;
  }

  .employee-dashboard-header p {
    max-width: 440px;
  }

  .employee-page-header {
    flex-wrap: nowrap;
  }
}
