/* ---------- Demandas (post-its no perfil) ---------- */
.profile-layout { display: grid; grid-template-columns: minmax(0, 470px) 340px; gap: 28px; justify-content: center; align-items: start; }
.profile-layout .feed-wrap { margin: 0; max-width: none; }
.demandas-aside { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 940px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .demandas-aside { position: static; order: -1; }
}
.demandas-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demandas-head h3 { margin: 0; font-size: 17px; }
.demandas-section { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.demanda-form summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.demanda-form summary::-webkit-details-marker { display: none; }
.demanda-form form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.demanda-form-row { display: flex; gap: 8px; }

.postit { --note: #fff3a3; background: var(--note); color: #3b3300; padding: 12px 14px 10px; border-radius: 3px 3px 12px 3px; box-shadow: 0 3px 8px rgba(0,0,0,.16); position: relative; transform: rotate(-.6deg); }
.postit-next { --note: #ffd9a8; transform: rotate(.7deg); }
.postit-queue { --note: #d6f0b5; }
.postit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.postit-grid .postit:nth-child(3n+2) { --note: #bfe3f7; transform: rotate(.9deg); }
.postit-grid .postit:nth-child(3n) { --note: #f7c6dd; transform: rotate(-.9deg); }
.postit-current { padding: 16px 16px 12px; }
.postit-current .postit-title { font-size: 17px; }
.postit-edit summary { list-style: none; display: inline-block; cursor: pointer; margin-top: 8px; }
.postit-edit summary::-webkit-details-marker { display: none; }
.postit-edit form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.postit-edit select, .postit-edit input { border: 1px solid rgba(0,0,0,.2); border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 12px; background: rgba(255,255,255,.7); }
.postit-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.postit-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.postit-prio { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(0,0,0,.09); }
.postit-prio.prio-high, .postit.prio-high .postit-prio { background: #f0a33a; color: #fff; }
.postit-prio.prio-urgent, .postit.prio-urgent .postit-prio { background: var(--primary); color: #fff; }
.postit-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; word-break: break-word; }
.postit-desc { font-size: 13px; margin-top: 4px; line-height: 1.4; word-break: break-word; max-height: 8.4em; overflow: auto; }
.postit-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; margin-top: 8px; opacity: .8; }
.postit-meta a { color: inherit; font-weight: 600; }
.postit-meta svg { vertical-align: -2px; }
.postit-late { color: var(--primary); font-weight: 700; }
.postit-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.postit-btn { border: 1px solid rgba(0,0,0,.2); background: rgba(255,255,255,.55); border-radius: 6px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; cursor: pointer; color: inherit; }
.postit-btn:hover { background: rgba(255,255,255,.9); }
.postit-del { margin-left: auto; }
.postit-complete { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.postit-complete[hidden] { display: none; }
.postit-complete textarea { border: 1px solid rgba(0,0,0,.2); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 12.5px; background: rgba(255,255,255,.7); resize: vertical; }
.postit-empty { border: 2px dashed var(--border); border-radius: var(--radius); padding: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* página de concluídas */
.dem-page { max-width: 980px; margin: 0 auto; }
.dem-periods { display: flex; gap: 6px; flex-wrap: wrap; }
.dem-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.dem-kpi { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.dem-kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.dem-kpi strong { font-size: 26px; }
.dem-kpi small { font-size: 11.5px; color: var(--muted); }
.dem-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.dem-charts h3 { margin: 0 0 12px; font-size: 14px; }
.dem-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; }
.dem-bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.dem-bar { width: 100%; max-width: 44px; min-height: 3px; background: var(--primary); border-radius: 5px 5px 0 0; }
.dem-bar-val { font-size: 12px; font-weight: 700; }
.dem-bar-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; }
.dem-hbar { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12.5px; }
.dem-hbar-label { width: 100px; flex-shrink: 0; color: var(--ink-soft); }
.dem-hbar-track { flex: 1; height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.dem-hbar-fill { height: 100%; background: var(--primary); border-radius: 99px; }
.dem-hbar-fill.prio-low { background: #8bb8d6; }
.dem-hbar-fill.prio-normal { background: #7fbf7f; }
.dem-hbar-fill.prio-high { background: #f0a33a; }
.dem-hbar-val { width: 24px; text-align: right; font-weight: 700; }
.dem-done { margin-bottom: 8px; padding: 0; }
.dem-done summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; flex-wrap: wrap; }
.dem-done-title { font-weight: 600; flex: 1; min-width: 140px; }
.dem-done-date { font-size: 12px; }
.dem-done-body { padding: 0 14px 14px; border-top: 1px solid var(--border); font-size: 13.5px; }
.dem-done-body dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 10px 0 0; }
.dem-done-body dt { color: var(--muted); }
.dem-done-body dd { margin: 0; }

/* busca de usuários no feed */
.user-search { position: relative; }
.user-search input { padding-left: 38px; border-radius: 99px; background: var(--paper); }
.user-search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.user-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.14); overflow: hidden; }
.user-search-results:empty { display: none; }
.user-search-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: inherit; text-decoration: none; }
.user-search-item:hover { background: var(--bg); }
.user-search-item .who { min-width: 0; display: flex; flex-direction: column; }
.user-search-item strong { font-size: 14px; }
.user-search-item small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-search-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }

.profile-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }
.profile-facts span { display: inline-flex; align-items: center; gap: 5px; }
.profile-facts svg { color: var(--muted); }
