@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); }
:root {
  --bg: #0a1626; --bg2: #0d1d33; --panel: #11243d; --panel2: #162d4b; --line: #233d60; --line2: #2e4d77;
  --text: #e9eff7; --muted: #8fa6c3; --dim: #6a83a3;
  --orange: #ff7a1a; --orange2: #ff9b4d; --orange-soft: rgba(255,122,26,.14);
  --green: #2fcf8f; --red: #ff5d62; --yellow: #ffc145; --blue: #4ea8ff; --purple: #a98bff;
  --radius: 14px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--orange2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.sidebar { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(10,22,38,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .brand-mini { display: flex; align-items: center; }
.view { padding: 16px 16px calc(96px + var(--safe-b)); max-width: 1180px; width: 100%; margin: 0 auto; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(13,29,51,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--orange); }
.tabbar a.fab span.plus { display: grid; place-items: center; width: 40px; height: 30px; border-radius: 10px; background: var(--orange); color: #111; margin-bottom: -1px; }
.tabbar a.fab span.plus svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 248px 1fr; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--bg2); border-right: 1px solid var(--line); padding: 20px 14px; gap: 6px; }
  .tabbar { display: none; }
  .view { padding: 24px 32px 48px; }
  .topbar { padding: 14px 32px; }
  .topbar .brand-mini { display: none; }
  .topbar h1 { font-size: 21px; }
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand b { font-size: 16px; display: block; } .side-brand small { color: var(--orange); font-weight: 700; letter-spacing: .12em; font-size: 10.5px; text-transform: uppercase; }
.navlink { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.navlink svg { width: 20px; height: 20px; }
.navlink:hover { background: var(--panel); color: var(--text); }
.navlink.active { background: var(--orange-soft); color: var(--orange); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.userchip { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line2); font-weight: 700; font-size: 13px; color: var(--orange2); flex: none; }

/* ---------- status chip ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line2); color: var(--muted); background: var(--panel); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip.ok { color: var(--green); } .chip.warn { color: var(--yellow); } .chip.bad { color: var(--red); } .chip.info { color: var(--blue); }
.chip.syncing i { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.offline-banner { background: #3a2a10; color: var(--yellow); border-bottom: 1px solid #5c4316; padding: 7px 16px; font-size: 13px; font-weight: 600; text-align: center; }

/* ---------- cards / kpis ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.card-head h3 { margin: 0; }
.grid { display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 16px; } .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1.3fr 1fr; } }
.kpi { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .value { font-size: 30px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.kpi .sub { color: var(--dim); font-size: 12px; }
.kpi .ic { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.kpi .ic svg { width: 17px; height: 17px; }
.kpi.orange .ic { background: var(--orange-soft); color: var(--orange); } .kpi.green .ic { background: rgba(47,207,143,.14); color: var(--green); }
.kpi.yellow .ic { background: rgba(255,193,69,.14); color: var(--yellow); } .kpi.red .ic { background: rgba(255,93,98,.14); color: var(--red); }
.kpi.red .value { color: var(--red); }

/* ---------- progress ---------- */
.bar { height: 8px; border-radius: 99px; background: #0b1a2d; overflow: hidden; border: 1px solid #1b3352; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--orange2)); }
.bar.done > span { background: linear-gradient(90deg, #22b07a, var(--green)); }
.bar.lg { height: 12px; }
.prog-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.prog-row:first-of-type { border-top: 0; }
.prog-row .bar { grid-column: 1 / -1; }
.prog-row b { font-weight: 600; font-size: 14px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.b-planned { background: rgba(78,168,255,.12); color: var(--blue); } .b-in-progress { background: var(--orange-soft); color: var(--orange2); }
.b-on-hold { background: rgba(255,193,69,.12); color: var(--yellow); } .b-complete { background: rgba(47,207,143,.13); color: var(--green); }
.b-type { background: #1a3150; color: #c4d4e8; border-color: #27466e; }
.b-overdue { background: rgba(255,93,98,.15); color: var(--red); } .b-sample { background: rgba(169,139,255,.14); color: var(--purple); }
.b-low { background: #1a3150; color: #b8c8dc; } .b-medium { background: rgba(78,168,255,.12); color: var(--blue); }
.b-high { background: rgba(255,193,69,.12); color: var(--yellow); } .b-critical { background: rgba(255,93,98,.15); color: var(--red); }
.b-open { background: var(--orange-soft); color: var(--orange2); } .b-closed { background: rgba(47,207,143,.13); color: var(--green); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-weight: 650; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: #3f6596; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #14100c; }
.btn.primary:hover { background: var(--orange2); }
.btn.danger { color: var(--red); border-color: #5a2a33; background: rgba(255,93,98,.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--muted); cursor: pointer; flex: none; }
.iconbtn svg { width: 18px; height: 18px; } .iconbtn:hover { color: var(--text); }
label.f { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: #0b1a2e; color: var(--text); outline: none; font-size: 15px; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.18); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form-grid.cols { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: 1 / -1; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #0b1a2e; padding: 4px; border-radius: 12px; border: 1px solid var(--line2); }
.seg button { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 650; cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.err { color: var(--red); font-size: 13px; font-weight: 600; min-height: 18px; }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 220px; position: relative; }
.toolbar .search svg { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: var(--dim); }
.toolbar .search input { padding-left: 38px; }
.toolbar select { flex: 0 1 170px; }
.pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pill { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill.on { background: var(--orange-soft); color: var(--orange); border-color: rgba(255,122,26,.45); }

/* ---------- job cards ---------- */
.jobs { display: grid; gap: 12px; }
@media (min-width: 760px) { .jobs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1250px) { .jobs { grid-template-columns: repeat(3, 1fr); } }
.jobcard { display: block; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; transition: border-color .15s, transform .15s; }
.jobcard:hover { border-color: #3a5f8f; transform: translateY(-1px); }
.jobcard h4 { font-size: 15.5px; font-weight: 700; margin: 8px 0 3px; }
.jobcard .meta { color: var(--muted); font-size: 13px; }
.jobcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); gap: 8px; }

/* ---------- job detail ---------- */
.jobhead { background: linear-gradient(150deg, #173356, var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.jobhead h2 { font-size: 21px; font-weight: 800; margin: 10px 0 4px; }
.jobhead .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 57px; background: var(--bg); z-index: 10; }
@media (min-width: 900px) { .tabs { top: 61px; } }
.tabs a { padding: 11px 14px; color: var(--muted); font-weight: 650; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs a.on { color: var(--orange); border-color: var(--orange); }
.tabs .count { background: var(--panel2); color: var(--muted); border-radius: 99px; padding: 0 7px; font-size: 11.5px; }
.dl { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .dl { grid-template-columns: 1fr 1fr; } }
.dl div { background: #0d1f35; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dl dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); font-weight: 700; }
.dl dd { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }

/* checklist */
.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check input[type=checkbox] { appearance: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line2); background: #0b1a2e; flex: none; cursor: pointer; display: grid; place-items: center; margin: 0; }
.check input[type=checkbox]:checked { background: var(--green); border-color: var(--green); }
.check input[type=checkbox]:checked::after { content: ''; width: 7px; height: 13px; border: solid #062; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); }
.check .t { flex: 1; min-width: 0; padding-top: 2px; }
.check.done .t b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(143,166,195,.5); }
.check b { font-weight: 600; }
.check .who { font-size: 12px; color: var(--green); margin-top: 2px; }
.addrow { display: flex; gap: 8px; margin-top: 12px; }

/* photos */
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .photos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.photo { background: #0d1f35; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.photo .img { aspect-ratio: 4/3; background: #0a1729 center/cover no-repeat; cursor: zoom-in; display: grid; place-items: center; color: var(--dim); font-size: 12px; position: relative; }
.photo .img .pend { position: absolute; left: 6px; top: 6px; }
.photo .cap { display: flex; gap: 6px; padding: 8px; }
.photo .cap input { min-height: 34px; padding: 6px 9px; font-size: 13px; }
.uploader { display: flex; gap: 8px; flex-wrap: wrap; }
.uploader label { cursor: pointer; }
.uploader input { display: none; }

/* punch */
.punch { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.punch:first-child { border-top: 0; }
.punch .thumb { width: 64px; height: 64px; border-radius: 10px; background: #0a1729 center/cover; flex: none; cursor: zoom-in; border: 1px solid var(--line); }
.punch .body { flex: 1; min-width: 0; }
.punch .desc { font-weight: 600; word-break: break-word; }
.punch.closed .desc { color: var(--muted); text-decoration: line-through; }
.punch .meta { font-size: 12.5px; color: var(--muted); margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.punch .acts { display: flex; gap: 6px; flex: none; }

/* charts */
.chart-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.legend { display: grid; gap: 8px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; }
.legend span { color: var(--muted); margin-left: 6px; }

/* empty / misc */
.empty { text-align: center; padding: 36px 18px; border: 1px dashed var(--line2); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--text); font-size: 17px; margin: 10px 0 6px; }
.empty .row { justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.note { background: rgba(78,168,255,.08); border: 1px solid rgba(78,168,255,.25); color: #bcd8f5; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.note.warn { background: rgba(255,193,69,.08); border-color: rgba(255,193,69,.3); color: #f1dca8; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.section-title { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; margin: 22px 0 10px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 18px; background: radial-gradient(1200px 600px at 80% -10%, rgba(255,122,26,.16), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(78,168,255,.12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 12px 30px rgba(255,122,26,.25); }
.auth-brand h1 { font-size: 26px; font-weight: 800; margin-top: 14px; }
.auth-brand h1 span { color: var(--orange); }
.auth-brand p { color: var(--muted); margin: 6px 0 0; }
.auth .panel { background: rgba(17,36,61,.85); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.auth .mode { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; flex-wrap: wrap; }
.auth .link { background: none; border: 0; color: var(--orange2); cursor: pointer; font-weight: 600; padding: 0; font-size: inherit; }
.proto { margin-top: 18px; text-align: center; font-size: 12px; color: var(--dim); }

/* ---------- modal / toast / lightbox ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(3,9,18,.7); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + var(--safe-b)); box-shadow: var(--shadow); }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { border-radius: 18px; } }
.modal h3 { font-size: 18px; margin-bottom: 14px; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--safe-b)); z-index: 80; background: #1d3555; border: 1px solid var(--line2); color: var(--text); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; max-width: 92vw; }
.toast.bad { border-color: #6b2c35; background: #3a1c24; }
@media (min-width: 900px) { .toast { bottom: 26px; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox .cap { color: #dde6f1; margin-top: 12px; text-align: center; }
.lightbox .x { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; }

/* ---------- printable report ---------- */
.report { background: #fff; color: #142033; border-radius: 12px; padding: 32px; max-width: 900px; margin: 0 auto; font-size: 13.5px; }
.report h1 { font-size: 24px; } .report h2 { font-size: 16px; margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #ff7a1a; }
.report table { width: 100%; border-collapse: collapse; } .report th, .report td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e3e8ef; vertical-align: top; }
.report th { width: 170px; color: #5b6b80; font-weight: 600; }
.report .rhead { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid #e3e8ef; padding-bottom: 16px; }
.report .rbrand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.report .rbrand img { width: 40px; height: 40px; border-radius: 10px; }
.report .rphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.report .rphotos figure { margin: 0; break-inside: avoid; } .report .rphotos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 1px solid #e3e8ef; }
.report figcaption { font-size: 11.5px; color: #5b6b80; margin-top: 3px; }
.report .rbar { height: 10px; background: #edf1f6; border-radius: 99px; overflow: hidden; } .report .rbar span { display: block; height: 100%; background: #ff7a1a; }
.report .ok { color: #13855a; font-weight: 700; } .report .no { color: #a3b0c0; }
.report-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  .sidebar, .topbar, .tabbar, .report-actions, .offline-banner, .toast { display: none !important; }
  .shell { display: block; } .view { padding: 0 !important; max-width: none; }
  .report { padding: 0; border-radius: 0; max-width: none; }
}

/* ---------- QA fixes ---------- */
.kpi .label { padding-right: 38px; line-height: 1.3; min-height: 30px; }
@media (max-width: 899px) { .kpi .ic { width: 26px; height: 26px; right: 10px; top: 10px; } .kpi .label { font-size: 11px; letter-spacing: .04em; } .kpi .value { font-size: 28px; } }
.card-head { flex-wrap: wrap; }
@media (max-width: 640px) {
  .punch { flex-wrap: wrap; }
  .punch .body { flex: 1 1 calc(100% - 80px); }
  .punch .acts { width: 100%; justify-content: flex-end; }
  .jobhead .actions .btn.danger { margin-left: auto; }
}
.grid > *, .jobs > *, .kpis > * { min-width: 0; }
@media (min-width: 760px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1250px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid.three { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
