/* SmartEnvios APK: Android owns system-bar insets; the web fills only its safe content area. */
html.smartenvios-native-android,
html.smartenvios-native-android body,
html.smartenvios-native-android #app{
  width:100%;
  height:100%;
  min-height:100%;
  margin:0;
  overflow:hidden;
  background:#f6f9fd;
}

html.smartenvios-native-android .mobile-stage{
  display:block;
  width:100%;
  height:100%;
  min-height:100dvh;
  padding:0;
  overflow:hidden;
  background:#f6f9fd;
}

html.smartenvios-native-android .phone{
  box-sizing:border-box;
  width:100%;
  max-width:none;
  height:100%;
  min-height:100dvh;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
}

html.smartenvios-native-android .phone::before,
html.smartenvios-native-android .m-status{
  display:none!important;
}

html.smartenvios-native-android .envios-mobile{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden;
}

html.smartenvios-native-android .envios-mobile *,
html.smartenvios-native-android .envios-mobile *::before,
html.smartenvios-native-android .envios-mobile *::after{
  box-sizing:border-box;
}

html.smartenvios-native-android .envios-mobile .m-head{
  flex:0 0 auto;
  min-height:58px;
  padding:8px 14px;
  gap:10px;
  background:#fff;
}

html.smartenvios-native-android .envios-mobile .m-head .app-mobile-brand{
  min-width:0;
  overflow:hidden;
}

html.smartenvios-native-android .envios-mobile .m-head .app-head-logo{
  flex:0 0 42px;
  width:42px;
  height:42px;
}

html.smartenvios-native-android .envios-mobile .m-head .profile-avatar{
  flex:0 0 42px;
  width:42px;
  height:42px;
}

html.smartenvios-native-android .envios-mobile .m-head-actions{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:8px;
}

html.smartenvios-native-android .envios-mobile .mobile-notification-btn{
  display:grid;
  flex:0 0 42px;
  width:42px;
  height:42px;
  padding:0;
  place-items:center;
  border:1px solid #c9d9eb;
  border-radius:50%;
  background:#f3f7fc;
  color:#0f5fba;
}

html.smartenvios-native-android .envios-mobile .mobile-notification-btn svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

html.smartenvios-native-android .envios-mobile .m-content{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  min-height:0;
  padding:14px 14px 16px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
}

html.smartenvios-native-android .envios-mobile .m-content.mobile-auth{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:24px clamp(18px,6vw,32px);
}

html.smartenvios-native-android .envios-mobile .m-nav{
  position:relative;
  inset:auto;
  flex:0 0 auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:100%;
  height:auto;
  min-height:72px;
  padding:5px 6px 7px;
  overflow:hidden;
  background:#fff;
  margin-top:auto;
  border-top:1px solid #d8e3f1;
  z-index:5;
}

html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action{
  padding:13px;
  border:0;
  color:#fff;
  box-shadow:0 8px 20px #063f8d2e;
}

html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(1){background:linear-gradient(145deg,#075fc8,#08488e)}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(2){background:linear-gradient(145deg,#1479d5,#0759b8)}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(3){background:linear-gradient(145deg,#0b6ba8,#064d82)}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(4){background:linear-gradient(145deg,#2b70c9,#164b92)}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action span,
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(n) span{
  width:50px;
  height:50px;
  background:#ffffff29;
  color:#fff;
}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action svg{width:31px;height:31px}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action b{font-size:15px;color:#fff}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action small{color:#eef6ff;font-size:10px;line-height:1.28}

html.smartenvios-native-android .envios-mobile .nav-btn{
  width:100%;
  min-width:0;
  min-height:58px;
  padding:4px 2px;
  overflow:hidden;
  line-height:1.15;
  text-overflow:ellipsis;
}

html.smartenvios-native-android .envios-mobile .nav-btn span{
  display:grid;
  width:30px;
  height:30px;
  margin:0 auto 2px;
  place-items:center;
}

html.smartenvios-native-android .envios-mobile .nav-btn svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

html.smartenvios-native-android .envios-mobile .m-content > .delivery-type{
  min-height:0;
  padding:18px 16px;
  border-radius:18px;
}

html.smartenvios-native-android .envios-mobile .m-content.envios-home-content{
  display:block;
  overflow:hidden;
  padding:14px;
}

html.smartenvios-native-android .se-mobile-home{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:12px;
  width:100%;
  height:100%;
  min-height:0;
}

html.smartenvios-native-android .se-mobile-home-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  padding:2px 2px 0;
}

html.smartenvios-native-android .se-mobile-home-heading h1{
  margin:2px 0 0;
  color:#102f58;
  font-size:25px;
  line-height:1.05;
}

html.smartenvios-native-android .se-mobile-home-heading p{
  max-width:48%;
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
  text-align:right;
}

html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:10px;
  min-height:0;
  margin:0;
}

html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action{
  display:grid;
  grid-template-rows:auto auto 1fr;
  align-content:start;
  gap:7px;
  width:100%;
  min-width:0;
  min-height:0;
  padding:14px;
  border:1px solid #d5e1ef;
  border-radius:16px;
  background:#fff;
  color:#143b6b;
  box-shadow:0 5px 16px #123b6810;
  text-align:left;
}

html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action span{
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  border-radius:11px;
  background:#e8f2ff;
  color:#075fc8;
}

html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(2) span{background:#e8f2ff;color:#075fc8}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(3) span{background:#e5f8f2;color:#087a58}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(4) span{background:#fff7dc;color:#a66600}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action svg{width:23px;height:23px}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action b{font-size:14px;line-height:1.18}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action small{align-self:end;color:#64748b;font-size:10px;line-height:1.3}

html.smartenvios-native-android .se-mobile-home-summary{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:62px;
  padding:10px 13px;
  border:1px solid #cbdbea;
  border-radius:14px;
  background:#f4f8fd;
  color:#143b6b;
  text-align:left;
}

html.smartenvios-native-android .se-mobile-home-summary span{display:grid;gap:1px}
html.smartenvios-native-android .se-mobile-home-summary small{color:#64748b;font-size:9px;text-transform:uppercase;letter-spacing:.04em}
html.smartenvios-native-android .se-mobile-home-summary b{font-size:20px}
html.smartenvios-native-android .se-mobile-home-summary strong{color:#075fc8;font-size:11px;white-space:nowrap}
html.smartenvios-native-android .se-mobile-home-summary i{font-size:18px;font-style:normal;vertical-align:-1px}

@media (max-height:650px){
  html.smartenvios-native-android .se-mobile-home{gap:8px}
  html.smartenvios-native-android .se-mobile-home-heading p{display:none}
  html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions{gap:7px}
  html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action{gap:4px;padding:10px}
  html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action span{width:32px;height:32px}
  html.smartenvios-native-android .se-mobile-home-summary{min-height:54px;padding-block:7px}
}

html.smartenvios-native-android .envios-mobile :is(button,.btn,.icon-btn,.profile-avatar,input,select,textarea){
  max-width:100%;
}

html.smartenvios-native-android .envios-mobile :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  width:100%;
  min-width:0;
  font-size:16px;
}

html.smartenvios-native-android .envios-mobile .android-login-remember{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  align-items:start;
  justify-content:start;
  width:100%;
  gap:10px;
}

html.smartenvios-native-android .envios-mobile .android-login-remember input{
  width:22px!important;
  height:22px;
  min-height:22px;
  margin:0;
}

html.smartenvios-native-android .envios-mobile :is(.card,.record,.panel,.field,.table-wrap,.envios-photo-row,.envios-label-5xl){
  max-width:100%;
  min-width:0;
}

html.smartenvios-native-android .envios-mobile :is(.actions,.kpis,.form-grid,.two,.grid-2){
  grid-template-columns:minmax(0,1fr);
}

html.smartenvios-native-android .envios-mobile :is(.record-top,.section-title,.btn-row,.envios-provider-label){
  min-width:0;
  flex-wrap:wrap;
}

html.smartenvios-native-android .envios-mobile :is(h1,h2,h3,p,small,b,strong,label,.sub){
  overflow-wrap:anywhere;
}

html.smartenvios-native-android #smart-mobile-ready{
  --brand-color:#0f3d91;
  background:radial-gradient(circle at 50% 40%,#2468c9 0,#0f3d91 48%,#08265e 100%);
}

html.smartenvios-native-android #smart-mobile-ready img{
  width:128px;
  height:128px;
  object-fit:contain;
  border-radius:30px;
  filter:drop-shadow(0 18px 28px #04265c52);
}

html.smartenvios-native-android #suite-launch-presentation .suite-launch-brand img{
  width:128px;
  height:128px;
}

html.smartenvios-native-android .envios-mobile .envios-photo-row{
  grid-template-columns:56px minmax(0,1fr);
}

html.smartenvios-native-android .envios-mobile .envios-photo-actions{
  grid-column:1 / -1;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

html.smartenvios-native-android .envios-attachment-backdrop{
  padding:12px;
}

html.smartenvios-native-android .envios-attachment-modal{
  width:100%;
  max-width:580px;
  max-height:calc(100dvh - 24px);
  padding:18px;
  overflow:auto;
}

html.smartenvios-native-android .envios-dropzone{
  width:100%;
  min-height:180px;
}

@media (max-width:360px){
  html.smartenvios-native-android .envios-mobile .m-head{padding-inline:12px}
  html.smartenvios-native-android .envios-mobile .m-content{padding:14px 12px 18px}
  html.smartenvios-native-android .envios-mobile .nav-btn{font-size:9px}
  html.smartenvios-native-android .envios-mobile .nav-btn span{font-size:19px}
}

@media (orientation:landscape) and (max-height:520px){
  html.smartenvios-native-android .envios-mobile .m-head{min-height:52px;padding-block:6px}
  html.smartenvios-native-android .envios-mobile .m-nav{min-height:58px;padding-block:3px}
  html.smartenvios-native-android .envios-mobile .nav-btn{min-height:50px}
  html.smartenvios-native-android .envios-mobile .m-content.mobile-auth{justify-content:flex-start}
}

/* SmartEnvios 1.41: tarjetas de inicio completas y navegación inferior simplificada. */
html.smartenvios-native-android .envios-mobile .m-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action{padding:13px;border:0;color:#fff;box-shadow:0 8px 20px #063f8d2e}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(1){background:linear-gradient(145deg,#075fc8,#08488e)}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(2){background:linear-gradient(145deg,#1479d5,#0759b8)}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(3){background:linear-gradient(145deg,#0b6ba8,#064d82)}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(4){background:linear-gradient(145deg,#2b70c9,#164b92)}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action span,
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action:nth-child(n) span{width:50px;height:50px;background:#ffffff29;color:#fff}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action svg{width:31px;height:31px}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action b{font-size:15px;color:#fff}
html.smartenvios-native-android .se-mobile-home .se-v5-mobile-actions .action small{color:#eef6ff;font-size:10px;line-height:1.28}
