/* ── Daysheet Timetracker ── */
.dst-app {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  max-width: 900px;
  margin: 0 auto;
}

.dst-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.dst-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 18px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  border-top: none !important;
}

.dst-login-notice {
  padding: 20px;
  background: #fffbee;
  border: 1px solid #f0e0a0;
  border-radius: 8px;
  color: #666;
  text-align: center;
}

.dst-login-notice a { color: #c4a832; }

/* ── Forms ── */
.dst-form { display: flex; flex-direction: column; gap: 14px; }

.dst-form-row { display: flex; flex-direction: column; gap: 4px; }

.dst-form-row label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.dst-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #bbb; }

.dst-form-row input[type="text"],
.dst-form-row input[type="time"],
.dst-form-row input[type="number"],
.dst-form-row select,
.dst-form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #222;
  background: #fafafa;
  outline: none;
  transition: border-color 0.12s;
  box-sizing: border-box;
}

.dst-form-row input:focus,
.dst-form-row select:focus,
.dst-form-row textarea:focus {
  border-color: #c4a832;
  background: #fff;
}

.dst-form-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.dst-form-row-3col label { display: block; }

/* ── Duration preview ── */
.dst-duration-preview {
  background: #fffbee;
  border: 1px solid #f0e0a0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c4a832;
  font-weight: 600;
  display: none;
}

.dst-duration-preview.visible { display: block; }

/* ── Buttons ── */
.dst-btn {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  border: none;
  transition: background 0.12s;
  font-family: 'Courier New', monospace;
  align-self: flex-start;
}

.dst-btn-primary { background: #c4a832; color: #fff; }
.dst-btn-primary:hover { background: #a88e25; }

.dst-btn-secondary { background: #f0f0f0; color: #555; border: 1px solid #ddd; }
.dst-btn-secondary:hover { background: #e5e5e5; }

.dst-btn-small {
  padding: 4px 10px;
  font-size: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  font-family: 'Courier New', monospace;
}

.dst-btn-export { background: #e8f5e9; color: #388e3c; }
.dst-btn-export:hover { background: #c8e6c9; }

/* ── Messages ── */
#dst-entry-message {
  margin-top: 12px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}

#dst-entry-message.success { background: #e8f5e9; color: #388e3c; display: block; }
#dst-entry-message.error   { background: #ffebee; color: #c62828; display: block; }

/* ── Filter row ── */
.dst-filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.dst-filter-row select {
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #333;
  background: #fafafa;
  outline: none;
  flex: 1;
  min-width: 160px;
}

/* ── Tables ── */
.dst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dst-table th {
  text-align: left;
  padding: 7px 10px;
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

.dst-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
  vertical-align: top;
}

.dst-table tr:last-child td { border-bottom: none; }
.dst-table tr:hover td { background: #fafafa; }

.dst-net-time { font-weight: 700; color: #c4a832; }
.dst-job-tag  { background: #f0f0f0; border-radius: 3px; padding: 1px 6px; font-size: 10px; color: #666; }
.dst-role-tag { background: #e8f0ff; border-radius: 3px; padding: 1px 6px; font-size: 10px; color: #4466bb; }

.dst-no-entries { color: #bbb; font-size: 12px; padding: 20px 0; text-align: center; }

/* ── Export area ── */
#dst-export-area { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.dst-export-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dst-export-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .dst-form-row-3col { grid-template-columns: 1fr; }
  .dst-filter-row { flex-direction: column; }
  .dst-table { font-size: 11px; }
  .dst-table th, .dst-table td { padding: 6px 6px; }
}
