*,
.data-mine,
.header {
  background: var(--card)
}

.brand,
body {
  color: var(--text)
}

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-soft: #e0e7ff;
  --ok: #16a34a;
  --error: #dc2626;
  --border: #e5e7eb;
  --header-bg: #ffffffcc;
  --header-border: #e5e7eb;
  --toggle-bg: #e5e7eb
}

html[data-theme=dark] {
  --bg: #0b1020;
  --card: #11162a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-soft: #1e293b;
  --ok: #34d399;
  --error: #f87171;
  --border: #1f2a44;
  --header-bg: #0b1020f2;
  --header-border: #1f2a44;
  --toggle-bg: #1f2a44
}

input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(0);
  cursor: pointer;
  transition: filter .2s
}

html[data-theme=dark] input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(1)
}

svg {
  fill: #000000
}

html[data-theme=dark] svg {
  fill: #ffffff
}

input[type=date] {
  -moz-appearance: textfield
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif
}

.header {
  width: 100%;
  border-bottom: 1px solid var(--accent-soft);
  padding: .75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000
}

.data-mine {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  font-size: 1.25rem;
  font-weight: 700
}

.clear-btn,
.toggle {
  font-size: .9rem
}

.toggle,
label {
  color: var(--muted)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem
}

.container,
.form-group {
  display: flex;
  flex-direction: column
}

.switch {
  width: 42px;
  height: 22px;
  background: var(--accent-soft);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .3s
}

.card,
.col-mine select,
.switch::after {
  background: var(--card)
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: transform .3s
}

.switch.active {
  background: var(--text)
}

.switch.active::after {
  transform: translateX(20px)
}

body {
  line-height: 1.5;
  padding: 20px
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: 30px auto auto;
  gap: 2rem
}

.card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform .2s;
  width: 100%;
  border-top: 6px solid var(--accent)
}

.card:hover {
  transform: translateY(-4px)
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--accent);
  text-transform: uppercase
}

.row {
  display: flex;
  justify-content: center;
  gap: 2rem
}

.section-title {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center
}

.total {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text);
  font-size: 1.2rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--text);
  margin-bottom: 10px
}

.col-mine select:focus,
input:focus,
select:focus {
  border-color: var(--accent)
}

.form-group {
  margin-bottom: 1rem
}

label {
  margin-bottom: .5rem;
  font-size: .95rem;
  font-weight: 500
}

input,
select {
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  outline: 0;
  transition: border-color .2s;
  color: var(--text)
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .8rem;
  background: var(--accent-soft);
  color: var(--accent);
  width: fit-content
}

.results-list {
  margin-top: .5rem;
  padding-left: 1rem;
  list-style: disc;
  color: var(--muted)
}

.clear-btn {
  color: var(--accent);
  background: 0 0;
  cursor: pointer;
  border: none
}

.col-mine select,
.subtle {
  color: var(--text);
  font-size: .9rem
}

.subtle {
  text-align: left;
  margin-bottom: 10px
}

.row-mine {
  display: flex;
  flex-direction: column;
  gap: 2rem
}

.col-mine {
  flex: 1;
  justify-content: left
}

.col-mine select {
  padding: .45rem .6rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  transition: border .2s
}

.btn-primary,
.col-mine button,
.col-mine button:hover {
  background: var(--accent)
}

.col-mine select:focus {
  outline: 0;
  box-shadow: 0 0 0 2px var(--accent-soft)
}

.col-mine button {
  padding: .45rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  border-radius: .4rem;
  border: none;
  cursor: pointer;
  color: var(--bg);
  transition: background .2s, transform .1s
}

.row-mine2 {
  display: flex;
  gap: .5rem;
  width: 100%
}

.row-mine2>* {
  flex: 1;
  min-width: 0
}

.text-center {
  text-align: center;
  margin-bottom: 20px
}

.btn-primary {
  display: block;
  margin: auto;
  padding: .9rem 2rem;
  border-radius: 10px;
  color: var(--accent-soft);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s, transform .2s
}

#errorMsg {
  color: var(--error)
}

.result-item {
  list-style: none;
  margin: .5rem 0
}

.result-row {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: .5rem .2rem
}

.result-row span:first-child {
  flex: 1
}

.result-row span:nth-child(2) {
  margin-right: 1.5rem
}


@media (max-width:768px) {
  .container {
    padding: 10px
  }

  .card {
    padding: 1rem
  }

  .card-title {
    font-size: 1.2rem
  }

  .btn-add,
  .btn-primary {
    width: 100%
  }

  .grand-total {
    font-size: 14px
  }

  .employee-form,
  .row {
    flex-direction: column
  }

  .employee-title {
    font-size: 1.5rem
  }

  .employee-form input {
    width: 100%;
    flex: none
  }

  .employee-table {
    font-size: .85rem
  }
}

