/* Página de consulta — identidade visual alinhada ao Portal do Condomínio */
.pc-lookup-shell,
.pc-lookup-shell *{box-sizing:border-box}
.pc-lookup-shell{
  --pc-ink:#17233b;--pc-muted:#68758c;--pc-primary:#4657c8;--pc-primary-dark:#3545ad;
  width:100vw;min-height:100vh;margin-left:calc(50% - 50vw);padding:clamp(24px,5vw,56px) 18px;
  display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate;overflow:hidden;
  background:radial-gradient(ellipse at 15% 12%,rgba(91,105,218,.28),transparent 38%),
             radial-gradient(ellipse at 88% 86%,rgba(39,83,145,.3),transparent 38%),
             linear-gradient(135deg,#101b32 0%,#1b2a49 52%,#25265a 100%);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--pc-ink)
}
.pc-lookup-card{
  width:100%;max-width:550px;padding:clamp(22px,4vw,34px);position:relative;
  background:rgba(255,255,255,.98);border:1px solid rgba(255,255,255,.7);border-radius:24px;
  box-shadow:0 28px 80px rgba(3,10,28,.34),0 3px 10px rgba(3,10,28,.08)
}
.pc-lookup-header{display:flex;align-items:center;gap:15px;padding-bottom:23px;margin-bottom:25px;border-bottom:1px solid #e9edf4}
.pc-lookup-shield{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:16px;
  color:#fff;background:linear-gradient(145deg,#5969dc,#3949b5);box-shadow:0 9px 20px rgba(70,87,200,.23)}
.pc-lookup-shield svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pc-lookup-header h1{margin:0;color:#18243b;font-size:clamp(20px,3vw,23px);line-height:1.2;font-weight:800;letter-spacing:-.035em}
.pc-lookup-header p{margin:6px 0 0;color:#77839a;font-size:12px;line-height:1.45;font-weight:500}
.pc-lookup-form label{display:block;margin:0 0 10px;color:#59667d;font-size:10px;letter-spacing:.14em;font-weight:800}
.pc-lookup-inputrow{display:flex;gap:10px;align-items:stretch}
.pc-lookup-inputrow input{width:100%;min-width:0;flex:1;height:52px;padding:0 16px;border:1px solid #dce2ed;border-radius:13px;
  background:#f7f9fc;color:#1c2941;font-size:16px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}
.pc-lookup-inputrow input::placeholder{color:#a6afbf;font-weight:600;letter-spacing:.08em}
.pc-lookup-inputrow input:focus{border-color:#6978df;box-shadow:0 0 0 4px rgba(89,105,220,.13);background:#fff}
.pc-lookup-inputrow button,.pc-lookup-button{min-height:52px;padding:0 22px;border:0;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#5667d7,#3f50bb);color:#fff!important;font-size:13px;font-weight:750;text-decoration:none!important;white-space:nowrap;
  box-shadow:0 7px 16px rgba(70,87,200,.2);cursor:pointer;transition:transform .18s,box-shadow .18s,filter .18s}
.pc-lookup-inputrow button:hover,.pc-lookup-button:hover{filter:brightness(1.04);box-shadow:0 10px 20px rgba(70,87,200,.27);transform:translateY(-1px)}
.pc-lookup-inputrow button:active,.pc-lookup-button:active{transform:translateY(0)}
.pc-lookup-result{margin-top:22px;padding:18px;border:1px solid;border-radius:16px;animation:pcLookupIn .22s ease-out}
.pc-lookup-found{background:linear-gradient(135deg,#effbf5,#e8f8ef);border-color:#b9e8ce}
.pc-lookup-denied{background:linear-gradient(135deg,#fff4f4,#fff0f2);border-color:#f3c9d0}
.pc-lookup-warning{background:#fff9e9;border-color:#f2dfaa;color:#8a6413;font-size:13px}
.pc-lookup-status{display:flex;align-items:center;gap:10px;margin:0 0 15px;font-size:14px;font-weight:800;letter-spacing:-.01em}
.pc-lookup-found .pc-lookup-status{color:#14734d}.pc-lookup-denied .pc-lookup-status{color:#b52e4c}
.pc-lookup-status-icon{width:25px;height:25px;flex:0 0 25px;display:inline-grid;place-items:center;border-radius:50%;background:#209765;color:#fff;font-size:15px;font-weight:800}
.pc-lookup-denied .pc-lookup-status-icon{background:#d84b66}
.pc-lookup-denied p{margin:0;color:#8f3448;font-size:12px;line-height:1.6}
.pc-lookup-details{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:rgba(255,255,255,.78);padding:15px;border:1px solid rgba(185,232,206,.65);border-radius:12px}
.pc-lookup-details div{min-width:0}.pc-lookup-details .wide{grid-column:1/-1;padding-top:12px;border-top:1px solid #d9eee1}
.pc-lookup-details small{display:block;margin-bottom:5px;color:#78869a;font-size:9px;letter-spacing:.13em;font-weight:800}
.pc-lookup-details strong{display:block;color:#1e2d45;font-size:14px;line-height:1.4;font-weight:750;overflow-wrap:anywhere}
.pc-lookup-history{margin-top:25px;padding-top:19px;border-top:1px solid #e9edf4}
.pc-lookup-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px}
.pc-lookup-history-head strong{color:#7b879b;font-size:9px;letter-spacing:.14em;font-weight:850}
.pc-lookup-history-head button{padding:5px 0;border:0;background:transparent;color:#5363c8;font-size:11px;font-weight:650;cursor:pointer}
.pc-lookup-history-head button:hover{text-decoration:underline}
#pc-history-list{display:flex;flex-direction:column;gap:7px;max-height:175px;overflow:auto;padding-right:3px}
.pc-history-empty{margin:0;padding:12px 13px;border:1px dashed #dce2ec;border-radius:11px;color:#99a3b3;font-size:11px;font-style:normal;text-align:center}
.pc-history-row{display:flex;align-items:center;gap:10px;min-height:39px;padding:9px 11px;background:#f8f9fc;border:1px solid #edf0f5;border-radius:10px;font-size:11px}
.pc-history-row strong{color:#26334b;letter-spacing:.05em;font-size:11px}
.pc-history-row span{margin-left:auto;font-weight:700}.pc-history-found{color:#16835a}.pc-history-missing{color:#c13d59}.pc-history-row small{color:#9aa4b4;font-size:10px}
.pc-lookup-shell:has(.pc-lookup-button) .pc-lookup-card>p{color:#68758c;font-size:13px;line-height:1.6}
@keyframes pcLookupIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:540px){
  .pc-lookup-shell{padding:18px 12px;align-items:flex-start}
  .pc-lookup-card{margin:auto 0;padding:22px 18px;border-radius:20px}
  .pc-lookup-header{gap:12px;padding-bottom:19px;margin-bottom:21px}
  .pc-lookup-shield{width:48px;height:48px;flex-basis:48px;border-radius:14px}
  .pc-lookup-inputrow{flex-direction:column;gap:9px}
  .pc-lookup-inputrow button{width:100%;min-height:48px}
  .pc-lookup-details{gap:12px;padding:13px}
}
@media(prefers-reduced-motion:reduce){.pc-lookup-result{animation:none}.pc-lookup-inputrow button,.pc-lookup-button{transition:none}}

/* Ajustes adicionais para uso prioritário em smartphones */
html:has(.pc-lookup-shell),body:has(.pc-lookup-shell){margin:0!important;padding:0!important;width:100%;max-width:100%;overflow-x:hidden}
.pc-lookup-shell{min-height:100svh;min-height:100dvh;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
.pc-lookup-card{min-width:0}
.pc-lookup-inputrow input{min-width:0;appearance:none;-webkit-appearance:none}
.pc-lookup-inputrow button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media(max-width:600px){
  .pc-lookup-shell{width:100%;margin:0;padding-left:12px;padding-right:12px;align-items:center}
  .pc-lookup-card{width:100%;max-width:480px;margin:0;padding:clamp(18px,5vw,24px);border-radius:20px}
  .pc-lookup-header{align-items:center;gap:11px;padding-bottom:17px;margin-bottom:20px}
  .pc-lookup-header h1{font-size:clamp(19px,5.2vw,22px)}
  .pc-lookup-header p{font-size:11px}
  .pc-lookup-shield{width:44px;height:44px;flex-basis:44px}
  .pc-lookup-shield svg{width:25px;height:25px}
  .pc-lookup-form label{font-size:10px;margin-bottom:8px}
  .pc-lookup-inputrow{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .pc-lookup-inputrow input{height:54px;padding:0 14px;font-size:18px;border-radius:12px;letter-spacing:.1em}
  .pc-lookup-inputrow button{width:100%;height:52px;min-height:52px;font-size:14px;border-radius:12px}
  .pc-lookup-result{margin-top:17px;padding:15px;border-radius:14px}
  .pc-lookup-status{font-size:13px;gap:8px;margin-bottom:12px}
  .pc-lookup-details{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px}
  .pc-lookup-details strong{font-size:13px}
  .pc-lookup-history{margin-top:20px;padding-top:16px}
  .pc-lookup-history-head{align-items:center}
  .pc-lookup-history-head button{min-height:36px;padding:7px 3px}
  #pc-history-list{max-height:24vh;max-height:24dvh;min-height:38px}
  .pc-history-row{min-height:42px;padding:10px;font-size:12px}
}
@media(max-width:360px){
  .pc-lookup-shell{padding-left:9px;padding-right:9px}
  .pc-lookup-card{padding:16px 13px}
  .pc-lookup-header{gap:9px}
  .pc-lookup-shield{width:40px;height:40px;flex-basis:40px}
  .pc-lookup-header h1{font-size:18px}
  .pc-lookup-details{gap:9px;padding:10px}
}

/* Resultados de pesquisa pelos quatro últimos números da placa */
.pc-lookup-matches .pc-lookup-details{margin-top:12px}
.pc-lookup-matches .pc-lookup-details:first-of-type{margin-top:0}

/* Abas de consulta: placa ou unidade */
.pc-lookup-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px;padding:5px;background:#f0f2f8;border:1px solid #e5e9f2;border-radius:13px}
.pc-lookup-tab{min-height:44px;padding:9px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#65718a;font-size:12px;font-weight:750;cursor:pointer;transition:background .18s,color .18s,box-shadow .18s}
.pc-lookup-tab.is-active{background:#fff;color:#3f50bb;border-color:#e2e6f1;box-shadow:0 2px 7px rgba(24,36,59,.08)}
.pc-lookup-tab:focus-visible{outline:3px solid rgba(89,105,220,.28);outline-offset:2px}
.pc-lookup-tab-panel[hidden]{display:none!important}
.pc-lookup-tab-panel .pc-lookup-form{margin:0}
@media(max-width:360px){.pc-lookup-tabs{gap:5px}.pc-lookup-tab{font-size:11px;padding:8px 5px}}

/* Modelo exibido no histórico de consultas */
.pc-history-model { display: block; color: #64748b; font-size: 12px; margin-top: 3px; }
