@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --ink: #203d38;
  --green: #246a54;
  --muted: #7b8781;
  --line: #e3e8e3;
  --bg: #f5f7f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
h1,
h2,
.brand,
.clock {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.3px;
  margin: 10px 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
p {
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
  transition: 0.15s;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.brand {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  display: block;
}
.brand span {
  display: block;
  font:
    9px 'DM Sans',
    sans-serif;
  letter-spacing: 2px;
  margin: 8px 0 0 4px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 24px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #96a099;
  margin: 65px 12px 17px;
}
nav {
  display: grid;
  gap: 9px;
}
nav button {
  background: transparent;
  text-align: left;
  color: #748078;
  font-size: 17px;
  padding: 14px;
}
nav button span {
  font-size: 13px;
  margin-left: 10px;
}
nav button.selected {
  background: #eaf1e9;
  color: var(--green);
}
.sidebar-bottom {
  position: absolute;
  bottom: 25px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-bottom p {
  font-size: 10px;
  margin-left: 15px;
}
.demo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #98ae71;
  border-radius: 50%;
  margin-right: 5px;
}
main {
  margin-left: 245px;
}
header {
  height: 100px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
}
header p {
  margin: 5px 0;
  font-weight: 600;
}
.profile {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
}
.subtle {
  background: transparent;
  color: var(--green);
  font-size: 12px;
  padding: 8px;
}
.content {
  max-width: 1350px;
  margin: auto;
  padding: 38px 44px 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
}
.page-heading p {
  color: var(--muted);
  margin: 8px 0;
}
.tag {
  font-size: 10px;
  background: #edf0e9;
  padding: 9px 13px;
  border-radius: 20px;
  color: #6d7e6c;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}
.clock-card {
  background: var(--ink);
  border-radius: 14px;
  padding: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.clock-card:after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid #ffffff09;
  border-radius: 50%;
  right: -140px;
  top: 50px;
  pointer-events: none;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #c0d1c8;
}
.badge {
  padding: 7px 11px;
  background: #ffffff15;
  border-radius: 20px;
  letter-spacing: 0;
  font-size: 10px;
}
.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.changes-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.changes-tabs [role='tab'] {
  background: #eaf2e9;
  color: #365d3c;
}
.changes-tabs [aria-selected='true'] {
  background: var(--green, #246955);
  color: #fff;
}
.card-top .status-badges {
  justify-content: flex-end;
}
.clock {
  font-size: 62px;
  font-weight: 500;
  letter-spacing: -2px;
  margin-top: 32px;
  font-variant-numeric: tabular-nums;
}
.clock-card p {
  color: #b8ccc0;
  margin: 2px 0 26px;
  font-size: 12px;
}
.clock-card small {
  font-size: 10px;
  color: #a6bfb0;
  display: block;
  margin-top: 20px;
}
.punch-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.primary {
  background: var(--green);
  color: white;
}
.clock-card .primary {
  background: #d2e7a9;
  color: var(--ink);
}
.secondary {
  background: #eef1eb;
  color: var(--ink);
  border: 1px solid var(--line);
}
.clock-card .secondary {
  background: #ffffff0b;
  color: #fff;
  border-color: #ffffff30;
}
.summary-card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 27px;
}
.summary-card h2 {
  margin-bottom: 26px;
}
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #76847a;
  font-size: 12px;
}
.stat-row b {
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.summary-card > .muted {
  font-size: 10px;
  margin-top: 21px;
}
.panel {
  margin-top: 23px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: #f7f9f5;
  font-weight: 500;
  padding: 13px 14px;
}
td {
  border-bottom: 1px solid #eef0ed;
  padding: 15px 14px;
}
.table-wrap {
  overflow: auto;
}
.pill {
  display: inline-block;
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #eaf2e9;
  color: #4e7854;
}
.pill.pause,
.pill.resume {
  background: #fbf2de;
  color: #9a7b36;
}
.pill.out {
  background: #eff0f5;
  color: #7a7f94;
}
.badge[data-status-tone='active'],
.pill[data-status-tone='active'] {
  background: #e3f0df;
  color: #365d3c;
}
.badge[data-status-tone='pause'],
.pill[data-status-tone='pause'] {
  background: #fbf0d7;
  color: #7a5c22;
}
.badge[data-status-tone='scheduled'],
.pill[data-status-tone='scheduled'] {
  background: #deeeed;
  color: #2d6260;
}
.badge[data-status-tone='outside'],
.pill[data-status-tone='outside'] {
  background: #f8e7dd;
  color: #855137;
}
.badge[data-status-tone='neutral'],
.pill[data-status-tone='neutral'] {
  background: #eeeaf4;
  color: #625774;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  margin: 12px 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.team-person {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
}
.team-person p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #9aa49c;
  font-size: 10px;
  padding: 28px 0 5px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
}
input,
select,
textarea {
  border: 1px solid #dce3da;
  background: #fff;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b3ccb8;
  outline-offset: 2px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.filters label {
  flex: 1;
  min-width: 140px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
  max-width: 480px;
  width: calc(100% - 30px);
  color: var(--ink);
}
dialog::backdrop {
  background: #152c2566;
}
dialog label {
  margin: 20px 0;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 30px #0002;
  z-index: 10;
  max-width: 90vw;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.intro {
  background: var(--ink);
  color: #fff;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.intro h1 {
  font-size: 65px;
  line-height: 1.15;
  margin: 22px 0;
}
.intro p,
.intro small {
  color: #b2c5b8;
}
.intro .eyebrow {
  color: #cee0b5;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form form {
  width: 360px;
}
.login-form h2 {
  font-size: 28px;
  margin: 14px 0;
}
.login-form > form > p {
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form label {
  margin-bottom: 20px;
}
.login-form .primary {
  width: 100%;
  margin: 5px 0 25px;
}
.login-form aside {
  font-size: 11px;
  color: var(--muted);
  padding: 18px;
  background: #eaf0e6;
  border-radius: 10px;
}
.login-form aside p {
  font-size: 11px;
}
button:focus-visible {
  outline: 3px solid #a9bd88;
  outline-offset: 3px;
}
@media (min-width: 1500px) {
  .clock {
    font-size: 76px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  main {
    margin-left: 205px;
  }
  .content {
    padding: 30px 24px;
  }
  header {
    padding: 0 24px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    padding: 24px;
  }
  .intro {
    padding: 40px;
  }
  .intro h1 {
    font-size: 50px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: auto;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .sidebar .brand {
    font-size: 26px;
  }
  .sidebar .brand span,
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 18px;
    gap: 5px;
  }
  nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px;
  }
  nav button span {
    margin-left: 4px;
    font-size: 11px;
  }
  main {
    margin: 0;
  }
  header {
    height: 72px;
    padding: 0 18px;
  }
  header .eyebrow {
    font-size: 8px;
  }
  .profile {
    gap: 8px;
  }
  .content {
    padding: 26px 16px;
  }
  h1 {
    font-size: 29px;
  }
  .tag {
    display: none;
  }
  .clock-card {
    padding: 24px;
  }
  .clock {
    font-size: 58px;
  }
  .panel {
    padding: 18px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  footer {
    font-size: 8px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .intro {
    min-height: 220px;
    padding: 25px;
  }
  .intro h1 {
    font-size: 32px;
    margin: 12px 0;
  }
  .intro p,
  .intro small,
  .intro > div > .eyebrow {
    display: none;
  }
  .login-form {
    padding: 30px 24px;
  }
  .login-form form {
    width: 100%;
  }
  .filters button {
    flex: 1;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .clock-card small {
    font-size: 9px;
  }
}

.form-error {
  background: #fff1ed;
  border: 1px solid #e6b3a7;
  color: #913d2c;
  padding: 13px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
}
.form-error:focus {
  outline: 2px solid #bc7160;
  outline-offset: 2px;
}
.planning-toolbar,
.planning-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.planning-toolbar {
  justify-content: space-between;
}
.planning-tabs h2 {
  min-width: 170px;
  text-align: center;
  text-transform: capitalize;
}
.calendar-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.calendar-scroll {
  overflow: auto;
}
.planning-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  min-width: 740px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.calendar-weekday {
  padding: 13px;
  text-align: center;
  background: #f5f7f3;
  color: var(--muted);
  font-size: 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calendar-day {
  min-height: 112px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calendar-blank {
  background: #fafbf9;
}
.calendar-number {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}
.calendar-today .calendar-number {
  background: var(--green);
  border-radius: 50%;
  color: white;
}
.calendar-event {
  background: #eaf2e9;
  color: #34634a;
  border-radius: 5px;
  padding: 6px;
  margin-bottom: 4px;
  font-size: 9px;
  overflow-wrap: anywhere;
}
.calendar-event b,
.calendar-event span {
  display: block;
}
.vacation {
  background: #e9edf9 !important;
  color: #5d6395 !important;
}
#planning .panel h2 {
  margin-top: 0;
}
#planning td {
  white-space: normal;
  min-width: 100px;
}
#planningAudit td {
  font-size: 10px;
  min-width: 100px;
}
#planningAudit td:nth-child(4),
#planningAudit td:nth-child(5) {
  min-width: 180px;
}
.planning-toolbar label {
  min-width: 170px;
}
@media (max-width: 650px) {
  .planning-tabs {
    width: 100%;
    gap: 8px;
  }
  .planning-tabs button {
    flex: 1;
  }
  .planning-tabs label {
    width: 100%;
  }
  .planning-tabs h2 {
    font-size: 16px;
    min-width: 130px;
  }
  .planning-calendar {
    min-width: 700px;
  }
  #planning .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
.planning-calendar.calendar-view-day {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: 0;
  border-right: 0;
  border-bottom: 0;
}
.calendar-view-day > .calendar-day {
  min-height: 240px;
}
.calendar-view-week > .calendar-day {
  min-height: 220px;
}
.calendar-view-week .calendar-number {
  width: auto;
  min-width: 30px;
  border-radius: 5px;
}
.calendar-view-day .calendar-event {
  font-size: 12px;
  padding: 12px;
}
.calendar-view-week .calendar-event {
  font-size: 11px;
  padding: 9px;
}
.calendar-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 8px;
}
.calendar-view-day .calendar-weekday {
  text-transform: capitalize;
}
.planning-tabs #planningMonth {
  max-width: 360px;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  flex-wrap: wrap;
}
.calendar-arrow {
  font-size: 26px;
  line-height: 1;
  background: transparent;
  color: var(--ink);
  padding: 7px 10px;
  border: 1px solid transparent;
}
.calendar-arrow:hover {
  background: #edf2e9;
  border-color: var(--line);
}
#calendarJump {
  position: relative;
}
#calendarJump summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 7px;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
#calendarJump summary::-webkit-details-marker {
  display: none;
}
#calendarJump summary:hover {
  background: #f1f5ed;
}
#calendarJump summary:focus-visible {
  outline: 2px solid var(--green);
}
.calendar-jump-panel {
  position: absolute;
  top: 100%;
  left: 0;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px #203d3820;
  border-radius: 10px;
  z-index: 2;
  min-width: 235px;
}
#planningMonth {
  text-transform: none;
}
#planningMonth:first-letter {
  text-transform: uppercase;
}
@media (max-width: 650px) {
  #calendarJump {
    flex-basis: 100%;
  }
  #calendarJump summary {
    font-size: 14px;
    padding-left: 0;
  }
  .calendar-jump-panel {
    max-width: calc(100vw - 70px);
  }
}

.batch-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.batch-days {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 15px 0;
}
.batch-days legend {
  font-size: 12px;
}
.batch-days label {
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin: 0;
}
.batch-days input {
  accent-color: var(--green);
}
.batch-preview {
  background: #eef4e8;
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
}
#batchShiftDialog {
  max-width: 560px;
}
@media (max-width: 450px) {
  .batch-columns {
    grid-template-columns: 1fr;
  }
}

.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
}
.audit-pagination > div {
  display: flex;
  gap: 8px;
}
.audit-pagination button {
  font-size: 12px;
  padding: 9px 13px;
}

button.calendar-event {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.5;
}
button.calendar-event:hover {
  border-color: var(--green);
  filter: brightness(0.96);
}
button.calendar-event:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

#vacationSettingsDialog {
  max-width: 650px;
}
#vacationSettingsDialog hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
#vacationSettingsDialog h3 {
  font-size: 16px;
}
.calendar-event.holiday {
  background: #fff2d5;
  color: #947025;
}
#vacationYear {
  width: 105px;
}
#vacationBalances td {
  white-space: normal;
}
#holidayList .table-wrap {
  max-height: 220px;
  overflow: auto;
}

.form-error.form-success {
  background: #eff6e8;
  border-color: #b9d0a6;
  color: #386a3c;
}

.calendar-event.absence,
.pill.absence {
  background: #f5e8df;
  color: #80573d;
}
#absenceTable td {
  white-space: normal;
}
#absenceTable td:nth-child(6) {
  max-width: 220px;
  overflow-wrap: anywhere;
}
#absenceDialog {
  max-width: 620px;
}
#absenceForm .dialog-actions {
  flex-wrap: wrap;
}
