/* asMade Contracts - everything is scoped under .ct-app / .ct-modal / .ct-toast */
.ct-app, .ct-modal { --ct-ink:#0f172a; --ct-sub:#475569; --ct-line:#e2e8f0; --ct-blue:#1d4ed8; --ct-in:#0f766e; --ct-out:#7c3aed; --ct-bad:#b91c1c; --ct-warn:#a14a07; --ct-ok:#15803d; color:var(--ct-ink); font-family:Rubik,Arial,sans-serif; }
.ct-app { width:100%; margin:0 auto; text-align:start; }
.ct-app *, .ct-modal * { box-sizing:border-box; }
.ct-app h1, .ct-app h2, .ct-app h3, .ct-app p, .ct-modal h3 { margin:0; }
.ct-app ul { list-style:none; margin:0; padding:0; }
.ct-app a { color:inherit; text-decoration:none; }

.ct-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:42px; padding:0 18px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; color:var(--ct-ink) !important; font:600 14.5px Rubik,Arial,sans-serif; cursor:pointer; }
.ct-btn:hover { background:#f8fafc; border-color:#94a3b8; }
.ct-btn:disabled { opacity:.55; cursor:default; }
.ct-btn.ct-primary { background:var(--ct-blue); border-color:var(--ct-blue); color:#fff !important; }
.ct-btn.ct-primary:hover { background:#1e40af; }
.ct-btn.ct-danger { background:var(--ct-bad); border-color:var(--ct-bad); color:#fff !important; }
.ct-btn.ct-ok { border-color:var(--ct-ok); color:var(--ct-ok) !important; }
.ct-btn.ct-quiet { border-color:transparent; background:transparent; color:var(--ct-sub) !important; }
.ct-btn.ct-sm { min-height:36px; padding:0 12px; font-size:13.5px; }
.ct-app :focus-visible, .ct-modal :focus-visible { outline:3px solid #93c5fd; outline-offset:1px; }

/* Service header: contracts has its own colour, wine red with a gold scales mark (law) */
.ct-head { display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; margin:4px 0 18px; padding:22px 24px; border-radius:24px; background:linear-gradient(135deg,#8c2a45 0%,#4b1023 100%); color:#fff; box-shadow:0 16px 38px rgba(74,16,34,.22); }
.ct-head::before { content:""; box-sizing:border-box; flex:0 0 54px; height:54px; border-radius:16px; border:1px solid rgba(233,199,125,.45); background:rgba(255,255,255,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9c77d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M7 21h10M4 7h4l4-2 4 2h4M6 7l-3 7c.6 1.2 1.7 2 3 2s2.4-.8 3-2L6 7zM18 7l-3 7c.6 1.2 1.7 2 3 2s2.4-.8 3-2l-3-7z'/%3E%3C/svg%3E") center / 32px 32px no-repeat; }
.ct-head > div:first-of-type { flex:1 1 260px; min-width:0; }
.ct-head h1 { color:#fff; font-size:26px; line-height:1.25; margin:4px 0 2px; overflow-wrap:anywhere; }
.ct-head p { color:rgba(255,255,255,.82); font-size:14.5px; line-height:1.6; }
.ct-actions { display:flex; gap:8px; }
.ct-actions > span { display:flex; flex-wrap:wrap; gap:8px; }
.ct-head .ct-btn { border-color:transparent; border-radius:999px; background:#fff; color:#4b1023 !important; }
.ct-head .ct-btn:hover { background:#fbeef1; border-color:transparent; }
.ct-head .ct-btn.ct-primary { background:#e9c77d; color:#3d0d1c !important; }
.ct-head .ct-btn.ct-primary:hover { background:#f2d795; }
.ct-head .ct-btn.ct-quiet { background:transparent; border-color:rgba(255,255,255,.4); color:#fff !important; }
.ct-head .ct-btn.ct-quiet:hover { background:rgba(255,255,255,.12); }
.ct-head :focus-visible { outline-color:#e9c77d; }
.ct-back { display:inline-block; margin-bottom:10px; color:var(--ct-blue) !important; font-weight:600; font-size:14px; }

.ct-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.ct-kpi { background:#fff; border:1px solid var(--ct-line); border-radius:12px; padding:13px 16px; display:flex; flex-direction:column; gap:3px; min-width:0; }
.ct-kpi span { color:var(--ct-sub); font-size:13px; }
.ct-kpi b { font-size:22px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ct-kpi small { color:#64748b; font-size:12px; min-height:15px; }
.ct-kpi.in b { color:var(--ct-in); } .ct-kpi.out b { color:var(--ct-out); }
.ct-kpi.bad { background:#fef2f2; border-color:#fecaca; } .ct-kpi.bad b { color:var(--ct-bad); }
.ct-kpi.warn { background:#fff7ed; border-color:#fed7aa; } .ct-kpi.warn b { color:var(--ct-warn); }

.ct-bar { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.ct-app .ct-bar select, .ct-app .ct-bar input, .ct-app .ct-upload select { height:42px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; padding:0 12px; margin:0; font:14.5px Rubik,Arial,sans-serif; color:var(--ct-ink); }
.ct-app .ct-bar input { flex:1; min-width:200px; }
.ct-seg { display:flex; border:1px solid #cbd5e1; border-radius:9px; overflow:hidden; background:#fff; }
.ct-seg button { border:0; background:transparent; padding:0 16px; min-height:40px; font:600 14px Rubik,Arial,sans-serif; color:var(--ct-sub); cursor:pointer; }
.ct-seg button[aria-pressed="true"] { background:var(--ct-blue); color:#fff; }

.ct-cols { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:16px; align-items:start; }
.ct-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:12px; }
.ct-list .ct-empty { grid-column:1 / -1; }
.ct-card { display:flex; flex-direction:column; gap:8px; background:#fff; border:1px solid var(--ct-line); border-top:5px solid var(--ct-in); border-radius:12px; padding:14px 16px; min-width:0; transition:box-shadow .15s, border-color .15s; }
.ct-card.expense { border-top-color:var(--ct-out); }
.ct-card:hover { box-shadow:0 8px 22px rgba(15,23,42,.10); }
.ct-card.off { opacity:.65; }
.ct-row1 { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.ct-row1 h3 { font-size:16.5px; overflow-wrap:anywhere; }
.ct-row1 b { font-variant-numeric:tabular-nums; white-space:nowrap; }
.ct-row2 { display:flex; flex-wrap:wrap; gap:6px; }
.ct-card p { color:var(--ct-sub); font-size:13.5px; overflow-wrap:anywhere; }
.ct-tag, .ct-st, .ct-chip { display:inline-block; border-radius:999px; padding:3px 10px; font-size:12px; font-weight:600; white-space:nowrap; }
.ct-tag { background:#ccfbf1; color:#115e59; } .ct-tag.expense { background:#ede9fe; color:#5b21b6; }
.ct-st { background:#e2e8f0; color:#334155; }
.ct-st.st-signed { background:#dbeafe; color:#1e40af; } .ct-st.st-active { background:#dcfce7; color:#166534; } .ct-st.st-cancelled { background:#fee2e2; color:#991b1b; }
.ct-chips { display:flex; flex-wrap:wrap; gap:6px; }
.ct-chip { background:#f1f5f9; color:#334155; font-weight:500; white-space:normal; }
.ct-chip.bad, .ct-chip.r-high { background:var(--ct-bad); color:#fff; }
.ct-chip.warn, .ct-chip.r-medium { background:#ffedd5; color:#7c2d12; }
.ct-chip.r-low { background:#fef9c3; color:#713f12; }

.ct-side { background:#fff; border:1px solid var(--ct-line); border-radius:12px; padding:14px; }
.ct-side h2 { font-size:16px; margin-bottom:10px; }
.ct-side li { border:1px solid var(--ct-line); border-inline-start:5px solid #94a3b8; border-radius:8px; margin-bottom:8px; }
.ct-side li a { display:flex; flex-direction:column; gap:2px; padding:9px 11px; }
.ct-side li b { font-size:14px; overflow-wrap:anywhere; } .ct-side li span { font-size:13px; font-weight:600; } .ct-side li small { color:var(--ct-sub); font-size:12px; }
.ct-side li.ct-late { border-inline-start-color:var(--ct-bad); background:#fef2f2; } .ct-side li.ct-late span { color:var(--ct-bad); }
.ct-side li.ct-soon { border-inline-start-color:#e08600; background:#fff7ed; } .ct-side li.ct-soon span { color:var(--ct-warn); }

.ct-tabs { display:flex; gap:4px; box-shadow:inset 0 -2px 0 var(--ct-line); margin-bottom:14px; overflow-x:auto; overflow-y:hidden; }
.ct-tabs a { padding:10px 16px; font-weight:600; color:var(--ct-sub) !important; border-bottom:3px solid transparent; white-space:nowrap; }
.ct-tabs a[aria-selected="true"] { color:var(--ct-blue) !important; border-bottom-color:var(--ct-blue); }
.ct-phead { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; margin-bottom:12px; }
.ct-phead p { display:flex; flex-direction:column; gap:2px; flex:1; min-width:220px; }
.ct-muted { color:var(--ct-sub); font-size:13px; }

.ct-terms li, .ct-dates li { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:flex-start; background:#fff; border:1px solid var(--ct-line); border-radius:10px; padding:13px 15px; margin-bottom:9px; }
.ct-term.missing { border-style:dashed; background:#f8fafc; }
.ct-term.missing h3 { color:var(--ct-sub); }
.ct-term.risk-high { border-color:#fca5a5; background:#fef2f2; }
.ct-term.risk-medium { border-color:#fdba74; }
.ct-tmain { flex:1; min-width:220px; display:flex; flex-direction:column; gap:5px; }
.ct-tmain h3 { font-size:15.5px; }
.ct-tmain p, .ct-notes { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14.5px; line-height:1.55; }
.ct-tmain small { color:#64748b; font-size:12.5px; }
.ct-app .ct-tmain blockquote { margin:0; padding:6px 12px; border-inline-start:3px solid #cbd5e1; color:var(--ct-sub); font-size:13.5px; white-space:pre-wrap; overflow-wrap:anywhere; }
.ct-tact { display:flex; flex-wrap:wrap; gap:6px; }

.ct-day { display:flex; flex-direction:column; min-width:106px; }
.ct-day b { font-size:16px; font-variant-numeric:tabular-nums; } .ct-day span { font-size:12.5px; color:var(--ct-sub); font-weight:600; }
.ct-dates li { border-inline-start-width:5px; border-inline-start-color:#94a3b8; }
.ct-dates li.ct-late { border-inline-start-color:var(--ct-bad); background:#fef2f2; } .ct-dates li.ct-late .ct-day span { color:var(--ct-bad); }
.ct-dates li.ct-soon { border-inline-start-color:#e08600; background:#fff7ed; } .ct-dates li.ct-soon .ct-day span { color:var(--ct-warn); }
.ct-dates li.done { border-inline-start-color:var(--ct-ok); opacity:.75; }

.ct-upload { display:flex; flex-wrap:wrap; gap:10px; align-items:center; background:#fff; border:1px solid var(--ct-line); border-radius:10px; padding:12px; margin:0 0 8px; }
.ct-app .ct-upload input[type=file] { flex:1; min-width:200px; margin:0; font-size:14px; }
.ct-files { margin-top:12px !important; }
.ct-files li { display:flex; gap:10px; align-items:center; justify-content:space-between; background:#fff; border:1px solid var(--ct-line); border-radius:10px; padding:10px 14px; margin-bottom:8px; }
.ct-files a { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.ct-files b { color:var(--ct-blue); overflow-wrap:anywhere; } .ct-files small { color:#64748b; }

.ct-dl { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; margin:0 0 16px; }
.ct-dl div { background:#fff; border:1px solid var(--ct-line); border-radius:10px; padding:10px 14px; min-width:0; }
.ct-dl dt { color:var(--ct-sub); font-size:12.5px; } .ct-dl dd { margin:3px 0 0; font-weight:600; overflow-wrap:anywhere; }

.ct-chip.prop { background:#1d4ed8; color:#fff; }
.ct-chip.flag { background:#fef3c7; color:#78350f; border:1px solid #f59e0b; }
.ct-terms li.proposed, .ct-dates li.proposed { border-color:#93c5fd; background:#f0f6ff; border-inline-start:5px solid #1d4ed8; }
.ct-terms li.aside { opacity:.75; }
/* the further items of one clause, under the first of them */
.ct-terms li.ct-clause { display:block; background:none; border:0; padding:0; margin:-3px 0 9px; }
.ct-clause > details > summary { cursor:pointer; font-size:13px; font-weight:600; color:#1d4ed8; padding:4px 14px; }
.ct-clause .ct-terms { margin:4px 0 0; padding-inline-start:16px; border-inline-start:3px solid #cbd5e1; }
.ct-also { color:#1d4ed8; }
.ct-aside summary { cursor:pointer; font-weight:600; color:var(--ct-sub); padding:10px 0; }
.ct-app a.ct-page { color:var(--ct-blue); font-weight:600; text-decoration:underline; }
.ct-sub { font-size:15.5px; margin:4px 0 10px !important; }
.ct-app .ct-files li { flex-wrap:wrap; }
.ct-ai { flex-basis:100%; display:flex; flex-direction:column; gap:6px; font-size:13.5px; color:var(--ct-sub); }
.ct-ai:empty { display:none; }
.ct-ai p { margin:0; } .ct-ai .bad { color:var(--ct-bad); font-weight:600; } .ct-ai .warn { color:var(--ct-warn); }
.ct-ai .busy::before { content:""; display:inline-block; width:12px; height:12px; margin-inline-end:8px; border:2px solid #93c5fd; border-top-color:var(--ct-blue); border-radius:50%; animation:ctSpin 1s linear infinite; vertical-align:-2px; }
@keyframes ctSpin { to { transform:rotate(360deg); } }
.ct-app .ct-btn[hidden] { display:none; }
.ct-explain { margin:14px 0 0; font-size:14px; line-height:1.55; color:var(--ct-sub); }
.ct-check { display:flex; gap:10px; align-items:flex-start; grid-column:1 / -1; font-size:14.5px; font-weight:600; cursor:pointer; margin:0; }
.ct-modal .ct-check input { width:20px; height:20px; margin:2px 0 0; flex:none; }

.ct-empty { background:#fff; border:1px dashed #cbd5e1; border-radius:12px; padding:30px 18px; text-align:center; color:var(--ct-sub); }
.ct-empty p { margin-bottom:12px; }
.ct-app .ct-foot { margin-top:18px; color:#64748b; font-size:12.5px; text-align:center; }

.ct-modal { position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:100000; display:flex; align-items:center; justify-content:center; padding:14px; }
.ct-dialog { background:#fff; border-radius:14px; width:100%; max-width:640px; max-height:92vh; display:flex; flex-direction:column; margin:0; text-align:start; }
.ct-dhead { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:15px 18px; border-bottom:1px solid var(--ct-line); }
.ct-dhead h3 { font-size:18px; }
.ct-x { border:0; background:transparent; font-size:26px; line-height:1; cursor:pointer; color:var(--ct-sub); width:36px; height:36px; }
.ct-dbody { padding:0 18px; overflow-y:auto; }
.ct-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px 0; }
.ct-f { display:flex; flex-direction:column; gap:5px; min-width:0; }
.ct-f.wide { grid-column:1 / -1; }
.ct-f label { font-size:13px; font-weight:600; color:var(--ct-sub); margin:0; }
.ct-modal .ct-f input, .ct-modal .ct-f select, .ct-modal .ct-f textarea { width:100%; min-height:42px; margin:0; border:1px solid #cbd5e1; border-radius:9px; padding:8px 11px; font:16px Rubik,Arial,sans-serif; background:#fff; color:var(--ct-ink); text-align:start; }
.ct-modal .ct-f textarea { resize:vertical; }
.ct-req { color:var(--ct-bad); }
.ct-derr { color:var(--ct-bad); font-weight:600; font-size:14px; padding:0 18px; }
.ct-derr:not(:empty) { padding-top:10px; }
.ct-dfoot { display:flex; gap:10px; padding:14px 18px; border-top:1px solid var(--ct-line); }

.ct-toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:#0f172a; color:#fff; padding:11px 22px; border-radius:999px; font:600 14px Rubik,Arial,sans-serif; z-index:100001; opacity:0; pointer-events:none; transition:opacity .2s; max-width:92vw; }
.ct-toast.on { opacity:1; } .ct-toast.bad { background:#b91c1c; }

@media screen and (max-width:900px) {
  .ct-cols { grid-template-columns:minmax(0,1fr); }
  .ct-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width:600px) {
  .ct-head { padding:14px; border-radius:18px; gap:10px; margin-bottom:12px; }
  .ct-head::before { flex-basis:34px; height:34px; border-radius:11px; background-size:21px 21px; }
  .ct-head > div:first-of-type { flex-basis:calc(100% - 44px); }
  .ct-head h1 { font-size:19px; margin:0 0 2px; }
  .ct-head p { font-size:13px; line-height:1.45; }
  .ct-head > .ct-btn { width:100%; }
  .ct-head .ct-btn { min-height:40px; padding:0 10px; font-size:13.5px; }
  .ct-list { grid-template-columns:minmax(0,1fr); }
  .ct-kpi b { font-size:18px; }
  .ct-kpis { gap:8px; margin-bottom:12px; }
  .ct-kpi { padding:10px 12px; gap:1px; }
  .ct-kpi small:empty { display:none; }
  .ct-app .ct-bar select, .ct-app .ct-bar input { width:100%; font-size:16px; }
  .ct-seg { width:100%; } .ct-seg button { flex:1; }
  .ct-grid { grid-template-columns:minmax(0,1fr); }
  .ct-modal { padding:0; align-items:flex-end; }
  .ct-dialog { max-height:94vh; border-radius:14px 14px 0 0; }
  .ct-tact { width:100%; }
  .ct-tabs a { flex:1 0 auto; text-align:center; padding:10px 8px; font-size:13.5px; }
}
@media (prefers-reduced-motion:reduce) { .ct-card, .ct-toast { transition:none; } .ct-ai .busy::before { animation:none; } }

/* terms by topic */
.ct-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 12px; }
.ct-seg button:disabled { opacity:.45; cursor:default; }
.ct-topic { border:1px solid #e2e8f0; border-radius:12px; background:#fff; margin-bottom:8px; overflow:hidden; }
.ct-topic.high { border-inline-start:4px solid #dc2626; }
.ct-thead { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:6px 10px; }
.ct-app button.ct-ttoggle { display:flex; flex-wrap:wrap; gap:8px; align-items:center; flex:1 1 240px; min-width:0; min-height:40px; margin:0; padding:4px 2px; border:0; background:transparent; color:#0f172a; font:inherit; text-align:start; cursor:pointer; width:auto; }
.ct-ttoggle b { font-size:15px; }
.ct-arrow { width:0; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:7px solid #64748b; transition:transform .15s ease; }
.ct-app[dir="rtl"] .ct-arrow { transform:scaleX(-1); }
.ct-topic.open .ct-arrow, .ct-app[dir="rtl"] .ct-topic.open .ct-arrow { transform:rotate(90deg); }
.ct-topic > .ct-terms { border-top:1px solid #eef2f7; padding:10px; margin:0; background:#f8fafc; }
.ct-missing { list-style:none; margin:0 0 14px; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.ct-missing li { display:flex; gap:10px; align-items:center; border:1px dashed #cbd5e1; border-radius:10px; padding:6px 10px; background:#fff; color:#475569; }
@media screen and (max-width:600px) { .ct-thead > .ct-btn { width:100%; } .ct-missing li { width:100%; justify-content:space-between; } }
@media (prefers-reduced-motion: reduce) { .ct-arrow { transition:none; } }

/* files from Plans, versions and suggestions */
.ct-sug { margin: 0 0 14px; border: 1px solid #c7d8f5; border-radius: 12px; background: #f3f7ff; }
.ct-sug summary { padding: 12px 16px; cursor: pointer; font-weight: 600; color: #1e3a8a; }
.ct-sug ul { list-style: none; margin: 0; padding: 0 16px 8px; }
.ct-sug li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #dde7fb; }
.ct-sug li b { display: block; overflow-wrap: anywhere; }
.ct-sug li small { color: #526175; }
.ct-newer { display: flex; flex-basis: 100%; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 6px 0; padding: 10px 14px; border: 1px solid #f4d38a; border-radius: 10px; background: #fff8e6; }
.ct-openwhy { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: #92400e; }
.ct-picklabel { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.ct-pick { max-height: 300px; overflow-y: auto; border: 1px solid #d9e1ec; border-radius: 10px; text-align: start; }
.ct-modal .ct-f .ct-pickrow { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-bottom: 1px solid #eef2f7; cursor: pointer; }
.ct-modal .ct-f .ct-pickrow.off { opacity: .6; cursor: default; }
.ct-modal .ct-f .ct-pickrow input { flex: none; width: 18px; min-width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; box-shadow: none; }
.ct-modal .ct-pickrow > span { flex: 1; min-width: 0; font-weight: 400; }
.ct-modal .ct-pickrow b { display: block; overflow-wrap: anywhere; font-size: 14px; }
.ct-modal .ct-pickrow small { color: #526175; }
.ct-dialog.ct-wide { max-width: 860px; width: calc(100vw - 32px); }
.ct-diff { list-style: none; margin: 0 0 12px; padding: 0; }
.ct-diff li { margin-bottom: 8px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; }
.ct-diff li.add { border-color: #a7e3bd; background: #f2fbf5; }
.ct-diff li.del { border-color: #f3b9b9; background: #fdf3f3; }
.ct-diff li.chg { border-color: #f4d38a; background: #fffbee; }
.ct-diff h4 { margin: 0 0 4px; font-size: 15px; }
.ct-diff p { margin: 4px 0; }
.ct-diff blockquote { margin: 4px 0; padding: 4px 10px; border-inline-start: 3px solid #cbd5e1; font-size: 13px; color: #475569; }
.ct-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 6px; }
.ct-dialog.ct-wide .ct-cancel { display: none; }

/* the quote of a clause, folded */
.ct-quote > summary { display: inline-block; cursor: pointer; font-size: 13px; color: #1d4ed8; padding: 4px 0; }
.ct-quote blockquote { margin-top: 4px; }
.ct-chip.good { background: #dcfce7; color: #166534; }
/* the price-list lines of a file, as one table */
.ct-price { margin: 0 0 14px; padding: 14px; border: 1px solid #d9e1ec; border-radius: 14px; background: #fff; text-align: start; }
.ct-phead2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ct-price h3 { margin: 0 0 4px; font-size: 17px; }
.ct-price p { margin: 0 0 6px; }
.ct-pcols, .ct-pline > summary { display: grid; grid-template-columns: 76px minmax(0, 1fr) 100px; gap: 10px; align-items: start; }
.ct-pcols { padding: 6px 4px; border-bottom: 2px solid #e2e8f0; font-size: 12.5px; font-weight: 600; color: #526175; }
.ct-pline { border-bottom: 1px solid #eef2f7; }
.ct-pline > summary { padding: 10px 4px; cursor: pointer; list-style: none; font-size: 14px; }
.ct-pline > summary::-webkit-details-marker { display: none; }
.ct-pline > summary:hover { background: #f8fafc; }
.ct-pline .no { direction: ltr; justify-self: start; font-size: 13px; color: #526175; font-variant-numeric: tabular-nums; }
.ct-pline .desc { overflow-wrap: anywhere; }
.ct-pline summary b, .ct-pcols span:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.ct-pline.mark > summary { background: #fff8e6; }
.ct-pline[open] > summary { background: #eef4ff; }
.ct-pline > ul { margin: 0 0 10px; }
@media (max-width: 520px) {
  .ct-price { padding: 10px; }
  .ct-pcols { display: none; }
  .ct-pline > summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'desc sum' 'no sum'; row-gap: 2px; }
  .ct-pline .desc { grid-area: desc; }
  .ct-pline .no { grid-area: no; }
  .ct-pline summary b { grid-area: sum; }
}

/* contractor and budget links of a subcontractor contract */
.ct-linkbox { margin: 0 0 14px; padding: 14px; border: 1px solid #d9e1ec; border-radius: 14px; background: #fff; text-align: start; }
.ct-app .ct-linkbox h3 { margin: 0 0 10px; font-size: 17px; }
.ct-linkrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; }
.ct-app .ct-linkrow label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ct-app .ct-linkrow select { flex: 1 1 260px; min-width: 0; max-width: 100%; height: 42px; margin: 0; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: var(--ct-ink); font: 16px Rubik, Arial, sans-serif; }
.ct-app ul.ct-find { margin: 0 0 12px; }
.ct-find li { margin: 0 0 6px; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; font-size: 14px; overflow-wrap: anywhere; }
.ct-find li.good { border-color: #a7e3bd; background: #f2fbf5; color: #14532d; }
.ct-find li.warn { border-color: #f4d38a; background: #fffbee; color: #78350f; }
.ct-find li.bad { border-color: #f3b9b9; background: #fdf3f3; color: #7f1d1d; font-weight: 600; }
.ct-linkbox .ct-dl { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 6px; }
.ct-linkbox p { margin: 0 0 10px; }
.ct-tabs a .ct-chip { padding: 1px 7px; }
.ct-sug .ct-gapmore { padding: 0 16px 10px; }
@media (max-width: 600px) { .ct-app .ct-linkrow select, .ct-linkrow .ct-btn { flex-basis: 100%; width: 100%; } .ct-sug li .ct-tact { width: auto; } }

/* unsigned contracts and the company's requirements */
.ct-app .ct-unsigned { margin: 0 0 14px; padding: 11px 14px; border: 1px solid #f4d38a; border-radius: 10px; background: #fffbee; color: #78350f; font-weight: 600; font-size: 14.5px; }
.ct-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.ct-quick span { color: var(--ct-sub); font-size: 14px; font-weight: 600; }
.ct-terms li.ct-reqrow.st-missing { border-inline-start: 5px solid #dc2626; }
.ct-terms li.ct-reqrow.st-pending { border-inline-start: 5px solid #e08600; }
.ct-reqrow .ct-tact { align-items: center; }
.ct-app .ct-reqrow select { height: 36px; max-width: 280px; min-width: 0; margin: 0; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: var(--ct-ink); font: 14px Rubik, Arial, sans-serif; }
.ct-modal .ct-f[hidden] { display: none; }
@media (max-width: 600px) { .ct-app .ct-reqrow select { flex-basis: 100%; max-width: 100%; height: 42px; font-size: 16px; } .ct-head > .ct-actions { width: 100%; flex-wrap: wrap; } .ct-head > .ct-actions > .ct-btn, .ct-head > .ct-actions > span > .ct-btn { flex: 1 1 0; min-width: 96px; } .ct-head > .ct-actions > .ct-primary { flex-basis: 100%; } .ct-head > .ct-actions > span { flex-basis: 100%; } .ct-head > .ct-actions span:empty { display: none; } }

/* index linkage */
.ct-idx { margin: 0 0 14px; border: 1px solid #d9e1ec; border-radius: 12px; background: #fff; text-align: start; }
.ct-idx.check { border-color: #f4d38a; background: #fffbee; }
.ct-idx > summary { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; cursor: pointer; }
.ct-idx > summary b { font-size: 15.5px; }
.ct-idx > summary span { color: var(--ct-sub); font-size: 14.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ct-idxbody { padding: 0 16px 12px; border-top: 1px solid #eef2f7; }
.ct-idxbody .ct-dl { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 12px 0; }
.ct-app .ct-idxbody p { margin: 0 0 8px; font-size: 14px; }
.ct-app .ct-idxbody p.ct-muted { font-size: 12.5px; }
.ct-app .ct-idxbody p.ct-idxwarn { color: #78350f; font-weight: 600; }
.ct-idxform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0 8px; }
.ct-idxform .ct-f { flex: 1 1 220px; }
.ct-app .ct-idxform select, .ct-app .ct-idxform input { width: 100%; height: 42px; margin: 0; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: var(--ct-ink); font: 16px Rubik, Arial, sans-serif; }
@media (max-width: 600px) { .ct-idxform .ct-f, .ct-idxform .ct-btn { flex-basis: 100%; width: 100%; } }

/* item quantities */
.ct-pricing { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d9e1ec; border-radius: 12px; background: #fff; }
.ct-pricing > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.ct-pricing .ct-linkrow { margin: 0; flex: 0 1 420px; }
.ct-modal .ct-f .ct-f { margin: 0; }
@media (max-width: 600px) { .ct-pricing .ct-linkrow { flex-basis: 100%; } }

.ct-b2bHead { margin-bottom:10px; } .ct-b2bHead h3 { font-size:16.5px; } .ct-b2bHead p { margin:4px 0 0; font-size:14.5px; line-height:1.55; }
.ct-b2bRun label { font-weight:600; font-size:14px; } .ct-app .ct-b2bRun select { flex:1; min-width:220px; max-width:100%; margin:0; }
.ct-b2bSum { font-weight:600; margin:12px 0 8px !important; } .ct-b2bWarn { color:var(--ct-warn); font-weight:600; margin:10px 0 !important; }
.ct-b2bSides { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:4px; }
.ct-b2bSide { display:flex; flex-direction:column; gap:5px; min-width:0; background:#fff; border:1px solid var(--ct-line); border-radius:8px; padding:8px 10px; } .ct-b2bSide > b { font-size:13px; }
.ct-b2bNone { color:var(--ct-bad); font-weight:600; font-size:13.5px !important; }
@media screen and (max-width:600px) { .ct-b2bSides { grid-template-columns:minmax(0,1fr); } .ct-app .ct-b2bRun select, .ct-b2bRun .ct-btn { flex-basis:100%; width:100%; font-size:16px; } }

/* the claim file */
.ct-clintro { margin-bottom:14px; } .ct-clintro h2 { font-size:22px; margin-bottom:4px !important; }
.ct-clbox { background:#fff; border:1px solid var(--ct-line); border-radius:12px; padding:14px 16px; margin-bottom:12px; }
.ct-clhead { display:flex; align-items:center; gap:10px; margin-bottom:10px; } .ct-clhead h3 { font-size:16.5px; }
.ct-clform { display:grid; gap:10px; }
.ct-clform label, .ct-clperiod label { display:flex; flex-direction:column; gap:5px; margin:0; font-size:13px; font-weight:600; color:var(--ct-sub); }
.ct-app .ct-clform input, .ct-app .ct-clform textarea, .ct-app .ct-clperiod input, .ct-app .ct-clq { width:100%; min-height:42px; margin:0; border:1px solid #cbd5e1; border-radius:9px; padding:8px 11px; font:16px Rubik,Arial,sans-serif; background:#fff; color:var(--ct-ink); text-align:start; }
.ct-app .ct-clform textarea { resize:vertical; }
.ct-clperiod { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; } .ct-clperiod label { flex:0 1 190px; }
.ct-cltools { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px; } .ct-app .ct-cltools .ct-clq { flex:1; min-width:170px; width:auto; }
.ct-app .ct-clbox > .ct-clq { margin-bottom:10px; }
.ct-cllist { max-height:380px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; }
.ct-cllist > * { flex:none; }
.ct-clrow { display:flex; gap:10px; align-items:flex-start; margin:0; padding:9px 11px; border:1px solid var(--ct-line); border-radius:9px; cursor:pointer; font-size:14px; font-weight:400; text-align:start; }
.ct-clrow.on { border-color:var(--ct-blue); background:#eff6ff; }
.ct-app .ct-clrow input { width:20px; height:20px; margin:1px 0 0; flex:none; }
.ct-clrow > span { display:block; min-width:0; overflow-wrap:anywhere; }
.ct-clrow i, .ct-clrow small { display:block; font-style:normal; color:var(--ct-sub); font-size:13px; margin-top:3px; }
.ct-clday { display:flex; gap:8px; align-items:center; } .ct-clday .ct-clrow { flex:1; min-width:0; } .ct-clday > a { flex:none; color:var(--ct-blue) !important; font-weight:600; font-size:13px; padding:8px 4px; }
.ct-clphotos { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:8px; max-height:420px; overflow-y:auto; margin-top:8px; }
.ct-clphoto { position:relative; padding:0; border:3px solid var(--ct-blue); border-radius:9px; overflow:hidden; background:#f1f5f9; cursor:pointer; aspect-ratio:4/3; }
.ct-clphoto img { width:100%; height:100%; object-fit:cover; display:block; }
.ct-clphoto span { position:absolute; bottom:0; inset-inline-start:0; background:rgba(15,23,42,.75); color:#fff; font-size:11px; padding:2px 6px; }
.ct-clphoto.off { border-color:var(--ct-line); } .ct-clphoto.off img { opacity:.3; filter:grayscale(1); }
.ct-clbar { position:sticky; bottom:0; display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; background:#fff; border:1px solid var(--ct-line); border-radius:12px; padding:12px 16px; box-shadow:0 -4px 16px rgba(15,23,42,.08); font-weight:600; font-size:14px; z-index:5; }

/* against the usual terms */
.ct-usual { background:#fff; border:1px solid var(--ct-line); border-radius:12px; padding:12px 16px; margin-bottom:14px; display:flex; flex-direction:column; gap:7px; }
.ct-usual.learning { background:#f8fafc; border-style:dashed; border-color:#94a3b8; }
.ct-usual.found { border-color:#fdba74; background:#fffaf5; }
.ct-uhead { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .ct-uhead h3 { font-size:15.5px; }
.ct-usual p { font-size:14px; line-height:1.55; color:var(--ct-sub); }
.ct-app .ct-usual ul { display:flex; flex-direction:column; gap:6px; } .ct-usual li { font-size:14px; line-height:1.5; }
.ct-usual small { color:var(--ct-sub); font-size:12.5px; }
.ct-uprog { display:flex; align-items:center; gap:10px; } .ct-ubar { flex:1; max-width:320px; height:8px; border-radius:99px; background:#e2e8f0; overflow:hidden; } .ct-ubar i { display:block; height:100%; background:var(--ct-blue); }

/* the claim document: over the page on screen, alone in print */
body.ct-doc-open { overflow:hidden; }
#ctDoc { position:fixed; inset:0; z-index:100000; overflow:auto; background:#e5e9ef; padding:0 12px 24px; font-family:Arial,Helvetica,sans-serif; color:#1f2a37; text-align:start; }
.ct-doctools { position:sticky; top:0; z-index:1; display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center; padding:12px 0; background:#e5e9ef; font-family:Rubik,Arial,sans-serif; --ct-ink:#0f172a; --ct-blue:#1d4ed8; }
.ct-doctools span { font-size:13.5px; color:#475569; }
.ct-doc { max-width:820px; margin:0 auto; background:#fff; border:1px solid #dde3ea; padding:34px 32px; font-size:14px; line-height:1.6; overflow-wrap:anywhere; box-sizing:border-box; }
.ct-doc * { box-sizing:border-box; }
.ct-doc header { border-bottom:4px solid #1f3b57; padding-bottom:14px; margin-bottom:16px; } .ct-doc header img { max-height:56px; max-width:180px; } .ct-doc .co { font-weight:bold; }
.ct-doc h1 { font-size:24px; color:#1f3b57; margin:6px 0 2px; } .ct-doc h2 { font-size:17px; color:#1f3b57; border-bottom:2px solid #1f3b57; padding-bottom:4px; margin:26px 0 10px; break-after:avoid; page-break-after:avoid; }
.ct-doc h3 { font-size:14.5px; margin:0 0 2px; break-after:avoid; page-break-after:avoid; } .ct-doc p { margin:0 0 6px; } .ct-doc .muted { color:#667085; font-size:12.5px; }
.ct-doc table { width:100%; border-collapse:collapse; margin:0 0 10px; font-size:12.5px; }
.ct-doc th, .ct-doc td { border:1px solid #dde3ea; padding:6px 8px; text-align:start; vertical-align:top; background:#fff; color:#1f2a37; }
.ct-doc .kv th { width:30%; background:#f5f7fa; } .ct-doc .grid th { background:#eef2f6; } .ct-doc .grid th, .ct-doc .grid td { overflow-wrap:normal; }
.ct-doc tr { break-inside:avoid; page-break-inside:avoid; }
.ct-doc .sum { background:#f5f7fa; border:1px solid #dde3ea; padding:10px 12px; }
.ct-doc .clause, .ct-doc .note { margin-bottom:14px; } .ct-doc .clause { break-inside:avoid; page-break-inside:avoid; }
.ct-doc blockquote { margin:4px 0 0; padding:8px 12px; background:#fbfcfd; border:1px solid #dde3ea; font-size:13px; }
.ct-doc .day { border-top:1px solid #dde3ea; padding-top:10px; margin-bottom:14px; }
.ct-doc .pics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:8px; }
.ct-doc figure { margin:0; break-inside:avoid; page-break-inside:avoid; } .ct-doc figure img { width:100%; max-height:300px; object-fit:contain; border:1px solid #dde3ea; } .ct-doc figcaption { font-size:11.5px; color:#667085; }
.ct-doc .scan img { max-width:100%; max-height:900px; border:1px solid #dde3ea; break-inside:avoid; page-break-inside:avoid; }
.ct-doc img.broken { display:none; }
.ct-doc footer { margin-top:28px; border-top:1px solid #dde3ea; padding-top:10px; font-size:11.5px; color:#667085; }
@media screen and (max-width:600px) { .ct-doc { padding:18px 12px; } .ct-doc .pics { grid-template-columns:minmax(0,1fr); } .ct-doc .grid { display:block; overflow-x:auto; } .ct-doc .grid th, .ct-doc .grid td { white-space:nowrap; } .ct-clperiod label { flex:1 1 140px; } .ct-clperiod .ct-btn { width:100%; } .ct-clbar .ct-btn { width:100%; } }
@media print {
  body.ct-doc-open { overflow:visible !important; background:#fff !important; padding:0 !important; margin:0 !important; }
  body.ct-doc-open > *:not(#ctDoc) { display:none !important; }
  body.ct-doc-open #ctDoc { position:static; overflow:visible; background:#fff; padding:0; }
  body.ct-doc-open .ct-doctools { display:none; }
  body.ct-doc-open .ct-doc { max-width:none; margin:0; border:0; padding:0; }
  #ctDoc * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
/* phone: the file name on its own line, its buttons under it */
@media (max-width: 600px) { .ct-app .ct-files li > a { flex-basis: 100%; } }
/* the notifications screen */
.ct-notify { background:#fff; border:1px solid var(--ct-line); border-radius:14px; padding:16px 18px; margin-bottom:12px; }
.ct-notify.on { border-color:#86c79d; }
.ct-nhead { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.ct-nhead h3 { margin:0 0 4px; font-size:17px; } .ct-nhead p { margin:0; color:#64748b; font-size:13.5px; line-height:1.6; }
.ct-app .ct-switch { display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-weight:700; font-size:13px; color:#64748b; flex:none; margin:0; }
.ct-app .ct-switch input { position:absolute; opacity:0; width:1px; height:1px; }
.ct-switch i { width:44px; height:25px; border-radius:20px; background:#cbd5e1; position:relative; transition:background .2s; }
.ct-switch i::after { content:""; position:absolute; top:3px; inset-inline-start:3px; width:19px; height:19px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:inset-inline-start .2s; }
.ct-switch input:checked + i { background:#16a34a; } .ct-switch input:checked + i::after { inset-inline-start:22px; }
.ct-switch input:checked ~ span { color:#15803d; } .ct-switch input:focus-visible + i { outline:3px solid #93c5fd; outline-offset:2px; }
.ct-nbody { display:flex; flex-wrap:wrap; gap:12px 34px; margin:14px 0 12px; padding-top:12px; border-top:1px solid #eef2f7; }
.ct-notify:not(.on) .ct-nbody { opacity:.55; }
.ct-nbody fieldset { border:0; margin:0; padding:0; min-width:0; } .ct-nbody legend { font-weight:700; font-size:13px; margin-bottom:6px; padding:0; }
.ct-app .ct-check { display:flex; align-items:center; gap:8px; margin:0 0 6px; font-weight:400; font-size:14px; cursor:pointer; }
.ct-app .ct-check input { width:17px; height:17px; margin:0; flex:none; accent-color:#1d4ed8; }
.ct-nusers { flex-basis:100%; } .ct-nusers summary { cursor:pointer; color:var(--ct-blue); font-weight:700; font-size:13.5px; }
.ct-nusers > div { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:2px 16px; margin-top:10px; max-height:230px; overflow-y:auto; }
.ct-nfoot { display:flex; align-items:center; gap:12px; flex-wrap:wrap; } .ct-nstate { font-size:13.5px; color:#92400e; } .ct-nstate.bad { color:#b91c1c; }
.ct-datesoff { margin:0 0 12px; padding:10px 14px; border:1px solid #f4d38a; border-radius:10px; background:#fff8e6; font-size:13.5px; color:#92400e; }
@media (max-width: 600px) { .ct-nbody { flex-direction:column; } .ct-nfoot .ct-btn { width:100%; } }
/* empty dates and amounts of a draft */
.ct-blanks { margin:0 0 14px; padding:14px 16px; border:1px solid #f0a8a8; border-radius:10px; background:#fff5f5; color:#7f1d1d; }
.ct-blanks h3 { margin:0 0 8px; font-size:15.5px; } .ct-blanks p { margin:0 0 6px; font-size:13.5px; }
.ct-blanks ul { margin:0 0 8px; padding:0; list-style:none; } .ct-blanks li { margin:0 0 5px; font-size:13.5px; overflow-wrap:anywhere; }
.ct-blanks q { color:#111827; } .ct-blanks small { color:#64748b; }
/* findings merged into one card */
.ct-same { margin:6px 0 10px; } .ct-same summary { cursor:pointer; color:var(--ct-blue); font-weight:700; font-size:13px; }
.ct-same ul { margin:8px 0 0; padding:0; list-style:none; } .ct-same li { margin:0 0 8px; padding:8px 12px; border:1px dashed var(--ct-line); border-radius:8px; font-size:13.5px; } .ct-same li p { margin:4px 0 0; }
