/* ===== Design tokens ===== */
:root {
  --ink: #12181F;
  --ink-soft: #1B222C;
  --ink-line: #2A3340;
  --paper: #faf8f4;
  --paper-line: #E1E3DE;
  --accent: #D6A24C;
  --accent-deep: #B9822F;
  --text-dark: #EDEFF2;
  --text-dark-muted: #8B94A3;
  --text-light: #12181F;
  --text-light-muted: #5B6472;
  --error: #C0392B;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  color: var(--text-light);
  background: var(--paper);
}

/* ===== Login screen layout ===== */
.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

/* ---- Brand panel ---- */
.brand {
  position: relative;
  flex: 0 0 42%;
  min-height: 320px;
  background: var(--ink);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
  overflow: hidden;
}

.brand__shaft {
  position: absolute;
  top: 0;
  right: 64px;
  bottom: 0;
  width: 40px;
  display: flex;
  justify-content: space-between;
}

.brand__rail {
  width: 1px;
  background: var(--ink-line);
  height: 100%;
}

.brand__car {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 4%;
  width: 22px;
  height: 34px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 162, 76, 0.12);
  animation: rise 16s ease-in-out infinite;
}

@keyframes rise {
  0%   { top: 4%; }
  50%  { top: 96%; }
  100% { top: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand__car { animation: none; top: 40%; }
}

.brand__floornums {
  position: absolute;
  top: 4%;
  bottom: 4%;
  right: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.03em;
  z-index: 1;
}

.brand__floornums span {
  animation-duration: 16s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
  .brand__floornums span { animation: none; }
}

.brand__floornums span[data-i="0"] { animation-name: glow-0; }
.brand__floornums span[data-i="1"] { animation-name: glow-1; }
.brand__floornums span[data-i="2"] { animation-name: glow-2; }
.brand__floornums span[data-i="3"] { animation-name: glow-3; }
.brand__floornums span[data-i="4"] { animation-name: glow-4; }
.brand__floornums span[data-i="5"] { animation-name: glow-5; }
.brand__floornums span[data-i="6"] { animation-name: glow-6; }
.brand__floornums span[data-i="7"] { animation-name: glow-7; }

.brand__content {
  position: relative;
  z-index: 1;
}

.brand__statement {
  position: relative;
  z-index: 1;
  max-width: 70%;
}

.brand__statement h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.brand__statement p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dark-muted);
  margin: 0;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 100px;
}

.brand__mark span {
  color: var(--accent);
  position: relative;
  top: 6px;
}

.brand__logo {
  height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

@keyframes glow-0 {
  0%, 100% { color: var(--accent); font-weight: 600; }
  2%, 98%  { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-1 {
  0%, 100%     { color: var(--text-dark-muted); font-weight: 400; }
  5.14%        { color: var(--text-dark-muted); font-weight: 400; }
  7.14%        { color: var(--accent); font-weight: 600; }
  9.14%        { color: var(--text-dark-muted); font-weight: 400; }
  90.86%       { color: var(--text-dark-muted); font-weight: 400; }
  92.86%       { color: var(--accent); font-weight: 600; }
  94.86%       { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-2 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  12.29%     { color: var(--text-dark-muted); font-weight: 400; }
  14.29%     { color: var(--accent); font-weight: 600; }
  16.29%     { color: var(--text-dark-muted); font-weight: 400; }
  83.71%     { color: var(--text-dark-muted); font-weight: 400; }
  85.71%     { color: var(--accent); font-weight: 600; }
  87.71%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-3 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  19.43%     { color: var(--text-dark-muted); font-weight: 400; }
  21.43%     { color: var(--accent); font-weight: 600; }
  23.43%     { color: var(--text-dark-muted); font-weight: 400; }
  76.57%     { color: var(--text-dark-muted); font-weight: 400; }
  78.57%     { color: var(--accent); font-weight: 600; }
  80.57%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-4 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  26.57%     { color: var(--text-dark-muted); font-weight: 400; }
  28.57%     { color: var(--accent); font-weight: 600; }
  30.57%     { color: var(--text-dark-muted); font-weight: 400; }
  69.43%     { color: var(--text-dark-muted); font-weight: 400; }
  71.43%     { color: var(--accent); font-weight: 600; }
  73.43%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-5 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  33.71%     { color: var(--text-dark-muted); font-weight: 400; }
  35.71%     { color: var(--accent); font-weight: 600; }
  37.71%     { color: var(--text-dark-muted); font-weight: 400; }
  62.29%     { color: var(--text-dark-muted); font-weight: 400; }
  64.29%     { color: var(--accent); font-weight: 600; }
  66.29%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-6 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  40.86%     { color: var(--text-dark-muted); font-weight: 400; }
  42.86%     { color: var(--accent); font-weight: 600; }
  44.86%     { color: var(--text-dark-muted); font-weight: 400; }
  55.14%     { color: var(--text-dark-muted); font-weight: 400; }
  57.14%     { color: var(--accent); font-weight: 600; }
  59.14%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-7 {
  0%, 100% { color: var(--text-dark-muted); font-weight: 400; }
  48%      { color: var(--text-dark-muted); font-weight: 400; }
  50%      { color: var(--accent); font-weight: 600; }
  52%      { color: var(--text-dark-muted); font-weight: 400; }
}

.brand__tag {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.brand__sub {
  margin: 0;
  color: var(--text-dark-muted);
  font-size: 15px;
}

/* ---- Form panel ---- */
.panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--paper);
}

.panel__inner {
  width: 100%;
  max-width: 360px;
}

.panel__header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--text-light);
}

.panel__header p {
  margin: 0 0 32px;
  color: var(--text-light-muted);
  font-size: 15px;
}

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field[hidden] {
  display: none;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.field input {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-light);
}

.field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: var(--error);
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 4px 0 18px;
}

button#submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}

button#submit-btn:hover { background: var(--accent-deep); }
button#submit-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.panel__footer {
  margin-top: 28px;
}

.panel__footer p {
  font-size: 13px;
  color: var(--text-light-muted);
}

@media (max-width: 780px) {
  .screen { flex-direction: column; }

  .brand {
    flex: none;
    min-height: 0;
    padding: 28px 24px 32px;
    overflow: visible;
    justify-content: flex-start;
  }

  .brand__shaft,
  .brand__floornums {
    display: none;
  }

  .brand__mark {
    gap: 10px;
    font-size: 15px;
    margin-bottom: 20px;
  }

  .brand__mark span {
    top: 0;
  }

  .brand__logo {
    height: 20px;
  }

  .brand__statement {
    max-width: 100%;
    margin-bottom: 18px;
  }

  .brand__statement h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .brand__statement p {
    font-size: 13px;
  }

  .brand__content {
    padding-top: 16px;
    border-top: 1px solid var(--ink-line);
  }

  .brand__tag {
    font-size: 18px;
  }

  .brand__sub {
    font-size: 13px;
  }

  .panel {
    padding: 32px 24px 50px;
  }
}

/* ===== Dashboard ===== */
.dash {
  min-height: 100vh;
  background: var(--paper);
  padding-top: 72px;
}

.dash__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 72px;
  z-index: 45;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--ink);
  color: var(--text-dark);
  gap: 20px;
}

.dash__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dash__mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.dash__welcome {
  margin-left: 0;
  margin-right: 22px;
  padding-left: 0;
  padding-right: 22px;
  border-left: 0;
  border-right: 1px solid var(--ink-line);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-dark-muted);
  white-space: nowrap;
  transform: translateY(6px);
}

.dash__logout {
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.dash__logout:hover { border-color: var(--accent); color: var(--accent); }

.dash__main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: left;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-line);
  border: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.icon-btn:hover { background: var(--ink-soft); color: var(--accent); }

.icon-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d6a24c;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.menu-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  min-width: 150px;
  overflow: hidden;
  z-index: 20;
}

.dropdown-menu--wide {
  min-width: 220px;
}

.menu-wrap--status {
  width: 220px;
}

.panel-btn--fixed {
  width: 220px;
  justify-content: flex-start;
}

.panel-btn--full {
  width: 100%;
  justify-content: flex-start;
}

.panel-btn--full .panel-btn__chevron {
  margin-left: auto;
}

.dropdown-menu--full {
  width: 100%;
  min-width: 0;
}

.dropdown-menu__item {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
}

.dropdown-menu__divider {
  height: 1px;
  background: var(--paper-line);
  margin: 4px 0;
}

.dropdown-menu__item:hover { background: var(--paper); }

#account-menu {
  width: 190px;
  min-width: 190px;
}

.account-menu__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  border-bottom: 1px solid var(--paper-line);
}

.account-menu__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.account-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu__name {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light);
}

.account-menu__email {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-light-muted);
}

.account-menu__logout-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 12px;
  padding: 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-align: center;
}

.account-menu__logout-btn:hover {
  background: var(--ink-soft);
}

.dropdown-menu__empty {
  padding: 14px;
  font-size: 13px;
  color: var(--text-light-muted);
  text-align: center;
}

.notif-item {
  white-space: normal !important;
  line-height: 1.4;
}

.dash__main h1 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 10px;
}

.dash__note {
  color: var(--text-light-muted);
  font-size: 15px;
  line-height: 1.6;
}

.clock-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--paper-line);
}

.clock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 8px 14px;
  flex-shrink: 0;
}

.clock-flag {
  width: 26px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: block;
}

.clock-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.clock-country {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clock-time {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1040px) {
  .clock-strip { gap: 16px; padding: 12px 20px; }
}

/* ===== Status / Users panel sections ===== */
.panel-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--paper-line);
  text-align: left;
}

.panel-section__title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #1B3A6B;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.panel-section__title > span:first-child {
  order: 1;
}

.panel-title-icon {
  order: 2;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  color: #2f62d9;
}

.panel-title-icon svg {
  width: 24px;
  height: 24px;
}

.panel-title-icon--status svg,
.panel-title-icon--users svg {
  width: 25px;
  height: 25px;
}

.panel-title-icon--utilities svg,
.panel-title-icon--tools svg {
  width: 23px;
  height: 23px;
}

.panel-title-icon--online svg {
  width: 24px;
  height: 24px;
}

.panel-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.panel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 10px 16px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
}

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

.panel-btn:hover { border-color: var(--accent); }

.panel-btn--primary {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: var(--ink);
  font-weight: 600;
}

.panel-btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.panel-btn--quiet {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-light-muted);
}

.panel-btn--quiet:hover { border-color: var(--accent); color: var(--text-light); }

.panel-btn__external {
  margin-left: 2px;
  flex: 0 0 12px;
  color: var(--text-light-muted);
}

.panel-btn__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.panel-btn__chevron {
  margin-left: 2px;
  color: var(--text-light-muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3DB54A;
  display: inline-block;
}

.lunch-timer {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(224, 142, 43, 0.12);
  color: #b26f18;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lunch-timer[hidden] {
  display: none;
}

.status-dot--online { background: #3DB54A; }
.status-dot--lunch { background: #E08E2B; }
.status-dot--away { background: #8E44AD; }
.status-dot--driving { background: #2E86DE; }
.status-dot--offline { background: #8B3A3A; }

.whos-online-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  grid-auto-columns: minmax(200px, 1fr);
  gap: 2px 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.whos-online-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 14px;
  min-width: 0;
}

.whos-online-name {
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whos-online-status {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.whos-online-empty {
  color: var(--text-light-muted);
  font-size: 13px;
  padding: 8px 4px;
}

.whos-online-online-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.whos-online-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  text-align: center;
}

.whos-online-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  border: 2px solid #3DB54A;
}

.whos-online-chip-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.whos-online-chip-status {
  font-size: 10px;
  font-weight: 600;
  color: #2E9E44;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 1px;
}

.whos-online-lunch-timer {
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(224, 142, 43, 0.12);
  color: #b26f18;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.whos-online-offline-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.whos-online-offline-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(8, auto);
  grid-auto-columns: minmax(160px, 1fr);
  gap: 6px 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.whos-online-offline-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-light-muted);
  padding: 3px 0;
}

.whos-online-offline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B4B2A9;
  flex: 0 0 6px;
}

.whos-online-offline-lastseen {
  color: #8B94A3;
  font-size: 11.5px;
}

.whos-online-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.whos-online-pill {
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-light-muted);
  font-weight: 600;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
}

.whos-online-pill:hover { border-color: var(--accent-deep); }

.whos-online-pill.is-active {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: var(--ink);
}

.status-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 780px) {
  .panel-section { padding: 14px 20px; }
}

/* ===== Admin page ===== */

/* ===== Admin page ===== */
.admin__header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.admin__link {
  color: var(--text-dark-muted);
  font-size: 13px;
  text-decoration: none;
}

.admin__link:hover { color: var(--accent); }

.admin__main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px 32px 70px;
}

.admin__card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 24px;
  margin-top: 24px;
}

.admin__card h2 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 18px;
  color: var(--text-light);
}

.admin__form .field { margin-bottom: 14px; }

.admin__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-light-muted);
  margin: 4px 0 18px;
  cursor: pointer;
}

.admin__checkbox input { width: 15px; height: 15px; }

#add-submit-btn {
  width: auto;
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

#add-submit-btn:hover { background: var(--accent-deep); }
#add-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.admin__list { display: flex; flex-direction: column; gap: 0; }

.admin__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
}

.admin__row:last-child { border-bottom: none; }

.admin__row-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.admin__row-username {
  display: block;
  font-size: 12.5px;
  color: var(--text-light-muted);
  margin-top: 2px;
}

.bonus-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-deep);
  background: rgba(214, 162, 76, 0.14);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bonus-summary {
  display: flex;
  gap: 10px;
  margin: 16px 0 14px;
}

.bonus-summary__card {
  flex: 1;
  background: #FAF8F4;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 10px 14px;
}

.bonus-summary__label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.bonus-summary__value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
}

.bonus-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
}

.bonus-list-header__filter {
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  width: 140px;
  font-family: var(--font-body);
}

.bonus-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
}

.bonus-list__year {
  position: sticky;
  top: 0;
  background: #FAF8F4;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-light-muted);
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-bottom: 1px solid var(--paper-line);
}

.bonus-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--paper-line);
}

.bonus-row:last-child {
  border-bottom: none;
}

.bonus-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

.bonus-row__dot--commission { background: #D6A24C; }
.bonus-row__dot--performance { background: #3DB54A; }
.bonus-row__dot--project { background: #2E86DE; }
.bonus-row__dot--travel-allowance { background: #8E44AD; }
.bonus-row__dot--transportation-allowance { background: #16A085; }

.bonus-row__main {
  flex: 1;
  min-width: 0;
}

.bonus-row__amount {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-light);
}

.bonus-row__type {
  font-size: 12px;
  color: var(--text-light-muted);
  margin-left: 6px;
}

.bonus-row__meta {
  font-size: 12px;
  color: var(--text-light-muted);
  margin-top: 1px;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.bonus-row__actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.bonus-row__actions button {
  background: transparent;
  border: 1px solid var(--paper-line);
  color: var(--text-light-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
}

.bonus-row__actions .remove {
  color: var(--error);
  border-color: rgba(192, 57, 43, 0.25);
}

.admin__remove-btn {
  background: transparent;
  border: 1px solid var(--paper-line);
  color: var(--error);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
}

.admin__remove-btn:hover { border-color: var(--error); background: rgba(192, 57, 43, 0.06); }

.admin__row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin__edit-btn {
  background: transparent;
  border: 1px solid var(--paper-line);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
}

.admin__edit-btn:hover { border-color: var(--accent-deep); background: rgba(182, 130, 47, 0.08); }

.admin__empty {
  color: var(--text-light-muted);
  font-size: 14px;
}

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

.bookings-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bookings-approve {
  color: #2E9E44 !important;
  border-color: #2E9E44 !important;
}

.bookings-approve:hover { background: rgba(46, 158, 68, 0.06) !important; }

/* ===== Check-in page ===== */
.checkin-page {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.checkin-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 32px 28px;
}

.checkin-card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 22px;
  color: var(--text-light);
}

.checkin-card select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--text-light);
}

.checkin-card input[readonly] {
  background: #F7F7F5;
  color: var(--text-light-muted);
}

.checkin-card textarea {
  width: 100%;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-light);
  resize: vertical;
  box-sizing: border-box;
}

.checkin-alert {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: var(--error);
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 4px 0 16px;
}

.checkin-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.checkin-btn {
  flex: 1;
  padding: 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.checkin-btn--ghost {
  background: #fff;
  border: 1px solid var(--paper-line);
  color: var(--text-light-muted);
}

.checkin-btn--ghost:hover { border-color: var(--text-light-muted); }

.checkin-btn--accent {
  background: var(--accent);
  border: none;
  color: var(--ink);
}

.checkin-btn--accent:hover { background: var(--accent-deep); }
.checkin-btn--accent:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 31, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  z-index: 50;
}

.modal-overlay:not([hidden]) {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: calc(100vh - 40px);
  margin: auto 0;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  padding: 26px 24px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--error);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  opacity: 0.7;
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--text-light);
}

.modal-card p {
  font-size: 14px;
  color: var(--text-light-muted);
  line-height: 1.5;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.bto-card {
  max-width: 520px;
}

.crm-modal-wide {
  width: min(1100px, calc(100vw - 60px));
  max-width: 1100px;
}

.bto-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bto-card select,
.bto-card textarea {
  width: 100%;
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-light);
  box-sizing: border-box;
}

.bto-card input[readonly] {
  background: #F7F7F5;
  color: var(--text-light-muted);
}

.bto-card {
  max-width: 520px;
}

.bto-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bto-card select,
.bto-card textarea {
  width: 100%;
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-light);
  box-sizing: border-box;
}

.bto-card input[readonly] {
  background: #F7F7F5;
  color: var(--text-light-muted);
}

/* ===== Sign-in log table ===== */
.checkins-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 32px;
  padding-right: 32px;
}

.log-filter {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.log-filter .field {
  margin-bottom: 0;
}

.log-filter__date-field {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

.log-filter input[type="date"] {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-light);
}

.log-filter .checkin-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--text-light-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 1px solid var(--paper-line);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--paper-line);
  color: var(--text-light);
  white-space: nowrap;
}

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

.data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

.data-table__empty {
  text-align: center;
  color: var(--text-light-muted);
  padding: 28px 14px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge--late {
  background: rgba(192, 57, 43, 0.1);
  color: var(--error);
}

.badge--ontime {
  background: rgba(46, 158, 68, 0.1);
  color: #2E9E44;
}

.checkin-expand-arrow {
  display: inline-block;
  margin-left: 6px;
  color: var(--text-light-muted);
  font-size: 11px;
}

.employee-name {
  font-weight: 600;
}

.country-flag {
  width: 16px;
  height: auto;
  vertical-align: middle;
  border-radius: 2px;
  margin-right: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.timeline-cell {
  padding: 0 !important;
  background: var(--paper);
}

.timeline {
  padding: 14px 20px 14px 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--paper-line);
  white-space: nowrap;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
}

.timeline-icon--in {
  background: rgba(46, 158, 68, 0.12);
  color: #2E9E44;
}

.timeline-icon--out {
  background: rgba(192, 57, 43, 0.12);
  color: var(--error);
}

.timeline-icon--status {
  font-size: 9px;
}

.timeline-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
  flex: 0 0 165px;
}

.timeline-label {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-light-muted);
  white-space: normal;
}

.timeline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.timeline-note {
  font-size: 12.5px;
  color: var(--text-light-muted);
  font-style: italic;
}

.data-table__row-detail td {
  background: var(--paper);
}

.timeline-entry-cell {
  padding-left: 44px !important;
}

.timeline-entry {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-late-cell,
.timeline-country-cell,
.timeline-reason-cell {
  vertical-align: middle;
}

@media (max-width: 780px) {
  .timeline-item { flex-wrap: wrap; white-space: normal; }
  .timeline-time { flex: 0 0 auto; }
}

/* ===== Calendar page ===== */
.cal-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 32px;
  padding-right: 32px;
}

.cal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 20px;
}

.cal-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light-muted);
  cursor: pointer;
}

.cal-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

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

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-light);
  font-size: 16px;
  cursor: pointer;
}

.cal-nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.cal-month-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-light);
  min-width: 160px;
  text-align: center;
}

.cal-date-center {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cal-date-center .cal-month-label {
  width: auto;
  min-width: 0;
}

.cal-date-picker-btn {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paper-line);
  border-radius: 9px;
  background: #fff;
  color: #2f62d9;
  cursor: pointer;
  overflow: hidden;
}

.cal-date-picker-btn svg {
  pointer-events: none;
}

.cal-date-picker-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cal-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cal-select {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text-light);
}

.cal-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light-muted);
  white-space: nowrap;
}

.cal-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-toolbar__actions .checkin-btn {
  flex: 0 0 auto;
  padding: 9px 16px;
}

.bto-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.bto-title-row h2 {
  margin: 0;
}

.cal-pto-balance {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--error);
  white-space: nowrap;
}

.cal-view-toggle {
  display: flex;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  overflow: hidden;
}

.cal-view-btn {
  padding: 8px 14px;
  background: #fff;
  border: none;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-light-muted);
  cursor: pointer;
}

.cal-view-btn.is-active {
  background: var(--accent);
  color: var(--ink);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-line);
  gap: 1px;
}

.cal-head {
  background: var(--paper);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light-muted);
}

.cal-cell {
  background: #fff;
  padding: 8px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-cell--muted {
  background: var(--paper);
}

.cal-cell--weekend {
  background: #E4E5E1;
}

.cal-cell--weekend.cal-cell--muted {
  background: #EAEBE7;
}

/* Public holidays from Company Settings are non-working days, shown like weekends. */
.cal-cell--holiday {
  background: #E4E5E1;
}

.cal-cell--holiday.cal-cell--muted {
  background: #EAEBE7;
}

.cal-head--weekend {
  background: #DADBD6;
}

.cal-cell--muted .cal-cell__day {
  color: var(--text-light-muted);
  opacity: 0.5;
}

.cal-cell__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-light);
}

.cal-cell__entries {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-pill {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-pill--manageable {
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cal-pill--manageable:hover {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.cal-pill--manageable:active {
  cursor: grabbing;
}

.cal-grid--week .cal-cell {
  min-height: 320px;
}

.cal-grid--day {
  grid-template-columns: 1fr;
}

.cal-grid--day .cal-cell {
  min-height: 420px;
  padding: 20px;
}

.cal-grid--day .cal-pill {
  white-space: normal;
  font-size: 13px;
  padding: 8px 12px;
}

.cal-cell--today {
  box-shadow: inset 0 0 0 2px var(--accent, #B9822F);
}

.cal-cell__empty {
  color: var(--text-light-muted);
  font-size: 13px;
  font-style: italic;
}

.mobile-day-view {
  width: 100%;
}

.mobile-day-title {
  margin: 4px 0 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
}

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

.mobile-day-stat {
  min-width: 0;
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 9px;
  text-align: center;
}

.mobile-day-stat strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 20px;
}

.mobile-day-stat span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-day-stat--present { background: #eef9f1; color: #2e9e44; }
.mobile-day-stat--late { background: #fff6e8; color: #c68218; }
.mobile-day-stat--wfh { background: #eef6ff; color: #2e86de; }
.mobile-day-stat--early { background: #fff0ef; color: #c0392b; }
.mobile-day-stat--timeoff { background: #f5effa; color: #7b4aa0; }

.mobile-day-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-day-entry {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 64px 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 0;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  color: var(--text-light);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.mobile-day-entry__line {
  position: absolute;
  left: 63px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
}

.mobile-day-entry__time {
  padding-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-align: center;
}

.mobile-day-entry__avatar {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf0f7;
  color: #305477;
  font-size: 12px;
  font-weight: 700;
}

.mobile-day-entry__body {
  min-width: 0;
}

.mobile-day-entry__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-day-entry__top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.mobile-day-entry__badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-day-entry__meta {
  display: block;
  margin-top: 4px;
  color: var(--text-light-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-day-entry__arrow {
  color: var(--text-light-muted);
  font-size: 19px;
}

.mobile-day-empty {
  margin: 0;
  padding: 30px 16px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  color: var(--text-light-muted);
  font-size: 13.5px;
  font-style: italic;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
}

.cal-legend__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-light-muted);
}

.cal-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 12px;
}

@media (max-width: 900px) {
  .cal-toolbar { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   EPROFILE PAGE
===================================================== */

.eprofile-page {
  background: var(--paper);
  min-height: 100vh;
  color: #111820;
}

.eprofile {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 38px 32px 70px;
}

.eprofile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #ffffff;
  border: 1px solid #dde0da;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 22px;
}

.eprofile-avatar {
  width: 72px;
  height: 72px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #111820;
  color: #ffffff;

  font-size: 22px;
  font-weight: 700;

  flex-shrink: 0;
  overflow: hidden;
}

.eprofile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eprofile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.eprofile-photo-btn {
  border: 1px solid #d9ddd6;
  background: #ffffff;
  color: #303741;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.eprofile-photo-btn:hover {
  background: #f6f7f4;
}

.eprofile-header__info {
  min-width: 0;
  flex: 1;
}

.eprofile-header__info h1 {
  margin: 0 0 4px;
  font-size: 25px;
  font-weight: 700;
}

.eprofile-position {
  margin: 0;
  color: #59616d;
  font-size: 14px;
}

.eprofile-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 11px;
  color: #747b84;
  font-size: 13px;
}

.eprofile-header__actions {
  display: flex;
  gap: 10px;
}

.eprofile-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dde0da;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

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

.eprofile-picker label {
  font-weight: 600;
  color: #555d68;
}

.eprofile-picker select {
  flex: 1;
  max-width: 320px;
  border: 1px solid #d9ddd6;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

.eprofile-card {
  background: #ffffff;
  border: 1px solid #dde0da;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.eprofile-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eceee9;
}

.eprofile-card__header h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.eprofile-card__header p {
  margin: 0;
  color: #7b8189;
  font-size: 13px;
}

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

.eprofile-field {
  min-width: 0;
}

.eprofile-field--wide {
  grid-column: span 2;
}

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

.eprofile-field label {
  display: block;
  margin-bottom: 7px;
  color: #555d68;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.eprofile-field input,
.eprofile-field textarea,
.eprofile-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9ddd6;
  border-radius: 9px;
  background: #f8f9f7;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #151a20;
  outline: none;
}

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

.eprofile-field input[readonly],
.eprofile-field textarea[readonly] {
  cursor: default;
}

.eprofile-field input:not([readonly]):focus,
.eprofile-field textarea:not([readonly]):focus {
  background: #ffffff;
  border-color: #ca942e;
  box-shadow: 0 0 0 3px rgba(202, 148, 46, 0.12);
}

.eprofile-btn {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.eprofile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.eprofile-btn--primary {
  background: #dda23d;
  color: #151a20;
}

.eprofile-btn--primary:hover {
  background: #d09635;
}

.eprofile-btn--secondary {
  background: #ffffff;
  border: 1px solid #d9ddd6;
  color: #303741;
}

.eprofile-btn--secondary:hover {
  background: #f6f7f4;
}

.eprofile-badge {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f4ead6;
  color: #855f18;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eprofile-checkbox-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.eprofile-switch {
  position: relative;
  width: 44px;
  height: 24px;
  margin-bottom: 8px;
}

.eprofile-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.eprofile-switch span {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #d6d9d4;
}

.eprofile-switch span::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.eprofile-switch input:checked + span {
  background: #dda23d;
}

.eprofile-switch input:checked + span::before {
  transform: translateX(20px);
}

.eprofile-inline-form {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  background: #FAF8F4;
}

.eprofile-empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d8dcd5;
  border-radius: 10px;
  background: #fafbf9;
  color: #92989f;
  font-size: 13px;
}

@media (max-width: 760px) {
  .eprofile {
    width: min(100% - 24px, 1220px);
    padding-top: 18px;
  }

  .eprofile-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .eprofile-header__actions {
    width: 100%;
  }

  .eprofile-header__actions .eprofile-btn {
    flex: 1;
  }

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

  .eprofile-field--wide,
  .eprofile-field--full {
    grid-column: auto;
  }

  .eprofile-card {
    padding: 20px 18px;
  }

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

/* =====================================================
   MOBILE DASHBOARD
   Keeps desktop unchanged
===================================================== */
@media (max-width: 760px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .dash {
    width: 100%;
    min-height: 100vh;
    padding-top: 88px;
  }

  /* ---------- Header ---------- */

  .dash__header {
    min-height: 88px;
    padding: 14px 14px;
    gap: 12px;
    align-items: flex-start;
  }

  .global-search {
  display: none;
}

  .dash__brand {
  flex-shrink: 0;
}

.admin__header-actions {
  flex-shrink: 0;
}

  .dash__brand {
    flex-direction: column;
    align-items: center;
    min-width: 0;
    gap: 3px;
  }

  .dash__mark {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .dash__welcome {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 11.5px;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin__header-actions {
    gap: 7px;
    flex-shrink: 0;
  }

  .admin__header-actions .admin__link {
    display: none;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .icon-btn svg {
    width: 17px;
    height: 17px;
  }

  /* ---------- Header dropdowns ---------- */

  .dropdown-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    left: auto;
    max-width: calc(100vw - 24px);
  }

  .dropdown-menu--wide {
    width: min(320px, calc(100vw - 24px));
  }

  #account-menu {
    width: min(260px, calc(100vw - 24px));
  }

  /* ---------- Clocks ---------- */

  .clock-strip {
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 12px 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .clock-strip::-webkit-scrollbar {
    display: none;
  }

  .clock-item {
    min-width: 145px;
    flex: 0 0 145px;
    padding: 10px 12px;
    border-radius: 10px;
    scroll-snap-align: start;
  }

  .clock-flag {
    width: 24px;
  }

  .clock-country {
    font-size: 10px;
  }

  .clock-time {
    font-size: 13px;
    min-width: 92px;
  }

  /* ---------- Dashboard sections ---------- */

  .panel-section {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto 0;
    padding: 16px;
    border: 1px solid var(--paper-line);
    border-radius: 12px;
    background: #fff;
  }

  .panel-section__title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* ---------- General dashboard buttons ---------- */

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

  .panel-btn,
  .panel-btn--fixed,
  .panel-btn--quiet,
  .panel-btn--full {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    justify-content: flex-start;
    border-radius: 10px;
    font-size: 13px;
  }

  .panel-btn__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .panel-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ---------- STATUS ---------- */

  #status-signin-btn,
  #status-signout-btn {
    grid-column: span 1;
  }

  .menu-wrap--status {
    grid-column: 1 / -1;
    width: 100%;
  }

  .menu-wrap--status .panel-btn {
    width: 100%;
  }

  .menu-wrap--status .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
  }

  /* ---------- USERS ---------- */

  #users-toggle + .panel-row .panel-btn {
    min-height: 52px;
  }

  /* ---------- OUTSIDE TOOLS ---------- */

  #outside-tools-toggle + .panel-row a {
    min-height: 56px;
  }

  .panel-btn__external {
    margin-left: auto;
    flex-shrink: 0;
  }

  /* ---------- Who's Online ---------- */

  .whos-online-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .whos-online-pills::-webkit-scrollbar {
    display: none;
  }

  .whos-online-pill {
    flex: 0 0 auto;
  }

  .whos-online-online-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 6px;
    margin-bottom: 18px;
  }

  .whos-online-chip {
    width: auto;
    min-width: 0;
  }

  .whos-online-avatar {
    width: 38px;
    height: 38px;
  }

  .whos-online-chip-name {
    font-size: 10.5px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .whos-online-chip-status {
    font-size: 9px;
  }

  .whos-online-offline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .whos-online-offline-item {
    padding: 8px 2px;
    border-bottom: 1px solid var(--paper-line);
    font-size: 12.5px;
  }

  .whos-online-offline-item:last-child {
    border-bottom: 0;
  }

  /* ---------- Modals ---------- */

  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-width: none;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px 16px 10px 10px;
    padding: 22px 18px;
  }

  .bto-card {
    max-width: none;
  }

  .bto-dates {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-actions {
    gap: 8px;
  }

  .modal-actions .checkin-btn {
    min-height: 44px;
  }

  /* ---------- Bonus popup ---------- */

  .bonus-summary {
    flex-direction: column;
  }

  .bonus-list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .bonus-list-header__filter {
    width: 100%;
  }

  .bonus-row {
    align-items: flex-start;
    gap: 8px;
  }

  .bonus-row__actions {
    flex-direction: column;
  }

  /* ---------- Empty bottom content ---------- */

  .dash__main {
    padding: 16px 12px 30px;
  }
}


/* =====================================================
   VERY SMALL PHONES
===================================================== */
@media (max-width: 390px) {

  .dash__header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .admin__header-actions {
    gap: 5px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .dash__welcome {
    max-width: 125px;
  }

  .panel-section {
    width: calc(100% - 16px);
    padding: 14px;
  }

  .panel-row {
    gap: 8px;
  }

  .panel-btn,
  .panel-btn--fixed,
  .panel-btn--quiet {
    padding: 10px;
    font-size: 12px;
  }

  .whos-online-online-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* =====================================================
   CALENDAR ENTRY DETAIL
===================================================== */

.entry-detail-card {
  width: min(440px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 16px;
}

.entry-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
  margin-bottom: 18px;
}

.entry-detail-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef1f4;
  color: #26313d;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.entry-detail-header h2 {
  margin: 0;
  font-size: 17px;
  color: #111820;
}

.entry-detail-header p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #7a8490;
}

.entry-detail-list {
  border: 1px solid #e7e9e6;
  border-radius: 12px;
  overflow: hidden;
}

.entry-detail-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid #edf0ed;
}

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

.entry-detail-label {
  font-size: 11px;
  color: #7a8490;
}

.entry-detail-row strong {
  font-size: 12px;
  font-weight: 600;
  color: #202833;
  overflow-wrap: anywhere;
}

.entry-detail-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.entry-detail-value--late {
  color: #b94343 !important;
}

.entry-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.entry-detail-actions .checkin-btn {
  min-width: 90px;
}

/* =====================================================
   CALENDAR BOOKINGS REDESIGN (base rules — the mobile
   overrides for these already exist further down)
===================================================== */

.bookings-toolbar {
  margin-bottom: 16px;
}

.bookings-filter-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f0f1ee;
  border-radius: 10px;
}

.bookings-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #5b6472;
  cursor: pointer;
}

.bookings-filter-btn.is-active {
  background: #fff;
  color: #111820;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.bookings-filter-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d6a24c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.bookings-section {
  margin-bottom: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
}

.bookings-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bookings-section__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-light);
}

.bookings-section__header p {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--text-light-muted);
}

.bookings-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0f1ee;
  color: #5b6472;
  font-size: 12px;
  font-weight: 700;
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
}

.booking-card--sent {
  grid-template-columns: minmax(0, 1fr);
}

.booking-card__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf0f7;
  color: #305477;
  font-size: 12px;
  font-weight: 700;
}

.booking-card__body {
  min-width: 0;
}

.booking-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.booking-card__top strong {
  font-size: 13px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-card__date {
  margin-top: 3px;
  font-size: 10px;
  color: #737e89;
}

.booking-card__type {
  margin-top: 2px;
  font-size: 10px;
  color: #4f5965;
}

.booking-card__notes {
  margin-top: 5px;
  font-size: 10px;
  color: #7c858e;
  font-style: italic;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.booking-status--pending {
  background: #fff3df;
  color: #bb7413;
}

.booking-status--approved {
  background: #eaf7ee;
  color: #2d9143;
}

.booking-status--denied {
  background: #fdeceb;
  color: #b33d3d;
}

.booking-card__actions {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.booking-action {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.booking-action--approve {
  border: 1px solid #b8dfc1;
  background: #edf8f0;
  color: #27833c;
}

.booking-action--deny {
  border: 1px solid #edc2c0;
  background: #fff;
  color: #b54040;
}

.bookings-empty {
  padding: 22px 12px;
  text-align: center;
  font-size: 11px;
  color: #7a8490;
}

/* =====================================================
   CALENDAR DAY SUMMARY
===================================================== */

.day-summary-card {
  width: min(440px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 16px;
}

.day-summary-header {
  padding-right: 28px;
  margin-bottom: 16px;
}

.day-summary-header h2 {
  margin: 0;
  font-size: 17px;
  color: #111820;
}

.day-summary-header p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #7a8490;
}

.day-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.day-summary-stat {
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 9px;
  text-align: center;
}

.day-summary-stat strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 18px;
}

.day-summary-stat span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.day-summary-stat--present { background: #eef9f1; color: #2e9e44; }
.day-summary-stat--late { background: #fff6e8; color: #c68218; }
.day-summary-stat--wfh { background: #eef6ff; color: #2e86de; }
.day-summary-stat--early { background: #fff0ef; color: #c0392b; }
.day-summary-stat--timeoff { background: #f5effa; color: #7b4aa0; }
.day-summary-stat--event { background: #eef1fc; color: #2f62d9; }

.day-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.day-summary-entry {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #e7e9e6;
  border-radius: 9px;
}

.day-summary-entry__avatar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf0f7;
  color: #305477;
  font-size: 11px;
  font-weight: 700;
}

.day-summary-entry__body {
  min-width: 0;
}

.day-summary-entry__body strong {
  display: block;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-summary-entry__body span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #7a8490;
}

.day-summary-entry__badge {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.day-summary-empty {
  margin: 0;
  padding: 24px 14px;
  text-align: center;
  font-size: 11px;
  color: #7a8490;
}

.day-summary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}
/* =====================================================
   MOBILE CALENDAR
===================================================== */

@media (max-width: 760px) {
  .cal-page {
    width: 100%;
    max-width: none;
    padding: 18px 14px 90px;
  }

  .cal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 1px solid #e3e5e8;
  }

  .cal-tab {
    position: relative;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
  }

  .cal-tab.is-active {
    color: #111820;
    border-bottom-color: #d6a24c;
  }

  .cal-bookings-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d6a24c;
    color: #111820;
    font-size: 9px;
    font-weight: 700;
  }

  .cal-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

    .cal-toolbar__nav {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 38px;
    gap: 8px;
    align-items: center;
  }

  .cal-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e1e3de;
    color: #111820;
    font-size: 18px;
  }

  .cal-date-center {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .cal-month-label {
    width: auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cal-date-picker-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #111820;
  }

  .cal-toolbar__filters {
    width: 100%;
  }

  .cal-check {
    min-height: 30px;
    font-size: 11.5px;
    color: #5b6472;
  }

  .cal-check input {
    accent-color: #2f62d9;
  }

  .cal-toolbar__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .cal-toolbar__actions .checkin-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 5px;
    border-radius: 8px;
    font-size: 10.5px;
    white-space: normal;
    line-height: 1.15;
  }

  .cal-toolbar__actions #cal-book-btn {
    background: #d6a24c;
    border-color: #d6a24c;
    color: #111820;
  }

  .cal-view-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e1e3de;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .cal-view-btn {
    width: 100%;
    min-height: 36px;
    padding: 6px;
    background: #fff;
    color: #5b6472;
    font-size: 11px;
  }

  .cal-view-btn.is-active {
    background: #12181f;
    color: #fff;
  }

  .cal-grid--day {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .mobile-day-view {
    width: 100%;
  }

  .mobile-day-title {
    margin: 4px 0 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: #111820;
  }

  .mobile-day-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
  }

  .mobile-day-stat {
    min-width: 0;
    min-height: 48px;
    padding: 7px 3px;
    border-radius: 7px;
    text-align: center;
  }

  .mobile-day-stat strong {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-display);
    font-size: 14px;
  }

  .mobile-day-stat span {
    display: block;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-day-stat--present {
    background: #eef9f1;
    color: #2e9e44;
  }

  .mobile-day-stat--late {
    background: #fff6e8;
    color: #c68218;
  }

  .mobile-day-stat--wfh {
    background: #eef6ff;
    color: #2e86de;
  }

  .mobile-day-stat--early {
    background: #fff0ef;
    color: #c0392b;
  }

  .mobile-day-stat--timeoff {
    background: #f5effa;
    color: #7b4aa0;
  }

  .mobile-day-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .mobile-day-entry {
    position: relative;
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 48px 34px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 8px;
    padding: 9px 9px 9px 0;
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    color: #111820;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
  }

  .mobile-day-entry__line {
    position: absolute;
    left: 47px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
  }

  .mobile-day-entry__time {
    padding-left: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    color: #303741;
    text-align: center;
  }

  .mobile-day-entry__avatar {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf0f7;
    color: #305477;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-day-entry__body {
    min-width: 0;
  }

  .mobile-day-entry__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .mobile-day-entry__top strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .mobile-day-entry__badge {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 7.5px;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-day-entry__meta {
    display: block;
    margin-top: 4px;
    color: #697586;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-day-entry__arrow {
    color: #8b94a3;
    font-size: 17px;
  }

  .mobile-day-empty {
    margin: 0;
    padding: 26px 10px;
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 9px;
    color: #7b8189;
    font-size: 12px;
    font-style: italic;
  }

  .cal-grid--week {
    width: 100%;
    grid-template-columns: repeat(7, minmax(70px, 1fr));
    overflow-x: auto;
  }

  .cal-grid--week .cal-cell {
    min-height: 220px;
    padding: 6px;
  }

  .cal-grid--week .cal-head {
    padding: 8px 5px;
    font-size: 10px;
  }

  .cal-grid:not(.cal-grid--day):not(.cal-grid--week) {
    width: 100%;
    grid-template-columns: repeat(7, minmax(46px, 1fr));
  }

  .cal-grid:not(.cal-grid--day):not(.cal-grid--week) .cal-head {
    min-width: 0;
    padding: 8px 2px;
    font-size: 8px;
    text-align: center;
  }

  .cal-grid:not(.cal-grid--day):not(.cal-grid--week) .cal-cell {
    min-width: 0;
    min-height: 82px;
    padding: 5px;
  }

  .cal-grid:not(.cal-grid--day):not(.cal-grid--week) .cal-cell__day {
    font-size: 12px;
  }

  .cal-grid:not(.cal-grid--day):not(.cal-grid--week) .cal-pill {
    width: 100%;
    padding: 3px 4px;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

      .cal-legend {
    display: none;
  }

  #cal-view-bookings {
    padding-bottom: 80px;
  }

  .bookings-toolbar {
    margin-bottom: 12px;
  }

  .bookings-filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .bookings-filter-btn {
    min-height: 38px;
    padding: 0 8px;
  }

  .bookings-section {
    padding: 13px;
    border-radius: 12px;
  }

  .booking-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .booking-card__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .booking-action {
    min-height: 36px;
  }

  .booking-card__top {
    align-items: flex-start;
  }

  .booking-status {
    flex: 0 0 auto;
  }

  .day-summary-card {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 17px;
  }

  .day-summary-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .day-summary-stat {
    min-height: 58px;
    padding: 8px;
  }

  .day-summary-stat strong {
    font-size: 17px;
  }

  .day-summary-entry {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .day-summary-actions .checkin-btn {
    width: 100%;
  }
}

/* =====================================================
   REPORTS PAGE
===================================================== */

.reports-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px 32px 70px;
}

.reports-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.reports-heading h1 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 6px;
}

.reports-heading p {
  margin: 0;
  color: var(--text-light-muted);
  font-size: 14px;
}


/* Filters */

.reports-filters {
  display: grid;
  grid-template-columns:
    minmax(150px, 1fr)
    minmax(150px, 1fr)
    minmax(180px, 1fr)
    minmax(220px, 1.4fr);
  gap: 14px;

  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.reports-filters .field {
  margin: 0;
}

.reports-filters input,
.reports-filters select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--paper-line);
  border-radius: 7px;
  background: #fff;
  padding: 0 11px;
  font-family: var(--font-body);
  font-size: 13.5px;
}


/* KPI cards */

.reports-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.report-stat {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 17px 16px;
  min-height: 92px;
}

.report-stat span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.report-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--text-light);
}


/* Give useful KPI differentiation */

.report-stat:nth-child(3) strong {
  color: #2E9E44;
}

.report-stat:nth-child(4) strong {
  color: #D18716;
}

.report-stat:nth-child(5) strong {
  color: #C0392B;
}

.report-stat:nth-child(6) strong {
  color: #6B4E9B;
}


/* Report tabs */

.report-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--paper-line);
}

.report-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  color: var(--text-light-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.report-tab:hover {
  color: var(--text-light);
}

.report-tab.is-active {
  color: var(--text-light);
  border-bottom-color: var(--accent);
}


/* Main report area */

.report-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 20px;
}

.report-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 18px;
}


/* Report values */

.report-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.report-badge--late {
  background: rgba(214, 162, 76, 0.16);
  color: #9A6A16;
}

.report-badge--early {
  background: rgba(192, 57, 43, 0.10);
  color: var(--error);
}

.report-badge--timeoff {
  background: rgba(107, 78, 155, 0.12);
  color: #6B4E9B;
}


/* =====================================================
   REPORTS MOBILE
===================================================== */

@media (max-width: 760px) {

  .reports-page {
    width: calc(100% - 24px);
    padding: 22px 0 40px;
  }

  .reports-heading h1 {
    font-size: 25px;
  }

  .reports-filters {
    grid-template-columns: 1fr;
    padding: 15px;
  }

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

  .report-stat {
    min-height: 82px;
    padding: 14px;
  }

  .report-stat strong {
    font-size: 23px;
  }

  .report-tabs {
    overflow-x: auto;
  }

  .report-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .report-card {
    padding: 14px;
  }

  .report-card .table-wrap {
    overflow-x: auto;
  }

  .report-card .data-table {
    min-width: 650px;
  }
}

/* =====================================================
   REPORTS DASHBOARD V2
===================================================== */

.reports-heading {
  align-items: center;
}

.report-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 1px solid #d39731;
  background: var(--accent);
  color: #111820;

  height: 42px;
  padding: 0 18px;

  border-radius: 8px;

  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;

  cursor: pointer;
}

.report-export-btn:hover {
  filter: brightness(.97);
}


/* KPI cards */

.report-stat small {
  display: block;
  margin-top: 4px;

  color: var(--text-light-muted);
  font-size: 10.5px;
}

.report-stat--present strong {
  color: #2E9E44;
}

.report-stat--late strong {
  color: #D18716;
}

.report-stat--early strong {
  color: #C0392B;
}

.report-stat--timeoff strong {
  color: #6B4E9B;
}


/* Dashboard overview */

.reports-overview-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(380px, .9fr);

  gap: 16px;

  margin-bottom: 30px;
}


.report-dashboard-card {
  background: #fff;

  border:
    1px solid var(--paper-line);

  border-radius: 12px;

  padding: 20px;
}


.report-dashboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  margin-bottom: 22px;
}


.report-dashboard-card__header h2 {
  margin: 0 0 4px;

  font-family: var(--font-display);
  font-size: 16px;
}


.report-dashboard-card__header p {
  margin: 0;

  color: var(--text-light-muted);
  font-size: 11.5px;
}


/* Attendance breakdown */

.attendance-breakdown {
  display: flex;
  flex-direction: column;
  gap: 19px;
}


.attendance-breakdown__row {
  display: grid;

  grid-template-columns:
    120px
    minmax(0, 1fr)
    40px;

  align-items: center;
  gap: 12px;
}


.attendance-breakdown__label {
  display: flex;
  align-items: center;
  gap: 8px;

  color: #404956;

  font-size: 12px;
  font-weight: 600;
}


.attendance-dot {
  width: 9px;
  height: 9px;

  border-radius: 50%;
}


.attendance-dot--ontime {
  background: #38A65A;
}

.attendance-dot--late {
  background: #D69E34;
}

.attendance-dot--early {
  background: #C34A3D;
}

.attendance-dot--timeoff {
  background: #7861A8;
}


.attendance-breakdown__bar {
  height: 9px;

  background: #ECECEA;

  border-radius: 999px;

  overflow: hidden;
}


.attendance-breakdown__fill {
  width: 0;
  height: 100%;

  border-radius: inherit;

  transition:
    width .35s ease;
}


.attendance-breakdown__fill--ontime {
  background: #38A65A;
}

.attendance-breakdown__fill--late {
  background: #D69E34;
}

.attendance-breakdown__fill--early {
  background: #C34A3D;
}

.attendance-breakdown__fill--timeoff {
  background: #7861A8;
}


.attendance-breakdown__row strong {
  text-align: right;

  font-family: var(--font-display);
  font-size: 13px;
}


/* Leaderboard */

.report-mini-table {
  width: 100%;
}


.report-mini-table__head,
.report-mini-table__row {
  display: grid;

  grid-template-columns:
    minmax(150px, 1.5fr)
    55px
    75px
    75px;

  align-items: center;

  gap: 8px;
}


.report-mini-table__head {
  padding:
    8px 4px 10px;

  border-bottom:
    1px solid var(--paper-line);

  color:
    var(--text-light-muted);

  font-size: 9.5px;
  font-weight: 700;

  text-transform: uppercase;
}


.report-mini-table__row {
  min-height: 44px;

  padding: 7px 4px;

  border-bottom:
    1px solid var(--paper-line);

  font-size: 11.5px;
}


.report-mini-table__row:last-child {
  border-bottom: 0;
}


.report-leader-name {
  display: flex;
  align-items: center;

  min-width: 0;

  font-weight: 600;
}


.report-leader-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  margin-right: 8px;

  flex-shrink: 0;

  border-radius: 50%;

  background: #F1F1EE;

  color: var(--text-light-muted);

  font-size: 10px;
}


.report-mini-table__empty {
  padding: 25px 4px;

  color: var(--text-light-muted);

  text-align: center;
  font-size: 12px;
}


/* Details heading */

.report-section-heading {
  display: flex;
  justify-content: space-between;

  margin-bottom: 4px;
}


.report-section-heading h2 {
  margin: 0 0 3px;

  font-family: var(--font-display);
  font-size: 17px;
}


.report-section-heading p {
  margin: 0;

  color: var(--text-light-muted);

  font-size: 11.5px;
}


/* Detailed report */

.report-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 17px;
}


.report-card__header h2 {
  margin: 0 0 4px;
}


.report-card__header p {
  margin: 0;

  color: var(--text-light-muted);

  font-size: 11.5px;
}


.report-record-count {
  display: inline-flex;
  align-items: center;

  height: 28px;

  padding: 0 10px;

  flex-shrink: 0;

  border-radius: 999px;

  background: #F0F0ED;

  color: var(--text-light-muted);

  font-size: 10.5px;
  font-weight: 600;
}


/* =====================================================
   REPORTS MOBILE V2
===================================================== */

@media (max-width: 900px) {

  .reports-overview-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 760px) {

  .reports-heading {
    align-items: flex-start;
    gap: 14px;
  }

  .report-export-btn {
    flex-shrink: 0;

    padding: 0 12px;
  }


  .attendance-breakdown__row {
    grid-template-columns:
      95px
      minmax(0, 1fr)
      30px;

    gap: 8px;
  }


  .report-mini-table {
    overflow-x: auto;
  }


  .report-mini-table__head,
  .report-mini-table__row {
    min-width: 460px;
  }


  .report-card__header {
    flex-direction: column;
    gap: 8px;
  }

}

/* =====================================================
   REPORT EXPORT BUTTONS
===================================================== */

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

.report-export-btn--csv {
  background: #fff;
  color: var(--text-light);
  border: 1px solid var(--paper-line);
}

.report-export-btn--csv:hover {
  background: #f7f7f5;
}

.report-export-btn--pdf {
  background: var(--accent);
  color: #111820;
  border: 1px solid #d39731;
}

.report-export-btn--pdf:hover {
  filter: brightness(.97);
}

@media (max-width: 760px) {
  .report-export-actions {
    gap: 6px;
  }

  .report-export-btn {
    padding: 0 10px;
    font-size: 11px;
  }

  .report-export-btn svg {
    width: 14px;
    height: 14px;
  }
}

.mobile-dashboard {
  display: none;
}

@media (max-width: 760px) {
  .mobile-dashboard {
    display: block;
    padding: 14px 14px 90px;
  }

  .mobile-dashboard + * {
    display: none;
  }

  .mobile-status-row span {
    font-size: 12px;
    color: #697586;
  }

  .mobile-status-row strong {
    font-size: 15px;
    color: #17202c;
  }

  .mobile-status-message strong {
    font-size: 14px;
    color: #17202c;
  }

  .mobile-status-message span {
    font-size: 12px;
    color: #697586;
  }

  .mobile-online-person:last-child {
    border-bottom: 0;
  }

  .mobile-online-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #20a74d;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #dfe3e7;
    backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav a {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #737c89;
    text-decoration: none;
    font-size: 10px;
    border-radius: 10px;
  }

  .mobile-bottom-nav button {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c0392b;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}

.mobile-bottom-nav button svg {
  stroke: #c0392b;
}

  .mobile-bottom-nav a.is-active {
    color: #1469cf;
    background: #edf4ff;
    font-weight: 700;
  }
}








.clock-item__icon,
.clock-zone,
.clock-city,
.clock-date {
  display: none;
}

.clock-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .clock-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 160px;
    gap: 12px;
    padding: 14px 16px 16px;
    overflow-x: auto;
    background: #f7f9fc;
    border-bottom: 1px solid var(--paper-line);
    scroll-snap-type: x proximity;
  }

  .clock-strip::-webkit-scrollbar {
    display: none;
  }

  .clock-item {
    min-height: 145px;
    padding: 12px 12px;
    border: 1px solid #d9e0ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    scroll-snap-align: start;
  }

.clock-flag {
  display: block;
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

  .clock-item__icon {
  display: none;
}

  .clock-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.15;
  }

  .clock-zone {
    display: block;
    font-size: 11px;
    color: var(--text-light-muted);
  }

  .clock-country {
    display: none;
  }

  .clock-city {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
  }

  .clock-time {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.01em;
  }

  .clock-date {
    display: block;
    font-size: 12px;
    color: var(--text-light-muted);
    margin-top: 2px;
  }
}

@media (max-width: 768px) {
  .panel-section__title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
    font-size: 12px;
  }

  .panel-section__title > span:first-child {
    order: 1;
  }

  .panel-title-icon {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    padding: 0;
    background: transparent;
    color: #2f62d9;
  }

  .panel-title-icon svg {
    width: 24px;
    height: 24px;
  }

  .panel-title-icon--status svg {
    width: 25px;
    height: 25px;
  }

  .panel-title-icon--users svg {
    width: 25px;
    height: 25px;
  }

  .panel-title-icon--utilities svg {
    width: 23px;
    height: 23px;
  }

  .panel-title-icon--tools svg {
    width: 23px;
    height: 23px;
  }

  .panel-title-icon--online svg {
    width: 24px;
    height: 24px;
  }

  .panel-section__arrow {
    order: 3;
    margin-left: auto;
    margin-right: 0;
    color: #60728a;
  }
}

/* =====================================================
   SEARCH PAGE
===================================================== */

.search-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px 32px 70px;
}

.search-heading {
  margin-bottom: 18px;
}

.search-heading h1 {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-light);
}

.search-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light-muted);
}

.search-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.search-back:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  text-decoration: none;
}

/* ---------- Filter card ---------- */

.search-filter-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.search-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
}

.search-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field--wide {
  grid-column: span 1;
}

.search-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light-muted);
}

.search-field input,
.search-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--paper-line);
  border-radius: 9px;
  background: #fff;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-light);
  outline: none;
}

.search-field input:focus,
.search-field select:focus {
  border-color: #2f62d9;
  box-shadow: 0 0 0 3px rgba(47, 98, 217, 0.10);
}

.search-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.search-filter-actions .checkin-btn {
  flex: 0 0 auto;
  min-width: 120px;
  min-height: 42px;
}

.search-submit-btn {
  min-width: 130px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.search-submit-btn:hover {
  background: var(--accent-deep);
}

.search-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Results ---------- */

.search-results-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  padding: 18px;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-line);
}

.search-results-header h2 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
}

.search-results-header p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-light-muted);
}

.search-results {
  display: flex;
  flex-direction: column;
}

.search-result-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--paper-line);
  color: inherit;
  text-decoration: none;
}

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

.search-result-row:hover {
  background: #fafbfc;
}

.search-result-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f1ff;
  color: #27568f;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.search-result-main {
  min-width: 0;
}

.search-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-result-top strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-type {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.search-result-type--checkin {
  background: rgba(46, 158, 68, 0.12);
  color: #2E9E44;
}

.search-result-type--signout {
  background: rgba(192, 57, 43, 0.10);
  color: #C0392B;
}

.search-result-type--late {
  background: rgba(224, 142, 43, 0.14);
  color: #B26F18;
}

.search-result-type--early {
  background: rgba(192, 57, 43, 0.10);
  color: #C0392B;
}

.search-result-type--wfh {
  background: rgba(46, 134, 222, 0.12);
  color: #2E86DE;
}

.search-result-type--timeoff {
  background: rgba(142, 68, 173, 0.12);
  color: #8E44AD;
}

.search-result-type--event {
  background: rgba(47, 98, 217, 0.10);
  color: #2f62d9;
}

.search-result-date {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-light-muted);
}

.search-result-details {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-light-muted);
}

.search-result-arrow {
  color: #8b94a3;
  font-size: 22px;
  line-height: 1;
}

.search-empty {
  padding: 34px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light-muted);
}

/* =====================================================
   SEARCH PAGE - TABLET
===================================================== */

@media (max-width: 980px) {
  .search-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================
   SEARCH PAGE - MOBILE
===================================================== */

@media (max-width: 760px) {
  .search-page {
    width: 100%;
    padding: 20px 14px 90px;
  }

  .search-heading {
    margin-bottom: 14px;
  }

  .search-heading h1 {
    font-size: 22px;
  }

  .search-heading p {
    font-size: 12.5px;
  }

  .search-back {
  font-size: 12px;
  color: #2f62d9;
}

  .search-filter-card,
  .search-results-card {
    border-radius: 13px;
    padding: 14px;
  }

  .search-filter-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .search-field input,
  .search-field select {
    min-height: 44px;
    font-size: 13px;
  }

  .search-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .search-filter-actions .checkin-btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.search-submit-btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  background: #2f62d9;
  color: #fff;
}

.search-submit-btn:hover {
  background: #244fae;
}

  .search-results-card {
    margin-top: 14px;
  }

  .search-result-row {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 13px 0;
  }

  .search-result-avatar {
    width: 36px;
    height: 36px;
  }

  .search-result-top {
    align-items: flex-start;
  }

  .search-result-top strong {
    font-size: 13px;
  }

  .search-result-type {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9.5px;
  }

  .search-result-date {
    font-size: 11.5px;
  }

  .search-result-details {
    font-size: 11.5px;
  }

  .search-result-arrow {
    font-size: 19px;
  }

  .search-results-header h2 {
    font-size: 16px;
  }

  .search-results-header p {
    font-size: 11.5px;
  }
}

/* ===== base rules (no media query — apply everywhere) ===== */

.cal-today-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dfe3df;
  border-radius: 8px;
  background: #fff;
  color: #34404d;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.cal-today-btn:hover {
  background: #f5f6f4;
}

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

/* ===== mobile-only rules ===== */

@media (max-width: 760px) {
  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head {
    min-width: 0;
    padding: 8px 2px;
    background: #f7f8f6;
    font-size: 0;
    text-align: center;
    overflow: hidden;
  }

  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head::after {
    font-size: 9px;
    font-weight: 600;
  }

  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head:nth-child(1)::after { content: 'Sun'; }
  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head:nth-child(2)::after { content: 'Mon'; }
  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head:nth-child(3)::after { content: 'Tue'; }
  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head:nth-child(4)::after { content: 'Wed'; }
  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head:nth-child(5)::after { content: 'Thu'; }
  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head:nth-child(6)::after { content: 'Fri'; }
  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-head:nth-child(7)::after { content: 'Sat'; }

  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-cell {
    min-width: 0;
    min-height: 72px;
    padding: 5px;
    background: #fff;
    border: 0;
  }

  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-cell__day {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    margin: 0 auto 4px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
  }

  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-cell--today .cal-cell__day {
    background: #2f62d9;
    color: #fff;
  }

  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-cell--selected:not(.cal-cell--today) .cal-cell__day {
    background: #eaf0ff;
    color: #2f62d9;
  }

  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-pill {
    overflow: hidden;
    padding: 2px 3px;
    border-radius: 4px;
    font-size: 7px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cal-grid:not(.cal-grid--week):not(.cal-grid--day) .cal-cell--muted {
    opacity: .4;
  }

  .cal-grid--week {
    background: #fff;
    border: 1px solid #e5e8e5;
    border-radius: 11px;
    overflow: hidden;
  }

  .mobile-week-day.is-today {
    border-color: #a9bff4;
  }

  .mobile-week-day__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 7px 11px;
    background: #f7f8f6;
    border-bottom: 1px solid #eceeeb;
  }

  .mobile-week-day__header div {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .mobile-week-day__header span {
    font-size: 10px;
    font-weight: 700;
    color: #65707c;
    text-transform: uppercase;
  }

  .mobile-week-day__header strong {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    color: #17202a;
  }

  .mobile-week-day.is-today .mobile-week-day__header strong {
    background: #2f62d9;
    color: #fff;
  }

  .mobile-week-today {
    padding: 3px 7px;
    border-radius: 999px;
    background: #eaf0ff;
    color: #2f62d9 !important;
    font-size: 8px !important;
  }

  .mobile-week-day__entries {
    padding: 5px 10px;
  }

  .mobile-week-entry {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 35px;
    border-bottom: 1px solid #f0f1ef;
  }

  .mobile-week-entry:last-child {
    border-bottom: 0;
  }

  .mobile-week-entry__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }

  .mobile-week-entry__name {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    color: #252d36;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-week-entry__type {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mobile-week-empty {
    padding: 8px 0;
    font-size: 10px;
    color: #9299a1;
  }

  .cal-today-btn {
    min-height: 38px;
    padding: 0 9px;
    border-color: #cdd9f5;
    color: #2f62d9;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #e1e5e2;
    box-shadow: 0 -5px 18px rgba(17, 24, 32, .07);
  }

  .mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #818a94;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-bottom-nav__item.is-active {
    color: #2f62d9;
  }

  .mobile-bottom-nav__icon {
    font-size: 19px;
    line-height: 1;
  }

  .cal-page {
    padding-bottom: 82px;
  }
}

/* ===== desktop-only protection ===== */

@media (min-width: 761px) {
  .mobile-day-view,
  .mobile-week-list,
  .mobile-bottom-nav {
    display: none;
  }

  .cal-page {
    padding-bottom: 0;
  }

  .cal-toolbar {
    width: 100%;
  }

  .cal-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .cal-view-toggle {
    flex-shrink: 0;
  }
}

/* =====================================================
   DESKTOP DASHBOARD REDESIGN
   Scoped to min-width so mobile is 100% unaffected —
   same HTML, same IDs, same mobile CSS rules untouched.
===================================================== */

@media (min-width: 761px) {

  .clock-strip {
    gap: 12px;
    padding: 16px 24px;
    background: var(--paper);
    border-bottom: none;
  }

  .clock-item {
    border: none;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
  }

  .panel-section {
    margin: 18px auto 0;
    padding: 20px 24px;
    border: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
    border-radius: 14px;
  }

  .panel-section:first-of-type {
    margin-top: 18px;
  }

  .panel-section__title {
    position: relative;
    padding-left: 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
  }

  .panel-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 4px;
    background: var(--accent);
  }

  .panel-title-icon {
    display: none;
  }

  .panel-btn {
    border-radius: 10px;
    padding: 11px 18px;
    transition: border-color 0.15s ease, background 0.15s ease;
  }

  .panel-btn:hover {
    border-color: var(--accent-deep);
    background: #FAF8F4;
  }

  .panel-btn--quiet {
    padding: 10px 16px;
  }

  .status-dot {
    width: 8px;
    height: 8px;
  }

  .whos-online-offline-list.is-collapsed {
    max-height: 100px;
    overflow: hidden;
  }

  .whos-online-view-all {
    display: inline-block;
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--accent-deep);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
  }

  .whos-online-view-all:hover {
    text-decoration: underline;
  }
}

.whos-online-view-all {
  display: none;
}

/* =====================================================
   PAYROLL ADMIN — PAGE SHELL
===================================================== */

.payroll-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px 32px 70px;
}

.payroll-heading {
  margin-bottom: 24px;
}

.payroll-heading h1 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 6px;
}

.payroll-heading p {
  margin: 0;
  color: var(--text-light-muted);
  font-size: 14px;
}

.payroll-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--paper-line);
  overflow-x: auto;
}

.payroll-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  color: var(--text-light-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.payroll-tab:hover {
  color: var(--text-light);
}

.payroll-tab.is-active {
  color: var(--text-light);
  border-bottom-color: var(--accent);
}

.payroll-panel {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 24px;
  min-height: 240px;
}

.payroll-placeholder {
  color: var(--text-light-muted);
  font-size: 14px;
  text-align: center;
  padding: 60px 20px;
}

@media (max-width: 760px) {
  .payroll-page {
    width: calc(100% - 24px);
    padding: 22px 0 90px;
  }

  .payroll-heading h1 {
    font-size: 24px;
  }

  .payroll-tab {
    flex: 0 0 auto;
  }

  .payroll-panel {
    padding: 16px;
  }
}

.payroll-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .payroll-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.payroll-employees-toolbar {
  margin-bottom: 14px;
}

.payroll-employees-toolbar input {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
}

.payroll-employees-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payroll-employee-row {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 120px 90px 70px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: #fff;
}

.payroll-employee-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf0f7;
  color: #305477;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
}

.payroll-employee-row__body strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-light);
}

.payroll-employee-row__body span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-light-muted);
}

.payroll-employee-row__salary {
  text-align: right;
}

.payroll-employee-row__salary strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-light);
}

.payroll-employee-row__salary span {
  display: block;
  font-size: 10.5px;
  color: var(--text-light-muted);
  text-transform: uppercase;
}

.payroll-employee-row__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.payroll-employee-row__badge--active {
  background: #eaf7ee;
  color: #2d9143;
}

.payroll-employee-row__badge--inactive {
  background: #f0f0ed;
  color: #5b6472;
}

.payroll-employee-row__badge--not-setup {
  background: #fff3df;
  color: #bb7413;
}

.payroll-employee-row__edit {
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-light);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.payroll-employee-row__edit:hover {
  border-color: var(--accent-deep);
}

.payroll-allowance-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px auto 28px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.payroll-allowance-row input[type="text"],
.payroll-allowance-row input[type="number"] {
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font-body);
}

.payroll-allowance-recurring {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-light-muted);
  white-space: nowrap;
}

.payroll-allowance-remove {
  border: none;
  background: none;
  color: var(--error);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 760px) {
  .payroll-employee-row {
    grid-template-columns: 36px minmax(0,1fr) auto;
    grid-template-areas:
      "avatar body edit"
      "salary salary badge";
    row-gap: 8px;
  }
  .payroll-employee-row__avatar { grid-area: avatar; }
  .payroll-employee-row__body { grid-area: body; }
  .payroll-employee-row__edit { grid-area: edit; }
  .payroll-employee-row__salary { grid-area: salary; text-align: left; }
  .payroll-employee-row__badge { grid-area: badge; justify-self: end; }

  .payroll-allowance-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.payroll-adjustments-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.payroll-adjustments-toolbar select {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  min-width: 200px;
}

.payroll-adjustments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payroll-adjustment-row {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 90px auto 28px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: #fff;
}

.payroll-adjustment-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf0f7;
  color: #305477;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.payroll-adjustment-row__body strong {
  display: block;
  font-size: 13px;
  color: var(--text-light);
}

.payroll-adjustment-row__body span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-light-muted);
}

.payroll-adjustment-row__amount {
  text-align: right;
  font-size: 13.5px;
}

.payroll-adjustment-row__badge {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.payroll-adj-badge--bonus {
  background: #eaf7ee;
  color: #2d9143;
}

.payroll-adj-badge--overtime {
  background: #eaf0ff;
  color: #1f4fa8;
}

.payroll-adj-badge--deduction {
  background: #fdeceb;
  color: #A32D2D;
}

.payroll-adjustment-row__remove {
  border: none;
  background: none;
  color: var(--error);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 760px) {
  .payroll-adjustments-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .payroll-adjustment-row {
    grid-template-columns: 36px minmax(0,1fr) auto;
    grid-template-areas:
      "avatar body remove"
      "amount amount badge";
    row-gap: 8px;
  }
  .payroll-adjustment-row__avatar { grid-area: avatar; }
  .payroll-adjustment-row__body { grid-area: body; }
  .payroll-adjustment-row__remove { grid-area: remove; }
  .payroll-adjustment-row__amount { grid-area: amount; text-align: left; }
  .payroll-adjustment-row__badge { grid-area: badge; }
}

.payroll-runs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payroll-run-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px auto 70px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: #fff;
}

.payroll-run-row__body strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-light);
}

.payroll-run-row__body span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-light-muted);
}

.payroll-run-row__net {
  text-align: right;
  font-size: 13.5px;
}

.payroll-run-row__badge {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.payroll-run-badge--draft {
  background: #f0f0ed;
  color: #5b6472;
}

.payroll-run-badge--pending {
  background: #fff3df;
  color: #bb7413;
}

.payroll-run-badge--approved {
  background: #eaf0ff;
  color: #1f4fa8;
}

.payroll-run-badge--paid {
  background: #eaf7ee;
  color: #2d9143;
}

.payroll-run-row__view {
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-light);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.payroll-run-row__view:hover {
  border-color: var(--accent-deep);
}

.payroll-run-employee-list {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
}

.payroll-run-employee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  font-size: 13px;
  cursor: pointer;
}

.payroll-run-detail-totals {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.payroll-run-detail-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.payroll-run-line {
  padding: 10px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: #fafafa;
}

.payroll-run-line strong {
  display: block;
  font-size: 13px;
  color: var(--text-light);
}

.payroll-run-line span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-light-muted);
}

@media (max-width: 760px) {
  .payroll-run-row {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas:
      "body view"
      "net badge";
    row-gap: 8px;
  }
  .payroll-run-row__body { grid-area: body; }
  .payroll-run-row__view { grid-area: view; }
  .payroll-run-row__net { grid-area: net; text-align: left; }
  .payroll-run-row__badge { grid-area: badge; justify-self: end; }
}

.payroll-wizard-card {
  max-width: 560px;
}

.payroll-wizard-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.payroll-wizard-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f0ed;
  color: #5b6472;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.payroll-wizard-step-dot.is-active {
  background: var(--accent);
  color: var(--ink);
}

.payroll-wizard-step-dot.is-done {
  background: #eaf7ee;
  color: #2d9143;
}

.payroll-wizard-panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-light);
}

#wiz-confirm-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.payroll-run-line--negative {
  border-color: #f0997b;
  background: #faece7;
}

.payroll-run-line__warning {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #A32D2D;
}

.payroll-run-detail-payslips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.payroll-payslip-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: #fafafa;
  font-size: 12.5px;
}

.payroll-payslip-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
}

.payroll-payslip-badge--draft {
  background: #f0f0ed;
  color: #5b6472;
}

.payroll-payslip-badge--published {
  background: #eaf7ee;
  color: #2d9143;
}

.payroll-current-payslip {
  margin-bottom: 24px;
}

.payroll-current-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
}

.payroll-current-card__period {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.payroll-current-card__net {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-light);
}

.payroll-current-card__label {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-light-muted);
}

.payroll-history-heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.payroll-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payroll-history-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px 70px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: #fff;
}

.payroll-history-row strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-light);
}

.payroll-history-row span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-light-muted);
}

.payroll-history-view {
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-light);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.payroll-history-view:hover {
  border-color: var(--accent-deep);
}

.payroll-payslip-sub {
  margin: 0 0 18px;
  color: var(--text-light-muted);
  font-size: 13px;
}

.payroll-payslip-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payroll-payslip-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-line);
  font-size: 13.5px;
}

.payroll-payslip-line--total strong,
.payroll-payslip-line--net strong {
  font-weight: 700;
}

.payroll-payslip-line--deduction strong {
  color: var(--error);
}

.payroll-payslip-line--net {
  border-bottom: none;
  padding-top: 14px;
  font-size: 15px;
}

@media print {
  body:not(.ll-page-printing) * {
    visibility: hidden;
  }
  #payslip-print-area, #payslip-print-area * {
    visibility: visible;
  }
  #payslip-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .payroll-current-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .payroll-current-card__net {
    font-size: 24px;
  }

  .payroll-history-row {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas:
      "body body"
      "net view";
    row-gap: 8px;
  }
  .payroll-history-row > div:first-child { grid-area: body; }
  .payroll-history-row > strong { grid-area: net; }
  .payroll-history-row > .payroll-history-view { grid-area: view; justify-self: end; }
}

.payroll-reports-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 16px;
}

.payroll-reports-filters .report-export-btn {
  margin-left: auto;
}

.payroll-reports-filters .field {
  margin: 0;
}

.payroll-reports-filters input,
.payroll-reports-filters select {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 13px;
}

.payroll-report-currency-group {
  margin-bottom: 14px;
}

.payroll-report-currency-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.payroll-report-table {
  display: flex;
  flex-direction: column;
}

.payroll-report-table__head,
.payroll-report-table__row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 90px 110px;
  gap: 10px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid var(--paper-line);
}

.payroll-report-table__head--runs,
.payroll-report-table__row--runs {
  grid-template-columns: minmax(0,1.4fr) 110px 90px 100px;
}

.payroll-report-table__head {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light-muted);
  text-transform: uppercase;
}

.payroll-report-table__row {
  font-size: 12.5px;
}

.payroll-report-table__row:last-child {
  border-bottom: none;
}

@media (max-width: 760px) {
  .payroll-reports-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .payroll-report-table__head,
  .payroll-report-table__row,
  .payroll-report-table__head--runs,
  .payroll-report-table__row--runs {
    grid-template-columns: minmax(0,1fr) auto;
    font-size: 11.5px;
  }
}

.payroll-audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payroll-audit-row {
  padding: 12px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: #fff;
}

.payroll-audit-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.payroll-audit-row__meta strong {
  font-size: 13px;
  color: var(--text-light);
}

.payroll-audit-row__meta span {
  font-size: 11.5px;
  color: var(--text-light-muted);
}

.payroll-audit-row__details {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-light-muted);
}

@media (max-width: 760px) {
  .payroll-payslip-row {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas:
      "name badge"
      "amount amount";
    row-gap: 4px;
  }
  .payroll-payslip-row > strong { grid-area: name; }
  .payroll-payslip-row > span:not(.payroll-payslip-badge) { grid-area: amount; font-size: 11.5px; color: var(--text-light-muted); }
  .payroll-payslip-row > .payroll-payslip-badge { grid-area: badge; justify-self: end; }

  .payroll-run-detail-totals {
    flex-direction: column;
    gap: 4px;
  }

  .payroll-wizard-card {
    padding: 20px 16px;
  }

  .payroll-wizard-step-dot {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .payroll-employee-row__edit,
  .payroll-run-row__view,
  .payroll-history-view {
    min-height: 36px;
    padding: 8px 12px;
  }

  .payroll-payslip-breakdown {
    font-size: 12px;
  }
}

.clock-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  background: transparent;
  border-bottom: none;
}

.clock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 8px 16px;
}

.clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.clock-code {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light-muted);
}

.clock-item .clock-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  font-family: var(--font-display);
}

@media (max-width: 760px) {
  .clock-strip {
    padding: 12px 16px;
    gap: 6px;
  }

  .clock-item {
    padding: 7px 12px;
  }

  .clock-code {
    font-size: 11px;
  }

  .clock-item .clock-time {
    font-size: 12px;
  }
}

.dash__mark-icon {
  height: 22px;
  width: auto;
  display: block;
}

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

.announcements-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px;
  background: #FAEEDA;
}

.announcements-banner[hidden] {
  display: none;
}

.announcement-item {
  font-size: 13px;
  font-weight: 600;
  color: #854F0B;
}

.hr-alert-row {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-line);
}

.hr-alert-row:last-child {
  border-bottom: none;
}

.hr-alert-row strong {
  font-size: 13px;
  color: var(--text-light);
}

.hr-alert-row span {
  font-size: 12px;
  color: var(--text-light-muted);
  margin-top: 2px;
}

.hr-alert-row--overdue span {
  color: #A32D2D;
  font-weight: 600;
}

.hr-alert-row--good span {
  color: #2E9E44;
  font-weight: 600;
}

.announcement-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-line);
  font-size: 13px;
}

.announcement-manage-row:last-child {
  border-bottom: none;
}

.announcement-delete-btn {
  border: none;
  background: none;
  color: var(--error);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.active-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
}

.active-session-row:last-child {
  border-bottom: none;
}

.active-session-row strong {
  display: block;
  font-size: 13px;
  color: var(--text-light);
}

.active-session-row span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-light-muted);
}

.active-session-signout-btn {
  border: 1px solid var(--paper-line);
  background: #fff;
  color: #A32D2D;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.active-session-signout-btn:hover {
  border-color: #A32D2D;
}

.admin__status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.admin__status-badge--disabled {
  background: #fdeceb;
  color: #A32D2D;
}

.settings-shift-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.settings-shift-row input {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font-body);
}

.settings-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0F0ED;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12.5px;
}

.settings-chip-remove {
  border: none;
  background: none;
  color: var(--error);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.settings-holiday-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--paper-line);
  font-size: 13px;
}

.settings-holiday-row:last-child {
  border-bottom: none;
}

.settings-holiday-remove {
  border: none;
  background: none;
  color: var(--error);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.settings-shift-card {
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fafafa;
}

.settings-shift-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-shift-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.settings-shift-fields input {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  width: 80px;
}

.settings-shift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-line);
}

.settings-shift-preview {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
}

.settings-shift-remove {
  border: none;
  background: none;
  color: var(--error);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.settings-chip {
  white-space: nowrap;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--paper-line);
  overflow-x: auto;
}

.admin-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  color: var(--text-light-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--text-light);
}

.admin-tab.is-active {
  color: var(--text-light);
  border-bottom-color: var(--accent);
}

.admin-search {
  width: 100%;
  max-width: 320px;
  margin-bottom: 14px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
}

.admin-users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.admin-users-toolbar .admin-search {
  margin-bottom: 0;
}

.admin-users-toolbar #export-users-btn {
  flex: 0 0 auto;
  padding: 9px 16px;
}

.admin-import-table {
  margin-top: 12px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  overflow: hidden;
}

.admin-import-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--paper-line);
}

.admin-import-row:last-child {
  border-bottom: none;
}

.admin-import-row--head {
  background: #F0F0ED;
  font-weight: 700;
  color: var(--text-light-muted);
  text-transform: uppercase;
  font-size: 10.5px;
}

.admin-import-row--error {
  background: #FCEBEB;
  color: #A32D2D;
}

.admin-import-result {
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.admin-import-result--ok {
  background: #EAF7EE;
  color: #2D9143;
}

.admin-import-result--fail {
  background: #FCEBEB;
  color: #A32D2D;
}

.admin-import-result code {
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

@media (max-width: 760px) {
  .admin-users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-import-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 2px;
  }
}

.org-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.org-chart-card {
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.org-chart-card__head {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-line);
}

.org-chart-card__head strong {
  display: block;
  font-size: 14px;
  color: var(--text-light);
}

.org-chart-card__head span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-light-muted);
}

.org-chart-reports {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-chart-chip {
  background: #EAF0F7;
  color: #305477;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.org-chart-chip--warn {
  background: #FAEEDA;
  color: #854F0B;
}

.org-chart-empty {
  margin: 0;
  font-size: 12px;
  color: var(--text-light-muted);
}

.org-chart-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light-muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.twofa-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #FAFAF8;
  border-radius: 10px;
}

.twofa-qr-wrap img {
  width: 180px;
  height: 180px;
}

#twofa-setup-code,
#twofa-verify-code {
  font-size: 20px;
  letter-spacing: 6px;
  text-align: center;
}

/* ===== CRM ===== */

.crm-stats {
  display: flex;
  gap: 12px;
  margin: 4px 0 22px;
  flex-wrap: wrap;
}

.crm-stat-card {
  flex: 1;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}

.crm-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(214, 162, 76, 0.14);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crm-stat-icon svg { width: 18px; height: 18px; }

.crm-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.crm-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
}

.crm-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.crm-company-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.crm-company-card:hover {
  box-shadow: 0 6px 18px rgba(16, 24, 40, .10);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.crm-company-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 34px;
}

.crm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.crm-avatar--sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
}

.crm-company-card__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
  word-break: break-word;
}

.crm-company-card__industry {
  display: inline-block;
  margin-top: 5px;
}

.crm-company-card__meta {
  font-size: 12.5px;
  color: var(--text-light-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crm-company-card__meta svg { flex-shrink: 0; opacity: 0.7; }

.crm-company-card__meta a {
  color: var(--text-light-muted);
  text-decoration: none;
}

.crm-company-card__meta a:hover { color: var(--accent-deep); text-decoration: underline; }

.crm-company-card__select {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 16px;
  height: 16px;
  z-index: 2;
}

.crm-company-card__contacts-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-deep);
  background: rgba(214, 162, 76, 0.14);
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
}

.crm-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-contact-row__name {
  font-weight: 600;
  color: var(--text-light);
}

.crm-empty {
  text-align: center;
  padding: 48px 20px;
  border: 1.5px dashed var(--paper-line);
  border-radius: 12px;
  color: var(--text-light-muted);
  grid-column: 1 / -1;
}

.crm-empty svg {
  margin-bottom: 12px;
  opacity: 0.45;
}

.crm-empty strong {
  display: block;
  color: var(--text-light);
  font-size: 14.5px;
  margin-bottom: 4px;
}

.crm-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--paper-line);
}

.crm-modal-header__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
}

.crm-modal-header__sub {
  font-size: 12.5px;
  color: var(--text-light-muted);
  margin-top: 2px;
}

.crm-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.crm-modal-grid .field {
  margin-bottom: 0;
}

.crm-modal-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 22px 0 10px;
}

.crm-empty span {
  font-size: 13px;
}

.crm-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.crm-tag--client { background: rgba(46, 158, 68, 0.12); color: #2E9E44; }
.crm-tag--vendor { background: rgba(214, 162, 76, 0.14); color: var(--accent-deep); }
.crm-tag--partner { background: rgba(47, 98, 217, 0.10); color: #2F62D9; }
.crm-tag--other { background: rgba(91, 100, 114, 0.12); color: var(--text-light-muted); }

.crm-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-light-muted);
  margin-top: 6px;
}

.crm-interaction {
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-line);
}

.crm-interaction:last-child { border-bottom: none; }

.crm-interaction__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.crm-interaction__author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
}

.crm-interaction__time {
  font-size: 11px;
  color: var(--text-light-muted);
  white-space: nowrap;
}

.crm-interaction__text {
  font-size: 13.5px;
  color: var(--text-light);
  white-space: pre-wrap;
}

.crm-interaction__delete {
  background: none;
  border: none;
  color: var(--text-light-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

.crm-interaction__delete:hover { color: var(--error); }

.crm-task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--paper-line);
  font-size: 13px;
}

.crm-task-row:last-child { border-bottom: none; }

.crm-task-row__title { color: var(--text-light); }

.crm-task-status {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.crm-task-status--todo { background: rgba(91, 100, 114, 0.12); color: var(--text-light-muted); }
.crm-task-status--in_progress { background: rgba(47, 98, 217, 0.10); color: #2F62D9; }
.crm-task-status--done { background: rgba(46, 158, 68, 0.12); color: #2E9E44; }

.po-status {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.po-status--draft { background: rgba(91, 100, 114, 0.12); color: var(--text-light-muted); }
.po-status--pending_approval { background: rgba(214, 162, 76, 0.14); color: var(--accent-deep); }
.po-status--approved { background: rgba(46, 158, 68, 0.12); color: #2E9E44; }
.po-status--rejected { background: rgba(192, 57, 43, 0.10); color: var(--error); }
.po-status--ordered { background: rgba(47, 98, 217, 0.10); color: #2F62D9; }
.po-status--received { background: rgba(46, 158, 68, 0.12); color: #2E9E44; }
.po-status--cancelled { background: rgba(91, 100, 114, 0.12); color: var(--text-light-muted); }

.po-item-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 80px 110px 100px 28px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.po-item-row input {
  width: 100%;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 8px 9px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-light);
  box-sizing: border-box;
}

.po-item-row__total {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  color: var(--text-light);
}

.po-item-row__remove {
  background: none;
  border: none;
  color: var(--text-light-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}

.po-item-row__remove:hover { color: var(--error); }

@media (max-width: 640px) {
  .po-item-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "desc desc" "qty price" "total remove";
  }
}

.crm-interactions-empty {
  font-size: 13px;
  color: var(--text-light-muted);
  padding: 10px 0;
}

html.dark-mode .crm-stat-card,
html.dark-mode .crm-company-card {
  background: #1A1E2B !important;
  border-color: var(--paper-line) !important;
}

html.dark-mode .crm-company-card:hover {
  border-color: var(--accent) !important;
}

html.dark-mode .crm-empty {
  border-color: var(--paper-line) !important;
}

html.dark-mode .crm-modal-header {
  border-bottom-color: var(--paper-line) !important;
}

html.dark-mode {
  --paper: #0D0F16;
  --paper-line: #2E3346;
  --text-light: #FFFFFF;
  --text-light-muted: #FFFFFF;
}

html.dark-mode body {
  background: var(--paper);
}

html.dark-mode .panel-section,
html.dark-mode .panel-btn,
html.dark-mode .booking-card,
html.dark-mode .admin__card,
html.dark-mode .cal-cell,
html.dark-mode .eprofile-card,
html.dark-mode .payroll-panel,
html.dark-mode .report-card,
html.dark-mode .report-dashboard-card,
html.dark-mode .report-stat,
html.dark-mode .search-filter-card,
html.dark-mode .search-results-card,
html.dark-mode .day-summary-stat--early,
html.dark-mode .day-summary-stat--late,
html.dark-mode .day-summary-stat--present,
html.dark-mode .day-summary-stat--wfh,
html.dark-mode .mobile-day-stat--early,
html.dark-mode .mobile-day-stat--late,
html.dark-mode .mobile-day-stat--present,
html.dark-mode .mobile-day-stat--wfh,
html.dark-mode .checkin-btn--ghost,
html.dark-mode .eprofile-btn--secondary,
html.dark-mode .report-export-btn--csv,
html.dark-mode .bookings-filter-btn.is-active,
html.dark-mode .modal-card,
html.dark-mode .dropdown-menu,
html.dark-mode .bookings-section,
html.dark-mode .checkin-card,
html.dark-mode .cal-legend,
html.dark-mode .org-chart-card {
  background: #1A1E2B !important;
  border-color: #454C63 !important;
}

html.dark-mode .org-chart-chip {
  background: rgba(47, 98, 217, 0.18) !important;
  color: #8FB4F5 !important;
}

html.dark-mode .org-chart-chip--warn {
  background: rgba(214, 162, 76, 0.18) !important;
  color: var(--accent) !important;
}

html.dark-mode .org-chart-card__head,
html.dark-mode .org-chart-card__head strong {
  border-color: #454C63 !important;
}
html.dark-mode .payroll-current-card,
html.dark-mode .payroll-employee-row,
html.dark-mode .payroll-history-row,
html.dark-mode .payroll-run-row,
html.dark-mode .payroll-adjustment-row,
html.dark-mode .payroll-audit-row,
html.dark-mode .table-wrap,
html.dark-mode .eprofile-header,
html.dark-mode .eprofile-picker,
html.dark-mode .clock-strip,
html.dark-mode .clock-item,
html.dark-mode .mobile-bottom-nav,
html.dark-mode .mobile-day-entry,
html.dark-mode .mobile-day-empty,
html.dark-mode .whos-online-pill,
html.dark-mode .day-summary-entry,
html.dark-mode .payroll-reports-filters,
html.dark-mode .reports-filters,
html.dark-mode .bto-card,
html.dark-mode .search-back,
html.dark-mode .cal-nav-btn,
html.dark-mode .cal-view-btn,
html.dark-mode .cal-view-toggle,
html.dark-mode .cal-today-btn,
html.dark-mode .cal-date-picker-btn,
html.dark-mode .cal-select,
html.dark-mode .checkin-btn--ghost {
  background: #1A1E2B !important;
  border-color: #454C63 !important;
}

html.dark-mode .checkin-btn--ghost:hover {
  border-color: #5A6280 !important;
}

html.dark-mode .cal-head--weekend {
  background: #262B3D !important;
}
html.dark-mode .dropdown-menu {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
}

html.dark-mode .settings-shift-card {
  background: #1A1E2B !important;
  border-color: var(--paper-line) !important;
}

html.dark-mode .settings-shift-footer {
  border-top-color: var(--paper-line) !important;
}

html.dark-mode .payroll-employee-row__edit,
html.dark-mode .payroll-run-row__view,
html.dark-mode .payroll-history-view {
  background: #1A1E2B !important;
  color: var(--text-light) !important;
  border-color: var(--paper-line) !important;
}

html.dark-mode .booking-status--approved,
html.dark-mode .payroll-employee-row__badge--active,
html.dark-mode .payroll-adj-badge--bonus,
html.dark-mode .payroll-run-badge--paid,
html.dark-mode .payroll-wizard-step-dot.is-done,
html.dark-mode .payroll-payslip-badge--published,
html.dark-mode .admin-import-result--ok {
  background: rgba(56, 166, 90, 0.16) !important;
  color: #38A65A !important;
}

html.dark-mode .settings-chip {
  background: #2E3346 !important;
  color: var(--text-light) !important;
}

html.dark-mode .booking-status--pending {
  background: #332A14 !important;
  color: #F0B454 !important;
}
html.dark-mode .booking-status--approved {
  background: #14301E !important;
  color: #5FD87A !important;
}
html.dark-mode .booking-status--denied,
html.dark-mode .admin__status-badge--disabled {
  background: #331A18 !important;
  color: #F0847A !important;
}

html.dark-mode #bulk-actions-bar {
  background: #1A1E2B !important;
  border-color: var(--paper-line) !important;
}

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea {
  background: #1A1E2B !important;
  color: var(--text-light) !important;
  border-color: var(--paper-line) !important;
}

html.dark-mode .eprofile-field textarea:not([readonly]):focus {
  background: #1A1E2B !important;
}

html.dark-mode .cal-view-btn.is-active {
  background: var(--accent) !important;
  color: var(--ink) !important;
}

html.dark-mode .cal-tab.is-active {
  color: var(--text-light) !important;
}

html.dark-mode .whos-online-pill.is-active {
  background: var(--accent) !important;
  border-color: var(--accent-deep) !important;
  color: var(--ink) !important;
}

html.dark-mode .bookings-filter-tabs {
  background: #12151E !important;
}

html.dark-mode .bookings-filter-btn.is-active {
  color: var(--text-light) !important;
}

html.dark-mode .bookings-filter-btn {
  color: var(--text-light-muted) !important;
}

html.dark-mode .bookings-count {
  background: #2E3346 !important;
  color: var(--text-light) !important;
}

html.dark-mode .report-record-count,
html.dark-mode .report-leader-rank,
html.dark-mode .bookings-count {
  background: #2E3346 !important;
  color: var(--text-light) !important;
}

html.dark-mode .attendance-breakdown__bar {
  background: #262B3D !important;
}

.global-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 780px;
  min-width: 420px;
  height: 52px;
  margin: 0 auto;
}


.global-search__icon {
  position: absolute;
  left: 14px;
  color: #7f8a98;
  pointer-events: none;
  z-index: 2;
}

.global-search__input {
  width: 100%;
  height: 34px;
  padding: 0 72px 0 42px;
  border: 1px solid #35404d;
  border-radius: 9px;
  outline: none;
  background: #202b3a;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color .15s ease, background .15s ease;
}

.global-search__input::placeholder {
  color: #9ba5b1;
}

.global-search__input:focus {
  background: #263241;
  border-color: #657486;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-pill--pending {
  background: #fff3df;
  color: #bb7413;
}

.status-pill--approved {
  background: #eaf7ee;
  color: #2d9143;
}

.status-pill--denied {
  background: #fbe9e9;
  color: #b3261e;
}

/* =====================================================
   SHARED MOBILE BOTTOM NAVIGATION
   MOBILE ONLY
===================================================== */

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

@media (max-width: 760px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 900;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    min-height: 64px;

    padding:
      6px 8px
      calc(6px + env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, .97);

    border-top: 1px solid #E1E5E2;

    box-shadow:
      0 -5px 18px rgba(17, 24, 32, .07);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav__item {
    min-width: 0;
    min-height: 52px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 4px 6px;

    border: 0;
    border-radius: 11px;

    background: transparent;

    color: #818A94;

    font-family: inherit;
    font-size: 9.5px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav__item svg {
    width: 21px;
    height: 21px;

    flex-shrink: 0;

    stroke: currentColor;
  }

  .mobile-bottom-nav__item.is-active {
    background: #EDF4FF;
    color: #1469CF;
    font-weight: 700;
  }

  .mobile-bottom-nav__item--signout {
    color: #C0392B;
  }

  body.ll-sidebar-open .mobile-bottom-nav {
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  .mobile-bottom-nav__item {
    min-width: 0;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 9px;
  }

  .mobile-bottom-nav__item span {
    white-space: nowrap;
  }
}

/* =====================================================
   MOBILE PAGE PADDING — TASKS + DIRECTORY ONLY
===================================================== */

@media (max-width: 760px) {
  .directory-page {
    width: 100%;
    max-width: none;

    margin: 0;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .tasks-page {
    padding-top: 22px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 90px !important;
  }
}
@media (max-width: 760px) {
  .dash__main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* =====================================================
   APPROVALS CENTER
===================================================== */

.approvals-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px 32px 90px;
}

.approvals-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.approvals-heading h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-light);
}

.approvals-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light-muted);
}

.approvals-filter {
  min-width: 160px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--paper-line);
  border-radius: 9px;
  background: #fff;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 13px;
}

/* SUMMARY */

.approvals-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.approval-stat {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
}

.approval-stat__label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.approval-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--text-light);
}

.approval-stat small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-light-muted);
}

.approval-stat--total {
  background: #f2f7ff;
  border-color: #d9e6fb;
}

.approval-stat--timeoff {
  background: #f0f9f2;
  border-color: #d8eddc;
}

.approval-stat--correction {
  background: #fff7eb;
  border-color: #f2dfbd;
}

.approval-stat--po {
  background: #f5f1fb;
  border-color: #e4daf2;
}

.approval-stat--payroll {
  background: #fff1ef;
  border-color: #f1d4d0;
}

/* MAIN CARD */

.approvals-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  overflow: hidden;
}

.approvals-card__header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--paper-line);
}

.approvals-card__header h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
}

.approvals-card__header p {
  margin: 0;
  font-size: 12px;
  color: var(--text-light-muted);
}

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

.approval-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.3fr)
    minmax(160px, 1fr)
    120px
    minmax(180px, 1.2fr)
    130px
    90px;

  align-items: center;
  gap: 14px;

  min-height: 82px;

  padding: 14px 20px;

  border-bottom: 1px solid var(--paper-line);
}

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

.approval-row:hover {
  background: #fafbfc;
}

.approval-request {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.approval-request__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #eef2f6;
  color: #40536a;
}

.approval-request__icon svg {
  width: 19px;
  height: 19px;
}

.approval-request strong,
.approval-request span {
  display: block;
}

.approval-request strong {
  font-size: 13px;
  color: var(--text-light);
}

.approval-request span {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--text-light-muted);
}

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

.approval-person strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 13px;
  color: var(--text-light);
}

.approval-person span {
  display: block;
  margin-top: 3px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 10.5px;
  color: var(--text-light-muted);
}

.approval-category {
  display: inline-flex;
  width: fit-content;

  align-items: center;

  min-height: 26px;

  padding: 0 9px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 700;

  white-space: nowrap;
}

.approval-category--timeoff {
  background: #eaf7ee;
  color: #2d9143;
}

.approval-category--correction {
  background: #fff3df;
  color: #bb7413;
}

.approval-category--po {
  background: #f1eafb;
  color: #7147a3;
}

.approval-category--payroll {
  background: #fdeceb;
  color: #b33d3d;
}

.approval-details strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-light);
}

.approval-details span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--text-light-muted);
}

.approval-submitted {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-light-muted);
}

.approval-review-btn {
  min-height: 36px;
  padding: 0 14px;

  border: 1px solid #d6a24c;
  border-radius: 8px;

  background: #fff;
  color: #8a621b;

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;

  cursor: pointer;
}

.approval-review-btn:hover {
  background: #fff8ea;
}

.approvals-empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--text-light-muted);
  font-size: 13px;
}

/* =====================================================
   APPROVALS CENTER — MOBILE ONLY
===================================================== */

@media (max-width: 760px) {
  .approvals-page {
    width: 100%;
    padding: 18px 14px 90px;
  }

  .approvals-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .approvals-heading h1 {
    font-size: 24px;
  }

  .approvals-heading p {
    font-size: 12px;
  }

  .approvals-filter {
    width: 100%;
  }

  .approvals-summary {
    grid-template-columns: repeat(5, minmax(115px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .approvals-summary::-webkit-scrollbar {
    display: none;
  }

  .approval-stat {
    min-width: 115px;
    padding: 13px;
  }

  .approval-stat strong {
    font-size: 23px;
  }

  .approvals-card {
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .approvals-card__header {
    padding: 4px 0 12px;
    border: 0;
  }

  .approvals-card__header h2 {
    font-size: 16px;
  }

  .approvals-list {
    gap: 9px;
  }

  .approval-row {
    display: block;

    min-height: 0;

    padding: 14px;

    background: #fff;

    border: 1px solid var(--paper-line);
    border-radius: 12px;
  }

  .approval-request {
    margin-bottom: 11px;
  }

  .approval-person {
    margin-bottom: 9px;
  }

  .approval-category {
    margin-bottom: 9px;
  }

  .approval-details {
    margin-bottom: 10px;
  }

  .approval-submitted {
    margin-bottom: 12px;
  }

  .approval-review-btn {
    width: 100%;
    min-height: 40px;
  }
}

/* =====================================================
   ASSET MANAGEMENT
   ===================================================== */

.asset-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 30px 100px;
}

.asset-page > * {
  width: 100%;
}

.asset-page__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.asset-page__heading h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.asset-page__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}


/* =====================================================
   KPI CARDS
   ===================================================== */

.asset-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
}

.asset-stat {
  min-height: 132px;
  padding: 20px;

  background: #f3f7ff;
  border: 1px solid #dce7f7;
  border-radius: 16px;
}

.asset-stat span {
  display: block;

  margin-bottom: 8px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;

  color: #53627a;
}

.asset-stat strong {
  display: block;

  margin-bottom: 7px;

  font-size: 30px;
  line-height: 1;
  font-weight: 700;

  color: #111827;
}

.asset-stat small {
  display: block;

  font-size: 12px;
  line-height: 1.4;

  color: #748094;
}

.asset-stat--assigned {
  background: #eef9f1;
  border-color: #d4ecd9;
}

.asset-stat--maintenance {
  background: #fff7ea;
  border-color: #f1dfbd;
}

.asset-stat--available {
  background: #f6f1ff;
  border-color: #e4d9f5;
}

.asset-stat--value {
  background: #eef9f8;
  border-color: #d1ece8;
}


/* =====================================================
   ASSET TABS
   ===================================================== */

.asset-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  margin-bottom: 0;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #e6e4df;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.asset-tab {
  position: relative;

  padding: 17px 2px 15px;

  border: 0;
  background: transparent;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  color: #5f6878;

  cursor: pointer;
}

.asset-tab:hover {
  color: #111827;
}

.asset-tab.is-active {
  color: #111827;
}

.asset-tab.is-active::after {
  content: '';

  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;

  height: 2px;

  background: #d8a138;
  border-radius: 999px;
}


/* =====================================================
   MAIN ASSET CARD
   ===================================================== */

.asset-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e6e4df;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.asset-toolbar {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.8fr)
    minmax(150px, 0.75fr)
    minmax(150px, 0.75fr)
    minmax(150px, 0.75fr);

  gap: 10px;

  padding: 16px 18px;

  border-bottom: 1px solid #ece9e3;
}

.asset-toolbar input,
.asset-toolbar select {
  width: 100%;
  min-height: 42px;

  padding: 0 13px;

  border: 1px solid #dddfe5;
  border-radius: 9px;

  background: #fff;

  font-family: inherit;
  font-size: 13px;

  color: #1d2532;
}

.asset-toolbar input:focus,
.asset-toolbar select:focus {
  outline: none;

  border-color: #d8a138;

  box-shadow:
    0 0 0 3px
    rgba(216, 161, 56, 0.12);
}


/* =====================================================
   ASSET LIST
   ===================================================== */

#asset-list {
  min-height: 220px;
}

#asset-list .admin__empty {
  margin: 0;

  padding: 48px 20px;

  text-align: center;

  font-size: 13px;

  color: #7a8392;
}


/* =====================================================
   ASSET TABLE
   These classes are for Step 4 when we render real data.
   ===================================================== */

.asset-table {
  width: 100%;

  border-collapse: collapse;
}

.asset-table th {
  padding: 12px 14px;

  background: #faf9f7;

  border-bottom: 1px solid #ebe8e2;

  text-align: left;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.35px;
  text-transform: uppercase;

  color: #667085;
}

.asset-table td {
  padding: 14px;

  border-bottom: 1px solid #efede8;

  font-size: 12.5px;

  color: #1f2937;

  vertical-align: middle;
}

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

.asset-table tbody tr:hover {
  background: #fcfbf8;
}

.asset-name-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.asset-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 9px;

  background: #eef4fb;

  color: #4578bd;
}

.asset-name {
  display: block;

  font-weight: 700;

  color: #111827;
}

.asset-number {
  display: block;

  margin-top: 2px;

  font-size: 11px;

  color: #9299a5;
}


/* =====================================================
   STATUS BADGES
   ===================================================== */

.asset-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 25px;

  padding: 3px 10px;

  border-radius: 999px;

  font-size: 10.5px;
  font-weight: 700;

  white-space: nowrap;
}

.asset-badge--assigned {
  background: #e8f7ec;
  color: #28803c;
}

.asset-badge--available {
  background: #eaf3ff;
  color: #3474bb;
}

.asset-badge--maintenance {
  background: #fff1d9;
  color: #a36800;
}

.asset-badge--retired {
  background: #f0f1f4;
  color: #6c7280;
}

.asset-badge--excellent {
  background: #e8f7ec;
  color: #28803c;
}

.asset-badge--good {
  background: #edf4ff;
  color: #4276b5;
}

.asset-badge--fair {
  background: #fff2d9;
  color: #9b690c;
}

.asset-badge--poor {
  background: #fff0ee;
  color: #b0443c;
}


/* =====================================================
   ASSET ROW ACTIONS
   ===================================================== */

.asset-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.asset-row-btn {
  min-height: 32px;

  padding: 0 10px;

  border: 1px solid #dedede;
  border-radius: 7px;

  background: #fff;

  font-family: inherit;
  font-size: 11px;
  font-weight: 600;

  color: #374151;

  cursor: pointer;
}

.asset-row-btn:hover {
  background: #f7f7f6;
}

/* =====================================================
   ASSET HISTORY TIMELINE
   ===================================================== */

.asset-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 18px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.asset-history-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 0 0 24px 28px;
  border-left: 2px solid #e5e7eb;
  margin-left: 8px;
}

.asset-history-item:last-child {
  padding-bottom: 4px;
  border-left-color: transparent;
}

.asset-history-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d6a24c;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #d6a24c;
}

.asset-history-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  text-transform: capitalize;
  margin-bottom: 4px;
}

.asset-history-item .admin__muted {
  font-size: 13px;
  line-height: 1.5;
}

.asset-history-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 155px;
  font-size: 12px;
  color: #7b8494;
  text-align: right;
}

.asset-history-meta span:first-child {
  color: #4b5563;
  font-weight: 600;
}

#asset-history-name {
  margin-top: 4px;
}

#asset-history-modal .modal-card {
  width: min(720px, calc(100vw - 32px));
}

/* =====================================================
   MY ASSETS — EMPLOYEE CARD VIEW
   ===================================================== */

.my-assets-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  );
  gap: 18px;
}

.my-asset-card {
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 8px 24px
    rgba(15, 23, 42, 0.06);
}

.my-asset-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.my-asset-card__header h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

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

.my-asset-card__details > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.my-asset-card__details span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a93a3;
}

.my-asset-card__details strong {
  font-size: 14px;
  font-weight: 600;
  color: #2f3745;
  word-break: break-word;
}

.my-asset-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eceef2;
}

@media (max-width: 650px) {
  .my-assets-grid {
    grid-template-columns: 1fr;
  }

  .my-asset-card__details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .asset-history-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .asset-history-meta {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 1050px) {

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

  .asset-toolbar {
    grid-template-columns:
      1fr 1fr;
  }
}


@media (max-width: 760px) {

  .asset-page {
    padding:
      18px
      14px
      100px;
  }

  .asset-page__heading {
    flex-direction: column;
    align-items: stretch;

    margin-bottom: 18px;
  }

  .asset-page__heading h1 {
    font-size: 25px;
  }

  .asset-page__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .asset-page__actions button {
    width: 100%;
  }


  /*
   * Horizontally scrollable KPI cards
   */
  .asset-summary {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding-bottom: 5px;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
  }

  .asset-summary::-webkit-scrollbar {
    display: none;
  }

  .asset-stat {
    min-width: 145px;
    min-height: 112px;

    padding: 15px;
  }

  .asset-stat strong {
    font-size: 24px;
  }


  /*
   * Tabs become horizontally scrollable
   */
  .asset-tabs {
    gap: 20px;

    padding:
      0
      14px;

    overflow-x: auto;

    white-space: nowrap;

    scrollbar-width: none;
  }

  .asset-tabs::-webkit-scrollbar {
    display: none;
  }

  .asset-tab {
    flex: 0 0 auto;
  }


  /*
   * Filters stack on mobile
   */
  .asset-toolbar {
    grid-template-columns: 1fr;

    padding: 13px;
  }


  /*
   * Desktop table becomes mobile cards
   */
  .asset-table,
  .asset-table thead,
  .asset-table tbody,
  .asset-table tr,
  .asset-table td {
    display: block;
    width: 100%;
  }

  .asset-table thead {
    display: none;
  }

  .asset-table tbody {
    padding: 10px;
  }

  .asset-table tr {
    margin-bottom: 10px;

    padding: 13px;

    border: 1px solid #e6e4df;
    border-radius: 11px;

    background: #fff;
  }

  .asset-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding:
      8px
      0;

    border: 0;
  }

  .asset-table td::before {
    content: attr(data-label);

    flex: 0 0 38%;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.3px;
    text-transform: uppercase;

    color: #8b919c;
  }

  .asset-table td:first-child {
    display: block;

    padding-top: 0;
    padding-bottom: 12px;

    border-bottom:
      1px solid
      #eeece7;
  }

  .asset-table td:first-child::before {
    display: none;
  }

  .asset-name-cell {
    width: 100%;
  }

  .asset-row-actions {
    width: 100%;
    justify-content: stretch;
  }

  .asset-row-btn {
    flex: 1;
  }
}

.asset-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 8px;

  background: #fff0f0;
  color: #d92d20;

  font-size: 25px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
}

.asset-modal-close:hover {
  background: #ffe2e2;
  color: #b42318;
}