:root {
  --pcm-ink: #17242a;
  --pcm-muted: #617078;
  --pcm-navy: #10384a;
  --pcm-blue: #176b87;
  --pcm-blue-soft: #e9f3f6;
  --pcm-green: #2e9e68;
  --pcm-amber: #e3a72c;
  --pcm-red: #d84a4a;
  --pcm-bg: #f5f7f8;
  --pcm-surface: #fff;
  --pcm-line: #dce5e8;
  --pcm-shadow: 0 12px 32px rgb(16 56 74 / 8%);
  --navy: var(--pcm-navy);
  --blue: var(--pcm-blue);
  --green: var(--pcm-green);
  --amber: #aa7410;
  --red: #bd373d;
  --bg: var(--pcm-bg);
  --text: var(--pcm-ink);
}

html { scroll-behavior: smooth; }
body { background: var(--pcm-bg); color: var(--pcm-ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: var(--pcm-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #e3a72c; outline-offset: 2px; }
.topbar { align-items: center; min-height: 76px; padding: 10px clamp(16px, 3vw, 40px); background: var(--pcm-navy); box-shadow: 0 6px 24px rgb(16 56 74 / 16%); }
.brand-block { display: grid; gap: 1px; }
.brand-link { display: inline-flex; align-items: center; width: fit-content; text-decoration: none; }
.brand-logo { display: block; width: 244px; height: 54px; object-fit: contain; object-position: left center; }
.account-summary { margin: -2px 0 0 58px; color: #c4d6dc; font-size: 12px; }
.account-summary span { color: #78c8b0; }
.unit-switcher select { min-height: 40px; }
.nav a { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.nav a.active { color: var(--pcm-navy); }
.container { width: min(100% - 36px, 1440px); max-width: 1440px; margin: 28px auto 24px; padding: 0; }
.card { border: 1px solid var(--pcm-line); border-radius: 14px; background: var(--pcm-surface); box-shadow: var(--pcm-shadow); color: var(--pcm-ink); }
.page-heading { align-items: center; }
.page-heading h1, h1 { color: var(--pcm-navy); letter-spacing: -.025em; }
h2, h3 { color: var(--pcm-navy); letter-spacing: -.015em; }
.eyebrow { color: var(--pcm-blue); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.small, small { color: var(--pcm-muted); }
.button { min-height: 42px; border-radius: 9px; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { border: 1px solid var(--pcm-blue); background: var(--pcm-blue); color: #fff; box-shadow: 0 4px 12px rgb(23 107 135 / 17%); }
.button.primary:hover { background: #125b73; }
.button.secondary { border: 1px solid #c7d8de; background: #f2f7f8; color: var(--pcm-navy); }
.button.danger { background: #fff2f1; color: #a52b32; }
.field input, .field select, .field textarea, .route-filter input, .analytics-filter select { min-height: 44px; border: 1px solid #c7d3d8; border-radius: 9px; background: #fff; color: var(--pcm-ink); font: inherit; }
.field textarea { min-height: 116px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pcm-blue); box-shadow: 0 0 0 3px rgb(23 107 135 / 13%); outline: 0; }
.metric { position: relative; overflow: hidden; border-top: 3px solid var(--pcm-blue); border-radius: 13px; background: #fff; box-shadow: var(--pcm-shadow); }
.metric:nth-child(2) { border-top-color: var(--pcm-red); }
.metric:nth-child(3) { border-top-color: var(--pcm-amber); }
.metric:nth-child(4) { border-top-color: var(--pcm-green); }
.metric > span { color: var(--pcm-muted); font-size: 13px; font-weight: 700; }
.metric > strong { color: var(--pcm-navy); font-size: clamp(30px, 3vw, 42px); }
.action-queue-item { border-radius: 12px; background: #fbfdfd; transition: transform .16s ease, box-shadow .16s ease; }
.action-queue-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(16 56 74 / 9%); }
.status { border: 1px solid transparent; font-weight: 700; }
.status.operating, .status.completed, .status.conforming { background: #e7f5ec; color: #176d43; }
.status.alert, .status.pending, .status.awaiting_material, .status.awaiting_part { background: #fff5dc; color: #805908; }
.status.stopped, .status.critical, .status.nonconforming { background: #fff0ef; color: #a52b32; }
.status.maintenance, .status.in_progress, .status.inspection, .status.in_service, .status.testing { background: #e8f2f5; color: #125b73; }
.status.closed, .status.not_done, .status.inactive { background: #edf0f1; color: #536168; }
table { border-collapse: separate; border-spacing: 0; }
th { color: #40555e; }
td, th { border-color: #e5ecee; }
.product-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 14px; padding: 16px 18px 22px; color: #77858b; font-size: 12px; }
.product-footer span:first-child { color: var(--pcm-navy); font-weight: 800; }
.public-topbar { display: flex; }
.public-nav { display: flex; }

.page-login { min-height: 100vh; background: radial-gradient(ellipse at 18% 68%, #e2eef0 0, transparent 44%), var(--pcm-bg); }
.page-login .container { display: grid; align-items: center; min-height: calc(100vh - 142px); }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: clamp(28px, 6vw, 88px); align-items: center; width: min(100%, 1040px); margin: 12px auto; }
.login-brand-panel { padding: 28px 10px; }
.login-logo { display: block; width: min(100%, 400px); height: auto; }
.login-descriptor { margin: 20px 0 5px 78px; color: var(--pcm-muted); font-size: 16px; font-weight: 600; }
.login-slogan { max-width: 430px; margin: 26px 0 22px 78px; color: var(--pcm-navy); font-size: clamp(24px, 3vw, 36px); font-weight: 750; line-height: 1.18; letter-spacing: -.035em; }
.login-cycle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: 78px; color: var(--pcm-blue); font-size: 12px; font-weight: 750; }
.login-cycle span { padding: 7px 10px; border: 1px solid #c8dce0; border-radius: 999px; background: rgb(255 255 255 / 68%); }
.login-cycle i { color: var(--pcm-green); font-style: normal; }
.login-card { width: 100%; max-width: 460px; margin: 0; padding: clamp(24px, 4vw, 38px); }
.login-card h1 { margin: 9px 0 6px; font-size: 30px; }
.login-card form { margin-top: 24px; }
.login-card .field { margin-bottom: 16px; }
.login-card .button { width: 100%; min-height: 48px; margin-top: 5px; }
.login-request { margin: 21px 0 0; font-size: 13px; line-height: 1.5; }
.login-byline { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--pcm-line); color: var(--pcm-muted); font-size: 12px; }
.login-byline strong { color: var(--pcm-blue); }
.page-login .product-footer { padding-bottom: 14px; }

.page-service-request .container { max-width: 900px; }
.request-card { max-width: 860px; margin: 18px auto 32px; padding: clamp(22px, 4vw, 42px); }
.request-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--pcm-line); }
.request-brand img { display: block; width: min(62%, 310px); height: auto; }
.request-brand span { color: var(--pcm-blue); font-size: 12px; font-weight: 750; text-align: right; }
.request-card h1 { margin: 8px 0; font-size: clamp(27px, 4vw, 36px); }
.request-card > p { max-width: 700px; color: var(--pcm-muted); line-height: 1.55; }
.request-card form { margin-top: 25px; }
.request-card .field { margin-bottom: 20px; }
.request-card .button-large { width: 100%; min-height: 50px; }
.tag-selector { align-items: stretch; }
.tag-selector select { min-height: 46px; }
.scanner-preview { width: 100%; max-height: 320px; margin-top: 12px; border: 1px solid var(--pcm-line); border-radius: 12px; background: #102a34; object-fit: cover; }
.guided-form .required { color: #a52b32; }

.dashboard-heading { margin-bottom: 20px; padding: 22px 24px; border: 1px solid #d8e7e9; border-radius: 14px; background: linear-gradient(105deg, #fff 0%, #f2f8f8 100%); }
.dashboard-heading h1 { margin: 5px 0; }
.dashboard-heading p { margin: 6px 0 0; }
.dashboard-kpis { margin-bottom: 18px; }
.action-queue { border-top: 3px solid var(--pcm-blue); }
.inspection-overview { border-color: #c5dce0; border-radius: 13px; box-shadow: 0 8px 22px rgb(16 56 74 / 8%); }
.inspection-actions .button, .inspection-actions summary { min-height: 48px; }
.order-steps a { border: 1px solid #d6e4e7; background: #f2f7f8; }
.downtime-fields { border-color: #c6dce0; border-radius: 10px; background: #f5fafb; }
.notification-item { border-radius: 12px; }
.tv .container { width: min(100% - 40px, 1800px); max-width: 1800px; margin: 22px auto; }
.tv-brand-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; padding: 14px 20px; border-radius: 14px; background: var(--pcm-navy); color: #d1e1e7; }
.tv-brand-header img { width: 240px; height: 52px; object-fit: contain; object-position: left center; }
.tv-brand-header h1 { margin: 0 0 3px; color: #fff; font-size: 23px; }
.tv-brand-header span { color: #c4d6dc; font-size: 13px; }
.help-header .brand-logo { width: 246px; }
.flow-brand { display: flex; align-items: center; gap: 24px; }
.flow-brand .brand-logo { width: 245px; }
.flow-header .flow-brand h1 { font-size: 20px; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; max-width: 560px; gap: 10px; }
  .login-brand-panel { padding: 10px 4px; }
  .login-logo { width: min(100%, 350px); }
  .login-descriptor, .login-slogan, .login-cycle { margin-left: 0; }
  .login-slogan { max-width: 500px; margin-top: 14px; font-size: 26px; }
  .login-cycle { gap: 6px; }
  .login-card { max-width: none; }
}
@media (max-width: 850px) {
  .topbar { align-items: center; }
  .brand-logo { width: 218px; height: 48px; }
  .account-summary { margin-left: 52px; }
  .public-topbar { display: flex !important; flex-direction: row; }
  .public-topbar .brand-logo { width: 195px; }
  .public-topbar .public-nav { display: flex; width: auto; padding: 0; border: 0; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1440px); margin-top: 18px; }
  .topbar { gap: 8px; }
  .brand-logo { width: 195px; height: 45px; }
  .account-summary { margin-left: 48px; font-size: 10px; }
  .unit-switcher { min-width: 0; }
  .public-topbar { display: grid !important; grid-template-columns: 1fr auto; }
  .public-topbar .brand-logo { width: 175px; }
  .public-topbar .public-nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .public-topbar .public-nav a { min-height: 42px; }
  .page-login .container { min-height: auto; }
  .login-layout { margin-top: 2px; }
  .login-brand-panel { padding: 4px 0 12px; }
  .login-logo { width: min(100%, 300px); }
  .login-descriptor { margin-top: 10px; font-size: 13px; }
  .login-slogan { margin: 13px 0; font-size: 24px; }
  .login-cycle { font-size: 10px; }
  .login-cycle span { padding: 6px 8px; }
  .login-card { padding: 22px; }
  .login-card h1 { font-size: 26px; }
  .request-card { padding: 20px; }
  .request-brand { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .request-brand img { width: min(100%, 280px); }
  .request-brand span { text-align: left; }
  .request-card .tag-selector { grid-template-columns: 1fr; }
  .request-card .tag-selector .button { width: 100%; }
  .dashboard-heading { padding: 18px; }
  .product-footer { gap: 4px 9px; font-size: 11px; }
}

/* Acesso com imagem de operação, alinhado ao padrão visual FROTAOPS. */
.page-login .topbar.public-topbar { margin-bottom: 10px; }
.page-login .topbar.public-topbar { display: none !important; }
.page-login .login-layout { width: min(100%, 1280px); grid-template-columns: minmax(0,1.12fr) minmax(380px,.88fr); gap: clamp(20px,3vw,42px); }
.page-login .login-brand-panel { position: relative; isolation: isolate; display: flex; min-height: min(660px,calc(100vh - 112px)); flex-direction: column; justify-content: flex-end; overflow: hidden; padding: clamp(26px,4vw,52px); border: 1px solid rgba(255,255,255,.16); border-radius: 26px; background: #102b3b url('pcm360-login-scene.png') center/cover no-repeat; box-shadow: 0 24px 64px rgb(16 56 74 / 18%); }
.page-login .login-brand-panel::before { position:absolute;z-index:-1;inset:0;content:"";background:linear-gradient(90deg,rgba(8,30,43,.88),rgba(8,30,43,.28)),linear-gradient(0deg,rgba(8,30,43,.7),transparent 75%); }
.page-login .login-brand-panel > * { position:relative;z-index:1; }
.page-login .login-brand-panel .login-logo { width:min(100%,350px);padding:12px 16px;border-radius:12px;background:rgba(255,255,255,.94);filter:drop-shadow(0 4px 16px rgba(0,0,0,.18)); }
.page-login .login-brand-panel .login-logo { height:58px;object-fit:contain; }
.page-login .login-descriptor { margin:20px 0 5px; color:#d5e6ec; }
.page-login .login-slogan { max-width:520px;margin:18px 0;color:#fff;font-size:clamp(27px,3vw,42px);text-shadow:0 2px 16px rgba(0,0,0,.25); }
.page-login .login-cycle { margin:0;color:#fff; }
.page-login .login-cycle span { border-color:rgba(255,255,255,.22);background:rgba(11,36,49,.55);color:#fff;backdrop-filter:blur(8px); }
.page-login .login-cycle i { color:#72ddd0; }
.page-login .login-card { align-self:center;border:1px solid #e1eaed;border-radius:22px;box-shadow:0 24px 64px rgb(16 56 74 / 12%); }
.page-login .login-card { width:100%;max-width:460px; }
.page-login .login-card input[type="email"],.page-login .login-card input[type="password"],.page-login .login-card select { height:48px;min-height:48px;box-sizing:border-box;padding:12px 16px;font-size:16px;line-height:1.5; }
.page-login .login-card .brshub-central-access input { width:.8rem;height:.8rem;min-height:.8rem;padding:0; }
@media(max-width:900px){.page-login .login-layout{grid-template-columns:1fr;max-width:620px;gap:14px}.page-login .login-brand-panel{min-height:310px;padding:28px}.page-login .login-slogan{margin:13px 0;font-size:29px}.page-login .login-descriptor{margin-top:14px}}
@media(max-width:600px){.page-login .login-layout{gap:12px}.page-login .login-brand-panel{min-height:250px;padding:21px;border-radius:20px}.page-login .login-brand-panel .login-logo{width:min(100%,270px)}.page-login .login-slogan{font-size:25px}.page-login .login-card{padding:20px;border-radius:18px}}
@media (max-width: 700px) {
  .tv-brand-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .flow-brand { align-items: flex-start; flex-direction: column; gap: 8px; }
  .flow-brand .brand-logo, .help-header .brand-logo { width: min(100%, 220px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Acabamento de navegação compartilhado com a identidade BRSHUB. */
.topbar {
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(112deg,#10263a,var(--pcm-navy) 58%,#14576a);
  box-shadow: 0 8px 26px rgba(16,38,58,.2);
}
.brand-block,.brand-link { color: #fff; }
.account-summary { color: #d0e1e7; }
.account-summary span { color: #83e1d0; }
.unit-switcher select {
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 9px;
  background-color: rgba(255,255,255,.1);
  color: #fff;
}
.unit-switcher select option { color: #17242a; }
.nav { gap: 5px; }
.nav a {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(244,250,253,.83);
  font-weight: 650;
  transition: color .16s ease,background-color .16s ease,border-color .16s ease,transform .16s ease;
}
.nav a:hover,.nav a:focus-visible {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.11);
  color: #fff;
  transform: translateY(-1px);
}
.nav a.active {
  border-color: rgba(255,255,255,.2);
  background: #fff;
  color: var(--pcm-navy);
  box-shadow: inset 0 -2px 0 #56cbb8,0 2px 8px rgba(0,0,0,.1);
}
.topbar .button,.topbar button,.topbar select { border-radius: 9px; }
.button { transition: transform .16s ease,box-shadow .16s ease,background-color .16s ease; }
.button:hover { box-shadow: 0 6px 16px rgba(16,38,58,.14); }
:focus-visible { outline: 3px solid #e3a72c; outline-offset: 2px; }
@media (max-width: 850px) {
  .nav { gap: 7px; }
  .nav a { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.07); }
  .nav a.active { background: #fff; }
}
