/* asMade Tenders - everything is scoped under .tn-app / .tn-modal / .tn-toast */
.tn-app, .tn-modal { --tn-ink:#0f172a; --tn-sub:#475569; --tn-line:#e2e8f0; --tn-blue:#1d4ed8; --tn-bad:#b91c1c; --tn-warn:#92500b; --tn-ok:#15803d; color:var(--tn-ink); font-family:Rubik,Arial,sans-serif; }
.tn-app { width:100%; margin:0 auto; text-align:start; }
.tn-app *, .tn-modal * { box-sizing:border-box; }
.tn-app h1, .tn-app h2, .tn-app h3, .tn-app p, .tn-modal h3 { margin:0; }
.tn-app ul { list-style:none; margin:0; padding:0; }
.tn-app a { color:inherit; text-decoration:none; }
.tn-app :focus-visible, .tn-modal :focus-visible { outline:3px solid #93c5fd; outline-offset:1px; }

.tn-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:42px; width:auto; margin:0; padding:0 18px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; color:var(--tn-ink) !important; font:600 14.5px Rubik,Arial,sans-serif; cursor:pointer; }
.tn-btn:hover { background:#f8fafc; border-color:#94a3b8; }
.tn-btn:disabled { opacity:.55; cursor:default; }
.tn-btn.tn-primary { background:var(--tn-blue); border-color:var(--tn-blue); color:#fff !important; }
.tn-btn.tn-primary:hover { background:#1e40af; }
.tn-btn.tn-danger { background:var(--tn-bad); border-color:var(--tn-bad); color:#fff !important; }
.tn-btn.tn-quiet { border-color:transparent; background:transparent; color:var(--tn-sub) !important; }
.tn-btn.tn-sm { min-height:36px; padding:0 12px; font-size:13.5px; }
.tn-btn.on { background:#1e293b; border-color:#1e293b; color:#fff !important; }

/* Service header: tenders has its own colour, olive bronze with a bill-of-quantities mark */
.tn-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,#7a5a0f 0%,#3b2b05 100%); color:#fff; box-shadow:0 16px 38px rgba(59,43,5,.22); }
.tn-head::before { content:""; box-sizing:border-box; flex:0 0 54px; height:54px; border-radius:16px; border:1px solid rgba(240,210,130,.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='%23f0d282' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M15 3v4h4M9 11h1M12.5 11H16M9 14.5h1M12.5 14.5H16M9 18h1M12.5 18H16'/%3E%3C/svg%3E") center / 32px 32px no-repeat; }
.tn-head > div:first-of-type { flex:1 1 260px; min-width:0; }
.tn-head h1 { color:#fff; font-size:26px; line-height:1.25; margin:4px 0 2px; overflow-wrap:anywhere; }
.tn-head p { color:rgba(255,255,255,.84); font-size:14.5px; line-height:1.6; }
.tn-actions { display:flex; flex-wrap:wrap; gap:8px; }
.tn-head .tn-btn { border-color:transparent; border-radius:999px; background:#fff; color:#3b2b05 !important; }
.tn-head .tn-btn:hover { background:#fbf5e4; }
.tn-head .tn-btn.tn-primary { background:#f0d282; color:#2f2203 !important; }
.tn-head .tn-btn.tn-primary:hover { background:#f6df9f; }
.tn-head .tn-btn.tn-quiet { background:transparent; border-color:rgba(255,255,255,.42); color:#fff !important; }
.tn-head .tn-btn.tn-quiet:hover { background:rgba(255,255,255,.12); }
.tn-head :focus-visible { outline-color:#f0d282; }
.tn-back { display:inline-block; margin-bottom:10px; color:var(--tn-blue) !important; font-weight:600; font-size:14px; }

.tn-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:14px; }
.tn-app .tn-bar select, .tn-app .tn-bar input, .tn-app .tn-upload select { height:42px; width:auto; max-width:100%; border:1px solid #cbd5e1; border-radius:9px; background:#fff; padding:0 12px; margin:0; font:14.5px Rubik,Arial,sans-serif; color:var(--tn-ink); }
.tn-app .tn-bar input[type=search] { flex:1; min-width:200px; }
.tn-bar label { display:flex; gap:8px; align-items:center; margin:0; font-size:13.5px; font-weight:600; color:var(--tn-sub); max-width:100%; }

.tn-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:12px; }
.tn-card { display:flex; flex-direction:column; gap:8px; background:#fff; border:1px solid var(--tn-line); border-top:5px solid #7a5a0f; border-radius:12px; padding:14px 16px; min-width:0; transition:box-shadow .15s; }
.tn-card:hover { box-shadow:0 8px 22px rgba(15,23,42,.10); }
.tn-card.off { opacity:.65; }
.tn-card h3 { font-size:16.5px; overflow-wrap:anywhere; }
.tn-card p { color:var(--tn-sub); font-size:13.5px; overflow-wrap:anywhere; }
.tn-chips { display:flex; flex-wrap:wrap; gap:6px; }
.tn-chip { display:inline-block; border-radius:999px; padding:3px 10px; background:#f1f5f9; color:#334155; font-size:12px; font-weight:600; }
.tn-chip.bad { background:var(--tn-bad); color:#fff; }
.tn-chip.warn { background:#ffedd5; color:#7c2d12; }
.tn-chip.ok { background:#dcfce7; color:#166534; }
.tn-chip.off { background:#f1f5f9; color:#64748b; font-weight:500; }
.tn-chip.info { background:#dbeafe; color:#1e40af; }

.tn-tabs { display:flex; gap:4px; box-shadow:inset 0 -2px 0 var(--tn-line); margin-bottom:14px; overflow-x:auto; overflow-y:hidden; }
.tn-tabs a { padding:10px 16px; font-weight:600; color:var(--tn-sub) !important; border-bottom:3px solid transparent; white-space:nowrap; }
.tn-tabs a[aria-selected="true"] { color:var(--tn-blue) !important; border-bottom-color:var(--tn-blue); }

.tn-box { background:#fff; border:1px solid var(--tn-line); border-radius:12px; padding:14px 16px; margin-bottom:12px; }
.tn-box h2 { font-size:16px; margin-bottom:8px; }
.tn-muted { color:var(--tn-sub); font-size:13.5px; line-height:1.6; }
.tn-bad { color:var(--tn-bad); font-weight:600; }
.tn-upload { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.tn-app .tn-upload input[type=file] { flex:1; min-width:200px; margin:0; font-size:14px; }
.tn-docs li { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; justify-content:space-between; background:#fff; border:1px solid var(--tn-line); border-radius:10px; padding:12px 14px; margin-bottom:8px; }
.tn-docs .tn-dmain { flex:1 1 260px; min-width:0; display:flex; flex-direction:column; gap:5px; }
.tn-docs b { overflow-wrap:anywhere; }
.tn-acts { display:flex; flex-wrap:wrap; gap:6px; }

.tn-wrap { overflow-x:auto; background:#fff; border:1px solid var(--tn-line); border-radius:12px; margin-bottom:12px; }
.tn-app table.tn-table { width:100%; border-collapse:collapse; margin:0; font-size:13.5px; }
.tn-app .tn-table th, .tn-app .tn-table td { padding:8px 10px; border:0; border-bottom:1px solid #edf1f6; text-align:start; vertical-align:top; background:transparent; }
.tn-app .tn-table th { background:#f8fafc; color:var(--tn-sub); font-size:12.5px; font-weight:600; white-space:nowrap; }
.tn-table td.num { white-space:nowrap; font-variant-numeric:tabular-nums; }
.tn-table td.code { white-space:nowrap; color:#334155; direction:ltr; text-align:end !important; }
.tn-table td.des { min-width:240px; max-width:680px; overflow-wrap:anywhere; line-height:1.5; }
.tn-table tr.chapter td { background:#fbf7ea !important; font-weight:700; }
.tn-table tr.total td { background:#f1f5f9 !important; font-weight:700; }
.tn-table tr.note td { color:var(--tn-sub); }
.tn-table .was { display:block; color:#64748b; text-decoration:line-through; font-size:12.5px; }
.tn-table td small { display:block; color:#64748b; font-size:11.5px; }
.tn-more { text-align:center; margin:0 0 12px; }

.tn-sheet { border:1px solid var(--tn-line); border-radius:10px; padding:10px 12px; margin-bottom:8px; background:#fff; }
.tn-sheet.off { background:#f8fafc; }
.tn-sheet .tn-check { display:flex; gap:10px; align-items:center; margin:0; font-weight:600; cursor:pointer; flex-wrap:wrap; }
.tn-sheet .tn-check input { width:20px; height:20px; margin:0; flex:none; }
.tn-cols { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin-top:10px; }
.tn-cols label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; font-weight:600; color:var(--tn-sub); margin:0; min-width:0; }
.tn-app .tn-cols select { width:100%; height:38px; margin:0; padding:0 8px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; font:13.5px Rubik,Arial,sans-serif; }
.tn-figs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.tn-fig { background:#fff; border:1px solid var(--tn-line); border-radius:12px; padding:11px 14px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.tn-fig span { color:var(--tn-sub); font-size:12.5px; }
.tn-fig b { font-size:20px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.tn-fig.bad { background:#fef2f2; border-color:#fecaca; } .tn-fig.bad b { color:var(--tn-bad); }
.tn-fig.warn { background:#fff7ed; border-color:#fed7aa; } .tn-fig.warn b { color:var(--tn-warn); }
.tn-progress { height:8px; border-radius:99px; background:#e2e8f0; overflow:hidden; margin-top:8px; }
.tn-progress i { display:block; height:100%; width:0; background:var(--tn-blue); }

.tn-checks { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:8px; margin-bottom:14px; }
.tn-checks li { display:flex; justify-content:space-between; gap:8px; align-items:center; background:#fff; border:1px solid var(--tn-line); border-radius:10px; padding:9px 12px; font-size:13.5px; }
.tn-checks li span:first-child { display:flex; flex-direction:column; gap:2px; min-width:0; }
.tn-checks small { color:#64748b; font-size:12px; }
.tn-checks .tn-chip { white-space:nowrap; }
.tn-group { margin-bottom:10px; border:1px solid var(--tn-line); border-radius:12px; background:#fff; overflow:hidden; }
.tn-group > summary { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:12px 14px; cursor:pointer; font-weight:700; }
.tn-find { border-top:1px solid #edf1f6; padding:12px 14px; display:flex; flex-direction:column; gap:8px; }
.tn-find.decided { background:#f8fafc; }
.tn-find > p { line-height:1.55; font-size:14.5px; }
.tn-find .tn-wrap { margin:0; border-radius:8px; }

.tn-grid-units td input { width:100%; min-width:70px; }
.tn-app .tn-table td input { height:36px; margin:0; padding:0 8px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; font:14px Rubik,Arial,sans-serif; }
.tn-gen { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; align-items:end; }
.tn-gen label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; font-weight:600; color:var(--tn-sub); margin:0; min-width:0; }
.tn-app .tn-gen input { width:100%; height:40px; margin:0; padding:0 10px; border:1px solid #cbd5e1; border-radius:8px; font:15px Rubik,Arial,sans-serif; }
.tn-save { position:sticky; bottom:8px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; background:#fffbeb; border:1px solid #f59e0b; border-radius:12px; padding:10px 14px; margin-top:12px; }
.tn-save[hidden] { display:none; }

.tn-empty { background:#fff; border:1px dashed #cbd5e1; border-radius:12px; padding:30px 18px; text-align:center; color:var(--tn-sub); }
.tn-empty p { margin-bottom:12px; line-height:1.6; }
.tn-list .tn-empty { grid-column:1 / -1; }

.tn-modal { position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:100000; display:flex; align-items:center; justify-content:center; padding:14px; }
.tn-dialog { background:#fff; border-radius:14px; width:100%; max-width:640px; max-height:92vh; display:flex; flex-direction:column; margin:0; text-align:start; }
.tn-dhead { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:15px 18px; border-bottom:1px solid var(--tn-line); }
.tn-dhead h3 { font-size:18px; }
.tn-x { border:0; background:transparent; font-size:26px; line-height:1; cursor:pointer; color:var(--tn-sub); width:36px; height:36px; }
.tn-dbody { padding:0 18px; overflow-y:auto; }
.tn-fgrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px 0; }
.tn-f { display:flex; flex-direction:column; gap:5px; min-width:0; }
.tn-f.wide { grid-column:1 / -1; }
.tn-f label { font-size:13px; font-weight:600; color:var(--tn-sub); margin:0; }
.tn-modal .tn-f input, .tn-modal .tn-f select, .tn-modal .tn-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(--tn-ink); text-align:start; }
.tn-req { color:var(--tn-bad); }
.tn-derr { color:var(--tn-bad); font-weight:600; font-size:14px; padding:0 18px; }
.tn-derr:not(:empty) { padding-top:10px; }
.tn-dfoot { display:flex; gap:10px; padding:14px 18px; border-top:1px solid var(--tn-line); }
.tn-plans { list-style:none; margin:0; padding:12px 0; }
.tn-plans li { display:flex; gap:10px; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid #edf1f6; }
.tn-plans li span { display:flex; flex-direction:column; gap:2px; min-width:0; overflow-wrap:anywhere; }
.tn-plans small { color:#64748b; font-size:12px; }
.tn-app .tn-search, .tn-modal .tn-search { width:100%; height:42px; margin:14px 0 0; padding:0 12px; border:1px solid #cbd5e1; border-radius:9px; font:16px Rubik,Arial,sans-serif; }

.tn-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; }
.tn-toast.on { opacity:1; } .tn-toast.bad { background:#b91c1c; }

@media screen and (max-width:900px) {
  .tn-cols, .tn-gen { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .tn-figs { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width:600px) {
  .tn-head { padding:14px; border-radius:18px; gap:10px; margin-bottom:12px; }
  .tn-head::before { flex-basis:34px; height:34px; border-radius:11px; background-size:21px 21px; }
  .tn-head > div:first-of-type { flex-basis:calc(100% - 44px); }
  .tn-head h1 { font-size:19px; margin:0 0 2px; }
  .tn-head p { font-size:13px; line-height:1.45; }
  .tn-head .tn-actions { width:100%; }
  .tn-head .tn-btn { flex:1 1 0; min-height:40px; padding:0 10px; font-size:13.5px; }
  .tn-list { grid-template-columns:minmax(0,1fr); }
  .tn-app .tn-bar select, .tn-app .tn-bar input { width:100%; font-size:16px; }
  .tn-bar label { width:100%; flex-direction:column; align-items:stretch; gap:4px; }
  .tn-tabs { flex-wrap:wrap; overflow:visible; box-shadow:none; gap:2px; }
  .tn-tabs a { flex:1 0 auto; text-align:center; padding:9px 8px; font-size:13.5px; border-bottom-color:var(--tn-line); }
  .tn-fgrid, .tn-checks { grid-template-columns:minmax(0,1fr); }
  .tn-cols, .tn-gen { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tn-figs { gap:8px; } .tn-fig { padding:9px 11px; } .tn-fig b { font-size:17px; }
  .tn-modal { padding:0; align-items:flex-end; }
  .tn-dialog { max-height:94vh; border-radius:14px 14px 0 0; }
  .tn-acts { width:100%; } .tn-acts .tn-btn { flex:1 1 auto; }
  /* the lines of a bill become cards */
  .tn-app table.tn-lines, .tn-lines tbody, .tn-lines tr { display:block; width:100%; }
  .tn-lines thead { display:none; }
  .tn-lines tr { display:flex; flex-wrap:wrap; gap:2px 14px; padding:9px 12px; border-bottom:1px solid #e2e8f0; }
  .tn-app .tn-lines td { display:block; border:0; padding:1px 0; background:transparent !important; }
  .tn-lines td:empty { display:none !important; }
  .tn-lines td.des { flex-basis:100%; min-width:0; order:-1; }
  .tn-lines td.num::before, .tn-lines td.code::before { content:attr(data-l) ": "; color:#64748b; font-weight:500; unicode-bidi:isolate; }
  .tn-app .tn-lines td.code { direction:inherit; text-align:start !important; }
  .tn-lines .was { display:inline; margin-inline-end:6px; }
  .tn-lines tr.chapter { background:#fbf7ea; } .tn-lines tr.total { background:#f1f5f9; }
  .tn-grid-units td { padding:6px 4px !important; }
  .tn-grid-units td input { min-width:56px; }
}
@media (prefers-reduced-motion:reduce) { .tn-card, .tn-toast { transition:none; } }
/* the chapter choice of the Excel download */
.tn-xlist { display:flex; flex-direction:column; gap:10px; max-height:40vh; overflow:auto; padding:6px 0 10px; }
.tn-xlist label { display:flex; gap:10px; align-items:flex-start; margin:0; cursor:pointer; font-size:14px; }
.tn-xlist input { width:20px; height:20px; margin:0; flex:none; }
.tn-xlist span { min-width:0; overflow-wrap:anywhere; }
/* the offers of subcontractors */
.tn-app .tn-upload input[type=text] { height:42px; width:220px; max-width:100%; margin:0; border:1px solid #cbd5e1; border-radius:9px; background:#fff; padding:0 12px; font:15px Rubik,Arial,sans-serif; color:var(--tn-ink); }
.tn-works { display:flex; flex-wrap:wrap; gap:8px 18px; }
.tn-works label { display:flex; gap:8px; align-items:center; margin:0; cursor:pointer; font-size:14px; }
.tn-works input { width:20px; height:20px; margin:0; flex:none; }
.tn-verdict { background:#ecfdf5; border:1px solid #a7f3d0; border-radius:12px; padding:12px 16px; margin-bottom:6px; font-weight:600; line-height:1.7; }
.tn-app ul.tn-offers { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; margin:0 0 14px; padding:0; list-style:none; }
.tn-offers li { display:flex; flex-direction:column; gap:6px; min-width:0; background:#fff; border:1px solid var(--tn-line); border-radius:12px; padding:13px 15px; }
.tn-offers li.best { border-color:#16a34a; box-shadow:0 0 0 1px #16a34a; }
.tn-offers li.mine { background:#eff6ff; }
.tn-offers b { font-size:15px; overflow-wrap:anywhere; }
.tn-offers strong { font-size:22px; font-variant-numeric:tabular-nums; }
.tn-offers .tn-acts { flex-wrap:wrap; margin-top:auto; padding-top:6px; }
.tn-app .tn-compare th:first-child, .tn-app .tn-compare td:first-child { white-space:nowrap; }
.tn-app .tn-compare td.des { min-width:200px; }
.tn-app .tn-compare td { font-variant-numeric:tabular-nums; }
.tn-app .tn-compare td b { display:block; font-weight:600; }
.tn-app .tn-compare td small { display:block; color:#64748b; font-size:12px; }
.tn-app .tn-compare td em { display:block; color:var(--tn-warn); font-style:normal; font-size:12px; font-weight:600; }
.tn-app .tn-compare td.low { background:#ecfdf5; }
.tn-app .tn-compare td.none { color:#94a3b8; }
.tn-app .tn-compare tfoot th { font-size:14px; color:var(--tn-ink); border-top:2px solid #cbd5e1; }
.tn-app ul.tn-extra { margin:0; padding:0; list-style:none; }
.tn-extra li { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid #edf1f6; font-size:14px; }
.tn-extra span { min-width:0; overflow-wrap:anywhere; }
@media (max-width:700px) { .tn-app .tn-upload input[type=text] { width:100%; font-size:16px; } .tn-app .tn-compare td.des { min-width:150px; } .tn-offers .tn-acts .tn-btn { flex:1 1 auto; } }
@media (max-width:700px) {
  .tn-app table.tn-compare, .tn-compare tbody { display:block; width:100%; }
  .tn-compare thead, .tn-compare tfoot { display:none; }
  .tn-compare tr { display:flex; flex-wrap:wrap; gap:2px 14px; padding:10px 12px; border-bottom:2px solid #e2e8f0; }
  .tn-app .tn-compare td { display:block; border:0; padding:1px 0; min-width:0; white-space:normal; }
  .tn-app .tn-compare td.des { flex-basis:100%; order:-1; min-width:0; overflow-wrap:anywhere; }
  .tn-app .tn-compare td.meta::before { content:attr(data-l) ": "; color:#64748b; }
  .tn-app .tn-compare td.meta:empty { display:none; }
  .tn-app .tn-compare td.of { flex-basis:100%; display:flex; flex-wrap:wrap; gap:2px 10px; align-items:baseline; padding:6px 8px; border-radius:8px; border-top:1px solid #edf1f6; }
  .tn-app .tn-compare td.of::before { content:attr(data-l); flex:1 1 130px; min-width:0; font-weight:600; color:#334155; overflow-wrap:anywhere; }
}
/* the check against the specification */
.tn-srow { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; padding:9px 0; border-top:1px solid #edf1f6; }
.tn-srow .tn-check { flex:1 1 260px; display:flex; gap:10px; align-items:center; margin:0; cursor:pointer; }
.tn-srow .tn-check input, .tn-consent input { width:20px; height:20px; margin:0; flex:none; }
.tn-app .tn-srow select { height:40px; flex:0 1 330px; min-width:0; max-width:100%; border:1px solid #cbd5e1; border-radius:9px; background:#fff; padding:0 10px; margin:0; font:14px Rubik,Arial,sans-serif; }
.tn-spages { display:flex; gap:6px; }
.tn-app .tn-spages input { width:92px; height:40px; border:1px solid #cbd5e1; border-radius:9px; padding:0 8px; margin:0; font:14px Rubik,Arial,sans-serif; }
.tn-sgen small { flex-basis:100%; }
.tn-consent { display:flex; gap:10px; align-items:flex-start; margin:10px 0 12px; line-height:1.6; cursor:pointer; }
.tn-sh { font-size:17px; margin:16px 0 8px; }
.tn-sfs { list-style:none; margin:0; padding:0; }
.tn-sf { background:#fff; border:1px solid var(--tn-line); border-radius:12px; padding:12px 14px; margin-bottom:10px; }
.tn-sf.off { opacity:.7; }
.tn-sf.need { border-color:#fca5a5; background:#fffafa; }
/* data missing for a measurement or a document: red and on top, never only inside a closed section */
.tn-app .tn-alert, .tn-modal .tn-alert { background:#fef2f2; border:1px solid #fca5a5; border-inline-start:4px solid var(--tn-bad); border-radius:10px; padding:12px 16px; margin:0 0 12px; color:var(--tn-bad); }
.tn-app .tn-alert p, .tn-modal .tn-alert p { margin:4px 0 0; color:var(--tn-ink); font-weight:400; }
.tn-app .tn-alert ul, .tn-modal .tn-alert ul { margin:8px 0 0; padding-inline-start:20px; color:var(--tn-bad); font-weight:600; }
.tn-modal .tn-alert[hidden] { display:none; }
.tn-sf h3 { font-size:15.5px; margin:8px 0 4px; }
.tn-sf p { margin:0 0 6px; line-height:1.65; }
.tn-sf blockquote { margin:6px 0; padding:8px 12px; background:#f8fafc; border-radius:8px; line-height:1.65; font-size:13.5px; color:#334155; }
.tn-sf blockquote small { display:block; color:#64748b; margin-top:2px; }
.tn-sf .tn-acts { margin-top:8px; }
.tn-minor summary, .tn-again summary { cursor:pointer; font-weight:700; padding:10px 0; }
@media (max-width:700px) {
  .tn-app .tn-srow select { flex-basis:100%; }
  .tn-app .tn-spages, .tn-app .tn-spages input { width:100%; font-size:16px; }
}

/* many tabs: they take a second row instead of scrolling */
@media screen and (min-width:601px) {
  .tn-tabs { flex-wrap:wrap; overflow:visible; }
  .tn-tabs a { padding:9px 11px; }
}

/* the quantities from the drawings */
.tn-floors { align-items:center; gap:8px; margin:0; font-size:13.5px; font-weight:600; color:var(--tn-sub); }
.tn-qty { display:flex; flex-wrap:wrap; gap:6px 26px; font-size:14px; }
.tn-qty b { font-size:20px; margin-inline-start:6px; font-variant-numeric:tabular-nums; color:#0f172a; }
.tn-sf details summary { cursor:pointer; font-weight:600; padding:6px 0; }
.tn-sf h4 { font-size:14px; margin:8px 0 4px; }
.tn-dwg { list-style:none; margin:0; padding:0; }
.tn-dwg li { padding:5px 0; border-top:1px solid #edf1f6; font-size:13.5px; line-height:1.55; overflow-wrap:anywhere; }
.tn-dwg .tn-check { display:flex; gap:10px; align-items:flex-start; margin:0; font-weight:400; cursor:pointer; }
.tn-dwg .tn-check input { width:20px; height:20px; margin:0; flex:none; }
