:root {
  --green: #163e34;
  --green2: #245848;
  --lime: #ddf4c0;
  --paper: #f5f6f2;
  --ink: #20342d;
  --muted: #7b8580;
  --line: #e6eae3;
  --white: #fff;
  --red: #b84d42;
  --amber: #a77925;
  --shadow: 0 8px 32px #193c2d08;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9ac6a5;
  outline-offset: 3px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 8px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin-bottom: 5px;
}
h3 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 7px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 700;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-symbol {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--lime);
  border-radius: 11px;
  color: var(--green);
  font:
    bold 32px Georgia,
    serif;
  letter-spacing: -4px;
  padding-right: 4px;
}
.brand-name {
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
.brand-name span {
  color: #b9d0c0;
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #8eb09e;
  margin-top: 3px;
}
.initial-loader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
}
.sidebar {
  width: 238px;
  background: var(--green);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 30px 21px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  padding: 0 8px 33px;
  flex-shrink: 0;
}
.sidebar nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: #8eaa9c;
  padding: 20px 13px 10px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #bfcec5;
  border-radius: 8px;
  font-size: 12px;
  position: relative;
  margin-bottom: 4px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #ffffff0b;
  color: #fff;
  text-decoration: none;
}
.nav-item.active {
  background: var(--lime);
  color: #183e2d;
  font-weight: 650;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #ffffff15;
  padding: 20px 10px 0;
  display: flex;
  gap: 11px;
  align-items: center;
  flex-shrink: 0;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #edf1e8;
  color: var(--green);
  font-weight: 650;
  width: 36px;
  height: 36px;
  font-size: 11px;
}
.sidebar-footer .avatar {
  background: #416151;
  color: #d9e7d9;
}
.sidebar-footer strong {
  font-size: 11px;
  display: block;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-footer small {
  font-size: 10px;
  color: #a3baaa;
  display: block;
  margin-top: 4px;
}
.logout {
  background: none;
  color: #bdcdbf;
  padding: 5px;
  margin-left: auto;
}
.logout svg {
  width: 17px;
}
.main {
  margin-left: 238px;
  min-height: 100vh;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  background: #fff9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 16px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb span:last-child {
  color: var(--ink);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 11px;
}
.topbar-date {
  color: #68756d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-date svg {
  width: 15px;
}
.role-pill {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #5d6e64;
  font-size: 10px;
}
.menu-toggle {
  display: none;
  background: none;
  padding: 6px;
}
.content {
  max-width: 1460px;
  margin: 0 auto;
  padding: 36px 42px 40px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--green);
  text-decoration: none;
  min-height: 39px;
  white-space: nowrap;
}
.btn:hover {
  background: var(--green2);
  text-decoration: none;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: #dce3d9;
}
.btn.secondary:hover {
  background: #f1f4ed;
}
.btn.subtle {
  background: #f1f4ed;
  color: var(--green);
  border-color: transparent;
}
.btn.danger {
  background: #fff3f0;
  color: var(--red);
  border-color: #efd3cd;
}
.btn.small {
  min-height: 30px;
  padding: 7px 10px;
  font-size: 10px;
}
.btn.large {
  min-height: 62px;
  font-size: 15px;
  padding: 18px 25px;
  border-radius: 10px;
}
.btn.large svg {
  width: 23px;
  height: 23px;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #6c7a70;
  margin-bottom: 15px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff4e9;
  color: #64825f;
}
.stat-icon svg {
  width: 17px;
  height: 17px;
}
.stat-number {
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -1px;
  font-weight: 600;
}
.stat-footer {
  margin-top: 12px;
  font-size: 10px;
  color: #919a93;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-footer .dot {
  width: 5px;
  height: 5px;
  background: #81a573;
  border-radius: 50%;
}
.stat.featured {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.stat.featured .stat-header {
  color: #c1d3c6;
}
.stat.featured .stat-icon {
  background: #ffffff14;
  color: var(--lime);
}
.stat.featured .stat-footer {
  color: #b5c8ba;
}
.stat.featured .dot {
  background: #c6ed9d;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-pad {
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 23px 24px 18px;
}
.card-header p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
}
.text-link {
  font-size: 10px;
  color: var(--green2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.text-link svg {
  width: 14px;
}
.chart {
  height: 207px;
  display: flex;
  gap: 18px;
  align-items: end;
  padding: 15px 28px 0 49px;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 49px,
    #e9ece5 49px,
    #e9ece5 50px
  );
  margin: 0 24px 0;
}
.chart:before {
  content: "KEHADIRAN";
  position: absolute;
  left: -17px;
  top: 20px;
  font-size: 8px;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #8c978c;
}
.chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.chart-bar {
  width: 25px;
  max-width: 43%;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: #cedfc2;
  transition: height 0.3s;
}
.chart-bar.late {
  background: #eed8a7;
}
.chart-col:last-child .chart-bar:first-child {
  background: #28634c;
}
.chart-value {
  position: absolute;
  font-size: 10px;
  bottom: calc(var(--h) + 6px);
  color: #687b6c;
}
.chart-labels {
  display: flex;
  justify-content: space-around;
  padding: 12px 28px 20px 49px;
  margin: 0 24px;
  font-size: 10px;
  color: #8a938b;
}
.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 9px;
  color: #7a897d;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #a7c296;
  border-radius: 2px;
  margin-right: 5px;
}
.legend i.amber {
  background: #eed8a7;
}
.attendance-ring {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  margin: 10px auto 20px;
  background: conic-gradient(var(--green) 0 var(--p), #eff2e9 var(--p) 360deg);
  display: grid;
  place-items: center;
  transform: rotate(-0.01deg);
}
.ring-inner {
  background: #fff;
  border-radius: 50%;
  height: 121px;
  width: 121px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-inner strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
}
.ring-inner span {
  font-size: 10px;
  color: #8b948d;
  margin-top: 4px;
}
.ring-legend {
  display: flex;
  justify-content: space-around;
  padding: 0 15px 23px;
  gap: 10px;
}
.ring-legend div {
  text-align: center;
  font-size: 10px;
  color: #889087;
}
.ring-legend strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}
.table-wrap {
  overflow-x: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #8a948b;
  background: #fafbf8;
  font-weight: 600;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 22px;
  border-bottom: 1px solid #edf0e9;
}
tr:last-child td {
  border-bottom: 0;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.person small {
  font-size: 9px;
  color: #8c958e;
  display: block;
  margin-top: 4px;
}
.person .avatar {
  width: 31px;
  height: 31px;
  font-size: 9px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 550;
  background: #edf4e8;
  color: #5b7f4f;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.warning {
  background: #fcf3e2;
  color: #a17a32;
}
.badge.danger {
  background: #fceeea;
  color: #b66758;
}
.badge.neutral {
  background: #f0f2ee;
  color: #7d877b;
}
.badge.info {
  background: #edf1fb;
  color: #657ba3;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 17px;
  border: 1px solid #e6eccc;
  background: #f7faed;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.65;
  margin-bottom: 20px;
  color: #6e7952;
}
.notice svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.notice.error {
  background: #fff3ee;
  border-color: #f1d9d0;
  color: #9d6254;
}
.notice.info {
  background: #eff4f7;
  border-color: #dee7ea;
  color: #657b87;
}
.notice p {
  margin: 0;
}
.request-list {
  padding: 0 24px 6px;
}
.request-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.request-row:last-child {
  border: 0;
}
.request-row .request-info {
  min-width: 0;
  flex: 1;
}
.request-row strong {
  font-size: 11px;
  font-weight: 600;
}
.request-row p {
  margin: 5px 0 0;
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.request-row .icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f2f3eb;
  display: grid;
  place-items: center;
  color: #879779;
}
.icon-box svg {
  width: 17px;
}
.request-row .request-date {
  font-size: 9px;
  color: #899288;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: #889486;
  font-size: 12px;
}
.empty svg {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto 14px;
  color: #a9baa3;
}
.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  min-width: 0;
}
.field label {
  font-size: 11px;
  color: #566b5b;
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #dfe5db;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  min-height: 40px;
  outline-offset: 2px;
}
.field textarea {
  resize: vertical;
  min-height: 85px;
}
.field small {
  font-size: 10px;
  color: #8a9487;
  line-height: 1.6;
}
.field input:disabled {
  background: #f2f4ee;
}
.backup-filename {
  display: block;
  max-width: 360px;
  overflow-wrap: anywhere;
  white-space: normal;
}
#database-restore-form {
  max-width: 800px;
}
#restore-database {
  max-width: 100%;
  font-size: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.filter-row .field {
  margin-bottom: 0;
}
.filter-row input,
.filter-row select {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 11px;
}
.attendance-filters .employee-filter {
  min-width: 230px;
  max-width: 380px;
  flex: 2 1 230px;
}
.attendance-filters .filter-row {
  width: 100%;
}
#attendance-filter-summary {
  overflow-wrap: anywhere;
}
#report-attendance .button-row {
  flex-wrap: wrap;
}
.search {
  position: relative;
  min-width: 210px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 15px;
  color: #9aa893;
}
.search input {
  padding-left: 35px;
}
.section-space {
  margin-top: 24px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #a0a79d;
  font-size: 9px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.page-footer span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-footer svg {
  width: 11px;
  height: 11px;
}
.skeleton {
  height: 260px;
  background: linear-gradient(100deg, #edf0e7 30%, #f9fbf6 45%, #edf0e7 60%);
  background-size: 200%;
  border-radius: 12px;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%) translateY(100px);
  background: var(--green);
  color: #fff;
  padding: 14px 22px;
  border-radius: 9px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 8px 28px #0002;
  opacity: 0;
  transition:
    transform 0.2s,
    opacity 0.2s;
  max-width: 90vw;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
#toast.error {
  background: #a44d41;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 30px 100px #102d2533;
  max-width: 610px;
  width: calc(100% - 30px);
  padding: 0;
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #163e3466;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 27px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
}
.close-modal {
  background: #f4f6f0;
  color: #7b8a78;
  display: grid;
  place-items: center;
  border-radius: 6px;
  padding: 5px;
}
.close-modal svg {
  width: 17px;
  height: 17px;
}
.modal-body {
  padding: 23px 27px 27px;
}
.modal-footer {
  display: flex;
  justify-content: end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 8px;
}
.form-error {
  display: none;
  background: #fff1eb;
  color: #a45141;
  font-size: 11px;
  padding: 12px 14px;
  border-radius: 7px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.form-error.visible {
  display: block;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #63745f;
  margin: 13px 0;
}
.checkbox input {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  padding: 55px 12%;
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.login-story .brand {
  position: relative;
  z-index: 2;
}
.login-intro {
  margin: auto 0;
  position: relative;
  z-index: 2;
  padding: 70px 0;
}
.login-intro .eyebrow {
  color: #a6c29a;
  margin-bottom: 22px;
}
.login-intro h1 {
  font-size: 49px;
  line-height: 1.16;
  letter-spacing: -2px;
  font-weight: 550;
  margin-bottom: 24px;
  max-width: 400px;
}
.login-intro h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #d6edb8;
}
.login-intro p {
  font-size: 13px;
  color: #aac5b5;
  max-width: 340px;
  line-height: 1.9;
}
.login-feature {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
  font-size: 11px;
  color: #ccdfcd;
}
.login-feature svg {
  color: #badd9f;
}
.login-story:after {
  content: "";
  width: 490px;
  height: 490px;
  position: absolute;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
  right: -270px;
  bottom: 60px;
  box-shadow:
    0 0 0 65px #ffffff03,
    0 0 0 130px #ffffff02;
}
.login-story footer {
  font-size: 10px;
  color: #87a48e;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fafbf7;
}
.login-box {
  width: 350px;
  max-width: 100%;
}
.login-box .eyebrow {
  color: #97a48b;
  margin-bottom: 20px;
}
.login-box h2 {
  font-size: 28px;
  letter-spacing: -0.9px;
  margin-bottom: 11px;
}
.login-box > p {
  font-size: 12px;
  color: #8b9487;
  margin-bottom: 32px;
}
.login-box .btn {
  width: 100%;
  margin-top: 9px;
  min-height: 45px;
}
.login-help {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 10px;
  color: #929b8d;
  text-align: center;
  line-height: 1.8;
}
.clock-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.clock-face {
  text-align: center;
  padding: 30px 24px;
}
.live-clock {
  font-size: 48px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 20px 0 5px;
}
.clock-date {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
}
.clock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.clock-action {
  min-width: 0;
}
.clock-action > .btn {
  width: 100%;
}
.clock-action-reason {
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: #8b7250;
}
.location-visual {
  height: 205px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background-color: #f0f4e9;
  background-image:
    linear-gradient(#e2e9da66 1px, transparent 1px),
    linear-gradient(90deg, #e2e9da66 1px, transparent 1px);
  background-size: 27px 27px;
}
.radius-circle {
  width: 135px;
  height: 135px;
  border: 1px dashed #abc19b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4edd866;
  box-shadow:
    0 0 0 25px #dfe9d333,
    0 0 0 50px #dfe9d322;
}
.office-pin {
  width: 47px;
  height: 47px;
  border-radius: 14px;
  background: var(--green);
  color: var(--lime);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 12px #243f3022;
}
.location-label {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  font-size: 9px;
  text-align: center;
  color: #89967e;
}
.location-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 0;
}
.location-stats > div {
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 7px;
}
.location-stats small {
  font-size: 9px;
  color: #929c8b;
  display: block;
  margin-bottom: 8px;
}
.location-stats strong {
  font-size: 18px;
  font-weight: 550;
}
.definition-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.definition-list dt {
  font-size: 10px;
  color: #85917e;
  margin-bottom: 7px;
}
.definition-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 550;
}
.welcome-card {
  background: var(--green);
  color: #fff;
  padding: 31px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.welcome-card h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  margin: 9px 0 11px;
}
.welcome-card p {
  font-size: 11px;
  color: #b2cbb7;
  max-width: 450px;
  margin: 0;
}
.welcome-card .eyebrow {
  font-size: 9px;
  color: #bddd9e;
}
.welcome-card .btn {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--green);
  flex-shrink: 0;
}
.schedule-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
  padding: 6px 24px 23px;
}
.day-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px 7px;
  text-align: center;
}
.day-card.today {
  background: #edf4e6;
  border-color: #c9d9be;
}
.day-card small {
  font-size: 9px;
  color: #8f9c85;
}
.day-card strong {
  display: block;
  font-size: 20px;
  margin: 8px 0 12px;
}
.day-card span {
  font-size: 9px;
  display: block;
  line-height: 1.6;
  color: #6e7e64;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 22px;
}
.profile-card {
  text-align: center;
  padding: 35px 25px;
}
.profile-card .avatar {
  width: 75px;
  height: 75px;
  font-size: 24px;
  margin: 0 auto 20px;
}
.profile-card h2 {
  font-size: 21px;
}
.profile-card p {
  font-size: 11px;
  color: var(--muted);
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 22px;
}
.slip {
  max-width: 850px;
  margin: 0 auto;
  padding: 37px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.slip-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--green);
  padding-bottom: 25px;
}
.slip-header .brand-name {
  font-size: 25px;
}
.slip-header small {
  font-size: 10px;
  color: var(--muted);
}
.slip-title {
  text-align: right;
}
.slip-title h2 {
  font-size: 20px;
}
.slip-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 25px 0;
}
.money-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.money-row strong {
  font-weight: 550;
}
.net-pay {
  padding: 21px;
  border-radius: 7px;
  background: #edf4e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0;
}
.net-pay span {
  font-size: 12px;
}
.net-pay strong {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.audit-data {
  max-width: 600px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 10px;
  line-height: 1.7;
  background: #f5f7f1;
  padding: 15px;
  border-radius: 7px;
  overflow: auto;
}
.mobile-overlay {
  display: none;
}
.inline-meta {
  font-size: 10px;
  color: #81917a;
  margin-top: 8px;
  line-height: 1.7;
}
.nowrap {
  white-space: nowrap;
}
.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.print-only {
  display: none;
}
.issue-list {
  font-size: 11px;
  color: var(--red);
  padding-left: 18px;
  line-height: 1.8;
}
.nowrap-wrap {
  white-space: normal;
  min-width: 180px;
}
.tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab {
  padding: 9px 15px;
  border-radius: 7px;
  background: #e9eee4;
  color: #718268;
  font-size: 11px;
}
.tab.active {
  background: var(--green);
  color: #fff;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .chart {
    height: 240px;
  }
  .stats {
    gap: 23px;
  }
  .stat {
    padding: 25px;
  }
  .grid-main {
    gap: 25px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 210px;
    padding-inline: 13px;
  }
  .main {
    margin-left: 210px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .stat {
    padding: 18px;
  }
  .stats {
    gap: 12px;
  }
  .grid-main {
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
  }
  .stat-number {
    font-size: 28px;
  }
  .clock-grid {
    gap: 16px;
  }
  .topbar-date {
    font-size: 10px;
  }
  #toast {
    left: calc(50% + 100px);
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 190px;
  }
  .main {
    margin-left: 190px;
  }
  .brand-name {
    font-size: 19px;
  }
  .sidebar .brand {
    padding-inline: 3px;
    gap: 8px;
  }
  .brand-symbol {
    width: 35px;
    height: 35px;
  }
  .content {
    padding: 25px 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 22px;
  }
  .ring-legend {
    max-width: 350px;
    margin: auto;
  }
  .chart {
    height: 200px;
  }
  .split-cards {
    grid-template-columns: 1fr;
  }
  .clock-grid {
    grid-template-columns: 1fr;
  }
  .topbar-date {
    display: none;
  }
  .login-intro h1 {
    font-size: 39px;
  }
  .login-story {
    padding: 40px 10%;
  }
  .profile-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}
@media (max-width: 700px) {
  :root {
    font-size: 14px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 240px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.open + .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #153e3466;
    z-index: 29;
    backdrop-filter: blur(2px);
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 10px;
  }
  .breadcrumb > span:first-of-type,
  .breadcrumb .crumb-arrow {
    display: none;
  }
  .topbar-right {
    gap: 10px;
  }
  .topbar-right > .avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
  }
  .role-pill {
    font-size: 9px;
    padding: 6px 9px;
  }
  .content {
    padding: 26px 18px 24px;
  }
  .page-heading {
    align-items: start;
    gap: 12px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.7;
  }
  .page-heading > .button-row > .btn {
    font-size: 0;
    padding: 10px;
    min-width: 37px;
  }
  .page-heading > .button-row > .btn svg {
    font-size: 12px;
    width: 17px;
    height: 17px;
  }
  .page-heading #attendance-export-excel,
  .page-heading #attendance-export-csv {
    font-size: 11px;
    min-width: 76px;
    padding: 9px;
    gap: 5px;
  }
  .page-heading .attendance-export-prefix {
    display: none;
  }
  .stats {
    gap: 11px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 17px 15px;
  }
  .stat-header {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .stat-icon {
    width: 28px;
    height: 28px;
  }
  .stat-icon svg {
    width: 14px;
  }
  .stat-number {
    font-size: 28px;
  }
  .stat-footer {
    font-size: 9px;
    margin-top: 10px;
  }
  .grid-main {
    gap: 17px;
    margin-bottom: 17px;
  }
  .card-header {
    padding: 20px 18px 16px;
  }
  .card-pad {
    padding: 20px;
  }
  .card-header h2 {
    font-size: 15px;
  }
  .card-header p {
    font-size: 9px;
  }
  .chart {
    margin: 0 19px;
    padding-left: 22px;
    padding-right: 5px;
    height: 180px;
    gap: 10px;
  }
  .chart-labels {
    margin: 0 19px;
    padding-left: 22px;
    padding-right: 5px;
  }
  .chart:before {
    font-size: 7px;
    left: -10px;
  }
  .legend {
    gap: 8px;
    font-size: 8px;
  }
  .chart-bar {
    width: 23px;
  }
  .request-list {
    padding: 0 18px 6px;
  }
  th,
  td {
    padding: 13px 16px;
  }
  #toast {
    left: 50%;
    font-size: 11px;
    min-width: 220px;
    text-align: center;
  }
  .page-footer {
    font-size: 8px;
    margin-top: 23px;
    gap: 10px;
  }
  .toolbar {
    align-items: stretch;
  }
  .filter-row {
    gap: 8px;
    width: 100%;
  }
  .filter-row .field {
    flex: 1;
    min-width: 110px;
  }
  .attendance-filters .employee-filter {
    flex-basis: 100%;
    max-width: none;
    min-width: 0;
  }
  .filter-row > .btn {
    flex: 0;
  }
  .search {
    width: 100%;
    min-width: 0;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 25px 25px 30px;
    min-height: 230px;
  }
  .login-intro {
    padding: 33px 0 0;
  }
  .login-intro .eyebrow {
    display: none;
  }
  .login-intro h1 {
    font-size: 28px;
    letter-spacing: -1px;
    max-width: 280px;
    margin-bottom: 8px;
  }
  .login-intro p,
  .login-feature,
  .login-story footer {
    display: none;
  }
  .login-form {
    padding: 34px 27px 40px;
  }
  .login-box {
    width: 100%;
    max-width: 400px;
  }
  .login-box h2 {
    font-size: 25px;
  }
  .login-box > p {
    margin-bottom: 25px;
  }
  .login-box .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .field-row {
    gap: 12px;
  }
  .welcome-card {
    padding: 25px;
    display: block;
  }
  .welcome-card h2 {
    font-size: 22px;
  }
  .welcome-card .btn {
    margin-top: 20px;
  }
  .schedule-days {
    padding: 3px 17px 19px;
    gap: 6px;
    grid-template-columns: repeat(4, 1fr);
  }
  .schedule-days .day-card:nth-child(n + 5) {
    display: none;
  }
  .day-card {
    padding: 13px 4px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    padding: 28px;
  }
  .profile-card .avatar {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  .clock-face {
    padding: 24px 18px;
  }
  .live-clock {
    font-size: 46px;
  }
  .clock-actions {
    gap: 10px;
  }
  .btn.large {
    padding: 17px 13px;
    font-size: 13px;
    min-height: 63px;
  }
  .modal-head {
    padding: 22px 21px 17px;
  }
  .modal-body {
    padding: 21px;
  }
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .slip {
    padding: 22px 18px;
  }
  .slip-table {
    gap: 15px;
  }
  .slip-title h2 {
    font-size: 16px;
  }
  .slip-header .brand-name {
    font-size: 20px;
  }
  .slip-header .brand-symbol {
    width: 30px;
    height: 30px;
    font-size: 26px;
  }
  .slip-header .brand {
    gap: 7px;
  }
  .money-row {
    font-size: 10px;
  }
  .net-pay strong {
    font-size: 20px;
  }
  .definition-list {
    gap: 15px;
  }
  .topbar-right > .role-pill {
    display: none;
  }
}
.stat-number.money {
  font-size: clamp(18px, 1.65vw, 27px);
  letter-spacing: -0.6px;
}
.shift-hours {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 4px 0 16px;
}
.sidebar .brand {
  color: #fff;
  text-decoration: none;
}
.office-modal {
  max-width: 880px;
}
.office-map-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  margin: 6px 0 22px;
  background: #fafcf7;
}
.office-map-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 13px;
}
.office-map-heading p {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.office-map-status {
  font-size: 11px;
  line-height: 1.7;
  color: #63785e;
  background: #edf4e7;
  border-radius: 7px;
  padding: 11px 13px;
  margin-bottom: 13px;
}
.office-map-status.error {
  color: var(--red);
  background: #fff0eb;
}
.office-map-status.info {
  color: #657b87;
  background: #edf3f6;
}
.office-map-frame {
  display: block;
  width: 100%;
  height: 535px;
  border: 1px solid #dfe6d8;
  border-radius: 8px;
  background: #f1f5eb;
  margin-bottom: 17px;
}
.office-map-fallback,
.office-coordinate-paste {
  display: flex;
  align-items: start;
  gap: 12px;
}
.office-map-fallback .field,
.office-coordinate-paste .field {
  flex: 1;
  min-width: 0;
}
.office-map-fallback .btn,
.office-coordinate-paste .btn {
  margin-top: 22px;
}
.office-coordinate-summary {
  font-size: 11px;
  color: var(--green2);
  line-height: 1.7;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.office-coordinate-summary.error {
  color: var(--red);
}
@media (max-width: 700px) {
  .office-map-panel {
    padding: 14px;
  }
  .office-map-fallback,
  .office-coordinate-paste {
    flex-direction: column;
    gap: 0;
  }
  .office-map-fallback .field,
  .office-coordinate-paste .field {
    width: 100%;
    margin-bottom: 8px;
  }
  .office-map-fallback .btn,
  .office-coordinate-paste .btn {
    width: 100%;
    margin: 0 0 16px;
  }
  .office-map-frame {
    height: 555px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-heading,
  .page-footer,
  .toolbar,
  .no-print,
  #toast,
  dialog {
    display: none !important;
  }
  .main {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .slip {
    border: 0;
    max-width: 100%;
    padding: 15px;
  }
  .print-only {
    display: block;
  }
  body {
    background: white;
  }
  .card {
    box-shadow: none;
  }
  a {
    color: inherit;
  }
}
