
/* PEKE360 SOCIAL SALES REFERENCE UI */

#page-social-sales-v3{
  display:none!important;
}

#page-social-sales-v3.active{
  position:fixed!important;
  inset:0!important;
  z-index:50000!important;
  display:block!important;
  width:100vw!important;
  height:100vh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#ffffff!important;
}

#page-social-sales-v3,
#page-social-sales-v3 *{
  box-sizing:border-box;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
}

#page-social-sales-v3 button,
#page-social-sales-v3 input,
#page-social-sales-v3 select{
  font:inherit;
}

.psocial-app{
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  overflow:hidden;
  background:#fff;
  color:#162236;
}


/* SIDEBAR */

.psocial-sidebar{
  height:100%;
  display:flex;
  flex-direction:column;
  padding:17px 10px 14px;
  background:
    linear-gradient(
      180deg,
      #052845 0%,
      #03223d 55%,
      #021d35 100%
    );
  color:#fff;
}

.psocial-brand{
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 7px 18px;
}

.psocial-logo{
  position:relative;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  background:
    conic-gradient(
      #2e9df4 0 25%,
      #1478d5 25% 50%,
      #20b6bf 50% 75%,
      transparent 75%
    );
}

.psocial-logo:after{
  content:'';
  position:absolute;
  inset:10px;
  border-radius:50%;
  background:#052845;
}

.psocial-brand strong{
  display:block;
  font-size:20px;
  line-height:1;
}

.psocial-brand small{
  display:block;
  margin-top:5px;
  color:#b6c8d8;
  font-size:10px;
}

.psocial-status{
  display:flex;
  align-items:center;
  gap:8px;
  margin:3px 10px 18px;
  color:#d9e8f2;
  font-size:10px;
}

.psocial-status span{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#20d25a;
}

.psocial-nav{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.psocial-nav button{
  position:relative;
  min-height:45px;
  display:grid;
  grid-template-columns:28px 1fr auto;
  align-items:center;
  gap:5px;
  padding:0 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#dae8f3;
  text-align:left;
  cursor:pointer;
}

.psocial-nav button:hover{
  background:rgba(255,255,255,.055);
}

.psocial-nav button.active{
  background:#103b61;
  color:#49a9ff;
}

.psocial-nav button span{
  font-size:11px;
}

.psocial-nav button b{
  min-width:23px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border-radius:9px;
  background:#157ff1;
  color:#fff;
  font-size:8px;
}

.psocial-nav button b.muted{
  background:#36546d;
}

.psocial-nav button em{
  position:absolute;
  right:8px;
  padding:4px 6px;
  border-radius:7px;
  background:#29475f;
  color:#d5e2ec;
  font-size:7px;
  font-style:normal;
}

.psico{
  position:relative;
  width:18px;
  height:18px;
  display:block;
  opacity:.9;
}

.psico:before,
.psico:after{
  content:'';
  position:absolute;
}

.psico.chat:before{
  inset:2px 1px 4px;
  border:1.5px solid currentColor;
  border-radius:5px;
}

.psico.chat:after{
  left:4px;
  bottom:1px;
  width:5px;
  height:5px;
  border-left:1.5px solid currentColor;
  transform:skew(-25deg);
}

.psico.box:before,
.psico.cube:before,
.psico.doc:before,
.psico.invoice:before,
.psico.chart:before,
.psico.gear:before{
  inset:2px;
  border:1.5px solid currentColor;
  border-radius:2px;
}

.psico.people:before{
  width:7px;
  height:7px;
  left:5px;
  top:1px;
  border:1.5px solid currentColor;
  border-radius:50%;
}

.psico.people:after{
  width:15px;
  height:8px;
  left:1px;
  bottom:0;
  border:1.5px solid currentColor;
  border-radius:8px 8px 3px 3px;
}

.psocial-standard-box{
  margin-top:auto;
  padding:12px;
  border:1px solid #355877;
  border-radius:9px;
  background:rgba(255,255,255,.025);
}

.psocial-standard-box strong{
  font-size:9px;
}

.psocial-standard-box p{
  margin:7px 0 10px;
  color:#cfdae5;
  font-size:8px;
  line-height:1.55;
}

.psocial-standard-box button{
  width:100%;
  min-height:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 9px;
  border:1px solid #476782;
  border-radius:6px;
  background:transparent;
  color:#fff;
  font-size:7.5px;
}

.psocial-agent{
  min-height:55px;
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:8px;
  padding:8px 7px 0;
}

.psocial-agent-avatar{
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#c98d64;
  font-size:9px;
  font-weight:700;
}

.psocial-agent strong{
  display:block;
  font-size:9px;
}

.psocial-agent small{
  color:#9cb2c5;
  font-size:7.5px;
}


/* MAIN */

.psocial-main{
  height:100%;
  min-width:0;
  display:grid;
  grid-template-rows:70px minmax(0,1fr);
  overflow:hidden;
}

.psocial-topbar{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 18px 0 25px;
  border-bottom:1px solid #e7edf3;
  background:#fff;
}

.psocial-title{
  display:flex;
  align-items:center;
  gap:12px;
}

.psocial-title-icon{
  position:relative;
  width:25px;
  height:25px;
}

.psocial-title-icon span{
  position:absolute;
  width:17px;
  height:14px;
  border-radius:4px;
  background:#1684ef;
}

.psocial-title-icon span:first-child{
  left:0;
  top:7px;
}

.psocial-title-icon span:last-child{
  right:0;
  top:2px;
  opacity:.72;
}

.psocial-title h1{
  margin:0;
  color:#172033;
  font-size:18px;
  font-weight:750;
}

.psocial-title p{
  margin:3px 0 0;
  color:#6f8094;
  font-size:9px;
}

.psocial-title p i{
  display:inline-flex;
  width:13px;
  height:13px;
  align-items:center;
  justify-content:center;
  margin-left:2px;
  border:1px solid #62758b;
  border-radius:50%;
  font-size:8px;
  font-style:normal;
}

.psocial-top-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.psocial-global-search{
  width:235px;
  height:37px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 11px;
  border:1px solid #e0e7ee;
  border-radius:8px;
  background:#fafbfd;
}

.psocial-global-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#425369;
  font-size:9px;
}

.ps-search-icon{
  position:relative;
  width:12px;
  height:12px;
  display:block;
  flex:0 0 12px;
  border:1.5px solid #7a8ba0;
  border-radius:50%;
}

.ps-search-icon:after{
  content:'';
  position:absolute;
  width:5px;
  height:1.5px;
  right:-4px;
  bottom:-2px;
  transform:rotate(45deg);
  background:#7a8ba0;
}

.psocial-notification{
  width:33px;
  height:33px;
  border:0;
  background:transparent;
}

.psocial-notification span{
  position:relative;
  width:12px;
  height:14px;
  display:block;
  margin:auto;
  border:1.5px solid #405269;
  border-radius:7px 7px 4px 4px;
}

.psocial-online{
  min-width:76px;
  height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:8px;
  background:#e8f9eb;
  color:#259348;
  font-size:9px;
  font-weight:650;
}

.psocial-online span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#28ca55;
}

.psocial-mode{
  height:34px;
  display:grid;
  grid-template-columns:125px 100px;
  padding:2px;
  border-radius:7px;
  background:#f1f4f8;
}

.psocial-mode button{
  border:0;
  border-radius:5px;
  background:transparent;
  color:#42536a;
  font-size:8.5px;
  font-weight:650;
}

.psocial-mode button.active{
  background:#1680ef;
  color:#fff;
}


/* WORKSPACE */

.psocial-workspace{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:
    20.5%
    23.8%
    32.1%
    23.6%;
  overflow:hidden;
}

.psocial-workspace > *{
  min-width:0;
  min-height:0;
  border-left:1px solid #e7edf3;
}

.psocial-workspace > *:first-child{
  border-left:0;
}


/* CONVERSATIONS */

.psocial-conversations{
  display:flex;
  flex-direction:column;
  background:#fff;
}

.psocial-section-head{
  height:56px;
  flex:0 0 56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 13px 0 16px;
}

.psocial-section-head strong{
  font-size:11px;
}

.psocial-section-head > div{
  display:flex;
  gap:3px;
}

.psocial-section-head button{
  width:29px;
  height:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:transparent;
}

.ps-more{
  color:#53657a;
  font-size:15px;
  letter-spacing:1px;
}

.psocial-conversation-filter{
  height:35px;
  flex:0 0 35px;
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 12px 7px;
  padding:0 9px;
  border:1px solid #dfe6ed;
  border-radius:6px;
}

.psocial-conversation-filter input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#697b90;
  font-size:9px;
}

.psocial-conversation-list{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:0 7px;
}

.psocial-conversation{
  min-height:68px;
  display:grid;
  grid-template-columns:37px 1fr 38px;
  align-items:center;
  gap:8px;
  padding:9px 7px;
  border:1px solid transparent;
  border-radius:7px;
  cursor:pointer;
}

.psocial-conversation:hover{
  background:#f8fbff;
}

.psocial-conversation.active{
  border-color:#82bdff;
  background:#eaf5ff;
}

.psocial-avatar{
  width:37px;
  height:37px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:linear-gradient(135deg,#446e8d,#78a7c4);
  color:#fff;
  font-size:9px;
  font-weight:800;
}

.psocial-conversation:nth-child(2n) .psocial-avatar{
  background:linear-gradient(135deg,#774a65,#ca799b);
}

.psocial-conversation:nth-child(3n) .psocial-avatar{
  background:linear-gradient(135deg,#4a7a5c,#82bd83);
}

.psocial-conversation-data{
  min-width:0;
}

.psocial-conversation-data strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#273446;
  font-size:9.5px;
}

.psocial-conversation-preview{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:4px;
  min-width:0;
}

.psocial-conversation-preview span:last-child{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#64758a;
  font-size:8px;
}

.ps-brand{
  width:14px;
  height:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 14px;
  border-radius:50%;
  color:#fff;
  font-size:6px;
  font-weight:850;
}

.ps-brand.whatsapp,
.ps-flow-brand.whatsapp{
  background:#20c763;
}

.ps-brand.instagram,
.ps-flow-brand.instagram{
  background:linear-gradient(135deg,#7547ce,#e43884,#efa13d);
}

.ps-brand.messenger,
.ps-flow-brand.messenger{
  background:#1d84eb;
}

.psocial-conversation-side{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:7px;
}

.psocial-conversation-side small{
  color:#718196;
  font-size:7px;
  white-space:nowrap;
}

.psocial-unread{
  min-width:17px;
  height:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 4px;
  border-radius:50%;
  background:#22c663;
  color:#fff;
  font-size:7px;
  font-weight:800;
}

.psocial-more-conversations{
  flex:0 0 48px;
  padding:7px 12px 10px;
}

.psocial-more-conversations button{
  width:100%;
  height:31px;
  border:1px solid #dfe6ed;
  border-radius:6px;
  background:#fff;
  color:#405167;
  font-size:8px;
}


/* CHAT */

.psocial-chat{
  display:flex;
  flex-direction:column;
  background:#fbf8f2;
}

.psocial-chat-head{
  height:63px;
  flex:0 0 63px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  border-bottom:1px solid #e7edf3;
  background:#fff;
}

.psocial-chat-person{
  flex:1;
  min-width:0;
}

.psocial-chat-person > div{
  display:flex;
  align-items:center;
  gap:5px;
}

.psocial-chat-person strong{
  font-size:10.5px;
}

.psocial-chat-person small{
  display:block;
  margin-top:3px;
  color:#65768b;
  font-size:8px;
}

.psocial-chat-buttons{
  display:flex;
  gap:4px;
}

.psocial-chat-buttons button{
  width:29px;
  height:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e1e7ed;
  border-radius:50%;
  background:#fff;
}

.ps-head-user{
  position:relative;
  width:13px;
  height:13px;
}

.ps-head-user:before{
  content:'';
  position:absolute;
  left:4px;
  top:0;
  width:5px;
  height:5px;
  border:1.3px solid #54667c;
  border-radius:50%;
}

.ps-head-user:after{
  content:'';
  position:absolute;
  left:1px;
  bottom:0;
  width:11px;
  height:6px;
  border:1.3px solid #54667c;
  border-radius:7px 7px 3px 3px;
}

.ps-head-tag{
  width:10px;
  height:10px;
  display:block;
  transform:rotate(45deg);
  border:1.3px solid #54667c;
  border-radius:2px;
}

.psocial-message-list{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:18px 13px;
  background:
    linear-gradient(rgba(251,248,242,.91),rgba(251,248,242,.91)),
    radial-gradient(circle at 2px 2px,#ddd7ce 1px,transparent 1px);
  background-size:auto,18px 18px;
}

.psocial-message-row{
  display:flex;
  margin-bottom:9px;
}

.psocial-message-row.outgoing{
  justify-content:flex-end;
}

.psocial-message{
  max-width:77%;
  padding:9px 11px 6px;
  border-radius:8px;
  background:#fff;
  box-shadow:0 1px 2px rgba(10,20,35,.04);
  color:#273446;
  font-size:9px;
  line-height:1.5;
}

.psocial-message-row.outgoing .psocial-message{
  background:#dff8d7;
}

.psocial-message-time{
  margin-top:4px;
  text-align:right;
  color:#8390a0;
  font-size:6.7px;
}

.psocial-chat-product{
  width:92%;
  margin:8px 0 10px auto;
  padding:8px;
  border:1px solid #dfe8df;
  border-radius:8px;
  background:#fff;
}

.psocial-chat-product-main{
  display:grid;
  grid-template-columns:105px 1fr;
  gap:9px;
}

.psocial-chat-product-image{
  height:112px;
  overflow:hidden;
  border-radius:6px;
  background:#eef2f5;
}

.psocial-chat-product-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.psocial-chat-product-info{
  padding-top:2px;
}

.psocial-chat-product-info strong{
  display:block;
  margin-bottom:11px;
  font-size:9px;
}

.psocial-chat-product-info p{
  margin:0 0 5px;
  color:#607086;
  font-size:8px;
}

.psocial-chat-product-info .price{
  color:#1e293b;
  font-size:11px;
  font-weight:800;
}

.psocial-chat-product-buttons{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:7px;
  margin-top:8px;
}

.psocial-chat-product-buttons button{
  height:31px;
  border:1px solid #dce5ed;
  border-radius:5px;
  background:#fff;
  color:#167be7;
  font-size:7.5px;
  font-weight:650;
}

.psocial-chat-actions{
  flex:0 0 49px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:6px;
  padding:7px 10px;
  border-top:1px solid #e4eaf0;
  background:#fff;
}

.psocial-chat-actions button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid #dfe6ed;
  border-radius:5px;
  background:#fff;
  color:#405167;
  font-size:7.5px;
}

.psocial-chat-actions button span{
  color:#167be7;
}

.psocial-composer{
  flex:0 0 50px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:6px 10px;
  border-top:1px solid #e7edf3;
  background:#fff;
}

.psocial-composer > button:not(.send){
  width:27px;
  height:27px;
  border:0;
  background:transparent;
  color:#708096;
}

.psocial-composer input{
  flex:1;
  height:34px;
  padding:0 12px;
  border:1px solid #dfe6ed;
  border-radius:18px;
  background:#fbfcfd;
  font-size:8px;
}

.psocial-composer .send{
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#24bf59;
  color:#fff;
}


/* CATALOG */

.psocial-catalog{
  display:flex;
  flex-direction:column;
  background:#fff;
}

.psocial-catalog-title{
  flex:0 0 50px;
  display:flex;
  align-items:center;
  padding:0 16px;
}

.psocial-catalog-title strong{
  font-size:11px;
}

.psocial-catalog-searchbar{
  flex:0 0 42px;
  display:grid;
  grid-template-columns:1fr 77px;
  gap:7px;
  padding:0 14px 6px;
}

.psocial-catalog-searchbar > div{
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 9px;
  border:1px solid #dfe6ed;
  border-radius:6px;
}

.psocial-catalog-searchbar input{
  width:100%;
  border:0;
  outline:0;
  font-size:8.5px;
}

.psocial-catalog-searchbar > div button{
  border:0;
  background:transparent;
  color:#8290a0;
}

.psocial-filter{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid #dfe6ed;
  border-radius:6px;
  background:#fff;
  color:#405167;
  font-size:8px;
}

.psocial-filter span{
  width:11px;
  height:8px;
  display:block;
  border-top:1.5px solid #1680ef;
  border-bottom:1.5px solid #1680ef;
}

.psocial-categories{
  flex:0 0 35px;
  display:flex;
  gap:5px;
  padding:0 14px 8px;
}

.psocial-categories button{
  min-width:58px;
  height:25px;
  padding:0 10px;
  border:1px solid #dfe6ed;
  border-radius:14px;
  background:#fff;
  color:#63748a;
  font-size:7.5px;
}

.psocial-categories button.active{
  border-color:#1680ef;
  background:#1680ef;
  color:#fff;
}

.psocial-product-grid{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:minmax(215px,1fr);
  gap:9px;
  padding:0 14px;
  overflow:auto;
}

.psocial-product-card{
  overflow:hidden;
  border:1px solid #dfe6ed;
  border-radius:7px;
  background:#fff;
}

.psocial-product-image{
  position:relative;
  height:122px;
  overflow:hidden;
  background:#edf1f4;
}

.psocial-product-image img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.psocial-image-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#98a5b2;
  font-size:7px;
}

.psocial-stock-pill{
  position:absolute;
  z-index:2;
  left:6px;
  top:6px;
  padding:3px 5px;
  border-radius:4px;
  background:#22b95a;
  color:#fff;
  font-size:6px;
  font-weight:700;
}

.psocial-product-content{
  padding:7px;
}

.psocial-product-content h3{
  min-height:24px;
  margin:0;
  color:#263346;
  font-size:8px;
  line-height:1.35;
}

.psocial-product-content p{
  margin:3px 0 0;
  color:#67788d;
  font-size:7px;
}

.psocial-product-content .price{
  color:#1e293b;
  font-size:8.5px;
  font-weight:800;
}

.psocial-product-add{
  display:flex;
  justify-content:flex-end;
  margin-top:5px;
}

.psocial-product-add button{
  width:27px;
  height:27px;
  border:1px solid #dce5ed;
  border-radius:5px;
  background:#fff;
  color:#1680ef;
  font-size:15px;
}

.psocial-pages{
  flex:0 0 39px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}

.psocial-pages button{
  min-width:25px;
  height:25px;
  border:1px solid transparent;
  border-radius:5px;
  background:#fff;
  color:#617287;
  font-size:7px;
}

.psocial-pages button.active{
  border-color:#1680ef;
  color:#1680ef;
}

.psocial-pages span{
  color:#7a899b;
  font-size:7px;
}

.psocial-current-order{
  flex:0 0 128px;
  border-top:1px solid #e4eaf0;
  background:#fff;
}

.psocial-current-order-head{
  height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
}

.psocial-current-order-head > div{
  display:flex;
  align-items:center;
  gap:5px;
}

.psocial-current-order-head strong{
  font-size:8.5px;
}

.psocial-current-order-head b{
  min-width:17px;
  height:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#1680ef;
  color:#fff;
  font-size:6.5px;
}

.psocial-current-order-head button{
  border:0;
  background:transparent;
  color:#1680ef;
  font-size:7px;
}

.ps-cart{
  width:12px;
  height:9px;
  display:inline-block;
  border:1.3px solid #1680ef;
  border-top:0;
  transform:skew(-8deg);
}

.psocial-current-order-content{
  min-height:89px;
  display:grid;
  grid-template-columns:1fr 130px;
}

.psocial-cart-lines{
  padding:3px 10px 6px;
  overflow:auto;
}

.psocial-cart-line{
  min-height:36px;
  display:grid;
  grid-template-columns:27px 1fr 20px 60px;
  align-items:center;
  gap:5px;
  border-bottom:1px solid #eef2f5;
}

.psocial-cart-line img{
  width:27px;
  height:27px;
  border-radius:4px;
  object-fit:cover;
}

.psocial-cart-line strong,
.psocial-cart-line span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:6.8px;
}

.psocial-order-total{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:6px;
  border-left:1px solid #e5eaf0;
}

.psocial-order-total > span{
  font-size:7px;
}

.psocial-order-total strong{
  margin:3px 0 7px;
  font-size:11px;
}

.psocial-order-total button{
  width:100%;
  height:31px;
  border:0;
  border-radius:5px;
  background:#1680ef;
  color:#fff;
  font-size:7px;
}


/* FLOW */

.psocial-flow{
  overflow:auto;
  padding:9px 8px;
  background:#fbfcfe;
}

.psocial-module-note{
  display:flex;
  gap:8px;
  padding:9px;
  border:1px solid #cde1f6;
  border-radius:6px;
  background:#f5faff;
}

.psocial-module-note > span{
  width:17px;
  height:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 17px;
  border:1px solid #1680ef;
  border-radius:50%;
  color:#1680ef;
  font-size:7px;
  font-weight:800;
}

.psocial-module-note p{
  margin:0;
  color:#456a90;
  font-size:7px;
  line-height:1.5;
}

.psocial-flow-heading{
  margin-top:11px;
}

.psocial-flow-heading strong{
  display:block;
  font-size:9px;
}

.psocial-flow-heading small{
  display:block;
  margin-top:2px;
  color:#7b8a9c;
  font-size:6.7px;
}

.psocial-flow-steps{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  margin:10px 0 8px;
}

.psocial-flow-steps > div{
  width:38px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}

.psocial-flow-steps b{
  padding-top:7px;
  color:#a5afba;
  font-size:13px;
}

.step-circle{
  width:25px;
  height:25px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#f0f3f6;
  color:#65758a;
  font-size:8px;
}

.psocial-flow-steps small{
  color:#68788d;
  font-size:5.8px;
  white-space:nowrap;
}

.psocial-flow-steps > div.active .step-circle{
  background:#e6f2ff;
  color:#1680ef;
}

.psocial-flow-steps > div.active small{
  color:#1680ef;
  font-weight:750;
  text-decoration:underline;
}

.step-circle.person{
  position:relative;
}

.step-circle.person:before{
  content:'';
  width:6px;
  height:6px;
  position:absolute;
  left:9.5px;
  top:5px;
  border-radius:50%;
  background:#1680ef;
}

.step-circle.person:after{
  content:'';
  width:12px;
  height:7px;
  position:absolute;
  left:6.5px;
  bottom:4px;
  border-radius:7px 7px 3px 3px;
  background:#1680ef;
}

.psocial-flow-card{
  margin-top:7px;
  padding:8px 9px;
  border:1px solid #dfe6ed;
  border-radius:6px;
  background:#fff;
}

.psocial-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:7px;
}

.psocial-card-head > div{
  display:flex;
  align-items:center;
  gap:5px;
}

.psocial-card-head strong{
  font-size:8px;
}

.psocial-card-head button{
  height:24px;
  padding:0 7px;
  border:1px solid #dfe6ed;
  border-radius:4px;
  background:#fff;
  color:#54667a;
  font-size:6px;
}

.ps-card-symbol{
  width:14px;
  height:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#52647a;
  font-size:7px;
}

.psocial-customer{
  display:flex;
  align-items:center;
  gap:7px;
}

.ps-flow-brand{
  width:25px;
  height:25px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  font-size:7px;
  font-weight:800;
}

.psocial-customer strong{
  display:block;
  font-size:7.5px;
}

.psocial-customer small{
  display:block;
  margin-top:2px;
  color:#6d7c90;
  font-size:6.5px;
}

.psocial-flow-card label{
  display:block;
  margin:6px 0 3px;
  color:#69798d;
  font-size:6.3px;
}

.psocial-flow-card select{
  width:100%;
  height:27px;
  padding:0 6px;
  border:1px solid #dfe6ed;
  border-radius:4px;
  background:#fff;
  color:#46586d;
  font-size:6.8px;
}

.psocial-flow-card p{
  margin:0;
  color:#405168;
  font-size:6.7px;
}

.psocial-flow-card p.muted{
  color:#7d8b9c;
}

.psocial-address{
  line-height:1.5;
}

.psocial-fiscal{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:8px;
}

.psocial-fiscal span{
  display:block;
  margin-bottom:3px;
  color:#708095;
  font-size:6px;
}

.psocial-fiscal strong{
  display:block;
  color:#405168;
  font-size:6.5px;
}

.psocial-summary > strong{
  display:block;
  margin-bottom:6px;
  font-size:7.5px;
}

.psocial-summary > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:4px;
  color:#65758a;
  font-size:6.3px;
}

.psocial-summary > div b{
  color:#263448;
  font-size:6.8px;
}

.psocial-summary > div.total{
  margin-top:6px;
  padding-top:6px;
  border-top:1px solid #edf1f5;
  color:#263448;
  font-weight:700;
}

.psocial-summary > div.total b{
  color:#1680ef;
  font-size:10px;
}

.psocial-flow-actions{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:5px;
  margin-top:8px;
}

.psocial-flow-actions button{
  height:31px;
  border-radius:5px;
  font-size:6.3px;
  font-weight:650;
}

.psocial-flow-actions .quote{
  border:1px solid #68aef0;
  background:#fff;
  color:#1679df;
}

.psocial-flow-actions .order{
  border:0;
  background:#1680ef;
  color:#fff;
}

.psocial-flow-actions .invoice{
  border:0;
  background:#23bd58;
  color:#fff;
}

.psocial-flow-footer{
  display:block;
  margin-top:6px;
  text-align:center;
  color:#8492a4;
  font-size:5.8px;
}


/* CUSTOMER FORM */

.psocial-customer-backdrop{
  position:fixed;
  z-index:60000;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(9,23,38,.45);
}

.psocial-customer-backdrop.show{
  display:flex;
}

.psocial-customer-modal{
  width:min(1100px,94vw);
  height:min(790px,93vh);
  overflow:hidden;
  border-radius:10px;
  background:#fff;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
}

.psocial-customer-modal-head{
  height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  border-bottom:1px solid #e1e7ed;
}

.psocial-customer-modal-head > div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.psocial-customer-modal-head strong{
  font-size:14px;
}

.psocial-customer-modal-head small{
  color:#718196;
  font-size:8px;
}

.psocial-customer-modal-head button{
  width:31px;
  height:31px;
  border:0;
  background:transparent;
  font-size:21px;
}

.psocial-customer-modal-body{
  height:calc(100% - 62px);
  display:grid;
  grid-template-columns:1.08fr .92fr;
}

.psocial-process-panel{
  overflow:auto;
  padding:18px 22px;
}

.psocial-process-panel h2{
  margin:0 0 13px;
  font-size:15px;
}

.psocial-process-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 22px;
  padding:13px;
  border:1px solid #dfe6ed;
  border-radius:8px;
}

.psocial-process-info div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.psocial-process-info span{
  color:#7d8c9e;
  font-size:7.5px;
}

.psocial-process-info strong{
  font-size:8.5px;
}

.psocial-process-info .pending{
  color:#e3a11c;
}

.psocial-process-note{
  margin-top:11px;
  padding:10px;
  border:1px solid #cee2f6;
  border-radius:7px;
  background:#f5faff;
  color:#456a90;
  font-size:8px;
}

.psocial-selected-products{
  margin-top:11px;
  padding:12px;
  border:1px solid #dfe6ed;
  border-radius:8px;
}

.psocial-form-product{
  min-height:43px;
  display:grid;
  grid-template-columns:37px 1fr auto;
  align-items:center;
  gap:8px;
  border-bottom:1px solid #edf1f5;
}

.psocial-form-product img{
  width:34px;
  height:34px;
  border-radius:5px;
  object-fit:cover;
}

.psocial-form-product strong{
  font-size:7.5px;
}

.psocial-form-product small{
  color:#75859a;
  font-size:6.5px;
}

.psocial-selected-products .subtotal{
  display:flex;
  justify-content:space-between;
  margin-top:10px;
  font-size:8px;
}

.psocial-process-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}

.psocial-process-buttons button{
  height:34px;
  border:1px solid #1680ef;
  border-radius:5px;
  background:#fff;
  color:#1680ef;
  font-size:7.5px;
}

.psocial-process-buttons button.primary{
  border:0;
  background:#1680ef;
  color:#fff;
}

.psocial-process-buttons button:disabled{
  border-color:#dfe4e9;
  color:#a1a8b0;
}

.psocial-progress{
  margin-top:11px;
  padding:12px;
  border:1px solid #dfe6ed;
  border-radius:8px;
}

.psocial-progress > strong{
  display:block;
  margin-bottom:8px;
  font-size:8.5px;
}

.psocial-progress > div{
  min-height:28px;
  display:flex;
  align-items:center;
  gap:7px;
  color:#76859a;
  font-size:7.5px;
}

.psocial-progress > div span{
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e5e9ed;
  font-size:6.5px;
}

.psocial-progress > div.done span{
  background:#24bd59;
  color:#fff;
}

.psocial-progress > div.current{
  color:#34475d;
  font-weight:700;
}

.psocial-progress > div.current span{
  background:#1680ef;
  color:#fff;
}

.psocial-phone-area{
  overflow:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:#f4f7fb;
}

.psocial-phone{
  position:relative;
  width:335px;
  height:680px;
  overflow:hidden;
  border:9px solid #20252b;
  border-radius:42px;
  background:#fff;
  box-shadow:0 14px 40px rgba(15,30,50,.2);
}

.psocial-phone-notch{
  position:absolute;
  z-index:5;
  width:108px;
  height:23px;
  left:50%;
  top:0;
  transform:translateX(-50%);
  border-radius:0 0 15px 15px;
  background:#20252b;
}

.psocial-phone-header{
  height:69px;
  display:flex;
  align-items:flex-end;
  gap:7px;
  padding:0 12px 10px;
  border-bottom:1px solid #e1e6ea;
}

.psocial-phone-header > span{
  font-size:22px;
}

.psocial-phone-header .logo{
  width:31px;
  height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#1680ef;
  color:#fff;
  font-weight:800;
}

.psocial-phone-header strong{
  display:block;
  font-size:9px;
}

.psocial-phone-header small{
  color:#3aa35f;
  font-size:6.5px;
}

.psocial-phone-chat{
  height:calc(100% - 69px);
  overflow:auto;
  padding:11px;
  background:#f1ede6;
}

.psocial-whatsapp-message{
  width:80%;
  margin-left:auto;
  padding:8px;
  border-radius:7px;
  background:#dcf8d5;
  font-size:7.5px;
}

.psocial-phone-form{
  margin-top:8px;
  padding:10px;
  border-radius:7px;
  background:#fff;
}

.psocial-phone-form > strong{
  display:block;
  margin-bottom:8px;
  font-size:8.5px;
}

.psocial-phone-form label{
  display:grid;
  grid-template-columns:1fr 1.45fr;
  align-items:center;
  gap:7px;
  margin-top:6px;
  color:#526276;
  font-size:6.3px;
}

.psocial-phone-form input,
.psocial-phone-form select{
  height:25px;
  padding:0 5px;
  border:1px solid #dfe5eb;
  border-radius:4px;
  background:#fff;
  font-size:6.5px;
}

.psocial-phone-summary{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #e4e9ee;
}

.psocial-phone-product{
  display:flex;
  justify-content:space-between;
  margin-top:5px;
  font-size:6.2px;
}

.psocial-phone-summary .total{
  display:flex;
  justify-content:space-between;
  margin-top:7px;
  padding-top:7px;
  border-top:1px solid #e4e9ee;
  font-size:7.5px;
}

.psocial-phone-form .confirm,
.psocial-phone-form .continue{
  width:100%;
  height:32px;
  margin-top:8px;
  border-radius:5px;
  font-size:7.5px;
}

.psocial-phone-form .confirm{
  border:0;
  background:#22bc58;
  color:#fff;
}

.psocial-phone-form .continue{
  border:1px solid #dfe5eb;
  background:#fff;
  color:#617085;
}


/* Keep reference proportions */

@media(max-width:1450px){

  .psocial-app{
    min-width:1450px;
  }

  #page-social-sales-v3.active{
    overflow:auto!important;
  }

}


/* ================================================================
   PEKE360_SOCIAL_USE_NATIVE_LAYOUT_V1
   El m?dulo utiliza exclusivamente la navegaci?n nativa de Peke360.
   ================================================================ */

#page-social-sales-v3.active{
  position:relative!important;
  inset:auto!important;

  width:100%!important;
  height:calc(100vh - 130px)!important;

  min-height:720px!important;

  margin:0!important;
  padding:0!important;

  overflow:hidden!important;

  background:#ffffff!important;
}


/*
 * Ya no existe sidebar propio.
 * El men? lateral oficial de Peke360 permanece visible.
 */

.psocial-app{
  width:100%!important;
  height:100%!important;

  display:block!important;

  min-width:0!important;

  overflow:hidden!important;

  background:#ffffff!important;
}


.psocial-main{
  width:100%!important;
  height:100%!important;

  min-width:0!important;

  display:grid!important;
  grid-template-rows:70px minmax(0,1fr)!important;

  overflow:hidden!important;
}


/*
 * Evita que la antigua regla responsive vuelva
 * a forzar el m?dulo a 1450 px.
 */

@media(max-width:1450px){

  .psocial-app{
    min-width:0!important;
  }

  #page-social-sales-v3.active{
    overflow:hidden!important;
  }

}


/*
 * Ajuste proporcional para utilizar el ancho
 * disponible dentro del contenido normal de Peke360.
 */

.psocial-workspace{
  width:100%!important;

  grid-template-columns:
    20%
    24%
    32%
    24%!important;
}



/* ====================================================================
   PEKE360_SOCIAL_PRODUCT_TYPEAHEAD_V1
   Busqueda dinamica en lugar de catalogo fotografico completo
   ==================================================================== */

.psocial-catalog{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}


.psocial-product-search-zone{
  position:relative;

  flex:1 1 auto;

  min-height:0;

  display:flex;
  flex-direction:column;

  padding:0 14px 10px;

  overflow:hidden;

  background:#fff;
}


.psocial-product-search-zone .psocial-catalog-title{
  flex:0 0 auto;

  height:auto;

  padding:17px 0 11px;

  display:block;
}


.psocial-product-search-zone .psocial-catalog-title strong{
  display:block;

  color:#1d2939;

  font-size:11px;
  font-weight:750;
}


.psocial-product-search-zone .psocial-catalog-title small{
  display:block;

  margin-top:3px;

  color:#7b8b9e;

  font-size:7.5px;
  font-weight:400;
}


.psocial-live-search{
  position:relative;

  flex:0 0 40px;

  height:40px;

  display:flex;
  align-items:center;

  gap:9px;

  padding:0 10px;

  border:1px solid #cfd8e3;

  border-radius:7px;

  background:#fff;
}


.psocial-live-search:focus-within{
  border-color:#1680ef;

  box-shadow:
    0 0 0 2px
    rgba(22,128,239,.08);
}


.psocial-live-search input{
  min-width:0;

  flex:1;

  height:36px;

  border:0;
  outline:0;

  background:transparent;

  color:#24344a;

  font-size:9px;
}


.psocial-live-search input::placeholder{
  color:#97a3b1;
}


.psocial-live-search > button{
  width:25px;
  height:25px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;

  border:0;

  background:transparent;

  color:#8290a1;

  font-size:17px;

  cursor:pointer;
}


.psocial-live-search-hint{
  flex:0 0 auto;

  min-height:27px;

  display:flex;
  align-items:center;

  padding:0 3px;

  color:#8492a3;

  font-size:7.3px;
}


.psocial-typeahead-results{
  flex:1 1 auto;

  min-height:0;

  overflow:auto;

  border-top:1px solid transparent;
}


.psocial-search-result{
  min-height:58px;

  display:grid;

  grid-template-columns:
    45px
    minmax(0,1fr)
    52px
    70px
    32px;

  align-items:center;

  gap:9px;

  padding:7px 5px;

  border-bottom:1px solid #edf1f5;

  cursor:pointer;

  transition:
    background .12s ease;
}


.psocial-search-result:hover,
.psocial-search-result.active{
  background:#f2f8ff;
}


.psocial-search-result-image{
  position:relative;

  width:43px;
  height:43px;

  overflow:hidden;

  border-radius:6px;

  background:#edf1f4;
}


.psocial-search-result-image img{
  position:relative;

  z-index:1;

  width:100%;
  height:100%;

  display:block;

  object-fit:cover;
}


.psocial-search-result-image span{
  position:absolute;

  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#9aa6b3;

  font-size:6px;
}


.psocial-search-result-info{
  min-width:0;
}


.psocial-search-result-info strong{
  display:block;

  overflow:hidden;

  color:#263346;

  font-size:8.5px;
  font-weight:700;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.psocial-search-result-info span{
  display:block;

  margin-top:3px;

  overflow:hidden;

  color:#75859a;

  font-size:6.8px;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.psocial-search-result-stock{
  color:#5c6d82;

  font-size:7px;

  text-align:center;
}


.psocial-search-result-stock.available{
  color:#239550;
  font-weight:700;
}


.psocial-search-result-price{
  color:#202d40;

  font-size:7.5px;
  font-weight:800;

  text-align:right;
  white-space:nowrap;
}


.psocial-search-result-add{
  width:29px;
  height:29px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;

  border:1px solid #cddff2;

  border-radius:6px;

  background:#fff;

  color:#1680ef;

  font-size:15px;

  cursor:pointer;
}


.psocial-search-result-add:hover{
  border-color:#1680ef;

  background:#1680ef;

  color:#fff;
}


.psocial-search-result-add:disabled{
  border-color:#e1e5e9;

  background:#f4f5f6;

  color:#a5adb6;

  cursor:not-allowed;
}


.psocial-search-empty{
  min-height:105px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:5px;

  padding:20px;

  text-align:center;
}


.psocial-search-empty strong{
  color:#536377;

  font-size:8.5px;
}


.psocial-search-empty span{
  color:#8996a5;

  font-size:7px;
}


/*
 * El pedido permanece siempre debajo del buscador.
 */

.psocial-current-order{
  flex:0 0 128px!important;
}


/*
 * Estos elementos ya no forman parte del flujo.
 */

.psocial-catalog-searchbar,
.psocial-categories,
.psocial-product-grid,
.psocial-pages{
  display:none!important;
}



/* ====================================================================
   PEKE360_SOCIAL_REAL_INVENTORY_TYPEAHEAD_V1
   ==================================================================== */

.psocial-catalog{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}


.psocial-live-product-area{
  flex:1 1 auto;

  min-height:0;

  display:flex;
  flex-direction:column;

  padding:0 14px 10px;

  background:#fff;

  overflow:hidden;
}


.psocial-live-product-title{
  flex:0 0 auto;

  padding:17px 1px 10px;
}


.psocial-live-product-title strong{
  display:block;

  color:#1f2d40;

  font-size:10px;
}


.psocial-live-product-title small{
  display:block;

  margin-top:3px;

  color:#8290a2;

  font-size:7px;
}


.psocial-live-search{
  flex:0 0 39px;

  display:flex;
  align-items:center;

  gap:8px;

  padding:0 10px;

  border:1px solid #cfd9e4;

  border-radius:7px;

  background:#fff;
}


.psocial-live-search:focus-within{
  border-color:#1680ef;

  box-shadow:
    0 0 0 2px
    rgba(22,128,239,.08);
}


.psocial-live-search input{
  min-width:0;

  flex:1;

  height:35px;

  border:0;
  outline:0;

  background:transparent;

  color:#26364b;

  font-size:8.5px;
}


.psocial-live-search > button{
  width:24px;
  height:24px;

  padding:0;

  border:0;

  background:transparent;

  color:#7d8b9d;

  font-size:16px;

  cursor:pointer;
}


.psocial-live-search-hint{
  flex:0 0 28px;

  display:flex;
  align-items:center;

  padding:0 2px;

  color:#8290a2;

  font-size:6.8px;
}


.psocial-typeahead-results{
  flex:1 1 auto;

  min-height:0;

  overflow:auto;

  border-top:1px solid #edf1f5;
}


.psocial-real-product-result{
  min-height:57px;

  display:grid;

  grid-template-columns:
    42px
    minmax(0,1fr)
    55px
    68px
    30px;

  align-items:center;

  gap:8px;

  padding:7px 4px;

  border-bottom:1px solid #edf1f5;
}


.psocial-real-product-result:hover,
.psocial-real-product-result.selected{
  background:#f1f7ff;
}


.psocial-real-product-image{
  position:relative;

  width:40px;
  height:40px;

  overflow:hidden;

  border-radius:5px;

  background:#edf1f4;
}


.psocial-real-product-image img{
  position:relative;

  z-index:1;

  width:100%;
  height:100%;

  object-fit:cover;
}


.psocial-real-product-image span{
  position:absolute;

  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#98a5b2;

  font-size:5.5px;
}


.psocial-real-product-info{
  min-width:0;
}


.psocial-real-product-info strong{
  display:block;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  color:#263448;

  font-size:8px;
}


.psocial-real-product-info span{
  display:block;

  margin-top:3px;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  color:#75859a;

  font-size:6.3px;
}


.psocial-real-product-stock{
  text-align:center;

  color:#6d7d91;

  font-size:6.5px;
}


.psocial-real-product-stock.available{
  color:#23944f;
  font-weight:700;
}


.psocial-real-product-price{
  text-align:right;

  color:#202d40;

  font-size:7px;
  font-weight:800;

  white-space:nowrap;
}


.psocial-real-product-add{
  width:28px;
  height:28px;

  padding:0;

  border:1px solid #cbdff3;
  border-radius:5px;

  background:#fff;

  color:#1680ef;

  font-size:15px;

  cursor:pointer;
}


.psocial-real-product-add:hover{
  border-color:#1680ef;
  background:#1680ef;
  color:#fff;
}


.psocial-real-product-add:disabled{
  border-color:#e0e5ea;

  background:#f4f5f6;

  color:#a5adb6;

  cursor:not-allowed;
}


.psocial-real-search-empty{
  height:110px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:5px;

  color:#8290a2;

  text-align:center;
}


.psocial-real-search-empty strong{
  color:#536377;

  font-size:8px;
}


.psocial-real-search-empty span{
  font-size:6.7px;
}


/*
 * El viejo cat?logo visual queda eliminado.
 */

.psocial-catalog-searchbar,
.psocial-categories,
.psocial-product-grid,
.psocial-pages{
  display:none!important;
}


/*
 * Pedido actual se mantiene debajo.
 */

.psocial-current-order{
  flex:0 0 128px!important;
}




/* =====================================================================
   PEKE360_SOCIAL_WORKSPACE_3COL_V1

   Gesti?n fue eliminada.
   Workspace normal:
       Conversaciones | Chat | Buscar producto

   No modifica botones ni estructura HTML.
   ===================================================================== */

#page-social-sales-v3 .psocial-workspace{
    grid-template-columns:
        20%
        36%
        44%
        !important;
}


/*
 * Cuando se abre un documento comercial dentro del chat,
 * las reglas espec?ficas ya existentes tienen mayor especificidad
 * y contin?an gobernando ese modo.
 */

#page-social-sales-v3 .psocial-chat,
#page-social-sales-v3 .psocial-catalog{
    min-width:0;
}



/* PEKE360_SOCIAL_STRUCTURAL_CLEAN_FINAL_V9 */
#page-social-sales-v3 .psocial-title > div > p{
    display:none !important;
}

#page-social-sales-v3 .psocial-composer{
    min-height:76px !important;
    padding:10px 14px !important;
    align-items:center !important;
    gap:10px !important;
}

#page-social-sales-v3 .psocial-composer input[placeholder*="Escribe un mensaje"]{
    min-height:54px !important;
    height:54px !important;
    padding:12px 18px !important;
    font-size:17px !important;
    line-height:1.35 !important;
    border-radius:20px !important;
}

#page-social-sales-v3 .psocial-composer button{
    min-width:42px !important;
    min-height:42px !important;
}

#page-social-sales-v3 .psocial-message-list{
    min-height:0 !important;
    padding-bottom:20px !important;
}

#page-social-sales-v3 .psocial-chat-product-image img,
#page-social-sales-v3 .psocial-message-row.outgoing img{
    width:108px !important;
    height:108px !important;
    min-width:108px !important;
    min-height:108px !important;
    object-fit:cover !important;
    border-radius:12px !important;
}

#page-social-sales-v3 .psocial-chat-product,
#page-social-sales-v3 .psocial-message-row.outgoing:has(.peke-social-cart-host){
    min-height:138px !important;
}

/* =====================================================================
   PEKE360_SOCIAL_FULL_HEIGHT_CHAT_V9_1
   El workspace social ocupa desde la barra superior Peke360 hasta
   el borde inferior del viewport. No modifica lógica comercial.
   ===================================================================== */

/*
 * Cuando Ventas por redes sociales está activo, retiramos únicamente
 * el padding del contenedor general para aprovechar toda la altura
 * disponible debajo de la barra azul de Peke360 (60px).
 */
body:has(#page-social-sales-v3.active) .content > .main{
    padding-top:0 !important;
    padding-bottom:0 !important;
}

/*
 * El módulo arranca inmediatamente debajo de la barra superior global
 * y termina exactamente en la parte baja de la pantalla.
 */
#page-social-sales-v3.active{
    width:100% !important;
    height:calc(100dvh - 60px) !important;
    min-height:0 !important;
    max-height:calc(100dvh - 60px) !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
}

/*
 * El encabezado interno repetido del módulo deja de consumir 70px.
 * La barra azul global sigue visible.
 */
#page-social-sales-v3 .psocial-topbar{
    display:none !important;
}

/*
 * Una sola fila: todo el alto disponible pertenece al workspace.
 */
#page-social-sales-v3 .psocial-main{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    display:grid !important;
    grid-template-rows:minmax(0,1fr) !important;
    overflow:hidden !important;
}

#page-social-sales-v3 .psocial-workspace{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    align-self:stretch !important;
    overflow:hidden !important;
}

/*
 * Conversaciones, Chat y panel derecho comparten exactamente
 * la misma altura desde arriba hasta abajo.
 */
#page-social-sales-v3 .psocial-conversations,
#page-social-sales-v3 .psocial-chat,
#page-social-sales-v3 .psocial-catalog,
#page-social-sales-v3 #pekeSocialCommercePanel{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    align-self:stretch !important;
}

/*
 * El historial se queda con todo el espacio flexible.
 * Carrito, botones y caja de escritura permanecen visibles abajo.
 */
#page-social-sales-v3 .psocial-chat{
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}

#page-social-sales-v3 .psocial-chat-head{
    flex:0 0 63px !important;
}

#page-social-sales-v3 .psocial-message-list{
    flex:1 1 0 !important;
    min-height:0 !important;
    overflow:auto !important;
}

#page-social-sales-v3 .peke-social-unified-cart-v2,
#page-social-sales-v3 #pekeSocialUnifiedCartV61,
#page-social-sales-v3 .peke-social-unified-cart-v61{
    flex:0 0 auto !important;
}

#page-social-sales-v3 .psocial-chat-actions{
    flex:0 0 auto !important;
}

#page-social-sales-v3 .psocial-composer{
    flex:0 0 76px !important;
    min-height:76px !important;
}

/*
 * Evita espacio blanco debajo del compositor.
 */
#page-social-sales-v3 .psocial-chat > :last-child{
    margin-bottom:0 !important;
}

/*
 * Compatibilidad con navegadores que todavía calculen vh mejor que dvh.
 */
@supports not (height:100dvh){
    #page-social-sales-v3.active{
        height:calc(100vh - 60px) !important;
        max-height:calc(100vh - 60px) !important;
    }
}

/* =====================================================================
   PEKE360_SOCIAL_CHAT_BOTTOM_FLUSH_V9_2
   Pega la franja inferior del chat al borde de abajo y reduce el
   espacio consumido por esa zona para agrandar el área superior.
   ===================================================================== */

/* El chat ocupa toda la altura y reparte mejor el espacio */
#page-social-sales-v3 .psocial-chat{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

/* El listado de mensajes toma el espacio libre */
#page-social-sales-v3 .psocial-message-list{
    flex:1 1 auto !important;
    min-height:0 !important;
    margin-bottom:0 !important;
    padding-bottom:8px !important;
}

/* La zona inferior se pega al borde */
#page-social-sales-v3 .psocial-chat-actions,
#page-social-sales-v3 .psocial-composer,
#page-social-sales-v3 .psocial-footer-compose,
#page-social-sales-v3 .psocial-inputbar,
#page-social-sales-v3 .psocial-message-compose{
    margin-bottom:0 !important;
}

/* Menos altura desperdiciada entre botones y caja de escribir */
#page-social-sales-v3 .psocial-chat-actions{
    padding:8px 12px 6px 12px !important;
    gap:8px !important;
    flex:0 0 auto !important;
}

#page-social-sales-v3 .psocial-composer,
#page-social-sales-v3 .psocial-footer-compose,
#page-social-sales-v3 .psocial-inputbar,
#page-social-sales-v3 .psocial-message-compose{
    padding:6px 12px 8px 12px !important;
    min-height:64px !important;
    flex:0 0 64px !important;
    border-bottom:none !important;
}

/* El contenedor del input queda más compacto y hasta abajo */
#page-social-sales-v3 .psocial-chat-input-wrap,
#page-social-sales-v3 .psocial-compose-input-wrap,
#page-social-sales-v3 .psocial-composer-main{
    min-height:48px !important;
    margin-bottom:0 !important;
}

/* Campo de escritura ligeramente más compacto */
#page-social-sales-v3 input[placeholder*="WhatsApp"],
#page-social-sales-v3 input[placeholder*="mensaje"],
#page-social-sales-v3 textarea[placeholder*="WhatsApp"],
#page-social-sales-v3 textarea[placeholder*="mensaje"]{
    min-height:46px !important;
    height:46px !important;
    margin-bottom:0 !important;
}

/* Sin hueco al final del chat */
#page-social-sales-v3 .psocial-chat > :last-child{
    margin-bottom:0 !important;
}

#page-social-sales-v3 .psocial-chat::after{
    content:none !important;
}

/* =====================================================================
   PEKE360_SOCIAL_CHAT_MORE_SPACE_V9_3
   Más altura para el historial del chat y compositor inferior más bajo.
   ===================================================================== */

/* El historial aprovecha todo el espacio que liberamos abajo */
#page-social-sales-v3 .psocial-message-list{
    flex:1 1 0 !important;
    min-height:0 !important;
    padding-bottom:4px !important;
    margin-bottom:0 !important;
}

/* Botones comerciales un poco más compactos */
#page-social-sales-v3 .psocial-chat-actions{
    flex:0 0 auto !important;
    padding:5px 10px !important;
    gap:7px !important;
    min-height:0 !important;
}

/* Franja inferior mucho más baja */
#page-social-sales-v3 .psocial-composer,
#page-social-sales-v3 .psocial-footer-compose,
#page-social-sales-v3 .psocial-inputbar,
#page-social-sales-v3 .psocial-message-compose{
    flex:0 0 50px !important;
    min-height:50px !important;
    height:50px !important;
    padding:4px 10px !important;
    margin:0 !important;
    align-items:center !important;
}

/* Contenedor del campo de texto */
#page-social-sales-v3 .psocial-chat-input-wrap,
#page-social-sales-v3 .psocial-compose-input-wrap,
#page-social-sales-v3 .psocial-composer-main{
    min-height:40px !important;
    height:40px !important;
    margin:0 !important;
    padding:0 !important;
    align-items:center !important;
}

/* Caja donde se escribe: más pequeña de alto */
#page-social-sales-v3 input[placeholder*="WhatsApp"],
#page-social-sales-v3 input[placeholder*="mensaje"],
#page-social-sales-v3 textarea[placeholder*="WhatsApp"],
#page-social-sales-v3 textarea[placeholder*="mensaje"],
#page-social-sales-v3 input[placeholder*="Escribe"],
#page-social-sales-v3 textarea[placeholder*="Escribe"]{
    min-height:38px !important;
    height:38px !important;
    max-height:38px !important;
    padding:7px 13px !important;
    font-size:15px !important;
    line-height:1.2 !important;
    margin:0 !important;
    border-radius:18px !important;
}

/* Iconos y botón enviar quedan proporcionados a la nueva altura */
#page-social-sales-v3 .psocial-composer button,
#page-social-sales-v3 .psocial-footer-compose button,
#page-social-sales-v3 .psocial-inputbar button,
#page-social-sales-v3 .psocial-message-compose button{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    padding:0 !important;
    margin:0 !important;
}

/* Sin hueco inferior */
#page-social-sales-v3 .psocial-chat > :last-child{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

/* PEKE360_SOCIAL_COMPACT_ACTIONS_BACK_COLOR_V9_5 */

#pekeSocialCommercePanel.peke-social-invoice-flow-v95
#pekeClientHubMenuPanelV7{
    display:none !important;
}

#pekeSocialCommercePanel.peke-social-invoice-flow-v95
.peke-commerce-body{
    padding-top:0 !important;
}

#page-social-sales-v3 .psocial-chat-actions{
    flex:0 0 40px !important;
    min-height:40px !important;
    padding:3px 6px !important;
    gap:6px !important;
}

#page-social-sales-v3 .psocial-chat-actions button{
    height:34px !important;
    min-height:34px !important;
    padding:4px 10px !important;
    border-radius:9px !important;
    font-size:12px !important;
    line-height:1 !important;
}

#pekeSocialCommercePanel
button[data-action="closeInvoiceEditor()"],
#pekeSocialCommercePanel
button[data-action="cancelInvoiceDeliveryStep()"]{
    background:#e8f1ff !important;
    border:1px solid #8db7ed !important;
    color:#135fae !important;
    font-weight:700 !important;
    opacity:1 !important;
}

#pekeSocialCommercePanel
button[data-action="closeInvoiceEditor()"]:hover,
#pekeSocialCommercePanel
button[data-action="cancelInvoiceDeliveryStep()"]:hover{
    background:#d8e9ff !important;
    border-color:#6d9fdc !important;
    color:#0d4f96 !important;
}


/* =====================================================================
   PEKE360_SOCIAL_OPERATIONS_FINAL_CSS_V10
   ===================================================================== */

/* Ocultar Referencia y Neto SOLO en la factura abierta desde Redes Sociales. */
#pekeSocialCommercePanel #invoiceEditor .invoice-lines th:nth-child(1),
#pekeSocialCommercePanel #invoiceEditor .invoice-lines td:nth-child(1),
#pekeSocialCommercePanel #invoiceEditor .invoice-lines th:nth-child(7),
#pekeSocialCommercePanel #invoiceEditor .invoice-lines td:nth-child(7){
    display:none !important;
}

#pekeSocialCommercePanel #invoiceEditor .invoice-lines{
    min-width:760px !important;
}

/* Quitar únicamente la lupa superior junto a Conversaciones. */
#page-social-sales-v3 .psocial-conversations
.psocial-section-head > div > button:first-child{
    display:none !important;
}

/* Menú contextual ocultable. */
#page-social-sales-v3 .peke-client-hub-menu-v7{
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
}

#page-social-sales-v3 .peke-client-hub-buttons-v10{
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    flex-wrap:wrap !important;
    min-width:0 !important;
}

#page-social-sales-v3 .peke-client-hub-toggle-v10{
    height:34px !important;
    min-height:34px !important;
    flex:0 0 auto !important;
    padding:5px 10px !important;
    border:1px solid #c9d7e5 !important;
    border-radius:8px !important;
    background:#eef5ff !important;
    color:#175d9d !important;
    font-size:11px !important;
    font-weight:700 !important;
    cursor:pointer !important;
}

#page-social-sales-v3
.peke-client-hub-menu-v7.peke-client-hub-menu-collapsed-v10
.peke-client-hub-buttons-v10{
    display:none !important;
}

#page-social-sales-v3
.peke-client-hub-menu-v7.peke-client-hub-menu-collapsed-v10{
    padding-top:6px !important;
    padding-bottom:6px !important;
    min-height:46px !important;
}

/* V9.5: al iniciar Facturar se oculta todo el menú, incluido su toggle. */
#pekeSocialCommercePanel.peke-social-invoice-flow-v95
#pekeClientHubMenuPanelV7{
    display:none !important;
}
