/* 14-feedback.css — Feedback: busy bar and busy buttons, the offline strip; a carried kanban card and
   empty columns.
   Part of the CRM stylesheet: the files load in number order (components/app_styles.html) and later
   rules win, exactly as when this was one file. */

/* Tasks board: the agency's «listing left without attention» period (admins) */

/* ---------- Feedback the same everywhere (js/app/feedback.js: Busy, showConnection, submit guard) ---------- */
/* A thin moving bar along the top while the page waits for the server. */
html.is-loading::before {
  content: ""; position: fixed; top: var(--tg-safe-top, 0px); left: 0; right: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%;
  background-repeat: no-repeat; animation: busy-bar 1s ease-in-out infinite;
}
@keyframes busy-bar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
/* A button whose request is on its way can't be pressed again, and shows that it is working. */
.btn.is-busy, button.htmx-request, form.htmx-request [type=submit], form.htmx-request button:not([type]) {
  pointer-events: none; opacity: .7; position: relative;
}
.btn.is-busy::after, form.htmx-request .btn-primary::after, form.htmx-request .btn-accent::after {
  content: ""; width: 14px; height: 14px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; display: inline-block; vertical-align: -2px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html.is-loading::before { animation: none; background: var(--accent); opacity: .6; }
  .btn.is-busy::after, form.htmx-request .btn-primary::after, form.htmx-request .btn-accent::after { animation-duration: 2s; }
}
/* No connection: a strip over the bottom of the screen until it comes back. */
.offline-strip {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--tg-safe-bottom, 0px)); z-index: 300; padding: 10px 14px;
  border-radius: var(--radius); background: var(--danger); color: #fff; font-size: 14px; font-weight: 600; text-align: center;
  box-shadow: var(--shadow);
}
@media (max-width: 820px) { .offline-strip { bottom: calc(76px + var(--tg-safe-bottom, 0px)); } } /* above the tab bar */

/* Phones: a card carried by a long press, and no copy/share menu over the cards. */
.kcard-ghost {
  position: fixed; z-index: 400; margin: 0; pointer-events: none; transform: rotate(2deg) scale(1.03);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .22); opacity: .95;
}
@media (pointer: coarse) { .kcard { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }

/* An empty column says so, instead of looking unfinished. */
.column-body:not(:has([data-card]))::before {
  content: attr(data-empty); display: block; padding: 18px 8px; border: 1px dashed var(--border); border-radius: 9px;
  color: var(--faint); font-size: 13.5px; text-align: center;
}

