/* Housekeeper Assist portal — Routines screen (revamp/screenshots). Uses the hk- kit in src/index.css. */

/* ── Library: routine cards (revamp .routinecard / .placeholdercard) ── */
.rt-card { display: flex; flex-direction: column; }
.rt-cover { height: 78px; margin: -22px -22px 20px; border-radius: 10px 10px 0 0; background: #f1f5ec; display: flex; align-items: center; justify-content: space-between; padding: 22px; color: #739677; }
.rt-name { font-size: 18px; font-weight: 650; letter-spacing: -.3px; margin: 0; color: var(--hk-ink); overflow-wrap: anywhere; }
.rt-helper { margin: 18px 0; }
.rt-helper-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rt-helper-text small { font-size: 12px; color: var(--hk-muted); }
.rt-helper-text b { font-size: 15px; font-weight: 650; color: var(--hk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-avatar--none { background: #eef2ee; color: #7c8a80; }
.rt-details { font-size: 12px; color: #8c9787; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 21px; }
.rt-details span { display: inline-flex; align-items: center; gap: 6px; }
.rt-card .hk-btn--block { margin-top: auto; }
.rt-placeholder { min-height: 300px; }
.rt-placeholder .hk-btn { pointer-events: none; }   /* the whole card is the button */

/* ── Routine detail (revamp routineDetail) ── */
.rt-title-cell { font: inherit; letter-spacing: inherit; }
.page-title .inline-cell-input { max-width: 100%; width: min(520px, 80vw); margin: -4px -7px; font: inherit; }
.rt-detailgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 22px; align-items: start; }
.rt-aside { position: sticky; top: 84px; }
.rt-aside .page-eyebrow { margin-bottom: 14px; }
.rt-aside .rt-helper { margin: 0 0 6px; }
.rt-aside .hk-notice svg { flex: none; margin-top: 1px; }
.rt-sectionbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.rt-sectionbar h2 { font-size: 18px; font-weight: 650; letter-spacing: -.3px; margin: 0; color: var(--hk-ink); }
.rt-pillcount { display: inline-block; background: #e6eee0; color: #6c8561; border-radius: 5px; padding: 1px 7px; margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0; vertical-align: middle; }
.rt-tasks .hk-notice { margin: 0 0 14px; }
.rt-tasks .jb-bar { margin: 0 0 10px; }
.rt-tasklist { border-top: 1px solid var(--hk-line); }
.rt-tasks .jb-task { padding: 14px 4px; border-bottom-color: var(--hk-line); }
.rt-tasks .jb-badge { color: var(--hk-teal); background: var(--hk-mint); }
.rt-tasks .jb-input { height: 32px; border-color: #dfe6d9; border-radius: 7px; }
.rt-delete { color: var(--hk-red); background: #fbf1f0; }
.rt-delete:hover { background: #f8e2df; }

@media (max-width: 1000px) {
  .rt-detailgrid { grid-template-columns: 1fr; }
  .rt-aside { position: static; }
}

/* Create routine dialog (AddJobModal): the template search spans the dialog */
.aj-search.hk-search { max-width: none; flex: none; }
