/* Urlaubskonto – Frontend-Bedienfeld im Stil der Antragsseite */

.tsm-kp {
  --kp-blue: #7fa8d4;
  --kp-line: #d5d5d5;
  --kp-muted: #9a9a9a;
  --kp-red: #c0392b;
  --kp-text: #333;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
  padding: 44px 48px 36px;
  color: var(--kp-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
}
.tsm-kp *, .tsm-kp *::before, .tsm-kp *::after { box-sizing: border-box; }

.tsm-kp-title {
  font-size: 2.1rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: .01em;
  margin: 0 0 6px;
  color: var(--kp-text);
}

.tsm-kp-year { text-align: center; margin-bottom: 28px; }
.tsm-kp-year a {
  color: var(--kp-muted);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0 12px;
  line-height: 1;
}
.tsm-kp-year a:hover { color: var(--kp-blue); }
.tsm-kp-year span { font-size: 1rem; color: var(--kp-muted); }

.tsm-kp-note { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: .9rem; }
.tsm-kp-ok { background: #e6f4ea; color: #1e7a3d; }
.tsm-kp-err { background: #fdecea; color: #a5271b; }

/* Felder */
.tsm-kp-form { margin: 0; }
.tsm-kp-field { display: block; margin: 0 0 18px; }
.tsm-kp-field > span { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--kp-muted); margin-bottom: 4px; }
.tsm-kp-field input,
.tsm-kp-field select {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--kp-line);
  background: transparent;
  padding: 8px 0;
  font-size: 1rem;
  color: var(--kp-text);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.tsm-kp-field input:focus { border-bottom-color: var(--kp-blue); }

.tsm-kp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }

/* Button */
.tsm-kp-submit { text-align: right; margin: 4px 0 8px; }
.tsm-kp-btn {
  display: inline-block;
  background: var(--kp-blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 11px 24px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.tsm-kp-btn:hover { background: #6b96c6; color: #fff; }

/* Zeilen */
.tsm-kp-row { border-top: 1px solid #ededed; padding-top: 22px; margin-top: 22px; }
.tsm-kp-row.archived { padding-top: 16px; margin-top: 12px; }
.tsm-kp-name { font-size: 1.05rem; font-weight: 500; margin-bottom: 12px; }
.tsm-kp-name small { display: block; font-weight: 400; font-size: .8rem; color: var(--kp-muted); }

.tsm-kp-rest { font-size: .88rem; color: var(--kp-muted); margin: 2px 0 6px; }
.tsm-kp-rest strong { color: var(--kp-text); }

.tsm-kp-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.tsm-kp-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--kp-red);
  font-size: .84rem;
  cursor: pointer;
  text-decoration: none;
}
.tsm-kp-link:hover { text-decoration: underline; }
.tsm-kp-link[disabled] { color: #c9c9c9; cursor: not-allowed; text-decoration: none; }

/* Hinzufügen */
.tsm-kp-add { margin: 8px 0 4px; }
.tsm-kp-add summary { cursor: pointer; color: var(--kp-blue); font-size: .9rem; margin-bottom: 16px; }
.tsm-kp-add[open] summary { margin-bottom: 18px; }

.tsm-kp-subtitle { margin: 30px 0 4px; font-size: 1rem; color: var(--kp-muted); font-weight: 500; }

/* Ansicht Mitarbeiter */
.tsm-kp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 16px; }
.tsm-kp-cell { display: flex; flex-direction: column; gap: 2px; }
.tsm-kp-cell span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--kp-muted); }
.tsm-kp-cell strong { font-size: 1.35rem; font-weight: 500; }
.tsm-kp-cell.highlight strong { color: var(--kp-blue); }
.tsm-kp-hint { color: var(--kp-muted); font-size: .9rem; }
.tsm-kp-scroll { overflow-x: auto; }
.tsm-kp-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.tsm-kp-table th, .tsm-kp-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #ededed; font-size: .9rem; }
.tsm-kp-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--kp-muted); }

@media (max-width: 640px) {
  .tsm-kp { padding: 28px 20px 24px; }
  .tsm-kp-title { font-size: 1.6rem; }
  .tsm-kp-two { grid-template-columns: 1fr; }
  .tsm-kp-grid { grid-template-columns: repeat(2, 1fr); }
}
