:root{
  --bg:#07111f;
  --panel:#0d1b2d;
  --panel2:#12243a;
  --line:#26384f;
  --text:#f3f7ff;
  --muted:#9badc3;
  --blue:#20a9e8;
  --cyan:#27c7c5;
  --yellow:#f6c744;
  --green:#27c56d;
  --pink:#db4c96;
  --red:#ef5b65;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,sans-serif;
  font-size:17px;
}

.hidden{
  display:none!important;
}

.screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
  background:radial-gradient(circle at top,#12355f,#07111f 58%);
}

.auth{
  width:min(500px,95vw);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:28px;
  padding:30px;
  box-shadow:0 25px 70px #0008;
}

.logo{
  font-size:48px;
}

.auth h1{
  font-size:34px;
  margin:8px 0;
}

.auth p,
.muted{
  color:var(--muted);
}

label{
  display:block;
  font-weight:800;
  margin:15px 0 6px;
}

input,
textarea,
select{
  width:100%;
  padding:14px;
  background:#091626;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:13px;
  font-size:17px;
}

option{
  background:#091626;
}

.btn{
  border:0;
  border-radius:13px;
  padding:13px 16px;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

.primary{
  background:linear-gradient(90deg,var(--blue),var(--cyan));
  color:#001422;
}

.secondary{
  background:#182a41;
  color:var(--text);
  border:1px solid var(--line);
}

.danger{
  background:#3a1820;
  color:#ffb2b8;
}

.wide{
  width:100%;
  margin-top:14px;
}

.error{
  color:#ff8a93;
  margin-top:10px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  min-height:82px;
  padding:12px 18px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  background:
    linear-gradient(
      180deg,
      rgba(8,26,49,.98),
      rgba(5,18,34,.98)
    );

  border-bottom:1px solid #153b62;

  box-shadow:
    0 8px 30px rgba(0,0,0,.28);
}


.topbar-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}


.menu-icon{
  width:42px;
  height:42px;

  display:grid;
  place-items:center;

  border-radius:12px;

  border:1px solid #214a72;

  background:
    linear-gradient(
      145deg,
      #102b48,
      #091827
    );

  color:#ffffff;

  font-size:25px;
  line-height:1;

  box-shadow:
    inset 0 0 14px rgba(32,169,232,.08);
}


.brand-area{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}


.brand-symbol{
  width:48px;
  height:48px;

  display:grid;
  place-items:center;

  border-radius:50%;

  border:2px solid var(--blue);

  background:#071a2e;

  font-size:24px;

  box-shadow:
    0 0 18px rgba(32,169,232,.18);
}


.brand-text{
  min-width:0;
}


.brand-text b{
  display:block;

  color:var(--yellow);

  font-size:20px;
  font-weight:900;

  line-height:1.05;

  letter-spacing:.3px;
}


.brand-text small{
  display:block;

  margin-top:4px;

  color:#b6cce3;

  font-size:11px;

  letter-spacing:.5px;
}


.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}


.notification-icon,
.user-icon{
  width:42px;
  height:42px;

  display:grid;
  place-items:center;

  border-radius:50%;

  border:1px solid #214a72;

  background:
    linear-gradient(
      145deg,
      #102b48,
      #091827
    );

  color:#ffffff;

  font-size:19px;

  box-shadow:
    inset 0 0 14px rgba(32,169,232,.08);
}


.notification-icon{
  cursor:default;
}


.user-icon{
  cursor:pointer;
  padding:0;
}


.user-icon:hover{
  border-color:var(--blue);

  box-shadow:
    0 0 18px rgba(32,169,232,.18);
}


@media(max-width:600px){

  .topbar{
    min-height:74px;
    padding:10px 12px;
  }

  .menu-icon{
    width:38px;
    height:38px;
    font-size:22px;
  }

  .brand-symbol{
    width:42px;
    height:42px;
    font-size:20px;
  }

  .brand-text b{
    font-size:15px;
  }

  .brand-text small{
    font-size:9px;
  }

  .notification-icon,
  .user-icon{
    width:38px;
    height:38px;
    font-size:17px;
  }

}
.nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:20;
  background:#091626;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.nav button{
  border:0;
  background:none;
  color:#8395ad;
  padding:10px 4px 12px;
  font-size:22px;
}

.nav button span{
  display:block;
  font-size:12px;
  font-weight:800;
}

.nav button.active{
  color:#48c6ff;
  background:#0d1b2d;
}

main{
  max-width:1120px;
  margin:auto;
  padding:23px 18px 100px;
}

.view{
  display:none;
}

.view.active{
  display:block;
}

.title{
  font-size:32px;
  margin:0 0 5px;
}

.section,
.item,
.summary,
.hero,
.calendarBox,
.passwordCard{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:19px;
  padding:18px;
}

.toolbar,
.itemhead,
.modalhead{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.list{
  display:grid;
  gap:11px;
}

.itemtitle{
  font-size:20px;
  font-weight:850;
}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.small{
  border:0;
  border-radius:10px;
  padding:9px 12px;
  font-weight:800;
  background:#182a41;
  color:#fff;
  cursor:pointer;
}

.small.primary{
  background:#123b59;
  color:#61ceff;
}

.small.danger{
  background:#3b1820;
  color:#ff9da7;
}

.pill{
  display:inline-block;
  padding:6px 9px;
  border-radius:999px;
  background:#17293f;
  color:#bcd0e8;
  font-size:13px;
  font-weight:800;
}

.hero{
  background:linear-gradient(135deg,#082c56,#0c3f78);
}

.hero h2{
  font-size:30px;
  margin:0;
}

.hero .muted{
  color:#a9dbff;
}

.summaryGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:13px 0;
}

.summary{
  cursor:pointer;
  border-left:6px solid var(--blue);
}

.summary:nth-child(2){
  border-left-color:var(--green);
}

.summary:nth-child(3){
  border-left-color:var(--yellow);
}

.summary:nth-child(4){
  border-left-color:var(--pink);
}

.summary b{
  display:block;
  font-size:27px;
}

.tabs{
  display:flex;
  gap:8px;
  overflow:auto;
  margin:12px 0;
}

.tab{
  white-space:nowrap;
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 14px;
  font-weight:800;
  background:#12243a;
  color:#bcd0e8;
}

.tab.active{
  background:#0f5c96;
  color:#fff;
}

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}

.equipmentBox{
  border:1px dashed #38516e;
  border-radius:15px;
  padding:13px;
  margin-top:12px;
}

.calendarHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.calendarGrid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:5px;
}

.dow{
  text-align:center;
  font-weight:800;
  color:#89a0bc;
}

.day{
  min-height:120px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0a1727;
  padding:7px;
}

.day.other{
  opacity:.32;
}

.daynum{
  font-weight:900;
}

.count{
  display:block;
  width:100%;
  margin-top:5px;
  border:0;
  border-radius:7px;
  padding:6px;
  text-align:left;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.count.h{
  background:#0d3b57;
  color:#65d0ff;
}

.count.m{
  background:#49203b;
  color:#ff9ed1;
}

.photoGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.photoCard{
  background:#091626;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}

.photoCard img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  cursor:pointer;
}

.photoMeta{
  padding:8px;
  font-size:13px;
  color:var(--muted);
}

.passwordGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.passwordCard b{
  font-size:20px;
  display:block;
}

.code{
  font-size:28px;
  font-weight:900;
  letter-spacing:4px;
  color:var(--yellow);
  margin:10px 0;
}

.publicWrap{
  max-width:720px;
  margin:auto;
}

.publicHero{
  background:linear-gradient(135deg,#082c56,#0c3f78);
  border-radius:22px;
  padding:18px 20px;
  margin-bottom:14px;
}

.publicHero .logo{
  font-size:24px;
  margin-bottom:8px;
}

.publicHero h1{
  font-size:20px;
  line-height:1.2;
  margin:0 0 6px;
}

.publicHero p{
  font-size:13px;
  line-height:1.4;
  margin:0;
}

.publicCard{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  margin:12px 0;
}

.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  background:#000d;
  display:grid;
  place-items:center;
  padding:20px;
}

.lightbox img{
  max-width:96vw;
  max-height:92vh;
  border-radius:14px;
  box-shadow:0 20px 80px #000;
}

dialog{
  border:1px solid var(--line);
  border-radius:20px;
  padding:0;
  width:min(780px,96vw);
  max-height:92vh;
  background:var(--panel);
  color:var(--text);
  overflow:hidden;
}
dialog::backdrop{
  background:#000b;
}

.modalbody{
  padding:21px;
  overflow:auto;
  max-height:92vh;
}

.close{
  border:1px solid var(--line);
  background:#17293f;
  color:#fff;
  border-radius:50%;
  width:38px;
  height:38px;
  font-size:18px;
}

@media(max-width:700px){

  .summaryGrid,
  .two,
  .passwordGrid{
    grid-template-columns:1fr;
  }

  .calendarGrid{
    gap:2px;
  }

  .day{
    min-height:90px;
    padding:4px;
  }

  .count{
    font-size:9px;
    padding:4px;
  }

  .photoGrid{
    grid-template-columns:repeat(2,1fr);
  }
}/* CALENDÁRIO COMPACTO */

.calendarHead{
  margin-bottom:6px;
}

.calendarHead h2{
  margin:0;
  font-size:22px;
}

.calendarLegend{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:6px 0 10px;
  font-size:12px;
  color:var(--muted);
}

.legendItem{
  display:flex;
  align-items:center;
  gap:5px;
}

.legendDot{
  width:9px;
  height:9px;
  border-radius:50%;
  display:inline-block;
}

.legendDot.h{
  background:#20a9e8;
}

.legendDot.m{
  background:#db4c96;
}

.calendarBox{
  padding:8px;
}

.calendarGrid{
  gap:3px;
}

.dow{
  font-size:12px;
  padding:2px 0;
}

.day{
  min-height:68px;
  padding:4px;
  border-radius:8px;
}

.daynum{
  font-size:13px;
}

.count{
  font-size:9px;
  padding:3px 4px;
  margin-top:3px;
  line-height:1.1;
}

@media(max-width:700px){

  main{
    padding-top:12px;
  }

  .calendarHead h2{
    font-size:18px;
  }

  .calendarHead .btn{
    padding:8px 11px;
  }

  .calendarLegend{
    font-size:10px;
    gap:8px;
  }

  .calendarBox{
    padding:5px;
  }

  .calendarGrid{
    gap:2px;
  }

  .dow{
    font-size:10px;
  }

  .day{
    min-height:56px;
    padding:3px;
  }

  .daynum{
    font-size:11px;
  }

  .count{
    font-size:8px;
    padding:2px 3px;
  }
}
.publicSafeBox{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:#0f2036;
  border:1px solid var(--line);
}

.publicEquipmentBox{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#0b1829;
}

.publicEquipmentHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}

.publicEquipmentTitle{
  font-size:26px;
  font-weight:900;
}

.publicInfoGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:10px;
}

.publicInfoItem{
  background:#091626;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}

.publicInfoItem b{
  display:block;
  margin-bottom:6px;
}

.publicServiceList{
  margin-top:16px;
  display:grid;
  gap:12px;
}

.publicServiceCard{
  background:#102238;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  cursor:pointer;
  transition:.2s ease;
}

.publicServiceCard:hover{
  transform:translateY(-2px);
  border-color:#3fb5ff;
  box-shadow:0 10px 26px #0004;
}

.publicServiceTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.publicAction{
  min-width:88px;
  text-align:center;
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  background:#123b66;
  color:#7fd9ff;
}

.publicHint{
  color:#dce7f7;
  margin-top:10px;
  line-height:1.45;
}

.publicMetaRow{
  margin-top:12px;
}

.publicBadge{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  background:#0b3153;
  color:#88ddff;
  font-size:13px;
  font-weight:800;
}

.modalHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
}

.publicDetailSection{
  margin-top:18px;
}

.publicDetailSection h3{
  margin:0 0 10px;
  font-size:22px;
}

@media(max-width:700px){

  .publicInfoGrid{
    grid-template-columns:1fr;
  }

  .publicEquipmentTitle{
    font-size:20px;
  }

  .publicServiceTop{
    align-items:flex-start;
  }

  .publicAction{
    min-width:auto;
  }
}
/* =========================================
   TELA PRINCIPAL DO ADMINISTRADOR
   ========================================= */

.adminHome{
  width:100%;
}


.adminWelcome{
  position:relative;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;

  padding:28px;

  border:1px solid #174a79;
  border-radius:24px;

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(32,169,232,.20),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #0b2747,
      #071522 70%
    );

  box-shadow:
    0 18px 45px rgba(0,0,0,.25),
    inset 0 0 30px rgba(32,169,232,.04);

  overflow:hidden;
}


.adminWelcome::after{
  content:"❄";

  position:absolute;
  right:30px;
  bottom:-45px;

  font-size:150px;
  line-height:1;

  color:rgba(32,169,232,.055);

  pointer-events:none;
}


.adminEyebrow{
  color:#4fc5ff;

  font-size:11px;
  font-weight:900;

  letter-spacing:2.2px;

  margin-bottom:8px;
}


.adminWelcome h1{
  position:relative;
  z-index:1;

  margin:0;

  font-size:32px;
  line-height:1.05;
}


.adminWelcome p{
  position:relative;
  z-index:1;

  max-width:580px;

  margin:9px 0 0;

  color:#b6c7da;

  line-height:1.45;
}


.adminNewClient{
  position:relative;
  z-index:2;

  flex-shrink:0;

  padding:14px 20px;
}


.adminNavCards{
  display:grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:12px;

  margin-top:14px;
}


.adminNavCard{
  position:relative;

  min-height:126px;

  display:flex;
  align-items:center;
  gap:14px;

  padding:18px;

  text-align:left;

  border-radius:19px;
  border:1px solid #1f4e77;

  background:
    linear-gradient(
      145deg,
      #102842,
      #0a1727
    );

  color:#ffffff;

  cursor:pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}


.adminNavCard:hover{
  transform:translateY(-2px);

  border-color:#28aff0;

  box-shadow:
    0 12px 28px rgba(0,0,0,.25);
}


.adminNavCard.yellow{
  border-color:#725d17;

  background:
    radial-gradient(
      circle at top right,
      rgba(246,199,68,.12),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      #17263a,
      #0b1828
    );
}


.adminNavIcon{
  width:52px;
  height:52px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border-radius:15px;

  background:#0a3558;

  font-size:25px;

  border:1px solid #176397;
}


.adminNavCard.yellow
.adminNavIcon{
  background:#3b3314;
  border-color:#7d681d;
}


.adminNavInfo{
  min-width:0;
}


.adminNavInfo span{
  display:block;

  font-weight:900;
  font-size:16px;
}


.adminNavInfo strong{
  display:block;

  margin-top:3px;

  font-size:30px;
  line-height:1;
}


.adminNavInfo small{
  display:block;

  margin-top:5px;

  color:#90a8c2;

  font-size:11px;
}


.adminArrow{
  margin-left:auto;

  color:#24b3f6;

  font-size:30px;
  font-weight:300;
}


.adminNavCard.yellow
.adminArrow{
  color:var(--yellow);
}


.adminStats{
  display:grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:10px;

  margin-top:12px;
}


.adminStat{
  min-height:82px;

  display:flex;
  align-items:center;
  gap:12px;

  padding:14px 16px;

  border-radius:17px;

  background:#0b1b2d;

  border:1px solid #233b55;
}


.adminStatIcon{
  width:42px;
  height:42px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border-radius:50%;

  font-size:20px;
}


.adminStat strong{
  display:block;

  font-size:25px;
  line-height:1;
}


.adminStat span{
  display:block;

  margin-top:5px;

  color:#9db0c6;

  font-size:12px;
}


.adminStat.warning
.adminStatIcon{
  background:#4b2520;
  color:#ff9e75;
}


.adminStat.next
.adminStatIcon{
  background:#413916;
  color:#ffd75a;
}


.adminStat.equipment
.adminStatIcon{
  background:#123b59;
  color:#58c8ff;
}


.adminSectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;

  margin:28px 0 12px;
}


.adminSectionHead h2{
  margin:0;

  font-size:26px;
}


.adminSectionHead p{
  margin:6px 0 0;

  color:var(--muted);

  font-size:13px;
}


.adminSearch{
  display:flex;
  align-items:center;
  gap:10px;

  padding:0 14px;

  border:1px solid #233f5e;
  border-radius:15px;

  background:#091626;

  margin-bottom:13px;
}


.adminSearch span{
  font-size:17px;
  opacity:.8;
}


.adminSearch input{
  border:0;
  background:transparent;

  padding-left:0;

  outline:none;
}


.adminClientList .item{
  padding:12px 16px;
  border-radius:15px;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}
.adminClientList .itemhead{
  gap:8px;
}

.adminClientList .itemtitle{
  font-size:18px;
  line-height:1.15;
}

.adminClientList .muted{
  gap:2px !important;
  margin-top:4px !important;
  font-size:14px;
  line-height:1.25;
}

.adminClientList .pill{
  padding:5px 8px;
  font-size:12px;
}

.adminClientList .small{
  padding:7px 10px;
  font-size:13px;
}

.adminClientList .item:hover{
  transform:translateY(-2px);

  border-color:#2478ad;

  box-shadow:
    0 10px 24px rgba(0,0,0,.22);
}


@media(max-width:760px){

  .adminWelcome{
  align-items:flex-start;
  flex-direction:column;

  padding:20px;

  border-radius:20px;
}


  .adminWelcome h1{
    font-size:26px;
  }


  .adminWelcome p{
    font-size:14px;
  }


  .adminNewClient{
  display:block;
  width:100%;
  margin-top:16px;
}


  .adminNavCards{
    grid-template-columns:1fr;
  }


  .adminNavCard{
    min-height:96px;
  }


  .adminStats{
    grid-template-columns:
      repeat(3,1fr);
  }


  .adminStat{
    min-height:100px;

    flex-direction:column;
    align-items:flex-start;

    padding:12px;
  }


  .adminStatIcon{
    width:34px;
    height:34px;

    font-size:16px;
  }


  .adminStat strong{
    font-size:22px;
  }


  .adminStat span{
    font-size:10px;
  }

}


@media(max-width:430px){

  .adminWelcome{
    padding:18px;
  }


  .adminWelcome h1{
    font-size:23px;
  }


  .adminNavInfo strong{
    font-size:26px;
  }


  .adminStats{
    gap:6px;
  }


  .adminStat{
    padding:10px 8px;
  }

}

/* =========================================
   FICHA DO CLIENTE - VISUAL PREMIUM LUVAL
   ETAPA 1: CABEÇALHO + RESUMOS
========================================= */

#clientDetail .hero{
  background:
    linear-gradient(
      135deg,
      #071522 0%,
      #0a2038 55%,
      #073563 100%
    );
  border:1px solid #168cff;
  border-radius:22px;
  padding:22px;
  box-shadow:
    0 14px 35px rgba(0,0,0,.28),
    0 0 22px rgba(0,132,255,.10);
}

#clientDetail .hero h2{
  margin:0 0 7px;
  font-size:26px;
  color:#ffffff;
}

#clientDetail .hero .muted{
  color:#a9bdd3;
}

#clientDetail .hero .actions{
  gap:8px;
}

#clientDetail .hero .small{
  min-height:38px;
  padding:8px 14px;
  border-radius:10px;
}

#clientDetail .summaryGrid{
  display:grid;
  grid-template-columns:
    repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

#clientDetail .summary{
  position:relative;
  min-height:105px;
  padding:18px;
  border-radius:18px;
  background:
    linear-gradient(
      145deg,
      #091828,
      #0d2137
    );
  border:1px solid #1b3d60;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  cursor:pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

#clientDetail .summary:hover{
  transform:translateY(-2px);
  border-color:#168cff;
  box-shadow:
    0 10px 25px rgba(0,0,0,.22),
    0 0 18px rgba(0,132,255,.10);
}

#clientDetail .summary b{
  font-size:23px;
  color:#ffffff;
}

#clientDetail .summary:nth-child(3){
  border-color:#d8b11f;
}

#clientDetail .summary:nth-child(3) b{
  color:#ffd633;
}

#clientDetail .summary:nth-child(4){
  border-color:#168cff;
}

#clientDetail > .btn.secondary{
  margin-bottom:2px;
  border-radius:11px;
}


/* CELULAR */

@media(max-width:700px){

  #clientDetail .hero{
    padding:17px;
  }

  #clientDetail .hero .itemhead{
    align-items:flex-start;
    gap:14px;
  }

  #clientDetail .hero .actions{
    width:100%;
  }

  #clientDetail .hero .actions .small{
    flex:1;
  }

  #clientDetail .summaryGrid{
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }

  #clientDetail .summary{
    min-height:95px;
    padding:14px;
  }

  #clientDetail .summary b{
    font-size:19px;
  }

}

/* =========================================
   FICHA DO CLIENTE - VISUAL PREMIUM LUVAL
   ETAPA 2: EQUIPAMENTOS + HISTÓRICO
========================================= */

#clientDetail .list > .item{
  background:
    linear-gradient(
      145deg,
      #0b1b2d,
      #0a1727
    );
  border:1px solid #234667;
  border-radius:18px;
  box-shadow:
    0 12px 28px rgba(0,0,0,.18);
}

#clientDetail .list > .item > .itemhead{
  background:
    linear-gradient(
      90deg,
      rgba(18,59,89,.38),
      rgba(7,21,34,.15)
    );
  border-bottom:1px solid #1f3d59;
}

#clientDetail .list > .item .itemtitle{
  font-size:21px;
  font-weight:900;
  color:#ffffff;
}

#clientDetail .list > .item .muted{
  color:#9eb4ca;
}

#clientDetail .list > .item .actions{
  margin-top:0;
}

#clientDetail .list > .item .small{
  min-height:39px;
  padding:9px 14px;
}

#clientDetail .list > .item .small.primary{
  background:
    linear-gradient(
      90deg,
      #0f567e,
      #126890
    );
  color:#78d8ff;
  border:1px solid #1b6c96;
}

#clientDetail .list > .item h3{
  margin:18px 0 12px;
  font-size:19px;
  color:#ffffff;
}

#clientDetail .list > .item .list{
  gap:9px;
}

#clientDetail .list > .item .list .item{
  background:#091626;
  border:1px solid #1d3d59;
  border-radius:14px;
  padding:14px;
  box-shadow:none;
}

#clientDetail .list > .item .list .item:hover{
  border-color:#168cff;
}

#clientDetail .list > .item .list .item .itemtitle{
  font-size:17px;
}

#clientDetail .list > .item .list .item .muted{
  font-size:14px;
}

#clientDetail .list > .item .list .item .actions{
  margin-top:8px;
}

#clientDetail .list > .item .list .item .small{
  min-height:34px;
  padding:7px 11px;
}


/* PRÓXIMA MANUTENÇÃO DENTRO DO EQUIPAMENTO */

#clientDetail .list > .item .itemhead div div[style*="font-weight:700"]{
  display:inline-block;
  padding:7px 11px;
  border-radius:999px;
  background:#332d11;
  border:1px solid #8b741c;
  color:#ffd84a;
}


/* CELULAR */

@media(max-width:700px){

  #clientDetail .list > .item > .itemhead{
    align-items:flex-start;
  }

  #clientDetail .list > .item > .itemhead .actions{
    width:100%;
    margin-top:10px;
  }

  #clientDetail .list > .item > .itemhead .actions .small{
    flex:1;
  }

}
/* =========================================
   FICHA DO CLIENTE - VISUAL PREMIUM LUVAL
   ETAPA 3B: HISTÓRICO DE SERVIÇOS
========================================= */

#clientDetail .serviceHistoryCard{
  display:grid;
  grid-template-columns:
    minmax(0,1fr)
    auto
    auto;
  align-items:center;
  gap:18px;

  padding:14px 16px;

  background:
    linear-gradient(
      90deg,
      #0b1b2d,
      #091626
    );

  border:1px solid #214363;
  border-radius:14px;
}

#clientDetail .serviceHistoryMain{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}

#clientDetail .serviceHistoryIcon{
  width:44px;
  height:44px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border-radius:12px;

  background:#0c3558;
  border:1px solid #176397;

  color:#6bd1ff;
  font-size:21px;
}

#clientDetail .serviceHistoryInfo{
  min-width:0;
}

#clientDetail .serviceHistoryInfo .itemtitle{
  font-size:17px;
  margin-bottom:5px;
}

#clientDetail .serviceHistoryDate{
  color:#a8bdd2;
  font-size:13px;
}

#clientDetail .serviceHistoryDate b{
  color:#dcecff;
}

#clientDetail .serviceHistoryEquipment{
  margin-top:4px;

  color:#7896b5;
  font-size:12px;
}

#clientDetail .serviceHistoryPrivacy{
  min-width:185px;

  padding:9px 12px;

  border-radius:12px;

  background:#081522;
  border:1px solid #1b3852;

  color:#b7cada;
  font-size:12px;
}

#clientDetail .serviceHistoryPrivacy > div{
  font-weight:800;
  color:#dce9f7;
}

#clientDetail .serviceHistoryPrivacy small{
  display:block;
  margin-top:4px;
  color:#91a9c0;
  line-height:1.35;
}

#clientDetail .serviceHistoryActions{
  display:flex;
  align-items:center;
  gap:7px;
}

#clientDetail .serviceHistoryActions .small{
  margin:0;
}


/* INSTALAÇÃO */

#clientDetail .serviceHistoryCard:has(
  .serviceHistoryInfo
  .itemtitle
){
  transition:
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

#clientDetail .serviceHistoryCard:hover{
  transform:translateY(-1px);
  border-color:#2388c5;

  box-shadow:
    0 8px 20px rgba(0,0,0,.18);
}


/* CELULAR */

@media(max-width:760px){

  #clientDetail .serviceHistoryCard{
    grid-template-columns:1fr;
    gap:11px;
  }

  #clientDetail .serviceHistoryPrivacy{
    min-width:0;
  }

  #clientDetail .serviceHistoryActions{
    width:100%;
  }

  #clientDetail .serviceHistoryActions .small{
    flex:1;
  }

}
/* =========================================
   FICHA DO CLIENTE - VISUAL PREMIUM LUVAL
   ETAPA 4B: ESTRUTURA POR EQUIPAMENTO
========================================= */

#clientDetail .equipmentGroupCard{
  overflow:hidden;

  border:1px solid #234b70;
  border-radius:18px;

  background:
    linear-gradient(
      145deg,
      #0a1727,
      #0b1c2f
    );

  box-shadow:
    0 12px 28px rgba(0,0,0,.20);
}


/* CABEÇALHO DO EQUIPAMENTO */

#clientDetail .equipmentGroupHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;

  padding:15px 18px;

  background:
    linear-gradient(
      90deg,
      #0b2947,
      #0a1b2d 70%
    );

  border-bottom:1px solid #214664;
}

#clientDetail .equipmentGroupIdentity{
  display:flex;
  align-items:center;
  gap:13px;

  min-width:0;
}

#clientDetail .equipmentGroupIcon{
  width:48px;
  height:48px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border-radius:50%;

  background:#0b385d;
  border:1px solid #1876ad;

  color:#70d7ff;

  font-size:22px;

  box-shadow:
    inset 0 0 18px rgba(32,169,232,.08);
}

#clientDetail .equipmentGroupTitle{
  font-size:20px;
  font-weight:900;

  color:#ffffff;
}

#clientDetail .equipmentGroupMeta{
  margin-top:3px;

  color:#afc4d9;

  font-size:13px;
}

#clientDetail .equipmentGroupType{
  margin-top:3px;

  color:#6f9fc9;

  font-size:12px;
}

#clientDetail .equipmentGroupHeadActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;

  flex-wrap:wrap;
}

#clientDetail .equipmentMaintenanceBadge{
  padding:8px 11px;

  border-radius:999px;

  border:1px solid #8b741c;

  background:#332d11;

  color:#ffd84a;

  font-size:12px;
  font-weight:700;
}

#clientDetail .equipmentMaintenanceBadge.empty{
  border-color:#334b63;
  background:#132238;
  color:#879db4;
}


/* CORPO EM DUAS COLUNAS */

#clientDetail .equipmentGroupBody{
  display:grid;

  grid-template-columns:
    300px
    minmax(0,1fr);

  gap:12px;

  padding:12px;
}


/* PAINEL DE INFORMAÇÕES */

#clientDetail .equipmentInfoPanel,
#clientDetail .equipmentHistoryPanel{
  border:1px solid #1f405d;
  border-radius:14px;

  background:#091827;
}

#clientDetail .equipmentInfoPanel{
  padding:12px;
}

#clientDetail .equipmentHistoryPanel{
  padding:12px;
}

#clientDetail .equipmentPanelTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  min-height:38px;

  margin-bottom:10px;

  color:#dcecff;

  font-size:13px;
  font-weight:900;
}

#clientDetail .equipmentPanelTitle > span{
  color:#cfe8ff;
}


/* DADOS DO EQUIPAMENTO */

#clientDetail .equipmentInfoGrid{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:8px;
}

#clientDetail .equipmentInfoField{
  min-width:0;

  padding:10px;

  border:1px solid #1b3954;
  border-radius:11px;

  background:#0a1b2d;
}

#clientDetail .equipmentInfoField span{
  display:block;

  margin-bottom:5px;

  color:#7f9ebd;

  font-size:11px;
}

#clientDetail .equipmentInfoField strong{
  display:block;

  color:#eef6ff;

  font-size:13px;

  overflow-wrap:anywhere;
}

#clientDetail .equipmentInfoMaintenance{
  margin-top:9px;

  padding:10px 11px;

  border:1px solid #735f19;
  border-radius:11px;

  background:#211e0d;
}

#clientDetail .equipmentInfoMaintenance span{
  display:block;

  color:#c7ae46;

  font-size:11px;
}

#clientDetail .equipmentInfoMaintenance strong{
  display:block;

  margin-top:4px;

  color:#ffd84a;

  font-size:14px;
}


/* HISTÓRICO */

#clientDetail .equipmentServiceList{
  display:grid;
  gap:8px;
}

#clientDetail .equipmentEmptyHistory{
  padding:18px;

  text-align:center;

  border:1px dashed #29445d;
  border-radius:12px;

  color:#7f98b0;

  background:#081522;
}


/* REFINO DOS SERVIÇOS DENTRO DO PAINEL */

#clientDetail .equipmentHistoryPanel
.serviceHistoryCard{
  grid-template-columns:
    minmax(0,1fr)
    175px
    auto;

  padding:11px 12px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryIcon{
  width:38px;
  height:38px;

  font-size:18px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryInfo .itemtitle{
  font-size:14px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryDate{
  font-size:11px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryEquipment{
  font-size:10px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryPrivacy{
  min-width:0;

  padding:8px 10px;

  font-size:10px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryActions{
  flex-direction:column;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryActions .small{
  width:100%;
}


/* TABLET */

@media(max-width:950px){

  #clientDetail .equipmentGroupBody{
    grid-template-columns:1fr;
  }

}


/* CELULAR */

@media(max-width:700px){

  #clientDetail .equipmentGroupHead{
    align-items:flex-start;
    flex-direction:column;
  }

  #clientDetail .equipmentGroupHeadActions{
    width:100%;
    justify-content:flex-start;
  }

  #clientDetail .equipmentGroupHeadActions
  .small{
    flex:1;
  }

  #clientDetail .equipmentInfoGrid{
    grid-template-columns:1fr;
  }

  #clientDetail .equipmentHistoryPanel
  .serviceHistoryCard{
    grid-template-columns:1fr;
  }

  #clientDetail .equipmentHistoryPanel
  .serviceHistoryActions{
    flex-direction:row;
  }

}
/* =========================================
   FICHA DO CLIENTE - MODO COMPACTO
   MAIS CONTEÚDO EM UMA ÚNICA TELA
========================================= */

/* tira o botão Voltar da ficha */
#clientDetail > .btn.secondary{
  display:none;
}


/* diminui espaço superior da ficha */
#clientDetail{
  padding-top:0;
}


/* cabeçalho do cliente mais compacto */
#clientDetail .hero{
  margin-top:0 !important;
  padding:14px 18px;
  border-radius:16px;
}

#clientDetail .hero h2{
  font-size:22px;
  margin-bottom:3px;
}

#clientDetail .hero .muted{
  font-size:13px;
}


/* cartões superiores mais baixos */
#clientDetail .summaryGrid{
  gap:9px;
  margin-top:9px;
}

#clientDetail .summary{
  min-height:72px;
  padding:10px 14px;
  border-radius:14px;
  gap:3px;
}

#clientDetail .summary b{
  font-size:19px;
}


/* aproxima a área de equipamentos */
#clientDetail .summaryGrid + .toolbar{
  margin-top:12px !important;
}

#clientDetail .summaryGrid + .toolbar h2{
  font-size:22px;
}

#clientDetail .summaryGrid + .toolbar .muted{
  font-size:12px;
}


/* equipamento mais compacto */
#clientDetail .equipmentGroupHead{
  padding:10px 14px;
}

#clientDetail .equipmentGroupIcon{
  width:40px;
  height:40px;
  font-size:18px;
}

#clientDetail .equipmentGroupTitle{
  font-size:17px;
}

#clientDetail .equipmentGroupMeta{
  font-size:11px;
}

#clientDetail .equipmentGroupType{
  font-size:10px;
}

#clientDetail .equipmentMaintenanceBadge{
  padding:6px 9px;
  font-size:10px;
}


/* diminui corpo do equipamento */
#clientDetail .equipmentGroupBody{
  grid-template-columns:275px minmax(0,1fr);
  gap:9px;
  padding:9px;
}

#clientDetail .equipmentInfoPanel,
#clientDetail .equipmentHistoryPanel{
  padding:9px;
}

#clientDetail .equipmentPanelTitle{
  min-height:30px;
  margin-bottom:7px;
  font-size:11px;
}


/* campos menores */
#clientDetail .equipmentInfoGrid{
  gap:6px;
}

#clientDetail .equipmentInfoField{
  padding:7px 8px;
}

#clientDetail .equipmentInfoField span{
  font-size:9px;
  margin-bottom:3px;
}

#clientDetail .equipmentInfoField strong{
  font-size:11px;
}

#clientDetail .equipmentInfoMaintenance{
  margin-top:6px;
  padding:7px 8px;
}

#clientDetail .equipmentInfoMaintenance span{
  font-size:9px;
}

#clientDetail .equipmentInfoMaintenance strong{
  font-size:11px;
}


/* serviços mais baixos */
#clientDetail .equipmentHistoryPanel .serviceHistoryCard{
  padding:8px 9px;
  min-height:60px;
}

#clientDetail .equipmentHistoryPanel .serviceHistoryIcon{
  width:32px;
  height:32px;
  font-size:15px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryInfo .itemtitle{
  font-size:12px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryDate{
  font-size:9px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryEquipment{
  font-size:9px;
}


/* botões mais compactos */
#clientDetail .small{
  min-height:30px !important;
  padding:6px 10px !important;
  font-size:11px;
}


/* esconde a barra inferior apenas na ficha do cliente */
body:has(#clientDetail.active) .nav{
  display:none;
}


/* reduz espaço que existia para a barra inferior */
body:has(#clientDetail.active) main{
  padding-bottom:15px;
}


/* topbar um pouco menor dentro da ficha */
body:has(#clientDetail.active) .topbar{
  min-height:66px;
  padding-top:7px;
  padding-bottom:7px;
}
/* =========================================
   FICHA DO CLIENTE - AJUSTE COMPACTO FINAL
   HISTÓRICO COM ROLAGEM PRÓPRIA
========================================= */


/* TOPBAR MAIS BAIXA NA FICHA DO CLIENTE */

body:has(#clientDetail.active) .topbar{
  min-height:58px;
  padding-top:5px;
  padding-bottom:5px;
}

body:has(#clientDetail.active) .brand-symbol{
  width:38px;
  height:38px;
  font-size:17px;
}

body:has(#clientDetail.active) .brand-text b{
  font-size:17px;
}

body:has(#clientDetail.active) .brand-text small{
  font-size:9px;
  margin-top:2px;
}

body:has(#clientDetail.active) .menu-icon,
body:has(#clientDetail.active) .notification-icon,
body:has(#clientDetail.active) .user-icon{
  width:36px;
  height:36px;
}


/* MENOS ESPAÇO ACIMA DA FICHA */

body:has(#clientDetail.active) main{
  padding-top:12px;
}


/* DEIXA TODO O EQUIPAMENTO MAIS COMPACTO */

#clientDetail .equipmentGroupHead{
  padding:8px 12px;
}

#clientDetail .equipmentGroupBody{
  padding:7px;
  gap:7px;
}

#clientDetail .equipmentInfoPanel,
#clientDetail .equipmentHistoryPanel{
  padding:7px;
}


/* =========================================
   SOMENTE O HISTÓRICO PODE ROLAR
========================================= */

#clientDetail .equipmentHistoryPanel{
  display:flex;
  flex-direction:column;
  min-height:0;
}

#clientDetail .equipmentServiceList{
  max-height:190px;

  overflow-y:auto;
  overflow-x:hidden;

  padding-right:5px;

  scrollbar-width:thin;
}


/* BARRA DE ROLAGEM DO HISTÓRICO */

#clientDetail .equipmentServiceList::-webkit-scrollbar{
  width:7px;
}

#clientDetail .equipmentServiceList::-webkit-scrollbar-track{
  background:#071522;
  border-radius:999px;
}

#clientDetail .equipmentServiceList::-webkit-scrollbar-thumb{
  background:#24577c;
  border-radius:999px;
}

#clientDetail .equipmentServiceList::-webkit-scrollbar-thumb:hover{
  background:#2f87bd;
}


/* =========================================
   SERVIÇO MAIS FINO E HORIZONTAL
========================================= */

#clientDetail .equipmentHistoryPanel
.serviceHistoryCard{
  grid-template-columns:
    minmax(0,1fr)
    160px
    auto;

  min-height:52px;

  padding:6px 8px;

  gap:8px;

  border-radius:10px;
}


/* ÍCONE MENOR */

#clientDetail .equipmentHistoryPanel
.serviceHistoryIcon{
  width:30px;
  height:30px;

  border-radius:9px;

  font-size:14px;
}


/* TÍTULO DO SERVIÇO */

#clientDetail .equipmentHistoryPanel
.serviceHistoryInfo .itemtitle{
  font-size:11px;
  margin-bottom:2px;
}


/* DATA */

#clientDetail .equipmentHistoryPanel
.serviceHistoryDate{
  font-size:8px;
  line-height:1.2;
}


/* EQUIPAMENTO */

#clientDetail .equipmentHistoryPanel
.serviceHistoryEquipment{
  margin-top:2px;
  font-size:8px;
}


/* PRIVACIDADE MAIS COMPACTA */

#clientDetail .equipmentHistoryPanel
.serviceHistoryPrivacy{
  padding:5px 7px;

  border-radius:9px;

  font-size:8px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryPrivacy small{
  margin-top:2px;
  font-size:7px;
}


/* BOTÕES MENORES */

#clientDetail .equipmentHistoryPanel
.serviceHistoryActions{
  gap:4px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryActions .small{
  min-height:25px !important;

  padding:4px 7px !important;

  font-size:9px;
}


/* TÍTULO DO HISTÓRICO MAIS BAIXO */

#clientDetail .equipmentHistoryPanel
.equipmentPanelTitle{
  min-height:25px;
  margin-bottom:5px;
}


/* CELULAR */

@media(max-width:700px){

  #clientDetail .equipmentServiceList{
    max-height:240px;
  }

  #clientDetail .equipmentHistoryPanel
  .serviceHistoryCard{
    grid-template-columns:1fr;
  }

}
/* =========================================
   HISTÓRICO DE SERVIÇOS COMPACTO
   ROLAGEM SOMENTE NESTA ÁREA
========================================= */

#clientDetail .equipmentHistoryPanel{
  overflow:hidden;
}


/* área fixa do histórico */

#clientDetail .equipmentServiceScrollWrap{
  position:relative;

  height:165px;

  padding-right:32px;
}


/* lista que sobe e desce */

#clientDetail .equipmentServiceList{
  height:100%;

  overflow-y:auto;
  overflow-x:hidden;

  display:grid;
  gap:5px;

  scrollbar-width:none;
}

#clientDetail .equipmentServiceList::-webkit-scrollbar{
  display:none;
}


/* setas */

#clientDetail .equipmentServiceArrows{
  position:absolute;

  top:50%;
  right:2px;

  transform:translateY(-50%);

  display:flex;
  flex-direction:column;

  gap:6px;

  z-index:2;
}

#clientDetail .equipmentServiceArrows button{
  width:25px;
  height:25px;

  padding:0;

  display:grid;
  place-items:center;

  border-radius:7px;

  border:1px solid #28577b;

  background:#102b46;
  color:#67ceff;

  font-size:10px;
  font-weight:900;

  cursor:pointer;
}

#clientDetail .equipmentServiceArrows button:hover{
  border-color:#20a9e8;
  background:#123b59;
}


/* cada serviço bem fino e horizontal */

#clientDetail .equipmentHistoryPanel
.serviceHistoryCard{
  min-height:48px;
  max-height:48px;

  grid-template-columns:
    minmax(0,1fr)
    150px
    auto;

  gap:7px;

  padding:5px 7px;

  border-radius:9px;

  overflow:hidden;
}


/* bloco principal */

#clientDetail .equipmentHistoryPanel
.serviceHistoryMain{
  gap:8px;
}


/* ícone pequeno */

#clientDetail .equipmentHistoryPanel
.serviceHistoryIcon{
  width:28px;
  height:28px;

  border-radius:8px;

  font-size:13px;
}


/* nome */

#clientDetail .equipmentHistoryPanel
.serviceHistoryInfo .itemtitle{
  margin:0;

  font-size:11px;
  line-height:1.1;
}


/* data */

#clientDetail .equipmentHistoryPanel
.serviceHistoryDate{
  margin-top:2px;

  font-size:8px;
  line-height:1.1;
}


/* nome do equipamento */

#clientDetail .equipmentHistoryPanel
.serviceHistoryEquipment{
  display:none;
}


/* cliente vê */

#clientDetail .equipmentHistoryPanel
.serviceHistoryPrivacy{
  padding:4px 6px;

  border-radius:8px;

  font-size:8px;

  line-height:1.05;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryPrivacy small{
  margin-top:1px;

  font-size:7px;
  line-height:1.05;
}


/* botões */

#clientDetail .equipmentHistoryPanel
.serviceHistoryActions{
  flex-direction:row;

  gap:3px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryActions .small{
  width:auto;

  min-height:25px !important;

  padding:3px 6px !important;

  font-size:8px;
}


/* celular */

@media(max-width:700px){

  #clientDetail .equipmentServiceScrollWrap{
    height:180px;
  }

}
/* =========================================
   HISTÓRICO - SERVIÇOS MAIS COMPACTOS
========================================= */

#clientDetail .equipmentHistoryPanel
.serviceHistoryCard{
  min-height:42px;
  max-height:42px;
  padding:4px 6px;
  gap:6px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryIcon{
  width:25px;
  height:25px;
  font-size:11px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryInfo .itemtitle{
  font-size:10px;
  line-height:1;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryDate{
  margin-top:2px;
  font-size:7px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryPrivacy{
  padding:3px 5px;
  font-size:7px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryPrivacy small{
  font-size:6px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryActions .small{
  min-height:22px !important;
  padding:2px 5px !important;
  font-size:7px;
}
/* =========================================
   TOPO DA FICHA - MAIS COMPACTO
========================================= */

#clientDetail .hero{
  padding:10px 14px !important;
  min-height:0;
}

#clientDetail .hero h2{
  font-size:18px;
  margin:0;
}

#clientDetail .hero .muted{
  margin-top:2px;
  font-size:11px;
}


/* QUATRO INDICADORES */

#clientDetail .summaryGrid{
  gap:8px;
  margin-top:7px;
  margin-bottom:9px;
}

#clientDetail .summary{
  min-height:58px;
  padding:7px 11px;
  border-radius:12px;
  gap:2px;
  font-size:11px;
}

#clientDetail .summary b{
  font-size:17px;
  line-height:1.1;
}


/* TÍTULO DA ÁREA DE EQUIPAMENTOS */

#clientDetail .summaryGrid + .toolbar{
  margin-top:8px !important;
}

#clientDetail .summaryGrid + .toolbar h2{
  font-size:19px;
}

#clientDetail .summaryGrid + .toolbar .muted{
  margin-top:2px !important;
  font-size:10px;
}


/* CABEÇALHO DE CADA EQUIPAMENTO */

#clientDetail .equipmentGroupTitle{
  font-size:15px;
}

#clientDetail .equipmentGroupMeta{
  font-size:10px;
}

#clientDetail .equipmentGroupMeta b{
  color:#dcebfa;
}

#clientDetail .equipmentGroupType{
  margin-top:2px;
  font-size:10px;
  color:#55bce9;
}
/* =========================================
   MINIATURAS DAS FOTOS NO HISTÓRICO
========================================= */

#clientDetail .serviceHistoryPhotos{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:4px;

  min-width:100px;
  max-width:130px;

  overflow:hidden;
}


/* MINIATURA */

#clientDetail .serviceHistoryThumb{
  width:30px;
  height:30px;

  flex:0 0 30px;

  padding:0;
  margin:0;

  border:1px solid #28516f;
  border-radius:6px;

  background:#091827;

  overflow:hidden;
  cursor:pointer;
}

#clientDetail .serviceHistoryThumb img{
  width:100%;
  height:100%;

  display:block;

  object-fit:cover;
}


/* EFEITO AO PASSAR O MOUSE */

#clientDetail .serviceHistoryThumb:hover{
  border-color:#37bfff;

  transform:scale(1.05);
}


/* BOTÃO +2, +3, +4... */

#clientDetail .serviceHistoryMore{
  width:30px;
  height:30px;

  flex:0 0 30px;

  padding:0;

  display:grid;
  place-items:center;

  border:1px solid #28516f;
  border-radius:6px;

  background:#102b46;
  color:#7bd7ff;

  font-size:9px;
  font-weight:900;

  cursor:pointer;
}

#clientDetail .serviceHistoryMore:hover{
  border-color:#37bfff;
  background:#123b59;
}


/* abre espaço para as fotos dentro da linha */

#clientDetail .equipmentHistoryPanel
.serviceHistoryCard{
  grid-template-columns:
    minmax(0,1fr)
    auto
    145px
    auto;
}


/* TELAS MENORES */

@media(max-width:900px){

  #clientDetail .serviceHistoryPhotos{
    max-width:100px;
  }

  #clientDetail .serviceHistoryThumb{
    width:26px;
    height:26px;
    flex-basis:26px;
  }

  #clientDetail .serviceHistoryMore{
    width:26px;
    height:26px;
    flex-basis:26px;
  }

}
/* =========================================
   FICHA DO CLIENTE - MAIS LARGA
   + MINIATURAS MAIS COMPACTAS
========================================= */


/* APROVEITA MELHOR A LARGURA DA TELA
   SOMENTE DENTRO DA FICHA DO CLIENTE */

body:has(#clientDetail.active) main{
  max-width:1600px;
  width:100%;

  margin-left:auto;
  margin-right:auto;

  padding-left:24px;
  padding-right:24px;
}

/* MINIATURAS UM POUCO MENORES */

#clientDetail .serviceHistoryThumb{
  width:26px;
  height:26px;
  flex:0 0 26px;

  border-radius:5px;
}

#clientDetail .serviceHistoryMore{
  width:26px;
  height:26px;
  flex:0 0 26px;

  border-radius:5px;

  font-size:8px;
}


/* ÁREA DAS FOTOS MAIS ENXUTA */

#clientDetail .serviceHistoryPhotos{
  min-width:88px;
  max-width:110px;

  gap:3px;
}


/* O HISTÓRICO GANHA MAIS ESPAÇO HORIZONTAL */

#clientDetail .equipmentHistoryPanel
.serviceHistoryCard{
  grid-template-columns:
    minmax(0,1fr)
    110px
    145px
    auto;

  gap:7px;
}


/* MANTÉM A COLUNA DE INFORMAÇÕES COM TAMANHO CONTROLADO
   E ENTREGA O ESPAÇO EXTRA PARA O HISTÓRICO */

#clientDetail .equipmentGroupBody{
  grid-template-columns:
    275px
    minmax(0,1fr);
}


/* EM TELAS MUITO GRANDES, NÃO DEIXA COLADO NAS BORDAS */

@media(min-width:1600px){

  body:has(#clientDetail.active) main{
    padding-left:48px;
    padding-right:48px;
  }

}


/* CELULAR / TABLET */

@media(max-width:950px){

  body:has(#clientDetail.active) main{
    padding-left:12px;
    padding-right:12px;
  }

}
/* =========================================
   FOTOS DOS CADASTROS - MINIATURAS
   + FOTO AMPLIADA NA FRENTE
========================================= */


/* LIGHTBOX ACIMA DOS OUTROS DIALOGS */

dialog.lightbox{
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;

  margin:0;
  padding:20px;

  border:0;
  border-radius:0;

  background:rgba(0,0,0,.88);

  display:none;
  place-items:center;

  overflow:hidden;
}

dialog.lightbox[open]{
  display:grid;
}

dialog.lightbox::backdrop{
  background:rgba(0,0,0,.72);
}


/* FOTO GRANDE SOMENTE DEPOIS DO CLIQUE */

dialog.lightbox img{
  width:auto;
  height:auto;

  max-width:94vw;
  max-height:90vh;

  object-fit:contain;

  border-radius:12px;

  box-shadow:
    0 20px 70px rgba(0,0,0,.75);

  cursor:default;
}


/* =========================================
   MINIATURAS DENTRO DE EQUIPAMENTO/SERVIÇO
========================================= */

#modal .photoGrid{
  display:flex;
  flex-wrap:wrap;

  gap:8px;

  margin-top:8px;
}


/* cartão pequeno */

#modal .photoCard{
  width:118px;
  flex:0 0 118px;

  border-radius:10px;

  overflow:hidden;
}


/* foto pequena */

#modal .photoCard img{
  width:118px;
  height:82px;

  aspect-ratio:auto;

  display:block;

  object-fit:cover;

  cursor:pointer;
}


/* informações abaixo da miniatura */

#modal .photoMeta{
  padding:6px;

  font-size:9px;
}


/* botão excluir menor */

#modal .photoCard .small{
  min-height:25px !important;

  padding:4px 6px !important;

  font-size:9px !important;

  border-radius:7px;
}


/* celular */

@media(max-width:600px){

  #modal .photoCard{
    width:100px;
    flex-basis:100px;
  }

  #modal .photoCard img{
    width:100px;
    height:72px;
  }

}
/* =========================================
   EQUIPAMENTO - FOTOS INTERNA / EXTERNA
========================================= */

#modal .equipmentPhotoSections{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:10px;
}

#modal .equipmentPhotoSection{
  min-width:0;

  padding:12px;

  border:1px solid #234867;
  border-radius:14px;

  background:#091827;
}

#modal .equipmentPhotoSectionTitle{
  margin-bottom:9px;

  color:#cfeeff;

  font-size:13px;
  font-weight:900;

  letter-spacing:.3px;
}

#modal .equipmentPhotoSection .photoGrid{
  min-height:55px;
  margin-bottom:10px;
}

#modal .equipmentPhotoEmpty{
  padding:10px 4px;

  font-size:10px;
}

#modal .equipmentPhotoSection > label{
  margin-top:9px;

  font-size:11px;
}

#modal .equipmentPhotoSection input[type="file"]{
  padding:8px;

  font-size:10px;

  border-radius:9px;
}

#modal .equipmentPhotoPublic{
  display:flex;
  align-items:center;
  gap:7px;

  margin-top:8px !important;

  color:#9fb6cd;

  font-size:10px !important;
}

#modal .equipmentPhotoPublic input{
  width:auto;
  margin:0;
}


/* celular */

@media(max-width:700px){

  #modal .equipmentPhotoSections{
    grid-template-columns:1fr;
  }

}
/* ========= ÁREA DE FOTOS DO EQUIPAMENTO ========= */

.equipment-photo-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.photo-group-box {
  background: rgba(10, 24, 48, 0.85);
  border: 1px solid rgba(66, 165, 245, 0.22);
  border-radius: 16px;
  padding: 14px;
}

.photo-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.photo-group-title img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.photo-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 82px));
  gap: 10px;
}

.photo-card-mini {
  background: rgba(8, 18, 36, 0.95);
  border: 1px solid rgba(66, 165, 245, 0.20);
  border-radius: 12px;
  overflow: hidden;
  padding: 6px;
}

.photo-thumb-mini {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  margin: 0 auto 6px auto;
  border: 1px solid rgba(255,255,255,0.10);
  background: #071627;
}

.photo-thumb-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-mini-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-public-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #d7e7ff;
}

.photo-public-mini input {
  accent-color: #28c7ff;
}

.btn-delete-photo-mini {
  border: none;
  border-radius: 10px;
  background: #6b2030;
  color: #ffd6dd;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
  cursor: pointer;
}

.btn-add-photo-mini {
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #1e9bff, #35d0c9);
  color: #041323;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

/* ========= MINIATURAS NAS LINHAS DE SERVIÇO ========= */

.service-photos-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.service-photo-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.10);
  background: #071627;
  flex-shrink: 0;
}

.service-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-photo-more {
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(42, 133, 255, 0.18);
  color: #7fd8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

/* ========= LIGHTBOX ========= */

.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(1, 7, 16, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 24px;
}

.photo-lightbox.hidden {
  display: none;
}

.photo-lightbox-box {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: #0a1e3a;
  border: 1px solid rgba(66, 165, 245, 0.25);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.photo-lightbox-box img {
  max-width: 86vw;
  max-height: 76vh;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
}

.photo-lightbox-title {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #d8e9ff;
  font-weight: 700;
}

.photo-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(12, 28, 54, 0.95);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* garante que o modal de foto fique na frente */
.modal,
.modal-overlay,
.dialog,
.popup {
  z-index: 5000;
}

/* ========= RESPONSIVO ========= */

@media (max-width: 900px) {
  .equipment-photo-sections {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   ÍCONES UNIDADE INTERNA / EXTERNA
========================================= */

#modal .equipmentPhotoSectionTitle{
  display:flex;
  align-items:center;
  gap:8px;
}

#modal .equipmentUnitIcon{
  width:28px;
  height:22px;
  flex:0 0 28px;

  object-fit:contain;

  display:block;
}
/* =========================================
   FICHA DO CLIENTE - LARGURA CENTRAL
   + HISTÓRICO SEM SETAS
========================================= */

/* limita a ficha à área central da tela */
body:has(#clientDetail.active) main{
  max-width:1380px;
  width:calc(100% - 40px);

  margin-left:auto;
  margin-right:auto;

  padding-left:10px;
  padding-right:10px;
}


/* mantém informações + histórico lado a lado */
#clientDetail .equipmentGroupBody{
  grid-template-columns:
    290px
    minmax(0,1fr);

  gap:10px;
}


/* tira as setas ▲ ▼ */
#clientDetail .equipmentServiceArrows{
  display:none !important;
}


/* não reserva mais espaço para as setas */
#clientDetail .equipmentServiceScrollWrap{
  height:auto;
  padding-right:0;
}


/* mostra o histórico normalmente */
#clientDetail .equipmentServiceList{
  height:auto;
  max-height:none;

  overflow:visible;

  display:grid;
  gap:5px;
}


/* mantém os serviços compactos */
#clientDetail .equipmentHistoryPanel
.serviceHistoryCard{
  min-height:42px;
  max-height:none;

  padding:4px 6px;
}


/* celular / tablet */
@media(max-width:950px){

  body:has(#clientDetail.active) main{
    width:100%;
    padding-left:12px;
    padding-right:12px;
  }

  #clientDetail .equipmentGroupBody{
    grid-template-columns:1fr;
  }

}
/* =========================================
   GALERIA DE FOTOS DO SERVIÇO
========================================= */

#modal .serviceGalleryGrid{
  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap:10px;

  margin-top:15px;
}

#modal .serviceGalleryPhoto{
  padding:0;

  border:1px solid #244862;
  border-radius:10px;

  background:#071522;

  overflow:hidden;

  cursor:pointer;
}

#modal .serviceGalleryPhoto img{
  width:100%;
  height:110px;

  display:block;

  object-fit:cover;
}

#modal .serviceGalleryPhoto:hover{
  border-color:#28b8ff;
}

@media(max-width:700px){

  #modal .serviceGalleryGrid{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

  #modal .serviceGalleryPhoto img{
    height:90px;
  }

}
/* =========================================
   FICHA DO CLIENTE - AJUSTE FINAL DE ALTURA
   TUDO MAIS COMPACTO NA MESMA TELA
========================================= */

/* cabeçalho do equipamento mais baixo */
#clientDetail .equipmentGroupHead{
  padding:6px 10px !important;
  min-height:auto;
}

/* ícone menor */
#clientDetail .equipmentGroupIcon{
  width:34px;
  height:34px;
  font-size:15px;
}

/* títulos e textos mais compactos */
#clientDetail .equipmentGroupTitle{
  font-size:14px;
  line-height:1.1;
}

#clientDetail .equipmentGroupMeta{
  margin-top:2px;
  font-size:9px;
}

#clientDetail .equipmentGroupType{
  margin-top:1px;
  font-size:9px;
}

/* botão e manutenção mais baixos */
#clientDetail .equipmentMaintenanceBadge{
  padding:4px 7px;
  font-size:9px;
}

#clientDetail .equipmentGroupHeadActions{
  gap:6px;
}


/* corpo do equipamento mais baixo */
#clientDetail .equipmentGroupBody{
  padding:5px !important;
  gap:6px !important;
}


/* painéis internos */
#clientDetail .equipmentInfoPanel,
#clientDetail .equipmentHistoryPanel{
  padding:6px !important;
  border-radius:11px;
}


/* título Informações / Histórico */
#clientDetail .equipmentPanelTitle{
  min-height:25px;
  margin-bottom:4px;
  font-size:10px;
}


/* campos das informações */
#clientDetail .equipmentInfoGrid{
  gap:4px;
}

#clientDetail .equipmentInfoField{
  padding:5px 6px;
  border-radius:8px;
}

#clientDetail .equipmentInfoField span{
  margin-bottom:2px;
  font-size:8px;
}

#clientDetail .equipmentInfoField strong{
  font-size:10px;
  line-height:1.1;
}


/* próxima manutenção */
#clientDetail .equipmentInfoMaintenance{
  margin-top:4px;
  padding:5px 6px;
  border-radius:8px;
}

#clientDetail .equipmentInfoMaintenance span{
  font-size:8px;
}

#clientDetail .equipmentInfoMaintenance strong{
  margin-top:2px;
  font-size:10px;
}


/* histórico ainda mais fino */
#clientDetail .equipmentServiceList{
  gap:3px;
}

#clientDetail .equipmentHistoryPanel
.serviceHistoryCard{
  min-height:38px;
  padding:3px 5px;
  gap:5px;
}


/* fotos pequenas continuam visíveis */
#clientDetail .serviceHistoryThumb{
  width:24px;
  height:24px;
  flex:0 0 24px;
}

#clientDetail .serviceHistoryMore{
  width:24px;
  height:24px;
  flex:0 0 24px;
  font-size:8px;
}


/* botões Abrir / Excluir menores */
#clientDetail .equipmentHistoryPanel
.serviceHistoryActions .small{
  min-height:22px !important;
  padding:2px 5px !important;
  font-size:8px;
}


/* botões principais da ficha */
#clientDetail .equipmentPanelTitle .small,
#clientDetail .equipmentGroupHeadActions .small{
  min-height:26px !important;
  padding:4px 8px !important;
  font-size:9px;
}
/* =========================================
   MODAIS - CABER EM UMA ÚNICA TELA
========================================= */

#modal{
  width:min(980px,96vw);
  max-height:96vh;
}


/* corpo mais compacto */
#modal .modalbody{
  padding:14px 18px;
  max-height:96vh;
}


/* cabeçalho menor */
#modal .modalhead{
  margin-bottom:8px;
}

#modal .modalhead h2{
  margin:0;
  font-size:24px;
}


/* menos espaço entre os campos */
#modal label{
  margin:7px 0 3px;
  font-size:13px;
}


/* inputs e selects mais baixos */
#modal input,
#modal select{
  min-height:40px;
  padding:8px 11px;
  font-size:14px;
  border-radius:10px;
}


/* caixas de texto menores */
#modal textarea{
  min-height:58px;
  max-height:70px;
  padding:8px 11px;
  font-size:14px;
  border-radius:10px;
}


/* linhas em duas colunas mais apertadas */
#modal .two{
  gap:8px;
}


/* botão fechar menor */
#modal .close{
  width:34px;
  height:34px;
  font-size:16px;
}


/* botão salvar mais compacto */
#modal .wide{
  margin-top:9px;
  min-height:40px;
  padding:9px 14px;
}


/* título Fotos do equipamento mais próximo */
#modal h3{
  margin-top:10px;
  margin-bottom:7px;
}


/* área interna / externa mais compacta */
#modal .equipmentPhotoSections{
  gap:8px;
  margin-top:6px;
}

#modal .equipmentPhotoSection{
  padding:8px;
}

#modal .equipmentPhotoSectionTitle{
  margin-bottom:5px;
  font-size:11px;
}


/* celular continua podendo rolar */
@media(max-width:700px){

  #modal{
    width:96vw;
    max-height:94vh;
  }

  #modal .modalbody{
    max-height:94vh;
    overflow:auto;
  }

}
/* =========================================
   MODAL DESKTOP - COMPACTAÇÃO FINAL
========================================= */

@media(min-width:701px){

  #modal{
    width:min(1100px,96vw);
    max-height:97vh;
  }

  #modal .modalbody{
    padding:10px 16px;
    max-height:97vh;
  }

  #modal .modalhead{
    margin-bottom:5px;
  }

  #modal .modalhead h2{
    font-size:22px;
  }

  #modal label{
    margin:4px 0 2px;
    font-size:12px;
  }

  #modal input,
  #modal select{
    min-height:34px;
    padding:6px 10px;
    font-size:13px;
  }

  #modal textarea{
    min-height:44px;
    height:44px;
    max-height:44px;
    padding:6px 10px;
    font-size:13px;
  }

  #modal .two{
    gap:7px;
  }

  #modal h3{
    margin:6px 0 4px;
    font-size:17px;
  }

  #modal .equipmentPhotoSections{
    gap:7px;
    margin-top:4px;
  }

  #modal .equipmentPhotoSection{
    padding:6px 8px;
  }

  #modal .equipmentPhotoSectionTitle{
    margin-bottom:3px;
  }

  #modal .equipmentPhotoSection label{
    margin-top:4px;
  }

  #modal .photoGrid{
    gap:5px;
  }

  #modal .wide{
    margin-top:6px;
    min-height:34px;
    padding:7px 12px;
  }

}
/* =========================================
   FOTOS DO EQUIPAMENTO - 3 + MAIS FOTOS
========================================= */

#modal .equipmentPhotoExtra.hidden{
  display:none !important;
}

#modal .equipmentPhotoMore{
  width:118px;
  min-height:82px;
  flex:0 0 118px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:8px;

  border:1px dashed #2b8ec4;
  border-radius:10px;

  background:#0a1b2b;
  color:#86d8ff;

  font-size:11px;
  font-weight:900;

  cursor:pointer;
}

#modal .equipmentPhotoMore:hover{
  border-color:#39c6ff;
  background:#0e2740;
}

@media(max-width:600px){

  #modal .equipmentPhotoMore{
    width:100px;
    min-height:72px;
    flex-basis:100px;
  }

}
/* =========================================
   CONFIRMAÇÃO DE EXCLUSÃO
========================================= */

.deleteConfirmBox{
  width:100%;
  max-width:430px;
  margin:auto;
  text-align:center;
  padding:8px 4px 4px;
}

.deleteConfirmIcon{
  width:58px;
  height:58px;

  display:grid;
  place-items:center;

  margin:0 auto 16px;

  border-radius:18px;

  background:#3a1820;
  border:1px solid #74303c;

  color:#ff9da7;

  font-size:30px;
  font-weight:900;

  box-shadow:
    0 0 20px rgba(239,91,101,.15);
}

.deleteConfirmBox h2{
  margin:0;

  color:#ffffff;

  font-size:24px;
  font-weight:900;
}

.deleteConfirmBox p{
  margin:12px auto 0;

  max-width:360px;

  color:#9badc3;

  font-size:14px;
  line-height:1.5;
}

.deleteConfirmActions{
  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:10px;

  margin-top:22px;
}

.deleteConfirmActions .btn{
  width:100%;
  min-height:44px;
}

.deleteConfirmActions .secondary{
  background:#12243a;

  border:1px solid #314966;

  color:#dcecff;
}

.deleteConfirmActions .danger{
  background:
    linear-gradient(
      135deg,
      #7a202c,
      #b52c3a
    );

  color:#ffffff;

  border:1px solid #d14b58;

  box-shadow:
    0 8px 20px rgba(181,44,58,.20);
}

.deleteConfirmActions .danger:hover{
  filter:brightness(1.08);
}


/* CELULAR */

@media(max-width:500px){

  .deleteConfirmBox{
    max-width:100%;
  }

  .deleteConfirmBox h2{
    font-size:21px;
  }

  .deleteConfirmActions{
    grid-template-columns:1fr;
  }

}
@media (max-width: 640px){
  .publicWrap{
    padding: 16px 12px 24px;
  }

  .publicHero{
    padding: 16px 16px;
    border-radius: 18px;
  }

  .publicHero .logo{
    font-size: 22px;
    margin-bottom: 8px;
  }

  .publicHero h1{
    font-size: 18px;
  }

  .publicHero p{
    font-size: 13px;
  }

  .publicCard{
    padding: 16px;
  }
}
/* =========================================
   PAINEL ADMINISTRATIVO COMPACTO
   UMA TELA + LISTA DE CLIENTES ROLÁVEL
   ========================================= */

@media(min-width:901px){

 html,
body{
  min-height:100%;
  height:auto;
  overflow-y:auto;
  overflow-x:hidden;
}

  body{
    min-height:100vh;
  }

  .topbar{
    min-height:64px;
    height:64px;
    padding:8px 18px;
  }

  .menu-icon{
    width:38px;
    height:38px;
    font-size:21px;
  }

  .brand-symbol{
    width:42px;
    height:42px;
    font-size:20px;
  }

  .brand-text b{
    font-size:18px;
  }

  .brand-text small{
    font-size:10px;
    margin-top:2px;
  }

  .notification-icon,
  .user-icon{
    width:38px;
    height:38px;
    font-size:17px;
  }

main{
  max-width:1450px;
  min-height:
    calc(
      100vh - 64px - 62px
    );

  height:auto;

  padding:
    12px
    18px
    80px;

  overflow:visible;
}

  #clients.view.active{
    height:100%;
  }

  .adminHome{
    height:100%;
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .adminWelcome{
    min-height:86px;
    padding:14px 22px;
    border-radius:18px;
  }

  .adminWelcome::after{
    right:24px;
    bottom:-48px;
    font-size:110px;
  }

  .adminEyebrow{
    font-size:9px;
    letter-spacing:1.8px;
    margin-bottom:4px;
  }

  .adminWelcome h1{
    font-size:25px;
  }

  .adminWelcome p{
    margin-top:5px;
    font-size:13px;
    line-height:1.25;
  }

  .adminNewClient{
    padding:11px 18px;
    font-size:14px;
  }

  .adminNavCards{
    gap:9px;
    margin-top:0;
  }

  .adminNavCard{
    min-height:78px;
    padding:11px 14px;
    gap:10px;
    border-radius:15px;
  }

  .adminNavIcon{
    width:42px;
    height:42px;
    border-radius:12px;
    font-size:20px;
  }

  .adminNavInfo span{
    font-size:13px;
  }

  .adminNavInfo strong{
    font-size:23px;
    margin-top:2px;
  }

  .adminNavInfo small{
    font-size:9px;
    margin-top:2px;
  }

  .adminArrow{
    font-size:24px;
  }

  .adminStats{
    gap:9px;
    margin-top:0;
  }

  .adminStat{
    min-height:58px;
    padding:9px 13px;
    border-radius:14px;
  }

  .adminStatIcon{
    width:34px;
    height:34px;
    font-size:16px;
  }

  .adminStat strong{
    font-size:20px;
  }

  .adminStat span{
    margin-top:2px;
    font-size:10px;
  }

  .adminClientsSection{
    min-height:0;
    flex:1;

    display:flex;
    flex-direction:column;
  }

  .adminSectionHead{
    margin:2px 0 7px;
    flex-shrink:0;
  }

  .adminSectionHead h2{
    font-size:22px;
  }

  .adminSectionHead p{
    margin-top:3px;
    font-size:11px;
  }

  .adminClientsPanel{
    min-height:0;
    flex:1;

    display:flex;
    flex-direction:column;

    padding:9px 10px;

    border:1px solid #1f4e77;
    border-radius:17px;

    background:
      linear-gradient(
        145deg,
        #0c1e32,
        #081522
      );

    overflow:hidden;
  }

  .adminClientControls{
    flex-shrink:0;

    display:grid;

    grid-template-columns:
      minmax(280px,1.25fr)
      auto
      minmax(80px,auto);

    align-items:center;
    gap:10px;

    padding-bottom:8px;
  }

  .adminSearch{
    min-height:42px;
    height:42px;
  }

  .adminSearch input{
    font-size:14px;
  }

  .adminFilterButtons{
    display:flex;
    gap:7px;
    flex-wrap:nowrap;
  }

  .adminFilterButtons .small{
    padding:8px 13px;
    font-size:12px;
    white-space:nowrap;
  }

  .adminClientCount{
    text-align:right;
    color:var(--muted);
    font-size:12px;
    white-space:nowrap;
  }

  .adminClientList{
    min-height:0;
    flex:1;

    overflow-y:auto;
    overflow-x:hidden;

    padding-right:6px;
    gap:6px;
  }

  .adminClientList::-webkit-scrollbar{
    width:8px;
  }

  .adminClientList::-webkit-scrollbar-track{
    background:#081522;
    border-radius:999px;
  }

  .adminClientList::-webkit-scrollbar-thumb{
    background:#1b82c2;
    border-radius:999px;
  }

  .adminClientList .item{
    padding:9px 12px;
    border-radius:13px;
  }

  .adminClientList .itemhead{
    gap:8px;
    flex-wrap:nowrap;
  }

  .adminClientList .itemtitle{
    font-size:15px;
    line-height:1.1;
  }

  .adminClientList .muted{
    display:flex !important;
    flex-wrap:wrap;
    gap:4px 16px !important;

    margin-top:3px !important;

    font-size:11px;
    line-height:1.2;
  }

  .adminClientList .pill{
    padding:5px 8px;
    font-size:10px;
  }

  .adminClientList .small{
    padding:6px 9px;
    font-size:11px;
  }

  .nav{
    height:62px;
  }

  .nav button{
    padding:6px 4px 7px;
    font-size:18px;
  }

  .nav button span{
    font-size:10px;
  }

}

/* =========================================================
   SERVIÇO PENDENTE - LUVAL
   CSS CORRESPONDENTE AO JAVASCRIPT ATUAL
   ========================================================= */

.pendingPage{
  width:100%;
}


/* ===== CABEÇALHO ===== */

.pendingHeader{
  display:grid;
  grid-template-columns:1.15fr 1fr auto;
  align-items:center;
  gap:24px;

  padding:22px 26px;
  margin-bottom:14px;

  border:1px solid #1b5d8f;
  border-radius:18px;

  background:
    radial-gradient(circle at 72% 30%,
      rgba(0,153,255,.20),
      transparent 34%),
    linear-gradient(135deg,#0c2948,#071a2d);

  box-shadow:
    0 12px 32px rgba(0,0,0,.22),
    inset 0 0 25px rgba(0,183,255,.03);
}

.pendingHeader h1{
  margin:0;

  color:#fff;

  font-size:30px;
  line-height:1.1;
}

.pendingHeader > div:first-child > p{
  margin:7px 0 0;

  color:#b8c9da;

  font-size:14px;
  line-height:1.4;
}


/* PARTE CENTRAL DO CABEÇALHO */

.pendingHeaderCenter{
  display:flex;
  align-items:center;
  gap:14px;

  color:#fff;
}

.pendingHeaderIcon{
  flex:0 0 64px;

  width:64px;
  height:64px;

  display:grid;
  place-items:center;

  border-radius:15px;

  background:#0b3154;

  color:#22c8ff;

  font-size:32px;
}

.pendingHeaderCenter strong{
  display:block;

  color:#fff;

  font-size:14px;
}

.pendingHeaderCenter span{
  display:block;

  margin-top:5px;

  color:#a9bfd3;

  font-size:12px;
}


/* BOTÃO CADASTRAR */

.pendingHeader > .btn.primary{
  min-height:48px;

  padding:12px 18px;

  border:0;
  border-radius:13px;

  white-space:nowrap;

  background:
    linear-gradient(90deg,#009ff0,#20d7e7);

  color:#001623;

  font-size:14px;
  font-weight:900;

  box-shadow:
    0 8px 24px rgba(0,183,255,.18);
}


/* ===== CONTEÚDO PRINCIPAL ===== */

.pendingContent{
  display:grid;

  grid-template-columns:
    minmax(360px,.95fr)
    minmax(480px,1.05fr);

  gap:14px;

  align-items:stretch;
}


/* ===== PAINEL DA LISTA ===== */

.pendingListPanel,
.pendingDetailPanel{
  min-width:0;

  border:1px solid #1d4f78;
  border-radius:17px;

  background:
    linear-gradient(145deg,#0c2138,#081725);

  box-shadow:
    0 12px 30px rgba(0,0,0,.20);
}

.pendingListPanel{
  overflow:hidden;
}


/* ===== BUSCA ===== */

.pendingSearchRow{
  display:flex;
  align-items:center;
  gap:12px;

  padding:13px;

  border-bottom:1px solid #1d4265;
}

.pendingSearchRow .adminSearch{
  flex:1;
}

.pendingSearchRow .adminSearch input{
  width:100%;

  border-color:#28587f;

  background:#081827;
}

.pendingCount{
  flex-shrink:0;

  color:#afc2d4;

  font-size:13px;
  font-weight:800;

  white-space:nowrap;
}


/* ===== LISTA ===== */

.pendingServicesList{
  display:grid;
  gap:9px;

  padding:12px;

  max-height:350px;

  overflow-y:auto;
}

.pendingServicesList::-webkit-scrollbar{
  width:7px;
}

.pendingServicesList::-webkit-scrollbar-thumb{
  border-radius:20px;
  background:#225278;
}


/* ===== CARTÃO DE SERVIÇO ===== */

.pendingCard{
  width:100%;

  display:grid;

  grid-template-columns:
    54px minmax(0,1fr) auto;

  align-items:center;
  gap:13px;

  padding:13px;

  border:1px solid #275477;
  border-radius:15px;

  background:
    linear-gradient(145deg,#102944,#0a1b2d);

  color:#fff;

  text-align:left;

  cursor:pointer;

  transition:
    border-color .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}

.pendingCard:hover{
  transform:translateY(-1px);

  border-color:#20c4f4;

  box-shadow:
    0 8px 22px rgba(0,0,0,.22);
}

.pendingCard.active{
  border-color:#21cdf8;

  box-shadow:
    inset 3px 0 0 #21cdf8,
    0 0 18px rgba(32,199,244,.10);
}


/* ÍCONE */

.pendingCardIcon{
  width:52px;
  height:52px;

  display:grid;
  place-items:center;

  border:1px solid #3177a9;
  border-radius:13px;

  background:#0a3154;

  color:#72ddff;

  font-size:25px;
}


/* TEXTO DO CARTÃO */

.pendingCardInfo{
  min-width:0;
}

.pendingCardInfo strong{
  display:block;

  overflow:hidden;

  color:#fff;

  font-size:15px;
  font-weight:900;

  text-overflow:ellipsis;
  white-space:nowrap;
}

.pendingCardInfo > span{
  display:block;

  margin-top:3px;

  color:#b7c9da;

  font-size:13px;
}

.pendingCardInfo .pendingObservationPreview{
  overflow:hidden;

  color:#8fa8c0;

  text-overflow:ellipsis;
  white-space:nowrap;
}

.pendingCardInfo small{
  display:block;

  margin-top:7px;

  color:#b8c9da;

  font-size:11px;
}


/* LADO DIREITO */

.pendingCardRight{
  display:flex;
  align-items:center;
  gap:9px;
}

.pendingBadge{
  display:inline-flex;
  align-items:center;
  gap:5px;

  padding:6px 9px;

  border:1px solid #9a7c00;
  border-radius:999px;

  background:#302800;

  color:#ffdb26;

  font-size:11px;
  font-weight:900;

  white-space:nowrap;
}

.pendingArrow{
  color:#22c9f8;

  font-size:28px;
  line-height:1;
}


/* ===== SEM PENDÊNCIAS ===== */

.pendingEmpty{
  min-height:310px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  padding:30px;

  color:#91a9bf;

  text-align:center;
}

.pendingEmptyIcon{
  width:58px;
  height:58px;

  display:grid;
  place-items:center;

  margin-bottom:13px;

  border:1px solid #1d6b82;
  border-radius:50%;

  background:#0a2b3a;

  color:#35e6aa;

  font-size:28px;
  font-weight:900;
}

.pendingEmpty h3{
  margin:0;

  color:#fff;

  font-size:19px;
}

.pendingEmpty p{
  max-width:330px;

  margin:8px 0 0;

  color:#91a9bf;

  line-height:1.45;
}


/* ===== PAINEL DE DETALHES ===== */

.pendingDetailPanel{
  overflow:hidden;
}

.pendingDetail{
  padding:10px 12px;
}

.pendingDetailEmpty{
  min-height:390px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  padding:30px;

  color:#91a9bf;

  text-align:center;
}

.pendingDetailEmpty > div{
  margin-bottom:10px;

  font-size:46px;
}

.pendingDetailEmpty h2{
  margin:0;

  color:#fff;
}

.pendingDetailEmpty p{
  margin:8px 0 0;
}


/* CABEÇALHO DO DETALHE */

.pendingDetailTop{
  display:grid;

  grid-template-columns:
    64px minmax(0,1fr) auto;

  align-items:center;
  gap:14px;

  margin-bottom:8px;/* SETAS DA LISTA DE SERVIÇOS PENDENTES */

.pendingScrollArea{
  display:flex;
  flex-direction:column;
  min-height:0;
}

.pendingScrollArea .pendingServicesList{
  min-height:0;
  overflow-y:auto;
}
}

.pendingDetailEquipmentIcon{
  width:62px;
  height:62px;

  display:grid;
  place-items:center;

  border:1px solid #347aae;
  border-radius:15px;

  background:#0a3154;

  color:#77dcff;

  font-size:30px;
}

.pendingDetailTop h2{
  margin:0;

  color:#fff;

  font-size:23px;
}

.pendingDetailTop h3{
  margin:5px 0 0;

  color:#c3d2df;

  font-size:16px;/* SERVIÇOS PENDENTES — LISTA SEM BOTÕES DE ROLAGEM */

.pendingPage .pendingScrollArea{
  display:block;
}

.pendingPage .pendingServicesList{
  max-height:330px;
  overflow-y:auto;
  overflow-x:hidden;
}
}

/* BOTÕES PARA SUBIR E DESCER NA LISTA */

.pendingScrollButton{
  width:100%;
  height:26px;
  padding:0;
  border:1px solid #246b9b;
  border-radius:7px;
  background:#103b5c;
  color:#65d4ff;
  font-size:14px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}

.pendingScrollButton:hover{
  background:#165681;
  color:#ffffff;
}

/* ===== DADOS DO SERVIÇO ===== */

.pendingDataTitle{
  margin:0 0 10px;

  color:#fff;

  font-size:17px;
}

.pendingDataGrid{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:9px;
}

.pendingDataBox{
  min-width:0;

  padding:12px;

  border:1px solid #245076;
  border-radius:13px;

  background:#091c2f;
}

.pendingDataBox span{
  display:block;

  margin-bottom:5px;

  color:#82d1f2;

  font-size:11px;
  font-weight:800;
}

.pendingDataBox strong{
  display:block;

  overflow-wrap:anywhere;

  color:#f2f7fc;

  font-size:13px;
}


/* ===== OBSERVAÇÃO ===== */

.pendingObservationBox{
  margin-top:10px;

  padding:13px;

  border:1px solid #245076;
  border-radius:13px;

  background:#091c2f;
}

.pendingObservationBox > span{
  display:block;

  margin-bottom:6px;

  color:#82d1f2;

  font-size:11px;
  font-weight:900;
}

.pendingObservationBox p{
  margin:0;

  color:#d7e3ee;

  font-size:13px;
  line-height:1.5;
}


/* ===== BOTÕES RESOLVIDO / NÃO RESOLVIDO ===== */

.pendingStatusActions{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:10px;

  margin-top:13px;
}

.pendingStatusActions .btn{
  min-height:48px;

  border-radius:13px;

  font-size:13px;
  font-weight:900;
}


/* VERDE - ESQUERDA */

.pendingResolvedButton{
  border:1px solid #19dc79 !important;

  background:
    linear-gradient(145deg,#08703f,#07532f) !important;

  color:#c9ffe0 !important;

  box-shadow:
    inset 0 0 16px rgba(30,220,120,.08);
}


/* VERMELHO - DIREITA */

.pendingNotResolvedButton{
  border:1px solid #ff4d5f !important;

  background:
    linear-gradient(145deg,#711e2a,#501822) !important;

  color:#ffd4d8 !important;

  box-shadow:
    inset 0 0 16px rgba(255,77,95,.08);
}

.pendingResolvedButton:hover,
.pendingNotResolvedButton:hover{
  filter:brightness(1.09);
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media(max-width:950px){

  .pendingHeader{
    grid-template-columns:1fr;
  }

  .pendingHeaderCenter{
    display:none;
  }

  .pendingHeader > .btn.primary{
    width:100%;
  }

  .pendingContent{
    grid-template-columns:1fr;
  }

  .pendingServicesList{
    max-height:none;
  }

}


@media(max-width:650px){

  .pendingHeader{
    padding:17px;
  }

  .pendingHeader h1{
    font-size:25px;
  }

  .pendingSearchRow{
    align-items:start;
    flex-direction:column;
  }

  .pendingCard{
    grid-template-columns:
      46px minmax(0,1fr);
  }

  .pendingCardIcon{
    width:44px;
    height:44px;

    font-size:21px;
  }

  .pendingCardRight{
    grid-column:2;

    justify-content:space-between;
  }

  .pendingDetail{
    padding:14px;
  }

  .pendingDetailTop{
    grid-template-columns:
      54px minmax(0,1fr);
  }

  .pendingDetailTop > .pendingBadge{
    grid-column:1 / -1;

    width:max-content;
  }

  .pendingDetailEquipmentIcon{
    width:52px;
    height:52px;
  }

  .pendingDataGrid{
    grid-template-columns:1fr;
  }

  .pendingStatusActions{
    grid-template-columns:1fr;
  }

}

/* =========================================================
   CADASTRAR SERVIÇO PENDENTE
   ========================================================= */

#modal:has(.pendingFormPage){
  width:min(1080px,96vw);
  max-height:94vh;
  border-radius:24px;
}

#modal:has(.pendingFormPage) .modalbody{
  padding:0;
  max-height:94vh;
}


/* PÁGINA */

.pendingFormPage{
  width:100%;
  background:
    radial-gradient(
      circle at 92% 4%,
      rgba(32,169,232,.12),
      transparent 28%
    ),
    #081524;
}


/* CABEÇALHO */

.pendingFormHeader{
  position:relative;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;

  padding:26px 30px;

  border-bottom:1px solid #1c3d5d;

  background:
    linear-gradient(
      135deg,
      #0b2948,
      #081725 70%
    );
}

.pendingFormHeader > div:first-child{
  position:relative;
  z-index:2;
}

.pendingFormEyebrow{
  margin-bottom:7px;

  color:#38bdff;

  font-size:11px;
  font-weight:900;

  letter-spacing:2px;
}

.pendingFormHeader h2{
  margin:0;

  font-size:29px;
  line-height:1.1;

  color:#ffffff;
}

.pendingFormHeader p{
  margin:8px 0 0;

  color:#9fb5cb;

  font-size:14px;
  line-height:1.45;
}

.pendingFormHeaderIcon{
  margin-left:auto;

  font-size:42px;

  opacity:.85;
}

.pendingFormHeader .close{
  flex-shrink:0;
}


/* SEÇÕES */

.pendingFormSection{
  padding:25px 30px;

  border-bottom:1px solid #172f49;
}

.pendingFormSection:last-child{
  border-bottom:0;
}

.pendingSectionLabel{
  margin-bottom:6px;

  color:#45c4ff;

  font-size:11px;
  font-weight:900;

  letter-spacing:1.8px;
}

.pendingSectionDescription{
  margin:0 0 15px;

  color:#91a8c0;

  font-size:13px;
}


/* CLIENTE */

.pendingClientCard{
  display:flex;
  align-items:center;
  gap:12px;

padding:11px 14px;

  border:1px solid #244866;
  border-radius:17px;

  background:
    linear-gradient(
      135deg,
      #10263c,
      #0b1b2d
    );
}

.pendingClientIcon{
  width:50px;
  height:50px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border:1px solid #1d6d9c;
  border-radius:14px;

  background:#0b3554;

  font-size:23px;
}

.pendingClientMain{
  flex:1;
  min-width:0;
}

.pendingClientMain label{
  margin:0 0 7px;

  color:#a9bfd4;

  font-size:12px;
}

.pendingClientMain select{
  margin:0;

  border-color:#31526e;

  background:#091827;

  font-weight:800;
}


/* SELECT REAL DO EQUIPAMENTO
   FICA OCULTO, MAS CONTINUA SENDO USADO
   PARA SALVAR NO SUPABASE */

.pendingHiddenSelect{
  position:absolute !important;

  width:1px !important;
  height:1px !important;

  padding:0 !important;
  margin:0 !important;

  opacity:0;

  pointer-events:none;
}


/* LISTA DE EQUIPAMENTOS */

.pendingEquipmentCards{
  display:grid;
  gap:12px;
}


/* CARTÃO */

.pendingEquipmentCard{
  width:100%;

  padding:0;

  overflow:hidden;

  text-align:left;

  border:1px solid #28445f;
  border-radius:18px;

  background:
    linear-gradient(
      145deg,
      #102238,
      #0a1828
    );

  color:#ffffff;

  cursor:pointer;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.pendingEquipmentCard:hover{
  transform:translateY(-1px);

  border-color:#2d8ec2;

  box-shadow:
    0 10px 25px rgba(0,0,0,.22);
}


/* EQUIPAMENTO SELECIONADO */

.pendingEquipmentCard.selected{
  border-color:#27baf6;

  background:
    radial-gradient(
      circle at top right,
      rgba(39,199,197,.10),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #10304c,
      #0b1d30
    );

  box-shadow:
    0 0 0 1px rgba(39,199,197,.18),
    0 12px 28px rgba(0,0,0,.22);
}


/* CABEÇALHO DO CARTÃO */

.pendingEquipmentCardTop{
  display:flex;
  align-items:center;
  gap:14px;

  padding:17px 18px;

  border-bottom:1px solid #203a54;
}

.pendingEquipmentIcon{
  width:46px;
  height:46px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border:1px solid #246a94;
  border-radius:14px;

  background:#0b3554;

  color:#61d1ff;

  font-size:22px;
}

.pendingEquipmentTitle{
  flex:1;
  min-width:0;
}

.pendingEquipmentTitle strong{
  display:block;

  font-size:17px;
  font-weight:900;

  color:#ffffff;
}

.pendingEquipmentTitle span{
  display:block;

  margin-top:5px;

  color:#93aac1;

  font-size:12px;
}

.pendingEquipmentCheck{
  width:28px;
  height:28px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border:2px solid #38556e;
  border-radius:50%;

  color:transparent;

  font-size:14px;
  font-weight:900;
}

.pendingEquipmentCard.selected
.pendingEquipmentCheck{
  border-color:#2bc7d4;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--cyan)
    );

  color:#031725;
}


/* INFORMAÇÕES DO EQUIPAMENTO */

.pendingEquipmentInfoGrid{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:0;

  padding:5px 18px 16px;
}

.pendingEquipmentInfoGrid > div{
  min-width:0;

  padding:12px 14px 8px 0;
}

.pendingEquipmentInfoGrid span{
  display:block;

  margin-bottom:5px;

  color:#8198b0;

  font-size:10px;
  font-weight:800;

  text-transform:uppercase;

  letter-spacing:.7px;
}

.pendingEquipmentInfoGrid strong{
  display:block;

  overflow-wrap:anywhere;

  color:#dceafa;

  font-size:13px;
  line-height:1.35;
}


/* CLIENTE SEM EQUIPAMENTO */

.pendingEquipmentEmpty{
  display:flex;
  flex-direction:column;
  align-items:center;

  padding:30px 20px;

  text-align:center;

  border:1px dashed #38536c;
  border-radius:17px;

  background:#0a1828;
}

.pendingEquipmentEmptyIcon{
  margin-bottom:10px;

  font-size:30px;
}

.pendingEquipmentEmpty strong{
  font-size:16px;
}

.pendingEquipmentEmpty span{
  margin-top:6px;

  color:#8fa5bc;

  font-size:13px;
}


/* DADOS DO SERVIÇO */

.pendingServiceFields{
  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:14px;
}

.pendingField label,
.pendingObservation label{
  margin:0 0 7px;

  color:#b7c9da;

  font-size:13px;
}

.pendingField input,
.pendingField select,
.pendingObservation textarea{
  border-color:#294762;

  background:#091827;
}

.pendingField input:focus,
.pendingField select:focus,
.pendingObservation textarea:focus,
.pendingClientMain select:focus{
  outline:none;

  border-color:#29b6ef;

  box-shadow:
    0 0 0 3px rgba(32,169,232,.10);
}


/* OBSERVAÇÃO */

.pendingObservation{
  position:relative;

  margin-top:18px;
}

.pendingObservation label span{
  color:#ff727b;
}

.pendingObservation textarea{
  min-height:150px;

  resize:vertical;

  padding-bottom:32px;

  line-height:1.5;
}

.pendingCharCount{
  position:absolute;

  right:12px;
  bottom:11px;

  color:#7189a1;

  font-size:11px;
  font-weight:700;
}


/* BOTÕES */

.pendingFormActions{
  display:flex;
  justify-content:flex-end;
  gap:10px;

  margin-top:22px;
  padding-top:18px;

  border-top:1px solid #19334d;
}

.pendingFormActions .btn{
  min-width:150px;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media(max-width:700px){

  #modal:has(.pendingFormPage){
    width:96vw;
  }

  .pendingFormHeader{
    padding:20px 18px;
  }

  .pendingFormHeader h2{
    font-size:23px;
  }

  .pendingFormHeaderIcon{
    display:none;
  }

  .pendingFormSection{
    padding:20px 18px;
  }

  .pendingClientCard{
    align-items:flex-start;
  }

  .pendingEquipmentInfoGrid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .pendingServiceFields{
    grid-template-columns:1fr;
  }

  .pendingFormActions{
    flex-direction:column-reverse;
  }

  .pendingFormActions .btn{
    width:100%;
  }

}


@media(max-width:480px){

  .pendingClientIcon{
    display:none;
  }

  .pendingEquipmentInfoGrid{
    grid-template-columns:1fr;
  }

  .pendingEquipmentCardTop{
    padding:14px;
  }

}
/* =========================================================
   SERVIÇO PENDENTE — CADASTRO INTEGRADO NA PÁGINA
   ========================================================= */


/* TELA PRINCIPAL */

.pendingCreatePage{
  width:100%;
  max-width:1320px;
  margin:0 auto;

  background:#081625;

  border:1px solid #17466d;
  border-radius:22px;

  overflow:hidden;

  box-shadow:
    0 18px 45px rgba(0,0,0,.22);
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.pendingCreateHeader{
  position:relative;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;

  padding:6px 20px;

  border-bottom:1px solid #1e5d8a;

  background:
    radial-gradient(
      circle at 92% 20%,
      rgba(32,169,232,.14),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #0b2948,
      #081725 72%
    );
}


.pendingCreateHeaderLeft{
  display:flex;
  align-items:flex-start;
  gap:18px;
}


.pendingBackButton{
  flex-shrink:0;

  padding:10px 14px;

  border:1px solid #246894;
  border-radius:11px;

  background:#0b2945;

  color:#56caff;

  font-size:13px;
  font-weight:900;

  cursor:pointer;

  transition:.18s ease;
}


.pendingBackButton:hover{
  border-color:#45c9ff;
  background:#103b60;
}


.pendingCreateHeader h1{
  display:inline;

  margin:0;

  color:#ffffff;

  font-size:26px;
  line-height:1.1;
}


.pendingCreateHeader p{
  display:inline;

  margin:0 0 0 12px;

  color:#9fb6cb;

  font-size:12px;
  line-height:1.4;
}


.pendingCreateWorkerIcon{
  flex-shrink:0;

  width:64px;
  height:64px;

  display:grid;
  place-items:center;

  border:1px solid #1d6693;
  border-radius:18px;

  background:#0a2e4d;

  font-size:32px;
}


/* =========================================================
   SEÇÕES
   ========================================================= */

.pendingCreateSection{
  padding:12px 26px;

  border-bottom:1px solid #173650;

  background:
    linear-gradient(
      180deg,
      rgba(14,37,60,.72),
      rgba(8,23,38,.72)
    );
}


.pendingCreateSection:last-child{
  border-bottom:0;
}


.pendingSectionLabel{
  margin:0 0 6px;

  color:#35c8e7;

  font-size:11px;
  font-weight:900;

  letter-spacing:1.8px;
}


.pendingSectionDescription{
  margin:0;

  color:#9cb1c6;

  font-size:13px;
}


/* =========================================================
   CARTÃO DO CLIENTE
   ========================================================= */

.pendingCreateClientCard{
  display:flex;
  align-items:center;
  gap:15px;

  margin-top:6px;
padding:8px 17px;

  border:1px solid #205a82;
  border-radius:15px;

  background:
    linear-gradient(
      135deg,
      #102942,
      #0b1b2d
    );
}


.pendingCreateClientIcon{
  width:48px;
  height:48px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border:1px solid #1d78a9;
  border-radius:13px;

  background:#0b3c61;

  font-size:22px;
}


.pendingCreateClientContent{
  flex:1;
  min-width:0;
}


.pendingCreateClientName{
  color:#ffffff;

  font-size:17px;
  font-weight:900;
}


.pendingCreateClientInfo{
  display:flex;
  align-items:center;
  flex-wrap:wrap;

  gap:8px 0;

  margin-top:8px;
}


.pendingCreateClientInfo span{
  padding:0 12px;

  border-right:1px solid #284b67;

  color:#a9bfd3;

  font-size:12px;
}


.pendingCreateClientInfo span:first-child{
  padding-left:0;
}


.pendingCreateClientInfo span:last-child{
  border-right:0;
}


.pendingChangeClientButton{
  flex-shrink:0;

  padding:11px 14px;

  border:1px solid #28a7d8;
  border-radius:11px;

  background:#0a2943;

  color:#4cd2ff;

  font-size:13px;
  font-weight:900;

  cursor:pointer;
}


.pendingChangeClientButton:hover{
  background:#0d3a5d;
}


/* TROCAR CLIENTE */

.pendingClientChangeBox{
 margin-top:6px;
padding:8px 12px;
  border:1px solid #254a68;
  border-radius:13px;

  background:#091827;
}


.pendingClientChangeBox label{
  margin:0 0 4px;

  color:#a9bfd3;

  font-size:12px;
}


.pendingClientChangeBox select{
    margin:0;
    min-height:38px;
    padding:7px 12px;

    background:#071522;
    border-color:#315a78;

    font-size:13px;
}


/* =========================================================
   CABEÇALHO DOS EQUIPAMENTOS
   ========================================================= */

.pendingEquipmentSectionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:15px;
}


.pendingEquipmentToggle{
  width:38px;
  height:38px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border:1px solid #2583b3;
  border-radius:10px;

  background:#0a2a45;

  color:#50cfff;

  font-size:15px;
  font-weight:900;

  cursor:pointer;
}


.pendingEquipmentToggle:hover{
  border-color:#46d1ff;
  background:#0c3a5c;
}


/* =========================================================
   ÁREA DOS EQUIPAMENTOS
   ========================================================= */

.pendingEquipmentArea{
  max-height:410px;

  margin-top:13px;

  overflow-y:auto;
  overflow-x:hidden;

  padding-right:5px;

  transition:
    max-height .25s ease,
    opacity .20s ease,
    margin .25s ease;
}


.pendingEquipmentArea.collapsed{
  max-height:0;

  margin-top:0;

  padding:0;

  overflow:hidden;

  opacity:0;
}


/* ROLAGEM APENAS DOS EQUIPAMENTOS */

.pendingEquipmentArea::-webkit-scrollbar{
  width:7px;
}


.pendingEquipmentArea::-webkit-scrollbar-track{
  background:#081522;

  border-radius:10px;
}


.pendingEquipmentArea::-webkit-scrollbar-thumb{
  background:#205b82;

  border-radius:10px;
}


.pendingEquipmentArea::-webkit-scrollbar-thumb:hover{
  background:#2a92c8;
}


/* =========================================================
   CARTÕES DOS EQUIPAMENTOS
   ========================================================= */

.pendingEquipmentCards{
  display:grid;
  gap:10px;
}


.pendingEquipmentCard{
  width:100%;

  padding:0;

  overflow:hidden;

  text-align:left;

  border:1px solid #284b67;
  border-radius:14px;

  background:
    linear-gradient(
      145deg,
      #10243a,
      #0a1929
    );

  color:#ffffff;

  cursor:pointer;

  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}


.pendingEquipmentCard:hover{
  border-color:#2d9fd2;
}


.pendingEquipmentCard.selected{
  border-color:#2bcbd4;

  background:
    radial-gradient(
      circle at right top,
      rgba(39,199,197,.10),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #10304b,
      #0a1c2e
    );

  box-shadow:
    0 0 0 1px rgba(39,199,197,.12);
}


.pendingEquipmentCardTop{
  display:flex;
  align-items:center;
  gap:12px;

  padding:13px 15px;

  border-bottom:1px solid #203d57;
}


.pendingEquipmentIcon{
  width:42px;
  height:42px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border:1px solid #246f99;
  border-radius:11px;

  background:#0a3454;

  color:#5bd4ff;

  font-size:20px;
}


.pendingEquipmentTitle{
  flex:1;
  min-width:0;
}


.pendingEquipmentTitle strong{
  display:block;

  color:#ffffff;

  font-size:16px;
  font-weight:900;
}


.pendingEquipmentTitle span{
  display:block;

  margin-top:4px;

  color:#93abc1;

  font-size:11px;
}


.pendingEquipmentCheck{
  width:25px;
  height:25px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border:2px solid #385a73;
  border-radius:50%;

  color:transparent;

  font-size:12px;
  font-weight:900;
}


.pendingEquipmentCard.selected
.pendingEquipmentCheck{
  border-color:#2bcbd4;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--cyan)
    );

  color:#031725;
}


/* DADOS EM LINHA, MAIS PARECIDO COM O MODELO */

.pendingEquipmentInfoGrid{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:0;

  padding:4px 15px 13px;
}


.pendingEquipmentInfoGrid > div{
  min-width:0;

  padding:10px 14px 5px 0;
}


.pendingEquipmentInfoGrid span{
  display:block;

  margin-bottom:4px;

  color:#7793ab;

  font-size:9px;
  font-weight:900;

  text-transform:uppercase;

  letter-spacing:.6px;
}


.pendingEquipmentInfoGrid strong{
  display:block;

  color:#dceafa;

  font-size:12px;
  line-height:1.3;

  overflow-wrap:anywhere;
}


/* =========================================================
   SELECT OCULTO DO EQUIPAMENTO
   ========================================================= */

.pendingHiddenSelect{
  position:absolute !important;

  width:1px !important;
  height:1px !important;

  padding:0 !important;
  margin:0 !important;

  opacity:0;

  pointer-events:none;
}


/* =========================================================
   SERVIÇO PENDENTE
   ========================================================= */

.pendingServiceTitle{
  margin:0;

  color:#ffffff;

  font-size:22px;
  font-weight:900;
}


.pendingServiceSubtitle{
  margin-top:4px;

  color:#8fa6bb;

  font-size:12px;
}


.pendingServiceFields{
  display:grid;

  grid-template-columns:
    1fr 1fr;

  gap:12px;

  margin-top:5px;
}


.pendingField label,
.pendingObservation label{
  margin:0 0 6px;

  color:#b7c9da;

  font-size:12px;
}


.pendingField input,
.pendingField select,
.pendingObservation textarea{
  border-color:#294c68;

  background:#081725;

  font-size:14px;
}


.pendingField input,
.pendingField select{
  padding:11px 12px;
}


.pendingObservation{
  position:relative;

  margin-top:15px;
}


.pendingObservation textarea{
  min-height:110px;

  padding:12px 13px 29px;

  resize:vertical;

  line-height:1.45;
}


.pendingObservation label span{
  color:#ff646d;
}


.pendingCharCount{
  position:absolute;

  right:11px;
  bottom:10px;

  color:#7e97ad;

  font-size:10px;
  font-weight:800;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.pendingCreateActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;

  gap:10px;

  margin-top:17px;
  padding-top:15px;

  border-top:1px solid #173650;
}


.pendingCreateActions .btn{
  min-width:145px;

  padding:12px 17px;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media(max-width:760px){

  .pendingCreatePage{
    border-radius:16px;
  }


  .pendingCreateHeader{
    padding:18px;
  }


  .pendingCreateHeaderLeft{
    flex-direction:column;

    gap:12px;
  }


  .pendingCreateHeader h1{
    font-size:24px;
  }


  .pendingCreateWorkerIcon{
    display:none;
  }


  .pendingCreateSection{
    padding:18px;
  }


  .pendingCreateClientCard{
    align-items:flex-start;
    flex-wrap:wrap;
  }


  .pendingChangeClientButton{
    width:100%;
  }


  .pendingCreateClientInfo{
    display:grid;

    gap:6px;
  }


  .pendingCreateClientInfo span{
    padding:0;

    border:0;
  }


  .pendingEquipmentArea{
    max-height:360px;
  }


  .pendingEquipmentInfoGrid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }


  .pendingServiceFields{
    grid-template-columns:1fr;
  }


  .pendingCreateActions{
    flex-direction:column-reverse;
  }


  .pendingCreateActions .btn{
    width:100%;
  }

}


@media(max-width:480px){

  .pendingEquipmentInfoGrid{
    grid-template-columns:1fr;
  }

}


/* =========================================================
   SERVIÇO PENDENTE — EQUIPAMENTOS EM LINHA
   MODELO FINAL
   ========================================================= */


/* ÁREA DOS EQUIPAMENTOS */

.pendingEquipmentArea{
  width:100%;
  max-height:270px;
  overflow-y:auto;
  overflow-x:hidden;

  margin-top:10px;
  padding:0 6px 0 0;
}

.pendingEquipmentArea.collapsed{
  max-height:0;
  overflow:hidden;
  margin-top:0;
  opacity:0;
  pointer-events:none;
}

/* LISTA */

.pendingEquipmentCards{
  display:grid;
  gap:6px;
}


/* CARTÃO DO EQUIPAMENTO */

.pendingEquipmentCard{
  width:100%;

  display:grid;

  grid-template-columns:
    minmax(210px,1.25fr)
    minmax(0,2.4fr)
    145px;

  align-items:center;

  gap:14px;

padding:9px 14px;

  border:1px solid #234a68;
  border-radius:14px;

  background:
    linear-gradient(
      135deg,
      #0b1e31,
      #091725
    );

  color:#ffffff;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}


/* EQUIPAMENTO SELECIONADO */

.pendingEquipmentCard.selected{
  border-color:#20baf5;

  background:
    linear-gradient(
      135deg,
      #0c2841,
      #0a1b2d
    );

  box-shadow:
    0 0 0 1px rgba(32,186,245,.20),
    inset 0 0 24px rgba(32,169,232,.06);
}


/* PARTE ESQUERDA */

.pendingEquipmentCardMain{
  display:flex;
  align-items:center;

  gap:12px;

  min-width:0;
}


.pendingEquipmentIcon{
  width:46px;
  height:46px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border:1px solid #1473ad;
  border-radius:12px;

  background:
    linear-gradient(
      145deg,
      #0b4d7c,
      #0a3154
    );

  color:#6ed5ff;

  font-size:21px;
}


.pendingEquipmentTitle{
  min-width:0;
}


.pendingEquipmentTitle strong{
  display:block;

  color:#ffffff;

  font-size:15px;
  font-weight:900;

  line-height:1.2;
}


.pendingEquipmentTitle span{
  display:block;

  margin-top:5px;

  color:#9bb0c7;

  font-size:11px;

  overflow-wrap:anywhere;
}


/* INFORMAÇÕES CENTRAIS */

.pendingEquipmentCompactInfo{
  display:grid;

  grid-template-columns:
    .8fr
    1.35fr
    1fr
    .9fr;

  align-items:center;

  min-width:0;
}


.pendingEquipmentCompactInfo > div{
  min-width:0;

  padding:2px 10px;

  border-left:1px solid #183b55;
}


.pendingEquipmentCompactInfo span{
  display:block;

  margin-bottom:4px;

  color:#7894ad;

  font-size:8px;
  font-weight:900;

  letter-spacing:.6px;

  text-transform:uppercase;
}


.pendingEquipmentCompactInfo strong{
  display:block;

  color:#e3edf8;

  font-size:11px;
  font-weight:800;

  line-height:1.3;

  overflow-wrap:anywhere;
}


/* BOTÃO SELECIONAR */

.pendingEquipmentSelectButton{
  width:100%;

  min-height:40px;

  padding:9px 12px;

  border:1px solid #20baf5;
  border-radius:11px;

  background:#092136;

  color:#38c9ff;

  font-size:12px;
  font-weight:900;

  cursor:pointer;

  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}


.pendingEquipmentSelectButton:hover{
  background:#0c3150;

  transform:translateY(-1px);
}


.pendingEquipmentSelectButton.selected{
  border-color:#25bdf7;

  background:
    linear-gradient(
      90deg,
      #16b8ef,
      #1599ef
    );

  color:#ffffff;

  box-shadow:
    0 5px 16px rgba(19,169,239,.18);
}


/* CLIENTE SEM EQUIPAMENTOS */

.pendingEquipmentEmpty{
  display:flex;
  align-items:center;

  gap:12px;

  padding:14px;

  border:1px dashed #31536f;
  border-radius:14px;

  background:#0a1929;
}


.pendingEquipmentEmptyIcon{
  width:42px;
  height:42px;

  flex-shrink:0;

  display:grid;
  place-items:center;

  border-radius:11px;

  background:#0a3558;

  color:#62ceff;

  font-size:20px;
}


.pendingEquipmentEmpty strong{
  display:block;

  font-size:13px;
}


.pendingEquipmentEmpty span{
  display:block;

  margin-top:3px;

  color:#8fa5bc;

  font-size:11px;
}


/* TABLET */

@media(max-width:900px){

  .pendingEquipmentCard{
    grid-template-columns:
      minmax(180px,1fr)
      minmax(0,1.7fr)
      125px;

    gap:10px;
  }


  .pendingEquipmentCompactInfo{
    grid-template-columns:
      repeat(2,minmax(0,1fr));

    row-gap:8px;
  }

}


/* CELULAR */

@media(max-width:650px){

  .pendingEquipmentCard{
    grid-template-columns:1fr;

    gap:11px;

    padding:13px;
  }


  .pendingEquipmentCompactInfo{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }


  .pendingEquipmentCompactInfo > div{
    padding:3px 8px 3px 0;

    border-left:0;
  }


  .pendingEquipmentSelectButton{
    width:100%;
  }

}

/* =========================================================
   SERVIÇO PENDENTE — FORMULÁRIO COMPACTO
   ========================================================= */


/* SEÇÃO */

.pendingCreateSection{
  padding-top:8px;
  padding-bottom:8px;
}


/* DATA + TIPO NA MESMA LINHA */

.pendingServiceFields{
  display:grid;

  grid-template-columns:
    minmax(180px,.75fr)
    minmax(260px,1.25fr);

  gap:12px;

  margin-top:9px;
}


.pendingServiceFields label{
  margin-top:0;
  margin-bottom:5px;

  font-size:11px;
  font-weight:900;

  color:#9fb3c8;
}


/* CAMPOS */

.pendingServiceFields input,
.pendingServiceFields select{
  min-height:42px;

  padding:9px 12px;

  border-radius:11px;

  font-size:13px;
}


/* OBSERVAÇÃO */

.pendingObservation{
  margin-top:9px;
}


.pendingObservation label{
  margin-top:0;
  margin-bottom:5px;

  font-size:11px;
  font-weight:900;

  color:#9fb3c8;
}


.pendingObservation textarea{
  min-height:66px;
  max-height:100px;

  padding:10px 12px;

  border-radius:11px;

  font-size:13px;

  resize:vertical;
}


/* ÁREA DO BOTÃO */

.pendingCreateActions{
  margin-top:4px;
  padding-top:4px;
  gap:6px;
}

.pendingCreateActions .btn{
  min-width:0;
  padding:7px 12px;
  font-size:13px;
  line-height:1.2;
}

/* BOTÃO SALVAR */

.pendingCreateActions .primary{
  min-height:42px;

  padding:10px 18px;

  border-radius:11px;

  font-size:13px;
  font-weight:900;
}


/* DIMINUI O ESPAÇO INFERIOR DA TELA */

.pendingCreatePage{
  margin-bottom:12px;
}


#pendingServiceForm{
  padding-bottom:22px;
}

/* GARANTE ESPAÇO ACIMA DA BARRA INFERIOR */

#pendingServices{
  padding-bottom:0;
}


/* CELULAR */

@media(max-width:650px){

  .pendingServiceFields{
    grid-template-columns:1fr;
  }


  .pendingObservation textarea{
    min-height:78px;
  }

}

/* =========================================================
   SERVIÇO PENDENTE — SETA DO CLIENTE
   ========================================================= */

.pendingClientArrow{
  width:42px;
  height:42px;

  flex:0 0 42px;

  display:grid;
  place-items:center;

  padding:0;

  border:0;
  border-radius:11px;

  background:transparent;

  color:#35c7ff;

  font-size:30px;
  font-weight:400;
  line-height:1;

  cursor:pointer;

  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}


.pendingClientArrow:hover{
  background:rgba(32,169,232,.10);

  color:#6bd8ff;
}


.pendingClientArrow:active{
  transform:translateY(1px);
}

/* Oculta a seta branca do seletor de clientes */
#pendingClient{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:none;
}
/* Oculta o campo intermediário, mantendo a lista de clientes funcional */
/* Esconde o campo intermediário, sem ocultar a lista aberta */
#pendingClientChangeBox {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    z-index: 30;
}
#pendingClientChangeBox #pendingClient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
}

/* LISTA FLUTUANTE DE EQUIPAMENTOS — SERVIÇO PENDENTE */

.pendingCreateSection{
  position:relative;
}

#pendingEquipmentArea{
  top:auto;
  left:0;
  right:0;
}

.pendingEquipmentArea{
  position:absolute;
  z-index:30;
  top:100%;
  left:0;
  right:0;

  width:100%;
  max-height:270px;
  margin-top:2px;
  padding:6px;

  overflow-y:auto;
  overflow-x:hidden;

  background:#091626;
  border:1px solid #2583b3;
  border-radius:12px;
  box-shadow:0 16px 35px rgba(0,0,0,.55);
}

.pendingEquipmentArea.collapsed{
  display:none;
}

/* HISTÓRICO DE SERVIÇOS PENDENTES — FAIXA DA TELA PRINCIPAL */

.pendingHistoryBanner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:4px 0 12px;
  padding:12px 18px;
  background:linear-gradient(135deg,#102b49,#0c2037);
  border:1px solid #315d88;
  border-radius:14px;
}

.pendingHistoryInfo{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.pendingHistoryIcon{
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:48px;
  height:48px;
  background:#173c75;
  border:1px solid #4b8ce0;
  border-radius:12px;
  font-size:25px;
}

.pendingHistoryInfo strong{
  display:block;
  color:#fff;
  font-size:17px;
  margin-bottom:4px;
}

.pendingHistoryInfo p{
  margin:0;
  color:#c4d5e8;
  font-size:13px;
  line-height:1.4;
}

.pendingHistoryButton{
  flex-shrink:0;
  min-width:150px;
  padding:11px 16px;
  background:#102b49;
  color:#fff;
  border:1px solid #4b8ce0;
  border-radius:10px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

.pendingHistoryButton:hover{
  background:#17436c;
}

@media(max-width:600px){
  .pendingHistoryBanner{
    align-items:stretch;
    flex-direction:column;
    padding:12px;
  }

  .pendingHistoryButton{
    width:100%;
  }
}
/* COMPACTAR A FAIXA DO HISTÓRICO */

.pendingHistoryBanner{
  margin:4px 0 8px;
  padding:7px 14px;
  gap:12px;
}

.pendingHistoryInfo{
  gap:10px;
}

.pendingHistoryIcon{
  width:38px;
  height:38px;
  border-radius:9px;
  font-size:20px;
}

.pendingHistoryInfo strong{
  font-size:15px;
  margin-bottom:2px;
}

.pendingHistoryInfo p{
  font-size:12px;
  line-height:1.25;
}

.pendingHistoryButton{
  padding:8px 12px;
  min-width:130px;
  font-size:13px;
}

/* COMPACTAR A FAIXA SUPERIOR DE SERVICO PENDENTE */

.pendingPage .pendingHeader{
  padding:6px 20px;
  gap:8px;
}
.pendingPage .pendingHeader h1{
  margin:0 0 4px;
  font-size:28px;
  line-height:1.15;
}

.pendingPage .pendingHeader p{
  margin:0;
  font-size:14px;
  line-height:1.3;
}

.pendingPage .pendingHeaderCenter{
  gap:10px;
}

.pendingPage .pendingHeaderIcon{
  width:44px;
  height:44px;
  font-size:23px;
}

.pendingPage .pendingHeader .btn{
  padding:10px 14px;
}

/* LISTA DE SERVIÇOS PENDENTES COM ROLAGEM PRÓPRIA */

.pendingPage .pendingServicesList{
  max-height:330px;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#278bd0 #10243a;
}

.pendingPage .pendingServicesList::-webkit-scrollbar{
  width:10px;
}

.pendingPage .pendingServicesList::-webkit-scrollbar-track{
  background:#10243a;
  border-radius:10px;
}

.pendingPage .pendingServicesList::-webkit-scrollbar-thumb{
  background:#278bd0;
  border:2px solid #10243a;
  border-radius:10px;
}

/* SERVIÇOS PENDENTES — PAINÉIS MAIS COMPACTOS */

.pendingPage .pendingContent{
  align-items:start;
}

.pendingPage .pendingListPanel,
.pendingPage .pendingDetail{
  min-height:0;
  height:auto;
}

/* SERVIÇOS PENDENTES — QUADROS COM A MESMA ALTURA */

.pendingPage .pendingContent{
  align-items:stretch;
}

.pendingPage .pendingListPanel{
  min-height:0;
  height:auto;
  max-height:none;
  overflow:hidden;
}

.pendingPage .pendingScrollArea{
  min-height:0;
  overflow:hidden;
}

.pendingPage .pendingServicesList{
  max-height:330px;
  overflow-y:auto;
  overflow-x:hidden;
}
/* SERVIÇOS PENDENTES — ALTURA COMPACTA DOS DOIS QUADROS */

.pendingPage .pendingContent{
  align-items:start;
}

.pendingPage .pendingListPanel,
.pendingPage .pendingDetail{
  height:390px;
  max-height:390px;
  min-height:0;
  overflow:hidden;
}

.pendingPage .pendingListPanel{
  display:flex;
  flex-direction:column;
}

.pendingPage .pendingScrollArea{
  flex:1;
  min-height:0;
  overflow:hidden;
}

.pendingPage .pendingServicesList{
  height:100%;
  max-height:none;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}
/* SERVIÇOS PENDENTES — COMPACTAR ESPAÇOS INTERNOS */

.pendingPage .pendingDetail{
  padding:10px 12px;
}

.pendingPage .pendingDetailTop{
  margin-bottom:6px;
}

.pendingPage .pendingDetail .pendingInfoGrid{
  gap:8px;
}

.pendingPage .pendingDetail .pendingInfoItem{
  padding:9px 12px;
}

.pendingPage .pendingDetail .pendingDetailActions{
  margin-top:8px;
}

.pendingPage .pendingServicesList{
  gap:8px;
}

/* CARTÕES DO HISTÓRICO DE SERVIÇOS PENDENTES */

.pendingPage .pendingHistoryContent {
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

.pendingPage .pendingHistoryCard {
  background: #142b43;
  border: 1px solid #315b7b;
  border-radius: 16px;
  padding: 18px 20px;
  color: #f5f8ff;
}

.pendingPage .pendingHistoryCard h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.pendingPage .pendingHistoryCard p {
  margin: 8px 0;
  line-height: 1.5;
}

/* HISTÓRICO DE SERVIÇOS PENDENTES — LISTA COMPACTA */

.pendingPage .pendingHistoryList {
  display: grid;
  gap: 8px;
}

.pendingPage .pendingHistoryList .pendingHistoryCard {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.2fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #315b7b;
  border-radius: 10px;
  background: #142b43;
  font-size: 14px;
}

.pendingPage .pendingHistoryList .pendingHistoryCard strong,
.pendingPage .pendingHistoryList .pendingHistoryCard span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .pendingPage .pendingHistoryList .pendingHistoryCard {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pendingPage .pendingHistoryList .pendingHistoryCard strong {
    grid-column: 1 / -1;
  }
}
/* Histórico: cartões clicáveis e ficha de detalhes */
.pendingPage .pendingHistoryCardButton {
  display:block; width:100%; text-align:left; cursor:pointer;
  color:inherit; font:inherit;
}
.pendingPage .pendingHistoryCardButton:hover,
.pendingPage .pendingHistoryCardButton:focus-visible {
  border-color:#38bdf8; outline:2px solid #38bdf8; outline-offset:2px;
}
.pendingPage .pendingHistoryCardButton h3 {
  display:flex; justify-content:space-between; gap:12px;
}
.pendingPage .pendingHistoryDetailCard {
  cursor:default;
}

/* LUVAL — histórico de serviços pendentes (versão compacta) */
body:has(#pendingServices.active) main{max-width:1800px;width:100%;padding:14px 12px 90px}
.pendingHistoryPage{max-width:1720px;margin:auto}
.pendingHistoryHeader{display:flex;align-items:center;gap:22px;padding:11px 14px;margin-bottom:12px;border:1px solid #24577e;border-radius:14px;background:linear-gradient(120deg,#10304f,#0c2035)}
.pendingHistoryHeader h1{margin:0;font-size:23px;line-height:1.2}
.pendingHistoryHeader p{margin:4px 0 0;color:#b8c9da;font-size:13px}
.pendingHistoryBack{flex-shrink:0;min-width:100px;padding:10px 13px;border:1px solid #348acc;border-radius:10px;background:#0b2d4e;color:#fff;font-weight:800;cursor:pointer;font-size:13px}
.pendingHistoryBack:hover,.pendingHistoryReturn:hover{filter:brightness(1.15)}
.pendingHistoryControls{display:flex;gap:12px;padding:10px 8px;background:#10273e;border:1px solid #244e73;border-radius:12px 12px 0 0;align-items:center}
.pendingHistorySearch{display:flex;align-items:center;gap:9px;flex:1;min-width:0;margin:0;padding:0 10px;border:1px solid #225278;background:#081a2b;border-radius:10px}
.pendingHistorySearch input{width:100%;min-width:0;padding:10px 1px;border:none;background:transparent;font-size:13px;outline:none}
.pendingHistoryControls select{width:165px;flex-shrink:0;padding:10px;border:1px solid #29618b;background:#12304e;font-size:13px}
.pendingHistoryTable{border:1px solid #244e73;border-top:0;background:#081b2c;border-radius:0 0 12px 12px;overflow-x:auto}
.pendingHistoryRow{display:grid;grid-template-columns:minmax(160px,1.55fr) minmax(120px,1.15fr) minmax(110px,1fr) minmax(100px,.8fr) minmax(120px,.9fr) minmax(170px,1.1fr);gap:8px;align-items:center;padding:7px 9px;border-bottom:1px solid #244e73;font-size:13px;min-width:790px}
.pendingHistoryRow:last-child{border-bottom:0}
.pendingHistoryTableHead{padding:11px 9px;background:#102b45;color:#cedbeb;font-size:12px;text-align:center}
.pendingHistoryCell{min-width:0;overflow-wrap:anywhere}
.pendingHistoryClient{display:flex;align-items:center;gap:9px;min-width:0;width:100%;padding:0;background:transparent;color:#fff;border:0;text-align:left;cursor:pointer;font-size:13px}
.pendingHistoryClient:hover strong{text-decoration:underline;color:#72d7ff}
.pendingHistoryClient strong{font-weight:800}
.pendingHistoryEquipmentIcon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid #3679aa;border-radius:11px;background:#103858;color:#76d4ff;font-size:23px}
.pendingHistoryStatus{display:inline-block;white-space:nowrap;padding:7px 10px;border-radius:999px;border:1px solid;font-size:12px;font-weight:800}
.pendingHistoryStatus.isResolved{color:#d4ffe5;background:#075d36;border-color:#178b54}
.pendingHistoryStatus.isNotResolved{color:#ffe2e4;background:#801b26;border-color:#e34453}
.pendingHistoryAction{text-align:right}
.pendingHistoryReturn{padding:9px 10px;white-space:nowrap;border:1px solid #328bd0;border-radius:9px;background:#102d49;color:#fff;font-weight:800;font-size:12px;cursor:pointer}
.pendingHistoryCount{margin:11px 7px;color:#bccfe2;font-size:12px}
.pendingHistoryNoResults{margin:18px;color:#bdcde2}
.pendingHistoryDetailCard{border:1px solid #315b7b;border-radius:16px;background:#142b43;padding:14px}
.pendingHistoryDetailTop{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.pendingHistoryDetailTop h2{flex:1;margin:0;font-size:20px}
.pendingHistoryDetailGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pendingHistoryDetailBox{padding:11px 13px;border:1px solid #315b7b;border-radius:10px;background:#0d2137;min-width:0;overflow-wrap:anywhere}
.pendingHistoryDetailBox span,.pendingHistoryDetailBox strong{display:block}
.pendingHistoryDetailBox span{margin-bottom:6px;color:#aaddff;font-size:12px;font-weight:800}
.pendingHistoryDetailBox strong{font-size:14px}
.pendingHistoryDetailObservation{grid-column:1 / -1}
.pendingHistoryDetailActions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.pendingHistoryReturnPrimary{background:linear-gradient(90deg,#079bed,#20d2e1);color:#041929;border:0;font-size:14px}
.pendingReturnConfirm{text-align:center;padding:8px 3px}
.pendingReturnConfirm h2{margin:8px 0;font-size:23px}
.pendingReturnConfirm p{color:#d1dfed;font-size:14px}
.pendingReturnWarning{display:grid;place-items:center;width:52px;height:52px;margin:auto;border:1px solid #c79511;border-radius:50%;background:#684708;color:#ffe083;font-size:26px}
.pendingReturnSummary{display:flex;align-items:center;gap:12px;padding:12px;text-align:left;border:1px solid #315b7b;border-radius:12px;background:#0d2137}
.pendingReturnSummary div{min-width:0;overflow-wrap:anywhere}
.pendingReturnSummary strong,.pendingReturnSummary span,.pendingReturnSummary small{display:block;margin:3px 0}
.pendingReturnSummary small{color:#b7cde2}
.pendingReturnActions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.pendingReturnActions button{width:100%;min-width:0}
@media(max-width:720px){.pendingHistoryHeader{align-items:flex-start;flex-direction:column;gap:8px}.pendingHistoryHeader h1{font-size:21px}.pendingHistoryControls{flex-wrap:wrap}.pendingHistorySearch{flex-basis:100%}.pendingHistoryControls select{width:100%}.pendingHistoryDetailTop{flex-wrap:wrap}.pendingHistoryDetailTop h2{flex-basis:calc(100% - 60px)}.pendingHistoryDetailGrid{grid-template-columns:1fr}.pendingHistoryDetailObservation{grid-column:auto}.pendingHistoryDetailActions{grid-template-columns:1fr}}

/* LUVAl — acabamento visual fiel ao modelo (20/09/2026).
   Apenas painel de serviços pendentes/histórico: demais telas intactas. */
.pendingPage .pendingHistoryBanner{border-color:#e3af29;background:linear-gradient(110deg,#102b49,#0b2038);box-shadow:inset 0 0 0 1px rgba(244,185,32,.14)}
.pendingPage .pendingHistoryIcon{background:linear-gradient(135deg,#303eaa,#142d68);border-color:#6598fa;box-shadow:0 4px 15px #0005}
.pendingPage .pendingHistoryButton{display:flex;align-items:center;justify-content:center;gap:8px}
.pendingPage .pendingHistoryButton:hover{border-color:#65d4ff}
.pendingHistoryPage{max-width:1720px}
.pendingHistoryHeader{min-height:78px;padding:12px 16px;margin-bottom:12px;background:linear-gradient(110deg,#102e4c,#0c2137)}
.pendingHistoryHeader h1{font-size:23px;font-weight:900}
.pendingHistoryBack{display:inline-flex;align-items:center;justify-content:center;min-height:40px;background:#102d49;border-color:#347daf}
.pendingHistoryControls{border-bottom:0;border-radius:12px 12px 0 0}
.pendingHistorySearch{min-height:42px}
.pendingHistoryTable{padding:5px 7px 7px;border-top:0;background:#09192b}
.pendingHistoryTableHead{margin:-5px -7px 6px;padding:12px 16px;min-width:790px;border-bottom:1px solid #315b7b;background:#112d48}
.pendingHistoryTable .pendingHistoryRow:not(.pendingHistoryTableHead){margin:6px 0;padding:9px 10px;min-height:54px;border:1px solid #28597e;border-radius:12px;background:linear-gradient(110deg,#0b2742,#0a1d30);transition:border-color .18s,background .18s}
.pendingHistoryTable .pendingHistoryRow:not(.pendingHistoryTableHead):hover{border-color:#379bd1;background:#113251}
.pendingHistoryClient{gap:9px}
.pendingHistoryClient strong{flex:1;font-size:13px;line-height:1.25}
.pendingHistoryOpenIcon{font-size:21px;color:#5bcaff;font-weight:900;opacity:.75}
.pendingHistoryEquipmentIcon{width:42px;height:42px;background:#0b3355;border-color:#3183b7;font-size:25px}
.pendingHistoryStatus{padding:7px 11px}
.pendingHistoryCell:nth-child(5){text-align:center}
.pendingHistoryAction{text-align:right}
.pendingHistoryReturn{background:#103251;border-color:#278ed1;border-radius:9px}
.pendingHistoryDetailCard{padding:14px;background:#142b43;border-radius:15px}
.pendingHistoryDetailTop{display:flex;gap:12px;min-height:53px;padding:1px 0 12px;margin-bottom:0}
.pendingHistoryDetailTop h2{font-size:19px;line-height:1.25}
.pendingHistoryDetailTop .pendingHistoryStatus{margin-left:auto}
.pendingHistoryDetailIcon{width:46px;height:46px}
.pendingHistoryDetailGrid{gap:7px}
.pendingHistoryDetailBox{min-height:59px;padding:8px 11px;border-radius:9px}
.pendingHistoryDetailBox span{display:flex;align-items:center;gap:7px;margin-bottom:5px;font-size:12px}
.pendingHistoryDetailBox strong{font-size:13px;line-height:1.35}
.pendingFieldIcon{display:grid;place-items:center;flex:none;width:20px;height:20px;font-style:normal;font-size:15px;color:#9fdfff}
.pendingHistoryDetailObservation{min-height:60px}
.pendingHistoryDetailActions{margin-top:9px}
.pendingHistoryDetailActions button{min-height:41px}
.pendingHistoryReturnPrimary{background:linear-gradient(95deg,#0c9af0,#22c9da);color:#001827;border-color:transparent}
#modal:has(.pendingReturnConfirm){width:min(640px,94vw);max-height:92vh;border:1px solid #366186;border-radius:20px;background:linear-gradient(150deg,#11263d,#0c1d31);box-shadow:0 26px 100px #000b}
#modal:has(.pendingReturnConfirm) .modalbody{padding:19px 20px;max-height:90vh}
.pendingReturnConfirm{padding:0}
.pendingReturnConfirm h2{margin:9px 0 7px;font-size:22px}
.pendingReturnConfirm p{margin:0 0 15px;font-size:13px}
.pendingReturnWarning{width:50px;height:50px;font-size:27px;background:linear-gradient(130deg,#674600,#473000)}
.pendingReturnSummary{padding:10px;gap:12px}
.pendingReturnSummary strong{font-size:14px}
.pendingReturnSummary span,.pendingReturnSummary small{font-size:12px}
.pendingSummaryResolved{display:inline!important;color:#55e69c;font-weight:800}
.pendingSummaryNotResolved{display:inline!important;color:#ff858d;font-weight:800}
.pendingReturnActions{margin-top:12px}
.pendingReturnActions button{min-height:41px}
@media(max-width:850px){.pendingHistoryTable{overflow-x:auto}.pendingHistoryPage .pendingHistoryHeader h1{font-size:20px}.pendingHistoryPage .pendingHistoryDetailTop h2{font-size:17px}}
@media(max-width:720px){.pendingHistoryHeader{align-items:flex-start}.pendingHistoryDetailTop .pendingHistoryStatus{margin-left:0}.pendingHistoryDetailActions{grid-template-columns:1fr}.pendingReturnActions{grid-template-columns:1fr}.pendingHistoryTable .pendingHistoryRow:not(.pendingHistoryTableHead){min-width:790px}}

/* LUVAl — data/hora de conclusão real na ficha e no histórico */
.pendingHistoryDetailTop .pendingHistoryAudit{
  margin-left:auto; display:flex; flex-direction:column; gap:3px;
  min-width:185px; max-width:260px; font-size:12px; line-height:1.4;
  color:#d9eafa; text-align:left;
}
.pendingHistoryAuditText,.pendingHistoryAuditPerson{display:block}
.pendingHistoryAuditPerson{color:#b3c9df}
.pendingHistoryAuditMissing{color:#b3c9df;font-size:12px}
.pendingHistoryDateCell small{display:block;margin-top:3px;line-height:1.3;font-size:11px;color:#b3c9df}
.pendingHistoryDateCell .pendingHistoryAuditText{font-size:11px}
.pendingHistoryDateCell .pendingHistoryAuditPerson{font-size:10px}
@media(max-width:720px){
  .pendingHistoryDetailTop .pendingHistoryAudit{margin-left:0;max-width:none;width:100%;padding-left:58px}
}


/* === LOGO DA EMPRESA NO APP E NO QR CODE === */
.logo-image{
  width:auto;
  height:auto;
  background:none;
  border:0;
  box-shadow:none;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0;
}

.logo-image img{
  display:block;
  max-width:100%;
  height:auto;
}

.auth-logo{
  margin-bottom:12px;
}

.auth-logo img{
  width:min(320px,82vw);
  border-radius:16px;
  box-shadow:0 16px 42px rgba(0,0,0,.28);
}

.brand-area-image{
  gap:10px;
}

.brand-logo-app{
  display:block;
  height:52px;
  width:52px;
  object-fit:contain;
  flex:0 0 52px;
}

.public-logo{
  margin-bottom:10px;
}

.publicHero .logo.logo-image{
  font-size:0;
  margin-bottom:12px;
}

.public-logo img{
  width:min(320px,82vw);
  border-radius:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.22);
}

.qrBox{
  position:relative;
  display:grid;
  place-items:center;
  padding:18px;
  background:#ffffff;
  border-radius:14px;
  margin-top:12px;
}

.qrCanvas{
  width:180px;
  height:180px;
  display:grid;
  place-items:center;
}

.qrCanvas img,
.qrCanvas canvas{
  display:block;
}

.qrLogoBadge{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:54px;
  padding:4px;
  border-radius:12px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.qrLogoBadge img{
  display:block;
  width:100%;
  height:auto;
  border-radius:8px;
}

@media(max-width:700px){
  ...
  .qrCanvas{
    width:160px;
    height:160px;
  }

  .qrLogoBadge{
    width:48px;
  }
}

@media(max-width:480px){
  .brand-logo-app{
    height:38px;
    width:38px;
    flex-basis:38px;
  }
}


/* AJUSTES DE MARCA E QR POR EQUIPAMENTO */
#clientDetail .hero .actions{
  gap:10px;
}

#clientDetail .equipmentQrButton{
  white-space:nowrap;
}

@media(max-width:700px){
  .brand-text b{
    font-size:18px;
  }

  .brand-text small{
    font-size:10px;
  }
}

@media(max-width:480px){
  .brand-text b{
    font-size:15px;
  }

  .brand-text small{
    font-size:9px;
  }

  .topbar-left{
    gap:10px;
  }
}


/* QR de alta densidade: link do equipamento com chave publica extensa.
   Tamanho maior + nivel de correcao M para evitar "code length overflow".
   O logo central deve ser pequeno para preservar a leitura no celular. */
.qrCanvas {
  width: min(600px, 100%);
  height: auto;
  aspect-ratio: 1;
  min-width: 0;
}
.qrCanvas img,
.qrCanvas canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  image-rendering: pixelated;
}
.qrLogoBadge {
  width: clamp(28px, 7vw, 44px);
  padding: 3px;
  border-radius: 7px;
  box-shadow: none;
}
.qrLogoBadge img {
  border-radius: 4px;
}
.qrCanvas.qrGenerateError {
  width: min(600px, 100%);
  aspect-ratio: auto;
  padding: 22px;
  height: auto;
  text-align: center;
  color: #713b00;
  background: #fff8e5;
  border-radius: 8px;
}
.qrBox:has(.qrGenerateError) .qrLogoBadge {
  display: none;
}
@media (max-width: 700px) {
  .qrCanvas {
    width: min(600px, 100%);
    height: auto;
  }
  .qrLogoBadge {
  width: 52px;
  padding: 4px;
}
}

/* TAMANHO COMPACTO DO QR CODE DO EQUIPAMENTO */
.qrCanvas {
  width: 300px;
  max-width: 100%;
  height: 300px;
}

.qrCanvas img,
.qrCanvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.qrLogoBadge {
  width: 52px;
  padding: 20px;
}

/* QR CODE MAIS COMPACTO */
.qrBox {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 12px;
}

.qrCanvas {
  width: 240px;
  height: 240px;
}

.qrCanvas img,
.qrCanvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.qrLogoBadge {
  width: 30px;
  padding: 2px;
}

/* ===========================================================
   ÁREA DO CLIENTE — VISUAL COMPACTO PARA QR DE UM EQUIPAMENTO
   Afeta apenas a página aberta pelo QR de um equipamento.
   Não altera o painel administrativo nem a tela de login.
   =========================================================== */

#public .publicWrap.publicEquipmentCompact {
  max-width: 960px;
  padding: 10px 14px 28px;
}

#public .publicEquipmentCompact .publicHero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  min-height: 86px;
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 16px;
}

#public .publicEquipmentCompact .publicHero .logo.logo-image {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  width: 64px;
  height: 64px;
}

#public .publicEquipmentCompact .publicHero .public-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: none;
}

#public .publicEquipmentCompact .publicHero h1 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

#public .publicEquipmentCompact .publicHero p {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  line-height: 1.25;
  margin: 0;
}

#public .publicEquipmentCompact > .publicCard {
  padding: 12px 14px 14px;
  margin: 0;
  border-radius: 16px;
}

#public .publicEquipmentCompact > .publicCard > h2 {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 1.2;
}

#public .publicEquipmentCompact > .publicCard > p.muted {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.35;
}

#public .publicEquipmentCompact .publicEquipmentBox {
  margin-top: 8px;
  padding: 12px;
  border-radius: 13px;
}

#public .publicEquipmentCompact .publicEquipmentHead {
  margin-bottom: 8px;
}

#public .publicEquipmentCompact .publicEquipmentTitle {
  font-size: 19px;
  line-height: 1.2;
}

#public .publicEquipmentCompact .publicEquipmentHead .muted {
  font-size: 13px;
}

#public .publicEquipmentCompact .publicInfoGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

#public .publicEquipmentCompact .publicInfoItem {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#public .publicEquipmentCompact .publicInfoItem b {
  margin-bottom: 2px;
  font-size: 12px;
}

#public .publicEquipmentCompact .publicServiceList {
  margin-top: 10px;
  gap: 6px;
}

#public .publicEquipmentCompact .publicServiceCard {
  padding: 10px 12px;
  border-radius: 11px;
}

#public .publicEquipmentCompact .publicServiceTop {
  gap: 8px;
}

#public .publicEquipmentCompact .publicServiceTop .itemtitle {
  font-size: 15px;
  line-height: 1.25;
}

#public .publicEquipmentCompact .publicServiceTop .muted {
  font-size: 12px;
  margin-top: 2px;
}

#public .publicEquipmentCompact .publicAction {
  min-width: 0;
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 12px;
}

#public .publicEquipmentCompact .publicHint {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#public .publicEquipmentCompact .publicMetaRow {
  margin-top: 6px;
}

#public .publicEquipmentCompact .publicBadge {
  padding: 4px 8px;
  font-size: 11px;
}

@media (max-width: 640px) {
  #public .publicWrap.publicEquipmentCompact {
    padding: 8px 8px 20px;
  }

  #public .publicEquipmentCompact .publicHero {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 68px;
    gap: 2px 9px;
    padding: 9px 10px;
    margin-bottom: 7px;
  }

  #public .publicEquipmentCompact .publicHero .logo.logo-image,
  #public .publicEquipmentCompact .publicHero .public-logo img {
    width: 52px;
    height: 52px;
  }

  #public .publicEquipmentCompact .publicHero h1 {
    font-size: 15px;
  }

  #public .publicEquipmentCompact > .publicCard {
    padding: 10px;
  }

  #public .publicEquipmentCompact > .publicCard > h2 {
    font-size: 16px;
  }

  #public .publicEquipmentCompact .publicEquipmentBox {
    padding: 9px;
  }

  #public .publicEquipmentCompact .publicEquipmentTitle {
    font-size: 17px;
  }

  #public .publicEquipmentCompact .publicInfoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  #public .publicEquipmentCompact .publicInfoItem {
    padding: 7px 8px;
    font-size: 12px;
  }

  #public .publicEquipmentCompact .publicServiceCard {
    padding: 9px;
  }
}


/* ===========================================================
   LUVAL | LOGIN DO QR COMPACTO + RESPONSIVIDADE NO CELULAR
   Apenas as telas públicas abertas pelo QR Code do cliente.
   =========================================================== */
#public,
#public .publicWrap,
#public .publicCard,
#public .publicEquipmentBox,
#public .publicServiceCard {
  min-width: 0;
}

/* Ao entrar pelo QR, o formulário não ocupa toda a largura do desktop. */
#public .publicWrap.publicLoginCompact {
  width: min(100%, 580px);
  max-width: 580px;
  padding: 12px 12px 24px;
  margin: 0 auto;
}

#public .publicLoginCompact .publicHero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 12px;
  min-height: 84px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 16px;
}

#public .publicLoginCompact .publicHero .logo.logo-image {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 64px;
  height: 64px;
  margin: 0;
}

#public .publicLoginCompact .publicHero .public-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: none;
}

#public .publicLoginCompact .publicHero h1 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

#public .publicLoginCompact .publicHero p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

#public .publicLoginCompact > .publicCard {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
}

#public .publicLoginCompact > .publicCard > label {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.3;
}

#public .publicLoginCompact #clientPass {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
}

#public .publicLoginCompact > .publicCard > .btn.wide {
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 14px;
}

#public .publicLoginCompact .publicSafeBox {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

#public .publicLoginCompact .publicSafeBox .muted {
  margin-top: 3px !important;
  font-size: 12px;
  line-height: 1.35;
}

#public .publicLoginCompact #pubMsg:empty {
  display: none;
}

/* No celular: formulário e ficha do equipamento cabem na tela sem
   reduzir demais o texto ou esconder informações e botões. */
@media (max-width: 640px) {
  body:has(#public.active) {
    overflow-x: hidden;
  }

  body:has(#public.active) main {
    width: 100%;
    max-width: 100%;
    padding: 6px 0 20px;
  }

  #public .publicWrap.publicLoginCompact,
  #public .publicWrap.publicEquipmentCompact {
    width: 100%;
    max-width: 100%;
    padding: 6px 9px 18px;
  }

  #public .publicLoginCompact .publicHero {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 64px;
    gap: 2px 9px;
    padding: 8px 10px;
    margin-bottom: 7px;
    border-radius: 12px;
  }

  #public .publicLoginCompact .publicHero .logo.logo-image,
  #public .publicLoginCompact .publicHero .public-logo img {
    width: 48px;
    height: 48px;
  }

  #public .publicLoginCompact .publicHero h1 {
    font-size: 16px;
  }

  #public .publicLoginCompact .publicHero p {
    font-size: 11px;
  }

  #public .publicLoginCompact > .publicCard {
    padding: 12px;
    border-radius: 12px;
  }

  #public .publicLoginCompact .publicSafeBox {
    padding: 9px 10px;
    font-size: 12px;
  }

  #public .publicEquipmentCompact .publicEquipmentBox,
  #public .publicEquipmentCompact .publicInfoGrid,
  #public .publicEquipmentCompact .publicServiceList {
    min-width: 0;
    max-width: 100%;
  }

  #public .publicEquipmentCompact .publicEquipmentHead {
    min-width: 0;
  }

  #public .publicEquipmentCompact .publicEquipmentTitle,
  #public .publicEquipmentCompact .publicServiceTop .itemtitle {
    overflow-wrap: anywhere;
  }

  #public .publicEquipmentCompact .publicInfoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #public .publicEquipmentCompact .publicServiceTop {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #public .publicEquipmentCompact .publicServiceTop > div:first-child {
    min-width: 0;
    flex: 1 1 150px;
  }

  #public .publicEquipmentCompact .publicAction {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  #public .publicEquipmentCompact .publicInfoGrid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   LUVAL | LEITURA MAIS CONFORTÁVEL NA FICHA PÚBLICA DO EQUIPAMENTO
   Somente após entrar pelo QR e somente em telas de celular.
   O login público e a visualização no computador não são alterados.
   =========================================================== */
@media (max-width: 640px) {
  #public .publicWrap.publicEquipmentCompact {
    padding: 10px 12px 24px;
  }

  #public .publicEquipmentCompact .publicHero {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 76px;
    padding: 10px 12px;
    gap: 4px 11px;
    margin-bottom: 10px;
  }

  #public .publicEquipmentCompact .publicHero .logo.logo-image,
  #public .publicEquipmentCompact .publicHero .public-logo img {
    width: 56px;
    height: 56px;
  }

  #public .publicEquipmentCompact .publicHero h1 {
    font-size: 18px;
    line-height: 1.25;
  }

  #public .publicEquipmentCompact .publicHero p {
    font-size: 13px;
    line-height: 1.35;
  }

  #public .publicEquipmentCompact > .publicCard {
    padding: 14px;
    border-radius: 15px;
  }

  #public .publicEquipmentCompact > .publicCard > h2 {
    font-size: 19px;
    line-height: 1.25;
  }

  #public .publicEquipmentCompact > .publicCard > .muted {
    font-size: 14px;
    line-height: 1.4;
  }

  #public .publicEquipmentCompact .publicEquipmentBox {
    padding: 12px;
    border-radius: 13px;
  }

  #public .publicEquipmentCompact .publicEquipmentTitle {
    font-size: 20px;
    line-height: 1.2;
  }

  #public .publicEquipmentCompact .publicEquipmentHead .muted {
    font-size: 14px;
    line-height: 1.35;
  }

  #public .publicEquipmentCompact .publicInfoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  #public .publicEquipmentCompact .publicInfoItem {
    padding: 10px;
    font-size: 15px;
    line-height: 1.3;
  }

  #public .publicEquipmentCompact .publicInfoItem b {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.3;
  }

  #public .publicEquipmentCompact .publicServiceList {
    gap: 9px;
    margin-top: 12px;
  }

  #public .publicEquipmentCompact .publicServiceCard {
    padding: 12px;
    border-radius: 12px;
  }

  #public .publicEquipmentCompact .publicServiceTop .itemtitle {
    font-size: 17px;
    line-height: 1.3;
  }

  #public .publicEquipmentCompact .publicServiceTop .muted {
    font-size: 14px;
    line-height: 1.35;
  }

  #public .publicEquipmentCompact .publicHint {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    overflow: visible;
  }

  #public .publicEquipmentCompact .publicBadge {
    padding: 5px 9px;
    font-size: 12px;
  }

  #public .publicEquipmentCompact .publicAction {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  #public .publicEquipmentCompact .publicInfoGrid {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   TOPO REORGANIZADO COM ALERTAS
   =============================== */
.topbar-actions{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
}

.topStatusAction{
  background:transparent;
  border:0;
  color:var(--text);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  min-width:84px;
  cursor:pointer;
  padding:0;
}

.topStatusAction:hover .topStatusCircle,
.topStatusAction:focus-visible .topStatusCircle{
  transform:translateY(-2px);
  box-shadow:0 0 0 3px rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.28);
}

.topStatusCircle{
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  font-size:24px;
  font-weight:900;
  transition:transform .18s ease, box-shadow .18s ease;
  background:#0d2136;
  border:3px solid #36516f;
  box-shadow:0 8px 22px rgba(0,0,0,.26);
}

.topStatusCircle.admin{
  border-color:#9a6bff;
  color:#d7c4ff;
}

.topStatusCircle.bell{
  border-color:#ffdf3f;
  color:#ffdf3f;
}

.topStatusCircle.overdue{
  border-color:#ff4646;
  color:#ff6464;
}

.topStatusCircle.pending{
  border-color:#ff9800;
  color:#ffb347;
}

.topStatusCircle.passwords{
  border-color:#b274ff;
  color:#d6b2ff;
}

.topStatusLabel{
  font-size:12px;
  line-height:1.12;
  text-align:center;
  color:#f0f6ff;
  max-width:88px;
  font-weight:700;
}

.topStatusBadge{
  position:absolute;
  top:-6px;
  right:-2px;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#ff4545;
  color:#fff;
  border:2px solid #082040;
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.adminHome{
  padding-bottom:20px;
}

.adminWelcome{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  background:linear-gradient(135deg,#123f87,#0d2f64 58%, #0c2754);
  border:1px solid #2387d7;
  border-radius:24px;
  padding:30px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}

.adminClientsSection{
  margin-top:22px;
}

.adminSectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}

.adminSectionActions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.adminClientsPanel{
  margin-top:14px;
  background:linear-gradient(180deg,#0a1e36,#09182b);
  border:1px solid #1f4c78;
  border-radius:24px;
  padding:22px;
}

.adminClientControls{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.adminSearch{
  flex:1 1 320px;
}

.adminFilterButtons{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.adminClientCount{
  margin-left:auto;
  color:var(--muted);
  font-weight:700;
}

.adminClientList{
  margin-top:8px;
}

.maintenanceNoticeModal{
  display:grid;
  gap:18px;
}

.maintenanceSection{
  background:linear-gradient(180deg,#0d2441,#0a1d34);
  border:1px solid #25507a;
  border-radius:20px;
  padding:14px;
}

.maintenanceSectionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.maintenanceSectionTitle{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  font-weight:900;
}

.maintenanceSectionTitle .dot{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:18px;
}

.maintenanceSection.overdue .dot{
  background:#3d1320;
  color:#ff7f90;
}

.maintenanceSection.upcoming .dot{
  background:#0b3554;
  color:#73d7ff;
}

.maintenanceCounter{
  min-width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#fff;
}

.maintenanceSection.overdue .maintenanceCounter{
  background:#ef5b65;
}

.maintenanceSection.upcoming .maintenanceCounter{
  background:#26a9e8;
}

.maintenanceNoticeList{
  display:grid;
  gap:12px;
}

.maintenanceNoticeCard{
  background:rgba(18,50,88,.72);
  border:1px solid #24507b;
  border-radius:18px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.maintenanceNoticeTitle{
  font-weight:900;
  font-size:16px;
  margin-bottom:4px;
}

.maintenanceNoticeMeta{
  color:#dbe6f4;
  font-size:14px;
}

.maintenanceNoticeDate{
  margin-top:8px;
  font-weight:900;
  font-size:15px;
}

.maintenanceNoticeDate.overdue{
  color:#ff7680;
}

.maintenanceNoticeDate.upcoming{
  color:#6fdcff;
}

.maintenanceEmpty{
  color:var(--muted);
  padding:8px 4px 0;
}

@media (max-width: 1100px){
  .topbar{
    align-items:flex-start;
  }

  .topbar-actions{
    gap:10px;
  }

  .topStatusAction{
    min-width:70px;
  }

  .topStatusLabel{
    font-size:11px;
    max-width:70px;
  }
}

@media (max-width: 900px){
  .topbar{
    flex-direction:column;
    align-items:stretch;
  }

  .topbar-left,
  .topbar-actions{
    justify-content:space-between;
  }

  .topbar-actions{
    width:100%;
  }

  .topStatusAction{
    flex:1 1 18%;
    min-width:64px;
  }

  .adminWelcome,
  .adminSectionHead{
    flex-direction:column;
    align-items:flex-start;
  }

  .adminClientCount{
    margin-left:0;
  }
}

@media (max-width: 640px){
  .topbar{
    padding:10px 12px;
  }

  .brand-text b{
    font-size:16px;
  }

  .brand-text small{
    font-size:10px;
  }

  .topbar-actions{
    justify-content:space-between;
  }

  .topStatusCircle{
    width:42px;
    height:42px;
    font-size:20px;
  }

  .topStatusBadge{
    min-width:20px;
    height:20px;
    font-size:11px;
  }

  .topStatusLabel{
    font-size:10px;
    max-width:56px;
  }

  .adminWelcome{
    padding:20px;
  }

  .adminClientsPanel{
    padding:16px;
  }

  .maintenanceNoticeCard{
    flex-direction:column;
    align-items:flex-start;
  }

  .maintenanceNoticeCard .btn{
    width:100%;
  }
}


/* ============================================================
   LUVAL — CABEÇALHO COM SETE ACESSOS, SEM BARRA INFERIOR
   Somente painel administrativo: a área pública pelo QR permanece igual.
   ============================================================ */
#app .nav { display:none !important; }
#app main { padding-bottom:24px; }
#app:has(#pendingServices.active) main { padding-bottom:24px; }

#app .topbar {
  gap:12px;
  padding:10px 18px;
  min-height:84px;
  overflow:visible;
}
#app .topbar-left { flex:0 1 auto; }
#app .topbar-actions {
  flex:0 1 auto;
  flex-wrap:nowrap;
  align-items:flex-start;
  justify-content:flex-end;
  gap:8px;
  overflow:visible;
}
#app .topStatusAction {
  flex:0 0 76px;
  min-width:0;
  width:76px;
  gap:5px;
  padding:0;
  overflow:visible;
}
#app .topStatusCircle {
  width:43px;
  height:43px;
  border-width:2px;
  font-size:20px;
  overflow:visible;
  flex:0 0 43px;
}
#app .topStatusCircle.admin { border-color:#4a9df7; color:#8dc6ff; }
#app .topStatusCircle.clients { border-color:#ac7745; color:#e6ae6b; }
#app .topStatusCircle.calendar { border-color:#39d77e; color:#85f2ab; }
#app .topStatusCircle.bell { border-color:#ffdc35; color:#ffe676; }
#app .topStatusCircle.overdue { border-color:#ff444e; color:#ff8389; }
#app .topStatusCircle.pending { border-color:#ff9d22; color:#ffb866; }
#app .topStatusCircle.passwords { border-color:#ad6df1; color:#d2a5ff; }
#app .topStatusLabel {
  font-size:11px;
  line-height:1.16;
  max-width:76px;
  min-height:24px;
  font-weight:700;
  overflow-wrap:normal;
}
#app .topStatusBadge {
  top:-7px;
  right:-10px;
  min-width:20px;
  height:20px;
  padding:0 4px;
  font-size:11px;
  z-index:2;
  box-shadow:0 1px 5px #0009;
}

@media (max-width: 1100px) {
  #app .topbar { flex-direction:column; align-items:stretch; gap:10px; }
  #app .topbar-actions { width:100%; justify-content:space-between; }
  #app .topStatusAction { flex:0 1 76px; }
}
@media (max-width: 600px) {
  #app .topbar { gap:8px; padding:9px 10px; }
  #app .topbar-actions {
    gap:4px;
    width:100%;
    overflow-x:auto;
    overflow-y:visible;
    padding:8px 4px 5px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  #app .topStatusAction { flex:0 0 62px; width:62px; }
  #app .topStatusCircle { width:40px; height:40px; flex-basis:40px; font-size:18px; }
  #app .topStatusLabel { max-width:62px; font-size:10px; }
  #app .topStatusBadge { top:-7px; right:-8px; }
}


/* ============================================================
   LUVAL — AJUSTE FINO: SENHAS COMPACTAS E ÍCONES SEM CORTE
   Regras limitadas à tela de senhas e ao cabeçalho administrativo.
   ============================================================ */

/* O espaço superior reserva a área dos números de alerta; os números
   ficam dentro do cabeçalho, em vez de escaparem pelo topo da página. */
#app .topbar:not(.hidden) {
  padding-top:15px;
  padding-bottom:7px;
  min-height:76px;
  overflow:visible;
}
#app .topbar-actions {
  align-items:flex-start;
  gap:5px;
}
#app .topStatusAction {
  flex:0 0 68px;
  width:68px;
  gap:3px;
  min-height:58px;
  overflow:visible;
}
#app .topStatusCircle {
  width:36px;
  height:36px;
  flex:0 0 36px;
  font-size:17px;
  border-width:2px;
  overflow:visible;
}
#app .topStatusLabel {
  font-size:10px;
  line-height:1.1;
  max-width:68px;
  min-height:22px;
}
#app .topStatusBadge {
  top:-6px;
  right:-9px;
  min-width:17px;
  height:17px;
  padding:0 3px;
  font-size:10px;
  line-height:1;
  border-width:1px;
  display:grid;
  place-items:center;
  z-index:3;
}

/* A tela de senhas deixa de usar cartões altos que ocupam meia página. */
#passwords .toolbar {
  margin-bottom:10px;
  gap:5px;
}
#passwords .title {
  font-size:26px;
  line-height:1.15;
  margin:0 0 3px;
}
#passwords .toolbar .muted { font-size:14px; line-height:1.3; }
#passwords #passSearch {
  padding:10px 13px;
  font-size:15px;
  min-height:42px;
}
#passwords .passwordGrid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:10px !important;
  align-items:start;
}
#passwords .passwordCard {
  padding:12px 14px;
  border-radius:14px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:12px;
  row-gap:4px;
  align-items:center;
  min-width:0;
}
#passwords .passwordCard > b {
  grid-column:1 / -1;
  font-size:17px;
  line-height:1.2;
  overflow-wrap:anywhere;
}
#passwords .passwordCard > .muted {
  grid-column:1 / -1;
  font-size:13px;
  line-height:1.2;
}
#passwords .passwordCard > .code {
  grid-column:1;
  margin:3px 0 0;
  font-size:23px;
  letter-spacing:2px;
  line-height:1.1;
  overflow-wrap:anywhere;
  min-width:0;
}
#passwords .passwordCard > button.small {
  grid-column:2;
  align-self:end;
  margin:0;
  padding:8px 11px;
  white-space:nowrap;
  font-size:12px;
}

@media (max-width:1100px) {
  #app .topbar:not(.hidden) { padding-top:15px; }
  #app .topbar-actions { gap:4px; }
  #app .topStatusAction { flex:0 1 68px; width:68px; }
}
@media (max-width:700px) {
  #passwords .passwordGrid { grid-template-columns:1fr; }
  #passwords .passwordCard { padding:11px 12px; }
  #passwords .title { font-size:23px; }
  #app .topbar:not(.hidden) { padding-top:15px; }
  #app .topbar-actions {
    padding:9px 9px 5px;
    gap:5px;
    overflow-x:auto;
    overflow-y:visible;
  }
  #app .topStatusAction { flex:0 0 58px; width:58px; }
  #app .topStatusCircle { width:35px; height:35px; flex-basis:35px; font-size:16px; }
  #app .topStatusLabel { max-width:58px; font-size:9px; }
  #app .topStatusBadge { top:-6px; right:-8px; }
}
@media (max-width:400px) {
  #passwords .passwordCard { grid-template-columns:minmax(0,1fr); }
  #passwords .passwordCard > .code,
  #passwords .passwordCard > button.small { grid-column:1; }
  #passwords .passwordCard > button.small { justify-self:start; }
}

/* NOVO MÓDULO DE ORÇAMENTOS – ISOLADO DAS TELAS DE MANUTENÇÃO */
#app .topStatusCircle.quotes{background:#0c345d;color:#ffda51;border-color:#318bd1}
#quotes{--qink:#142b50;--qblue:#075da5;--qborder:#dce5f2;color:var(--qink);background:#f7faff;min-height:calc(100vh - 100px);border-radius:14px;overflow:hidden;font-size:15px}
#quotes *{box-sizing:border-box}#quotes button{cursor:pointer;font-family:inherit}#quotes .qhead{position:relative;background:linear-gradient(125deg,#124981,#0476a4);color:white;padding:22px 28px 20px;min-height:165px}#quotes .qhead::after{content:"";position:absolute;right:0;bottom:0;width:100px;height:15px;background:#ffd73f;transform:skew(-35deg)}#quotes .qhead h1{font-size:34px;margin:25px 0 0}#quotes .qhead p{margin:4px 0}#quotes .qbrand{font-size:18px;text-align:center}#quotes .qbrand b{color:#ffe14c}#quotes .qplus{position:absolute;right:23px;top:20px;background:white;color:#08629b;font-size:32px;border:0;border-radius:50%;width:55px;height:55px}#quotes .qbody{padding:19px 23px 95px}#quotes .qsearch{display:flex;gap:10px;margin-bottom:15px}#quotes input,#quotes select,#quotes textarea{background:white;color:#192d4e;border:1px solid #cfdaea;border-radius:9px;padding:10px;width:100%;font:inherit}#quotes input:focus,#quotes textarea:focus{outline:2px solid #308be9}#quotes .qsearch button{background:#fff;border:1px solid #dae2ef;border-radius:10px;padding:8px 15px;color:#18365b;font-size:23px}#quotes .qsearch button small{display:block;font-size:10px}#quotes .qmetrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}#quotes .qmetrics button{border:1px solid var(--qborder);background:#ecf9f5;border-radius:13px;padding:12px 7px;text-align:left;color:#194872;min-height:98px}#quotes .qmetrics button:nth-child(1){background:#fff9e9}#quotes .qmetrics button:nth-child(3){background:#eaf5ff}#quotes .qmetrics button:nth-child(4){background:#f1f5ff}#quotes .qmetrics button:nth-child(5){background:#fff4e9}#quotes .qmetrics span,#quotes .qmetrics b,#quotes .qmetrics small{display:block}#quotes .qmetrics span{font-size:24px}#quotes .qmetrics b{font-size:22px}#quotes .qmetrics small{font-size:12px}#quotes .qsection{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:22px 0 10px}#quotes .qsection h2{font-size:21px;margin:0}#quotes .qsection button,#quotes .qmini{background:white;border:1px solid #d2e1f5;color:#095ea5;padding:8px;border-radius:9px}#quotes .qwidgets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#quotes .qwidgets article{background:#eff8ff;border:1px solid #d2e6f8;border-radius:11px;padding:12px}#quotes .qwidgets article:nth-child(2){background:#eefaF5}#quotes .qwidgets article:nth-child(3){background:#fff9e9}#quotes .qwidgets p{font-size:13px;color:#54657b}#quotes .qcard{width:100%;text-align:left;display:flex;justify-content:space-between;gap:10px;padding:15px;margin:8px 0;background:white;border:1px solid var(--qborder);border-radius:13px;color:#172a4a}#quotes .qcard span,#quotes .qcard small{display:block}#quotes .qcard b{font-size:17px}#quotes .qcard small{color:#6b778a;margin-top:7px}#quotes .qcardRight{text-align:right;min-width:112px}#quotes .qcardRight em{display:inline-block;background:#e2f5e9;border-radius:14px;padding:6px;font-size:12px;font-style:normal;margin-bottom:15px}#quotes .qempty{color:#617087;text-align:center}#quotes .qbottom{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;position:sticky;bottom:0;background:white;border-top:1px solid var(--qborder);padding:12px 3px}#quotes .qbottom button{border:0;background:transparent;color:#566680;font-size:11px;padding:5px 0}#quotes .qbottom button span{display:block;font-size:24px}#quotes .qbottom button.active{color:#0572d0;font-weight:800}#quotes .qheadShort{min-height:100px}#quotes .qheadShort>button:first-child{position:absolute;top:20px;left:16px;background:transparent;border:0;color:white;font-size:32px}#quotes .qheadShort h1{font-size:25px;margin:26px 0 0 34px}#quotes .qheadShort .qsaveIcon{position:absolute;right:16px;top:20px;background:transparent;color:white;border:0;font-size:28px}#quotes .qform section,#quotes .qpreview section{background:white;border:1px solid var(--qborder);border-radius:13px;padding:17px;margin-bottom:13px}#quotes .qform section h2,#quotes .qpreview section h2{font-size:20px;margin:0 0 13px}#quotes .qform label{display:block;font-size:13px;color:#64738a;margin:8px 0;font-weight:500}#quotes .qform label input,#quotes .qform label select{margin-top:5px}#quotes .qgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#quotes .qgrid4{grid-template-columns:repeat(4,minmax(0,1fr))}#quotes .qrows{display:grid;gap:8px}#quotes .qrow{display:grid;grid-template-columns:3fr .8fr 1.2fr 32px 1.2fr;gap:7px;align-items:end;padding:9px 0;border-top:1px solid var(--qborder)}#quotes .qrow label{margin:0}#quotes .qrow button{background:#f8e7ef;color:#c52b71;border:0;border-radius:8px;font-size:24px;height:39px}#quotes .qrow>b{font-size:13px;text-align:right;padding-bottom:12px}#quotes .qhint{color:#64738a;font-size:12px}#quotes .qactions{display:flex;gap:12px;margin:15px 0}#quotes .qactions button{flex:1;padding:15px;border:1px solid #2083d3;color:#075a9e;background:white;border-radius:10px;font-weight:700}#quotes .qactions .qprimary{background:#ffd23e;color:#162f50;border-color:#ffd23e}#quotes .qpreviewRow{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;padding:12px 0;border-bottom:1px solid var(--qborder)}#quotes .qpreviewRow b{text-align:right}#quotes .qpreview section{line-height:1.5}#quotes .qpreview section p{color:#55667d}#quotes .qpreview section h3{margin:2px 0}
@media(max-width:800px){#quotes .qmetrics{grid-template-columns:repeat(3,minmax(0,1fr))}#quotes .qwidgets{grid-template-columns:1fr}#quotes .qgrid4{grid-template-columns:repeat(2,minmax(0,1fr))}#quotes .qrow{grid-template-columns:1fr 65px 105px 27px}#quotes .qrow>b{grid-column:1/-1;padding:0}#quotes .qbottom button{font-size:9px}#quotes .qbottom button span{font-size:19px}}
@media print{body{background:white!important}#app .topbar,#quotes .qhead,#quotes .qactions,#quotes .qbottom,#quotes .qsearch{display:none!important}main,#quotes .qbody{padding:0!important;max-width:100%!important}#quotes{color:black!important;background:white!important}#quotes .qpreview section{break-inside:avoid}}


/* ============================================================
   LUVAl — BARRA DE ACESSOS EM FAIXA PRÓPRIA, RESPONSIVA
   Apenas disposição visual. Mantém botões, IDs e eventos originais.
   ============================================================ */
@media screen {
  #app .topbar:not(.hidden) {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:stretch;
    justify-items:stretch;
    gap:0;
    height:auto;
    min-height:0;
    padding:8px 14px 0;
    overflow:visible;
  }
  #app .topbar:not(.hidden) .topbar-left {
    grid-row:1;
    width:100%;
    min-width:0;
    display:flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    padding:1px 0 9px;
  }
  #app .topbar:not(.hidden) .topbar-actions {
    grid-row:2;
    width:100%;
    min-width:0;
    max-width:100%;
    display:flex;
    flex:0 0 auto;
    flex-wrap:nowrap;
    align-items:flex-start;
    justify-content:space-evenly;
    gap:10px;
    padding:10px 6px 8px;
    margin:0;
    border-top:1px solid #28445e;
    background:rgba(8,30,53,.68);
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    overscroll-behavior-x:contain;
  }
  #app .topbar:not(.hidden) .topStatusAction {
    flex:0 0 94px;
    width:94px;
    min-width:0;
    min-height:69px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
    gap:5px;
    padding:0;
    margin:0;
    overflow:visible;
  }
  #app .topbar:not(.hidden) .topStatusCircle {
    flex:0 0 39px;
    width:39px;
    height:39px;
    font-size:18px;
    border-width:2px;
    overflow:visible;
  }
  #app .topbar:not(.hidden) .topStatusLabel {
    width:100%;
    max-width:94px;
    min-height:24px;
    font-size:11px;
    line-height:1.12;
    text-align:center;
    white-space:normal;
    overflow-wrap:normal;
  }
  #app .topbar:not(.hidden) .topStatusBadge {
    top:-6px;
    right:-9px;
    z-index:3;
  }
}
@media screen and (max-width:850px) {
  #app .topbar:not(.hidden) { padding:7px 9px 0; }
  #app .topbar:not(.hidden) .topbar-left { padding-bottom:8px; }
  #app .topbar:not(.hidden) .topbar-actions {
    justify-content:flex-start;
    gap:7px;
    padding:10px 5px 7px;
  }
  #app .topbar:not(.hidden) .topStatusAction {
    flex:0 0 70px;
    width:70px;
    min-height:65px;
  }
  #app .topbar:not(.hidden) .topStatusCircle {
    flex-basis:37px;
    width:37px;
    height:37px;
    font-size:17px;
  }
  #app .topbar:not(.hidden) .topStatusLabel {
    max-width:70px;
    font-size:10px;
  }
}
@media screen and (max-width:420px) {
  #app .topbar:not(.hidden) .topbar-actions { gap:5px; }
  #app .topbar:not(.hidden) .topStatusAction {
    flex:0 0 65px;
    width:65px;
  }
  #app .topbar:not(.hidden) .topStatusLabel { max-width:65px; font-size:10px; }
}


/* LUVAl — saudação no cabeçalho e retirada do painel de boas-vindas duplicado.
   A faixa dos acessos rápidos mantém o layout horizontal existente. */
@media screen {
  #app .topbar-greeting {
    display:none;
    min-width:0;
    margin-left:auto;
    padding:3px 12px 3px 18px;
    border-left:1px solid #2d526f;
    color:#f0f7ff;
    text-align:right;
    line-height:1.2;
  }
  #app:has(#clients.view.active) .topbar:not(.hidden) .topbar-greeting {
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
  }
  #app .topbar-greeting strong {font-size:clamp(13px,1.3vw,19px);font-weight:800;white-space:nowrap;}
  #app .topbar-greeting small {font-size:clamp(10px,.9vw,13px);color:#accbe6;max-width:370px;}
  #app #clients .adminClientsSection {margin-top:0;}
  #app #clients .adminHome {padding-top:0;}
  #app .topbar:not(.hidden) .topbar-left {min-width:0;}
  #app .topbar:not(.hidden) .brand-area {flex-shrink:0;}
}
@media screen and (max-width:700px) {
  #app .topbar:not(.hidden) .topbar-left {gap:8px;}
  #app .topbar-greeting {padding:2px 0 2px 8px;margin-left:auto;}
  #app .topbar-greeting strong {font-size:11px;white-space:normal;text-align:right;}
  #app .topbar-greeting small {font-size:9px;max-width:140px;line-height:1.14;}
  #app .topbar:not(.hidden) .brand-logo-app {width:34px;height:34px;flex-basis:34px;}
  #app .topbar:not(.hidden) .brand-area-image {gap:5px;}
  #app .topbar:not(.hidden) .brand-text b {font-size:12px;}
  #app .topbar:not(.hidden) .brand-text small {font-size:9px;}
}
@media screen and (max-width:390px) {
  #app .topbar:not(.hidden) .menu-icon {width:29px;height:34px;font-size:19px;flex-shrink:0;}
  #app .topbar:not(.hidden) .brand-logo-app {width:29px;height:29px;flex-basis:29px;}
  #app .topbar:not(.hidden) .brand-text b {font-size:10px;letter-spacing:0;}
  #app .topbar-greeting strong {font-size:10px;}
  #app .topbar-greeting small {font-size:8px;max-width:110px;}
}
/* Portal por equipamento: fotos privadas e formulário acessível. */
.protectedPortal{max-width:960px;margin:0 auto;padding:20px;overflow-wrap:anywhere}
.protectedPortal p{white-space:pre-wrap}
.protectedPortal input{max-width:100%;box-sizing:border-box}
.protectedPortal button{min-height:44px;cursor:pointer}
.protectedPortal button:focus-visible{outline:3px solid #e2a832;outline-offset:3px}
.protectedPortal article{margin:24px 0;padding:16px;border:1px solid #cbd5df;border-radius:12px}
.protectedPhotoGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.protectedPhotoGrid figure{margin:0;min-width:0}
.protectedPhotoGrid img{width:100%;max-height:320px;object-fit:contain}
.protectedPhotoGrid button{width:100%;background:transparent;border:1px solid #cbd5df;border-radius:8px}
.protectedPhotoNotice{padding:12px;background:#edf4f8;color:#163d59;border-radius:8px}
.protectedPortal dialog{max-width:90vw;max-height:90vh}
.protectedPortal dialog img{display:block;max-width:100%;max-height:75vh;object-fit:contain}
@media(max-width:480px){.protectedPortal{padding:12px}.protectedPhotoGrid{grid-template-columns:1fr}.protectedPortal article{padding:12px}}
.managementArchiveButton { margin: 16px; padding: 10px 16px; max-width: calc(100% - 32px); }
.managementArchiveButton[hidden] { display: none; }
