/* GRD Laser Cutting owner screens. Brand: blue #0080c6, grey #a8abad, ink #191919 (from the logo). */
:root {
  --blue:#0080c6; --blue-dk:#06669b; --blue-lt:#e6f2fa; --grey:#a8abad;
  --ink:#191919; --mute:#5f6368; --line:#e4e7eb; --bg:#f3f5f7; --card:#fff;
  --ok:#1b7f3b; --ok-lt:#e7f5ec; --warn:#9a5b00; --warn-lt:#fff4e0; --bad:#b3261e; --bad-lt:#fdecea;
  --radius:10px; --shadow:0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --head:"Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:15px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--blue); text-decoration:none; } a:hover { text-decoration:underline; }
h1, h2, h3 { font-family:var(--head); letter-spacing:-.01em; }
h1 { font-size:26px; font-weight:700; margin:0 0 18px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
h2 { font-size:18px; font-weight:700; margin:30px 0 12px; }
code { background:#eef1f4; padding:1px 5px; border-radius:4px; }

/* Top bar */
.topbar { background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.topbar .in { max-width:1320px; margin:0 auto; padding:0 24px; display:flex; align-items:center; gap:28px; height:64px; }
.topbar img { height:36px; display:block; }
.topbar nav { display:flex; gap:4px; height:100%; }
.topbar nav a { display:flex; align-items:center; padding:0 12px; color:var(--mute); font-weight:500; border-bottom:3px solid transparent; margin-bottom:-1px; }
.topbar nav a:hover { color:var(--ink); text-decoration:none; }
.topbar nav a.on { color:var(--ink); border-bottom-color:var(--blue); }
.topbar .right { margin-left:auto; display:flex; gap:18px; align-items:center; font-size:14px; }
.topbar .right a { color:var(--mute); } .topbar .right a:hover { color:var(--ink); }
@media (max-width:760px) {
  .topbar .in { flex-wrap:wrap; height:auto; padding:10px 16px; gap:10px 18px; }
  .topbar nav { order:3; width:100%; overflow-x:auto; height:40px; }
  .topbar img { height:30px; }
}

main { max-width:1320px; margin:0 auto; padding:28px 24px 60px; }
@media (max-width:760px) { main { padding:18px 14px 40px; } }
.back { display:inline-block; margin-bottom:10px; font-size:14px; color:var(--mute); }

/* Cards and notices */
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 20px; margin-bottom:16px; }
.card h2:first-child, .card h3:first-child { margin-top:0; }
.label { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--mute); font-weight:600; margin-bottom:6px; }
.flash, .warn, .note { padding:12px 16px; border-radius:var(--radius); margin-bottom:16px; border:1px solid; }
.flash { background:var(--blue-lt); border-color:#b6d8ee; color:#0b4a70; }
.warn { background:var(--warn-lt); border-color:#f3d39b; color:#6b3f00; }
.warn a { color:#6b3f00; text-decoration:underline; }
.mute { color:var(--mute); font-size:13px; }

/* Stat tiles */
.tiles { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; margin-bottom:22px; }
@media (max-width:760px) { .tiles { grid-template-columns:repeat(2, 1fr); } }
.tile { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:14px 16px; color:var(--ink); border-top:3px solid var(--grey); }
.tile:hover { text-decoration:none; border-color:#cfd5db; }
.tile b { display:block; font:700 28px/1.1 var(--head); margin-top:4px; }
.tile span { font-size:13px; color:var(--mute); }
.tile.new { border-top-color:#e0a030; } .tile.approved { border-top-color:var(--blue); }
.tile.sent { border-top-color:var(--grey); } .tile.won { border-top-color:var(--ok); }

/* Filter chips */
.chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.chips a { padding:6px 12px; border-radius:999px; background:#fff; border:1px solid var(--line); color:var(--mute); font-size:14px; }
.chips a:hover { text-decoration:none; color:var(--ink); border-color:#cfd5db; }
.chips a.on { background:var(--ink); border-color:var(--ink); color:#fff; }
.chips a em { font-style:normal; opacity:.7; margin-left:3px; }

/* Tables */
.tablewrap { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow-x:auto; margin-bottom:16px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
tr:last-child td, tr:last-child th { border-bottom:0; }
th { font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--mute); font-weight:600; background:#f8f9fb; }
td.num, th.num { text-align:right; white-space:nowrap; }
tbody tr.link:hover td { background:#f7fafc; cursor:pointer; }
tr.total th, tr.total td { background:#f8f9fb; font-size:15px; color:var(--ink); text-transform:none; letter-spacing:0; }
tr.total .num { font:700 18px var(--head); }
td .ref { font-weight:600; }

/* Forms */
input, select, textarea { font:inherit; font-size:14px; padding:8px 10px; border:1px solid #cfd5db; border-radius:6px; background:#fff; color:var(--ink); max-width:100%; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,128,198,.18); }
input[type=checkbox] { accent-color:var(--blue); }
input.sm { width:84px; } input.md { width:170px; }
textarea { width:100%; line-height:1.5; }
.row { display:flex; gap:16px; flex-wrap:wrap; align-items:flex-end; }
.row label, .field { display:flex; flex-direction:column; font-size:13px; color:var(--mute); gap:5px; font-weight:500; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:14px 16px; }
.grid2 label { display:flex; flex-direction:column; font-size:13px; color:var(--mute); gap:5px; font-weight:500; }
.grid2 input { width:100%; }

/* Buttons */
button, .btn { font:inherit; font-size:14px; font-weight:600; background:var(--blue); color:#fff; border:1px solid var(--blue); border-radius:8px; padding:9px 16px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; text-decoration:none; line-height:1.3; }
button:hover, .btn:hover { background:var(--blue-dk); border-color:var(--blue-dk); text-decoration:none; }
button.ghost, .btn.ghost { background:#fff; color:var(--ink); border-color:#cfd5db; }
button.ghost:hover, .btn.ghost:hover { background:#f3f5f7; }
button.ok { background:var(--ok); border-color:var(--ok); }
button.quiet { background:none; border-color:transparent; color:var(--mute); }
button.quiet:hover { background:#eef1f4; color:var(--ink); }
button:disabled, button:disabled:hover { opacity:.45; cursor:not-allowed; background:var(--blue); border-color:var(--blue); }
button.ghost:disabled:hover { background:#fff; border-color:#cfd5db; }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.actions form { display:inline; margin:0; }

/* Status pills */
.pill { display:inline-block; font:600 12px/1 "Inter", sans-serif; padding:5px 10px; border-radius:999px; background:#eef1f4; color:var(--mute); white-space:nowrap; letter-spacing:0; }
.pill.new { background:var(--warn-lt); color:var(--warn); }
.pill.approved { background:var(--blue-lt); color:var(--blue-dk); }
.pill.sent { background:#eef1f4; color:#3c4043; }
.pill.won { background:var(--ok-lt); color:var(--ok); }
.pill.lost, .pill.notforus { background:#f1f1f1; color:#80868b; }

/* Request page */
.split { display:grid; grid-template-columns:1fr 2fr; gap:16px; }
@media (max-width:860px) { .split { grid-template-columns:1fr; } }
.who b { font-size:16px; }
.files a { display:inline-flex; gap:6px; align-items:center; }
.ext { display:inline-block; font:700 10px/1 "Inter", sans-serif; padding:4px 5px; border-radius:4px; background:var(--blue-lt); color:var(--blue-dk); text-transform:uppercase; }
.measure { font-size:12.5px; color:var(--mute); line-height:1.6; }
.measure input { padding:4px 6px; font-size:13px; }
.reason { color:var(--warn); font-size:13px; }
.emailcard pre { white-space:pre-wrap; font:inherit; color:var(--mute); margin:10px 0 0; }

/* Login */
body.login { background:#000; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.loginbox { background:#fff; border-radius:14px; padding:34px 32px 28px; width:100%; max-width:380px; box-shadow:0 20px 50px rgba(0,0,0,.5); }
.loginbox img { height:56px; display:block; margin:0 auto 22px; }
.loginbox h1 { font-size:18px; justify-content:center; margin-bottom:18px; color:var(--mute); font-weight:600; }
.loginbox input { width:100%; padding:11px 12px; font-size:15px; margin-bottom:12px; }
.loginbox button { width:100%; justify-content:center; padding:11px; font-size:15px; }
.rates td input { width:120px; }
.parts th, .parts td { padding:10px 8px; }
.parts th:first-child, .parts td:first-child { padding-left:14px; }
.parts input.md { width:150px; } .parts input.sm { width:76px; }
.parts .measure input.sm { width:70px; }
.topbar img { height:40px; }
