/* Employee Portal · Hector's Desk (public/team/desk.js). Phone first: he works it one-handed, outdoors. */

.dk-ask { padding: 16px 18px; }
.dk-ask-label { display: block; margin: 0 0 8px; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--navy); }
.dk-ask textarea {
  width: 100%; min-height: 64px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--soft);
  font: inherit; font-size: 16px; color: var(--ink); /* 16px: iOS zooms the page on anything smaller */
}
.dk-ask textarea:focus { outline: 0; border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 4px rgba(16,27,43,.08); }
.dk-ask-more { margin-top: 12px; }
.dk-ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.dk-link { padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text); cursor: pointer; }
.dk-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--red); }

.dk-section { display: grid; gap: 10px; }
.dk-section > h2, .dk-section > summary {
  margin: 4px 0 0; font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.dk-section > summary { cursor: pointer; padding: 8px 0; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.dk-count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11px; letter-spacing: 0; text-align: center; }

.dk-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 14px; box-shadow: 0 2px 10px rgba(15,28,46,.04); cursor: pointer;
}
.dk-item:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.dk-item.is-open { border-left-color: var(--navy); }
.dk-item.is-urgent, .dk-item.is-overdue { border-left-color: var(--red); }
.dk-item.is-waiting { border-left-color: var(--gold); }
.dk-item.is-done, .dk-item.is-declined { opacity: .78; }
.dk-item-main { flex: 1; min-width: 0; }
.dk-item-top { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-item-top:empty { display: none; }
.dk-item h3 { margin: 4px 0 2px; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.dk-meta { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dk-note { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--soft); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.dk-done {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper);
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.dk-done:hover, .dk-done:active { border-color: #1f6b3a; background: #e4f3e8; color: #1f6b3a; }
.dk-go { flex: none; color: var(--muted); font-size: 26px; line-height: 1; }

.dk-facts { margin: 0 0 14px; font-size: 14px; color: var(--text); line-height: 1.7; }
.dk-source { margin-bottom: 14px; text-align: center; text-decoration: none; }
.dk-detail { margin: 0 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; color: var(--ink); }
.dk-due { max-width: 220px; }
.dk-timeline { display: grid; gap: 10px; margin: 6px 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dk-event { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.dk-event-kind { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.dk-event p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.dk-event small { color: var(--muted); }
.dk-addnote { display: grid; gap: 8px; justify-items: end; }
.dk-addnote textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); font: inherit; font-size: 16px; resize: vertical; }
.dk-sheet-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@media (max-width: 560px) {
  .dk-item { padding: 13px 14px; }
  .sheet-actions .btn { flex: 1 1 auto; }
}
