:root{--cb-blue:#062d59;--cb-yellow:#ffc400;--cb-bg:#f4f7fb;--cb-border:#dfe6ef;--cb-green:#18a957;--cb-text:#0e2340}.page-template-default .entry-header,.page-template-default .entry-title{display:none!important}.cb-app{min-height:100vh;background:var(--cb-bg);color:var(--cb-text);font-family:Inter,Arial,sans-serif;display:flex}.cb-sidebar{width:245px;background:linear-gradient(180deg,#062d59,#041e3b);color:#fff;padding:22px 16px;position:fixed;inset:0 auto 0 0;z-index:50;display:flex;flex-direction:column}.cb-brand{display:flex;gap:11px;align-items:center;padding:6px 8px 24px}.cb-brand-mark{width:44px;height:44px;border-radius:12px;background:var(--cb-yellow);color:var(--cb-blue);display:grid;place-items:center;font-weight:900}.cb-brand strong{display:block;font-size:16px}.cb-brand span{font-size:12px;opacity:.7}.cb-sidebar nav{display:grid;gap:7px}.cb-nav{border:0;background:transparent;color:#dce8f8;padding:12px 13px;border-radius:10px;text-align:left;font-size:15px;cursor:pointer}.cb-nav:hover,.cb-nav.active{background:rgba(255,255,255,.11);color:#fff}.cb-back-shop{margin-top:auto;color:#fff;text-decoration:none;font-size:13px;opacity:.82;padding:12px}.cb-main{margin-left:245px;width:calc(100% - 245px);padding:24px}.cb-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.cb-topbar h1{margin:0;color:var(--cb-blue);font-size:28px}.cb-topbar p{margin:4px 0 0;color:#6d7b8e;font-size:13px}.cb-top-actions{display:flex;gap:10px;align-items:center}.cb-user{font-weight:700;color:var(--cb-blue)}.cb-menu-toggle{display:none}.cb-view{display:none}.cb-view.active{display:block}.cb-filterbar,.cb-card{background:#fff;border:1px solid var(--cb-border);border-radius:16px;box-shadow:0 4px 18px rgba(23,43,77,.05)}.cb-filterbar{padding:12px;margin-bottom:16px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.cb-presets{display:flex;gap:7px;flex-wrap:wrap}.cb-presets button,.cb-custom-range button,.cb-outline,.cb-primary,.cb-danger{border:0;border-radius:9px;padding:10px 13px;font-weight:800;cursor:pointer}.cb-presets button{background:#eef3f9;color:#4c5f76}.cb-presets button.active{background:var(--cb-blue);color:#fff}.cb-custom-range{display:none;gap:7px;align-items:center}.cb-custom-range.show{display:flex}.cb-custom-range input,.cb-toolbar input,.cb-form-grid input,.cb-form-grid select,.cb-form-grid textarea{border:1px solid #cfd9e6;border-radius:9px;padding:10px;background:#fff;width:100%;box-sizing:border-box}.cb-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.cb-stat{background:#fff;border:1px solid var(--cb-border);border-radius:16px;padding:18px;box-shadow:0 4px 18px rgba(23,43,77,.05)}.cb-stat span{display:block;font-size:13px;color:#6d7b8e}.cb-stat strong{display:block;font-size:28px;color:var(--cb-blue);margin:6px 0}.cb-stat small{color:#8896a7}.cb-grid-2{display:grid;grid-template-columns:1.35fr 1fr;gap:16px}.cb-card{padding:16px}.cb-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.cb-card-head h3{margin:0;color:var(--cb-blue)}.cb-card-head p{margin:4px 0 0;color:#718095;font-size:13px}.cb-primary{background:var(--cb-yellow);color:var(--cb-blue)}.cb-outline{background:#eef3f9;color:var(--cb-blue);border:1px solid #d6e0eb}.cb-danger{background:#ffe8e8;color:#a52727}.cb-toolbar{margin:8px 0 14px}.cb-table-wrap{overflow:auto}.cb-table{width:100%;border-collapse:collapse;min-width:720px}.cb-table th,.cb-table td{padding:11px;border-bottom:1px solid #edf1f5;text-align:left;font-size:13px;vertical-align:middle}.cb-table th{color:#68798f;font-size:12px;text-transform:uppercase}.cb-product-thumb{width:54px;height:54px;object-fit:cover;border-radius:8px}.cb-status{display:inline-block;padding:5px 8px;border-radius:999px;background:#eef3f9;font-size:12px;font-weight:700}.cb-link-btn{border:0;background:#eef3f9;color:var(--cb-blue);font-weight:800;border-radius:8px;padding:8px 10px;cursor:pointer}.cb-chart{height:260px;display:flex;align-items:flex-end;gap:8px;padding:18px 4px 0}.cb-bar{flex:1;min-width:16px;background:linear-gradient(180deg,#ffc400,#f2b800);border-radius:8px 8px 2px 2px;position:relative}.cb-bar span{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);font-size:10px;color:#728096;white-space:nowrap}.cb-note{margin-top:14px;padding:12px;background:#fff8dd;border:1px solid #f3df8a;border-radius:10px;font-size:13px}.cb-modal{position:fixed;inset:0;background:rgba(3,18,35,.58);z-index:9999;display:none;align-items:flex-start;justify-content:center;padding:24px;overflow:auto}.cb-modal.open{display:flex}.cb-modal-box{width:min(900px,100%);background:#fff;border-radius:16px;padding:18px}.cb-modal-head{display:flex;justify-content:space-between;align-items:center}.cb-modal-head h2{margin:0;color:var(--cb-blue)}#cb-modal-close{border:0;background:#eef3f9;width:38px;height:38px;border-radius:50%;font-size:24px;cursor:pointer}.cb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.cb-form-grid label{font-size:13px;font-weight:700;color:#53647a}.cb-form-grid label input,.cb-form-grid label select,.cb-form-grid label textarea{margin-top:6px;font-weight:400}.cb-form-grid .wide{grid-column:1/-1}.cb-image-field{border:1px dashed #ccd7e4;border-radius:12px;padding:12px}.cb-image-field>span{display:block;font-weight:800;margin-bottom:8px}.cb-image-field img{width:140px;height:140px;object-fit:cover;border-radius:10px;display:block;margin-bottom:10px}.cb-variable-area{display:none;border:1px solid #e3e9f0;border-radius:12px;padding:12px}.cb-variable-area.show{display:block}.cb-attribute-row,.cb-variation-row{display:grid;grid-template-columns:1fr 2fr auto;gap:8px;margin-bottom:8px;align-items:center}.cb-variation-row{grid-template-columns:2fr 1fr 1fr 1fr}.cb-modal-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.cb-toast{position:fixed;right:20px;bottom:20px;background:#0f2f50;color:#fff;padding:13px 16px;border-radius:10px;z-index:10000;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}.cb-toast.show{opacity:1;transform:none}.cb-sale-alert{position:fixed;top:18px;right:18px;background:#19a95a;color:#fff;padding:16px;border-radius:14px;box-shadow:0 14px 38px rgba(0,0,0,.22);z-index:10001;min-width:280px}.cb-sale-alert strong{display:block;font-size:17px;margin-bottom:4px}
@media(max-width:1050px){.cb-stats{grid-template-columns:repeat(2,1fr)}.cb-grid-2{grid-template-columns:1fr}}@media(max-width:760px){.cb-sidebar{transform:translateX(-100%);transition:.25s}.cb-sidebar.open{transform:none}.cb-main{margin-left:0;width:100%;padding:14px}.cb-menu-toggle{display:block;border:0;background:#eef3f9;border-radius:9px;padding:10px 12px}.cb-topbar{align-items:flex-start}.cb-top-actions{flex-direction:column;align-items:flex-end}.cb-user{display:none}.cb-stats{grid-template-columns:1fr 1fr}.cb-stat strong{font-size:23px}.cb-custom-range.show{width:100%;display:grid;grid-template-columns:1fr auto 1fr auto}.cb-form-grid{grid-template-columns:1fr}.cb-form-grid .wide{grid-column:auto}.cb-attribute-row,.cb-variation-row{grid-template-columns:1fr}.cb-modal{padding:8px}.cb-modal-box{border-radius:12px}.cb-chart{height:210px}.cb-topbar h1{font-size:23px}}@media(max-width:480px){.cb-stats{grid-template-columns:1fr}.cb-top-actions .cb-outline{font-size:11px;padding:8px}.cb-filterbar{padding:9px}.cb-presets button{font-size:11px;padding:8px 9px}}

/* ===== V1.2 MOBILE APP / PWA ===== */
.cb-mobile-nav{display:none}.cb-install-help{display:none;position:fixed;inset:0;background:rgba(3,18,35,.62);z-index:12000;align-items:flex-end;justify-content:center;padding:16px}.cb-install-help.open{display:flex}.cb-install-help-box{position:relative;width:min(520px,100%);background:#fff;border-radius:18px;padding:22px;box-shadow:0 18px 50px rgba(0,0,0,.28)}.cb-install-help-box h3{margin:0 34px 8px 0;color:var(--cb-blue)}.cb-install-help-box p{margin:0;color:#52657a;line-height:1.55}.cb-install-help-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:0;border-radius:50%;background:#eef3f9;font-size:22px}.cb-install-app{display:none}
@media(max-width:760px){
  html,body{overscroll-behavior-y:none}.cb-app{min-height:100dvh;padding-bottom:calc(74px + env(safe-area-inset-bottom))}.cb-main{padding:12px 12px 18px;min-width:0}.cb-topbar{position:sticky;top:0;z-index:40;background:rgba(244,247,251,.96);backdrop-filter:blur(12px);margin:-12px -12px 14px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;border-bottom:1px solid #e3eaf2}.cb-topbar>div:nth-child(2){min-width:0;flex:1}.cb-topbar p{display:none}.cb-topbar h1{font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cb-top-actions{flex-direction:row;gap:6px}.cb-top-actions .cb-outline{font-size:0;width:42px;height:42px;padding:0;display:grid;place-items:center}.cb-top-actions .cb-outline::first-letter{font-size:18px}.cb-install-app{display:grid!important}.cb-menu-toggle{width:42px;height:42px;padding:0;font-size:18px}.cb-sidebar{width:min(82vw,310px);padding-top:calc(18px + env(safe-area-inset-top));box-shadow:20px 0 60px rgba(0,0,0,.25)}.cb-sidebar.open:after{content:"";position:fixed;left:100%;top:0;width:100vw;height:100vh;background:rgba(0,0,0,.35);pointer-events:none}.cb-filterbar{display:block;overflow:hidden}.cb-presets{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:none}.cb-presets::-webkit-scrollbar{display:none}.cb-presets button{flex:0 0 auto}.cb-custom-range.show{grid-template-columns:1fr 1fr;margin-top:8px}.cb-custom-range.show span{display:none}.cb-custom-range.show button{grid-column:1/-1}.cb-stats{grid-template-columns:1fr 1fr;gap:9px}.cb-stat{padding:14px;border-radius:13px}.cb-stat span{font-size:11px}.cb-stat strong{font-size:21px}.cb-stat small{font-size:10px}.cb-card{padding:12px;border-radius:14px}.cb-card-head{align-items:flex-start}.cb-card-head h3{font-size:17px}.cb-primary,.cb-outline,.cb-danger{min-height:42px}.cb-table-wrap{margin:0 -4px;overflow-x:auto;-webkit-overflow-scrolling:touch}.cb-table{min-width:650px}.cb-modal{padding:0;align-items:stretch}.cb-modal-box{width:100%;min-height:100dvh;border-radius:0;padding:calc(14px + env(safe-area-inset-top)) 14px calc(90px + env(safe-area-inset-bottom));box-sizing:border-box}.cb-modal-head{position:sticky;top:0;background:#fff;z-index:3;padding-bottom:10px}.cb-form-grid input,.cb-form-grid select,.cb-form-grid textarea{font-size:16px!important}.cb-modal-actions{position:sticky;bottom:0;background:#fff;padding:10px 0 calc(8px + env(safe-area-inset-bottom));z-index:4}.cb-mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:100;background:#fff;border-top:1px solid #dfe6ef;padding:7px 4px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -6px 22px rgba(23,43,77,.08)}.cb-mobile-nav-btn{border:0;background:transparent;color:#6a788b;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px;font-weight:700}.cb-mobile-nav-btn span{font-size:20px;line-height:1.1}.cb-mobile-nav-btn small{font-size:10px}.cb-mobile-nav-btn.active{color:var(--cb-blue)}.cb-sale-alert{left:12px;right:12px;top:calc(12px + env(safe-area-inset-top));min-width:0}.cb-toast{left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));text-align:center}.cb-chart{overflow-x:auto;min-width:0}.cb-bar{min-width:18px}.cb-image-field img{width:110px;height:110px}
}
@media(max-width:420px){.cb-stats{grid-template-columns:1fr 1fr}.cb-stat strong{font-size:19px}.cb-stat{padding:12px}.cb-top-actions{max-width:92px}.cb-card-head{flex-wrap:wrap}.cb-card-head .cb-primary{width:100%}}

/* ===== V1.3 LOGIN FRONTEND + GERENTES ===== */
.cb-login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#123f71 0,#062d59 36%,#031a33 100%);box-sizing:border-box}.cb-login-card{width:min(430px,100%);background:#fff;border-radius:22px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.28);box-sizing:border-box}.cb-login-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}.cb-login-brand .cb-brand-mark{width:50px;height:50px;border-radius:14px;background:#ffc400;color:#062d59;display:grid;place-items:center;font-weight:900;font-size:18px}.cb-login-brand strong{display:block;color:#062d59;font-size:19px}.cb-login-brand span{display:block;color:#728096;font-size:12px;margin-top:2px}.cb-login-card h1{margin:0 0 8px;color:#062d59;font-size:28px}.cb-login-card>p{margin:0 0 20px;color:#68798f;line-height:1.5}.cb-login-error{background:#fff0f0;border:1px solid #f0b0b0;color:#a42a2a;border-radius:10px;padding:11px 12px;margin-bottom:14px;font-size:13px}.cb-login-form{display:grid;gap:14px}.cb-login-form label{font-size:13px;font-weight:800;color:#53647a}.cb-login-form input[type=text],.cb-login-form input[type=password]{width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cfd9e6;border-radius:10px;padding:13px 14px;font-size:16px;background:#fff}.cb-login-remember{display:flex;align-items:center;gap:8px;font-weight:600!important}.cb-login-remember input{width:18px;height:18px}.cb-login-submit{border:0;border-radius:10px;padding:13px 16px;background:#ffc400;color:#062d59;font-weight:900;font-size:15px;cursor:pointer}.cb-login-submit:hover{filter:brightness(.97)}.cb-login-back{display:block;margin-top:18px;text-align:center;color:#5d7088;text-decoration:none;font-size:13px}.cb-sidebar{display:flex;flex-direction:column}.cb-sidebar nav{flex:1}.cb-sidebar-bottom{display:grid;gap:7px}.cb-logout{display:block;text-align:center;color:#fff;text-decoration:none;font-weight:800;padding:10px;border-radius:9px;background:rgba(255,255,255,.09)}.cb-logout:hover{background:rgba(255,255,255,.15)}.cb-manager-modal-box{max-width:720px}.cb-manager-permissions{margin-top:16px;padding:14px;background:#f5f8fc;border:1px solid #dfe7f0;border-radius:12px}.cb-manager-permissions strong,.cb-manager-permissions span{display:block}.cb-manager-permissions strong{color:#062d59;margin-bottom:5px}.cb-manager-permissions span{color:#65768b;font-size:13px;line-height:1.45}.cb-form-grid label small{display:block;margin-top:6px;color:#7a899a;font-weight:500}.cb-empty-state{padding:28px;text-align:center;border:1px dashed #ccd7e4;border-radius:12px;color:#65768b}.cb-empty-state strong,.cb-empty-state span{display:block}.cb-empty-state strong{color:#062d59;margin-bottom:5px}.cb-form-grid input[readonly]{background:#eef3f9;color:#6e7d90}
@media(max-width:760px){.cb-login-screen{padding:14px;align-items:center}.cb-login-card{padding:22px 18px;border-radius:18px}.cb-login-card h1{font-size:24px}.cb-manager-modal-box{max-width:none}}


/* ===== V1.6 MOBILE RESPONSIVO ===== */
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
.cb-app,.cb-main,.cb-view,.cb-card,.cb-filterbar,.cb-topbar{min-width:0;max-width:100%}

@media(max-width:760px){
  body.cb-painel-standalone{width:100%;overflow-x:hidden}
  .cb-app{width:100%;overflow-x:hidden}
  .cb-main{width:100%!important;max-width:100vw!important;padding:10px 10px calc(92px + env(safe-area-inset-bottom))!important;overflow-x:hidden}
  .cb-topbar{width:auto;max-width:none;margin:-10px -10px 12px!important;padding:calc(10px + env(safe-area-inset-top)) 10px 9px!important;gap:7px!important}
  .cb-topbar>div:first-child{min-width:0;flex:1}
  .cb-topbar h1{font-size:19px!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cb-top-actions{flex:0 0 auto;max-width:none!important;gap:4px!important}
  .cb-top-actions .cb-outline,.cb-menu-toggle{width:38px!important;height:38px!important;min-height:38px!important;padding:0!important}

  .cb-filterbar{width:100%;padding:9px!important;border-radius:12px}
  .cb-presets{width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  .cb-presets button{scroll-snap-align:start;white-space:nowrap}
  .cb-custom-range.show{width:100%!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important}
  .cb-custom-range input{min-width:0!important;width:100%!important;font-size:16px!important}

  .cb-stats{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .cb-stat{min-width:0!important;padding:12px!important;overflow:hidden}
  .cb-stat span,.cb-stat small{white-space:normal;overflow-wrap:anywhere}
  .cb-stat strong{font-size:18px!important;line-height:1.15;overflow-wrap:anywhere}
  .cb-grid-2{display:block!important;width:100%}
  .cb-grid-2>.cb-card{margin-bottom:10px}
  .cb-card{width:100%!important;max-width:100%!important;padding:11px!important;overflow:hidden}
  .cb-card-head{width:100%;max-width:100%;gap:8px;flex-wrap:wrap!important}
  .cb-card-head>div{min-width:0;max-width:100%}
  .cb-card-head h3,.cb-card-head p{overflow-wrap:anywhere}
  .cb-card-head .cb-primary{max-width:100%;white-space:normal}
  .cb-toolbar{width:100%}
  .cb-toolbar input{font-size:16px!important;min-width:0;width:100%}

  /* Tabelas viram cards no celular, sem conteúdo cortado */
  .cb-table-wrap{width:100%!important;max-width:100%!important;margin:0!important;overflow:visible!important}
  .cb-table{display:block!important;min-width:0!important;width:100%!important;border-collapse:separate}
  .cb-table thead{display:none!important}
  .cb-table tbody{display:grid!important;gap:9px;width:100%}
  .cb-table tr{display:grid!important;width:100%;min-width:0;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px;box-shadow:0 2px 8px rgba(23,43,77,.04)}
  .cb-table td{display:flex!important;align-items:flex-start;justify-content:space-between;gap:10px;width:100%!important;min-width:0;padding:7px 0!important;border-bottom:1px solid #edf1f5!important;text-align:right!important;overflow-wrap:anywhere;white-space:normal!important}
  .cb-table td:last-child{border-bottom:0!important;padding-bottom:0!important}
  .cb-table td::before{font-size:11px;font-weight:800;color:#758398;text-transform:uppercase;text-align:left;flex:0 0 92px}
  .cb-table td>*{max-width:calc(100% - 102px)}
  .cb-table .cb-product-thumb{max-width:none!important;width:64px;height:64px}
  .cb-table .cb-link-btn{max-width:none!important;min-height:40px}

  .cb-orders-table td:nth-child(1)::before{content:'Pedido'}
  .cb-orders-table td:nth-child(2)::before{content:'Data'}
  .cb-orders-table td:nth-child(3)::before{content:'Cliente'}
  .cb-orders-table td:nth-child(4)::before{content:'Itens'}
  .cb-orders-table td:nth-child(5)::before{content:'Total'}
  .cb-orders-table td:nth-child(6)::before{content:'Status'}
  .cb-orders-table td:nth-child(7)::before{content:'Recibo'}

  .cb-products-table td:nth-child(1)::before{content:'Foto'}
  .cb-products-table td:nth-child(2)::before{content:'Produto'}
  .cb-products-table td:nth-child(3)::before{content:'Tipo'}
  .cb-products-table td:nth-child(4)::before{content:'SKU'}
  .cb-products-table td:nth-child(5)::before{content:'Preço'}
  .cb-products-table td:nth-child(6)::before{content:'Estoque'}
  .cb-products-table td:nth-child(7)::before{content:'Ações'}

  .cb-managers-table td:nth-child(1)::before{content:'Nome'}
  .cb-managers-table td:nth-child(2)::before{content:'Usuário'}
  .cb-managers-table td:nth-child(3)::before{content:'E-mail'}
  .cb-managers-table td:nth-child(4)::before{content:'Criado em'}
  .cb-managers-table td:nth-child(5)::before{content:'Ações'}

  /* Formulários e modais sempre cabem na tela */
  .cb-modal{width:100vw!important;max-width:100vw!important;overflow-x:hidden!important}
  .cb-modal-box{width:100%!important;max-width:100%!important;min-width:0!important;padding:calc(12px + env(safe-area-inset-top)) 12px calc(98px + env(safe-area-inset-bottom))!important;overflow-x:hidden}
  .cb-form-grid{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .cb-form-grid label,.cb-form-grid input,.cb-form-grid select,.cb-form-grid textarea,.cb-image-field,.cb-variable-area{min-width:0!important;max-width:100%!important;width:100%!important}
  .cb-attribute-row,.cb-variation-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;gap:7px}
  .cb-variation-row strong{overflow-wrap:anywhere}
  .cb-modal-actions{width:100%;display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .cb-modal-actions>*{width:100%;min-width:0}
  .cb-modal-actions .cb-primary:only-child{grid-column:1/-1}

  .cb-chart{width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;padding-left:2px;padding-right:2px}
  .cb-chart .cb-bar{flex:0 0 24px!important;min-width:24px!important}

  .cb-mobile-nav{width:100%;max-width:100vw;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}
  .cb-mobile-nav-btn{min-width:0;padding:4px 1px!important;overflow:hidden}
  .cb-mobile-nav-btn small{font-size:9px!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cb-mobile-nav-btn span{font-size:19px!important}

  .cb-sale-alert{max-width:calc(100vw - 20px)!important;left:10px!important;right:10px!important;overflow-wrap:anywhere}
  .cb-toast{max-width:calc(100vw - 20px)!important;left:10px!important;right:10px!important}
}

@media(max-width:390px){
  .cb-main{padding-left:8px!important;padding-right:8px!important}
  .cb-topbar{margin-left:-8px!important;margin-right:-8px!important;padding-left:8px!important;padding-right:8px!important}
  .cb-topbar h1{font-size:18px!important}
  .cb-top-actions .cb-outline,.cb-menu-toggle{width:36px!important;height:36px!important;min-height:36px!important}
  .cb-stat{padding:10px!important}
  .cb-stat strong{font-size:17px!important}
  .cb-table td::before{flex-basis:76px;font-size:10px}
  .cb-table td>*{max-width:calc(100% - 86px)}
}

/* ===== V1.7 DASHBOARD / MOBILE SIDEBAR / NOTIFICACOES / TEMA ===== */
.cb-sidebar{overflow-y:auto;overscroll-behavior:contain}
.cb-sidebar nav{align-content:start}
.cb-nav{position:relative;width:100%;display:flex;align-items:center;gap:9px}
.cb-nav span:last-child:not(.cb-notification-badge){min-width:0}
.cb-notification-badge,.cb-top-badge{display:none;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e23b3b;color:#fff;font-size:10px;font-weight:900;line-height:19px;text-align:center}
.cb-notification-badge{margin-left:auto}
.cb-bell-button{position:relative;width:42px;height:42px;padding:0;display:grid;place-items:center;font-size:18px}
.cb-top-badge{position:absolute;right:-5px;top:-5px}

/* Grafico moderno e animado */
.cb-chart-card{overflow:hidden}
.cb-chart{height:auto!important;min-height:300px!important;display:block!important;padding:0!important;overflow:visible!important}
.cb-chart-inner{position:relative;width:100%;min-height:300px}
.cb-chart svg{display:block;width:100%;height:auto;aspect-ratio:3/1;min-height:280px;overflow:visible}
.cb-chart-grid{stroke:#e8edf4;stroke-width:1;vector-effect:non-scaling-stroke}
.cb-chart-ylabel,.cb-chart-xlabel{fill:#718095;font-size:12px;font-family:Inter,Arial,sans-serif}
.cb-chart-area{fill:url(#cbRevenueArea);opacity:0;animation:cbAreaIn .75s ease forwards .25s}
.cb-chart-line{fill:none;stroke:#ffc400;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:1400;stroke-dashoffset:1400;animation:cbLineDraw 1.15s cubic-bezier(.2,.8,.2,1) forwards}
.cb-chart-point circle:first-child{fill:#fff;stroke:#062d59;stroke-width:3;vector-effect:non-scaling-stroke;opacity:0;animation:cbPointIn .35s ease forwards .72s}
.cb-chart-hit{fill:transparent;cursor:pointer}
.cb-chart-point:hover circle:first-child{fill:#ffc400;transform-box:fill-box;transform-origin:center;transform:scale(1.25)}
.cb-chart-tooltip{position:absolute;z-index:4;transform:translate(-50%,calc(-100% - 14px));background:#062d59;color:#fff;border-radius:10px;padding:9px 11px;pointer-events:none;opacity:0;transition:.18s;white-space:nowrap;box-shadow:0 10px 24px rgba(0,0,0,.2)}
.cb-chart-tooltip.show{opacity:1}
.cb-chart-tooltip strong,.cb-chart-tooltip span{display:block}.cb-chart-tooltip strong{font-size:11px;opacity:.75;margin-bottom:3px}.cb-chart-tooltip span{font-size:14px;font-weight:900}
.cb-chart-empty{height:280px;display:grid;place-items:center;color:#718095;background:linear-gradient(180deg,#fbfcfe,#f6f9fc);border-radius:12px}
@keyframes cbLineDraw{to{stroke-dashoffset:0}}@keyframes cbAreaIn{to{opacity:1}}@keyframes cbPointIn{to{opacity:1}}

/* Central de notificacoes */
.cb-notification-tools{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e3e9f0;border-radius:12px;background:#f7f9fc;margin-bottom:14px}.cb-notification-tools span{font-size:13px;color:#64758a}
.cb-notifications-list{display:grid;gap:9px}.cb-notification-item{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #e3e9f0;border-radius:13px;background:#fff;transition:.2s}.cb-notification-item.unread{border-color:#f0cc4a;background:#fffaf0}.cb-notification-icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#fff1b8;display:grid;place-items:center;font-size:20px}.cb-notification-item strong{display:block;color:#062d59;font-size:14px}.cb-notification-item p{margin:4px 0;color:#53647a;font-size:13px}.cb-notification-item small{color:#8a98a9;font-size:11px}

/* Configuracoes */
.cb-settings-card{max-width:820px}.cb-setting-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;border-top:1px solid #edf1f5}.cb-setting-row:first-of-type{border-top:0}.cb-setting-row strong,.cb-setting-row span{display:block}.cb-setting-row strong{color:#062d59;margin-bottom:4px}.cb-setting-row span{font-size:13px;color:#718095}.cb-theme-switch{display:flex;gap:6px;padding:4px;background:#eef3f9;border-radius:11px}.cb-theme-switch button{border:0;background:transparent;color:#52657a;border-radius:8px;padding:9px 12px;font-weight:800;cursor:pointer}.cb-theme-switch button.active{background:#fff;color:#062d59;box-shadow:0 2px 7px rgba(23,43,77,.11)}.cb-settings-logout{text-decoration:none;display:inline-block;text-align:center}

/* Tema escuro */
html[data-cb-theme="dark"] body.cb-painel-standalone,html[data-cb-theme="dark"] .cb-app{--cb-bg:#07111f;--cb-text:#e8eef6;--cb-border:#1d2a3b;background:#07111f;color:#e8eef6}
html[data-cb-theme="dark"] .cb-main{background:#07111f}
html[data-cb-theme="dark"] .cb-topbar{background:rgba(7,17,31,.94);border-color:#1d2a3b}
html[data-cb-theme="dark"] .cb-topbar h1,html[data-cb-theme="dark"] .cb-user,html[data-cb-theme="dark"] .cb-card-head h3,html[data-cb-theme="dark"] .cb-stat strong,html[data-cb-theme="dark"] .cb-setting-row strong,html[data-cb-theme="dark"] .cb-notification-item strong{color:#f2f6fb!important}
html[data-cb-theme="dark"] .cb-topbar p,html[data-cb-theme="dark"] .cb-card-head p,html[data-cb-theme="dark"] .cb-stat span,html[data-cb-theme="dark"] .cb-stat small,html[data-cb-theme="dark"] .cb-setting-row span,html[data-cb-theme="dark"] .cb-notification-item p,html[data-cb-theme="dark"] .cb-notification-tools span{color:#9aabc0!important}
html[data-cb-theme="dark"] .cb-filterbar,html[data-cb-theme="dark"] .cb-card,html[data-cb-theme="dark"] .cb-stat,html[data-cb-theme="dark"] .cb-modal-box,html[data-cb-theme="dark"] .cb-notification-item{background:#0d1929;border-color:#1d2a3b;box-shadow:none}
html[data-cb-theme="dark"] .cb-presets button,html[data-cb-theme="dark"] .cb-outline,html[data-cb-theme="dark"] .cb-link-btn{background:#152438;color:#d8e5f4;border-color:#25364c}
html[data-cb-theme="dark"] .cb-presets button.active{background:#ffc400;color:#062d59}
html[data-cb-theme="dark"] .cb-custom-range input,html[data-cb-theme="dark"] .cb-toolbar input,html[data-cb-theme="dark"] .cb-form-grid input,html[data-cb-theme="dark"] .cb-form-grid select,html[data-cb-theme="dark"] .cb-form-grid textarea{background:#101e30;border-color:#2a3a50;color:#fff}
html[data-cb-theme="dark"] .cb-table td{border-color:#1f2d40!important}html[data-cb-theme="dark"] .cb-table th{color:#8fa2b9}
html[data-cb-theme="dark"] .cb-status{background:#152438;color:#d9e6f5}
html[data-cb-theme="dark"] .cb-chart-grid{stroke:#1d2b3e}html[data-cb-theme="dark"] .cb-chart-ylabel,html[data-cb-theme="dark"] .cb-chart-xlabel{fill:#8497ae}html[data-cb-theme="dark"] .cb-chart-point circle:first-child{fill:#0d1929;stroke:#ffc400}
html[data-cb-theme="dark"] .cb-notification-tools,html[data-cb-theme="dark"] .cb-manager-permissions{background:#101e30;border-color:#25364c}
html[data-cb-theme="dark"] .cb-notification-item.unread{background:#201d10;border-color:#8d7624}
html[data-cb-theme="dark"] .cb-theme-switch{background:#152438}html[data-cb-theme="dark"] .cb-theme-switch button{color:#9fb0c3}html[data-cb-theme="dark"] .cb-theme-switch button.active{background:#24364c;color:#fff;box-shadow:none}
html[data-cb-theme="dark"] .cb-modal-head,html[data-cb-theme="dark"] .cb-modal-actions{background:#0d1929}

/* Navegacao mobile: somente menu lateral */
.cb-mobile-nav{display:none!important}
@media(max-width:760px){
  .cb-app{padding-bottom:0!important}
  .cb-main{padding-bottom:calc(22px + env(safe-area-inset-bottom))!important}
  .cb-sidebar{width:min(88vw,330px)!important;padding:calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));z-index:200;overflow-y:auto}
  .cb-sidebar nav{gap:5px}.cb-nav{min-height:44px;padding:11px 12px;font-size:14px}
  .cb-sidebar-bottom{padding-top:10px;margin-top:8px;border-top:1px solid rgba(255,255,255,.1)}
  .cb-install-app{display:flex!important}
  .cb-chart{min-height:250px!important;overflow:hidden!important}.cb-chart-inner{min-height:250px}.cb-chart svg{min-height:240px;aspect-ratio:2.1/1}.cb-chart-ylabel{font-size:10px}.cb-chart-xlabel{font-size:10px}.cb-chart-tooltip{max-width:180px;white-space:normal}
  .cb-notification-tools{display:grid;grid-template-columns:1fr;align-items:stretch}.cb-notification-tools .cb-primary{width:100%}.cb-notification-item{padding:12px}.cb-notification-icon{width:38px;height:38px;flex-basis:38px}
  .cb-setting-row{display:grid;grid-template-columns:1fr;gap:12px}.cb-theme-switch{width:100%}.cb-theme-switch button{flex:1}.cb-settings-logout{width:100%}
  .cb-toast{bottom:calc(16px + env(safe-area-inset-bottom))!important}
}
@media(max-width:390px){.cb-chart svg{aspect-ratio:1.8/1}.cb-chart-ylabel{font-size:9px}.cb-chart-xlabel{font-size:9px}}
html.cb-is-standalone .cb-install-app{display:none!important}

/* V1.9 - botão de recibo */
.cb-receipt{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;background:var(--cb-yellow)!important;color:var(--cb-blue)!important;text-decoration:none!important;border:1px solid rgba(6,45,89,.08)!important;box-shadow:0 3px 10px rgba(6,45,89,.10);white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.cb-receipt:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(6,45,89,.16);filter:brightness(.98)}
.cb-receipt:active{transform:translateY(0)}
@media(max-width:760px){.cb-receipt{width:100%!important;min-height:44px!important;margin-top:4px}}
html[data-cb-theme="dark"] .cb-receipt{background:var(--cb-yellow)!important;color:#062d59!important;border-color:transparent!important}

/* ===== V2.2 MOBILE POLISH / LOGO / TOUCH ===== */
.cb-brand-logo-wrap{width:48px;height:48px;flex:0 0 48px;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;padding:5px;box-sizing:border-box;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.cb-brand-logo{display:block;width:100%;height:100%;object-fit:contain}
.cb-login-brand .cb-brand-logo-wrap{width:52px;height:52px;flex-basis:52px}
.cb-manager-actions{display:flex;gap:7px;flex-wrap:wrap}.cb-manager-actions .cb-danger{padding:8px 10px}

@media(max-width:760px){
  html,body,body.cb-painel-standalone{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  .cb-app,.cb-main,.cb-view,#cb-view-products,.cb-card,#cb-products-list{touch-action:pan-y!important;overscroll-behavior-y:auto!important}
  #cb-view-products{overflow:visible!important}
  #cb-view-products .cb-card{overflow:visible!important}
  #cb-products-list{overflow:visible!important;min-height:1px}
  #cb-products-list .cb-table-wrap{overflow:visible!important;margin:0!important;touch-action:pan-y!important}
  #cb-products-list .cb-table{min-width:0!important;width:100%!important;display:block!important}
  #cb-products-list .cb-table thead{display:none!important}
  #cb-products-list .cb-table tbody{display:grid!important;gap:10px!important}
  #cb-products-list .cb-table tr{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:4px 10px!important;background:#fff;border:1px solid var(--cb-border);border-radius:14px;padding:10px!important;box-shadow:0 3px 10px rgba(23,43,77,.04);touch-action:pan-y!important}
  #cb-products-list .cb-table td{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:4px 0!important;border:0!important;min-width:0!important}
  #cb-products-list .cb-table td:first-child{grid-row:1/7;grid-column:1;width:72px!important;align-items:flex-start!important;justify-content:flex-start!important}
  #cb-products-list .cb-table td:first-child::before{display:none!important}
  #cb-products-list .cb-product-thumb{width:68px!important;height:68px!important;border-radius:10px!important}
  #cb-products-list .cb-table td:not(:first-child){grid-column:2}
  #cb-products-list .cb-table td::before{flex:0 0 72px!important;max-width:72px!important}
  #cb-products-list .cb-table td>*{max-width:calc(100% - 82px)!important;overflow-wrap:anywhere}
  #cb-products-list .cb-table td:nth-child(2) strong{font-size:14px}
  #cb-products-list .cb-table td:last-child .cb-link-btn{width:100%!important;min-height:42px!important}

  .cb-modal{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior-y:contain!important;align-items:flex-start!important}
  .cb-modal.open{display:block!important}
  .cb-modal-box{min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;touch-action:pan-y!important;padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}
  #cb-product-form,.cb-form-grid,.cb-image-field,.cb-variable-area{touch-action:pan-y!important;overflow:visible!important}
  .cb-form-grid textarea{min-height:110px;resize:vertical}
  .cb-modal-actions{position:static!important;margin-top:18px!important;padding-bottom:calc(14px + env(safe-area-inset-bottom))!important}
  .cb-modal-head{position:sticky!important;top:0!important;padding:10px 0!important;margin-top:-2px!important}
  .cb-manager-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.cb-manager-actions>*{width:100%!important}
  .cb-brand{padding-bottom:18px!important}.cb-brand-logo-wrap{width:44px;height:44px;flex-basis:44px}.cb-brand strong{font-size:15px}
}

html[data-cb-theme="dark"] #cb-products-list .cb-table tr{background:#0d1929;border-color:#1d2a3b}

/* ===== V2.5 VENDAS / STATUS DE PEDIDOS / CHAT ===== */
.cb-sales-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}.cb-sales-count,.cb-sales-total{padding:16px;border:1px solid var(--cb-border);border-radius:14px;background:#f8fafc;display:flex;flex-direction:column;gap:5px}.cb-sales-summary span{font-size:12px;color:#718096}.cb-sales-summary strong{font-size:24px;color:#062d59}.cb-sales-list{display:grid;gap:9px}.cb-sale-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px;border:1px solid var(--cb-border);border-radius:12px;background:#fff}.cb-sale-row>div{display:grid;gap:3px}.cb-sale-row span{font-size:12px;color:#718096}.cb-sale-value{font-size:18px;color:#062d59;white-space:nowrap}
.cb-order-status-control{display:flex;gap:7px;align-items:center;min-width:245px}.cb-order-status-select{min-height:38px;max-width:190px;border:1px solid var(--cb-border);border-radius:8px;padding:6px 9px;background:#fff;color:#1f2937}.cb-save-order-status{min-height:38px!important;padding:7px 11px!important;font-size:12px!important}
.cb-chat-panel{display:grid;grid-template-columns:340px minmax(0,1fr);height:calc(100vh - 155px);min-height:540px;background:#fff;border:1px solid var(--cb-border);border-radius:16px;overflow:hidden}.cb-chat-list{border-right:1px solid var(--cb-border);overflow-y:auto;padding:14px}.cb-chat-list .cb-card-head{position:sticky;top:-14px;background:#fff;z-index:2;padding:4px 0 12px}.cb-chat-conversation{display:block;width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:12px;padding:12px;margin-bottom:7px;cursor:pointer;color:inherit}.cb-chat-conversation:hover,.cb-chat-conversation.active{background:#f4f7fb;border-color:#dce5ef}.cb-chat-conversation>div{display:flex;justify-content:space-between;gap:8px;align-items:center}.cb-chat-conversation b{background:#ef4444;color:#fff;border-radius:999px;min-width:21px;height:21px;padding:0 6px;display:grid;place-items:center;font-size:11px}.cb-chat-conversation p{margin:6px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#475569;font-size:13px}.cb-chat-conversation small{color:#8592a3;font-size:11px}.cb-chat-thread{display:flex;flex-direction:column;min-width:0}.cb-chat-thread-head{padding:16px 18px;border-bottom:1px solid var(--cb-border);display:flex;flex-direction:column;gap:3px}.cb-chat-thread-head span{font-size:12px;color:#718096}.cb-chat-messages{flex:1;overflow-y:auto;padding:18px;background:#f6f8fb;display:flex;flex-direction:column}.cb-panel-chat-msg{max-width:76%;margin:5px 0;padding:10px 12px;border-radius:14px;overflow-wrap:anywhere}.cb-panel-chat-msg div{white-space:normal}.cb-panel-chat-msg small{display:block;margin-top:5px;font-size:10px;opacity:.65}.cb-panel-chat-msg.customer{align-self:flex-start;background:#fff;border:1px solid #dce4ed}.cb-panel-chat-msg.staff{align-self:flex-end;background:#062d59;color:#fff}.cb-chat-reply-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--cb-border);background:#fff}.cb-chat-reply-form textarea{flex:1;min-width:0;resize:none;border:1px solid #cdd7e1;border-radius:10px;padding:10px 12px;min-height:44px}.cb-chat-reply-form button{min-width:86px}
html[data-cb-theme="dark"] .cb-sales-count,html[data-cb-theme="dark"] .cb-sales-total,html[data-cb-theme="dark"] .cb-sale-row,html[data-cb-theme="dark"] .cb-chat-panel,html[data-cb-theme="dark"] .cb-chat-list .cb-card-head,html[data-cb-theme="dark"] .cb-chat-reply-form,html[data-cb-theme="dark"] .cb-chat-conversation{background:#0d1929;border-color:#1d2a3b}html[data-cb-theme="dark"] .cb-sales-summary strong,html[data-cb-theme="dark"] .cb-sale-value{color:#f2f6fb}html[data-cb-theme="dark"] .cb-order-status-select,html[data-cb-theme="dark"] .cb-chat-reply-form textarea{background:#101e30;border-color:#2a3a50;color:#fff}html[data-cb-theme="dark"] .cb-chat-messages{background:#07111f}html[data-cb-theme="dark"] .cb-chat-conversation:hover,html[data-cb-theme="dark"] .cb-chat-conversation.active{background:#152438}html[data-cb-theme="dark"] .cb-panel-chat-msg.customer{background:#101e30;border-color:#25364c}
@media(max-width:760px){.cb-sales-summary{grid-template-columns:1fr}.cb-sale-row{padding:13px}.cb-order-status-control{display:grid;grid-template-columns:1fr auto;min-width:0;width:100%}.cb-order-status-select{max-width:none;width:100%;min-height:44px}.cb-save-order-status{min-height:44px!important}.cb-chat-panel{grid-template-columns:1fr;height:calc(100dvh - 105px);min-height:0;overflow:hidden}.cb-chat-list{max-height:36%;border-right:0;border-bottom:1px solid var(--cb-border);padding:10px}.cb-chat-list .cb-card-head{top:-10px}.cb-chat-thread{min-height:0}.cb-chat-messages{padding:12px}.cb-panel-chat-msg{max-width:88%}.cb-chat-reply-form{padding:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.cb-chat-reply-form button{min-width:72px}.cb-orders-table td[data-label="Status"]{display:block!important}.cb-orders-table td[data-label="Status"]::before{display:block!important;margin-bottom:7px}.cb-orders-table td[data-label="Status"]>*{max-width:none!important}}

/* V2.6 - Aprovação de recibos por status */
.cb-receipt-state{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.cb-receipt-state>span{font-size:12px;font-weight:800;padding:6px 9px;border-radius:999px}.cb-receipt-state.approved>span{background:#eaf8ef;color:#17753a}.cb-receipt-state.waiting>span{background:#fff6d8;color:#8a6200}.cb-receipt-disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}@media(max-width:760px){.cb-receipt-state{width:100%}.cb-receipt-state .cb-link-btn,.cb-receipt-state .cb-receipt-disabled{width:100%;text-align:center;justify-content:center}}


/* ===== V3.1 MOBILE: GERENTES + CHAT ===== */
.cb-chat-mobile-back{display:none;border:0;background:transparent;color:#062d59;font-weight:900;padding:0 0 8px;cursor:pointer;text-align:left}
html[data-cb-theme="dark"] .cb-chat-mobile-back{color:#ffc400}
@media(max-width:760px){
  /* Gerentes: cards legíveis e ações grandes no celular */
  #cb-view-managers .cb-card{padding:12px!important;overflow:visible!important}
  #cb-view-managers .cb-card-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  #cb-view-managers #cb-new-manager{width:100%!important;min-height:46px!important}
  #cb-managers-list,.cb-managers-table,.cb-managers-table tbody{width:100%!important;min-width:0!important}
  .cb-managers-table thead{display:none!important}
  .cb-managers-table tbody{display:grid!important;gap:12px!important}
  .cb-managers-table tr{display:block!important;background:#fff;border:1px solid var(--cb-border);border-radius:14px;padding:12px!important;box-shadow:0 3px 10px rgba(23,43,77,.04)}
  .cb-managers-table td{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:10px!important;align-items:start!important;padding:7px 0!important;border:0!important;overflow-wrap:anywhere!important}
  .cb-managers-table td::before{font-size:11px!important;font-weight:900!important;color:#718096!important;text-transform:uppercase!important;letter-spacing:.02em!important}
  .cb-managers-table td>*{min-width:0!important;max-width:none!important;text-align:left!important}
  .cb-managers-table td:last-child{display:block!important;padding-top:10px!important;border-top:1px solid var(--cb-border)!important;margin-top:4px!important}
  .cb-managers-table td:last-child::before{display:none!important}
  .cb-manager-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .cb-manager-actions button{min-height:44px!important;width:100%!important}
  html[data-cb-theme="dark"] .cb-managers-table tr{background:#0d1929;border-color:#1d2a3b}

  /* Chat: no celular abre lista OU conversa, sem dividir a tela */
  #cb-view-chat{height:calc(100dvh - 78px)!important;overflow:hidden!important}
  #cb-view-chat .cb-chat-panel{height:100%!important;min-height:0!important;display:block!important;border-radius:12px!important}
  #cb-view-chat .cb-chat-list{display:block!important;height:100%!important;max-height:none!important;border:0!important;padding:10px!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  #cb-view-chat .cb-chat-thread{display:none!important;height:100%!important;min-height:0!important;background:#fff!important}
  #cb-view-chat.cb-chat-open .cb-chat-list{display:none!important}
  #cb-view-chat.cb-chat-open .cb-chat-thread{display:flex!important}
  .cb-chat-mobile-back{display:block!important}
  .cb-chat-thread-head{flex:0 0 auto!important;padding:10px 12px!important;background:#fff!important;position:relative!important;z-index:3!important}
  .cb-chat-messages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:12px 10px!important}
  .cb-panel-chat-msg{max-width:86%!important;font-size:14px!important;padding:9px 11px!important}
  .cb-chat-reply-form{flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;padding:8px!important;padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
  .cb-chat-reply-form textarea{width:100%!important;min-height:46px!important;max-height:110px!important;font-size:16px!important}
  .cb-chat-reply-form button{min-width:76px!important;min-height:46px!important;padding:8px 12px!important}
  .cb-chat-conversation{padding:13px!important;margin-bottom:8px!important;border-color:var(--cb-border)!important;background:#fff!important}
  .cb-chat-conversation strong{font-size:14px!important}
  .cb-chat-conversation p{font-size:13px!important;margin:5px 0!important}
  .cb-chat-conversation small{font-size:11px!important}
  html[data-cb-theme="dark"] #cb-view-chat .cb-chat-thread,html[data-cb-theme="dark"] .cb-chat-thread-head,html[data-cb-theme="dark"] .cb-chat-conversation{background:#0d1929!important}
}
