/* Fimak Tech — Portal do Cliente */
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(fonts/lato-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(fonts/montserrat-latin-800-normal.woff2) format("woff2"); }
:root {
  --ink: #0E1B2C; --navy: #122E4F; --gold: #C9A227; --gold-soft: #F5ECCF; --blue: #2F6FEB; --blue-soft: #E5EDFD;
  --paper: #F2F4F7; --line: #DFE4EA; --text: #17212F; --muted: #5B6778; --faint: #8A95A5;
  --green: #1F8A5B; --green-soft: #E3F4EC; --red: #C93A3A; --red-soft: #FBE9E9; --amber: #8A5A06; --amber-soft: #FBF1DC;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.55 Lato, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Montserrat, Arial, sans-serif; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--blue); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.boot { padding: 80px; text-align: center; color: var(--faint); }
.muted { color: var(--muted); } .small { font-size: 14px; } .faint { color: var(--faint); }

.top { background: var(--ink); color: #fff; border-bottom: 4px solid var(--gold); }
.top .in { max-width: 920px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.top svg { width: 34px; height: 38px; flex: none; }
.top .n { font-family: Montserrat; font-weight: 800; letter-spacing: .18em; font-size: 15px; color: #fff; text-decoration: none; display: block; }
.top .s { color: #AFC0D6; font-size: 12px; }
.top .who { margin-left: auto; text-align: right; font-size: 13px; color: #C8D2DF; }
.top .who b { color: #fff; display: block; font-size: 14px; }
.top .who button { background: none; border: 0; color: #AFC0D6; padding: 0; cursor: pointer; font-size: 13px; text-decoration: underline; }
main { max-width: 920px; margin: 0 auto; padding: 22px 18px 70px; }
.crumb { font-size: 14px; margin-bottom: 8px; }
.crumb a { color: var(--muted); text-decoration: none; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.card > h2 { margin-bottom: 12px; }
.hello { margin: 4px 0 20px; }
.hello p { margin: 6px 0 0; color: var(--muted); }

.proj { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 10px; transition: border-color .15s; }
.proj:hover { border-color: var(--navy); }
.proj .t { font-weight: 700; font-size: 17px; color: var(--navy); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.tag.gold { background: var(--gold-soft); color: #6B5106; } .tag.blue { background: var(--blue-soft); color: #1C3F8F; }
.tag.green { background: var(--green-soft); color: var(--green); } .tag.red { background: var(--red-soft); color: var(--red); }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 12px 0 4px; }
.steps div { height: 6px; border-radius: 3px; background: var(--line); }
.steps div.done { background: var(--navy); } .steps div.cur { background: var(--gold); }
.stepnames { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; font-size: 11px; color: var(--faint); }
.stepnames span.cur { color: var(--navy); font-weight: 700; }

.row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--paper); }
.row:first-of-type { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .amt { font-family: Montserrat; font-weight: 800; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #C9D1DB; background: #fff; border-radius: 9px; padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap; }
.btn:hover { border-color: var(--navy); }
.btn.pri { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ok { background: var(--green); border-color: var(--green); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: wait; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kv div { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.kv .l { font-size: 12px; color: var(--muted); } .kv .v { font-weight: 700; }

.appr { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 10px; }
.appr.pend { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.appr .h { display: flex; gap: 10px; align-items: flex-start; }
.appr .h b { flex: 1; font-size: 16px; }
.appr .desc { white-space: pre-wrap; color: var(--muted); margin: 8px 0; }
.appr textarea, .msgbox textarea, .fld input, .fld textarea { width: 100%; padding: 10px 12px; border: 1px solid #C9D1DB; border-radius: 8px; background: #fff; }
.appr textarea { min-height: 80px; margin: 8px 0; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.quote { background: var(--paper); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 0 8px 8px 0; white-space: pre-wrap; margin-top: 8px; font-size: 15px; }

.drop { display: block; border: 2px dashed #C9D1DB; border-radius: 12px; padding: 22px; text-align: center; background: #FBFCFD; cursor: pointer; }
.drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop input { display: none; }
.prog { height: 6px; background: var(--paper); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }

.thread { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 4px; }
.bubble .w { font-size: 12px; opacity: .75; margin-top: 4px; }
.msgbox { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.msgbox textarea { min-height: 46px; resize: vertical; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--ink); }
.login .box { background: #fff; border-radius: 16px; padding: 30px; width: 100%; max-width: 420px; border-top: 5px solid var(--gold); }
.login .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.login .brand svg { width: 34px; height: 38px; }
.login .brand b { font-family: Montserrat; font-weight: 800; letter-spacing: .18em; color: var(--navy); }
.fld { margin: 14px 0; } .fld label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.note { border-radius: 10px; padding: 12px 14px; font-size: 15px; margin: 12px 0; }
.note.ok { background: var(--green-soft); color: #14583A; } .note.warn { background: var(--amber-soft); color: var(--amber); } .note.err { background: var(--red-soft); color: #8E2424; }
.empty { color: var(--faint); padding: 8px 0; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px; border-left: 4px solid var(--gold); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
.toast.err { border-left-color: #FF7A7A; }
.foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 26px; }
@media (max-width: 600px) {
  main { padding: 16px 12px 60px; } .card { padding: 16px; }
  .stepnames { display: none; }
  .row { flex-wrap: wrap; } .row .btn { width: 100%; }
  .top .who span { display: none; }
  .bubble { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
