Lanna Desk's larger work is contracts, general ones and artists', for clients who are Thai or foreign, people or organizations, with several lawyers in the team. The back office gets a Legal section (phase 9 in docs/PLAN.md): - Lawyers: license number, contact, the login of one who uses the app (then "My contracts"), in the team or left. - Clients, as record cards: person or organization, names in English and Thai, stage name or brand, a Thai ID number (checked), a passport or a registration number, the lawyer in charge. - Contracts: code LD-<year>-<n>, the general kinds and the artist kinds (recording, management, publishing, performance, license, merchandise), other party, status, lawyer, dates and value; a contract in force shows its notice day and its end ahead. Filters: general or artists, a lawyer, mine, those over. - Versions: a text kept here, a file (PDF or scan, encrypted as the client's document) or both. They never change: the database refuses UPDATE and DELETE, a version's file cannot be deleted and no document's checksum can change. Any version reads against the one before as a line diff. - Paper copies: the id <code>-P<n> to write on the paper or print as a 90 x 50 mm label with a QR code; where it lies, its state and holder, each move journaled; found again by its id. - The journal: every change in words, in the change's transaction, each entry chained to the one before by SHA-256. The database refuses to change, delete or truncate it; /journal checks the chain and every version's text and fingerprints against its entry, shows the last hash and exports CSV. The sidebar groups its sections: Legal, Visas and stays, Office. Demo data (seed-demo) adds three lawyers, six clients and seven contracts with versions, papers and moves. Documents take a third owner, the client (migration 0009). Checks: fmt, clippy, 115 unit and 62 integration tests (new: versions and the journal, the database refusing changes, a change around the app breaking the chain, paper ids and moves, the demo checking whole); screenshots of the new pages in light, dark and on a phone.
2087 lines
36 KiB
CSS
2087 lines
36 KiB
CSS
/* Lanna Desk's back office (app.lannadesk.com), in the style of the website
|
|
lannadesk.com: a printed letterhead in the light theme (warm paper, navy
|
|
ink, thin gold rules) and the same navy and gold in the dark one. Trirong
|
|
for headings and names, Sarabun for text (static/fonts.css). Navy #071323
|
|
and gold #f5c000 come from the logo, with tints of both. Status colors (--ok, --warn, --bad) appear
|
|
only on chips and notes that carry a text label. No inline styles: the
|
|
Content Security Policy allows none. */
|
|
|
|
:root {
|
|
--bg: #071323;
|
|
--panel: #0d1d33;
|
|
--panel2: #12284a;
|
|
--line: rgba(229, 236, 245, 0.12);
|
|
--stroke: rgba(229, 236, 245, 0.24);
|
|
--field: #0a182c;
|
|
--fg: #e6ebf2;
|
|
--hd: #ffffff;
|
|
--mute: #9ba8ba;
|
|
--accent: #f5c000;
|
|
--accent-s: rgba(245, 192, 0, 0.14);
|
|
--on-accent: #071323;
|
|
--link: #f5c000;
|
|
--ok: #4cc38a;
|
|
--ok-s: rgba(76, 195, 138, 0.15);
|
|
--warn: #ffb547;
|
|
--warn-s: rgba(255, 181, 71, 0.15);
|
|
--bad: #ff7a7a;
|
|
--bad-s: rgba(255, 107, 107, 0.15);
|
|
--shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
|
|
/* the small capitals over a section, and the primary button */
|
|
--label: #f5c000;
|
|
--pri: #f5c000;
|
|
--on-pri: #071323;
|
|
--top: #071323;
|
|
--top-fg: #ffffff;
|
|
--radius: 6px;
|
|
--serif: "Trirong", Georgia, "Times New Roman", serif;
|
|
--sans: "Sarabun", system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
|
|
--mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
|
|
--side: 220px;
|
|
--toph: 56px;
|
|
color-scheme: dark;
|
|
}
|
|
html[data-theme="light"] {
|
|
--bg: #fbfaf6;
|
|
--panel: #ffffff;
|
|
--panel2: #f3f0e7;
|
|
--line: #e4dfd1;
|
|
--stroke: #cfc7b3;
|
|
--field: #ffffff;
|
|
--fg: #1d2733;
|
|
--hd: #071323;
|
|
--mute: #5a6472;
|
|
--accent-s: rgba(245, 192, 0, 0.2);
|
|
--link: #0d2240;
|
|
--label: #9a7500;
|
|
--pri: #071323;
|
|
--on-pri: #ffffff;
|
|
--top: #fbfaf6;
|
|
--top-fg: #071323;
|
|
--ok: #17784a;
|
|
--ok-s: #e2f2e9;
|
|
--warn: #8f5300;
|
|
--warn-s: #fdf0d5;
|
|
--bad: #b42318;
|
|
--bad-s: #fce8e6;
|
|
--shadow: 0 1px 2px rgba(7, 19, 35, 0.04), 0 10px 24px -18px rgba(7, 19, 35, 0.25);
|
|
color-scheme: light;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
/* a jump to #doc-7 lands below the bars that stay in place */
|
|
html {
|
|
scroll-padding-top: calc(var(--toph) + 16px);
|
|
}
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font: 15.5px/1.55 var(--sans);
|
|
-webkit-font-smoothing: antialiased;
|
|
/* a gold line across the top, as on the letterhead */
|
|
border-top: 4px solid #f5c000;
|
|
}
|
|
a {
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
html[data-theme="light"] main p a,
|
|
html[data-theme="light"] main dd a {
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
color: var(--hd);
|
|
font-family: var(--serif);
|
|
line-height: 1.25;
|
|
}
|
|
h1 {
|
|
font-size: 27px;
|
|
font-weight: 500;
|
|
letter-spacing: -0.005em;
|
|
margin: 0;
|
|
}
|
|
h1 a {
|
|
color: inherit;
|
|
}
|
|
h2 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
.muted {
|
|
color: var(--mute);
|
|
}
|
|
.small {
|
|
font-size: 13px;
|
|
}
|
|
.mono {
|
|
font-family: var(--mono);
|
|
font-variant-numeric: tabular-nums;
|
|
font-size: 0.94em;
|
|
}
|
|
.strong {
|
|
font-weight: 650;
|
|
}
|
|
.sub {
|
|
font-size: 12.5px;
|
|
color: var(--mute);
|
|
}
|
|
.pre {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* ---- top bar */
|
|
.top {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
height: var(--toph);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 0 20px;
|
|
background: var(--top);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: var(--top-fg);
|
|
}
|
|
.brand:hover {
|
|
text-decoration: none;
|
|
}
|
|
.mark {
|
|
width: 32px;
|
|
height: 32px;
|
|
flex: none;
|
|
}
|
|
.brand .nm {
|
|
font-family: var(--serif);
|
|
font-weight: 600;
|
|
font-size: 20px;
|
|
letter-spacing: 0.005em;
|
|
}
|
|
.brand .sub {
|
|
color: var(--label);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
.ib {
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--stroke);
|
|
background: transparent;
|
|
color: var(--top-fg);
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
}
|
|
.ib:hover {
|
|
border-color: var(--label);
|
|
}
|
|
|
|
/* ---- frame */
|
|
.app {
|
|
display: grid;
|
|
grid-template-columns: var(--side) minmax(0, 1fr);
|
|
min-height: calc(100vh - var(--toph));
|
|
}
|
|
/* the sections stay in place under the top bar on pages of any length; a
|
|
sidebar taller than the window scrolls on its own */
|
|
.side {
|
|
position: sticky;
|
|
top: var(--toph);
|
|
z-index: 10;
|
|
align-self: start;
|
|
height: calc(100vh - var(--toph));
|
|
height: calc(100dvh - var(--toph));
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
padding: 18px 12px;
|
|
background: var(--panel);
|
|
border-right: 1px solid var(--line);
|
|
}
|
|
.nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.nav a {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius);
|
|
color: var(--fg);
|
|
font-weight: 500;
|
|
}
|
|
.nav a:hover {
|
|
background: var(--panel2);
|
|
text-decoration: none;
|
|
}
|
|
.nav a.on {
|
|
background: var(--accent-s);
|
|
color: var(--hd);
|
|
font-weight: 600;
|
|
box-shadow: inset 3px 0 0 var(--label);
|
|
}
|
|
/* the groups of sections, in the small gold capitals of the website */
|
|
.nav .navh {
|
|
margin: 14px 12px 4px;
|
|
color: var(--label);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
.nav .navh:first-child {
|
|
margin-top: 0;
|
|
}
|
|
.who {
|
|
margin-top: auto;
|
|
font-size: 13px;
|
|
color: var(--mute);
|
|
padding: 0 12px;
|
|
}
|
|
.who .k {
|
|
display: block;
|
|
color: var(--label);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.14em;
|
|
}
|
|
.who b {
|
|
display: block;
|
|
color: var(--hd);
|
|
font-size: 14px;
|
|
}
|
|
.who p {
|
|
margin: 2px 0 10px;
|
|
}
|
|
main {
|
|
padding: 24px 28px 40px;
|
|
min-width: 0;
|
|
max-width: 1200px;
|
|
width: 100%;
|
|
}
|
|
.ft {
|
|
margin-top: 28px;
|
|
font-size: 12.5px;
|
|
color: var(--mute);
|
|
}
|
|
|
|
/* ---- page heads */
|
|
.crumbs {
|
|
font-size: 13px;
|
|
color: var(--mute);
|
|
margin-bottom: 4px;
|
|
}
|
|
.pagehead {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 14px;
|
|
}
|
|
.pagehead .actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.phead {
|
|
margin-bottom: 18px;
|
|
padding-bottom: 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.phead .pagehead {
|
|
margin-bottom: 4px;
|
|
}
|
|
.meta {
|
|
margin: 0;
|
|
color: var(--mute);
|
|
}
|
|
.meta .sep {
|
|
margin: 0 6px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* ---- buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--stroke);
|
|
background: var(--panel);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
.btn:hover {
|
|
border-color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
.btn.pri {
|
|
background: var(--pri);
|
|
border-color: var(--pri);
|
|
color: var(--on-pri);
|
|
}
|
|
.btn.pri:hover {
|
|
filter: brightness(1.06);
|
|
}
|
|
.btn.sm {
|
|
padding: 5px 10px;
|
|
font-size: 13px;
|
|
}
|
|
.btn.ghost {
|
|
background: transparent;
|
|
}
|
|
.btn.danger {
|
|
color: var(--bad);
|
|
background: transparent;
|
|
}
|
|
.btn.danger:hover {
|
|
border-color: var(--bad);
|
|
background: var(--bad-s);
|
|
}
|
|
.inline-form {
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
/* the first submit button of a form with two actions: Enter saves */
|
|
.default-submit {
|
|
position: absolute;
|
|
left: -9999px;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ---- cards */
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 18px 20px;
|
|
margin-bottom: 16px;
|
|
box-shadow: var(--shadow);
|
|
min-width: 0;
|
|
}
|
|
.card > header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
.card.flush {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
.cols {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
.cols > .card {
|
|
margin-bottom: 0;
|
|
}
|
|
.cols .span2 {
|
|
grid-column: 1 / -1;
|
|
}
|
|
@media (max-width: 1060px) {
|
|
.cols {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
.kv {
|
|
display: grid;
|
|
grid-template-columns: 150px minmax(0, 1fr);
|
|
gap: 6px 14px;
|
|
margin: 0;
|
|
}
|
|
.kv dt {
|
|
color: var(--mute);
|
|
font-size: 13px;
|
|
padding-top: 1px;
|
|
}
|
|
.kv dd {
|
|
margin: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
padding: 1px 9px;
|
|
border-radius: 999px;
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
background: var(--panel2);
|
|
border: 1px solid var(--line);
|
|
}
|
|
.chip.ok {
|
|
background: var(--ok-s);
|
|
color: var(--ok);
|
|
border-color: transparent;
|
|
}
|
|
.chip.warn {
|
|
background: var(--warn-s);
|
|
color: var(--warn);
|
|
border-color: transparent;
|
|
}
|
|
.chip.bad {
|
|
background: var(--bad-s);
|
|
color: var(--bad);
|
|
border-color: transparent;
|
|
}
|
|
.tag {
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
padding: 1px 7px;
|
|
border-radius: 5px;
|
|
background: var(--accent-s);
|
|
color: var(--hd);
|
|
}
|
|
.tag.plain {
|
|
background: var(--panel2);
|
|
color: var(--mute);
|
|
}
|
|
|
|
/* ---- notes */
|
|
.notice {
|
|
padding: 10px 14px;
|
|
border-radius: 10px;
|
|
background: var(--panel2);
|
|
border: 1px solid var(--line);
|
|
margin: 0 0 14px;
|
|
}
|
|
.notice.warn {
|
|
background: var(--warn-s);
|
|
border-color: transparent;
|
|
}
|
|
.notice.ok {
|
|
background: var(--ok-s);
|
|
border-color: transparent;
|
|
}
|
|
.okline {
|
|
margin: 0;
|
|
color: var(--ok);
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
.hintline {
|
|
margin: 8px 0 0;
|
|
color: var(--warn);
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ---- tables */
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
.toolbar .filter {
|
|
flex: 1 1 240px;
|
|
max-width: 440px;
|
|
}
|
|
.tblwrap {
|
|
overflow-x: auto;
|
|
}
|
|
.tbl {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.tbl th {
|
|
text-align: left;
|
|
font-size: 11.5px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--mute);
|
|
background: var(--panel2);
|
|
padding: 9px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
white-space: nowrap;
|
|
}
|
|
.tbl td {
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
vertical-align: top;
|
|
}
|
|
.tbl tbody tr:last-child td {
|
|
border-bottom: 0;
|
|
}
|
|
.tbl tbody tr:hover {
|
|
background: var(--panel2);
|
|
}
|
|
.filter-empty {
|
|
margin: 0;
|
|
padding: 14px;
|
|
color: var(--mute);
|
|
}
|
|
@media (max-width: 760px) {
|
|
.tbl .hs {
|
|
display: none;
|
|
}
|
|
.tbl th,
|
|
.tbl td {
|
|
padding: 9px 10px;
|
|
}
|
|
}
|
|
|
|
/* ---- record lists inside cards */
|
|
.item {
|
|
padding: 12px 0;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
.item:first-of-type {
|
|
border-top: 0;
|
|
padding-top: 0;
|
|
}
|
|
.item.old {
|
|
opacity: 0.78;
|
|
}
|
|
.item .row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 6px;
|
|
}
|
|
.rowactions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 14px;
|
|
font-size: 13px;
|
|
margin-top: 6px;
|
|
}
|
|
/* a record's documents, next to its Edit */
|
|
.rowactions .doclink {
|
|
padding: 0 7px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 5px;
|
|
background: var(--panel2);
|
|
color: var(--fg);
|
|
}
|
|
.empty-inline {
|
|
margin: 0;
|
|
color: var(--mute);
|
|
}
|
|
.addr {
|
|
margin: 0 0 8px;
|
|
}
|
|
.log {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 13px;
|
|
}
|
|
.log li {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
padding: 6px 0;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
.log li:first-child {
|
|
border-top: 0;
|
|
}
|
|
.log .when {
|
|
color: var(--mute);
|
|
min-width: 140px;
|
|
}
|
|
|
|
/* ---- forms */
|
|
.form .grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 14px 16px;
|
|
}
|
|
.form .wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
@media (max-width: 700px) {
|
|
.form .grid {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
.field label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
color: var(--hd);
|
|
margin-bottom: 4px;
|
|
}
|
|
input,
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--stroke);
|
|
border-radius: 8px;
|
|
background: var(--field);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
}
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 0;
|
|
border-color: var(--accent);
|
|
}
|
|
.field.has-err input,
|
|
.field.has-err select,
|
|
.field.has-err textarea {
|
|
border-color: var(--bad);
|
|
}
|
|
textarea {
|
|
resize: vertical;
|
|
}
|
|
textarea.mrz {
|
|
font-family: var(--mono);
|
|
font-size: 15px;
|
|
letter-spacing: 0.05em;
|
|
line-height: 1.6;
|
|
}
|
|
.hint {
|
|
font-size: 12.5px;
|
|
color: var(--mute);
|
|
margin: 4px 0 0;
|
|
}
|
|
.lead {
|
|
margin: -4px 0 12px;
|
|
font-size: 14px;
|
|
}
|
|
.err {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--bad);
|
|
margin: 4px 0 0;
|
|
}
|
|
.req {
|
|
color: var(--bad);
|
|
}
|
|
.formactions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-top: 12px;
|
|
}
|
|
.dangerzone {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-top: 22px;
|
|
padding-top: 14px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
/* ---- tabs of a person */
|
|
.phead.tabbed {
|
|
border-bottom: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
.tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
margin-top: 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
overflow-x: auto;
|
|
}
|
|
.tabs a {
|
|
padding: 8px 14px;
|
|
color: var(--mute);
|
|
font-weight: 600;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
white-space: nowrap;
|
|
}
|
|
.tabs a:hover {
|
|
color: var(--hd);
|
|
text-decoration: none;
|
|
}
|
|
.tabs a.on {
|
|
color: var(--hd);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
.tabs .tab-short {
|
|
display: none;
|
|
}
|
|
/* six tabs fit a phone: "Visa and stay" becomes "Stay" */
|
|
@media (max-width: 560px) {
|
|
.tabs {
|
|
gap: 0;
|
|
}
|
|
.tabs a {
|
|
padding: 8px 6px;
|
|
font-size: 13.5px;
|
|
}
|
|
.tabs .tab-long {
|
|
display: none;
|
|
}
|
|
.tabs .tab-short {
|
|
display: inline;
|
|
}
|
|
}
|
|
@media (max-width: 380px) {
|
|
.tabs a {
|
|
padding: 8px 5px;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
/* ---- status and deadlines */
|
|
.stayline {
|
|
margin: 0 0 10px;
|
|
}
|
|
.stayline.bad {
|
|
color: var(--bad);
|
|
font-weight: 600;
|
|
}
|
|
.dl {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.dl li {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 2px 12px;
|
|
padding: 10px 0;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
.dl li:first-child {
|
|
border-top: 0;
|
|
}
|
|
.dl-what {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px 10px;
|
|
align-items: baseline;
|
|
}
|
|
.dl-when {
|
|
color: var(--mute);
|
|
font-size: 13px;
|
|
}
|
|
.dl li > .chip {
|
|
align-self: start;
|
|
justify-self: end;
|
|
}
|
|
.dl-note {
|
|
grid-column: 1 / -1;
|
|
margin: 0;
|
|
font-size: 13.5px;
|
|
color: var(--mute);
|
|
}
|
|
.summary {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
.sel {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.sel select {
|
|
width: auto;
|
|
min-width: 170px;
|
|
max-width: 100%;
|
|
}
|
|
.nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
.tbl .note {
|
|
min-width: 260px;
|
|
max-width: 440px;
|
|
}
|
|
.linkbtn {
|
|
background: none;
|
|
border: 0;
|
|
padding: 0;
|
|
color: var(--link);
|
|
font: inherit;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
.linkbtn:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.hire {
|
|
margin-top: 14px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
.hire label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
color: var(--hd);
|
|
margin-bottom: 4px;
|
|
}
|
|
.hire-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.hire-row select {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* ---- documents: the upload strip, the list, a preview */
|
|
.vh {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip-path: inset(50%);
|
|
white-space: nowrap;
|
|
}
|
|
.upload {
|
|
margin: 0 0 16px;
|
|
}
|
|
.upload .notice {
|
|
margin-bottom: 10px;
|
|
}
|
|
.drop {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 4px 10px;
|
|
padding: 9px 14px;
|
|
border: 1.5px dashed var(--stroke);
|
|
border-radius: 10px;
|
|
background: var(--field);
|
|
color: var(--mute);
|
|
}
|
|
.drop:hover,
|
|
.drop.over {
|
|
border-color: var(--accent);
|
|
background: var(--accent-s);
|
|
color: var(--fg);
|
|
}
|
|
.drop:focus-within {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
.drop.has-err {
|
|
border-color: var(--bad);
|
|
}
|
|
/* the file input covers the strip: a click opens the chooser, and files
|
|
dropped anywhere on it land in the input, with or without script */
|
|
.drop input[type="file"] {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
}
|
|
.drop label {
|
|
font-size: 14px;
|
|
}
|
|
.drop label b {
|
|
color: var(--link);
|
|
}
|
|
.drop .hint {
|
|
margin: 0 0 0 auto;
|
|
}
|
|
.drop-icon {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 6px;
|
|
background: var(--accent-s);
|
|
color: var(--hd);
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
}
|
|
.drop-names {
|
|
color: var(--fg);
|
|
font-size: 13.5px;
|
|
font-weight: 650;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.drop-names:empty {
|
|
display: none;
|
|
}
|
|
.drop-names.bad {
|
|
color: var(--bad);
|
|
}
|
|
.upload-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.5fr) 165px minmax(140px, 1fr) auto;
|
|
gap: 10px 12px;
|
|
align-items: end;
|
|
margin-top: 10px;
|
|
}
|
|
.upload-row.company {
|
|
grid-template-columns: minmax(200px, 1.3fr) 165px minmax(160px, 1.4fr) auto;
|
|
}
|
|
@media (max-width: 1060px) {
|
|
.upload-row,
|
|
.upload-row.company {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
@media (max-width: 560px) {
|
|
.upload-row,
|
|
.upload-row.company {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
.upload-row .field {
|
|
min-width: 0;
|
|
}
|
|
/* ---- a company's office: its photo beside the position on the map */
|
|
.office {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
|
|
gap: 16px 24px;
|
|
align-items: start;
|
|
}
|
|
.office-pic img,
|
|
.office-none {
|
|
display: block;
|
|
width: 100%;
|
|
aspect-ratio: 4 / 3;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel2);
|
|
}
|
|
.office-pic img {
|
|
object-fit: cover;
|
|
}
|
|
.office-pic p {
|
|
margin: 6px 0 0;
|
|
}
|
|
.office-none {
|
|
display: grid;
|
|
place-items: center;
|
|
border: 1.5px dashed var(--stroke);
|
|
color: var(--mute);
|
|
font-size: 13.5px;
|
|
}
|
|
.maplinks {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px 14px;
|
|
margin-left: 14px;
|
|
}
|
|
.office-info .hint {
|
|
margin: 10px 0 0;
|
|
}
|
|
.office-up {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 8px 10px;
|
|
align-items: center;
|
|
margin: 14px 0 0;
|
|
}
|
|
.office-up > .notice {
|
|
grid-column: 1 / -1;
|
|
margin: 0;
|
|
}
|
|
@media (max-width: 700px) {
|
|
.office,
|
|
.office-up {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.maplinks {
|
|
display: flex;
|
|
margin: 2px 0 0;
|
|
}
|
|
}
|
|
|
|
/* ---- a heading inside a form, over the whole row */
|
|
.fsec {
|
|
grid-column: 1 / -1;
|
|
margin: 18px 0 4px;
|
|
font-size: 14.5px;
|
|
font-weight: 750;
|
|
color: var(--hd);
|
|
}
|
|
.grid > .fsec:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* ---- the Forms tab: each form with its links and what it still lacks */
|
|
.paper {
|
|
padding: 12px 0;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
.paper:first-of-type {
|
|
border-top: 0;
|
|
padding-top: 4px;
|
|
}
|
|
.paper-head {
|
|
display: grid;
|
|
grid-template-columns: 62px minmax(0, 1fr) auto;
|
|
gap: 8px 12px;
|
|
align-items: start;
|
|
}
|
|
.paper-code {
|
|
padding: 2px 0;
|
|
border-radius: 6px;
|
|
background: var(--accent-s);
|
|
color: var(--hd);
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
.paper-go {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
.paper-missing {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 4px 12px;
|
|
margin: 8px 0 0 74px;
|
|
font-size: 13.5px;
|
|
}
|
|
.appform .grid + .fsec {
|
|
margin-top: 20px;
|
|
}
|
|
/* the forms get the wider column */
|
|
.cols.papers {
|
|
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
|
|
}
|
|
@media (max-width: 1060px) {
|
|
.cols.papers {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
@media (max-width: 560px) {
|
|
.paper-head {
|
|
grid-template-columns: 58px minmax(0, 1fr);
|
|
}
|
|
.paper-go {
|
|
grid-column: 2;
|
|
}
|
|
.paper-missing {
|
|
margin-left: 70px;
|
|
}
|
|
}
|
|
|
|
/* ---- the Pack tab and a company's part of the packs: a checklist */
|
|
.checklist {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.ci {
|
|
display: grid;
|
|
grid-template-columns: 96px minmax(0, 1fr);
|
|
gap: 4px 12px;
|
|
align-items: start;
|
|
padding: 10px 0;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
.ci:first-child {
|
|
border-top: 0;
|
|
padding-top: 2px;
|
|
}
|
|
.ci > .chip {
|
|
justify-self: start;
|
|
margin-top: 1px;
|
|
}
|
|
.ci-what {
|
|
font-weight: 650;
|
|
color: var(--hd);
|
|
}
|
|
.ci-what .paper-code {
|
|
display: inline-block;
|
|
padding: 0 7px;
|
|
margin-right: 2px;
|
|
}
|
|
.ci-note {
|
|
margin: 2px 0 0;
|
|
font-size: 13.5px;
|
|
color: var(--mute);
|
|
}
|
|
.ci-blanks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 2px 12px;
|
|
margin: 4px 0 0;
|
|
font-size: 13.5px;
|
|
}
|
|
.ci .rowactions {
|
|
margin-top: 4px;
|
|
}
|
|
.ci:target {
|
|
background: var(--accent-s);
|
|
}
|
|
@media (max-width: 560px) {
|
|
.ci {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
/* the list runs to the card's edges */
|
|
.tblwrap.bleed {
|
|
margin: 0 -20px -18px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
/* a kind's name on one or two lines, not broken before its last word */
|
|
.docs .docname {
|
|
min-width: 190px;
|
|
}
|
|
.docs .acts {
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
font-size: 13px;
|
|
}
|
|
.docs .acts a + a {
|
|
margin-left: 12px;
|
|
}
|
|
.docs .fname {
|
|
max-width: 220px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.docs .ps {
|
|
display: none;
|
|
}
|
|
.tbl tbody tr:target td {
|
|
background: var(--accent-s);
|
|
}
|
|
.ftype {
|
|
display: inline-block;
|
|
padding: 0 5px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: var(--panel2);
|
|
color: var(--mute);
|
|
font: 700 10.5px/1.5 var(--mono);
|
|
}
|
|
@media (max-width: 760px) {
|
|
.docs .ps {
|
|
display: block;
|
|
}
|
|
/* on a phone the actions stack, so none is cut off at the edge */
|
|
.docs .acts a {
|
|
display: block;
|
|
padding: 3px 0;
|
|
}
|
|
.docs .acts a + a {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
.card > header .actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.preview {
|
|
display: block;
|
|
margin: 0 0 14px;
|
|
}
|
|
.preview img {
|
|
display: block;
|
|
max-width: 100%;
|
|
max-height: 420px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--panel2);
|
|
}
|
|
|
|
/* ---- a page outside the frame */
|
|
.solo {
|
|
max-width: 560px;
|
|
margin: 64px auto;
|
|
padding: 0 16px;
|
|
}
|
|
.solo .eyebrow {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--mute);
|
|
}
|
|
|
|
/* ---- phones */
|
|
@media (max-width: 860px) {
|
|
.app {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
/* on phones the sections are a row that stays under the top bar */
|
|
html {
|
|
scroll-padding-top: calc(var(--toph) + 66px);
|
|
}
|
|
.side {
|
|
height: auto;
|
|
overflow: visible;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-right: 0;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
/* one row that scrolls sideways when the sections do not fit, so it
|
|
keeps its height and place on every page */
|
|
.nav {
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
.nav::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
/* the groups' names fit no row: a thin rule parts them instead */
|
|
.nav .navh {
|
|
width: 1px;
|
|
margin: 6px 4px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
color: transparent;
|
|
background: var(--line);
|
|
flex: 0 0 1px;
|
|
}
|
|
.nav .navh:first-child {
|
|
display: none;
|
|
}
|
|
.nav a {
|
|
padding: 6px 8px;
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
flex: 0 0 auto;
|
|
}
|
|
.who {
|
|
margin: 0 0 0 auto;
|
|
padding: 0;
|
|
}
|
|
.who .k,
|
|
.who b,
|
|
.who p {
|
|
display: none;
|
|
}
|
|
main {
|
|
padding: 16px 14px 32px;
|
|
}
|
|
.card {
|
|
padding: 14px;
|
|
}
|
|
.tblwrap.bleed {
|
|
margin: 0 -14px -14px;
|
|
}
|
|
.kv {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 2px;
|
|
}
|
|
.kv dt {
|
|
margin-top: 8px;
|
|
}
|
|
}
|
|
|
|
/* the passport photo reader: a camera button, and a picture button whose
|
|
file input covers it, so a tap or a click lands on it */
|
|
.mrzphoto {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
.mrzphoto[hidden],
|
|
.mrzphoto [hidden],
|
|
.mrz-status[hidden] {
|
|
display: none;
|
|
}
|
|
.mrzphoto.busy {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
}
|
|
.filebtn {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.filebtn input[type="file"] {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
}
|
|
.filebtn:focus-within {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
.mrz-status {
|
|
margin: 0;
|
|
flex-basis: 100%;
|
|
}
|
|
.mrz-status[data-state="error"] {
|
|
color: var(--bad);
|
|
}
|
|
|
|
/* the camera view: the video fills the screen, the frame of the photo page
|
|
darkens what lies outside it, the band marks the two lines */
|
|
.cam-open,
|
|
.cam-open body {
|
|
overflow: hidden;
|
|
}
|
|
.cam {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
background: #000;
|
|
color: #fff;
|
|
}
|
|
.cam-video {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
.cam-frame {
|
|
position: absolute;
|
|
border: 2px solid rgba(255, 255, 255, 0.9);
|
|
border-radius: 14px;
|
|
box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
|
|
}
|
|
.cam-band {
|
|
position: absolute;
|
|
left: 3%;
|
|
top: 70%;
|
|
width: 94%;
|
|
height: 27%;
|
|
border: 2px dashed #f5c000;
|
|
border-radius: 6px;
|
|
}
|
|
.cam-band span {
|
|
position: absolute;
|
|
top: -24px;
|
|
left: 0;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #f5c000;
|
|
}
|
|
.cam.good .cam-frame {
|
|
border-color: #3ccf6e;
|
|
}
|
|
.cam.good .cam-band {
|
|
border-style: solid;
|
|
border-color: #3ccf6e;
|
|
}
|
|
.cam.good .cam-band span {
|
|
color: #3ccf6e;
|
|
}
|
|
.cam-hint {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 84px;
|
|
transform: translateX(-50%);
|
|
width: max-content;
|
|
max-width: calc(100% - 32px);
|
|
margin: 0;
|
|
padding: 8px 14px;
|
|
border-radius: 8px;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
font-size: 15px;
|
|
text-align: center;
|
|
}
|
|
.cam-bar {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 16px 16px max(16px, env(safe-area-inset-bottom));
|
|
}
|
|
|
|
/* ---- the client link: the card on a person's page and the page that
|
|
shows a new link once */
|
|
.chip.plain {
|
|
background: var(--panel2);
|
|
color: var(--mute);
|
|
}
|
|
.changes {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
}
|
|
.linkrow {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin: 12px 0;
|
|
}
|
|
.linkrow input {
|
|
flex: 1 1 280px;
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
}
|
|
.qr {
|
|
width: 240px;
|
|
max-width: 100%;
|
|
padding: 10px;
|
|
margin: 4px 0 14px;
|
|
background: #ffffff;
|
|
border-radius: 8px;
|
|
}
|
|
.qr svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
/* ---- the client's pages (/c/<token>): one column, phone first */
|
|
.cmain {
|
|
max-width: 680px;
|
|
margin: 0 auto;
|
|
padding: 20px 16px 40px;
|
|
}
|
|
.cmain .card {
|
|
margin-bottom: 14px;
|
|
}
|
|
.chead {
|
|
margin: 4px 0 8px;
|
|
}
|
|
.lead2 {
|
|
margin: 0 0 16px;
|
|
color: var(--mute);
|
|
}
|
|
.parts {
|
|
list-style: none;
|
|
margin: 0 0 16px;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
.part {
|
|
display: grid;
|
|
grid-template-columns: 32px minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 6px 12px;
|
|
padding: 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: var(--panel);
|
|
color: var(--fg);
|
|
text-decoration: none;
|
|
}
|
|
.part:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
.pmark {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 700;
|
|
background: var(--panel2);
|
|
color: var(--hd);
|
|
}
|
|
.part.done .pmark {
|
|
background: var(--ok-s);
|
|
color: var(--ok);
|
|
}
|
|
.pbody {
|
|
display: grid;
|
|
gap: 2px;
|
|
}
|
|
/* on phones the state goes under the text */
|
|
@media (max-width: 520px) {
|
|
.part {
|
|
grid-template-columns: 32px minmax(0, 1fr);
|
|
align-items: start;
|
|
}
|
|
.part .chip {
|
|
grid-column: 2;
|
|
justify-self: start;
|
|
}
|
|
}
|
|
.sendcard h2 {
|
|
margin-top: 0;
|
|
}
|
|
.cmain .upload .field {
|
|
margin-bottom: 12px;
|
|
}
|
|
.cmain .upload .drop {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* ---- agreements: the text as clients read it, the signature pad */
|
|
.agtext h3 {
|
|
margin: 16px 0 6px;
|
|
font-size: 16px;
|
|
color: var(--hd);
|
|
}
|
|
.agtext h3:first-child {
|
|
margin-top: 0;
|
|
}
|
|
.agtext p,
|
|
.agtext li {
|
|
line-height: 1.55;
|
|
}
|
|
.agtext p {
|
|
margin: 0 0 10px;
|
|
}
|
|
.agtext ul {
|
|
margin: 0 0 10px;
|
|
padding-left: 22px;
|
|
}
|
|
.agcard {
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
.agcols {
|
|
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
|
|
}
|
|
@media (max-width: 1060px) {
|
|
.agcols {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
.agrow {
|
|
flex-wrap: wrap;
|
|
margin-bottom: 8px;
|
|
}
|
|
label.check {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
font-weight: 600;
|
|
}
|
|
label.check input {
|
|
width: auto;
|
|
margin-top: 3px;
|
|
flex: 0 0 auto;
|
|
}
|
|
.sigpad {
|
|
display: block;
|
|
width: 100%;
|
|
height: 170px;
|
|
border: 1px dashed var(--stroke);
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
touch-action: none;
|
|
cursor: crosshair;
|
|
}
|
|
.sigbar {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin-top: 6px;
|
|
}
|
|
#sign-form h2 {
|
|
margin-top: 0;
|
|
}
|
|
#sign-form .field {
|
|
margin-bottom: 14px;
|
|
}
|
|
/* a version's SHA-256 breaks anywhere rather than widening the page */
|
|
#versions .mono {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
@media (max-width: 420px) {
|
|
.nav a {
|
|
padding: 6px 6px;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
/* a part of the client link that opens once the agreements are signed */
|
|
.part.locked {
|
|
opacity: 0.72;
|
|
border-style: dashed;
|
|
}
|
|
.part.locked:hover {
|
|
border-color: var(--line);
|
|
}
|
|
|
|
/* ---- People as record cards, like the website's example record: the
|
|
name in Trirong beside a monogram, a status chip, small gold capitals
|
|
over each part, dashed rules between the dates */
|
|
.viewswitch {
|
|
display: inline-flex;
|
|
margin: 0 0 14px;
|
|
border: 1px solid var(--stroke);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
font-size: 13.5px;
|
|
}
|
|
.viewswitch a {
|
|
padding: 5px 14px;
|
|
color: var(--fg);
|
|
}
|
|
.viewswitch a + a {
|
|
border-left: 1px solid var(--stroke);
|
|
}
|
|
.viewswitch a.on {
|
|
background: var(--accent-s);
|
|
color: var(--hd);
|
|
font-weight: 600;
|
|
}
|
|
.viewswitch a:hover {
|
|
text-decoration: none;
|
|
background: var(--panel2);
|
|
}
|
|
.rcards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
|
|
gap: 18px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.rcard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px 22px 16px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-top: 3px solid #f5c000;
|
|
border-radius: 2px;
|
|
box-shadow: var(--shadow);
|
|
min-width: 0;
|
|
}
|
|
.rc-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding-bottom: 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
color: inherit;
|
|
}
|
|
.rc-head:hover {
|
|
text-decoration: none;
|
|
}
|
|
.rc-head:hover .rc-name {
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--label);
|
|
text-underline-offset: 3px;
|
|
}
|
|
.rc-mono {
|
|
display: grid;
|
|
place-items: center;
|
|
flex: none;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 7px;
|
|
background: #071323;
|
|
color: #f5c000;
|
|
font-family: var(--serif);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
html[data-theme="dark"] .rc-mono {
|
|
background: var(--panel2);
|
|
}
|
|
.rc-who {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
.rc-name {
|
|
color: var(--hd);
|
|
font-family: var(--serif);
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.rc-sub {
|
|
color: var(--mute);
|
|
font-size: 13.5px;
|
|
}
|
|
.rc-sub span {
|
|
white-space: nowrap;
|
|
}
|
|
.rc-head .chip {
|
|
margin-left: auto;
|
|
align-self: flex-start;
|
|
}
|
|
.rc-label {
|
|
margin: 14px 0 4px;
|
|
color: var(--label);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
.rc-stay {
|
|
margin: 0;
|
|
font-size: 14.5px;
|
|
}
|
|
.rc-dates {
|
|
margin: 0;
|
|
}
|
|
.rc-dates div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 6px 0;
|
|
border-bottom: 1px dashed var(--line);
|
|
font-size: 14.5px;
|
|
}
|
|
.rc-dates div:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
.rc-dates dd {
|
|
margin: 0;
|
|
color: var(--hd);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.rc-dates .bad dd {
|
|
color: var(--bad);
|
|
}
|
|
.rc-dates .warn dd {
|
|
color: var(--warn);
|
|
}
|
|
.rc-none {
|
|
margin: 0;
|
|
font-size: 14.5px;
|
|
}
|
|
.rc-foot {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px 12px;
|
|
margin-top: auto;
|
|
padding-top: 14px;
|
|
font-size: 13px;
|
|
color: var(--mute);
|
|
}
|
|
.rc-dates + .rc-foot,
|
|
.rc-none + .rc-foot {
|
|
margin-top: 12px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
@media (max-width: 760px) {
|
|
.rcards {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
/* ---- The legal practice: clients, contracts, versions, paper copies and
|
|
the journal */
|
|
.rc-mono.org {
|
|
border-radius: 2px;
|
|
}
|
|
.rc-mono.big {
|
|
width: 52px;
|
|
height: 52px;
|
|
font-size: 20px;
|
|
}
|
|
.titled {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
.titled .meta {
|
|
margin: 2px 0 0;
|
|
}
|
|
.rc-th {
|
|
margin: 10px 0 0;
|
|
color: var(--mute);
|
|
font-size: 14px;
|
|
}
|
|
.tag.gold {
|
|
background: var(--accent-s);
|
|
color: var(--hd);
|
|
border-color: transparent;
|
|
}
|
|
.sechead {
|
|
margin: 26px 0 8px;
|
|
}
|
|
.sechead.first {
|
|
margin-top: 6px;
|
|
}
|
|
.cols + .card {
|
|
margin-top: 18px;
|
|
}
|
|
.cols + .sechead,
|
|
.sechead.first + .card,
|
|
.sechead.first + .card.flush {
|
|
margin-bottom: 18px;
|
|
}
|
|
.tbl td.nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
.ccode {
|
|
color: var(--label);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
.findpaper {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px 14px;
|
|
margin: 0 0 14px;
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
}
|
|
.findpaper .inline {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.findpaper input {
|
|
width: 15em;
|
|
}
|
|
.vlinks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 12px;
|
|
margin: 4px 0;
|
|
}
|
|
.pcode {
|
|
color: var(--hd);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.pacts {
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
details.move {
|
|
position: relative;
|
|
display: inline-block;
|
|
text-align: left;
|
|
}
|
|
details.move summary {
|
|
list-style: none;
|
|
cursor: pointer;
|
|
}
|
|
details.move summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
details.move[open] .mini {
|
|
position: absolute;
|
|
right: 0;
|
|
z-index: 5;
|
|
display: grid;
|
|
gap: 8px;
|
|
width: min(360px, 80vw);
|
|
margin-top: 6px;
|
|
padding: 14px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
white-space: normal;
|
|
}
|
|
.mini label {
|
|
display: grid;
|
|
gap: 3px;
|
|
font-size: 13px;
|
|
color: var(--mute);
|
|
}
|
|
.diff {
|
|
font-size: 14.5px;
|
|
line-height: 1.55;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
.diff .dl {
|
|
padding: 1px 12px;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.diff .dl.added {
|
|
background: color-mix(in srgb, var(--ok) 14%, transparent);
|
|
box-shadow: inset 3px 0 0 var(--ok);
|
|
}
|
|
.diff .dl.removed {
|
|
background: color-mix(in srgb, var(--bad) 12%, transparent);
|
|
box-shadow: inset 3px 0 0 var(--bad);
|
|
}
|
|
.diff ins {
|
|
text-decoration: none;
|
|
}
|
|
.diff del {
|
|
color: var(--mute);
|
|
}
|
|
.jlist {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.jlist li {
|
|
padding: 10px 0;
|
|
border-bottom: 1px dashed var(--line);
|
|
}
|
|
.jlist li:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
.jhead {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 4px 10px;
|
|
}
|
|
.jseq {
|
|
color: var(--label);
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
}
|
|
.jdetail {
|
|
margin: 3px 0 2px;
|
|
font-size: 14px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.jhash {
|
|
color: var(--mute);
|
|
font-size: 11.5px;
|
|
}
|
|
.hashline {
|
|
overflow-wrap: anywhere;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
/* A paper's label: 90 x 50 mm, printed alone */
|
|
.labelpage {
|
|
padding: 24px;
|
|
}
|
|
.labelbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-bottom: 18px;
|
|
}
|
|
.plabel {
|
|
display: flex;
|
|
gap: 4mm;
|
|
align-items: center;
|
|
width: 90mm;
|
|
height: 50mm;
|
|
box-sizing: border-box;
|
|
padding: 3mm 4mm;
|
|
background: #ffffff;
|
|
color: #071323;
|
|
border: 0.3mm solid #071323;
|
|
border-top: 1.4mm solid #f5c000;
|
|
overflow: hidden;
|
|
}
|
|
.pl-qr {
|
|
flex: none;
|
|
width: 30mm;
|
|
}
|
|
.pl-qr svg {
|
|
display: block;
|
|
width: 30mm;
|
|
height: 30mm;
|
|
}
|
|
.pl-text {
|
|
min-width: 0;
|
|
line-height: 1.25;
|
|
}
|
|
.pl-brand {
|
|
color: #9a7500;
|
|
font-size: 7pt;
|
|
font-weight: 600;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
.pl-code {
|
|
font-size: 12.5pt;
|
|
font-weight: 700;
|
|
margin: 0.5mm 0 1mm;
|
|
white-space: nowrap;
|
|
}
|
|
.pl-title {
|
|
font-family: var(--serif);
|
|
font-size: 9pt;
|
|
font-weight: 600;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.pl-line,
|
|
.pl-where {
|
|
font-size: 7pt;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.pl-where {
|
|
margin-top: 1mm;
|
|
font-weight: 600;
|
|
}
|
|
.labelhint {
|
|
max-width: 90mm;
|
|
color: var(--mute);
|
|
font-size: 13px;
|
|
}
|
|
@media print {
|
|
@page {
|
|
size: 90mm 50mm;
|
|
margin: 0;
|
|
}
|
|
body.labelpage {
|
|
padding: 0;
|
|
border: 0;
|
|
background: #ffffff;
|
|
}
|
|
.labelbar,
|
|
.labelhint {
|
|
display: none;
|
|
}
|
|
.plabel {
|
|
border: 0;
|
|
border-top: 1.4mm solid #f5c000;
|
|
}
|
|
}
|