@media (min-width:1025px){
  :root{
    --kbpc-bg:var(--theme-bg);
    --kbpc-panel:var(--theme-input);
    --kbpc-panel-2:var(--theme-surface-2);
    --kbpc-panel-3:#0a1912;
    --kbpc-line:var(--theme-border);
    --kbpc-line-soft:var(--theme-border);
    --kbpc-green:var(--theme-accent);
    --kbpc-green-2:var(--theme-accent-strong);
    --kbpc-text:var(--theme-text);
    --kbpc-soft:var(--theme-text-2);
    --kbpc-muted:var(--theme-muted);
    --kbpc-muted-2:var(--theme-muted);
    --kbpc-danger:var(--theme-danger);
    --kbpc-warn:var(--theme-warning);
    --kbpc-radius:10px;
    --kbpc-gap:clamp(12px,.95vw,18px);
    --kbpc-shell-x:clamp(16px,1.35vw,26px);
    --kbpc-shell-y:clamp(14px,1.55vh,22px);
    --kbpc-inner:clamp(14px,1.05vw,20px);
    --kbpc-control-gap:clamp(9px,.68vw,13px);
  }

  *{box-sizing:border-box}
  .kbpc-root{text-rendering:optimizeLegibility}
  .kbpc-root svg{shape-rendering:geometricPrecision}
  .kbpc-root img{image-rendering:auto}
  html,body{min-height:100%;background:var(--kbpc-bg)!important}
  .kbpc-boot-screen{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:var(--theme-bg)}
  .kbpc-boot-screen>div{display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--theme-text)}.kbpc-boot-screen img{width:170px;height:auto;margin-bottom:22px}.kbpc-boot-screen span{width:34px;height:34px;margin-bottom:14px;border:3px solid var(--theme-border);border-top-color:var(--theme-accent);border-radius:50%;animation:kbpcSpin .8s linear infinite}.kbpc-boot-screen strong{font-size:15px}.kbpc-boot-screen small{margin-top:6px;color:var(--theme-muted);font-size:12px}
  @keyframes kbpcSpin{to{transform:rotate(360deg)}}
  .kbpc-root{visibility:hidden;opacity:0}
  body.kovra-business-page.kbpc-ready .kbpc-root{visibility:visible;opacity:1}
  body.kovra-business-page.kbpc-ready{
    margin:0!important;
    padding:0 0 0 var(--km-side,248px)!important;
    min-height:100dvh!important;
    overflow-x:hidden!important;
    font-family:"Segoe UI Variable","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif!important;
    background:
      radial-gradient(circle at 69% -4%,rgba(22,120,61,.11),transparent 31%),
      radial-gradient(circle at 18% 34%,rgba(12,76,41,.055),transparent 28%),
      var(--kbpc-bg)!important;
    color:var(--kbpc-text)!important
  }
  body.kovra-business-page.kbpc-ready>#businessApp{
    position:fixed!important;left:-400vw!important;top:0!important;
    width:1px!important;max-width:none!important;height:1px!important;min-height:0!important;
    margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important
  }
  body.kovra-business-page.kbpc-ready .kb-source-hidden{position:fixed!important;left:-300vw!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
  body.kovra-business-page.kbpc-ready .bottom-nav,
  body.kovra-business-page.kbpc-ready #quickMenu{display:none!important}

  /* TOP / TABS */
  .kbpc-root{
    min-height:100dvh;
    padding:
      max(var(--kbpc-shell-y),env(safe-area-inset-top))
      max(var(--kbpc-shell-x),env(safe-area-inset-right))
      max(var(--kbpc-shell-y),env(safe-area-inset-bottom))
      max(var(--kbpc-shell-x),env(safe-area-inset-left))
  }
  .kbpc-header{
    min-height:clamp(84px,8.7vh,96px);height:auto;
    padding:2px 4px clamp(12px,1.35vh,16px);
    display:flex;align-items:flex-start;justify-content:space-between;gap:clamp(22px,2vw,34px)
  }
  .kbpc-header h1{margin:0;color:var(--theme-text);font-size:37px;line-height:1;letter-spacing:-.025em;font-weight:780}
  .kbpc-header p{margin:11px 0 0;color:var(--theme-text-2);font-size:15px;line-height:1.38}
  .kbpc-header-tools{position:relative;margin-left:auto;z-index:85}
  .kbpc-header-tools>button{height:60px;padding:0 14px;display:flex;align-items:center;gap:8px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface);color:var(--theme-text-2);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
  .kbpc-header-tools>button svg{width:16px;height:16px;color:var(--theme-muted)}
  .kbpc-tools-menu{position:absolute;top:67px;right:0;width:260px;padding:8px;border:1px solid var(--kbpc-line);border-radius:10px;background:var(--theme-surface-2);box-shadow:0 24px 65px rgba(0,0,0,.55)}
  .kbpc-tools-menu[hidden]{display:none!important}
  .kbpc-tools-menu button{width:100%;min-height:58px;padding:9px 10px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text);text-align:left;cursor:pointer}
  .kbpc-tools-menu button:hover{background:var(--theme-accent-soft)}
  .kbpc-tools-menu button>svg{width:22px;height:22px;color:var(--kbpc-green)}
  .kbpc-tools-menu span,.kbpc-tools-menu strong,.kbpc-tools-menu small{display:block}.kbpc-tools-menu strong{font-size:13px}.kbpc-tools-menu small{margin-top:3px;color:var(--theme-muted);font-size:12px}
  .kbpc-switcher{position:relative;width:clamp(330px,24vw,390px);z-index:80}
  .kbpc-switcher>button{
    width:100%;height:60px;padding:0 16px;display:grid;grid-template-columns:34px minmax(0,1fr) 20px;gap:12px;align-items:center;
    border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface);color:var(--theme-text);text-align:left;cursor:pointer
  }
  .kbpc-switcher>button>svg:first-child{width:25px;height:25px}.kbpc-switcher>button>svg:last-child{width:18px;height:18px;color:var(--theme-muted)}
  .kbpc-switcher small,.kbpc-switcher strong{display:block}.kbpc-switcher small{color:var(--theme-muted);font-size:12.5px;letter-spacing:.055em;font-weight:650}.kbpc-switcher strong{margin-top:4px;font-size:15px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kbpc-switcher-menu{position:absolute;top:67px;right:0;width:100%;padding:8px;display:grid;gap:6px;border:1px solid var(--kbpc-line);border-radius:10px;background:var(--theme-surface-2);box-shadow:0 24px 65px rgba(0,0,0,.55)}
  .kbpc-switcher-menu[hidden]{display:none!important}
  .kbpc-switcher-head{padding:9px 10px 11px;border-bottom:1px solid var(--kbpc-line-soft)}.kbpc-switcher-head strong,.kbpc-switcher-head small{display:block}.kbpc-switcher-head strong{font-size:14px}.kbpc-switcher-head small{margin-top:4px;color:var(--theme-muted);font-size:12.5px}
  .kbpc-switch-option,.kbpc-switcher-add{width:100%;min-height:58px;padding:9px 10px;display:grid;grid-template-columns:36px minmax(0,1fr) 18px;gap:10px;align-items:center;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text-2);text-align:left;cursor:pointer}
  .kbpc-switch-option:hover,.kbpc-switch-option.active{background:var(--theme-accent-soft)}
  .kbpc-switch-option>span:first-child,.kbpc-switcher-add>svg{width:32px;height:32px;display:grid;place-items:center;color:var(--kbpc-green)}
  .kbpc-switch-option svg,.kbpc-switcher-add svg{width:20px;height:20px}.kbpc-switch-option span strong,.kbpc-switch-option span small,.kbpc-switcher-add span strong,.kbpc-switcher-add span small{display:block}
  .kbpc-switch-option span strong,.kbpc-switcher-add span strong{font-size:13px}.kbpc-switch-option span small,.kbpc-switcher-add span small{margin-top:3px;color:var(--theme-muted);font-size:12.5px}.kbpc-switch-option>b{color:var(--kbpc-green)}
  .kbpc-switcher-add{margin-top:6px;border-top:1px solid var(--kbpc-line-soft);border-radius:0;grid-template-columns:34px minmax(0,1fr)}
  .kbpc-tabs{height:clamp(58px,6.5vh,64px);display:flex;align-items:stretch;border:1px solid var(--kbpc-line);border-radius:9px;background:var(--theme-surface);overflow:hidden}
  .kbpc-tabs button{position:relative;min-width:132px;padding:0 clamp(20px,1.65vw,28px);border:0;background:transparent;color:var(--theme-text-2);font-size:14px;font-weight:540;cursor:pointer}
  .kbpc-tabs button.active{color:var(--kbpc-green);font-weight:730}.kbpc-tabs button.active:after{content:"";position:absolute;left:18%;right:18%;bottom:0;height:4px;border-radius:2px 2px 0 0;background:var(--kbpc-green)}
  .kbpc-main{padding-top:var(--kbpc-gap)}.kbpc-view[hidden]{display:none!important}
  .kbpc-card{border:1px solid var(--kbpc-line);border-radius:var(--kbpc-radius);background:var(--theme-surface);box-shadow:none}
  .kbpc-card header{min-height:clamp(58px,6.4vh,66px);padding:0 var(--kbpc-inner);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--kbpc-line-soft)}
  .kbpc-card header>div,.kbpc-section-head>div,.kbpc-settings-info>header,.kbpc-docs>header,.kbpc-identity-card>header,.kbpc-module>header{display:flex;align-items:center;gap:var(--kbpc-control-gap)}
  .kbpc-card header svg,.kbpc-section-head svg,.kbpc-settings-info>header>svg,.kbpc-docs>header>svg,.kbpc-identity-card>header>svg,.kbpc-module>header>svg{width:23px;height:23px;color:var(--kbpc-green)}
  .kbpc-card h2{margin:0;color:var(--theme-text);font-size:17px;line-height:1.2;font-weight:700}
  .kbpc-card p{color:var(--theme-muted)}

  /* SUMMARY */
  .kbpc-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--kbpc-gap);margin-bottom:var(--kbpc-gap)}
  .kbpc-kpis article{min-height:clamp(112px,12.8vh,132px);padding:var(--kbpc-inner);display:flex;align-items:flex-start;gap:clamp(13px,1vw,17px);border:1px solid var(--kbpc-line);border-radius:9px;background:var(--theme-surface)}
  .kbpc-kpis article>span{width:54px;height:54px;display:grid;place-items:center;border:1px solid var(--theme-border-strong);border-radius:9px;background:var(--theme-accent-soft);color:var(--kbpc-green);flex:0 0 auto}
  .kbpc-kpis article svg{width:28px;height:28px}.kbpc-kpis small,.kbpc-kpis strong,.kbpc-kpis em{display:block}
  .kbpc-kpis small{color:var(--theme-text-2);font-size:13.5px;font-weight:540}.kbpc-kpis strong{margin-top:8px;color:var(--theme-text);font-size:25px;line-height:1;font-weight:760}.kbpc-kpis em{margin-top:12px;color:var(--theme-muted);font-size:12px;font-style:normal}
  .kbpc-summary-grid{display:grid;grid-template-columns:minmax(0,1fr) 425px;gap:var(--kbpc-gap);align-items:stretch}
  .kbpc-activity header button{border:0;background:transparent;color:var(--kbpc-green);font-size:12px;font-weight:730;cursor:pointer}
  .kbpc-activity-head,.kbpc-activity-row{display:grid;grid-template-columns:86px minmax(235px,1.45fr) 105px 165px 145px;gap:10px;align-items:center}
  .kbpc-activity-head{min-height:47px;padding:0 18px;border-bottom:1px solid var(--kbpc-line-soft);color:var(--theme-muted);font-size:12px}
  .kbpc-activity-row{width:100%;min-height:74px;padding:10px 18px;border:0;border-bottom:1px solid var(--theme-border);background:transparent;color:var(--theme-text-2);text-align:left;cursor:pointer}
  .kbpc-activity-row:hover{background:var(--theme-surface-2)}
  .kbpc-activity-type{display:flex;align-items:center;gap:9px;min-width:0}.kbpc-activity-type>i{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:var(--theme-accent-soft);color:var(--kbpc-green);font-style:normal;flex:0 0 auto}.kbpc-activity-type svg{width:21px;height:21px}.kbpc-activity-type small{color:var(--theme-text-2);font-size:12px}
  .kbpc-activity-copy strong,.kbpc-activity-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbpc-activity-copy strong{font-size:13px;color:var(--theme-text)}.kbpc-activity-copy small{margin-top:5px;color:var(--theme-muted);font-size:12px}
  .kbpc-activity-row>strong{font-size:13px}.kbpc-activity-row>span{font-size:12px;color:var(--theme-text-2)}.kbpc-activity-row>em{display:flex;align-items:center;gap:7px;color:var(--kbpc-green);font-size:12px;font-style:normal;font-weight:670}.kbpc-activity-row>em svg{width:17px;height:17px}
  .kbpc-activity-footer{padding:11px 18px;text-align:center}.kbpc-activity-footer button{height:36px;padding:0 20px;border:1px solid var(--theme-border-strong);border-radius:7px;background:var(--theme-surface-2);color:var(--kbpc-green);font-size:12px;font-weight:700;cursor:pointer}
  .kbpc-summary-side{display:grid;grid-template-rows:auto 1fr;gap:var(--kbpc-gap);min-height:100%}
  .kbpc-quick{padding-bottom:var(--kbpc-inner)}.kbpc-quick-grid{padding:var(--kbpc-inner);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kbpc-control-gap)}
  .kbpc-quick-grid button{min-height:clamp(68px,7.5vh,78px);padding:12px 14px;display:flex;align-items:center;gap:10px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text-2);font-size:12.5px;text-align:left;cursor:pointer}.kbpc-quick-grid button:hover{border-color:var(--theme-border-strong);background:var(--theme-accent-soft)}
  .kbpc-quick-grid svg{width:24px;height:24px;color:var(--theme-text)}.kbpc-quick-grid strong{font-size:12.5px;line-height:1.2}
  .kbpc-business-status{padding-bottom:2px;min-height:155px}.kbpc-business-status header>span{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--theme-border-strong);border-radius:50%;color:var(--kbpc-green)}.kbpc-business-status header>span svg{width:22px;height:22px}.kbpc-business-status>div{padding:var(--kbpc-inner)}.kbpc-business-status>div strong{display:block;font-size:13px}.kbpc-business-status>div p{margin:6px 0 0;font-size:12px;line-height:1.45}

  /* CLIENTS */
  .kbpc-clients-grid{display:grid;grid-template-columns:minmax(0,1fr) 395px;gap:var(--kbpc-gap);align-items:start}
  .kbpc-directory{min-width:0}.kbpc-section-head{min-height:clamp(78px,8.9vh,94px);padding:0 var(--kbpc-inner);display:flex;align-items:center;justify-content:space-between;gap:var(--kbpc-gap);border-bottom:1px solid var(--kbpc-line-soft)}
  .kbpc-section-head>div>svg{width:28px;height:28px}.kbpc-section-head h2{margin:0;font-size:19px}.kbpc-section-head p{margin:6px 0 0;color:var(--theme-muted);font-size:12px}
  .kbpc-directory-tools{display:flex!important;align-items:center!important;gap:var(--kbpc-control-gap)!important}
  .kbpc-directory-tools label{width:245px;height:48px;padding:0 12px;display:flex;align-items:center;gap:8px;border:1px solid var(--kbpc-line);border-radius:8px;background:var(--theme-surface)}.kbpc-directory-tools label svg{width:20px!important;height:20px!important;color:var(--theme-text-2)!important}
  .kbpc-directory-tools input{width:100%;border:0;outline:0;background:transparent;color:var(--theme-text);font-size:12px}
  .kbpc-directory-tools button{height:48px;padding:0 17px;display:flex;align-items:center;gap:8px;border:1px solid var(--theme-border-strong);border-radius:8px;background:var(--theme-accent);color:var(--theme-on-accent);font-size:12.5px;font-weight:820;cursor:pointer}.kbpc-directory-tools button svg{width:18px!important;height:18px!important;color:var(--theme-on-accent)!important}
  .kbpc-client-head,.kbpc-client-row{display:grid;grid-template-columns:minmax(185px,1.45fr) 90px 118px 105px 120px 135px 38px;gap:10px;align-items:center}
  .kbpc-client-head{min-height:47px;padding:0 15px;border-bottom:1px solid var(--kbpc-line-soft);color:var(--theme-muted);font-size:12px}
  .kbpc-client-row{width:100%;min-height:69px;padding:9px 15px;border:0;border-bottom:1px solid var(--theme-border);background:transparent;color:var(--theme-text-2);text-align:left;cursor:pointer}.kbpc-client-row:hover{background:var(--theme-surface-2)}
  .kbpc-client-row.selected{background:var(--theme-accent-soft);box-shadow:inset 2px 0 0 var(--theme-accent),inset 0 0 0 1px var(--theme-border-strong)}
  .kbpc-client-name{display:flex;align-items:center;gap:11px;min-width:0}.kbpc-client-name>i{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:var(--theme-accent-soft);color:var(--kbpc-green);font-style:normal}.kbpc-client-name svg{width:21px;height:21px}
  .kbpc-client-name strong,.kbpc-client-name small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbpc-client-name strong{font-size:12.7px}.kbpc-client-name small{margin-top:4px;color:var(--theme-muted);font-size:12px}
  .kbpc-client-row>span{font-size:12px;color:var(--theme-text-2)}.kbpc-client-row>strong{font-size:12.5px}.kbpc-client-row>em{width:27px;height:27px;display:grid;place-items:center;color:var(--theme-text-2);font-style:normal}.kbpc-client-row>em svg{width:18px;height:18px}
  .kbpc-status{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border-radius:6px;font-size:12px;font-weight:720;white-space:nowrap}.kbpc-status.ok{border:1px solid var(--theme-success);background:var(--theme-success-soft);color:var(--theme-success)}.kbpc-status.debt{border:1px solid rgba(233,190,69,.42);background:var(--theme-warning-soft);color:var(--theme-warning)}.kbpc-status.follow{border:1px solid rgba(154,177,189,.34);background:var(--theme-info-soft);color:var(--theme-text-2)}
  .kbpc-client-footer{min-height:52px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;color:var(--theme-muted);font-size:12px}
  .kbpc-pagination{display:flex;align-items:center;gap:8px}.kbpc-pagination button,.kbpc-pagination strong{width:36px;height:36px;display:grid;place-items:center;border-radius:7px}.kbpc-pagination button{border:1px solid var(--kbpc-line);background:var(--theme-surface);color:var(--theme-text-2);font-size:20px;cursor:pointer}.kbpc-pagination button:disabled{opacity:.35;cursor:default}.kbpc-pagination strong{background:var(--kbpc-green);color:var(--theme-on-accent);font-size:12px}
  .kbpc-client-detail{display:flex;flex-direction:column;gap:var(--kbpc-gap)}.kbpc-client-info{padding-bottom:15px}.kbpc-client-info>header{justify-content:space-between}.kbpc-close{width:30px;height:30px;border:0;background:transparent;color:var(--theme-text-2);font-size:24px;cursor:pointer}
  .kbpc-client-title{padding:var(--kbpc-inner) var(--kbpc-inner) 11px;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:var(--kbpc-control-gap);align-items:center}.kbpc-client-title>i{width:52px;height:52px;display:grid;place-items:center;border:1px solid var(--theme-border-strong);border-radius:9px;background:var(--theme-accent-soft);color:var(--kbpc-green);font-style:normal}.kbpc-client-title svg{width:28px;height:28px}.kbpc-client-title h3{margin:0;font-size:17px}.kbpc-client-title small{display:block;margin-top:6px;color:var(--theme-muted);font-size:12px}
  .kbpc-contact{padding:5px var(--kbpc-inner);display:flex;align-items:center;gap:10px;color:var(--theme-text-2);font-size:12px}.kbpc-contact svg{width:18px;height:18px}
  .kbpc-client-stats{margin:14px var(--kbpc-inner) 0;padding:var(--kbpc-inner);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(13px,1vw,17px);border:1px solid var(--kbpc-line);border-radius:8px;background:var(--theme-surface)}.kbpc-client-stats small,.kbpc-client-stats strong,.kbpc-client-stats em{display:block}.kbpc-client-stats small{color:var(--theme-muted);font-size:12px}.kbpc-client-stats strong{margin-top:6px;color:var(--theme-text);font-size:14px}.kbpc-client-stats em{margin-top:6px;color:var(--theme-muted);font-size:12px;font-style:normal}.kbpc-credit-stat{grid-row:span 2}.kbpc-credit-track{height:6px;margin-top:9px;border-radius:999px;background:var(--theme-surface-3);overflow:hidden}.kbpc-credit-track i{display:block;height:100%;min-width:4px;border-radius:inherit;background:var(--kbpc-green)}
  .kbpc-client-actions{margin:var(--kbpc-inner) var(--kbpc-inner) 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kbpc-control-gap)}.kbpc-client-actions button{min-height:50px;padding:8px 10px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text);font-size:12px;font-weight:660;cursor:pointer}.kbpc-client-actions svg{width:20px;height:20px}
  .kbpc-client-note header{min-height:53px}.kbpc-client-note header>div{display:flex;align-items:center;gap:9px}.kbpc-client-note header button{width:30px;height:30px;display:grid;place-items:center;border:0;background:transparent;color:var(--kbpc-green);cursor:pointer}.kbpc-client-note header button svg{width:20px;height:20px}.kbpc-client-note p{margin:0;padding:15px 17px;color:var(--theme-muted);font-size:12px;line-height:1.55}

  /* ORDER */
  .kbpc-order-grid{display:grid;grid-template-columns:minmax(0,1fr) 425px;gap:var(--kbpc-gap);align-items:start}.kbpc-order-card{padding:var(--kbpc-inner);min-width:0}
  .kbpc-order-title{min-height:auto!important;padding:0 0 var(--kbpc-inner)!important;justify-content:flex-start!important;border-bottom:0!important;gap:var(--kbpc-control-gap)}.kbpc-order-title>svg{width:31px!important;height:31px!important}.kbpc-order-title h2{font-size:20px}.kbpc-order-title p{margin:6px 0 0;font-size:12px}
  .kbpc-order-form{margin:0!important;padding:0!important;border:0!important;background:transparent!important}.kbpc-order-top{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:var(--kbpc-gap);margin-bottom:var(--kbpc-inner)}.kbpc-order-customer-block{display:flex;flex-direction:column;gap:8px}
  .kbpc-order-form .business-field{margin:0!important;display:flex!important;flex-direction:column!important;gap:7px!important;color:var(--theme-text-2)!important;font-size:12px!important}.kbpc-order-form .business-field>span{font-size:12px!important;font-weight:540!important}
  .kbpc-order-form select,.kbpc-order-form input,.kbpc-order-form textarea{border:1px solid var(--kbpc-line)!important;border-radius:8px!important;background:var(--theme-surface)!important;color:var(--theme-text)!important;box-shadow:none!important;outline:0!important}.kbpc-order-form select{height:49px!important;padding:0 12px!important;font-size:12px!important}.kbpc-order-form textarea{height:49px!important;min-height:49px!important;max-height:76px!important;padding:12px!important;font-size:12px!important;resize:vertical!important}
  .kbpc-order-customer-meta{height:34px;padding:0 12px;display:flex;align-items:center;gap:10px;border:1px solid var(--theme-border);border-radius:7px;background:var(--theme-surface-2);color:var(--theme-muted);font-size:12px}.kbpc-order-customer-meta strong{color:var(--theme-text-2);font-weight:600}.kbpc-order-customer-meta i{width:1px;height:14px;background:var(--theme-surface-3)}
  .kbpc-order-columns{height:47px;display:grid;grid-template-columns:minmax(230px,1.65fr) 82px 118px 120px 34px;gap:11px;align-items:center;padding:0 12px;border:1px solid var(--kbpc-line);border-bottom:0;border-radius:8px 8px 0 0;background:var(--theme-surface-2);color:var(--theme-text-2);font-size:12px}
  .kbpc-add-row{height:50px;padding:8px var(--kbpc-inner);display:flex;align-items:center;border-left:1px solid var(--kbpc-line);border-right:1px solid var(--kbpc-line);background:var(--theme-surface)}.kbpc-order-form #addOrderItemButton{height:34px!important;padding:0 14px!important;border:1px solid var(--theme-border-strong)!important;border-radius:7px!important;background:var(--theme-accent-soft)!important;color:var(--kbpc-green)!important;font-size:12px!important;font-weight:720!important;cursor:pointer!important}
  .kbpc-order-form .business-order-items{display:block!important;max-height:415px!important;margin:0!important;padding:0!important;overflow:auto!important;border:1px solid var(--kbpc-line)!important;border-radius:0 0 8px 8px!important;background:var(--theme-surface)!important}.kbpc-order-form .business-order-row{display:grid!important;grid-template-columns:minmax(230px,1.65fr) 82px 118px 120px 34px!important;gap:11px!important;align-items:center!important;min-height:68px!important;margin:0!important;padding:9px 12px!important;border:0!important;border-bottom:1px solid var(--theme-border)!important;border-radius:0!important;background:transparent!important}.kbpc-order-form .business-order-row label{margin:0!important}.kbpc-order-form .business-order-row label>span{display:none!important}.kbpc-order-form .business-order-row input{width:100%!important;height:44px!important;padding:0 10px!important;font-size:12px!important}.kbpc-order-form .business-order-row [data-remove-item]{grid-column:5!important;grid-row:1!important;width:30px!important;height:30px!important;border:0!important;background:transparent!important;color:var(--theme-danger)!important;font-size:18px!important;cursor:pointer!important}.kbpc-order-form .business-line-total{grid-column:4!important;grid-row:1!important;display:flex!important;justify-content:flex-end!important;color:transparent!important;font-size:0!important}.kbpc-order-form .business-line-total strong{color:var(--theme-text)!important;font-size:12px!important}
  .kbpc-order-side{position:sticky;top:14px;display:flex;flex-direction:column;gap:var(--kbpc-gap)}.kbpc-order-summary{padding-bottom:15px}.kbpc-order-summary header>div{display:flex;align-items:center;gap:9px}.kbpc-order-total{padding:17px 18px 13px;display:flex;align-items:end;justify-content:space-between;gap:12px}.kbpc-order-total span{color:var(--theme-muted);font-size:12px}.kbpc-order-total strong{color:var(--kbpc-green);font-size:29px;line-height:1;font-weight:800}
  #kbOrderSaveMount{padding:0 15px}#kbOrderSaveMount #saveOrderButton{width:100%!important;height:52px!important;margin:0!important;border:1px solid var(--theme-border-strong)!important;border-radius:8px!important;background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;font-size:12.5px!important;font-weight:850!important;cursor:pointer!important}
  .kbpc-products{padding-bottom:13px}
  .kbpc-products header>button{border:0;background:transparent;color:var(--kbpc-green);font-size:12px;font-weight:700;cursor:pointer}
  .kbpc-product-grid{padding:var(--kbpc-inner);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kbpc-control-gap)}
  .kbpc-product-card{min-height:62px;padding:8px 9px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text-2);text-align:left;cursor:pointer}
  .kbpc-product-card:hover{border-color:var(--theme-border-strong);background:var(--theme-accent-soft)}
  .kbpc-product-card>span:first-child{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;background:var(--theme-accent-soft);color:var(--kbpc-green)}
  .kbpc-product-card svg{width:19px;height:19px}.kbpc-product-card strong,.kbpc-product-card small{display:block}.kbpc-product-card strong{font-size:12px;line-height:1.25}.kbpc-product-card small{margin-top:4px;color:var(--theme-text-2);font-size:12px;font-weight:650}
  .kbpc-order-actions{padding-bottom:13px}.kbpc-order-actions p{margin:12px 15px;color:var(--theme-muted);font-size:12px;line-height:1.45}.kbpc-order-actions>div:last-child{padding:0 13px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kbpc-order-actions button{min-height:45px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text-2);font-size:12px;font-weight:660;cursor:pointer}.kbpc-order-actions button svg{width:19px;height:19px}

  /* FOLLOWUP */
  .kbpc-follow-grid{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:var(--kbpc-gap);align-items:start}
  .kbpc-follow-tools{padding:12px var(--kbpc-inner);display:flex;align-items:center;gap:var(--kbpc-control-gap);border-bottom:1px solid var(--kbpc-line-soft);overflow:auto}.kbpc-follow-tools label{width:290px;height:43px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid var(--kbpc-line);border-radius:8px;background:var(--theme-surface);flex:0 0 auto}.kbpc-follow-tools label svg{width:19px;height:19px;color:var(--theme-muted)}.kbpc-follow-tools input{width:100%;border:0;outline:0;background:transparent;color:var(--theme-text-2);font-size:12px}.kbpc-follow-tools button{height:38px;padding:0 14px;border:1px solid var(--theme-border);border-radius:999px;background:var(--theme-surface);color:var(--theme-text-2);font-size:12px;white-space:nowrap;cursor:pointer}.kbpc-follow-tools button.active{border-color:var(--kbpc-green);background:var(--theme-accent-soft);color:var(--kbpc-green)}
  .kbpc-follow-head,.kbpc-follow-row{display:grid;grid-template-columns:minmax(175px,1.25fr) 120px 112px 125px 135px 105px;gap:9px;align-items:center}.kbpc-follow-head{min-height:48px;padding:0 14px;border-bottom:1px solid var(--kbpc-line-soft);color:var(--theme-muted);font-size:12px}.kbpc-follow-row{width:100%;min-height:75px;padding:9px 14px;border:0;border-bottom:1px solid var(--theme-border);background:transparent;color:var(--theme-text-2);text-align:left;cursor:pointer}.kbpc-follow-row:hover{background:var(--theme-surface-2)}.kbpc-follow-row.selected{background:var(--theme-accent-soft);box-shadow:inset 3px 0 0 var(--theme-accent),inset 0 0 0 1px var(--theme-border-strong)}
  .kbpc-follow-name{display:flex;align-items:center;gap:10px;min-width:0}.kbpc-follow-name>i{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:var(--theme-accent-soft);color:var(--kbpc-green);font-style:normal}.kbpc-follow-name svg{width:21px;height:21px}.kbpc-follow-name strong,.kbpc-follow-name small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbpc-follow-name strong{font-size:12.5px}.kbpc-follow-name small{margin-top:4px;color:var(--theme-muted);font-size:12px}
  .kbpc-follow-row>span{font-size:12px;color:var(--theme-text-2)}.kbpc-follow-row>span>strong{display:block;font-size:12px}.kbpc-follow-row>span>strong.late{color:var(--theme-danger)}.kbpc-follow-row>span svg{width:16px;height:16px;vertical-align:-3px;margin-right:5px}.kbpc-follow-row>strong{font-size:12px}.kbpc-follow-row>em{color:var(--kbpc-green);font-size:12px;font-style:normal;font-weight:700}
  .kbpc-follow-badge{display:inline-flex;margin-top:5px;padding:4px 8px;border-radius:5px;font-size:12px}.kbpc-follow-badge.urgent{border:1px solid rgba(238,105,101,.42);background:var(--theme-danger-soft);color:var(--theme-danger)}.kbpc-follow-badge.pending{border:1px solid rgba(232,189,78,.42);background:var(--theme-warning-soft);color:var(--theme-warning)}
  .kbpc-follow-detail{display:flex;flex-direction:column;gap:var(--kbpc-gap)}.kbpc-follow-card{padding:16px}.kbpc-follow-title{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center}.kbpc-follow-title>i{width:44px;height:44px;display:grid;place-items:center;border-radius:8px;background:var(--theme-accent-soft);color:var(--kbpc-green);font-style:normal}.kbpc-follow-title svg{width:23px;height:23px}.kbpc-follow-title h2{margin:3px 0 0;font-size:16px}.kbpc-follow-title small{display:block;color:var(--theme-muted);font-size:12px}.kbpc-follow-title em{display:block;margin-top:4px;color:var(--theme-muted);font-size:12px;font-style:normal}.kbpc-follow-reference{font-weight:650!important;color:var(--theme-text-2)!important}
  .kbpc-follow-card dl{margin:16px 0 0}.kbpc-follow-card dl div{min-height:37px;display:grid;grid-template-columns:132px minmax(0,1fr);gap:10px;align-items:center}.kbpc-follow-card dt{color:var(--theme-muted);font-size:12px}.kbpc-follow-card dd{margin:0;color:var(--theme-text);font-size:12px;font-weight:650;text-align:right}.kbpc-follow-card dd.danger{color:var(--theme-danger)}.kbpc-follow-card dd.attention{color:var(--theme-warning)}
  .kbpc-follow-actions{margin-top:var(--kbpc-inner);padding-top:var(--kbpc-inner);border-top:1px solid var(--kbpc-line-soft);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kbpc-control-gap)}.kbpc-follow-actions button{min-height:46px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text-2);font-size:12px;font-weight:650;cursor:pointer}.kbpc-follow-actions button:first-child{border-color:var(--theme-border-strong);background:var(--theme-accent);color:var(--theme-on-accent);font-weight:820}.kbpc-follow-actions svg{width:18px;height:18px;vertical-align:-4px;margin-right:6px}
  .kbpc-follow-history>header>div{display:flex;align-items:center;gap:9px}.kbpc-follow-history>header svg{width:20px;height:20px}.kbpc-follow-history>div:last-child{padding:6px 16px 12px}.kbpc-follow-history article{position:relative;min-height:63px;padding:10px 0 8px 26px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;border-bottom:1px solid var(--theme-border)}.kbpc-follow-history article:last-child{border-bottom:0}.kbpc-follow-history article>i{position:absolute;left:4px;top:18px;width:9px;height:9px;border-radius:50%;background:var(--kbpc-green);box-shadow:none}.kbpc-follow-history article strong,.kbpc-follow-history article small{display:block}.kbpc-follow-history article strong{font-size:12px}.kbpc-follow-history article small{margin-top:4px;color:var(--theme-muted);font-size:12px}.kbpc-follow-history time{color:var(--theme-muted);font-size:12px;white-space:nowrap}

  /* SETTINGS */
  .kbpc-settings-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(430px,1fr);gap:var(--kbpc-gap);align-items:start}.kbpc-settings-left,.kbpc-settings-right{display:flex;flex-direction:column;gap:var(--kbpc-gap)}
  .kbpc-settings-info>header,.kbpc-docs>header,.kbpc-identity-card>header,.kbpc-module>header{min-height:clamp(68px,7.6vh,78px);padding:0 var(--kbpc-inner);border-bottom:1px solid var(--kbpc-line-soft)}.kbpc-settings-info>header h2,.kbpc-docs>header h2,.kbpc-identity-card>header h2,.kbpc-module>header h2{font-size:18px}.kbpc-settings-info>header p,.kbpc-docs>header p,.kbpc-identity-card>header p,.kbpc-module>header p{margin:5px 0 0;color:var(--theme-muted);font-size:12px}
  .kbpc-settings-form{margin:0!important;padding:0!important;display:block!important;border:0!important;background:transparent!important}
  .kbpc-settings-fields{padding:var(--kbpc-inner)!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--kbpc-gap)!important}
  .kbpc-settings-fields .business-field{margin:0!important;display:flex!important;flex-direction:column!important;gap:7px!important;color:var(--theme-text-2)!important}
  .kbpc-settings-fields .business-field:nth-child(5){grid-column:1/-1!important}
  .kbpc-settings-fields .business-field>span{font-size:12px!important}
  .kbpc-settings-fields input,.kbpc-settings-fields select,.kbpc-settings-fields textarea,#kbLogoMount input{width:100%!important;border:1px solid var(--kbpc-line)!important;border-radius:8px!important;background:var(--theme-surface)!important;color:var(--theme-text)!important;box-shadow:none!important;outline:0!important;font-size:12px!important}
  .kbpc-settings-fields input,.kbpc-settings-fields select,#kbLogoMount input{height:49px!important;padding:0 12px!important}.kbpc-settings-fields textarea{min-height:88px!important;padding:12px!important}
  .kbpc-field-control{position:relative}.kbpc-field-control>i{position:absolute;left:12px;top:50%;z-index:2;width:20px;height:20px;display:grid;place-items:center;color:var(--theme-text-2);transform:translateY(-50%);pointer-events:none}.kbpc-field-control>i svg{width:19px;height:19px}.kbpc-field-control input,.kbpc-field-control select{padding-left:42px!important}.kbpc-field-control textarea{padding-left:42px!important}.kbpc-settings-fields .business-field:nth-child(5){position:relative}.kbpc-settings-fields .business-field:nth-child(5) .kbpc-field-control>i{top:17px;transform:none}.kbpc-field-count{position:absolute;right:12px;bottom:10px;color:var(--theme-muted);font-size:12px!important;font-weight:500}
  .kbpc-doc-grid{padding:var(--kbpc-inner) var(--kbpc-inner) 10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kbpc-control-gap)}.kbpc-doc-grid label{min-height:66px;padding:11px 13px;border:1px solid var(--kbpc-line);border-radius:8px;background:var(--theme-surface)}.kbpc-doc-grid span,.kbpc-doc-grid strong{display:block}.kbpc-doc-grid span{color:var(--theme-muted);font-size:12px}.kbpc-doc-grid strong{margin-top:7px;font-size:13.5px}.kbpc-doc-last{margin:2px 18px 0;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--theme-border);border-radius:7px;background:var(--theme-surface)}.kbpc-doc-last span{color:var(--theme-muted);font-size:12px}.kbpc-doc-last strong{font-size:12px}.kbpc-docs>p{margin:8px 18px 15px;color:var(--theme-muted);font-size:12px}
  .kbpc-identity-card{overflow:hidden}
  .kbpc-logo-body{padding:var(--kbpc-inner);display:grid;grid-template-columns:minmax(145px,.95fr) minmax(170px,1.05fr);gap:var(--kbpc-gap);align-items:start}
  .kbpc-logo-preview{min-height:150px;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;border:1px dashed var(--theme-border-strong);border-radius:9px;background:var(--theme-surface);color:var(--theme-text);text-align:center;overflow:hidden}.kbpc-logo-preview svg{width:47px;height:47px;color:var(--theme-text)}.kbpc-logo-preview strong{max-width:85%;font-size:17px}.kbpc-logo-preview img{max-width:82%;max-height:118px;object-fit:contain}
  .kbpc-logo-tools{min-width:0;display:flex;flex-direction:column;gap:10px}.kbpc-logo-tools>button{height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text-2);font-size:12px;font-weight:700;cursor:pointer}.kbpc-logo-tools>button svg{width:19px;height:19px}.kbpc-logo-tools>p{margin:0;color:var(--theme-muted);font-size:12px;line-height:1.45}
  #kbLogoMount{width:100%;padding:0;position:static!important;inset:auto!important;transform:none!important}#kbLogoMount .business-field{margin:0!important;display:flex!important;flex-direction:column!important;gap:7px!important;color:var(--theme-text-2)!important}#kbLogoMount .business-field>span{font-size:12px!important}#kbLogoMount input{width:100%!important;min-width:0!important;height:45px!important}
  .kbpc-module dl{margin:0;padding:0 17px 13px}.kbpc-module dl div{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--theme-border)}.kbpc-module dl div:last-child{border-bottom:0}.kbpc-module dt{display:flex;align-items:center;gap:9px;color:var(--theme-muted);font-size:12px}.kbpc-module dt svg{width:19px;height:19px;color:var(--kbpc-green)}.kbpc-module dd{margin:0;color:var(--theme-text);font-size:12px;font-weight:700;text-align:right}
  .kbpc-settings-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:var(--kbpc-control-gap);align-items:stretch}
  .kbpc-settings-actions>button,.kbpc-settings-actions #kbSaveSettings button{width:100%!important;height:54px!important;border-radius:8px!important;font-size:12px!important;font-weight:800!important;cursor:pointer!important}
  .kbpc-settings-actions>button{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--kbpc-line);background:var(--theme-surface);color:var(--theme-text-2);overflow:hidden}
  .kbpc-settings-actions>button svg{width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;flex:0 0 20px!important}
  .kbpc-settings-actions #kbSaveSettings button{margin:0!important;padding:0 18px!important;border:1px solid var(--theme-border-strong)!important;background:var(--theme-accent)!important;color:var(--theme-on-accent)!important}

  .kbpc-source-products{display:none!important}
  #kbSetAccess{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:0 11px;border:1px solid var(--theme-border-strong);border-radius:999px;background:var(--theme-accent-soft);color:var(--kbpc-green)!important}
  .kbpc-empty{min-height:125px;display:grid;place-items:center;padding:20px;color:var(--theme-muted);font-size:12px}
  /* NEGOCIO PC — canonical desktop dialogs */
  body.kovra-business-page .business-modal{
    z-index:2600!important;
    inset:0 0 0 248px!important;
    width:auto!important;
    align-items:center!important;justify-content:center!important;
    padding:max(22px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))!important;
    background:rgba(0,4,2,.78)!important;
    backdrop-filter:none!important
  }
  body.kovra-business-page .business-modal.open{display:flex!important}
  body.kovra-business-page .business-modal-card{
    width:min(760px,calc(100vw - 64px))!important;
    max-height:min(88dvh,900px)!important;
    overflow:auto!important;
    padding:0!important;
    border:1px solid var(--theme-border)!important;
    border-radius:12px!important;
    background:var(--theme-surface)!important;
    box-shadow:0 30px 90px rgba(0,0,0,.64),inset 0 1px 0 rgba(255,255,255,.018)!important;
    transform:translateY(8px) scale(.992)!important;
    scrollbar-gutter:stable;
  }
  body.kovra-business-page .business-modal.open .business-modal-card{transform:none!important}
  body.kovra-business-page .business-modal-card.wide{width:min(1040px,calc(100vw - 72px))!important}
  body.kovra-business-page .business-modal-head{
    min-height:82px;margin:0!important;padding:18px 20px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;
    border-bottom:1px solid var(--kbpc-line-soft)!important;
    background:var(--theme-surface-2)!important;
  }
  body.kovra-business-page .business-modal-head>div{min-width:0}
  body.kovra-business-page .business-modal-head .business-kicker{
    display:block!important;margin:0 0 5px!important;color:var(--kbpc-green)!important;
    font-size:12px!important;line-height:1!important;font-weight:780!important;letter-spacing:.085em!important
  }
  body.kovra-business-page .business-modal-head h2{
    margin:0!important;color:var(--theme-text)!important;font-size:22px!important;line-height:1.18!important;font-weight:760!important;letter-spacing:-.012em!important
  }
  body.kovra-business-page .business-modal-head small{
    display:block!important;margin-top:5px!important;color:var(--theme-muted)!important;font-size:12px!important
  }
  body.kovra-business-page .business-modal-head>button{
    width:40px!important;height:40px!important;display:grid!important;place-items:center!important;flex:0 0 40px!important;
    border:1px solid var(--theme-border)!important;border-radius:9px!important;
    background:var(--theme-surface)!important;color:var(--theme-text-2)!important;font-size:22px!important;line-height:1!important;cursor:pointer!important
  }
  body.kovra-business-page .business-modal-head>button:hover{border-color:var(--theme-border-strong)!important;color:var(--kbpc-green)!important;background:var(--theme-accent-soft)!important}

  body.kovra-business-page .business-modal .business-form{
    margin:0!important;padding:20px!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;background:transparent!important
  }
  body.kovra-business-page .business-modal .business-field{
    margin:0!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:7px!important;color:var(--theme-text-2)!important
  }
  body.kovra-business-page .business-modal .business-field>span{
    color:var(--theme-muted)!important;font-size:12px!important;font-weight:620!important
  }
  body.kovra-business-page .business-modal .business-field input,
  body.kovra-business-page .business-modal .business-field select,
  body.kovra-business-page .business-modal .business-field textarea{
    width:100%!important;min-width:0!important;
    border:1px solid var(--theme-border)!important;border-radius:8px!important;
    background:var(--theme-input)!important;color:var(--theme-text)!important;
    box-shadow:none!important;outline:none!important;
    font:inherit!important;font-size:12.5px!important;
    transition:border-color .15s ease,box-shadow .15s ease,background .15s ease!important
  }
  body.kovra-business-page .business-modal .business-field input,
  body.kovra-business-page .business-modal .business-field select{height:49px!important;padding:0 12px!important}
  body.kovra-business-page .business-modal .business-field textarea{min-height:92px!important;padding:12px!important;resize:vertical!important}
  body.kovra-business-page .business-modal .business-field input:focus,
  body.kovra-business-page .business-modal .business-field select:focus,
  body.kovra-business-page .business-modal .business-field textarea:focus{
    border-color:var(--theme-border-strong)!important;background:var(--theme-surface)!important;
    box-shadow:none!important
  }
  body.kovra-business-page .business-modal .business-two{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;
    grid-column:1/-1!important
  }
  body.kovra-business-page .business-modal .business-primary,
  body.kovra-business-page .business-modal .business-secondary{
    min-height:50px!important;margin:0!important;padding:0 18px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    border-radius:8px!important;font-size:12.5px!important;font-weight:790!important;cursor:pointer!important
  }
  body.kovra-business-page .business-modal .business-primary{
    border:1px solid var(--theme-border-strong)!important;background:var(--theme-accent)!important;color:var(--theme-on-accent)!important
  }
  body.kovra-business-page .business-modal .business-secondary{
    border:1px solid var(--theme-border)!important;background:var(--theme-surface)!important;color:var(--theme-text-2)!important
  }

  /* Pedido y Encargo: cuatro artículos visibles dentro de un solo cuadro. */
  #businessPedidoForm>.business-pedido-items-panel{
    grid-column:1/-1;min-width:0;overflow:hidden;
    border:1px solid var(--theme-border);border-radius:12px;
    background:var(--theme-surface-2)
  }
  #businessPedidoForm .business-pedido-items-head{
    min-height:58px;padding:9px 12px;border-bottom:1px solid var(--theme-border)
  }
  #businessPedidoForm .business-pedido-items-head .business-secondary{
    min-height:38px!important;padding:0 12px!important
  }
  #businessPedidoForm .business-pedido-items-columns,
  #businessPedidoForm .business-pedido-item{
    grid-template-columns:minmax(0,1fr) 78px 118px 114px 34px;gap:8px
  }
  #businessPedidoForm .business-pedido-items-columns{
    display:grid;align-items:center;padding:9px 20px 9px 12px;
    border-bottom:1px solid var(--theme-border);
    color:var(--theme-muted);font-size:12px;font-weight:700
  }
  #businessPedidoForm .business-pedido-items{
    max-height:256px;overflow-y:auto;overscroll-behavior:contain;
    scrollbar-gutter:stable;align-content:start;
    gap:6px;padding:6px 12px 8px
  }
  #businessPedidoForm .business-pedido-item{
    box-sizing:border-box;height:56px;min-width:0;align-items:center;
    padding:6px 8px;border-radius:8px;background:var(--theme-surface)
  }
  #businessPedidoForm .business-pedido-item label{display:block;min-width:0}
  #businessPedidoForm .business-pedido-item label>span,
  #businessPedidoForm .business-pedido-item-subtotal>span{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0
  }
  #businessPedidoForm .business-pedido-item input{height:40px}
  #businessPedidoForm .business-pedido-item-subtotal{
    grid-column:4;grid-row:1;justify-content:flex-end;align-items:center;
    padding-right:4px;font-size:14px
  }
  #businessPedidoForm .business-pedido-item button[data-remove-pedido-item]{
    grid-column:5;grid-row:1;align-self:center
  }

  /* Nuevo / editar cliente */
  #businessClientModal .business-modal-card{width:min(820px,calc(100vw - 64px))!important}
  #businessClientModal #businessClientForm>input[type="hidden"]{display:none!important}
  #businessClientModal #businessClientForm>.business-field:first-of-type{grid-column:1/-1!important}
  #businessClientModal #businessClientForm>.business-field:nth-of-type(2){grid-column:1/2!important}
  #businessClientModal #businessClientForm>.business-field:last-of-type{grid-column:1/-1!important}
  #businessClientModal #businessClientForm>.business-primary{grid-column:2/3!important;justify-self:end!important;width:min(240px,100%)!important}

  /* Registrar pago */
  #businessPaymentModal .business-modal-card{width:min(800px,calc(100vw - 64px))!important}
  #businessPaymentModal #businessPaymentForm>.business-field:first-child{grid-column:1/-1!important}
  #businessPaymentModal .business-balance-preview{
    grid-column:1/-1!important;min-height:76px!important;padding:14px 16px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
    border:1px solid var(--theme-border-strong)!important;border-radius:9px!important;background:var(--theme-accent-soft)!important
  }
  #businessPaymentModal .business-balance-preview span{color:var(--theme-muted)!important;font-size:12px!important}
  #businessPaymentModal .business-balance-preview strong{color:var(--kbpc-green)!important;font-size:22px!important;font-weight:790!important}
  #businessPaymentModal #businessPaymentForm>.business-field:nth-of-type(4){grid-column:1/-1!important}
  #businessPaymentModal #businessPaymentForm>.business-primary{grid-column:2/3!important;justify-self:end!important;width:min(280px,100%)!important}

  /* Seguimiento manual */
  #businessFollowupModal .business-modal-card{width:min(760px,calc(100vw - 64px))!important}
  #businessFollowupModal #businessFollowupForm>.business-field{grid-column:1/-1!important}
  #businessFollowupModal #businessFollowupForm>.business-primary{grid-column:1/2!important}
  #businessFollowupModal #businessFollowupForm>.business-secondary{grid-column:2/3!important}

  /* Agregar negocio */
  #businessAddModal .business-modal-card{width:min(760px,calc(100vw - 64px))!important}
  #businessAddModal #addBusinessForm>.business-field{grid-column:span 1!important}
  #businessAddModal .business-plan-rule{
    grid-column:1/-1!important;margin:0!important;padding:14px 16px!important;
    display:flex!important;align-items:flex-start!important;gap:12px!important;
    border:1px solid var(--theme-border)!important;border-radius:9px!important;background:var(--theme-surface)!important
  }
  #businessAddModal .business-plan-rule strong{color:var(--theme-text)!important;font-size:12px!important;white-space:nowrap!important}
  #businessAddModal .business-plan-rule span{color:var(--theme-muted)!important;font-size:12px!important;line-height:1.45!important}
  #businessAddModal #addBusinessForm>.business-primary{grid-column:2/3!important;justify-self:end!important;width:min(240px,100%)!important}

  /* Perfil comercial */
  #businessProfileModal .business-modal-card{width:min(1080px,calc(100vw - 72px))!important}
  #businessProfileModal .business-profile-metrics{
    margin:0!important;padding:18px 20px!important;
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important
  }
  #businessProfileModal .business-profile-metrics article{
    min-height:92px!important;padding:14px!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    border:1px solid var(--theme-border)!important;border-radius:9px!important;background:var(--theme-surface)!important
  }
  #businessProfileModal .business-profile-metrics span{color:var(--theme-muted)!important;font-size:12px!important}
  #businessProfileModal .business-profile-metrics strong{margin-top:7px!important;color:var(--theme-text)!important;font-size:18px!important}
  #businessProfileModal .business-profile-line{
    margin:0 20px!important;padding:12px 14px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    border:1px solid var(--theme-border)!important;border-radius:8px!important;background:var(--theme-accent-soft)!important
  }
  #businessProfileModal .business-profile-line span{color:var(--theme-muted)!important;font-size:12px!important}
  #businessProfileModal .business-profile-line strong{color:var(--kbpc-green)!important;font-size:12px!important}
  #businessProfileModal .business-profile-actions{
    margin:14px 20px 0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important
  }
  #businessProfileModal .business-history{margin:16px 20px 0!important;padding:0!important}
  #businessProfileModal .business-history:last-child{margin-bottom:20px!important}
  #businessProfileModal .business-history h3{
    margin:0!important;padding:0 0 10px!important;color:var(--theme-text-2)!important;font-size:13px!important;border-bottom:1px solid var(--kbpc-line-soft)!important
  }
  #businessProfileModal .business-list{display:flex!important;flex-direction:column!important;gap:0!important}
  #businessProfileModal .business-list-item{
    min-height:58px!important;margin:0!important;padding:10px 12px!important;
    border:0!important;border-bottom:1px solid var(--theme-border)!important;border-radius:0!important;background:transparent!important
  }

  /* Documento comercial — visor PC; el documento impreso permanece intacto */
  #businessDocumentModal .business-modal-card{width:min(980px,calc(100vw - 72px))!important}
  #businessDocumentModal .business-document{
    width:min(760px,100%)!important;margin:20px auto!important;padding:30px!important;
    border-radius:8px!important;box-shadow:0 12px 40px rgba(0,0,0,.32)!important
  }
  #businessDocumentModal .business-profile-actions{
    margin:0!important;padding:0 20px 20px!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important
  }

  /* Toast/status PC */
  body.kovra-business-page>.business-status{
    left:auto!important;right:max(22px,env(safe-area-inset-right))!important;bottom:max(22px,env(safe-area-inset-bottom))!important;
    max-width:min(430px,calc(100vw - 44px))!important;padding:12px 15px!important;
    border:1px solid var(--theme-border-strong)!important;border-radius:9px!important;
    background:var(--theme-surface-3)!important;color:var(--theme-text)!important;font-size:12px!important;text-align:left!important;
    transform:translateY(8px)!important;box-shadow:0 18px 48px rgba(0,0,0,.48)!important
  }
  body.kovra-business-page>.business-status.show{transform:none!important}

  /* First-business / locked states also use the PC language */
  @media (min-width:1025px){
    body.kovra-business-page #businessSetup:not([hidden]),
    body.kovra-business-page #businessLocked:not([hidden]){
      width:min(820px,calc(100vw - 80px))!important;margin:clamp(36px,7vh,76px) auto!important;padding:0!important;
      border:1px solid var(--theme-border)!important;border-radius:12px!important;
      background:var(--theme-surface)!important;box-shadow:0 26px 70px rgba(0,0,0,.48)!important
    }
    body.kovra-business-page #businessSetup .business-setup-card,
    body.kovra-business-page #businessLocked .business-lock-card{
      width:100%!important;max-width:none!important;margin:0!important;padding:26px!important;border:0!important;border-radius:inherit!important;background:transparent!important
    }
  }

  /* LAPTOP */
  @media (max-width:1580px){
    :root{--kbpc-gap:clamp(11px,.9vw,14px);--kbpc-shell-x:clamp(14px,1.1vw,18px);--kbpc-shell-y:clamp(12px,1.25vh,16px);--kbpc-inner:clamp(13px,1vw,16px);--kbpc-control-gap:clamp(9px,.72vw,11px)}

    .kbpc-root{padding:max(var(--kbpc-shell-y),env(safe-area-inset-top)) max(var(--kbpc-shell-x),env(safe-area-inset-right)) max(var(--kbpc-shell-y),env(safe-area-inset-bottom)) max(var(--kbpc-shell-x),env(safe-area-inset-left))}.kbpc-header{min-height:78px;height:auto;padding-bottom:12px}.kbpc-header h1{font-size:32px}.kbpc-header p{margin-top:9px;font-size:12.5px}.kbpc-switcher{width:315px}.kbpc-switcher>button{height:56px}.kbpc-switcher small{font-size:12px}.kbpc-switcher strong{font-size:13.5px}.kbpc-tabs{height:56px}.kbpc-tabs button{min-width:104px;padding:0 14px;font-size:12.5px}.kbpc-main{padding-top:13px}
    .kbpc-kpis article{min-height:111px;padding:14px}.kbpc-kpis article>span{width:44px;height:44px}.kbpc-kpis article svg{width:24px;height:24px}.kbpc-kpis small{font-size:12px}.kbpc-kpis strong{font-size:22px}.kbpc-kpis em{margin-top:8px;font-size:12px}
    .kbpc-summary-grid{grid-template-columns:minmax(0,1fr) 340px}.kbpc-clients-grid{grid-template-columns:minmax(0,1fr) 330px}.kbpc-order-grid{grid-template-columns:minmax(0,1fr) 340px}.kbpc-follow-grid{grid-template-columns:minmax(0,1fr) 365px}.kbpc-settings-grid{grid-template-columns:minmax(0,1.25fr) 380px}
    .kbpc-card header{min-height:55px;padding:0 14px}.kbpc-card h2{font-size:14.5px}.kbpc-section-head{min-height:78px;padding:0 14px}.kbpc-section-head h2{font-size:16px}.kbpc-section-head p{font-size:12px}
    .kbpc-directory-tools label{width:215px;height:43px}.kbpc-directory-tools button{height:43px;padding:0 13px;font-size:12px}
    .kbpc-activity-head,.kbpc-activity-row{grid-template-columns:92px minmax(185px,1.35fr) 92px 130px 118px}.kbpc-activity-row{min-height:66px;padding-left:14px;padding-right:14px}.kbpc-activity-copy strong{font-size:12px}.kbpc-activity-copy small,.kbpc-activity-row>span,.kbpc-activity-row>em{font-size:12px}
    .kbpc-client-head,.kbpc-client-row{grid-template-columns:minmax(160px,1.3fr) 72px 94px 84px 96px 103px 28px}.kbpc-client-head{font-size:12px}.kbpc-client-row{min-height:62px;padding-left:11px;padding-right:11px}.kbpc-client-name strong{font-size:12px}.kbpc-client-name small,.kbpc-client-row>span{font-size:12px}.kbpc-client-row>strong{font-size:12px}.kbpc-status{font-size:12px;min-height:27px;padding:0 8px}
    .kbpc-order-top{grid-template-columns:minmax(0,1fr) 245px}.kbpc-order-columns,.kbpc-order-form .business-order-row{grid-template-columns:minmax(180px,1.4fr) 68px 92px 95px 28px!important}.kbpc-order-form .business-order-row input{font-size:12px!important}
    .kbpc-follow-head,.kbpc-follow-row{grid-template-columns:minmax(150px,1.15fr) 95px 90px 100px 100px 86px}.kbpc-follow-row{padding-left:10px;padding-right:10px}.kbpc-follow-name strong{font-size:12px}.kbpc-follow-name small,.kbpc-follow-row>span,.kbpc-follow-row>em{font-size:12px}.kbpc-follow-row>strong{font-size:12px}
  }

  @media (max-width:1160px){
    .kbpc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .kbpc-summary-grid,.kbpc-clients-grid,.kbpc-order-grid,.kbpc-follow-grid,.kbpc-settings-grid{grid-template-columns:minmax(0,1fr)}
    .kbpc-summary-side,.kbpc-client-detail,.kbpc-order-side,.kbpc-follow-detail,.kbpc-settings-right{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
    .kbpc-business-status,.kbpc-client-info,.kbpc-client-note,.kbpc-follow-card,.kbpc-follow-history,.kbpc-identity-card,.kbpc-module,.kbpc-settings-actions{grid-column:1/-1}
    .kbpc-order-actions{grid-column:1/-1}
    .kbpc-directory-tools label{width:205px}
    .kbpc-client-head,.kbpc-client-row{grid-template-columns:minmax(170px,1.35fr) 76px 90px 88px 100px 30px}.kbpc-client-head span:nth-child(3),.kbpc-client-row>span:nth-child(3){display:none}
    .kbpc-follow-head,.kbpc-follow-row{grid-template-columns:minmax(165px,1.25fr) 100px 100px 100px 88px}.kbpc-follow-head span:nth-child(4),.kbpc-follow-row>span:nth-child(4){display:none}
  }

  @media (min-width:1025px) and (max-height:980px){
    :root{--kbpc-gap:10px;--kbpc-shell-y:10px;--kbpc-inner:13px;--kbpc-control-gap:9px}
    .kbpc-root{padding-top:max(var(--kbpc-shell-y),env(safe-area-inset-top))!important;padding-bottom:max(var(--kbpc-shell-y),env(safe-area-inset-bottom))!important}
    .kbpc-header{min-height:72px!important;height:auto!important;padding-bottom:10px!important}
    .kbpc-main{padding-top:10px!important}
    .kbpc-kpis{margin-bottom:10px!important}
    .kbpc-kpis article{min-height:104px!important;padding-top:12px!important;padding-bottom:12px!important}
    .kbpc-card header{min-height:52px}
    .kbpc-section-head{min-height:72px}
    .kbpc-settings-info>header,.kbpc-docs>header,.kbpc-identity-card>header,.kbpc-module>header{min-height:64px}
    .kbpc-settings-fields{padding-top:12px!important;padding-bottom:12px!important}
    .kbpc-logo-body{padding-top:12px;padding-bottom:12px}
  }

  @media (min-width:1760px) and (min-height:990px){
    :root{--kbpc-gap:18px;--kbpc-shell-x:26px;--kbpc-shell-y:20px;--kbpc-inner:20px;--kbpc-control-gap:13px}
    .kbpc-switcher{width:340px}
    .kbpc-summary-grid{grid-template-columns:minmax(0,1fr) 440px}
    .kbpc-clients-grid{grid-template-columns:minmax(0,1fr) 415px}
    .kbpc-order-grid{grid-template-columns:minmax(0,1fr) 445px}
    .kbpc-follow-grid{grid-template-columns:minmax(0,1fr) 455px}
    .kbpc-settings-grid{grid-template-columns:minmax(0,1.3fr) minmax(445px,.9fr)}
    .kbpc-quick-grid button{min-height:80px}
    .kbpc-client-actions button,.kbpc-follow-actions button{min-height:52px}
  }

  @media (min-width:1025px) and (max-width:1240px){
    body.kovra-business-page .business-modal-card,
    #businessClientModal .business-modal-card,
    #businessPaymentModal .business-modal-card,
    #businessFollowupModal .business-modal-card,
    #businessAddModal .business-modal-card{width:min(720px,calc(100vw - 44px))!important}
    body.kovra-business-page .business-modal-card.wide,
    #businessProfileModal .business-modal-card,
    #businessDocumentModal .business-modal-card{width:min(920px,calc(100vw - 44px))!important}
    #businessProfileModal .business-profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  }
}

@media (max-width:1024px){.business-pedido-items-columns{display:none}}

/* Pedido y Encargo en PC: formulario amplio con secciones equilibradas. */
@media (min-width:1025px){
  /* Pedido y Encargo ocupan el espacio de trabajo completo, como Crédito. */
  #businessPedidoModal{
    inset:0 0 0 248px!important;width:auto!important;
    padding:14px!important;align-items:stretch!important;justify-content:stretch!important;
    background:rgba(0,4,2,.92)!important;backdrop-filter:none!important
  }
  #businessPedidoModal .business-modal-card{
    display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
    width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
    margin:0!important;overflow:hidden!important;border-radius:14px!important
  }
  #businessPedidoModal .business-modal-head{position:relative!important;top:auto!important;z-index:8!important;flex:0 0 auto!important}
  #businessPedidoForm{
    display:grid!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;
    overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:14px 16px!important;
    align-content:start!important;align-items:start!important;
    padding:22px clamp(20px,2.2vw,36px) 28px!important
  }
  #businessPedidoForm>input[type="hidden"]{display:none!important}
  #businessPedidoForm>label:has(#pedidoCustomer){
    grid-column:span 6!important;
    min-height:92px!important;justify-content:center!important;
    padding:14px!important;border:1px solid var(--theme-border)!important;
    border-radius:12px!important;background:var(--theme-surface-2)!important
  }
  #businessPedidoForm>label:has(#pedidoCustomer) select{width:100%!important}
  #businessPedidoForm>#pedidoOccasionalPolicy{
    grid-column:span 6!important;align-self:stretch!important;
    min-height:92px!important;padding:14px!important;
    border-radius:12px!important
  }
  #businessPedidoForm>#pedidoRecipientFields,
  #businessPedidoForm>#pedidoDeliveryFields{
    display:grid!important;align-content:start!important;
    grid-column:span 6!important;gap:12px!important;
    min-width:0!important;padding:16px!important;
    border:1px solid var(--theme-border)!important;
    border-radius:12px!important;background:var(--theme-surface-2)!important
  }
  #businessPedidoForm>#pedidoRecipientFields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #businessPedidoForm>#pedidoRecipientFields>.business-two{
    display:grid!important;grid-column:1/-1!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important
  }
  #businessPedidoForm>#pedidoDeliveryFields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #businessPedidoForm>#pedidoDeliveryFields>.business-field{grid-column:span 1!important}
  #businessPedidoForm>.business-pedido-smart,
  #businessPedidoForm>.business-pedido-items-panel{
    grid-column:1/-1!important;min-width:0!important
  }
  #businessPedidoForm>.business-two:has(#pedidoDiscountType),
  #businessPedidoForm>.business-pedido-change-box,
  #businessPedidoForm>.business-pedido-change-preview{
    grid-column:span 6!important;min-width:0!important
  }
  #businessPedidoForm>.business-two:has(#pedidoDiscountType){gap:12px!important}
  #businessPedidoForm>.business-pedido-change-box{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important
  }
  #businessPedidoForm>.business-pedido-change-preview{
    min-height:58px!important;align-items:center!important;padding:14px 16px!important
  }
  #businessPedidoForm>.business-field:has(#pedidoScheduledFor),
  #businessPedidoForm>.business-two:has(#pedidoScheduledFor):has(#pedidoPrepareAt),
  #businessPedidoForm>.business-field:has(#pedidoAlertDays),
  #businessPedidoForm>.business-two:has(#pedidoDeliveryPerson){
    grid-column:span 6!important;min-width:0!important
  }
  #businessPedidoForm>.business-two:has(#pedidoScheduledFor):has(#pedidoPrepareAt),
  #businessPedidoForm>.business-two:has(#pedidoDeliveryPerson){gap:12px!important}
  #businessPedidoForm>.business-field:has(#pedidoNote){grid-column:span 8!important}
  #businessPedidoForm>.business-field:has(#pedidoNote) textarea{min-height:116px!important}
  #businessPedidoForm>.business-pedido-totals{
    grid-column:span 4!important;align-self:stretch!important;
    align-content:center!important;gap:10px!important;
    min-height:116px!important;padding:16px 18px!important;
    border-radius:12px!important
  }
  #businessPedidoForm>.business-pedido-form-actions{
    grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(190px,260px))!important;
    justify-content:end!important;gap:12px!important;padding-top:4px!important
  }
  #businessPedidoForm>.business-pedido-form-actions.single{
    grid-template-columns:minmax(220px,300px)!important
  }
}

/* Mantén Artículos en su fila completa en Encargos, incluidos sus encabezados. */
@media (min-width:1025px){
  #businessPedidoForm>.business-pedido-items-panel{
    grid-row:3 / span 2!important;
    min-height:166px!important
  }
}

/* Reserva cuatro filas visibles y el encabezado completo del cuadro de artículos. */
@media (min-width:1025px){
  #businessPedidoForm>.business-pedido-items-panel{
    grid-row:3 / span 5!important;
    min-height:352px!important
  }
}

/* Pedido y Encargo en PC: misma distribución de Crédito, con panel lateral. */
@media (min-width:1025px){
  #businessPedidoModal{
    inset:138px 0 0 248px!important;
    width:auto!important;
    padding:10px 14px 14px!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    background:transparent!important;
    backdrop-filter:none!important
  }
  #businessPedidoModal .business-modal-card{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important
  }
  #businessPedidoModal .business-modal-head{display:none!important}
  #businessPedidoForm.kbpc-pedido-form{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    padding:0!important
  }
  #businessPedidoForm .kbpc-pedido-layout{
    display:grid!important;
    grid-template-columns:minmax(0,2.1fr) minmax(330px,1fr)!important;
    gap:12px!important;
    align-items:start!important;
    min-height:100%!important;
    padding:0!important
  }
  #businessPedidoForm .kbpc-pedido-main{
    display:grid!important;
    align-content:start!important;
    gap:10px!important;
    min-width:0!important;
    min-height:100%!important;
    padding:14px!important;
    border:1px solid var(--theme-border)!important;
    border-radius:12px!important;
    background:var(--theme-surface)!important
  }
  #businessPedidoForm .kbpc-pedido-title{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
    min-height:56px!important;
    padding:0 0 10px!important;
    border-bottom:1px solid var(--theme-border)!important
  }
  #businessPedidoForm .kbpc-pedido-title h2{
    margin:0!important;
    color:var(--theme-text)!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:800!important
  }
  #businessPedidoForm .kbpc-pedido-title p{
    margin:4px 0 0!important;
    color:var(--theme-muted)!important;
    font-size:12px!important;
    line-height:1.45!important
  }
  #businessPedidoForm .kbpc-pedido-title>button{
    display:grid!important;
    place-items:center!important;
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    margin:0!important;
    border:1px solid var(--theme-border)!important;
    border-radius:9px!important;
    background:var(--theme-surface-2)!important;
    color:var(--theme-text)!important;
    font-size:20px!important;
    cursor:pointer!important
  }
  #businessPedidoForm .kbpc-pedido-customer-row{
    display:grid!important;
    grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr)!important;
    gap:10px!important;
    min-width:0!important
  }
  #businessPedidoForm .kbpc-pedido-customer-row>label,
  #businessPedidoForm #pedidoOccasionalPolicy,
  #businessPedidoForm #pedidoRecipientFields,
  #businessPedidoForm #pedidoDeliveryFields{
    min-width:0!important;
    margin:0!important;
    padding:12px!important;
    border:1px solid var(--theme-border)!important;
    border-radius:10px!important;
    background:var(--theme-surface-2)!important
  }
  #businessPedidoForm .kbpc-pedido-customer-row>label{
    display:grid!important;
    align-content:center!important;
    gap:7px!important
  }
  #businessPedidoForm #pedidoOccasionalPolicy{align-self:stretch!important}
  #businessPedidoForm #pedidoRecipientFields,
  #businessPedidoForm #pedidoDeliveryFields{
    display:grid!important;
    align-content:center!important;
    gap:10px!important
  }
  #businessPedidoForm #pedidoRecipientFields>.business-two,
  #businessPedidoForm #pedidoDeliveryFields{
    grid-template-columns:repeat(2,minmax(0,1fr))!important
  }
  #businessPedidoForm #pedidoRecipientFields>.business-two{gap:10px!important}
  #businessPedidoForm #pedidoRecipientFields .business-field,
  #businessPedidoForm #pedidoDeliveryFields .business-field{min-width:0!important}
  #businessPedidoForm .business-pedido-smart{
    grid-column:auto!important;
    min-width:0!important;
    margin:0!important
  }
  #businessPedidoForm>.kbpc-pedido-layout .business-pedido-items-panel{
    display:flex!important;
    flex-direction:column!important;
    grid-column:auto!important;
    min-width:0!important;
    min-height:164px!important;
    height:auto!important;
    margin:0!important;
    overflow:hidden!important;
    border:1px solid var(--theme-border)!important;
    border-radius:10px!important;
    background:var(--theme-surface-2)!important
  }
  #businessPedidoForm .business-pedido-items-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex:0 0 50px!important;
    min-height:50px!important;
    padding:7px 12px!important;
    border-bottom:1px solid var(--theme-border)!important
  }
  #businessPedidoForm .business-pedido-items-columns{
    flex:0 0 36px!important;
    min-height:36px!important
  }
  #businessPedidoForm .business-pedido-items{
    flex:0 1 auto!important;
    min-height:70px!important;
    max-height:256px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    padding:6px 12px 8px!important
  }
  #businessPedidoForm .business-pedido-item{
    height:56px!important;
    min-height:56px!important
  }
  #businessPedidoForm .kbpc-pedido-main>.business-field:has(#pedidoNote){
    min-width:0!important;
    margin:0!important
  }
  #businessPedidoForm #pedidoNote{min-height:56px!important}
  #businessPedidoForm .kbpc-pedido-rail{
    position:sticky!important;
    top:0!important;
    display:grid!important;
    align-content:start!important;
    gap:10px!important;
    min-width:0!important
  }
  #businessPedidoForm .kbpc-pedido-card{
    min-width:0!important;
    margin:0!important;
    padding:12px!important;
    overflow:hidden!important;
    border:1px solid var(--theme-border)!important;
    border-radius:10px!important;
    background:var(--theme-surface)!important
  }
  #businessPedidoForm .kbpc-pedido-card>header{
    display:flex!important;
    align-items:center!important;
    min-height:28px!important;
    margin:0 0 8px!important;
    padding:0 0 8px!important;
    border-bottom:1px solid var(--theme-border)!important
  }
  #businessPedidoForm .kbpc-pedido-card>header h3{
    margin:0!important;
    color:var(--theme-text)!important;
    font-size:14px!important;
    line-height:1.25!important;
    font-weight:800!important
  }
  #businessPedidoForm .kbpc-pedido-totals{
    display:grid!important;
    gap:8px!important;
    min-height:0!important;
    margin:0!important;
    padding:3px 2px 10px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important
  }
  #businessPedidoForm .business-pedido-form-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important
  }
  #businessPedidoForm .business-pedido-form-actions.single{
    grid-template-columns:minmax(0,1fr)!important
  }
  #businessPedidoForm .business-pedido-form-actions button{width:100%!important;min-width:0!important}
  #businessPedidoForm .kbpc-pedido-rail>.kbpc-pedido-card>.business-two,
  #businessPedidoForm .kbpc-pedido-rail>.kbpc-pedido-card>.business-pedido-change-box{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    min-width:0!important;
    margin:0 0 8px!important
  }
  #businessPedidoForm .kbpc-pedido-rail .business-field{
    min-width:0!important;
    margin:0!important
  }
  #businessPedidoForm .kbpc-pedido-rail .business-field>span{
    font-size:11px!important;
    line-height:1.3!important
  }
  #businessPedidoForm .kbpc-pedido-rail .business-pedido-change-preview{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:36px!important;
    margin:0!important;
    padding:8px 2px 0!important;
    border:0!important;
    border-top:1px solid var(--theme-border)!important;
    border-radius:0!important;
    background:transparent!important
  }
  #businessPedidoForm .kbpc-pedido-rail>.kbpc-pedido-card:last-child>.business-two,
  #businessPedidoForm .kbpc-pedido-rail>.kbpc-pedido-card:last-child>.business-field,
  #businessPedidoForm .kbpc-pedido-rail>.kbpc-pedido-card:last-child>.business-pedido-change-box{
    margin-bottom:8px!important
  }
  #businessPedidoForm .kbpc-pedido-rail>.kbpc-pedido-card:last-child>.business-two:has(#pedidoScheduledFor){
    grid-template-columns:minmax(0,1fr)!important
  }
}

/* Final PC refinements for the Pedido/Encargo workspace. */
@media (min-width:1025px){
  body.kbpc-pedido-open{overflow:hidden!important}
  #businessPedidoModal{
    background:var(--theme-bg)!important;
    backdrop-filter:none!important
  }
  #businessPedidoForm .kbpc-pedido-customer-row{
    grid-template-columns:minmax(0,1fr) minmax(280px,.95fr)!important;
    align-items:start!important;
    gap:12px!important
  }
  #businessPedidoForm .kbpc-pedido-customer-row>.business-field{
    min-height:100%!important
  }
  #businessPedidoForm .kbpc-pedido-customer-row>.business-field:has(#pedidoNote){
    display:grid!important;
    align-content:start!important;
    gap:6px!important;
    min-width:0!important;
    margin:0!important;
    padding:10px!important;
    border:1px solid var(--theme-border)!important;
    border-radius:10px!important;
    background:var(--theme-surface-2)!important
  }
  #businessPedidoForm #pedidoNote{
    width:100%!important;
    min-height:54px!important;
    max-height:78px!important;
    resize:vertical!important
  }
  #businessPedidoForm #pedidoOccasionalPolicy{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:9px 12px!important
  }
  #businessPedidoForm #pedidoOccasionalPolicy>span{
    display:grid!important;
    gap:3px!important;
    min-width:0!important
  }
  #businessPedidoForm #pedidoOccasionalPolicy small{
    line-height:1.35!important
  }
  #businessPedidoForm .kbpc-pedido-delivery-details{
    min-width:0!important;
    margin:0!important;
    border:1px solid var(--theme-border)!important;
    border-radius:10px!important;
    background:var(--theme-surface-2)!important;
    overflow:hidden!important
  }
  #businessPedidoForm .kbpc-pedido-delivery-details>summary{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:46px!important;
    padding:0 14px!important;
    color:var(--theme-text)!important;
    font-size:13px!important;
    font-weight:700!important;
    cursor:pointer!important;
    list-style:none!important
  }
  #businessPedidoForm .kbpc-pedido-delivery-details>summary::-webkit-details-marker{display:none!important}
  #businessPedidoForm .kbpc-pedido-delivery-details>summary:after{
    content:"⌄";
    color:var(--theme-accent)!important;
    font-size:18px!important;
    transition:transform .16s ease
  }
  #businessPedidoForm .kbpc-pedido-delivery-details[open]>summary:after{transform:rotate(180deg)}
  #businessPedidoForm .kbpc-pedido-delivery-details[open]>#pedidoRecipientFields,
  #businessPedidoForm .kbpc-pedido-delivery-details[open]>#pedidoDeliveryFields{
    margin:0 10px 10px!important;
    border-radius:8px!important
  }
  #businessPedidoForm .kbpc-pedido-delivery-details #pedidoDeliveryFields{
    margin-top:0!important
  }
}

/* Give Pedido and Encargo more room for the article list and close cleanly. */
@media (min-width:1025px){
  #businessPedidoModal{
    inset:82px 0 0 248px!important;
    padding:8px 14px 12px!important;
    background:var(--theme-bg)!important
  }
  #businessPedidoForm .business-pedido-items{
    max-height:360px!important
  }
}

@media (min-width:1025px){
  body.kbpc-pedido-open #kbPcRoot .kbpc-tabs{
    visibility:hidden!important;
    pointer-events:none!important
  }
  #businessPedidoForm .business-pedido-items{
    max-height:390px!important
  }
}

/* Customer mode, newest-first items, and clear spacing under the order total. */
@media (min-width:1025px){
  #businessPedidoForm .business-pedido-items{max-height:390px!important}
  #businessPedidoForm.kbpc-pedido-has-client .business-pedido-items{max-height:450px!important}
  #businessPedidoForm #pedidoOccasionalPolicy[hidden]{display:none!important}
  #businessPedidoForm .kbpc-pedido-totals{
    padding-bottom:14px!important;
    margin-bottom:10px!important;
    border-bottom:1px solid var(--theme-border)!important
  }
  #businessPedidoForm .business-pedido-form-actions{
    margin-top:4px!important;
    padding-top:10px!important
  }
}

@media (min-width:1025px){
  #businessPedidoForm .business-pedido-datetime:after{
    content:"▦";
    position:absolute;
    z-index:1;
    top:50%;
    right:13px;
    transform:translateY(-50%);
    color:var(--theme-accent);
    font-size:17px;
    font-weight:700;
    line-height:1;
    pointer-events:none
  }
}


@media (min-width:1025px){
  .kbpc-collections{display:grid;gap:var(--kbpc-gap)}
  .kbpc-collections-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(18px,2vh,26px) clamp(20px,1.5vw,28px);border:1px solid var(--kbpc-line);border-radius:var(--kbpc-radius);background:var(--theme-surface)}
  .kbpc-collections-header h2{margin:4px 0;color:var(--theme-text);font-size:23px}
  .kbpc-collections-header p,.kbpc-collections-activity header p{margin:5px 0 0;color:var(--theme-muted);font-size:13px}
  .kbpc-kicker{color:var(--kbpc-green);font-size:10px;font-weight:800;letter-spacing:.12em}
  .kbpc-collection-primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 18px;border:1px solid var(--theme-accent);border-radius:8px;background:var(--theme-accent);color:var(--theme-on-accent,#041108);font-size:14px;font-weight:750;cursor:pointer}
  .kbpc-collection-primary:hover{filter:brightness(1.08)}
  .kbpc-collection-primary svg{width:18px;height:18px}
  .kbpc-collections-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kbpc-gap)}
  .kbpc-collections-kpis article{display:grid;gap:8px;padding:20px}
  .kbpc-collections-kpis article small{color:var(--theme-muted);font-size:13px}
  .kbpc-collections-kpis article strong{color:var(--theme-text);font-size:25px}
  .kbpc-collections-kpis article span{color:var(--theme-muted);font-size:12px}
  .kbpc-collections-activity header>div{display:flex;align-items:center;gap:var(--kbpc-control-gap)}
  .kbpc-collections-head,.kbpc-collection-row{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(150px,.9fr) minmax(150px,.8fr) minmax(170px,.8fr);gap:16px;align-items:center;padding:0 20px}
  .kbpc-collections-head{min-height:44px;border-bottom:1px solid var(--kbpc-line-soft);color:var(--theme-muted);font-size:12px}
  .kbpc-collection-row{min-height:62px;border-bottom:1px solid var(--kbpc-line-soft);color:var(--theme-text-2);font-size:13px}
  .kbpc-collection-row:last-child{border-bottom:0}
  .kbpc-collection-row strong,.kbpc-collection-row b{color:var(--theme-text)}
  .kbpc-collection-row b{color:var(--kbpc-green)}
  .kbpc-collection-row time{color:var(--theme-muted)}
  .kbpc-collections-empty{padding:36px 20px;color:var(--theme-muted);text-align:center}
}


/* Crédito PC: agrupa artículos y muestra 6 filas ocasionales o 7 al seleccionar cliente. */
@media (min-width:1025px){
  .kbpc-order-items-panel{
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    overflow:hidden!important;
    border:1px solid var(--theme-border)!important;
    border-radius:10px!important;
    background:var(--theme-surface-2)!important
  }
  .kbpc-order-form .kbpc-order-columns{
    flex:0 0 44px!important;
    height:44px!important;
    border:0!important;
    border-bottom:1px solid var(--theme-border)!important;
    border-radius:0!important
  }
  .kbpc-order-form .kbpc-add-row{
    flex:0 0 48px!important;
    height:48px!important;
    border:0!important;
    border-bottom:1px solid var(--theme-border)!important
  }
  .kbpc-order-form .business-order-items{
    flex:0 1 auto!important;
    min-height:0!important;
    max-height:408px!important;
    border:0!important;
    border-radius:0 0 9px 9px!important
  }
  .kbpc-order-form.kbpc-order-has-client .business-order-items{
    max-height:476px!important
  }
}
