/* Private team pages (owner and factory) and the customer tracking page. Not part of the public site bundle. */
:root { --tm-ink: #16181F; --tm-muted: #5A6070; --tm-line: #E4E1DE; --tm-bg: #F6F5F4; --tm-card: #FFFFFF; --tm-red: #C4132F; --tm-dark: #11141B; --tm-green: #1F8A5B; --tm-amber: #B7791F; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--tm-ink); background: var(--tm-bg); }
a { color: var(--tm-red); }
h1 { font-size: 1.7rem; margin: 0 0 18px; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 26px 0 10px; }
h3 { font-size: 1rem; margin: 0 0 6px; }
.tm-bar { background: var(--tm-dark); color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 16px; min-height: 52px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.tm-brand { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .03em; padding: 14px 0; }
.tm-brand small { font-weight: 400; opacity: .7; }
.tm-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; }
.tm-nav a { color: #C4CAD6; text-decoration: none; padding: 15px 11px; white-space: nowrap; border-bottom: 3px solid transparent; }
.tm-nav a.on, .tm-nav a:hover { color: #fff; border-bottom-color: var(--tm-red); }
.tm-who { font-size: 13px; color: #C4CAD6; display: flex; gap: 12px; align-items: center; flex: none; }
.tm-who a { color: #fff; }
.tm-badge { background: var(--tm-red); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 12px; }
.tm-main { max-width: 1120px; margin: 0 auto; padding: 22px 16px 60px; }
.tm-card { background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: 8px; padding: 16px 18px; margin: 0 0 14px; }
.tm-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tm-flash { padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; }
.tm-ok { background: #E6F4EC; color: #14583A; }
.tm-err { background: #FBE9EC; color: #8E0F22; }
.tm-warn { background: #FFF4DB; color: #7A4B00; }
.tm-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 12px; background: #ECEAE8; color: #3a3f4b; white-space: nowrap; }
.tm-c-done { background: #DDF1E6; color: #14583A; }
.tm-c-doing { background: #DCE9FB; color: #123E7C; }
.tm-c-skip { background: #EEE; color: #666; }
.tm-c-todo { background: #F3EBD9; color: #6B4C0E; }
table.tm-t { width: 100%; border-collapse: collapse; background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: 8px; overflow: hidden; }
.tm-t th, .tm-t td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--tm-line); vertical-align: top; }
.tm-t th { background: #FAF9F8; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tm-muted); }
.tm-t tr:last-child td { border-bottom: 0; }
.tm-scroll { overflow-x: auto; }
label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], select, textarea { width: 100%; padding: 10px 11px; border: 1px solid #CFCAC6; border-radius: 6px; font: inherit; background: #fff; }
textarea { min-height: 84px; }
.tm-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.btn, button.btn { display: inline-block; background: var(--tm-red); color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.alt { background: #fff; color: var(--tm-ink); border: 1px solid #CFCAC6; }
.btn.green { background: var(--tm-green); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tm-muted { color: var(--tm-muted); }
.tm-small { font-size: 13px; }
.tm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tm-need { border-left: 4px solid var(--tm-red); }
.tm-bar2 { height: 8px; background: #E9E6E3; border-radius: 4px; overflow: hidden; }
.tm-bar2 > i { display: block; height: 100%; background: var(--tm-green); }
.tm-item { border: 1px solid var(--tm-line); border-radius: 8px; background: #fff; margin: 0 0 12px; }
.tm-item > summary { padding: 12px 14px; cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tm-item > summary::-webkit-details-marker { display: none; }
.tm-steps { list-style: none; margin: 0; padding: 0 14px 12px; }
.tm-steps li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tm-line); flex-wrap: wrap; }
.tm-steps .l { flex: 1; min-width: 150px; }
.tm-photos { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px; }
.tm-photos a { display: block; width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: #222; }
.tm-photos img, .tm-photos video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-clock { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-login { max-width: 400px; margin: 60px auto; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 720px) { .tm-main { padding: 16px 12px 50px; } h1 { font-size: 1.4rem; } .tm-bar { gap: 8px; } }
