app / frontend /src /components /landing /doccards.css
Aissugur Kurganbekov
Claude Opus 4.8
Tamga — evidence-backed customs document audit
373030b
Raw History Blame Contribute Delete
5.62 kB
/* ============================================================
Tamga DocCards (.dc-*) — CSS document mockups.
Rendered by DocCards.jsx; sized by the caller
(.st-marquee-card, .st-stage-card, .st-quote-card, .st-trail-card).
Palette: ink #051A24 · ink-2 #0D212C · muted #273C46 · white card.
Accents (sparing): teal #0e7c7b checks/citations · amber #c77d2e seal/flags.
One radius scale (16px card / pills), one shadow, tabular numbers,
11–13px type inside.
============================================================ */
.dc-card {
--dc-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
"Liberation Mono", monospace;
/* No width here: each context sizes the card (.st-marquee-card,
.st-stage-card--*, .st-trail-card, or the block wrapper it fills). */
position: relative;
overflow: hidden;
background: #ffffff;
border-radius: 16px;
box-shadow:
0 0 0 0.5px rgba(5, 26, 36, 0.07),
0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -4px rgba(0, 0, 0, 0.1);
padding: 16px;
display: flex;
flex-direction: column;
gap: 10px;
color: #273c46;
font-size: 12px;
line-height: 1.45;
text-align: left;
font-variant-numeric: tabular-nums;
}
/* Content sits above the watermark. */
.dc-head,
.dc-rows,
.dc-total,
.dc-chat {
position: relative;
z-index: 1;
}
/* ---- Header: mono micro-labels ---- */
.dc-head {
display: flex;
flex-wrap: wrap; /* narrow cards: the ref wraps under the doc type */
justify-content: space-between;
align-items: baseline;
gap: 2px 8px;
border-bottom: 1px solid rgba(13, 33, 44, 0.08);
padding-bottom: 8px;
}
.dc-kind {
font-family: var(--dc-mono);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #0d212c;
}
.dc-ref {
font-family: var(--dc-mono);
font-size: 10px;
letter-spacing: 0.04em;
color: #273c46;
white-space: nowrap;
}
/* ---- Body rows ---- */
.dc-rows {
display: flex;
flex-direction: column;
gap: 7px;
min-height: 0;
}
.dc-row {
display: flex;
align-items: flex-start;
gap: 8px;
}
.dc-row strong {
color: #0d212c;
font-weight: 500;
}
.dc-check {
width: 12px;
height: 12px;
flex: 0 0 auto;
margin-top: 2.5px;
color: #0e7c7b;
}
.dc-code {
font-family: var(--dc-mono);
font-size: 11px;
letter-spacing: 0.03em;
}
/* ---- Total strip (invoice / packing) ---- */
.dc-total {
margin-top: auto;
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 8px;
border-top: 1px solid rgba(13, 33, 44, 0.08);
padding-top: 8px;
}
.dc-total-label {
font-family: var(--dc-mono);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #273c46;
}
.dc-amount {
font-size: 13px;
font-weight: 500;
letter-spacing: -0.01em;
color: #051a24;
}
/* ---- Risk badge (report) ---- */
.dc-badge {
flex: 0 0 auto;
font-family: var(--dc-mono);
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.07em;
color: #8a4a12;
background: rgba(199, 125, 46, 0.14);
padding: 3px 8px;
border-radius: 9999px;
white-space: nowrap;
}
/* ---- Flagged finding (report) ---- */
.dc-row--flag {
background: rgba(199, 125, 46, 0.09);
border-left: 2px solid #c77d2e;
border-radius: 0 8px 8px 0;
padding: 6px 8px 7px;
color: #7a4413;
}
.dc-flag {
width: 12px;
height: 12px;
flex: 0 0 auto;
margin-top: 2.5px;
color: #c77d2e;
}
.dc-mismatch {
color: #a33a1f;
font-weight: 500;
white-space: nowrap;
}
.dc-row--flag strong {
color: #a33a1f;
}
/* ---- Citation chip (ellipsizes rather than clipping on narrow cards) ---- */
.dc-cite {
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
font-family: var(--dc-mono);
font-size: 9.5px;
letter-spacing: 0.02em;
color: #0b5f5e;
background: rgba(14, 124, 123, 0.1);
border-radius: 9999px;
padding: 2px 8px;
white-space: nowrap;
}
/* Inside the flagged row the chip drops to its own line. */
.dc-row--flag .dc-cite {
display: block;
width: max-content;
max-width: 100%;
margin-top: 5px;
}
/* ---- Ask chat (answer) ---- */
.dc-chat {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 2px;
}
.dc-q {
align-self: flex-end;
max-width: 88%;
background: #0d212c;
color: #f6fcff;
padding: 6px 12px;
border-radius: 14px 14px 4px 14px;
font-size: 12px;
}
.dc-a {
align-self: flex-start;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
max-width: 92%;
background: rgba(13, 33, 44, 0.05);
padding: 8px 12px;
border-radius: 14px 14px 14px 4px;
}
.dc-a-code {
font-family: var(--dc-mono);
font-size: 14px;
font-weight: 600;
letter-spacing: 0.05em;
color: #051a24;
}
/* Certificate carries only two rows — give the seal room to breathe when
the context doesn't set an explicit height. */
.dc-card--certificate { min-height: 170px; }
/* ---- Amber seal ring (certificate) ---- */
.dc-seal {
position: absolute;
right: 14px;
bottom: 12px;
width: 58px;
height: 58px;
border-radius: 50%;
border: 1.5px solid rgba(199, 125, 46, 0.7);
display: flex;
align-items: center;
justify-content: center;
color: #c77d2e;
transform: rotate(-12deg);
pointer-events: none;
}
.dc-seal::before {
content: "";
position: absolute;
inset: 4px;
border-radius: 50%;
border: 1px dashed rgba(199, 125, 46, 0.55);
}
.dc-seal-mark {
opacity: 0.9;
}
/* ---- Logo watermark ---- */
.dc-watermark {
position: absolute;
right: 12px;
bottom: 10px;
z-index: 0;
color: #051a24;
opacity: 0.06;
pointer-events: none;
}