:root {
  --primary: #0d6efd;
  --primary-rgb: 13,110,253;
  --sidebar: #101828;
  --bg: #f5f7fb;
  --text: #182230;
  --muted: #667085;
  --border: #e4e7ec;
  --card: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
}

.layout {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 265px;
  background: var(--sidebar);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 24px 16px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 0 10px 24px;
  font-size: 17px;
  font-weight: 750;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.nav-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #98a2b3;
  padding: 20px 12px 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d0d5dd;
  padding: 11px 12px;
  border-radius: 9px;
  margin: 3px 0;
  font-size: 14px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255, .11);
}

.nav-icon {
  width: 21px;
  text-align: center;
}

.main {
  margin-left: 265px;
  width: calc(100% - 265px);
}

.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.content {
  padding: 30px;
}

.page-title {
  font-size: 26px;
  font-weight: 750;
  margin: 0;
}

.subtitle {
  color: var(--muted);
  margin-top: 5px;
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16,24,40, .05);
}

.card-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 20px;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-12 {
  grid-column: span 12;
}

.stat {
  padding: 22px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  font-size: 29px;
  font-weight: 750;
  margin-top: 10px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 21px;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: #344054;
  border: 1px solid #d0d5dd;
}

.btn-danger {
  background: #fee4e2;
  color: #b42318;
}

.btn-sm {
  padding: 7px 10px;
  font-size: 13px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 7px;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #182230;
  font: inherit;
}

.form-control:focus, .form-select:focus {
  outline: 3px solid rgba(var(--primary-rgb), .13);
  border-color: var(--primary);
}

.form-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.field-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 14px;
  padding: 16px 0 10px;
}

.field-choice-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, background .16s, transform .16s;
}

.field-choice-card:hover {
  border-color: rgba(var(--primary-rgb), .55);
  box-shadow: 0 12px 26px rgba(16,24,40, .12);
  transform: translateY(-2px);
}

.field-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.field-choice-main {
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
}

.field-choice-kicker {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.field-choice-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.field-choice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.field-choice-required {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1f3;
  color: #c01048;
  font-weight: 750;
}

.field-choice-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16,24,40, .05);
}

.field-choice-action-on {
  display: none;
}

.field-choice-card:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .12), #fff);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .13),0 14px 28px rgba(16,24,40, .1);
}

.field-choice-card:has(input:checked) .field-choice-action {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.field-choice-card:has(input:checked) .field-choice-action-off {
  display: none;
}

.field-choice-card:has(input:checked) .field-choice-action-on {
  display: inline;
}

.field-choice-card:has(input:focus-visible) {
  outline: 3px solid rgba(var(--primary-rgb), .2);
  outline-offset: 2px;
}

.field-choice-drag {
  align-self: start;
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: grab;
}

.field-choice-dragging {
  opacity: .72;
  transform: scale(.98);
}

[data-theme="dark"] .field-choice-card {
  background: linear-gradient(180deg, rgba(30,41,59, .96), rgba(15,23,42, .92));
  border-color: rgba(148,163,184, .35);
}

[data-theme="dark"] .field-choice-card:hover {
  border-color: rgba(var(--primary-rgb), .8);
  box-shadow: 0 14px 30px rgba(0,0,0, .34);
}

[data-theme="dark"] .field-choice-title {
  color: #f8fafc;
}

[data-theme="dark"] .field-choice-meta {
  color: #cbd5e1;
}

[data-theme="dark"] .field-choice-kicker {
  background: #f8fafc;
  color: var(--primary);
}

[data-theme="dark"] .field-choice-drag {
  background: rgba(248,250,252, .12);
  color: #e2e8f0;
}

[data-theme="dark"] .field-choice-required {
  background: #fff;
  color: #c01048;
}

[data-theme="dark"] .field-choice-action {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(248,250,252, .5);
}

[data-theme="dark"] .field-choice-card:has(input:checked) {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .42), rgba(15,23,42, .9));
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .28),0 18px 34px rgba(0,0,0, .38);
}

[data-theme="dark"] .field-choice-card:has(input:checked) .field-choice-action {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f9fafb;
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 650;
}

.badge-green {
  background: #dcfae6;
  color: #067647;
}

.badge-red {
  background: #fee4e2;
  color: #b42318;
}

.badge-blue {
  background: #eff8ff;
  color: #175cd3;
}

.alert {
  padding: 13px 16px;
  border-radius: 9px;
  margin-bottom: 20px;
}

.alert-success {
  background: #dcfae6;
  color: #067647;
}

.alert-danger {
  background: #fee4e2;
  color: #b42318;
}

.search {
  display: flex;
  gap: 10px;
}

.empty {
  text-align: center;
  padding: 46px;
  color: var(--muted);
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(130deg, #f4f7ff, #fff);
  display: grid;
  place-items: center;
  padding: 30px;
}

.login-shell {
  width: min(1050px,100%);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
}

.login-title {
  font-size: 46px;
  line-height: 1.08;
  margin: 18px 0;
}

.login-card {
  padding: 34px;
}

.login-eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

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

.mb-0 {
  margin-bottom: 0;
}

.mb-3 {
  margin-bottom: 16px;
}

.mt-3 {
  margin-top: 16px;
}

.text-muted {
  color: var(--muted);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.menu-btn {
  display: none;
}

.required {
  color: #d92d20;
}

@media(max-width:900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: .2s;
  }

  .sidebar.open {
    transform: none;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .menu-btn {
    display: inline-flex;
  }

  .content {
    padding: 20px;
  }

  .col-3, .col-4, .col-6 {
    grid-column: span 12;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-copy {
    display: none;
  }
}

@media(max-width:560px) {
  .topbar {
    padding: 0 16px;
  }

  .content {
    padding: 16px;
  }

  .search {
    flex-direction: column;
  }

  .card-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
}
.office-root-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 20px;
    padding: 16px;
    border: 1px dashed color-mix(in srgb, var(--primary) 50%, var(--border));
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
    background: color-mix(in srgb, var(--primary) 4%, var(--card));
    transition: .18s ease;
}

.office-root-drop > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: var(--primary);
    font-size: 22px;
}

.office-root-drop div { display: flex; flex-direction: column; text-align: left; }
.office-root-drop strong { color: var(--text); font-size: 13px; }
.office-root-drop small { font-size: 11px; }

.office-tree-guide {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 5%, var(--card));
}

.office-tree-guide div { display: flex; flex-direction: column; }
.office-tree-guide strong { font-size: 13px; }
.office-tree-guide span:not(.office-guide-icon) { color: var(--muted); font-size: 11px; }
.office-guide-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 13%, transparent);
    font-size: 19px;
}

.office-tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.office-tree-list .office-tree-list {
    position: relative;
    margin-left: 25px;
    padding-left: 31px;
}

.office-tree-list:empty {
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.office-tree-sorting .office-tree-list:empty {
    min-height: 34px;
    margin: -3px 0 3px;
    padding: 7px 0;
    border-left-color: color-mix(in srgb, #f59e0b 55%, var(--border));
}

.office-tree-sorting .office-tree-list:empty::after {
    content: 'Drop here as child';
    display: block;
    padding: 5px 10px;
    border: 1px dashed color-mix(in srgb, #f59e0b 60%, var(--border));
    border-radius: 7px;
    color: #f59e0b;
    font-size: 10px;
    text-align: center;
}

.office-tree-list .office-tree-list::before {
    content: '';
    position: absolute;
    inset: -7px auto 14px 0;
    width: 2px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--primary) 28%, var(--border));
}

.office-tree-list .office-tree-list > .office-tree-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 29px;
    width: 30px;
    height: 2px;
    background: color-mix(in srgb, var(--primary) 28%, var(--border));
}

.office-tree-item { position: relative; }

.office-tree-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin: 9px 0;
    padding: 12px 14px 12px 10px;
    border: 1px solid var(--border);
    border-left: 4px solid #8b5cf6;
    border-radius: 11px;
    background: color-mix(in srgb, var(--card) 96%, var(--primary));
    cursor: default;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .06);
    transition: transform .15s, border-color .15s, background .15s, opacity .15s, box-shadow .15s;
}

.office-tree-row:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(16, 24, 40, .11); }
.office-tree-row:active { cursor: default; }
.office-tree-movable {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.office-tree-movable:active { cursor: grabbing; }
.office-tree-readonly .office-tree-row,
.office-tree-readonly .office-tree-row:active { cursor: default; }
.office-tree-name { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 3px; }
.office-tree-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.office-tree-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; }
.office-tree-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.office-drag-handle { color: var(--muted); font-size: 19px; letter-spacing: -5px; opacity: .65; }
.office-type-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: color-mix(in srgb, #8b5cf6 14%, var(--card)); color: #8b5cf6; font-size: 12px; font-weight: 800; }
.office-type-circle { border-left-color: #0ea5e9; }

.repeatable-section-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:8px 0 14px; }
.repeatable-section-header .section-title { margin:0 0 4px; font-size:18px; }
.repeatable-section-header p { margin:0; }
.work-order-document-row { align-items:end; margin-bottom:12px; padding:14px; border:1px solid var(--border); border-radius:11px; background:color-mix(in srgb, var(--card) 96%, var(--primary)); }
.work-order-document-remove { display:flex; align-items:flex-end; padding-bottom:2px; }
.work-order-document-link { margin-top:8px; }
.work-order-document-link small { display:block; margin-top:2px; color:var(--muted); }

.office-choice-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(245px,1fr)); gap:12px; padding:12px 0 8px; }
.office-choice { --office-color:#7c3aed; --office-soft:#f3e8ff; position:relative; display:flex; align-items:center; gap:12px; min-height:78px; padding:13px 42px 13px 13px; overflow:hidden; border:1px solid color-mix(in srgb,var(--office-color) 28%,var(--border)); border-left:5px solid var(--office-color); border-radius:13px; background:linear-gradient(135deg,var(--office-soft),var(--card) 68%); cursor:pointer; box-shadow:0 4px 14px rgba(16,24,40,.06); transition:transform .16s,border-color .16s,box-shadow .16s,background .16s; }
.office-choice:hover { transform:translateY(-2px); border-color:var(--office-color); box-shadow:0 10px 24px color-mix(in srgb,var(--office-color) 18%,transparent); }
.office-choice input { position:absolute; opacity:0; pointer-events:none; }
.office-choice-icon { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border-radius:12px; color:var(--office-color); background:color-mix(in srgb,var(--office-color) 15%,var(--card)); font-weight:900; }
.office-choice-content { display:flex; flex:1; min-width:0; flex-direction:column; gap:7px; }
.office-choice-content strong { overflow:hidden; color:var(--text); font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.office-choice-content > span { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.office-choice-content b { padding:3px 8px; border-radius:999px; color:var(--office-color); background:color-mix(in srgb,var(--office-color) 13%,var(--card)); font-size:10px; letter-spacing:.04em; text-transform:uppercase; }
.office-choice-content small { color:var(--muted); font-weight:700; }
.office-choice-check { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:23px; height:23px; border:2px solid color-mix(in srgb,var(--office-color) 35%,var(--border)); border-radius:50%; color:transparent; background:var(--card); font-size:13px; font-weight:900; transition:.16s; }
.office-choice:has(input:checked) { border-color:var(--office-color); background:linear-gradient(135deg,color-mix(in srgb,var(--office-color) 22%,var(--card)),var(--card)); box-shadow:0 0 0 3px color-mix(in srgb,var(--office-color) 18%,transparent),0 10px 24px rgba(16,24,40,.1); }
.office-choice:has(input:checked) .office-choice-check { color:#fff; border-color:var(--office-color); background:var(--office-color); }
.office-choice:has(input:focus-visible) { outline:3px solid color-mix(in srgb,var(--office-color) 30%,transparent); outline-offset:2px; }
.office-choice-circle { --office-color:#0284c7; --office-soft:#e0f2fe; }
.office-choice-division { --office-color:#059669; --office-soft:#d1fae5; }
.office-choice-sdn-office { --office-color:#d97706; --office-soft:#fef3c7; }
.office-choice-office { --office-color:#7c3aed; --office-soft:#ede9fe; }
[data-theme="dark"] .office-choice { --office-soft:rgba(15,23,42,.8); background:linear-gradient(135deg,color-mix(in srgb,var(--office-color) 22%,#0f172a),#111827 72%); }
@media (max-width: 760px) { .repeatable-section-header { align-items:flex-start; flex-direction:column; } .work-order-document-remove { justify-content:flex-end; } }
.office-type-circle .office-type-icon { color: #0ea5e9; background: color-mix(in srgb, #0ea5e9 14%, var(--card)); }
.office-type-division { border-left-color: #10b981; }
.office-type-division .office-type-icon { color: #10b981; background: color-mix(in srgb, #10b981 14%, var(--card)); }
.office-type-sub-division,
.office-type-sdn-office { border-left-color: #f59e0b; }
.office-type-sub-division .office-type-icon,
.office-type-sdn-office .office-type-icon { color: #f59e0b; background: color-mix(in srgb, #f59e0b 15%, var(--card)); }
.office-type-office { border-left-color: #ec4899; }
.office-type-office .office-type-icon { color: #ec4899; background: color-mix(in srgb, #ec4899 15%, var(--card)); }
.office-tree-row form { margin-left: auto; }
.office-tree-row .btn-danger { padding: 7px 9px; font-size: 0; border-radius: 8px; }
.office-tree-row .btn-danger .ui-icon { width: 15px; height: 15px; margin: 0; }
.office-dragging > .office-tree-row {
    opacity: .72;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 28%, transparent), 0 10px 26px rgba(245, 158, 11, .16);
}

.office-sort-ghost > .office-tree-row {
    opacity: .3;
    border: 2px dashed #f59e0b;
    background: color-mix(in srgb, #f59e0b 10%, var(--card));
    box-shadow: none;
}

.office-sort-chosen > .office-tree-row {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 24%, transparent), 0 14px 34px rgba(0, 0, 0, .18);
}

.office-sort-drag > .office-tree-row {
    transform: rotate(1deg);
    cursor: grabbing;
}

.office-sort-drag {
    opacity: .96 !important;
    pointer-events: none;
}

.office-drop-target {
    border-color: #f59e0b !important;
    background: color-mix(in srgb, #f59e0b 13%, var(--card)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 25%, transparent), 0 10px 24px rgba(245, 158, 11, .14) !important;
}

.office-root-drop.office-drop-target > span {
    background: #f59e0b;
    color: #1f2937;
}

.office-drop-before::before,
.office-drop-after::after {
    content: '';
    position: absolute;
    z-index: 4;
    left: 8px;
    right: 8px;
    height: 3px;
    border-radius: 3px;
    background: #f59e0b;
    box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 20%, transparent);
}

.office-drop-before::before { top: -7px; }
.office-drop-after::after { bottom: -7px; }

@media(max-width:560px) {
    .office-tree-list .office-tree-list { margin-left: 13px; padding-left: 18px; }
    .office-tree-list .office-tree-list > .office-tree-item::before { left: -18px; width: 17px; }
    .office-tree-row { gap: 8px; }
}
.login-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 18px 0;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 75%, var(--card));
}

.login-tab {
    padding: 9px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.login-tab.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 28%, transparent);
}
.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(38px, 1fr));
    gap: 9px;
}

.otp-inputs .form-control {
    height: 52px;
    padding: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.otp-inputs .form-control:focus { transform: translateY(-1px); }
.attendance-grid{width:max-content;min-width:100%;border-collapse:collapse}.attendance-grid th,.attendance-grid td{padding:.35rem;text-align:center;white-space:nowrap}.attendance-grid th small{display:block;font-size:.65rem;color:var(--muted)}.attendance-grid .attendance-employee{position:sticky;left:0;z-index:1;min-width:220px;text-align:left;background:var(--card)}.attendance-grid thead .attendance-employee{z-index:2}.attendance-grid .attendance-employee small{display:block;color:var(--muted);font-weight:400}.attendance-grid select{width:50px;padding:.35rem .15rem;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text)}
.attendance-tabs{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:1rem;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--card)}.attendance-tab{display:flex;align-items:center;justify-content:center;gap:.55rem;padding:.85rem 1rem;color:var(--muted);text-decoration:none;border-right:1px solid var(--border)}.attendance-tab:last-child{border-right:0}.attendance-tab span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:color-mix(in srgb,var(--muted) 16%,var(--card));font-weight:700}.attendance-tab.active{background:rgba(var(--primary-rgb),.1);color:var(--primary);font-weight:700}.attendance-tab.active span,.attendance-tab.complete span{background:var(--primary);color:#fff}@media(max-width:700px){.attendance-tab{padding:.65rem .35rem;font-size:.78rem}.attendance-tab span{width:22px;height:22px}}
.attendance-sequence{width:80px;min-width:80px}
.attendance-employee-profile{display:flex;align-items:center;gap:.7rem;min-width:220px}.attendance-employee-profile img,.attendance-employee-profile>span{width:42px;height:50px;flex:0 0 42px;border-radius:7px;border:1px solid var(--border);object-fit:cover;background:var(--bg)}.attendance-employee-profile>span{display:grid;place-items:center;font-weight:700;color:var(--primary)}.attendance-employee-profile small{display:block;color:var(--muted);font-weight:400}
.attendance-employee-profile.employee-detail-trigger{border:0;background:transparent;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer}.attendance-employee-profile>.attendance-profile-text{display:block;width:auto;height:auto;flex:1;border:0;border-radius:0;background:transparent;color:inherit}.attendance-employee-profile:hover strong{text-decoration:underline}
.attendance-employee-profile>.attendance-row-sequence{display:block;width:auto;height:auto;flex:0 0 auto;border:0;border-radius:0;background:transparent;color:inherit;font-size:1rem;font-weight:700}
.attendance-grid th.attendance-sunday,.attendance-grid td.attendance-sunday{background:color-mix(in srgb,#ef4444 12%,var(--card));color:color-mix(in srgb,#ef4444 82%,var(--text))}.attendance-grid td.attendance-sunday select{border-color:color-mix(in srgb,#ef4444 42%,var(--border));background:color-mix(in srgb,#ef4444 6%,var(--card))}
.attendance-grid th.attendance-special-saturday,.attendance-grid td.attendance-special-saturday{background:color-mix(in srgb,#3b82f6 12%,var(--card));color:color-mix(in srgb,#3b82f6 82%,var(--text))}.attendance-grid td.attendance-special-saturday select{border-color:color-mix(in srgb,#3b82f6 42%,var(--border));background:color-mix(in srgb,#3b82f6 6%,var(--card))}
