/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */
/* Forms Creator */
.fc-app { display: flex; flex-direction: column; gap: 16px; }
.fc-app [hidden] { display: none !important; }
.fc-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fc-top select { flex: 1 1 200px; min-width: 0; min-height: 46px; padding: 0 12px; background: var(--surface); color: var(--ink); border: var(--input-border); border-radius: var(--btn-radius); font: inherit; font-weight: 600; }
.fc-top .btn { min-height: 46px; }
.fc-menu { position: relative; }
.fc-menu summary { list-style: none; cursor: pointer; }
.fc-menu summary::-webkit-details-marker { display: none; }
.fc-menu-list { position: absolute; z-index: 6; right: 0; top: calc(100% + 4px); min-width: 200px; display: flex; flex-direction: column; padding: 4px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--btn-radius); box-shadow: 0 10px 24px rgba(22, 35, 63, .18); }
.fc-menu-list button { min-height: 44px; padding: 0 12px; background: none; border: 0; border-radius: 6px; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.fc-menu-list button:hover { background: var(--line-soft); }
.fc-danger { color: #C0291A !important; }
.fc-h { margin: 0 0 4px; font-size: 22px; }
.fc-h3 { margin: 0 0 8px; font-size: 17px; }
.fc-sub { margin: 0 0 12px; color: var(--ink-2); }
.fc-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fc-tpl { display: flex; flex-direction: column; gap: 4px; min-height: 84px; padding: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fc-tpl:hover, .fc-tpl:focus-visible { border-color: var(--ink); }
.fc-tpl:first-child { border-style: dashed; }
.fc-tpl-name { font-weight: 700; }
.fc-tpl-line { font-size: 14px; color: var(--ink-2); }
.fc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 4px; }
.fc-tabs button { padding: 4px 6px; white-space: normal; line-height: 1.2; }
.fc-card { padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.fc-card + .fc-card, #fc-build > * + * { margin-top: 12px; }
.fc-app .field input, .fc-app .field textarea, .fc-dest-box > input, .fc-cond select { width: 100%; min-height: 46px; padding: 10px 12px; background: var(--surface); color: var(--ink); border: var(--input-border); border-radius: var(--btn-radius); font: inherit; font-size: 16px; }
.fc-app .field textarea { min-height: 0; resize: vertical; line-height: 1.45; }
.fc-settings .field:last-child { margin-bottom: 0; }
.fc-fields { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fc-field { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.fc-field.is-open { border-color: var(--ink); }
.fc-field.is-section { background: var(--bg); }
.fc-field.is-drag { opacity: .5; }
.fc-fhead { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; }
.fc-grip { flex: none; width: 18px; align-self: stretch; cursor: grab; background: radial-gradient(circle, var(--ink-2) 1.2px, transparent 1.6px) center / 6px 6px; opacity: .5; }
.fc-ftitle { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 8px 6px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fc-fname { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-ftype { font-size: 13px; color: var(--ink-2); }
.fc-ftools { display: flex; gap: 2px; flex: none; }
.fc-icon { width: 40px; height: 40px; background: none; border: 0; border-radius: 8px; color: var(--ink); font-size: 18px; cursor: pointer; }
.fc-icon:hover:not(:disabled) { background: var(--line-soft); }
.fc-icon:disabled { opacity: .25; cursor: default; }
.fc-edit { display: flex; flex-direction: column; gap: 2px; padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.fc-edit .field { margin: 10px 0 0; }
.fc-erow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.fc-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.fc-toggle input { width: 20px; height: 20px; }
.fc-cond { margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 10px; }
.fc-cond-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.fc-cond-line select { flex: 1 1 160px; width: auto; }
.fc-eacts { display: flex; gap: 4px; margin-left: auto; }
.fc-small { min-height: 40px; padding: 0 12px; font-size: 15px; }
.fc-empty { margin: 0; padding: 18px; text-align: center; color: var(--ink-2); border: 2px dashed var(--line); border-radius: 12px; }
.fc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.fc-type { min-height: 44px; padding: 6px 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.fc-type::before { content: "+ "; color: var(--ink-2); }
.fc-type:hover:not(:disabled) { border-color: var(--ink); }
.fc-type:disabled { opacity: .4; cursor: not-allowed; }
.fc-limit, .fc-plan { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.fc-more summary { cursor: pointer; font-weight: 700; }
.fc-more .field { margin: 12px 0 0; }
.fc-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.fc-color { width: 40px; height: 40px; border: 3px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.fc-color[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); }
.fc-stage { padding: 16px 0; }
.fc-answers { width: 100%; border-collapse: collapse; font-size: 15px; }
.fc-answers th, .fc-answers td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.fc-answers th { width: 40%; color: var(--ink-2); font-weight: 600; }
.fc-dest { display: grid; gap: 8px; }
.fc-dest label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.fc-dest label:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.fc-dest input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.fc-dest small { display: block; color: var(--ink-2); font-size: 14px; }
.fc-dest-box { margin-top: 14px; }
.fc-steps { margin: 0 0 10px; padding-left: 22px; line-height: 1.5; }
.fc-steps li { margin-bottom: 8px; }
.fc-steps .btn { margin-top: 4px; }
.fc-code { max-width: 100%; max-height: 220px; overflow: auto; margin: 10px 0 0; padding: 12px; background: var(--bg); border-radius: 8px; font-size: 13px; white-space: pre; }
.fc-outs { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 700px) { .fc-outs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fc-out { min-width: 0; display: flex; flex-direction: column; padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.fc-out p { margin: 0 0 12px; color: var(--ink-2); flex: 1; }
.fc-out .action-row { margin: 0; }
#fc-ok:empty, #fc-dest-err:empty { display: none; }
@media (max-width: 599px) {
  .fc-top .btn { flex: 1; }
  .fc-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-tpl { min-height: 76px; padding: 12px; }
  .fc-tabs button { font-size: 14px; }
}

/* The paper version: only shown while printing */
.fc-print-area { display: none; }
@media print {
  body.fc-printing > *:not(main), body.fc-printing main > :not(.app-layout), body.fc-printing .app-layout > :not(.app-col), body.fc-printing .app-col > :not(#app), body.fc-printing #app > :not(.fc-print-area) { display: none !important; }
  body.fc-printing, body.fc-printing main, body.fc-printing .app-col, body.fc-printing #app { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: #fff !important; }
  body.fc-printing .fc-print-area { display: block; color: #000; font: 12pt/1.45 Georgia, serif; }
  .fc-print-area h1 { margin: 0 0 6pt; font-size: 20pt; }
  .fc-print-area h2 { margin: 18pt 0 4pt; font-size: 14pt; border-top: 1pt solid #000; padding-top: 8pt; }
  .fc-print-area .fp-intro { margin: 0 0 14pt; }
  .fc-print-area .fp-item { margin: 0 0 14pt; break-inside: avoid; }
  .fc-print-area .fp-q { margin: 0 0 4pt; font-weight: 700; }
  .fc-print-area .fp-help { margin: 0 0 4pt; font-size: 10pt; color: #444; }
  .fc-print-area .fp-line { height: 22pt; border-bottom: 1pt solid #888; }
  .fc-print-area .fp-short { height: auto; border: 0; margin: 6pt 0 0; letter-spacing: 1pt; }
  .fc-print-area .fp-opts { display: flex; flex-wrap: wrap; gap: 6pt 18pt; margin: 4pt 0 0; }
  .fc-print-area .fp-box { display: inline-block; width: 10pt; height: 10pt; border: 1pt solid #000; vertical-align: -1pt; }
  .fc-print-area .fp-foot { margin-top: 18pt; font-size: 10pt; }
}
.fc-tabs { display: grid; align-self: stretch; border-radius: 14px; }
.fc-tabs button { border-radius: 10px; }
.fc-tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.fc-fields { grid-template-columns: minmax(0, 1fr); } .fc-field { min-width: 0; }
.fc-af { margin-top: 14px; font-weight: 600; line-height: 1.35; align-items: flex-start; } .fc-af input { flex: none; margin-top: 1px; } .fc-auto { width: 100%; min-height: 46px; padding: 0 12px; background: var(--surface); color: var(--ink); border: var(--input-border); border-radius: var(--btn-radius); font: inherit; font-size: 16px; }

/* Saving, test sends and the email connection */
.fc-saved { margin: -4px 0 0; font-size: 13px; color: var(--ink-3); }
.fc-saved:empty { display: none; }
.fc-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.fc-note:empty { display: none; }
.fc-coderow { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.fc-coderow input { width: 110px; min-height: 40px; padding: 0 10px; border: var(--input-border); border-radius: 3px; font: 600 16px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; background: var(--surface); color: var(--ink); }
.fc-connected { margin: 8px 0; padding: 8px 12px; border-radius: 3px; background: #E7F5EE; border: 1px solid #A9DCC3; color: #0B5A3F; }
.fc-connected p { margin: 0 0 6px; }
.fc-dest-box .fc-toggle { margin-top: 8px; font-size: 14px; }
