.dinankit-shell {
  --adm-accent: #0d9488;
  --adm-accent-dark: #0f766e;
}

.dinankit-shell .sidebar-brand .brand-mark,
.dk-login-mark {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
}

.dinankit-shell .sidebar-brand span,
.dinankit-shell .dk-brand-text small {
  color: #5eead4;
}

.dinankit-shell .dk-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.dinankit-shell .dk-brand-text strong {
  font-size: 15px;
}

.dinankit-shell .sidebar-footer {
  padding: 12px 10px 16px;
  border-top: 1px solid var(--adm-sidebar-border);
  margin-top: auto;
}

.dinankit-shell .menu-group {
  margin-bottom: 4px;
}

.dinankit-shell .menu-link,
.dinankit-shell .menu-btn {
  border-radius: 10px;
}

.dinankit-shell .menu-link.active,
.dinankit-shell .menu-btn.active {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.dinankit-shell .submenu a.active {
  color: #ecfdf5;
  background: rgba(13, 148, 136, 0.22);
  font-weight: 600;
}

.dinankit-shell .submenu.open {
  max-height: 480px;
  margin-bottom: 6px;
}

.dinankit-shell .sidebar-toggle {
  display: grid !important;
  place-items: center;
}

.dinankit-shell .sidebar-collapse-btn {
  flex-shrink: 0;
}

.dinankit-shell.sidebar-collapsed .content {
  max-width: none;
}

.dinankit-shell .content {
  padding-bottom: 88px;
}

.dk-page-head h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.dk-page-head p {
  margin: 0 0 6px;
}

.dinankit-shell input,
.dinankit-shell select,
.dinankit-shell textarea,
.dk-login-body input {
  font-size: 16px;
  min-height: 44px;
}

.dk-login-body {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 50%, #14b8a6 100%);
}

.dk-login-hint {
  margin-top: 16px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.dk-date-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--adm-muted);
}

.dk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.dk-search {
  display: flex;
  flex: 1;
  min-width: 180px;
  gap: 8px;
}

.dk-search input {
  flex: 1;
  width: 100%;
}

.dk-primary-btn,
.dk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}

.dk-primary-btn {
  background: #0d9488;
  color: #fff;
}

.dk-primary-wide {
  width: 100%;
}

.dk-btn {
  background: #fff;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.dk-btn-ghost {
  background: transparent;
  color: #64748b;
  border-color: #e2e8f0;
}

.dk-card-list {
  display: grid;
  gap: 12px;
}

.dk-emp-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dk-emp-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dk-emp-actions form {
  margin: 0;
}

.dk-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: #ccfbf1;
}

.dk-avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0f766e;
  font-size: 22px;
}

.dk-emp-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.dk-emp-body p {
  margin: 0 0 2px;
  font-size: 13px;
  color: #64748b;
}

.dk-salary {
  font-weight: 700 !important;
  color: #0f766e !important;
}

.dk-form .dk-section h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.dk-form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 14px;
}

.dk-form label.dk-row-check,
.dk-bulk-page label.dk-row-check,
.dk-bulk-page .dk-row-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.dk-form label.dk-status-opt,
.dk-bulk-page label.dk-status-opt {
  display: flex;
  margin: 0;
}

.dk-form input[type="text"],
.dk-form input[type="email"],
.dk-form input[type="tel"],
.dk-form input[type="number"],
.dk-form input[type="date"],
.dk-form input[type="file"],
.dk-form select,
.dk-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dk-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 12px;
}

@media (min-width: 700px) {
  .dk-two {
    grid-template-columns: 1fr 1fr;
  }
  .dk-emp-card {
    grid-template-columns: 64px 1fr auto;
  }
  .dk-emp-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
}

.dk-seg {
  display: flex;
  gap: 8px;
}

.dk-seg label {
  flex: 1;
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  background: #f0fdfa;
}

.dk-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.dk-photo-preview {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  background: #ccfbf1;
}

.dk-photo-empty {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #0f766e;
}

.dk-file-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #0d9488;
  color: #fff;
  font-weight: 700;
  margin: 0 !important;
}

.dk-file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  min-height: 0;
}

.dk-file-link {
  margin: 0 0 8px;
}

.dk-doc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.dk-doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.dk-sticky-actions {
  position: sticky;
  bottom: 64px;
  display: grid;
  gap: 8px;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, rgba(240, 244, 248, 0), #f0f4f8 30%);
}

.dk-hidden-form {
  display: none;
}

.dk-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #0b1020;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}

.dk-bottom-nav a {
  color: #94a3b8;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 2px;
  border-radius: 10px;
}

.dk-bottom-nav a.active {
  color: #5eead4;
  background: rgba(20, 184, 166, 0.15);
}

.dk-org-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .dk-org-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dk-org-sub {
  margin: 20px 0 8px;
  font-size: 15px;
}

@media (min-width: 900px) {
  .dk-bottom-nav {
    display: none;
  }
  .dinankit-shell .content {
    padding-bottom: 24px;
  }
  .dk-sticky-actions {
    bottom: 0;
    max-width: 640px;
  }
}

.dk-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 72px;
}

@media (min-width: 600px) {
  .dk-admin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dk-admin-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dk-admin-tile:active {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.dk-admin-tile-icon {
  font-size: 22px;
  line-height: 1;
}

.dk-kpi-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--adm-muted);
}

.dk-seg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dk-seg-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  color: #334155;
}

.dk-seg-nav a.is-on {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.dk-weekday-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.dk-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.dk-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.dk-status-present {
  background: #d1fae5;
  color: #065f46;
}

.dk-status-absent {
  background: #fee2e2;
  color: #991b1b;
}

.dk-status-half_day {
  background: #fef3c7;
  color: #92400e;
}

.dk-status-leave {
  background: #e0e7ff;
  color: #3730a3;
}

.dk-att-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dk-btn-warn {
  border-color: #f87171;
  color: #b91c1c;
}

.dk-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.dk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.dk-table th,
.dk-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.dk-table th {
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.dk-card-list .dk-att-card {
  margin-bottom: 10px;
}

/* Bulk attendance */
.dk-bulk-page {
  max-width: 960px;
}

.dk-bulk-filter-get {
  align-items: end;
}

@media (min-width: 768px) {
  .dk-bulk-filter-get {
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(160px, 1.2fr) auto;
  }
  .dk-bulk-filter-card .dk-primary-btn {
    width: auto;
    min-width: 120px;
  }
}

.dk-bulk-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

@media (min-width: 820px) {
  .dk-bulk-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dk-bulk-date-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  font-size: 14px;
}

.dk-bulk-notes {
  margin-top: 14px;
}

.dk-bulk-notes input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.dk-bulk-search {
  min-width: 180px;
  max-width: 240px;
}

.dk-bulk-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.dk-emp-row {
  padding: 14px 14px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.dk-emp-row .dk-staff-pill {
  margin-left: auto;
  flex-shrink: 0;
}

.dk-bulk-sticky {
  position: sticky;
  bottom: 64px;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.dk-bulk-sticky-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-align: center;
}

.dk-bulk-block {
  margin-bottom: 14px;
}

.dk-bulk-block h2 {
  margin: 4px 0 8px;
  font-size: 18px;
}

.dk-step-num {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d9488;
}

.dk-bulk-hint {
  margin: 0 0 12px;
  font-size: 13px;
}

.dk-option-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.dk-option-box .dk-row-check {
  width: 100%;
  justify-content: flex-start;
}

.dk-row-check input[type="checkbox"],
.dk-row-check input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  flex-grow: 0;
  flex-shrink: 0;
  margin: 0;
  accent-color: #0d9488;
}

.dinankit-shell input[type="checkbox"],
.dinankit-shell input[type="radio"] {
  flex: 0 0 auto;
}

.dk-status-pick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

@media (min-width: 560px) {
  .dk-status-pick {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dk-status-opt {
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dk-status-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dk-status-opt:has(input:checked) {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 1px #0d9488;
}

.dk-status-opt .dk-status {
  font-size: 13px;
}

.dk-bulk-staff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dk-bulk-staff-head h2 {
  margin-bottom: 0;
}

.dk-dept-filter label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.dk-dept-select {
  min-width: 140px;
}

.dk-select-all {
  padding: 12px 14px;
  margin-bottom: 8px !important;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
}

.dk-bulk-emp {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  max-height: min(55vh, 480px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.dk-bulk-emp li[hidden] {
  display: none;
}

.dk-bulk-emp li + li {
  border-top: 1px solid #f1f5f9;
}

.dk-emp-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.dk-emp-row-text strong {
  font-size: 15px;
  color: #0f172a;
}

.dk-emp-row-text small {
  font-size: 13px;
  color: #64748b;
}

.dk-bulk-status {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dk-bulk-status label {
  min-width: 88px;
}

.dk-check-strong {
  font-weight: 700;
}

.dk-bulk-list {
  margin-top: 12px;
}

.dk-bulk-list-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.dk-bulk-submit {
  width: 100%;
}

.dk-filter-bar {
  margin-top: 0;
}

/* Muster roll */
.dk-muster-page {
  max-width: 100%;
}

.dk-muster-filters {
  margin-bottom: 8px;
}

.dk-muster-filter {
  align-items: end;
}

@media (min-width: 768px) {
  .dk-muster-toolbar .dk-muster-filter {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.4fr) auto;
  }
}

.dk-muster-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dk-muster-toolbar .dk-primary-btn,
.dk-muster-toolbar .dk-muster-filter-actions .dk-btn {
  width: auto;
  min-width: 96px;
  margin-top: 0;
  white-space: nowrap;
}

.dk-muster-toolbar-note {
  margin: 10px 0 0;
  font-size: 12px;
}

.dk-muster-filter select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}

.dk-muster-table-card {
  padding: 0;
  overflow: hidden;
}

.dk-muster-table-card .dk-muster-wrap {
  border: 0;
  border-radius: 0;
  max-height: min(75vh, calc(100vh - 260px));
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e2e8f0;
}

.dk-muster-wrap::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.dk-muster-wrap::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.dk-muster-wrap::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
}

.dk-muster-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.dk-muster-scroll-hint {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

.dk-muster-legend-bar {
  margin: 0;
  padding: 0;
  border: 0;
  justify-content: flex-end;
  flex: 1;
}

.dk-muster-toolbar {
  padding-bottom: 12px;
}

.dk-muster-legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
}

.dk-m-leg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.dk-m-chip {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
}

.dk-muster-table tbody td.dk-m-wo,
.dk-muster-table tbody td.dk-m-hd {
  font-size: 10px;
  letter-spacing: -0.02em;
}

.dk-m-chip.dk-m-wo,
.dk-m-chip.dk-m-hd,
.dk-m-chip.dk-m-pending {
  font-size: 9px;
}

.dk-m-today-head {
  background: #ecfdf5 !important;
  color: #0f766e !important;
  box-shadow: inset 0 -2px 0 #0d9488;
}

td.dk-m-today {
  box-shadow: none;
  outline: 1px solid rgba(13, 148, 136, 0.55);
  outline-offset: -1px;
}

.dk-muster-table thead th:not(.dk-m-sticky):not(.dk-m-sum) {
  min-width: 44px;
  width: 44px;
  font-size: 14px;
}

.dk-muster-table tbody td:not(.dk-m-sum) {
  min-width: 44px;
  width: 44px;
  height: 44px;
}

.dk-muster-table tbody td {
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.dk-muster-table tbody td .dk-m-cell-btn,
.dk-muster-table tbody td .dk-m-cell-static {
  color: inherit;
}

.dk-m-cell-btn:hover {
  filter: brightness(0.96);
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.dk-muster-modal-box {
  max-width: 420px;
}

.dk-muster-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 14px;
}

.dk-muster-times[hidden] {
  display: none !important;
}

.dk-payroll-stack {
  position: relative;
}

.dk-payroll-filter-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 16px 18px 12px;
  margin-bottom: 20px;
  overflow: visible;
  position: relative;
  z-index: 30;
}

.dk-payroll-body {
  position: relative;
  z-index: 1;
}

.dk-payroll-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px 14px;
  margin: 0;
  overflow: visible;
  align-items: end;
}

@media (min-width: 720px) {
  .dk-payroll-bar {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (min-width: 1024px) {
  .dk-payroll-bar {
    grid-template-columns: 148px 148px repeat(3, minmax(160px, 1fr)) 108px;
  }
}

.dk-payroll-filter-card input[type="month"],
.dk-payroll-filter-card input[type="date"],
.dk-payroll-filter-card input[type="search"],
.dk-filter-field input[type="month"],
.dk-filter-field input[type="date"] {
  width: 100%;
  margin-top: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}

.dk-payroll-filter-card .dk-ms-toggle,
.dk-payroll-filter-card .dk-ms-link,
.dk-payroll-filter-card .dk-ms-link:hover {
  margin-top: 0;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
}

.dk-payroll-filter-card .dk-ms-link,
.dk-payroll-filter-card .dk-ms-link:hover {
  background: transparent;
  color: #0d9488;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  min-height: 0;
}

.dk-payroll-filter-card .dk-primary-btn {
  width: 100%;
  margin-top: 0;
  min-height: 44px;
  background: #0d9488;
}

.dk-payroll-filter-card .dk-primary-btn:hover {
  background: #0f766e;
}

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

.dk-filter-field .dk-ms {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
}

.dk-filter-actions {
  align-self: end;
}

.dk-filter-label--spacer {
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .dk-filter-label--spacer {
    visibility: visible;
    height: auto;
    overflow: visible;
  }
}

.dk-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.dk-filter-field input[type="month"],
.dk-filter-field input[type="date"] {
  min-height: 44px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
}

.dk-ms {
  position: relative;
  width: 100%;
}

.dk-ms-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.dk-ms.is-open .dk-ms-toggle {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.dk-ms-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-weight: 600;
}

.dk-ms-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  margin-top: -4px;
  flex-shrink: 0;
}

.dk-ms-panel {
  position: fixed;
  z-index: 10050;
  min-width: 268px;
  width: 280px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
  padding: 10px;
  box-sizing: border-box;
}

.dk-ms-panel[hidden] {
  display: none !important;
}

.dk-ms-head {
  display: flex;
  gap: 12px;
  padding: 2px 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.dk-ms-link,
.dk-ms-panel .dk-ms-link {
  border: none;
  background: transparent !important;
  color: #0d9488;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-top: 0;
  min-height: 0;
  border-radius: 0;
}

.dk-ms-link:hover,
.dk-ms-panel .dk-ms-link:hover {
  color: #0f766e;
  background: transparent !important;
}

.dk-ms-search {
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  box-sizing: border-box;
}

.dk-ms-list {
  max-height: 220px;
  overflow: auto;
  padding: 2px 0;
}

.dk-ms-list-tall {
  max-height: 260px;
}

.dk-ms-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  color: #0f172a;
}

.dk-ms-item:hover {
  background: #f8fafc;
}

.dk-ms-item input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #0d9488;
  cursor: pointer;
}

.dk-payroll-filter-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.dinankit-shell .content-card.dk-payroll-table-card {
  background: #e2e8f0;
  padding: 16px 12px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.dk-payroll-table-card .dk-table-wrap {
  margin-top: 0;
}

.dk-payroll-table th:not(:first-child),
.dk-payroll-table td:not(:first-child) {
  text-align: center;
}

.dk-payroll-table th.dk-num,
.dk-payroll-table td.dk-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dk-payroll-table td.dk-num .small {
  text-align: center;
}

.dk-payroll-table td.dk-payroll-amt {
  font-weight: 700;
  color: #0f766e;
}

.dk-payroll-table th:first-child,
.dk-payroll-table td:first-child {
  min-width: 200px;
}

.dk-payroll-body .super-kpi-grid {
  margin-bottom: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .dk-payroll-body .super-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dk-payroll-body .super-kpi-meta {
  line-height: 1.4;
}

.dk-payroll-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 #e2e8f0;
}

.dk-payroll-table tbody td {
  vertical-align: middle;
}

.dk-payroll-table tbody td:first-child,
.dk-payroll-table tbody td.dk-paid-days-cell {
  vertical-align: top;
}

.dk-payroll-table .small {
  font-size: 12px;
}

.dk-payroll-table td.dk-paid-days-cell {
  min-width: 132px;
  max-width: 180px;
  text-align: center !important;
  white-space: normal !important;
}

.dk-payroll-table th.dk-paid-days-col {
  text-align: center;
}

.dk-paid-days-main {
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.dk-paid-days-breakdown {
  margin: 8px auto 0;
  padding: 8px 0 0;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.4;
  max-width: 100%;
}

.dk-payroll-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.dk-payroll-table .dk-col-select {
  width: 36px;
  min-width: 36px;
  text-align: center;
  vertical-align: middle;
  padding: 8px 4px;
}

.dk-payroll-table .dk-col-select input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #0f766e;
}

.dk-payroll-toolbar .dk-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dk-adv-forms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 960px) {
  .dk-adv-forms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.dk-payroll-salary-mask {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.dk-payroll-table.is-salary-visible .dk-payroll-salary-val {
  font-weight: 700;
  color: #0f766e;
}

.dk-payroll-salary-val[hidden],
.dk-payroll-salary-mask[hidden] {
  display: none !important;
}

.dk-absent-day-btn {
  display: inline-block;
  border: none;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 800;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  margin: 0 auto;
}

.dk-absent-day-btn:hover,
.dk-absent-day-btn.is-active {
  background: #fee2e2;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}

body.dk-payroll-drawer-open {
  overflow: hidden;
}

.dk-payroll-drawer {
  position: fixed;
  inset: 0;
  z-index: 10100;
  pointer-events: none;
}

.dk-payroll-drawer[hidden] {
  display: none !important;
}

.dk-payroll-drawer:not([hidden]) {
  pointer-events: auto;
}

.dk-payroll-drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  padding: 0;
}

.dk-payroll-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(360px, 100vw);
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  animation: dkPayrollDrawerIn 0.22s ease-out;
}

/* app.css sets all <button> to solid blue — never apply that to drawer chrome */
.admin-shell button.dk-payroll-drawer-close {
  background: #f1f5f9;
  color: #475569;
  padding: 0;
  min-height: 36px;
  border-radius: 10px;
}

.admin-shell button.dk-payroll-drawer-close:hover {
  background: #e2e8f0;
  color: #334155;
}

@keyframes dkPayrollDrawerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.dk-payroll-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.dk-payroll-drawer-head h2 {
  margin: 0;
  font-size: 18px;
}

.dk-payroll-drawer-close {
  flex-shrink: 0;
  border: none;
  background: #f1f5f9;
  color: #475569;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dk-payroll-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px 24px;
}

.dk-absent-date-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dk-absent-date-list li {
  padding: 10px 12px;
  border: 1px solid #fee2e2;
  background: #fff5f5;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #991b1b;
}

.dk-absent-date-list li.is-half-day {
  border-color: #fed7aa;
  background: #fffbeb;
  color: #9a3412;
}

.dk-payroll-table td.dk-payroll-amt.is-negative {
  color: #b91c1c;
}

.dk-payroll-paycell {
  min-width: 168px;
  max-width: 240px;
  vertical-align: middle;
  text-align: center;
}

.dk-payroll-table tbody td.dk-payroll-paycell {
  display: table-cell;
  padding: 10px 8px;
}

.dk-pay-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.dk-pay-status {
  width: 100%;
  text-align: center;
}

.dk-pay-meta {
  margin-top: 2px;
  line-height: 1.35;
}

.dk-pay-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding-top: 2px;
  border-top: 1px solid #f1f5f9;
}

.dk-pay-share-panel {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dk-pay-share-panel[hidden] {
  display: none !important;
}

.dk-pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
  min-height: 0;
}

.admin-shell .dk-pay-chip,
.admin-shell button.dk-pay-chip {
  background: #fff;
  color: #0f766e;
  padding: 5px 9px;
  min-height: 0;
  font-size: 11px;
}

.dk-pay-chip-pdf {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.dk-pay-share-toggle {
  border-color: #cbd5e1;
  color: #475569;
}

.dk-pay-share-toggle[aria-expanded="true"] {
  border-color: #0d9488;
  color: #0f766e;
  background: #ecfdf5;
}

.dk-pay-chip-wa,
.admin-shell a.dk-pay-chip-wa {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #fff !important;
}

.dk-pay-chip-wa:hover,
.admin-shell a.dk-pay-chip-wa:hover {
  background: #1ebe57 !important;
  color: #fff !important;
}

.dk-pay-chip-copy {
  border-color: #cbd5e1;
}

.dk-pay-chip-muted {
  cursor: default;
  color: #94a3b8;
  background: #f8fafc;
  font-weight: 600;
}

.dk-payroll-paycell .dk-mark-paid {
  margin: 0 auto;
}

.dk-payroll-table th.dk-pay-col {
  text-align: center;
}

.dk-payroll-table td.dk-absent-cell {
  text-align: center;
}

.dk-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dk-badge-ok {
  background: #dcfce7;
  color: #166534;
}

.dk-badge-warn {
  background: #fef3c7;
  color: #92400e;
}

.dk-badge-muted {
  background: #f1f5f9;
  color: #64748b;
}

.dk-ledger-table th.dk-num,
.dk-ledger-table td.dk-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dk-payroll-settle-box {
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.dk-payroll-settle-box .dk-dialog-form {
  padding: 0;
}

body.dk-modal-open {
  overflow: hidden;
}

.dk-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 440px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  margin: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  inset: auto;
}

.dk-dialog[open] {
  display: flex;
  flex-direction: column;
}

.dk-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.dk-dialog-form {
  padding: 22px 24px 20px;
  overflow-y: auto;
  max-height: inherit;
}

.dk-dialog-form h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.dk-dialog-form > .super-muted {
  margin: 0 0 16px;
}

.dk-dialog-form label {
  display: block;
  margin: 0 0 14px;
}

.dk-dialog-form label small {
  font-weight: 400;
  color: #64748b;
}

.dk-dialog-form input,
.dk-dialog-form select {
  margin-top: 6px;
}

.dk-dialog-form input[readonly] {
  background: #f8fafc;
  color: #334155;
}

.dk-dialog-form .dk-two {
  gap: 12px 16px;
  margin-bottom: 0;
}

.dk-dialog-form .dk-settle-hint {
  display: block;
  margin-top: 6px;
  line-height: 1.35;
  min-height: 1.2em;
}

.dk-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 4px;
  flex-shrink: 0;
}

.dk-muster-legend {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.dk-m-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
}

.dk-m-legend span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
  margin-right: 2px;
}

.dk-muster-wrap {
  overflow: auto;
  max-height: calc(100vh - 280px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.dk-muster-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  min-width: max-content;
}

.dk-muster-table th,
.dk-muster-table td {
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  text-align: center;
  vertical-align: middle;
  padding: 0;
}

.dk-muster-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px 3px;
  line-height: 1.15;
}

.dk-muster-table thead th small {
  display: block;
  font-weight: 700;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
}

.dk-m-sticky {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  text-align: left !important;
  min-width: 140px;
  max-width: 200px;
  padding: 8px 10px !important;
  box-shadow: 2px 0 6px rgba(15, 23, 42, 0.06);
}

.dk-muster-table thead .dk-m-sticky {
  background: #f8fafc;
  z-index: 5;
}

.dk-m-name span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dk-m-name small {
  font-size: 11px;
  color: #64748b;
}

.dk-m-wo-head {
  background: #f1f5f9 !important;
}

.dk-m-cell-btn,
.dk-m-cell-static {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
  color: inherit;
}

.dk-m-cell-static {
  cursor: default;
}

.dk-m-cell-btn:active {
  transform: scale(0.95);
}

.dk-m-p {
  background: #a7f3d0;
  color: #064e3b;
}

.dk-m-a {
  background: #fecaca;
  color: #7f1d1d;
}

.dk-m-l {
  background: #c7d2fe;
  color: #312e81;
}

.dk-m-h {
  background: #fde68a;
  color: #78350f;
}

.dk-m-wo {
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.dk-m-pending {
  background: #fff;
  color: #64748b;
  font-weight: 700;
}

.dk-m-empty {
  background: #fff;
  color: #64748b;
}

.dk-m-hd {
  background: #fbcfe8;
  color: #831843;
  font-size: 10px;
}

.dk-m-hd-head {
  background: #fce7f3 !important;
}

.dk-m-muted {
  background: #fafafa;
  color: #cbd5e1;
}

.dk-holiday-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dk-holiday-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dk-holiday-list form {
  margin: 0;
}

.dk-m-sum {
  background: #ccfbf1 !important;
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 10px !important;
  min-width: 44px;
  position: sticky;
  right: 0;
  z-index: 2;
  box-shadow: -4px 0 8px rgba(15, 23, 42, 0.08);
}

.dk-muster-table thead .dk-m-sum {
  z-index: 6;
  background: #ecfdf5 !important;
}

.dk-muster-sheet[hidden] {
  display: none !important;
}

.dk-muster-sheet {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dk-muster-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.dk-muster-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.15);
}

.dk-muster-sheet-panel h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.dk-muster-sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 12px;
}

.dk-m-sheet-btn {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.dk-kiosk-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-top: 12px;
}

/* —— Employee add / edit form —— */
.dk-emp-hero {
  padding: 16px 18px;
  margin-bottom: 12px;
}

.dk-emp-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dk-emp-back {
  padding: 8px 12px;
  min-height: 40px;
}

.dk-emp-id {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.dk-emp-hero-main {
  display: flex;
  gap: 16px;
  align-items: center;
}

.dk-emp-hero-photo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

.dk-emp-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dk-emp-hero-initial {
  font-size: 28px;
  font-weight: 800;
  color: #0f766e;
}

.dk-emp-hero-title {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.dk-emp-hero-sub {
  margin: 0 0 10px;
  font-size: 13px;
}

.dk-emp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dk-emp-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dk-emp-badge.is-active {
  background: #d1fae5;
  color: #047857;
}

.dk-emp-badge.is-off {
  background: #fee2e2;
  color: #b91c1c;
}

.dk-emp-badge.is-muted {
  background: #f1f5f9;
  color: #475569;
}

.dk-emp-jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.dk-emp-jump a {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.dk-emp-jump a:hover {
  border-color: #0d9488;
  color: #0f766e;
}

.dk-emp-form .dk-section {
  scroll-margin-top: 72px;
  margin-bottom: 14px;
}

.dk-section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.dk-section-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.dk-section-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #0d9488;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dk-field {
  margin-bottom: 4px;
}

.dk-field-label,
.dk-form .dk-field > label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 14px;
}

.dk-form .dk-field-label {
  margin-top: 0;
}

.dk-photo-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  background: #f0fdfa;
  border-radius: 16px;
  border: 1px dashed #5eead4;
}

.dk-photo-frame .dk-photo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.dk-upload-zone {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px dashed #94a3b8;
  background: #fff;
  cursor: pointer;
  margin: 0 !important;
  font-weight: 400;
}

.dk-upload-zone strong {
  font-size: 14px;
  color: #0f766e;
}

.dk-upload-zone input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.dk-upload-zone-sm {
  min-width: 0;
  padding: 12px;
  margin-top: 8px !important;
}

.dk-upload-inline {
  margin-top: 28px !important;
}

.dk-upper {
  text-transform: uppercase;
}

.dk-mode-cards {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .dk-mode-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.dk-mode-card {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  margin: 0 !important;
  transition: border-color 0.15s, background 0.15s;
}

.dk-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dk-mode-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #0f172a;
}

.dk-mode-card span {
  font-size: 12px;
  line-height: 1.4;
}

.dk-mode-card.is-on {
  border-color: #0d9488;
  background: #f0fdfa;
}

.dk-kyc-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .dk-kyc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dk-emp-hero-photo {
    width: 88px;
    height: 88px;
  }
}

.dk-kyc-block {
  padding: 14px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.dk-docs-empty {
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 12px;
}

.dk-sticky-actions-bar {
  padding: 16px;
  margin-top: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.dk-salary-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dk-salary-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.dk-salary-opt {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  margin: 0 !important;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.dk-salary-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dk-salary-opt strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #0f172a;
}

.dk-salary-opt span {
  font-size: 11px;
  line-height: 1.35;
  display: block;
}

.dk-salary-opt.is-on {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15);
}

.dk-salary-amt {
  margin-top: 8px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.dk-input-lg {
  font-size: 18px !important;
  font-weight: 700;
  min-height: 52px !important;
}

@media (max-width: 480px) {
  .dk-salary-type {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .dk-emp-form {
    max-width: 820px;
  }
  .dk-sticky-actions-bar {
    position: sticky;
    bottom: 16px;
  }
}

/* Dashboard */
.dk-dash {
  max-width: 1200px;
  margin: 0 auto;
}

.dk-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.25);
}

.dk-dash-greet {
  margin: 0 0 4px;
  font-size: 14px;
  opacity: 0.9;
}

.dk-dash-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
}

.dk-dash-date-picker-wrap {
  position: relative;
  min-width: 0;
}

.dk-dash-date-picker-hit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 10px 4px 0;
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 10px;
  transition: background 0.15s ease;
  font: inherit;
  text-align: left;
  color: inherit;
}

.admin-shell .dk-dash-hero button.dk-dash-date-picker-hit {
  background: transparent;
  color: #fff;
  min-height: 0;
  padding: 4px 10px 4px 0;
}

.dk-dash-date-picker-hit:hover,
.dk-dash-date-picker-hit[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.dk-dash-date {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  pointer-events: none;
}

.dk-dash-date-chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  pointer-events: none;
}

.dk-dash-date-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: min(100%, 280px);
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.dk-dash-date-pop[hidden] {
  display: none !important;
}

.dk-dash-date-pop-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.dk-dash-date-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dk-dash-date-part {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.dk-dash-date-part select {
  width: 100%;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
}

.dk-dash-date-pop-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.dk-dash-date-pop-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
}

.admin-shell .dk-dash-date-pop button.dk-dash-date-pop-btn {
  background: #fff;
  color: #475569;
  min-height: 44px;
}

.dk-dash-date-pop-btn--go {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #fff !important;
}

.dk-dash-today-link {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dk-dash-today-link:hover {
  color: #fff;
}

.dk-date-format-hint {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  align-self: center;
}

.dk-payroll-filter-card .dk-date-format-hint,
.dk-filter-field .dk-date-format-hint {
  margin-top: 2px;
}

.dk-dash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dk-dash-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
}

.dk-dash-tag--work {
  background: rgba(255, 255, 255, 0.95);
  color: #0f766e;
}

.dk-dash-tag--holiday {
  background: #fef3c7;
  color: #92400e;
}

.dk-dash-tag--off {
  background: #e2e8f0;
  color: #475569;
}

.dk-dash-tag--muted {
  background: rgba(15, 23, 42, 0.2);
  font-weight: 600;
}

.dk-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dk-dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.dk-dash-btn--primary {
  background: #fff;
  color: #0f766e;
  border-color: #fff;
}

.dk-dash-hero .dk-dash-btn {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dk-dash-hero .dk-dash-btn:not(.dk-dash-btn--primary) {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.dk-dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .dk-dash-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .dk-dash-kpis {
    grid-template-columns: repeat(6, 1fr);
  }
}

.dk-dash-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.15s, transform 0.15s;
}

a.dk-dash-kpi:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.dk-dash-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.dk-dash-kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.dk-dash-kpi-value small {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
}

.dk-dash-kpi-meta {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.dk-dash-kpi--teal { border-top: 3px solid #0d9488; }
.dk-dash-kpi--rose { border-top: 3px solid #f43f5e; }
.dk-dash-kpi--amber { border-top: 3px solid #f59e0b; }
.dk-dash-kpi--violet { border-top: 3px solid #8b5cf6; }
.dk-dash-kpi--indigo { border-top: 3px solid #6366f1; }
.dk-dash-kpi--slate { border-top: 3px solid #64748b; }

.dk-dash-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .dk-dash-grid {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.dk-dash-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.dk-dash-card--warn {
  border-color: #fecaca;
  background: #fffbfb;
}

.dk-dash-card--tip {
  background: #f8fafc;
}

.dk-dash-apk-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #99f6e4;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
  color: #0f766e;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dk-dash-apk-btn:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
  text-decoration: none;
  color: #0f766e;
}

.dk-dash-apk-btn strong {
  display: block;
  font-weight: 800;
  color: #0f172a;
}

.dk-dash-apk-btn small {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

.dk-dash-apk-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0d9488;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.dk-dash-apk-notes {
  margin: 0 0 10px;
  line-height: 1.45;
}

.dk-dash-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.dk-dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dk-dash-card-sub {
  margin: -6px 0 12px;
  font-size: 13px;
}

.dk-dash-link {
  font-size: 13px;
  font-weight: 700;
  color: #0d9488;
  text-decoration: none;
}

.dk-dash-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}

.dk-dash-badge--teal {
  background: #ccfbf1;
  color: #0f766e;
}

.dk-dash-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 14px;
}

.dk-dash-bar-seg {
  min-width: 0;
  transition: width 0.3s;
}

.dk-dash-bar-seg--p { background: #0d9488; }
.dk-dash-bar-seg--a { background: #f43f5e; }
.dk-dash-bar-seg--l { background: #8b5cf6; }
.dk-dash-bar-seg--h { background: #f59e0b; }

.dk-dash-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: #64748b;
}

.dk-dash-legend strong {
  color: #0f172a;
  margin-left: 4px;
}

.dk-dash-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dk-dash-dot--p { background: #0d9488; }
.dk-dash-dot--a { background: #f43f5e; }
.dk-dash-dot--l { background: #8b5cf6; }
.dk-dash-dot--h { background: #f59e0b; }

.dk-dash-people {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.dk-dash-people li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dk-dash-people li:last-child {
  border-bottom: none;
}

.dk-dash-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.dk-dash-quick a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dk-dash-quick a:hover {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.dk-dash-btn--sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
}

.dk-dash-checkin-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dk-dash-checkin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dk-dash-checkin-row:last-child {
  border-bottom: none;
}

.dk-dash-checkin-emp {
  flex: 1 1 180px;
  min-width: 0;
}

.dk-dash-checkin-times {
  margin-top: 4px;
}

.dk-dash-checkin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dk-dash-checkin-form {
  margin: 0;
}

.dk-dash-checkin-form--inline {
  margin-top: 8px;
}

.dk-dash-checkin-profile {
  font-size: 12px;
}

.dk-dash-checkin-done {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  padding: 6px 10px;
  background: #ecfdf5;
  border-radius: 999px;
}

.dk-emp-checkin-card {
  margin-bottom: 16px;
}

.dk-emp-checkin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.dk-emp-checkin-stat {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dk-emp-checkin-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.dk-emp-checkin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 767px) {
  .dk-dash-checkin-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dk-dash-checkin-actions .dk-dash-btn,
  .dk-dash-checkin-actions form {
    flex: 1 1 auto;
  }

  .dk-dash-checkin-actions .dk-dash-btn {
    width: 100%;
  }

  .dk-emp-checkin-grid {
    grid-template-columns: 1fr;
  }

  .dk-emp-checkin-actions .dk-primary-btn,
  .dk-emp-checkin-actions .dk-btn {
    width: 100%;
    justify-content: center;
  }
}

.dk-dash-quick span {
  font-size: 16px;
  line-height: 1;
}

.dk-dash-holidays {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dk-dash-holidays li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.dk-dash-holidays li:last-child {
  border-bottom: none;
}

.dk-dash-holidays time {
  font-weight: 800;
  color: #0d9488;
}

.dk-dash-side .dk-dash-card:last-child {
  margin-bottom: 0;
}

.dk-dash-main .dk-dash-card:last-child {
  margin-bottom: 0;
}

/* Staff list */
.dk-staff-page,
.dk-org-page {
  max-width: 1100px;
}

.dk-staff-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.dk-staff-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.dk-staff-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .dk-staff-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dk-staff-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dk-staff-stat-n {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f766e;
}

.dk-staff-filter-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.dk-staff-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

@media (min-width: 768px) {
  .dk-staff-filter {
    grid-template-columns: 1fr 140px 160px auto;
  }
  .dk-staff-search {
    grid-column: span 1;
  }
}

.dk-staff-filter-card input[type="search"],
.dk-staff-filter-card select {
  width: 100%;
  margin-top: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
}

.dk-staff-filter-card .dk-primary-btn {
  margin-top: 0;
  width: 100%;
}

.dinankit-shell .content-card.dk-staff-table-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.dk-staff-table-card .dk-table-wrap {
  margin-top: 0;
}

.dk-staff-cell-emp {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.dk-staff-thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ccfbf1;
}

.dk-staff-thumb--fb {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0f766e;
  font-size: 16px;
}

.dk-staff-salary {
  font-weight: 700;
  color: #0f766e;
  white-space: nowrap;
}

.dk-staff-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.dk-staff-pill--app {
  background: #ede9fe;
  color: #5b21b6;
}

.dk-staff-actions-col {
  width: 1%;
  white-space: nowrap;
}

.dk-staff-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.dk-staff-row-actions form {
  margin: 0;
}

.dk-btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.dk-staff-table {
  display: none;
}

.dk-staff-cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .dk-staff-table {
    display: table;
  }
  .dk-staff-cards {
    display: none;
  }
}

.dk-staff-empty {
  text-align: center;
  padding: 28px 20px;
}

.dk-staff-empty .dk-primary-btn {
  margin-top: 12px;
}

/* Org / designation */
.dk-org-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dk-org-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #475569;
}

.dk-org-tab.is-on {
  background: #f0fdfa;
  border-color: #5eead4;
  color: #0f766e;
}

.dk-org-tab-count {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.dk-org-tab.is-on .dk-org-tab-count {
  background: #99f6e4;
  color: #134e4a;
}

.dk-org-layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .dk-org-layout {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.dk-org-form-card h3,
.dk-org-list-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
}

.dk-org-form label {
  margin-top: 0;
}

.dk-org-form input[type="text"] {
  margin-top: 6px;
}

.dk-org-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dinankit-shell .content-card.dk-org-list-card {
  padding: 0 0 8px;
  overflow: hidden;
}

.dk-org-list-card .dk-dash-card-head {
  padding: 16px 18px 0;
}

.dk-org-list-card .dk-table-wrap {
  margin-top: 8px;
}

.dk-org-table tr.is-editing {
  background: #f0fdfa;
}

.dk-org-list-card .super-muted {
  padding: 0 18px 16px;
}

/* Staff status dropdown + confirm modal */
.dk-status-menu {
  position: relative;
  display: inline-block;
}

.dk-status-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0;
  min-height: 0;
  background: transparent;
}

.dk-status-trigger--ok {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.dk-status-trigger--off {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.dk-status-menu.is-open .dk-status-trigger {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}

.dk-status-chevron {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: 0.7;
}

.dk-status-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
}

.dk-status-panel[hidden] {
  display: none !important;
}

.dk-status-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0;
  min-height: 0;
}

.dk-status-item:hover {
  background: #f8fafc;
}

.dk-status-item--danger {
  color: #b91c1c;
}

.dk-status-item--danger:hover {
  background: #fef2f2;
}

.dk-staff-modal[hidden] {
  display: none !important;
}

.dk-staff-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dk-staff-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.dk-staff-modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.dk-staff-modal-box h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.dk-staff-modal-msg {
  margin: 0 0 16px;
  font-size: 14px;
  color: #475569;
  line-height: 1.45;
}

.dk-staff-modal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.dk-staff-modal-input {
  width: 100%;
  margin-top: 0;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  box-sizing: border-box;
}

.dk-staff-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dk-staff-modal-actions .dk-btn,
.dk-staff-modal-actions .dk-primary-btn {
  margin-top: 0;
}

/* Daily register */
.dk-register-page {
  max-width: 1100px;
}

.dk-register-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dk-register-hero-links .dk-dash-btn {
  min-height: 42px;
}

.dk-register-filter {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .dk-register-filter {
    grid-template-columns: 160px 1fr auto auto;
    align-items: end;
  }
}

.dk-register-bar-card {
  padding: 14px 16px;
  margin-bottom: 16px;
}

.dk-register-table {
  display: none;
}

.dk-register-cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .dk-register-table {
    display: table;
  }
  .dk-register-cards {
    display: none;
  }
}

.dk-att-status-menu {
  position: relative;
  display: inline-block;
}

.dk-att-menu-btn {
  margin-top: 0;
  white-space: nowrap;
}

.dk-att-status-menu .dk-status-panel form {
  margin: 0;
}

.dk-att-status-menu .dk-status-item {
  width: 100%;
}

.dk-register-table-card .dk-table-wrap {
  overflow-x: auto;
}
/* Dinankit kiosk admin (appended by deploy) — marker: DK_KIOSK_ADMIN_V1 */
.dk-kiosk-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; }
@media (max-width: 960px) { .dk-kiosk-grid { grid-template-columns: 1fr; } }
.dk-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; }
.dk-panel-wide { min-width: 0; }
.dk-form label { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 600; }
.dk-form input[type="text"], .dk-form input[type="number"], .dk-form input[type="email"], .dk-form input[type="password"] {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px;
}
.dk-btn { display: inline-block; margin-top: 12px; padding: 10px 16px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.dk-btn-ghost { background: transparent; color: #0f766e; border: 1px solid #99f6e4; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.dk-btn-warn { color: #b45309; border-color: #fed7aa; }
.dk-loc-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.dk-loc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dk-inline-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dk-inline-row input { flex: 1 1 180px; }
.dk-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.dk-table th, .dk-table td { border-top: 1px solid #e2e8f0; padding: 8px 6px; text-align: left; vertical-align: top; }
.dk-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #ecfeff; color: #0f766e; font-size: 12px; font-weight: 700; }
.dk-badge-ok { background: #ecfdf5; color: #047857; }
.dk-badge-warn { background: #fff7ed; color: #c2410c; }
.dk-muted { color: #64748b; font-size: 13px; }
.dk-mono-sm { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.dk-setup-reveal { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.dk-setup-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 12px 0; }
.dk-setup-code { font-size: 28px; letter-spacing: 0.2em; font-weight: 800; }
.dk-page-lead { margin: 0 0 16px; color: #475569; line-height: 1.5; }
.dk-flash { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.dk-flash-ok { background: #ecfdf5; color: #047857; }
.dk-flash-error { background: #fef2f2; color: #b91c1c; }
.dk-kiosk-setup-wrap { max-width: 520px; }
.dk-token-box { width: 100%; min-height: 160px; margin-top: 12px; font-family: ui-monospace, monospace; font-size: 12px; }
.dk-login-error { background: #fef2f2; color: #b91c1c; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.dk-top-tenant { margin: 0; font-size: 13px; color: #64748b; }
.menu-link.active { background: rgba(13, 148, 136, 0.12); color: #0f766e; font-weight: 700; }

/* Payroll table grid (override generic .dk-table rules above) */
.dk-payroll-table-card .dk-table-wrap {
  margin-top: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dk-payroll-table.dk-table {
  width: 100%;
  min-width: 1040px;
  margin-top: 0 !important;
  border-collapse: separate;
  border-spacing: 0 26px;
  font-size: 13px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.dk-payroll-table-card {
  background: #e2e8f0;
}

.dk-payroll-table.dk-table thead th {
  background: #f8fafc;
  color: #334155;
  border: 2px solid #cbd5e1;
  border-bottom: 3px solid #64748b;
  padding: 14px 10px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  vertical-align: middle !important;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dk-payroll-table.dk-table thead th:first-child {
  text-align: left;
  border-left: none;
}

.dk-payroll-table.dk-table thead th:last-child {
  border-right: none;
}

.dk-payroll-table.dk-table tbody td {
  border: 2px solid #cbd5e1;
  border-top: 3px solid #94a3b8;
  padding: 18px 14px !important;
  vertical-align: middle !important;
  text-align: center;
  background: #fff;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(15, 23, 42, 0.08);
}

.dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-col-employee {
  text-align: left;
  border-left: 8px solid #0d9488;
  border-right: 2px dashed #cbd5e1;
  min-width: 248px;
  max-width: 300px;
  border-radius: 16px 0 0 16px;
  padding: 16px 16px 16px 14px !important;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 55%);
}

.dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-col-select + td.dk-col-employee {
  border-radius: 16px 0 0 16px;
}

.dk-payroll-table.dk-table tbody tr.dk-payroll-row td:last-child {
  border-radius: 0 16px 16px 0;
}

.dk-payroll-table.dk-table tbody tr.dk-payroll-row:nth-child(even) td.dk-col-employee {
  border-left-color: #0284c7;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%);
}

.dk-payroll-table.dk-table tbody tr.dk-payroll-row:hover td {
  border-color: #5eead4;
  border-top-color: #0d9488;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 28px rgba(13, 148, 136, 0.18);
  transform: translateY(-1px);
}

.dk-payroll-table.dk-table tbody tr.dk-payroll-row {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dk-emp-cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dk-emp-row-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 3px 10px;
}

.dk-payroll-table tbody tr.dk-payroll-row:nth-child(even) .dk-emp-row-badge {
  color: #0369a1;
  background: #dbeafe;
  border-color: #93c5fd;
}

.dk-emp-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dk-emp-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ccfbf1, #5eead4);
  color: #0f766e;
  font-size: 17px;
  font-weight: 800;
  line-height: 42px;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(13, 148, 136, 0.2),
    0 2px 6px rgba(13, 148, 136, 0.15);
}

.dk-emp-title-wrap {
  min-width: 0;
  flex: 1;
}

.dk-emp-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}

.dk-emp-name {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 800;
}

.dk-emp-facts {
  margin: 0;
  padding: 12px 12px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dk-emp-fact {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: baseline;
  margin: 0;
}

.dk-emp-fact dt {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dk-emp-fact dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #475569;
}

.dk-payroll-table .dk-col-num .dk-cell-val,
.dk-payroll-table .dk-col-money .dk-cell-val {
  display: inline-block;
  min-width: 3.5rem;
  font-weight: 600;
}

.dk-payroll-table .dk-col-money .dk-cell-val {
  font-variant-numeric: tabular-nums;
}

.dk-payroll-table td.dk-paid-days-cell {
  min-width: 140px;
  max-width: 180px;
}

.dk-payroll-table td.dk-col-payment {
  min-width: 172px;
  max-width: 220px;
}

.dk-payroll-table.dk-table th:first-child,
.dk-payroll-table.dk-table td.dk-col-employee {
  text-align: left;
}

.dk-payroll-table.dk-table th:not(:first-child),
.dk-payroll-table.dk-table td:not(:first-child):not(.dk-col-employee) {
  text-align: center;
}

.dk-payroll-table.dk-table td.dk-paid-days-cell {
  text-align: center !important;
}

.dk-payroll-table.dk-table tbody td.dk-payroll-paycell {
  text-align: center;
}

.dk-payroll-table.dk-table .dk-payroll-paycell .super-muted,
.dk-payroll-table.dk-table .dk-pay-meta {
  text-align: center;
}

/* Desktop: fixed columns, compact employee cell, aligned headers */
@media (min-width: 768px) {
  .dk-payroll-page .dk-payroll-table-card .dk-table-wrap {
    overflow-x: auto;
  }

  .dk-payroll-table.dk-table {
    table-layout: fixed;
    width: 100%;
    min-width: 720px;
    border-spacing: 0 12px;
  }

  .dk-payroll-table.dk-table .dk-col-select {
    width: 42px;
  }

  .dk-payroll-table.dk-table th.dk-col-employee,
  .dk-payroll-table.dk-table td.dk-col-employee {
    width: 24%;
    min-width: 0;
    max-width: none;
  }

  .dk-payroll-table.dk-table th.dk-col-num,
  .dk-payroll-table.dk-table td.dk-col-num,
  .dk-payroll-table.dk-table td.dk-paid-days-cell {
    width: 10%;
    min-width: 0;
    max-width: none;
  }

  .dk-payroll-table.dk-table th.dk-col-money,
  .dk-payroll-table.dk-table td.dk-col-money,
  .dk-payroll-table.dk-table td.dk-payroll-amt {
    width: 9%;
    min-width: 0;
    max-width: none;
  }

  .dk-payroll-table.dk-table th.dk-col-payment,
  .dk-payroll-table.dk-table td.dk-col-payment {
    width: 12%;
    min-width: 0;
    max-width: none;
  }

  .dk-payroll-table.dk-table thead th,
  .dk-payroll-table.dk-table tbody td {
    padding: 12px 8px !important;
  }

  .dk-payroll-table.dk-table thead th.dk-col-employee,
  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-col-employee {
    padding-left: 12px !important;
    padding-right: 10px !important;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td:first-child.dk-col-employee,
  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-col-employee {
    border-radius: 12px 0 0 12px;
  }

  .dk-payroll-table .dk-emp-row-badge,
  .dk-payroll-table .dk-emp-kicker {
    display: none;
  }

  .dk-payroll-table .dk-emp-cell {
    gap: 6px;
  }

  .dk-payroll-table .dk-emp-head {
    align-items: center;
  }

  .dk-payroll-table .dk-emp-avatar {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 15px;
    border-radius: 10px;
  }

  .dk-payroll-table .dk-emp-name {
    font-size: 14px;
    font-weight: 700;
  }

  .dk-payroll-table .dk-emp-facts {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .dk-payroll-table .dk-emp-fact {
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
    grid-template-columns: none;
  }

  .dk-payroll-table .dk-emp-fact dt {
    font-size: 9px;
  }

  .dk-payroll-table .dk-emp-fact dd {
    font-size: 11px;
  }

  .dk-payroll-table.dk-table th.dk-col-num,
  .dk-payroll-table.dk-table th.dk-col-money,
  .dk-payroll-table.dk-table th.dk-paid-days-col,
  .dk-payroll-table.dk-table th.dk-pay-col {
    text-align: center;
  }

  .dk-payroll-table.dk-table td.dk-col-num,
  .dk-payroll-table.dk-table td.dk-col-money,
  .dk-payroll-table.dk-table td.dk-paid-days-cell,
  .dk-payroll-table.dk-table td.dk-payroll-amt,
  .dk-payroll-table.dk-table td.dk-payroll-paycell {
    text-align: center !important;
  }

  .dk-payroll-table .dk-paid-days-breakdown {
    align-items: center;
  }

  .dk-payroll-table .dk-payroll-paycell .super-muted,
  .dk-payroll-table .dk-pay-meta {
    text-align: center;
  }
}

/* —— Payroll mobile —— */
.dk-lbl-short {
  display: none;
}

@media (max-width: 767px) {
  .dk-payroll-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .dk-payroll-page .dk-lbl-long {
    display: none;
  }

  .dk-payroll-page .dk-lbl-short {
    display: inline;
  }

  .dinankit-shell .content-card.dk-payroll-table-card {
    padding: 10px 8px 12px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 14px;
  }

  .dk-payroll-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .dk-payroll-toolbar .dk-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 10px 8px;
  }

  .dk-payroll-toolbar .dk-payroll-bulk-primary,
  .dk-payroll-toolbar .dk-payroll-bulk-all {
    grid-column: 1 / -1;
  }

  .dk-payroll-filter-card {
    padding: 14px 12px 10px;
    margin-bottom: 14px;
  }

  .dk-payroll-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dk-payroll-filter-note {
    font-size: 11px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .dk-payroll-body .super-kpi-grid {
    gap: 10px;
    margin-bottom: 12px;
  }

  .dk-payroll-body .super-kpi {
    padding: 14px 16px;
  }

  .dk-payroll-body .super-kpi-value {
    font-size: 1.2rem;
    word-break: break-word;
  }

  .dk-payroll-table-card .dk-table-wrap {
    overflow-x: hidden;
    margin: 0;
    width: 100%;
  }

  .dk-payroll-table.dk-table {
    min-width: 0 !important;
    width: 100% !important;
    border-spacing: 0 !important;
    display: block !important;
    table-layout: auto !important;
  }

  .dk-payroll-table.dk-table thead {
    display: none !important;
  }

  .dk-payroll-table.dk-table tbody {
    display: block !important;
    width: 100%;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row {
    display: block !important;
    position: relative;
    width: 100%;
    margin: 0 0 10px;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #0d9488;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row:nth-child(even) {
    border-left-color: #0284c7;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row:hover td {
    transform: none !important;
  }

  /* Undo desktop “first column = employee card” rules (they hit the checkbox column too). */
  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td:first-child {
    min-width: 0 !important;
    max-width: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    text-align: inherit;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 12px !important;
    text-align: right;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td:last-child {
    border-bottom: none !important;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-col-select {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px !important;
    min-width: 0 !important;
    max-width: 32px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    z-index: 2;
    text-align: center;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-col-select input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-col-employee {
    text-align: left;
    padding: 10px 40px 8px 12px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 70%) !important;
    border-left: none !important;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row:nth-child(even) td.dk-col-employee {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 70%) !important;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td[data-label] {
    display: grid !important;
    grid-template-columns: minmax(72px, 34%) 1fr;
    gap: 6px 10px;
    align-items: center;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td[data-label]::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: left;
    line-height: 1.3;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-paid-days-cell {
    text-align: right !important;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-paid-days-cell .dk-paid-days-breakdown {
    grid-column: 2;
    text-align: right;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-paid-days-cell .dk-paid-days-main {
    grid-column: 2;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-paid-days-cell::before {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 2px;
  }

  .dk-payroll-table .dk-col-num .dk-cell-val,
  .dk-payroll-table .dk-col-money .dk-cell-val {
    min-width: 0;
    font-size: 15px;
  }

  .dk-payroll-table tbody tr.dk-payroll-row td.dk-payroll-amt .dk-cell-val {
    font-size: 17px;
    font-weight: 800;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-payroll-paycell {
    text-align: center !important;
    display: block;
    padding: 14px 12px !important;
    background: #f8fafc !important;
    border-top: 2px solid #e2e8f0 !important;
  }

  .dk-payroll-table.dk-table tbody tr.dk-payroll-row td.dk-payroll-paycell::before {
    display: block;
    margin-bottom: 10px;
    text-align: center;
  }

  .dk-payroll-paycell {
    min-width: 0;
    max-width: none;
  }

  .dk-pay-cell {
    align-items: stretch;
  }

  .dk-pay-toolbar {
    justify-content: center;
    gap: 6px;
    padding-top: 8px;
  }

  .dk-pay-chip {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 36px;
  }

  .dk-payroll-paycell .dk-mark-paid {
    width: 100%;
    max-width: 280px;
    min-height: 44px;
  }

  .dk-payroll-table .dk-emp-row-badge {
    font-size: 9px;
    padding: 2px 8px;
  }

  .dk-payroll-table .dk-emp-cell {
    gap: 8px;
  }

  .dk-payroll-table .dk-emp-head {
    gap: 10px;
  }

  .dk-payroll-table .dk-emp-avatar {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 15px;
  }

  .dk-emp-name {
    font-size: 15px;
    line-height: 1.25;
    padding-right: 0;
  }

  .dk-emp-kicker {
    display: none;
  }

  .dk-emp-facts {
    padding: 8px 10px;
    gap: 6px;
    margin: 0;
  }

  .dk-emp-fact {
    grid-template-columns: 36px 1fr;
  }

  .dk-payroll-body .super-kpi-meta {
    font-size: 11px;
  }

  .dinankit-shell .topbar-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 220px);
  }

  .dk-payroll-drawer-panel {
    width: 100%;
    max-width: 100%;
    height: min(88dvh, 100%);
    max-height: 88dvh;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 18px 18px 0 0;
    animation: dkPayrollDrawerUp 0.24s ease-out;
  }

  @keyframes dkPayrollDrawerUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .dk-payroll-settle-box,
  .dk-staff-modal-box.dk-payroll-settle-box {
    width: calc(100vw - 20px);
    max-width: none;
    margin: 10px;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }

  .dk-absent-day-btn {
    min-height: 40px;
    min-width: 44px;
    padding: 6px 12px;
  }
}

@media (max-width: 380px) {
  .dk-payroll-toolbar {
    grid-template-columns: 1fr;
  }
}
