*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{
  --green:#009640;
  --green-dark:#007d35;
  --green-soft:#e8f7ee;
  --text:#1f2933;
  --muted:#737373;
  --input:#e9e9e9;
  --bg:#ffffff;
  --line:#e4e4e4;
  --shadow:0 14px 35px rgba(31,45,61,.08);
}
html,body{
  width:100%;
  min-height:100%;
  margin:0;
  background:#fff;
  font-family:'Source Sans Pro', Arial, Helvetica, sans-serif;
  color:var(--text);
  touch-action:manipulation;
  -webkit-text-size-adjust:100%;
  overscroll-behavior:none;
}
body{
  overflow-x:hidden;
}
button,input,select,textarea{
  font-family:'Source Sans Pro', Arial, Helvetica, sans-serif;
}
input,textarea,select{font-size:16px}
.app{
  width:100%;
  max-width:620px;
  min-height:100vh;
  margin:0 auto;
  background:#fff;
  position:relative;
}
.loginPage{
  min-height:100vh;
  background:#fff;
  position:relative;
  overflow:hidden;
  padding:42px 13px 86px;
}
.loginBg{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:500px;
  background:url('../images/background_linhas.png') top center no-repeat;
  opacity:1;
  z-index:0;
  pointer-events:none;
}
.loginContent{
  position:relative;
  z-index:1;
}
.loginLogo{
  width:100%;
  display:flex;
  justify-content:center;
  margin-top:80px;
  margin-bottom:80px;
}
.loginLogo img{
  width:460px;
  max-width:86%;
  height:auto;
  display:block;
}
.loginForm{
  width:100%;
}
.loginInput{
  width:100%;
  height:53px;
  background:var(--input);
  border:0;
  border-radius:10px;
  padding:0 12px;
  outline:none;
  color:#333;
  margin-bottom:14px;
  font-size:16px;
}
.loginInput::placeholder{
  color:#555;
}
.loginBtn{
  width:100%;
  height:54px;
  background:var(--green);
  color:#fff;
  border:0;
  border-radius:10px;
  font-weight:700;
  font-size:22px;
  cursor:pointer;
}
.loginBtn:active{
  background:var(--green-dark);
  transform:scale(.995);
}
.loginFooter{
  position:absolute;
  left:13px;
  right:13px;
  bottom:24px;
  z-index:2;
  text-align:center;
  color:#737373;
  font-size:16px;
  line-height:1.45;
}
.loginFooter a{
  color:#737373;
}
.loginFooterLogo{
  display:block;
  margin:8px auto 0;
  max-width:205px;
  height:auto;
}
.apiConfigBox{
  margin-top:18px;
  background:rgba(255,255,255,.92);
  border:1px solid #d6e2ec;
  border-radius:14px;
  padding:16px 14px 14px;
  box-shadow:0 8px 22px rgba(13,92,151,.08);
}

.apiConfigBox h1{
  font-size:22px;
  line-height:1.15;
  margin:0 0 8px;
  color:#152d3f;
  font-weight:700;
  letter-spacing:-.2px;
}

.apiConfigBox p{
  font-size:13px;
  line-height:1.45;
  color:#5f7182;
  margin:0 0 15px;
}

.configField{
  width:100%;
  margin-bottom:12px;
}

.configField label{
  display:block;
  width:100%;
  font-size:15px;
  line-height:1.25;
  color:#263846;
  font-weight:600;
  margin:0 0 6px;
}

.configField input,
.configInput{
  width:100%;
  height:44px;
  background:#fff;
  border:1px solid #d8dfe5;
  border-radius:10px;
  padding:0 12px;
  outline:none;
  color:#333;
  font-size:16px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.04);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.configField input:focus,
.configInput:focus{
  border-color:#8fb8d8;
  box-shadow:0 0 0 3px rgba(13,92,151,.10), inset 0 1px 2px rgba(0,0,0,.04);
  background:#fff;
}

.configField input::placeholder,
.configInput::placeholder{
  color:#8a99a8;
}

.configBtn{
  width:100%;
  height:49px;
  background:var(--green);
  color:#fff;
  border:0;
  border-radius:10px;
  font-weight:700;
  font-size:17px;
  box-shadow:0 7px 16px rgba(0,150,64,.22);
}

.configBtn:active{
  background:var(--green-dark);
  transform:scale(.995);
}
.configLink{
  display:block;
  text-align:center;
  margin-top:14px;
  color:#737373;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  background:#fff;
  padding:14px 16px;
  box-shadow:0 4px 16px rgba(0,0,0,.07);
}
.toprow{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logoSmall{font-size:22px;font-weight:700;color:#111}
.logoSmall b{color:var(--green)}
.userBox{text-align:right;font-size:11px;line-height:1.25;font-weight:700;color:#333}
.userBox span{display:block;color:var(--green);font-weight:700;margin-top:3px}
.content{padding:16px;background:#eef3f8;min-height:calc(100vh - 64px)}
.title{font-size:26px;font-weight:700;margin:0;color:#1e2c39;letter-spacing:-.4px}
.sub{font-size:13px;line-height:1.5;color:#708092;margin-top:6px}
.card{background:#fff;border:1px solid #dce5ee;border-radius:22px;padding:15px;box-shadow:var(--shadow);margin-bottom:12px}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:700}
.ok{background:#e9f8ef;color:#1f9d57}
.info{background:#e9f3fb;color:#0d5c97}
.wait{background:#fff6df;color:#c68a00}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.kpi{background:#fff;border:1px solid #dce5ee;border-radius:16px;padding:12px}
.kpi small{display:block;font-size:10px;text-transform:uppercase;font-weight:700;color:#7c8da0}
.kpi strong{display:block;margin-top:4px;font-size:22px;letter-spacing:-.4px}
.listItem{padding:12px;border:1px solid #dce5ee;border-radius:16px;background:#fff;margin-top:10px}
.listItem strong{display:block;font-size:14px}
.listItem span{display:block;color:#708092;font-size:12px;margin-top:4px;line-height:1.45}
.footer{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:620px;height:74px;background:#fff;display:grid;grid-template-columns:repeat(5,1fr);z-index:40;box-shadow:0 -8px 24px rgba(0,0,0,.11)}
.navbtn{border:0;background:none;color:#747474;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.navbtn .ico{font-size:20px;line-height:1;color:var(--green)}
.navbtn .txt{font-size:11px;font-weight:700}
.navbtn.active .ico,.navbtn.active .txt{color:var(--green-dark)}
.loading{display:flex;align-items:center;justify-content:center;min-height:100vh;color:var(--green);font-size:15px;font-weight:700;background:#fff}
#toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%) translateY(20px);max-width:420px;width:calc(100% - 32px);background:#1f2937;color:#fff;padding:13px 14px;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.25);font-size:13px;font-weight:700;z-index:100;opacity:0;pointer-events:none;transition:.22s}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.hidden{display:none!important}
@media (max-height:760px){
  .loginPage{padding-top:28px}
  .loginLogo{margin-bottom:70px}
  .loginLogo img{max-width:78%}
  .loginFooter{font-size:13px;bottom:14px}
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea{
  background:#fff;
  border:1px solid #d8dfe5;
  border-radius:10px;
  color:#333;
  outline:none;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.04);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus{
  border-color:#8fb8d8;
  box-shadow:0 0 0 3px rgba(13,92,151,.10), inset 0 1px 2px rgba(0,0,0,.04);
}
.pwaStatusBox{
  margin-top:12px;
  background:rgba(255,255,255,.92);
  border:1px solid #d6e2ec;
  border-radius:14px;
  padding:13px;
  box-shadow:0 8px 22px rgba(13,92,151,.06);
}
.pwaStatusBoxInternal{
  margin-top:14px;
  margin-bottom:14px;
}
.pwaStatusTitle{
  font-size:14px;
  font-weight:700;
  color:#152d3f;
  margin-bottom:10px;
}
.pwaStatusGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.pwaStatusItem{
  background:#f7fafc;
  border:1px solid #e1e8ef;
  border-radius:11px;
  padding:9px 10px;
  min-height:58px;
}
.pwaStatusItem span{
  display:block;
  font-size:11px;
  line-height:1.1;
  color:#708092;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.2px;
}
.pwaStatusItem strong{
  display:block;
  margin-top:5px;
  font-size:14px;
  line-height:1.2;
  color:#263846;
  font-weight:700;
}
.pwaStatusItem strong.okText{color:#009640}
.pwaStatusItem strong.waitText{color:#c68a00}
.pwaStatusItem strong.errorText{color:#c0392b}
@media (max-width:380px){
  .pwaStatusGrid{grid-template-columns:1fr}
}
.apiFooterUrl{
  width:100%;
  max-width:100%;
  margin-bottom:8px;
  padding:7px 9px;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(216,223,229,.9);
  border-radius:10px;
  color:#5f7182;
  font-size:12px;
  line-height:1.25;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.apiFooterUrl span{
  color:#263846;
  font-weight:700;
}
.apiUrlCard{
  margin:0 0 14px;
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:16px;
  padding:12px;
  box-shadow:var(--shadow);
}
.apiUrlCard span{
  display:block;
  font-size:10px;
  text-transform:uppercase;
  font-weight:700;
  color:#7c8da0;
  letter-spacing:.2px;
}
.apiUrlCard strong{
  display:block;
  margin-top:4px;
  color:#263846;
  font-size:13px;
  line-height:1.35;
  word-break:break-all;
}
.loginBtn:disabled,
.configBtn:disabled{
  opacity:.72;
  cursor:wait;
}


.menuSearchMock{
  width:100%;
  min-height:44px;
  margin-top:12px;
  border:1px solid #d8dfe5;
  border-radius:10px;
  background:#fff;
  color:#8a99a8;
  display:flex;
  align-items:center;
  padding:0 12px;
  font-size:16px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.04);
}

.content{
  padding-bottom:96px;
}

.footer{
  grid-template-columns:repeat(5,1fr);
}

.navbtn .ico{
  font-size:19px;
}

.navbtn .txt{
  font-size:10px;
}

@media (max-width:360px){
  .navbtn .txt{font-size:9px}
  .navbtn .ico{font-size:18px}
}


.appTopbar{
  background:#fff;
  padding:10px 14px;
}

.appTopbar .toprow{
  min-height:44px;
}

.topMenuBtn{
  width:42px;
  height:42px;
  border:0;
  background:#f5f8f6;
  border-radius:13px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex:0 0 auto;
}

.topMenuBtn span{
  width:20px;
  height:2px;
  background:#009640;
  border-radius:99px;
  display:block;
}

.topLogoImg{
  height:36px;
  max-width:215px;
  object-fit:contain;
  display:block;
}

.topRightStatus{
  min-width:54px;
  display:flex;
  justify-content:flex-end;
}

.topRightStatus span{
  display:inline-flex;
  height:28px;
  align-items:center;
  padding:0 9px;
  background:#e8f7ee;
  color:#009640;
  border-radius:99px;
  font-size:11px;
  font-weight:700;
}

.sideMenuOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.32);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
  z-index:120;
}

.sideMenuPanel{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:82%;
  max-width:360px;
  background:#fff;
  z-index:121;
  transform:translateX(-104%);
  transition:transform .26s ease;
  box-shadow:18px 0 35px rgba(0,0,0,.18);
  padding:18px 16px 24px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.sideMenuOpen .sideMenuOverlay{
  opacity:1;
  pointer-events:auto;
}

.sideMenuOpen .sideMenuPanel{
  transform:translateX(0);
}

.sideMenuHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:16px;
  border-bottom:1px solid #e6edf2;
}

.sideMenuHeader img{
  height:38px;
  max-width:220px;
  object-fit:contain;
}

.sideMenuClose{
  width:38px;
  height:38px;
  border:0;
  border-radius:12px;
  background:#f4f7fa;
  color:#263846;
  font-size:28px;
  line-height:1;
}

.sideMenuUser{
  padding:16px 0 12px;
}

.sideMenuUser strong{
  display:block;
  font-size:18px;
  color:#152d3f;
  line-height:1.25;
}

.sideMenuUser span{
  display:block;
  margin-top:4px;
  color:#708092;
  font-size:13px;
  line-height:1.35;
}

.sideMenuStatus{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-bottom:10px;
}

.sideMenuStatus div{
  background:#f7fafc;
  border:1px solid #e1e8ef;
  border-radius:13px;
  padding:10px;
}

.sideMenuStatus span,
.sideMenuApi span{
  display:block;
  font-size:10px;
  text-transform:uppercase;
  font-weight:700;
  color:#7c8da0;
  letter-spacing:.2px;
}

.sideMenuStatus strong{
  display:block;
  margin-top:4px;
  color:#009640;
  font-size:15px;
}

.sideMenuApi{
  background:#f7fafc;
  border:1px solid #e1e8ef;
  border-radius:13px;
  padding:10px;
  margin-bottom:16px;
}

.sideMenuApi strong{
  display:block;
  margin-top:4px;
  color:#263846;
  font-size:12px;
  line-height:1.35;
  word-break:break-all;
}

.sideMenuNav{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.sideMenuNav button{
  width:100%;
  min-height:52px;
  border:1px solid #e1e8ef;
  background:#fff;
  border-radius:15px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 13px;
  text-align:left;
  color:#263846;
  font-weight:700;
  box-shadow:0 6px 16px rgba(13,92,151,.04);
}

.sideMenuNav button i{
  width:34px;
  height:34px;
  border-radius:12px;
  background:#e8f7ee;
  color:#009640;
  display:flex;
  align-items:center;
  justify-content:center;
  font-style:normal;
  font-size:18px;
  flex:0 0 auto;
}

.sideMenuNav button span{
  flex:1;
  font-size:15px;
}

.syncHeroCard{
  margin-top:14px;
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:20px;
  padding:15px;
  box-shadow:var(--shadow);
  display:flex;
  gap:13px;
  align-items:flex-start;
}

.syncHeroIcon{
  width:48px;
  height:48px;
  border-radius:16px;
  background:#e8f7ee;
  color:#009640;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:700;
  flex:0 0 auto;
}

.syncHeroCard strong{
  display:block;
  color:#152d3f;
  font-size:16px;
  line-height:1.25;
}

.syncHeroCard span{
  display:block;
  margin-top:4px;
  color:#708092;
  font-size:13px;
  line-height:1.45;
}

.syncGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:12px 0;
}

.syncBox{
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:17px;
  padding:13px;
  box-shadow:var(--shadow);
}

.syncBox small{
  display:block;
  color:#7c8da0;
  text-transform:uppercase;
  font-weight:700;
  font-size:10px;
}

.syncBox strong{
  display:block;
  margin-top:4px;
  color:#152d3f;
  font-size:26px;
  line-height:1;
}

.syncBox span{
  display:block;
  margin-top:4px;
  color:#708092;
  font-size:12px;
}

@media (max-width:380px){
  .topLogoImg{
    max-width:180px;
    height:32px;
  }

  .topRightStatus span{
    font-size:10px;
    padding:0 7px;
  }

  .sideMenuPanel{
    width:86%;
  }
}


/* Correções menu/topo v2 */
.appTopbar{
  z-index:60;
}

.topMenuBtn{
  cursor:pointer;
}

.content{
  padding-bottom:104px;
}

#sideMenuSlot{
  position:relative;
  z-index:120;
}

.sideMenuPanel,
.sideMenuOverlay{
  will-change:transform, opacity;
}

.footer{
  z-index:80;
}

/* Em telas grandes, mantém a prévia com largura mobile/tablet sem estourar layout */
@media (min-width:700px){
  body{
    background:#eef3f8;
  }
  .app{
    max-width:460px;
    box-shadow:0 0 0 1px rgba(0,0,0,.05);
  }
  .footer{
    max-width:460px;
  }
}


/* Tela de sincronização de dados */
.syncMainCard{
  margin-top:14px;
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:20px;
  padding:15px;
  box-shadow:var(--shadow);
}

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

.syncMainHeader strong{
  display:block;
  font-size:17px;
  color:#152d3f;
  line-height:1.25;
}

.syncMainHeader span{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:#708092;
  line-height:1.4;
}

.syncTotalProgress{
  margin:14px 0;
}

.syncProgressInfo{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px;
}

.syncProgressInfo span{
  font-size:12px;
  color:#708092;
  font-weight:700;
}

.syncProgressInfo strong{
  color:#009640;
  font-size:14px;
}

.syncProgressBar{
  width:100%;
  height:9px;
  background:#eef3f8;
  border-radius:99px;
  overflow:hidden;
}

.syncProgressBar i{
  display:block;
  width:0%;
  height:100%;
  background:linear-gradient(90deg,#009640,#20b15a);
  border-radius:99px;
  transition:width .25s ease;
}

.syncModuleList{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:12px;
}

.syncModuleCard{
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:18px;
  padding:14px;
  box-shadow:var(--shadow);
}

.syncModuleCard.syncRunning{
  border-color:#8fb8d8;
}

.syncModuleCard.syncDone{
  border-color:#bfe6cd;
  background:#fbfffc;
}

.syncModuleCard.syncError{
  border-color:#f2b9b9;
}

.syncModuleTop{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-bottom:12px;
}

.syncModuleIcon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:#e8f7ee;
  color:#009640;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  flex:0 0 auto;
}

.syncModuleTop strong{
  display:block;
  color:#152d3f;
  font-size:16px;
  line-height:1.25;
}

.syncModuleTop span{
  display:block;
  margin-top:3px;
  color:#708092;
  font-size:12px;
  line-height:1.35;
}

.syncModuleFooter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:9px;
}

.syncModuleFooter span{
  font-size:13px;
  color:#263846;
  font-weight:700;
}

.syncModuleFooter small{
  font-size:11px;
  color:#708092;
  text-align:right;
}

.syncLogBox{
  margin:0 0 14px;
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:18px;
  padding:14px;
  box-shadow:var(--shadow);
}

.syncLog{
  margin-top:10px;
  max-height:180px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.syncLogLine{
  padding:8px 0;
  border-bottom:1px solid #eef3f8;
  font-size:12px;
  line-height:1.35;
  color:#526273;
}

.syncLogLine:first-child{
  color:#263846;
  font-weight:700;
}

.configBtn:disabled{
  opacity:.7;
  cursor:wait;
}


/* Clientes e Produtos - listas locais */
.localListStats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:14px 0 12px;
}

.localListStats div{
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:17px;
  padding:13px;
  box-shadow:var(--shadow);
}

.localListStats small{
  display:block;
  font-size:10px;
  text-transform:uppercase;
  font-weight:700;
  color:#7c8da0;
  letter-spacing:.2px;
}

.localListStats strong{
  display:block;
  margin-top:4px;
  color:#152d3f;
  font-size:25px;
  line-height:1;
}

.searchPanel{
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:18px;
  padding:12px;
  box-shadow:var(--shadow);
  margin-bottom:12px;
}

.searchInputWrap{
  display:flex;
  align-items:center;
  gap:8px;
  background:#f7fafc;
  border:1px solid #d8dfe5;
  border-radius:13px;
  padding:0 11px;
  height:47px;
}

.searchInputWrap span{
  font-size:16px;
  color:#009640;
}

.searchInputWrap input{
  flex:1;
  width:100%;
  height:44px;
  border:0;
  background:transparent;
  outline:none;
  color:#263846;
  font-size:16px;
}

.searchHint{
  margin-top:8px;
  font-size:12px;
  color:#708092;
  line-height:1.35;
}

.localList{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.localItem{
  background:#fff;
  border:1px solid #dce5ee;
  border-radius:17px;
  padding:13px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}

.localItem:active{
  transform:scale(.995);
}

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

.localItemMain strong{
  display:block;
  color:#152d3f;
  font-size:15px;
  line-height:1.25;
  font-weight:700;
}

.localItemMain span{
  display:block;
  margin-top:4px;
  color:#708092;
  font-size:12px;
  line-height:1.35;
  word-break:break-word;
}

.localItemMeta{
  flex:0 0 auto;
  max-width:42%;
  text-align:right;
}

.localItemMeta span{
  display:block;
  color:#263846;
  font-size:12px;
  line-height:1.25;
  font-weight:700;
}

.localItemMeta small{
  display:block;
  margin-top:4px;
  color:#708092;
  font-size:11px;
  line-height:1.25;
}

.localItemMetaRight span{
  color:#009640;
  font-size:14px;
}

.loadMoreBox{
  margin:13px 0 14px;
}

.emptyLocalList{
  background:#fff;
  border:1px dashed #cfd9e3;
  border-radius:17px;
  padding:18px;
  text-align:center;
  color:#708092;
  font-size:13px;
  line-height:1.45;
}

.detailModal{
  position:fixed;
  inset:0;
  z-index:180;
  display:none;
}

.detailModal.open{
  display:block;
}

.detailOverlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.38);
}

.detailPanel{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100%;
  max-width:620px;
  max-height:88vh;
  background:#fff;
  border-radius:24px 24px 0 0;
  box-shadow:0 -18px 45px rgba(0,0,0,.18);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.detailHeader{
  padding:16px;
  border-bottom:1px solid #e6edf2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.detailHeader strong{
  display:block;
  color:#152d3f;
  font-size:17px;
  line-height:1.25;
  font-weight:700;
}

.detailHeader span{
  display:block;
  margin-top:4px;
  color:#708092;
  font-size:12px;
  line-height:1.35;
}

.detailHeader button{
  width:38px;
  height:38px;
  border:0;
  border-radius:12px;
  background:#f4f7fa;
  color:#263846;
  font-size:28px;
  line-height:1;
  flex:0 0 auto;
}

.detailBody{
  padding:14px 16px 26px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.detailSection{
  margin-bottom:15px;
}

.detailSection h3{
  margin:0 0 9px;
  color:#009640;
  font-size:13px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.3px;
  font-weight:700;
}

.detailGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.detailField{
  background:#f7fafc;
  border:1px solid #e1e8ef;
  border-radius:13px;
  padding:10px;
}

.detailField span{
  display:block;
  color:#7c8da0;
  font-size:10px;
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:.2px;
}

.detailField strong{
  display:block;
  margin-top:4px;
  color:#263846;
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  word-break:break-word;
}

@media (min-width:520px){
  .detailGrid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:380px){
  .localItem{
    flex-direction:column;
  }

  .localItemMeta{
    max-width:100%;
    text-align:left;
  }
}
