/* Área do Cliente unificada (passo 5.3): estrutura do mockup — barra superior, menu lateral em grupos, Início.
   Classes com prefixo ac- para conviver com o Bootstrap (VIBERCAN) e com o app.css (Suporte). */
:root {
  --ac-page: #F2F4F7; --ac-surface: #FFFFFF; --ac-ink: #1C2430; --ac-ink-2: #475569; --ac-line: #E2E8F0;
  --ac-navy: #1C2430; --ac-navy-2: #2E3C50; --ac-green: #66CB66; --ac-green-ink: #2E7D32; --ac-green-soft: #E9F9EA;
  --ac-amber: #E3A72F; --ac-on-navy: #F2F4F7; --ac-on-navy-2: #B4C0D0;
  --ac-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ac-body: 'IBM Plex Sans', 'Segoe UI', Roboto, sans-serif;
  --ac-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --ac-ease: cubic-bezier(.2,.7,.2,1);
}
body.ac-area { margin: 0; min-height: 100vh; background: var(--ac-page); color: var(--ac-ink); font-family: var(--ac-body); }

/* barra superior */
.ac-top { position: sticky; top: 0; z-index: 1030; background: var(--ac-navy); color: var(--ac-on-navy); border-bottom: 1px solid var(--ac-navy-2); }
.ac-top.adm { box-shadow: inset 0 -2px 0 var(--ac-amber); }
.ac-top .ac-in { display: flex; align-items: center; gap: 1rem; height: 60px; padding: 0 1.25rem 0 1rem; }
.ac-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.ac-brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgb(102 203 102 / .35)); }
.ac-brand b { font-family: 'Orbitron', var(--ac-display); font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-on-navy); display: block; line-height: 1.2; }
.ac-brand b em { font-style: normal; color: var(--ac-green); }
.ac-brand small { display: block; font-size: .72rem; color: var(--ac-on-navy-2); }
.ac-sp { flex: 1; }
.ac-company { font-size: .82rem; color: var(--ac-on-navy-2); text-align: right; line-height: 1.3; }
.ac-company b { display: block; color: var(--ac-on-navy); font-weight: 600; }
.ac-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ac-green); color: #1C2430; display: grid; place-items: center; font: 700 .85rem/1 var(--ac-display); flex: none; }
.ac-toggle { display: none; background: none; border: 1px solid var(--ac-navy-2); color: var(--ac-on-navy); border-radius: 6px; padding: .4rem .55rem; cursor: pointer; }
.ac-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; display: block; }

/* menu lateral */
.ac-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.ac-side { background: var(--ac-surface); border-right: 1px solid var(--ac-line); padding: 1rem .75rem 2rem; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; font-family: var(--ac-body); }
.ac-side h4 { display: flex; align-items: center; gap: .45rem; margin: 1.2rem .6rem .45rem; font: 500 .7rem/1 var(--ac-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ac-ink-2); }
.ac-side h4 img { width: 16px; height: 16px; border-radius: 4px; }
.ac-side h4.vc { color: var(--ac-green-ink); }
.ac-side a, .ac-side button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .6rem; border-radius: 6px; text-decoration: none; color: var(--ac-ink); font: 400 .9rem/1.3 var(--ac-body); background: none; border: 0; cursor: pointer; text-align: left; }
.ac-side svg { width: 17px; height: 17px; stroke: var(--ac-ink-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ac-side a:hover, .ac-side button:hover { background: var(--ac-page); color: var(--ac-ink); }
.ac-side a.on { background: var(--ac-green-soft); color: var(--ac-green-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--ac-green); }
.ac-side a.on svg { stroke: var(--ac-green-ink); }
.ac-side .n { margin-left: auto; font: 500 .7rem/1 var(--ac-mono); padding: .2rem .4rem; border-radius: 99px; background: color-mix(in srgb, var(--ac-amber) 18%, transparent); color: color-mix(in srgb, var(--ac-amber) 65%, var(--ac-ink)); }
.ac-side .ac-out { margin-top: 1.4rem; border-top: 1px solid var(--ac-line); padding-top: .8rem; }
.ac-side form { margin: 0; }
.ac-main { min-width: 0; }
@media (max-width: 860px) {
  .ac-shell { grid-template-columns: 1fr; }
  .ac-side { position: fixed; left: 0; top: 60px; bottom: 0; width: 270px; z-index: 1020; transform: translateX(-105%); transition: transform .3s var(--ac-ease); box-shadow: 20px 0 40px -20px rgb(0 0 0 / .4); height: auto; }
  .ac-side.open { transform: none; }
  .ac-toggle { display: block; }
  .ac-company { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ac-side { transition: none; } }

/* conteúdo */
.ac-content { padding: clamp(1.2rem, 3vw, 2rem); max-width: 1240px; width: 100%; box-sizing: border-box; }
.ac-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.ac-head h1 { font: 720 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.15 var(--ac-display); margin: 0; color: var(--ac-ink); }
.ac-head p { color: var(--ac-ink-2); margin: .3rem 0 0; }
.ac-crumb { font: 500 .72rem/1 var(--ac-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ac-green-ink); display: inline-flex; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.ac-crumb img { width: 16px; height: 16px; border-radius: 4px; }
.ac-btn { display: inline-flex; align-items: center; gap: .45rem; font: 600 .85rem/1 var(--ac-body); padding: .6rem .95rem; border-radius: 8px; text-decoration: none; border: 1px solid transparent; background: var(--ac-green); color: #1C2430; }
.ac-btn:hover { filter: brightness(.95); color: #1C2430; }
.ac-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* Início */
.ac-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ac-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; padding: .3rem .6rem; border-radius: 99px; border: 1px solid var(--ac-line); background: var(--ac-surface); }
.ac-chip img { width: 14px; height: 14px; border-radius: 3px; }
.ac-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac-green); }
.ac-group { display: flex; align-items: center; gap: .5rem; font: 600 .95rem/1 var(--ac-display); margin: 1.6rem 0 .8rem; }
.ac-group img { width: 20px; height: 20px; border-radius: 5px; }
.ac-group a { margin-left: auto; font: 500 .82rem/1 var(--ac-body); color: var(--ac-green-ink); text-decoration: none; }
.ac-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ac-tile { display: block; text-decoration: none; color: var(--ac-ink); background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: 10px; padding: 1.1rem 1.2rem; transition: border-color .2s, transform .2s var(--ac-ease), box-shadow .2s; }
.ac-tile:hover { border-color: var(--ac-green); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgb(28 36 48 / .45); color: var(--ac-ink); }
.ac-tile .k { font: 500 .72rem/1 var(--ac-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ac-ink-2); }
.ac-tile b { display: block; font: 720 2rem/1.1 var(--ac-display); margin: .45rem 0 .25rem; }
.ac-tile b small { font-size: .95rem; color: var(--ac-ink-2); font-weight: 500; }
.ac-tile p { font-size: .85rem; color: var(--ac-ink-2); margin: 0; }
.ac-tile .warn { color: color-mix(in srgb, var(--ac-amber) 70%, var(--ac-ink)); font-weight: 600; }
.ac-tile.vc { border-top: 3px solid var(--ac-green); }
.ac-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 900px) { .ac-two { grid-template-columns: 1fr; } }
.ac-panel { background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: 10px; overflow: hidden; }
.ac-panel-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--ac-line); }
.ac-panel-head h2 { font: 650 1rem/1.2 var(--ac-display); margin: 0; }
.ac-feed { list-style: none; margin: 0; padding: .4rem 1rem 1rem; }
.ac-feed li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .6rem; padding: .7rem 0; border-bottom: 1px dashed var(--ac-line); font-size: .87rem; align-items: start; }
.ac-feed li:last-child { border-bottom: 0; }
.ac-feed img { width: 18px; height: 18px; border-radius: 4px; margin-top: 2px; }
.ac-feed a { color: var(--ac-ink); text-decoration: none; }
.ac-feed a:hover { color: var(--ac-green-ink); }
.ac-feed time { font: .72rem var(--ac-mono); color: var(--ac-ink-2); white-space: nowrap; }
.ac-empty { padding: 1.2rem 1rem; color: var(--ac-ink-2); font-size: .9rem; }
.ac-quick { padding: 1rem; display: grid; gap: .6rem; }
.ac-quick a { display: flex; gap: .7rem; align-items: center; padding: .75rem .85rem; border: 1px solid var(--ac-line); border-radius: 8px; text-decoration: none; color: var(--ac-ink); font-size: .9rem; font-weight: 600; }
.ac-quick a:hover { border-color: var(--ac-green); color: var(--ac-ink); }
.ac-quick a span { display: block; font-weight: 400; font-size: .8rem; color: var(--ac-ink-2); }
.ac-quick svg { width: 20px; height: 20px; stroke: var(--ac-green-ink); fill: none; stroke-width: 1.8; flex: none; }

/* login */
.ac-login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .ac-login { grid-template-columns: 1fr; } .ac-login-art { display: none !important; } }
.ac-login-art { background: var(--ac-navy); color: var(--ac-on-navy); padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.ac-login-art::before { content: ""; position: absolute; right: -180px; bottom: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgb(102 203 102 / .16), transparent); }
.ac-login-art h2 { font: 720 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.15 var(--ac-display); max-width: 26rem; margin: 2.5rem 0 0; }
.ac-login-art h2 span { color: var(--ac-green); }
.ac-login-art p { color: var(--ac-on-navy-2); max-width: 26rem; margin-top: 1rem; }
.ac-prods { display: grid; gap: .8rem; margin-top: 2rem; max-width: 26rem; position: relative; }
.ac-prods div { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--ac-navy-2); border-radius: 10px; background: rgb(255 255 255 / .02); }
.ac-prods img { width: 34px; height: 34px; border-radius: 8px; }
.ac-prods b { display: block; font-family: 'Orbitron', var(--ac-display); font-size: .85rem; letter-spacing: .05em; }
.ac-prods b em { font-style: normal; color: var(--ac-green); }
.ac-prods span { font-size: .82rem; color: var(--ac-on-navy-2); }
.ac-login-art small { color: var(--ac-on-navy-2); font-size: .78rem; position: relative; }
.ac-login-form { display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--ac-page); }
.ac-login-form form { width: 100%; max-width: 380px; display: grid; gap: 1rem; }
.ac-login-form h1 { font: 720 1.7rem/1.2 var(--ac-display); margin: 0; }
.ac-login-form p { color: var(--ac-ink-2); font-size: .92rem; margin: 0; }
.ac-fld { display: grid; gap: .35rem; }
.ac-fld label { font-size: .85rem; font-weight: 600; }
.ac-fld input { font: 1rem var(--ac-body); padding: .8rem .9rem; border-radius: 8px; border: 1px solid var(--ac-line); background: var(--ac-surface); color: var(--ac-ink); }
.ac-fld input:focus { outline: 2px solid var(--ac-green); outline-offset: 0; border-color: var(--ac-green); }
.ac-login-form .ac-btn { justify-content: center; width: 100%; padding: .85rem; font-size: .95rem; cursor: pointer; }
.ac-login-form .ac-small { font-size: .82rem; color: var(--ac-ink-2); text-align: center; }
.ac-login-form .ac-small a { color: var(--ac-green-ink); }
.ac-login-mark { display: none; }
@media (max-width: 860px) { .ac-login-mark { display: flex; } }
.ac-err { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; border-radius: 8px; padding: .7rem .9rem; font-size: .9rem; }
.ac-ok { background: var(--ac-green-soft); color: var(--ac-green-ink); border: 1px solid #BFE8BF; border-radius: 8px; padding: .7rem .9rem; font-size: .9rem; }

/* módulo não liberado */
.ac-locked { max-width: 30rem; margin: 3rem auto; text-align: center; display: grid; justify-items: center; gap: .8rem; padding: 2rem 1.5rem; background: var(--ac-surface); border: 1px dashed var(--ac-line); border-radius: 12px; }
.ac-locked svg { width: 40px; height: 40px; stroke: var(--ac-ink-2); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.ac-locked h1 { font: 700 1.4rem/1.2 var(--ac-display); margin: 0; }
.ac-locked p { color: var(--ac-ink-2); margin: 0; }
.ac-pular { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--ac-green); color: #1C2430; padding: .5rem .8rem; }
.ac-pular:focus { left: .5rem; top: .5rem; }

/* tabelas, situação e progresso (telas do cliente) */
.ac-tbl-wrap { overflow-x: auto; }
table.ac-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ac-tbl th { text-align: left; font: 500 .7rem/1.2 var(--ac-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ac-ink-2); padding: .7rem 1rem; background: var(--ac-page); border-bottom: 1px solid var(--ac-line); white-space: nowrap; }
.ac-tbl td { padding: .7rem 1rem; border-bottom: 1px solid var(--ac-line); vertical-align: middle; }
.ac-tbl tr:last-child td { border-bottom: 0; }
.ac-tbl tbody tr:hover td { background: color-mix(in srgb, var(--ac-green-soft) 45%, transparent); }
.ac-tbl .num { text-align: right; font-family: var(--ac-mono); font-size: .82rem; white-space: nowrap; }
.ac-tbl .nowrap { white-space: nowrap; }
.ac-tbl a { color: var(--ac-ink); font-weight: 600; text-decoration: none; }
.ac-tbl a:hover { color: var(--ac-green-ink); }
.ac-tbl small { display: block; color: var(--ac-ink-2); font-size: .78rem; }
.ac-st { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; padding: .22rem .55rem; border-radius: 99px; white-space: nowrap; }
.ac-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ac-st.ok { background: var(--ac-green-soft); color: var(--ac-green-ink); }
.ac-st.wait { background: color-mix(in srgb, var(--ac-amber) 16%, transparent); color: color-mix(in srgb, var(--ac-amber) 70%, var(--ac-ink)); }
.ac-st.run { background: color-mix(in srgb, #4C8DF6 14%, transparent); color: color-mix(in srgb, #4C8DF6 80%, var(--ac-ink)); }
.ac-st.new { background: color-mix(in srgb, #2BB3A6 14%, transparent); color: color-mix(in srgb, #2BB3A6 75%, var(--ac-ink)); }
.ac-st.off { background: var(--ac-page); color: var(--ac-ink-2); border: 1px solid var(--ac-line); }
.ac-meter { height: 6px; border-radius: 99px; background: var(--ac-page); border: 1px solid var(--ac-line); overflow: hidden; margin-top: .45rem; min-width: 90px; }
.ac-meter i { display: block; height: 100%; background: var(--ac-green); border-radius: inherit; }
.ac-meter.over i { background: #D9534F; }
.ac-meter .w0 { width: 0 } .ac-meter .w5 { width: 5% } .ac-meter .w10 { width: 10% } .ac-meter .w15 { width: 15% } .ac-meter .w20 { width: 20% }
.ac-meter .w25 { width: 25% } .ac-meter .w30 { width: 30% } .ac-meter .w35 { width: 35% } .ac-meter .w40 { width: 40% } .ac-meter .w45 { width: 45% }
.ac-meter .w50 { width: 50% } .ac-meter .w55 { width: 55% } .ac-meter .w60 { width: 60% } .ac-meter .w65 { width: 65% } .ac-meter .w70 { width: 70% }
.ac-meter .w75 { width: 75% } .ac-meter .w80 { width: 80% } .ac-meter .w85 { width: 85% } .ac-meter .w90 { width: 90% } .ac-meter .w95 { width: 95% } .ac-meter .w100 { width: 100% }
.ac-back { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--ac-ink-2); text-decoration: none; margin-bottom: .6rem; }
.ac-back:hover { color: var(--ac-green-ink); }
.ac-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; padding: 1rem; margin: 0; }
.ac-facts dt { font: 500 .7rem/1 var(--ac-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ac-ink-2); }
.ac-facts dd { margin: .35rem 0 0; font-weight: 600; }
.ac-note { color: var(--ac-ink-2); font-size: .84rem; margin: .8rem 0 0; }
.ac-sec { margin-top: 1.4rem; }
.ac-desc { padding: 0 1rem 1rem; white-space: pre-wrap; color: var(--ac-ink); }
.ac-role { font: 600 .68rem/1 var(--ac-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--ac-amber); color: #1C2430; padding: .3rem .45rem; border-radius: 4px; }
/* telas da equipe (Suporte) dentro da estrutura: o conteúdo usa o app.css */
.ac-area .ac-main > main.wrap { margin: 0; max-width: 1240px; }

/* menu lateral no azul-marinho do site (cliente e equipe) */
.ac-side { background: var(--ac-navy); border-right-color: var(--ac-navy-2); }
.ac-side h4 { color: var(--ac-on-navy-2); }
.ac-side h4.vc { color: var(--ac-green); }
.ac-side a, .ac-side button { color: var(--ac-on-navy); }
.ac-side svg { stroke: var(--ac-on-navy-2); }
.ac-side a:hover, .ac-side button:hover { background: rgb(255 255 255 / .06); color: #fff; }
.ac-side a.on { background: rgb(102 203 102 / .14); color: var(--ac-green); box-shadow: inset 3px 0 0 var(--ac-green); }
.ac-side a.on svg { stroke: var(--ac-green); }
.ac-side .ac-out { border-top-color: var(--ac-navy-2); }
.ac-top { border-bottom-color: var(--ac-navy-2); }

/* conteúdo ocupa toda a largura disponível em qualquer resolução (sem limite fixo de 1240px) */
.ac-content { max-width: none; padding: clamp(1.2rem, 2.2vw, 2.5rem); }
.ac-area .ac-main > main.wrap { max-width: none; margin: 0; padding: clamp(1.2rem, 2.2vw, 2.5rem); box-sizing: border-box; width: 100%; }
.ac-area .ac-main > main.wrap.narrow { max-width: 860px; }
.ac-main { width: 100%; }
/* menu lateral: sem barra de rolagem visível quando cabe; fina quando precisa */
.ac-side { scrollbar-width: thin; scrollbar-color: var(--ac-navy-2) transparent; }
.ac-side::-webkit-scrollbar { width: 6px; } .ac-side::-webkit-scrollbar-thumb { background: var(--ac-navy-2); border-radius: 6px; }

/* sem rolagem fantasma: a borda de 1px da barra superior entra na conta da altura */
.ac-shell { min-height: calc(100vh - 61px); }
.ac-side { height: calc(100vh - 61px); }
/* notebooks (telas baixas): cabeçalho das páginas compacto para o conteúdo aparecer logo */
@media (max-height: 900px) and (min-width: 861px) {
  .ac-content, .ac-area .ac-main > main.wrap { padding: 1rem clamp(1rem, 2vw, 2rem) 1.25rem; }
  .ac-head { margin-bottom: .8rem; }
  .ac-head h1 { font-size: 1.45rem; }
  .ac-head p { margin-top: .15rem; font-size: .9rem; }
  .ac-crumb { margin-bottom: .3rem; }
  .ac-group { margin: 1rem 0 .6rem; }
  .ac-tile { padding: .85rem 1rem; } .ac-tile b { font-size: 1.6rem; margin: .3rem 0 .15rem; }
  .ac-two { margin-top: 1rem; }
  .ac-feed li { padding: .5rem 0; } .ac-quick { padding: .75rem; gap: .45rem; } .ac-quick a { padding: .55rem .75rem; }
  .ac-side { padding-top: .6rem; } .ac-side h4 { margin: .8rem .6rem .3rem; } .ac-side a, .ac-side button { padding: .38rem .6rem; }
}
