/* ============================================================
 * Taskloon — tenant.css  (company workspace)
 * Imports shared.css (theme + shell). Holds ONLY tenant-specific
 * pieces: live time-tracking UI (mini timer, timer panel),
 * kanban, timeline chart, participant state, active rows.
 * The shared shell defaults already match the tenant look.
 * ============================================================ */
@import url("shared.css");

body { background: var(--app-canvas); color: #44414f; }
h1, h2, h3, h4, h5, h6 { color: var(--app-ink); letter-spacing: -0.01em; }

/* ---------- Mini cronômetro (topbar) ---------- */
.mini-timer {
  display: flex; align-items: center; gap: .7rem; padding: .35rem .35rem .35rem .9rem; border-radius: 50rem;
  border: 1px solid var(--app-line); background: #fff;
}
.mini-timer.running { border-color: #bfe8d0; background: #f1fbf5; }
.mini-timer .mt-task { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--app-ink); }
.mini-timer .mt-clock { font-family: var(--identity-mono); font-weight: 600; color: var(--app-ink); }
.mini-timer .mt-btn { width: 32px; height: 32px; border-radius: 50%; border: none; display: grid; place-items: center; color: #fff; cursor: pointer; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 290px; gap: 1rem; overflow-x: auto; padding-bottom: .75rem; }
.kan-col { background: var(--app-canvas); border: 1px solid var(--app-line); border-radius: 14px; display: flex; flex-direction: column; max-height: 72vh; }
.kan-col-h { padding: .75rem .9rem; display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .88rem; position: sticky; top: 0; }
.kan-col-h .count { margin-left: auto; background: #fff; border: 1px solid var(--app-line); color: var(--app-muted); font-size: .72rem; padding: .05rem .45rem; border-radius: 50rem; }
.kan-body { padding: 0 .65rem .65rem; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; }
.task-card { background: #fff; border: 1px solid var(--app-line); border-radius: 12px; padding: .8rem .85rem; box-shadow: var(--app-shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.task-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -10px rgba(31,24,48,.28); }
.task-card .tc-title { font-weight: 700; color: var(--app-ink); font-size: .92rem; }

/* ---------- Cronômetro (detalhe da tarefa) ---------- */
.timer-panel { background: linear-gradient(160deg, #2a2140, #1c1628); border-radius: 18px; color: #fff; padding: 1.4rem 1.5rem; }
.timer-panel.is-live { background: linear-gradient(160deg, #123227, #0e2a20); }
.timer-display { font-family: var(--identity-mono); font-size: 2.9rem; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.timer-sub { color: rgba(255,255,255,.6); font-size: .82rem; }
.btn-timer { border-radius: 50rem; font-weight: 700; padding: .65rem 1.4rem; border: none; display: inline-flex; align-items: center; gap: .5rem; }
.btn-iniciar { background: #fff; color: #2a2140; }
.btn-iniciar:hover { background: #f0ecfa; }
.btn-play { background: #18a558; color: #fff; }
.btn-play:hover { background: #138a49; }
.btn-pause { background: #f5b50a; color: #2a2140; }
.btn-pause:hover { background: #e0a608; }

/* períodos trabalhados */
.period-row { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-bottom: 1px dashed var(--app-line); }
.period-row:last-child { border-bottom: none; }
.period-dur { font-family: var(--identity-mono); font-weight: 600; color: var(--app-ink); }

/* estado do participante (enum em inglês) */
.pstate { font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 50rem; }
.pstate-active { background: #e3f6eb; color: #15824a; }
.pstate-paused { background: #fbf1d9; color: #b5820b; }
.pstate-done { background: #eef0f3; color: #5b6470; }
.pstate-not_started { background: #f3f0fb; color: var(--identity-purple); }
.pstate-removed { background: #fbe6e3; color: #d23b2c; text-decoration: line-through; }

/* pessoas ativas */
.active-row { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--app-line); }
.active-row:last-child { border-bottom: none; }

/* linha do tempo (chart) */
.timeline-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: .5rem; }
.tl-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 0; }
.tl-bar { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--identity-purple), #9a6df0); transition: height .4s cubic-bezier(.2,.7,.2,1); position: relative; }
.tl-bar.weekend { background: linear-gradient(180deg, #c9bce8, #d8cef0); }
.tl-bar-label { font-size: .66rem; color: var(--app-muted); white-space: nowrap; }
.tl-bar:hover::after { content: attr(data-val); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--app-ink); color: #fff; font-size: .68rem; padding: .15rem .4rem; border-radius: 5px; margin-bottom: 4px; white-space: nowrap; font-family: var(--identity-mono); }

.divider-v { width: 1px; align-self: stretch; background: var(--app-line); }

/* toast */
.tl-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1080;
  background: var(--app-ink); color: #fff; padding: .8rem 1.2rem; border-radius: 12px;
  display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem;
  box-shadow: 0 18px 50px -16px rgba(0,0,0,.5); max-width: 90vw;
}
.tl-toast i { color: #7ce0a6; font-size: 1.1rem; }
.toast-enter-active, .toast-leave-active { transition: opacity .25s, transform .25s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateX(-50%) translateY(12px); }

/* observações / notas */
.note-compose textarea { border-radius: 11px; resize: vertical; }
.note-item { display: flex; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--app-line); }
.note-item:first-of-type { border-top: none; }
.file-chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600;
  background: #f3f0fb; color: var(--identity-purple); padding: .2rem .55rem; border-radius: 50rem;
}
.file-chip .bi-x { font-size: .9rem; opacity: .7; }
.file-chip .bi-x:hover { opacity: 1; }

/* selo "tem observações" */
.has-notes { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; color: var(--identity-purple); }

/* ============ Assinatura / checkout ============ */
.plan-pick { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 16px; padding: 1.3rem; height: 100%; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.plan-pick:hover { border-color: #cbb6ec; transform: translateY(-2px); box-shadow: 0 16px 36px -22px rgba(31,24,48,.28); }
.plan-pick.current { border-color: var(--identity-purple); box-shadow: 0 18px 44px -26px rgba(var(--identity-purple-rgb),.55); }
.plan-pick .pp-name { font-weight: 800; font-size: 1.2rem; color: var(--app-ink); }
.plan-pick .pp-price { font-weight: 800; font-size: 1.9rem; color: var(--app-ink); letter-spacing: -.02em; line-height: 1; }
.plan-pick .pp-badge { position: absolute; top: -11px; right: 16px; background: var(--identity-purple); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 50rem; }
.plan-pick .pp-tag-current { position: absolute; top: -11px; left: 16px; background: #15824a; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 50rem; }

.mod-line { display: flex; align-items: center; gap: .85rem; padding: .85rem; border: 1px solid var(--app-line); border-radius: 13px; background: var(--app-card); margin-bottom: .65rem; }
.mod-line .mod-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: #ede7f9; color: var(--identity-purple); flex: none; }
.mod-line.included { background: #f4fbf7; border-color: #cdeadb; }
.mod-line.included .mod-ic { background: #e3f6eb; color: #15824a; }

.tag-included { font-size: .72rem; font-weight: 700; color: #15824a; background: #e3f6eb; padding: .2rem .55rem; border-radius: 50rem; display: inline-flex; align-items: center; gap: .3rem; }
.tag-active { font-size: .72rem; font-weight: 700; color: var(--identity-purple); background: #ede7f9; padding: .2rem .55rem; border-radius: 50rem; }

.seat-pack { border: 1px solid var(--app-line); border-radius: 13px; padding: 1rem; text-align: center; background: var(--app-card); height: 100%; }
.seat-pack .sp-seats { font-weight: 800; font-size: 1.5rem; color: var(--app-ink); }

.checkout-summary { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 18px; padding: 1.4rem; position: sticky; top: 84px; box-shadow: var(--app-shadow, 0 1px 2px rgba(31,24,48,.04), 0 6px 20px -12px rgba(31,24,48,.18)); }
.checkout-summary .cs-h { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--app-muted); margin-bottom: 1rem; }
.cs-line { display: flex; justify-content: space-between; align-items: baseline; padding: .4rem 0; font-size: .9rem; color: #4a4c55; }
.cs-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .7rem; border-top: 1px solid var(--app-line); margin-top: .4rem; }
.cs-total .v { font-weight: 800; font-size: 1.7rem; color: var(--app-ink); letter-spacing: -.02em; }
