/*!
 * ISP module - work cards (apps/isp/workcards.py): the list, a card's page, the page the work is
 * done from on a phone, and the page the client signs on (which stands by itself).
 */
.wcard-shows { display: flex; flex-wrap: wrap; gap: 6px; }
.wcard-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.wcard-filters select { width: auto; min-width: 150px; padding-left: 8px; }

.wcard-step { border-bottom: 1px solid #e9ecef; padding: 12px 0; }
.wcard-step:last-child { border-bottom: 0; }
.wcard-step-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wcard-step-title { font-weight: 600; font-size: 0.95rem; color: #344767; overflow-wrap: anywhere; }
.wcard-note { white-space: pre-line; overflow-wrap: anywhere; }
.wcard-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wcard-photo { position: relative; width: 96px; }
.wcard-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid #dee2e6; display: block; background: #f8f9fa; }
.wcard-photo .wcard-doc { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 8px; border: 1px solid #dee2e6;
  background: #f8f9fa; font-size: 0.75rem; padding: 6px; text-align: center; overflow-wrap: anywhere; overflow: hidden; }
.wcard-take-off { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(33, 37, 41, 0.75);
  color: #fff; font-size: 18px; line-height: 30px; padding: 0; cursor: pointer; }
.wcard-waiting { width: 96px; min-height: 96px; border-radius: 8px; border: 1px dashed #adb5bd; font-size: 0.72rem; padding: 6px; display: flex;
  flex-direction: column; justify-content: center; gap: 6px; text-align: center; overflow-wrap: anywhere; }
.wcard-waiting.is-wrong { border-color: #f44335; color: #b3261e; }
.wcard-waiting button { border: 0; border-radius: 6px; background: #344767; color: #fff; font-size: 0.75rem; padding: 6px; cursor: pointer; }
.wcard-waiting button.is-plain { background: #fff; color: #344767; border: 1px solid #adb5bd; }

/* on a phone: big targets, and Work done within reach */
.wcard-work { max-width: 720px; margin: 0 auto; }
.wcard-work .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wcard-work input[type="text"] { border: 1px solid #ced4da; border-radius: 8px; padding: 10px 12px; font-size: 16px; width: 100%; background: #fff; }
.wcard-work .wcard-tick { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: 1rem; cursor: pointer; margin: 0; }
.wcard-work .wcard-tick input { width: 26px; height: 26px; flex: none; }
.wcard-answer { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.wcard-answer .btn { flex: none; margin: 0; }
.wcard-add { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; cursor: pointer; }
/* out of sight, but still there for the keyboard and a screen reader */
.wcard-add input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.wcard-add:focus-within { outline: 2px solid #344767; outline-offset: 2px; }
.wcard-said { font-size: 0.8rem; min-height: 1.2em; margin: 6px 0 0; }
.wcard-said.is-wrong { color: #b3261e; font-weight: 600; }
.wcard-finish { position: sticky; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid #dee2e6; padding: 12px 16px 14px;
  border-radius: 0.75rem 0.75rem 0 0; box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08); }
.wcard-finish .wcard-said:empty { display: none; }
/* the theme fades a button in, so Work done looked shut when it had just opened */
.wcard-finish .btn { transition: none; }

/* the page the client signs on */
body.wcard-signing { margin: 0; background: #f0f2f5; color: #212529; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
.wcard-sheet { max-width: 680px; margin: 0 auto; background: #fff; padding: 22px 18px 40px; min-height: 100vh; box-sizing: border-box; }
.wcard-sheet h1 { font-size: 1.4rem; margin: 0 0 4px; }
.wcard-sheet h2 { font-size: 1.05rem; margin: 26px 0 8px; }
.wcard-sheet .wcard-soft { color: #5c6470; font-size: 0.92rem; margin: 0; overflow-wrap: anywhere; }
.wcard-sheet .wcard-line { border-bottom: 1px solid #e9ecef; padding: 10px 0; }
.wcard-sheet .wcard-line-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; overflow-wrap: anywhere; }
.wcard-sheet .wcard-yes { color: #2e7d32; flex: none; }
.wcard-sheet .wcard-no { color: #b3261e; flex: none; }
.wcard-sheet label.wcard-label { display: block; font-weight: 600; margin: 16px 0 6px; }
.wcard-sheet input[type="text"], .wcard-sheet select, .wcard-sheet textarea { width: 100%; box-sizing: border-box; font: inherit; border: 1px solid #adb5bd;
  border-radius: 8px; padding: 11px 12px; background: #fff; color: inherit; }
.wcard-sheet .wcard-wording { white-space: pre-line; border: 1px solid #dee2e6; border-radius: 8px; background: #f8f9fa; padding: 12px 14px; }
.wcard-sheet .wcard-accept { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; font-weight: 600; }
.wcard-sheet .wcard-accept input { width: 24px; height: 24px; flex: none; margin: 0; }
.wcard-sheet .wcard-problem { color: #b3261e; font-size: 0.92rem; margin: 6px 0 0; }
.wcard-sheet .wcard-notice { background: #fdecea; color: #b3261e; border-radius: 8px; padding: 12px 14px; margin: 16px 0 0; }
.wcard-sheet .wcard-notice:empty { display: none; }
.wcard-pad-box { position: relative; border: 1px dashed #6c757d; border-radius: 10px; background: #fff; }
.wcard-pad { display: block; width: 100%; height: 200px; border-radius: 10px; touch-action: none; cursor: crosshair; }
.wcard-pad-line { position: absolute; left: 18px; right: 18px; bottom: 42px; border-bottom: 1px solid #ced4da; pointer-events: none; }
.wcard-sheet .wcard-clear { background: none; border: 0; padding: 10px 0; font: inherit; color: #344767; text-decoration: underline; cursor: pointer; }
.wcard-sheet .wcard-send { display: block; width: 100%; border: 0; border-radius: 10px; background: #344767; color: #fff; font: inherit; font-weight: 700;
  padding: 15px; margin-top: 18px; cursor: pointer; }
.wcard-sheet .wcard-send[disabled] { opacity: 0.6; cursor: default; }
.wcard-thanks { text-align: center; padding-top: 18vh; }
