:root {
  --ink: #174452;
  --muted: #667d85;
  --muted-2: #91a3a8;
  --paper: #ffffff;
  --canvas: #f3f9fb;
  --line: #deebef;
  --line-strong: #ccdde3;
  --green-900: #087f98;
  --green-800: #0098da;
  --green-700: #0790b7;
  --green-600: #0ea6b5;
  --green-100: #d9f3f7;
  --green-50: #edfafd;
  --coral: #f9a11f;
  --coral-dark: #d98000;
  --coral-soft: #fff4df;
  --amber: #f9a11f;
  --amber-soft: #fff6e6;
  --blue: #4a86e8;
  --blue-soft: #edf4ff;
  --purple: #8566c7;
  --purple-soft: #f2edff;
  --danger: #d95858;
  --danger-soft: #ffefef;
  --shadow-sm: 0 2px 10px rgba(0, 117, 155, 0.07);
  --shadow-md: 0 12px 35px rgba(0, 117, 155, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --sidebar-width: 258px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Century Gothic", CenturyGothic, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(340px, .95fr) minmax(430px, 1.05fr);
  background: var(--paper);
}

.auth-brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 6vw, 78px);
  color: white;
  background:
    radial-gradient(circle at 80% 15%, rgba(47,201,108,.34), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(249,161,31,.28), transparent 30%),
    linear-gradient(145deg, #0089c5, #0ea6b5 68%, #168e74);
}

.auth-brand-panel::after {
  position: absolute;
  right: -150px;
  bottom: -130px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255,255,255,.06);
  border-radius: 50%;
  content: "";
}

.auth-brand-panel > * {
  position: relative;
  z-index: 1;
}

.auth-brand-panel > img {
  width: min(270px, 75%);
  border-radius: 8px;
  object-fit: contain;
}

.auth-brand-panel .eyebrow {
  color: rgba(255,255,255,.76);
}

.auth-brand-panel h1 {
  max-width: 520px;
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -2px;
  line-height: 1.08;
}

.auth-brand-panel > div > p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.7;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 99px;
  background: rgba(255,255,255,.09);
  padding: 8px 11px;
  font-size: 9px;
  font-weight: 700;
}

.auth-benefits i,
.auth-security i {
  display: inline-block;
  width: 14px;
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-form {
  width: min(390px, 100%);
}

.auth-form h2 {
  margin: 8px 0 0;
  font-size: 29px;
  letter-spacing: -1px;
}

.auth-intro {
  margin: 9px 0 23px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-mobile-logo {
  display: none;
  margin-bottom: 24px;
}

.auth-mobile-logo img {
  width: 190px;
}

.auth-message {
  margin-bottom: 15px;
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 10px;
  line-height: 1.5;
}

.auth-message.success {
  color: #197d4c;
  background: #e8f8ef;
}

.auth-field {
  display: block;
  margin-top: 14px;
}

.auth-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #50666d;
  font-size: 9.5px;
  font-weight: 750;
}

.auth-input {
  display: flex;
  height: 47px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0 12px;
  transition: 150ms ease;
}

.auth-input:focus-within {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(14,166,181,.1);
}

.auth-input i {
  width: 17px;
  color: var(--green-700);
}

.auth-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
}

.auth-submit {
  display: flex;
  width: 100%;
  height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(110deg, var(--green-800), var(--green-600));
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(0,152,218,.2);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.auth-submit i {
  width: 16px;
}

.auth-help {
  display: block;
  margin: 15px auto 0;
  border: 0;
  color: var(--green-800);
  background: transparent;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 700;
}

.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 25px;
  color: var(--muted-2);
  font-size: 8px;
}

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

.permission-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.permission-option input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--green-800);
}

.permission-option strong,
.permission-option small {
  display: block;
}

.permission-option strong {
  font-size: 8.8px;
}

.permission-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.4;
}

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

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 26px 18px 18px;
}

.brand {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 2px 14px 26px;
}

.brand img {
  display: block;
  width: 174px;
  max-height: 70px;
  object-fit: contain;
}

.side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.nav-label {
  margin: 19px 12px 7px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 0 12px;
  color: #536462;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 650;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: var(--green-800);
  background: var(--green-50);
}

.nav-item.active {
  color: var(--green-800);
  background: var(--green-100);
}

.nav-icon {
  width: 19px;
  height: 19px;
}

.nav-icon svg,
.icon-button svg,
.primary-button svg,
.secondary-button svg,
.ghost-button svg,
.action-button svg,
.mobile-nav svg,
.topbar svg {
  width: 100%;
  height: 100%;
}

.nav-count {
  min-width: 24px;
  margin-left: auto;
  border-radius: 99px;
  background: var(--paper);
  padding: 3px 7px;
  color: var(--green-800);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.notification-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 99px;
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.sidebar-footer {
  margin-top: 24px;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 12px;
  border: 1px solid #d9ece8;
  border-radius: 13px;
  background: var(--green-50);
  padding: 11px;
}

.support-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--green-800);
  background: var(--paper);
}

.support-icon svg {
  width: 17px;
}

.support-card strong,
.support-card p {
  display: block;
  margin: 0;
}

.support-card strong {
  font-size: 11px;
}

.support-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.profile-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 16px 8px 2px;
  cursor: pointer;
  text-align: left;
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: white;
  background: var(--green-800);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.avatar-owner {
  width: 35px;
  height: 35px;
  background: linear-gradient(145deg, var(--green-600), var(--green-900));
}

.profile-copy {
  min-width: 0;
}

.profile-copy strong,
.profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 11.5px;
}

.profile-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.profile-chevron {
  width: 15px;
  margin-left: auto;
  color: var(--muted-2);
}

.main-column {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(227, 234, 232, 0.82);
  background: rgba(244, 247, 246, 0.92);
  padding: 19px clamp(26px, 4vw, 52px);
  backdrop-filter: blur(16px);
}

.topbar-copy {
  min-width: 230px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green-700);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.2px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(23px, 2vw, 29px);
  letter-spacing: -0.9px;
  line-height: 1.1;
}

.topbar-copy > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

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

.global-search {
  display: flex;
  width: clamp(210px, 21vw, 300px);
  height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 11px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.global-search > span {
  width: 16px;
  flex: 0 0 auto;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11.5px;
}

.global-search input::placeholder {
  color: #9ba8a6;
}

.global-search kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--canvas);
  padding: 2px 5px;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 8px;
}

.icon-button,
.modal-close {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.icon-button > span:first-child {
  width: 17px;
}

.button-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid var(--canvas);
  border-radius: 99px;
  color: white;
  background: var(--coral);
  font-size: 8px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.ghost-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 11px;
  padding: 0 15px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 750;
  transition: 150ms ease;
}

.primary-button {
  border: 1px solid var(--green-800);
  color: white;
  background: var(--green-800);
  box-shadow: 0 7px 16px rgba(23, 107, 99, 0.2);
}

.primary-button:hover {
  border-color: var(--green-900);
  background: var(--green-900);
  transform: translateY(-1px);
}

.primary-button > span:first-child,
.secondary-button > span:first-child,
.ghost-button > span:first-child,
.action-button > span:first-child {
  width: 15px;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.secondary-button:hover {
  border-color: var(--green-600);
  color: var(--green-800);
}

.ghost-button {
  min-height: 36px;
  border: 0;
  color: var(--green-800);
  background: transparent;
  padding: 0 8px;
}

.ghost-button:hover {
  background: var(--green-50);
}

.action-button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 11px;
  font-size: 10.5px;
}

#page-content {
  padding: 27px clamp(26px, 4vw, 52px) 52px;
  outline: none;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.date-chip {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 0 11px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.date-chip span {
  width: 14px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.live-indicator::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #40ac78;
  box-shadow: 0 0 0 4px rgba(64, 172, 120, 0.12);
  content: "";
}

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

.metric-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.metric-card::after {
  position: absolute;
  right: -18px;
  bottom: -27px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--metric-glow, var(--green-50));
  content: "";
}

.metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.metric-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: var(--metric-color, var(--green-800));
  background: var(--metric-bg, var(--green-50));
}

.metric-icon svg {
  width: 17px;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 99px;
  background: var(--green-50);
  padding: 4px 7px;
  color: var(--green-700);
  font-size: 8.5px;
  font-weight: 800;
}

.metric-trend.attention {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.metric-value {
  position: relative;
  z-index: 1;
  margin: 15px 0 2px;
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -1px;
}

.metric-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.metric-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 16px;
}

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

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
}

.panel-title h2,
.panel-title p {
  margin: 0;
}

.panel-title h2 {
  font-size: 14px;
  letter-spacing: -0.25px;
}

.panel-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.panel-body {
  padding: 18px;
}

.employee-list {
  display: flex;
  flex-direction: column;
}

.employee-row {
  display: grid;
  grid-template-columns: minmax(165px, 1.3fr) minmax(115px, 0.9fr) 110px 82px;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  border-bottom: 1px solid var(--line);
  padding: 8px 18px;
}

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

.person-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.person-cell .avatar {
  width: 34px;
  height: 34px;
}

.person-copy {
  min-width: 0;
}

.person-copy strong,
.person-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-copy strong {
  font-size: 10.5px;
}

.person-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.place-cell,
.time-cell {
  color: var(--muted);
  font-size: 9.5px;
}

.place-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.place-cell span:first-child {
  width: 13px;
  flex: 0 0 auto;
  color: var(--green-600);
}

.place-cell span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 5px 8px;
  font-size: 8.5px;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-success {
  color: #27835f;
  background: #eaf8f1;
}

.status-warning {
  color: #b6740b;
  background: var(--amber-soft);
}

.status-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-neutral {
  color: #687b78;
  background: #eef2f1;
}

.status-purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.status-blue {
  color: #3d72bd;
  background: var(--blue-soft);
}

.agenda-list {
  display: flex;
  flex-direction: column;
}

.agenda-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.agenda-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.agenda-time {
  padding-top: 2px;
  color: var(--green-800);
  font-size: 9.5px;
  font-weight: 800;
}

.agenda-copy strong,
.agenda-copy small {
  display: block;
}

.agenda-copy strong {
  font-size: 10px;
}

.agenda-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
}

.agenda-tag {
  display: inline-block;
  margin-top: 7px;
  border-radius: 99px;
  background: var(--green-50);
  padding: 4px 7px;
  color: var(--green-700);
  font-size: 8px;
  font-weight: 750;
}

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

.alert-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding: 13px;
}

.alert-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
}

.alert-icon svg {
  width: 16px;
}

.alert-copy {
  min-width: 0;
}

.alert-copy strong,
.alert-copy span {
  display: block;
}

.alert-copy strong {
  font-size: 9.5px;
}

.alert-copy span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-arrow {
  width: 14px;
  margin-left: auto;
  color: var(--muted-2);
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #edf2f1;
  padding: 3px;
}

.segmented-tabs button {
  min-height: 31px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 750;
}

.segmented-tabs button.active {
  color: var(--green-800);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(18, 79, 74, 0.08);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding: 10px;
}

.filter-search {
  display: flex;
  width: min(360px, 100%);
  height: 35px;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  background: var(--canvas);
  padding: 0 10px;
  color: var(--muted);
}

.filter-search span {
  width: 14px;
}

.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.filter-buttons {
  display: flex;
  gap: 7px;
}

.select-control {
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--paper);
  padding: 0 28px 0 10px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
}

.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

.data-table th {
  color: var(--muted-2);
  background: #fbfcfc;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.data-table td {
  color: #51615f;
  font-size: 9.5px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  cursor: pointer;
  transition: 120ms ease;
}

.data-table tbody tr:hover {
  background: var(--green-50);
}

.table-person {
  min-width: 185px;
}

.table-person .avatar {
  width: 33px;
  height: 33px;
}

.mini-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.mini-action {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.mini-action svg {
  width: 13px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.kanban-column {
  min-width: 210px;
  border-radius: 15px;
  background: #edf2f1;
  padding: 11px;
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.kanban-head strong {
  font-size: 9.5px;
}

.kanban-head span {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
}

.candidate-card {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(18, 79, 74, 0.04);
  transition: 150ms ease;
}

.candidate-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.candidate-card:last-child {
  margin-bottom: 0;
}

.candidate-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidate-top .avatar {
  width: 30px;
  height: 30px;
}

.candidate-top strong {
  font-size: 9.5px;
}

.candidate-role {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 8.5px;
}

.candidate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--muted-2);
  font-size: 8px;
}

.candidate-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.candidate-meta svg {
  width: 11px;
}

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

.summary-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 13px;
}

.summary-chip span,
.summary-chip strong {
  display: block;
}

.summary-chip span {
  color: var(--muted);
  font-size: 8.5px;
}

.summary-chip strong {
  margin-top: 6px;
  font-size: 18px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
  gap: 16px;
}

.map-panel {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(30deg, transparent 49.3%, rgba(23, 107, 99, 0.06) 50%, transparent 50.7%) 0 0 / 52px 52px,
    linear-gradient(120deg, transparent 49.3%, rgba(23, 107, 99, 0.05) 50%, transparent 50.7%) 0 0 / 69px 69px,
    #e7efed;
}

.map-panel::before,
.map-panel::after {
  position: absolute;
  background: rgba(255, 255, 255, 0.74);
  content: "";
  transform: rotate(-13deg);
}

.map-panel::before {
  top: 25%;
  left: -5%;
  width: 115%;
  height: 16px;
  box-shadow: 0 115px 0 rgba(255, 255, 255, 0.64);
}

.map-panel::after {
  top: -10%;
  left: 48%;
  width: 13px;
  height: 120%;
  transform: rotate(23deg);
}

.map-water {
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 42%;
  height: 42%;
  border-radius: 48% 0 0;
  background: #b9dedb;
}

.geo-zone {
  position: absolute;
  z-index: 2;
  width: 130px;
  height: 130px;
  border: 2px dashed rgba(23, 107, 99, 0.58);
  border-radius: 50%;
  background: rgba(37, 149, 135, 0.12);
}

.geo-zone.one {
  top: 52px;
  left: 18%;
}

.geo-zone.two {
  top: 205px;
  left: 57%;
  width: 100px;
  height: 100px;
}

.map-pin {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 4px solid white;
  border-radius: 50% 50% 50% 8px;
  color: white;
  background: var(--green-800);
  box-shadow: 0 6px 16px rgba(18, 79, 74, 0.24);
  transform: rotate(-45deg);
}

.map-pin svg {
  width: 13px;
  transform: rotate(45deg);
}

.map-pin.pin-1 {
  top: 101px;
  left: calc(18% + 47px);
}

.map-pin.pin-2 {
  top: 239px;
  left: calc(57% + 33px);
  background: var(--coral);
}

.map-legend {
  position: absolute;
  z-index: 6;
  right: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
  border: 1px solid rgba(227, 234, 232, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 8.5px;
  box-shadow: var(--shadow-sm);
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
}

.legend-dot.coral {
  background: var(--coral);
}

.map-caption {
  position: absolute;
  z-index: 6;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  border: 1px solid rgba(227, 234, 232, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}

.map-caption strong {
  display: block;
  font-size: 9.5px;
}

.map-caption span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8.5px;
}

.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--green-800);
  background: var(--green-50);
}

.activity-icon svg {
  width: 14px;
}

.activity-copy strong {
  display: block;
  font-size: 9.5px;
}

.activity-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.45;
}

.activity-copy time {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 7.5px;
}

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

.sector-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.sector-map {
  position: relative;
  height: 105px;
  background:
    linear-gradient(28deg, transparent 47%, rgba(255,255,255,.85) 48%, rgba(255,255,255,.85) 52%, transparent 53%) 0 0 / 45px 45px,
    #dfe9e6;
}

.sector-map::after {
  position: absolute;
  top: 31px;
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  border: 2px dashed rgba(23, 107, 99, 0.58);
  border-radius: 50%;
  background: rgba(37, 149, 135, 0.14);
  content: "";
}

.sector-card-body {
  padding: 14px;
}

.sector-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sector-title h3,
.sector-title p {
  margin: 0;
}

.sector-title h3 {
  font-size: 11px;
}

.sector-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8.5px;
}

.sector-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  color: var(--muted);
  font-size: 8.5px;
}

.sector-meta strong {
  color: var(--ink);
}

.calendar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: 16px;
}

.calendar {
  padding: 10px 18px 18px;
}

.calendar-week,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-week span {
  padding: 9px 4px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  position: relative;
  min-height: 70px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 7px;
  color: var(--muted);
  font-size: 8.5px;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.muted {
  color: #c0cac8;
}

.calendar-day.today {
  color: white;
  background: var(--green-800);
}

.calendar-event {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  border-radius: 5px;
  background: var(--coral-soft);
  padding: 4px 5px;
  color: var(--coral-dark);
  font-size: 7px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.green {
  color: var(--green-800);
  background: var(--green-100);
}

.request-list {
  display: flex;
  flex-direction: column;
}

.request-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.request-card:first-child {
  padding-top: 0;
}

.request-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.request-card .avatar {
  width: 32px;
  height: 32px;
}

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

.request-copy strong,
.request-copy small {
  display: block;
}

.request-copy strong {
  font-size: 9.5px;
}

.request-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.request-days {
  margin-left: auto;
  color: var(--green-800);
  font-size: 9px;
  font-weight: 800;
}

.payroll-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: white;
  background: linear-gradient(125deg, #155e57 0%, #1c7a70 64%, #339c8f 100%);
  box-shadow: var(--shadow-md);
}

.payroll-copy {
  padding: 27px;
}

.payroll-copy .eyebrow {
  color: #bfe7e1;
}

.payroll-copy h2 {
  margin: 5px 0 0;
  font-size: 24px;
  letter-spacing: -0.7px;
}

.payroll-copy p {
  max-width: 500px;
  margin: 9px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 10.5px;
  line-height: 1.6;
}

.payroll-actions {
  display: flex;
  gap: 8px;
  margin-top: 19px;
}

.payroll-actions .primary-button {
  border-color: white;
  color: var(--green-900);
  background: white;
}

.payroll-actions .secondary-button {
  border-color: rgba(255,255,255,.26);
  color: white;
  background: rgba(255,255,255,.08);
}

.payroll-amount {
  display: grid;
  align-content: center;
  border-left: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.06);
  padding: 27px;
}

.payroll-amount span {
  color: rgba(255,255,255,.72);
  font-size: 9px;
}

.payroll-amount strong {
  display: block;
  margin-top: 7px;
  font-size: 30px;
  letter-spacing: -1px;
}

.payroll-amount small {
  display: block;
  margin-top: 7px;
  color: #c6ece6;
  font-size: 8.5px;
}

.progress-bar {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: #e8efed;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-600);
}

.payroll-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.breakdown-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 14px;
}

.breakdown-item span,
.breakdown-item strong,
.breakdown-item small {
  display: block;
}

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

.breakdown-item strong {
  margin-top: 7px;
  font-size: 16px;
}

.breakdown-item small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.chart-card {
  min-height: 270px;
}

.bar-chart {
  display: flex;
  height: 165px;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 5px 0;
}

.bar-group {
  display: flex;
  flex: 1;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.bar {
  width: min(18px, 42%);
  border-radius: 5px 5px 0 0;
  background: var(--green-600);
  transition: 200ms ease;
}

.bar.secondary {
  background: #cce6e1;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 8px 5px 0;
  color: var(--muted-2);
  font-size: 7.5px;
  text-align: center;
}

.chart-legend {
  display: flex;
  gap: 13px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 8.5px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--green-600);
}

.chart-legend i.secondary {
  background: #cce6e1;
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.6);
  padding: 30px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  place-items: center;
  border-radius: 18px;
  color: var(--green-800);
  background: var(--green-100);
}

.empty-state-icon svg {
  width: 25px;
}

.empty-state h2 {
  margin: 15px 0 5px;
  font-size: 16px;
}

.empty-state p {
  max-width: 380px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(16, 39, 36, 0.48);
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 25px 80px rgba(12, 47, 43, 0.24);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 34px;
  height: 34px;
  box-shadow: none;
}

.modal-close span {
  width: 14px;
}

.modal-head {
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 17px;
}

.modal-head .eyebrow {
  margin-bottom: 5px;
}

.modal-head h2 {
  margin: 0;
  padding-right: 38px;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.modal-body {
  padding: 20px 24px 24px;
}

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

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

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

.form-field label {
  color: #4e605e;
  font-size: 9.5px;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: var(--paper);
  padding: 9px 11px;
  color: var(--ink);
  font-size: 10.5px;
}

.form-field textarea {
  min-height: 78px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(37, 149, 135, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

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

.quick-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding: 14px;
  cursor: pointer;
  text-align: left;
}

.quick-choice:hover {
  border-color: var(--green-600);
  background: var(--green-50);
}

.quick-choice-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--green-800);
  background: var(--green-100);
}

.quick-choice-icon svg {
  width: 18px;
}

.quick-choice strong,
.quick-choice span {
  display: block;
}

.quick-choice strong {
  font-size: 10.5px;
}

.quick-choice span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.person-detail-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.person-detail-head .avatar {
  width: 50px;
  height: 50px;
  font-size: 15px;
}

.person-detail-head h3,
.person-detail-head p {
  margin: 0;
}

.person-detail-head h3 {
  font-size: 15px;
}

.person-detail-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.detail-item {
  border-radius: 11px;
  background: var(--canvas);
  padding: 11px;
}

.detail-item span,
.detail-item strong {
  display: block;
}

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

.detail-item strong {
  margin-top: 4px;
  font-size: 9.5px;
}

.toast-region {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  min-width: 270px;
  max-width: 360px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d5e9e5;
  border-radius: 12px;
  background: var(--paper);
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  animation: toast-in 200ms ease both;
}

.toast > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--green-800);
  background: var(--green-100);
}

.toast svg {
  width: 14px;
}

.toast strong,
.toast small {
  display: block;
}

.toast strong {
  font-size: 9.5px;
}

.toast small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
}

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

.topbar-logo {
  display: none;
  width: 158px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.mode-switch-button {
  white-space: nowrap;
}

body.employee-mode {
  background: #f2f9fb;
}

body.employee-mode .sidebar,
body.employee-mode .mobile-nav {
  display: none;
}

body.employee-mode .main-column {
  margin-left: 0;
}

body.employee-mode .topbar {
  min-height: 92px;
  border-bottom-color: #d8eaf0;
  background: rgba(255, 255, 255, 0.94);
}

body.employee-mode .topbar-logo {
  display: block;
}

body.employee-mode .global-search,
body.employee-mode #notifications-button,
body.employee-mode #quick-add-button {
  display: none;
}

body.employee-mode #page-content {
  padding-top: 24px;
}

.employee-portal {
  display: flex;
  width: min(1180px, 100%);
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
}

.employee-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background: linear-gradient(128deg, #0098da 0%, #0ea6b5 68%, #23a356 125%);
  box-shadow: 0 18px 45px rgba(0, 152, 218, .2);
}

.employee-hero::after {
  position: absolute;
  top: -95px;
  right: -55px;
  width: 275px;
  height: 275px;
  border: 42px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
}

.employee-welcome {
  position: relative;
  z-index: 1;
  padding: 28px 30px;
}

.employee-welcome .eyebrow {
  color: rgba(255, 255, 255, .78);
}

.employee-welcome h2 {
  margin: 7px 0 0;
  font-size: 26px;
  letter-spacing: -.8px;
}

.employee-welcome > p {
  max-width: 560px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 10.5px;
  line-height: 1.6;
}

.employee-location {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  padding: 7px 11px;
  color: white;
  font-size: 8.5px;
  font-weight: 700;
}

.employee-location svg {
  width: 13px;
}

.employee-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  border-left: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.06);
  padding: 25px;
}

.employee-identity .avatar {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255,255,255,.38);
  font-size: 16px;
}

.employee-identity strong,
.employee-identity span,
.employee-identity small {
  display: block;
}

.employee-identity strong {
  font-size: 13px;
}

.employee-identity span {
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
}

.employee-identity small {
  margin-top: 8px;
  font-size: 8px;
}

.employee-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 16px;
}

.employee-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.employee-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.employee-card-header h3,
.employee-card-header p {
  margin: 0;
}

.employee-card-header h3 {
  font-size: 12px;
}

.employee-card-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8.5px;
}

.employee-card-body {
  padding: 18px;
}

.punch-layout {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 23px;
}

.punch-clock {
  text-align: center;
}

.punch-clock time {
  display: block;
  color: var(--ink);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.6px;
}

.punch-clock > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.punch-button {
  display: grid;
  width: 128px;
  height: 128px;
  margin: 16px auto 0;
  place-items: center;
  border: 9px solid #fff2dd;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #f9b344, #f39200);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(249, 161, 31, .28);
  transition: 180ms ease;
}

.punch-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 30px rgba(249, 161, 31, .36);
}

.punch-button:disabled {
  border-color: #e6eeee;
  color: #799095;
  background: #dce7e9;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.punch-button span,
.punch-button strong {
  display: block;
}

.punch-button span {
  width: 28px;
  margin: 0 auto 5px;
}

.punch-button strong {
  font-size: 9px;
}

.punch-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: #2a8c62;
  font-size: 8.5px;
  font-weight: 700;
}

.punch-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fc96c;
  box-shadow: 0 0 0 4px rgba(47,201,108,.12);
  content: "";
}

.punch-status.offline {
  color: var(--coral-dark);
}

.punch-status.offline::before {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(249, 161, 31, .14);
}

.punch-confirmation {
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #edfafd, #e8f8ef);
  padding: 25px 18px;
  text-align: center;
}

.punch-confirmation-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 7px solid rgba(47, 201, 108, .16);
  border-radius: 50%;
  color: white;
  background: #2fc96c;
  box-shadow: 0 10px 24px rgba(47, 201, 108, .22);
}

.punch-confirmation-icon svg {
  width: 29px;
}

.punch-confirmation h3 {
  margin: 15px 0 0;
  color: #197d4c;
  font-size: 17px;
}

.punch-confirmation p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.punch-confirmation-details {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.punch-confirmation-detail {
  border: 1px solid rgba(14, 166, 181, .14);
  border-radius: 11px;
  background: rgba(255,255,255,.82);
  padding: 10px 7px;
}

.punch-confirmation-detail span,
.punch-confirmation-detail strong {
  display: block;
}

.punch-confirmation-detail span {
  color: var(--muted);
  font-size: 7.5px;
}

.punch-confirmation-detail strong {
  margin-top: 4px;
  font-size: 9px;
}

.day-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding-left: 3px;
}

.day-timeline::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 18px;
  width: 2px;
  background: #dcebee;
  content: "";
}

.timeline-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.timeline-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  color: var(--green-800);
  background: var(--green-100);
}

.timeline-icon.pending {
  color: var(--muted-2);
  background: #edf2f3;
}

.timeline-icon svg {
  width: 13px;
}

.timeline-copy strong,
.timeline-copy small {
  display: block;
}

.timeline-copy strong {
  font-size: 9.5px;
}

.timeline-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.timeline-time {
  font-size: 10px;
  font-weight: 750;
}

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

.employee-balance {
  border-radius: 13px;
  padding: 14px;
}

.employee-balance span,
.employee-balance strong,
.employee-balance small {
  display: block;
}

.employee-balance span {
  color: var(--muted);
  font-size: 8px;
}

.employee-balance strong {
  margin-top: 7px;
  font-size: 19px;
  letter-spacing: -.5px;
}

.employee-balance small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7.5px;
}

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

.employee-action {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: 150ms ease;
}

.employee-action:hover {
  border-color: #a7ddea;
  transform: translateY(-2px);
}

.employee-action-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--green-800);
  background: var(--green-50);
}

.employee-action-icon.orange {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.employee-action-icon.green {
  color: #238f56;
  background: #e8f8ef;
}

.employee-action-icon.purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.employee-action-icon svg {
  width: 18px;
}

.employee-action strong,
.employee-action span {
  display: block;
}

.employee-action strong {
  font-size: 9.5px;
}

.employee-action span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7.8px;
  line-height: 1.4;
}

.employee-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.access-step {
  position: relative;
  min-width: 0;
  border-radius: 13px;
  background: var(--canvas);
  padding: 13px;
}

.access-step-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-800);
  font-size: 8px;
  font-weight: 800;
}

.access-step strong,
.access-step span {
  display: block;
}

.access-step strong {
  margin-top: 10px;
  font-size: 8.7px;
}

.access-step span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7.6px;
  line-height: 1.45;
}

.employee-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.employee-profile-item {
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.employee-profile-item span,
.employee-profile-item strong {
  display: block;
}

.employee-profile-item span {
  color: var(--muted);
  font-size: 7.8px;
}

.employee-profile-item strong {
  margin-top: 4px;
  font-size: 9px;
}

.employee-document {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.employee-document:first-child {
  padding-top: 0;
}

.employee-document:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.employee-document-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--green-800);
  background: var(--green-50);
}

.employee-document-icon svg {
  width: 15px;
}

.employee-document-copy {
  min-width: 0;
}

.employee-document-copy strong,
.employee-document-copy small {
  display: block;
}

.employee-document-copy strong {
  font-size: 9px;
}

.employee-document-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7.7px;
}

.employee-document .mini-action {
  margin-left: auto;
}

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

.mobile-nav {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 224px;
  }

  .sidebar {
    padding-inline: 14px;
  }

  .nav-item {
    font-size: 12px;
  }

  .topbar {
    gap: 18px;
  }

  .global-search {
    display: none;
  }

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

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

  .payroll-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 820px) {
  body {
    padding-bottom: 74px;
  }

  .sidebar {
    display: none;
  }

  .main-column {
    margin-left: 0;
  }

  .topbar {
    position: relative;
    min-height: auto;
    align-items: flex-start;
    padding: 20px 18px 15px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .topbar-copy > p:last-child {
    max-width: 260px;
  }

  .topbar-actions .primary-button span:last-child {
    display: none;
  }

  .topbar-actions .primary-button {
    width: 42px;
    padding: 0;
  }

  #page-content {
    padding: 18px 16px 30px;
  }

  .content-grid,
  .content-grid.equal,
  .map-layout,
  .calendar-grid,
  .payroll-hero {
    grid-template-columns: 1fr;
  }

  .payroll-amount {
    border-top: 1px solid rgba(255,255,255,.15);
    border-left: 0;
  }

  .alert-list {
    grid-template-columns: 1fr;
  }

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

  .employee-row {
    grid-template-columns: minmax(150px, 1fr) 90px 72px;
  }

  .employee-row .place-cell {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    height: 68px;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    padding: 5px 8px 7px;
    backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    display: flex;
    height: 55px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
  }

  .mobile-nav-item svg {
    width: 19px;
    height: 19px;
  }

  .mobile-nav-item small {
    font-size: 8px;
    font-weight: 700;
  }

  .mobile-nav-item.active {
    color: var(--green-800);
  }

  .mobile-punch-button {
    display: grid;
    width: 52px;
    height: 52px;
    place-self: center;
    place-items: center;
    border: 5px solid var(--canvas);
    border-radius: 50%;
    color: white;
    background: var(--coral);
    cursor: pointer;
    transform: translateY(-13px);
    box-shadow: 0 8px 20px rgba(242, 118, 98, 0.3);
  }

  .mobile-punch-button svg {
    width: 23px;
    height: 23px;
  }

  body.employee-mode {
    padding-bottom: 74px;
  }

  body.employee-mode .topbar {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 16px;
  }

  body.employee-mode .topbar-logo {
    width: 108px;
    height: 45px;
  }

  body.employee-mode .topbar-copy {
    min-width: 0;
  }

  body.employee-mode .topbar-copy p {
    display: none;
  }

  body.employee-mode .topbar h1 {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.employee-mode .mode-switch-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  body.employee-mode .mode-switch-button span:last-child {
    display: none;
  }

  body.employee-mode #page-content {
    padding: 16px 14px 24px;
  }

  .employee-mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 52;
    display: none;
    height: 68px;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.97);
    padding: 5px 8px 7px;
    backdrop-filter: blur(16px);
  }

  body.employee-mode .employee-mobile-nav {
    display: grid;
  }

  .employee-mobile-nav-item {
    display: flex;
    height: 55px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    color: var(--muted);
    background: transparent;
  }

  .employee-mobile-nav-item.active {
    color: var(--green-800);
  }

  .employee-mobile-nav-item span {
    width: 19px;
  }

  .employee-mobile-nav-item small {
    font-size: 8px;
    font-weight: 700;
  }

  .employee-hero,
  .employee-overview,
  .employee-detail-grid {
    grid-template-columns: 1fr;
  }

  .employee-identity {
    border-top: 1px solid rgba(255,255,255,.16);
    border-left: 0;
  }

  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    min-height: 100vh;
    padding: 24px;
  }

  .auth-mobile-logo {
    display: block;
  }
}

@media (max-width: 600px) {
  .topbar-copy > p:last-child,
  .eyebrow {
    display: none;
  }

  .topbar {
    align-items: center;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .icon-button,
  .topbar-actions .primary-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

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

  .toolbar-group {
    width: 100%;
    flex-wrap: wrap;
  }

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

  .metric-card {
    padding: 14px;
  }

  .metric-value {
    font-size: 23px;
  }

  .metric-label {
    font-size: 9px;
  }

  .metric-note {
    display: none;
  }

  .panel-header {
    min-height: 58px;
    padding: 13px 14px;
  }

  .panel-body {
    padding: 14px;
  }

  .employee-row {
    grid-template-columns: minmax(140px, 1fr) 72px;
    padding-inline: 14px;
  }

  .employee-row .time-cell {
    display: none;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-search {
    width: 100%;
  }

  .filter-buttons {
    overflow-x: auto;
  }

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

  .payroll-breakdown {
    grid-template-columns: 1fr 1fr;
  }

  .payroll-copy,
  .payroll-amount {
    padding: 20px;
  }

  .payroll-copy h2 {
    font-size: 20px;
  }

  .payroll-amount strong {
    font-size: 25px;
  }

  .calendar-day {
    min-height: 53px;
    padding: 5px;
  }

  .calendar-event {
    padding: 3px;
    font-size: 0;
  }

  .calendar-event::after {
    display: block;
    width: 5px;
    height: 5px;
    margin: auto;
    border-radius: 50%;
    background: currentColor;
    content: "";
  }

  .form-grid,
  .quick-choice-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
  }

  .toast-region {
    right: 10px;
    bottom: 80px;
    left: 10px;
  }

  .toast {
    width: 100%;
    min-width: 0;
  }

  .employee-welcome {
    padding: 22px 20px;
  }

  .employee-welcome h2 {
    font-size: 21px;
  }

  .employee-identity {
    padding: 18px 20px;
  }

  .punch-layout {
    grid-template-columns: 1fr;
  }

  .punch-button {
    width: 116px;
    height: 116px;
  }

  .employee-actions,
  .access-steps {
    grid-template-columns: 1fr 1fr;
  }

  .employee-action {
    min-height: 104px;
    align-items: flex-start;
    flex-direction: column;
  }

  .employee-profile-list {
    grid-template-columns: 1fr;
  }

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