/* Canigenix native clients. Inherit dark-teal visual language of Inventory and Purchasing. */
#cgxClientsPanel[hidden],#cgxOwnerForm[hidden]{display:none!important}
#appView.cx-clients-open > :not(.clinic-heading):not(#clinicWorkspaceNav):not(#cgxClientsPanel){display:none!important}
#appView.cx-clients-open #cgxClientsPanel{display:block!important}
#cgxClientsNav[aria-current="page"]{background:#178b87;color:#fff;border-color:#52d2c2}
#cgxClientsPanel{--owner-border:rgba(168,221,220,.28);color:#ebf9f8;margin:20px 0 32px;font-size:14px}
#cgxClientsPanel *{box-sizing:border-box}#cgxClientsPanel h2,#cgxClientsPanel h3,#cgxClientsPanel h4{color:#f7ffff}
#cgxClientsPanel h2{font-size:26px;margin:6px 0 8px}#cgxClientsPanel h3{font-size:18px;margin:0 0 14px}#cgxClientsPanel h4{font-size:15px;margin:0 0 12px}
#cgxClientsPanel .cgx-owner-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
#cgxClientsPanel .cgx-owner-muted{color:#bdd9d9;font-size:13px;line-height:1.5;margin:6px 0 12px;overflow-wrap:anywhere}
#cgxClientsPanel .cgx-owner-chip{border:1px solid #55b7af;border-radius:20px;padding:6px 10px;color:#b9f8ef;font-size:11px;white-space:nowrap}
#cgxClientsPanel .cgx-owner-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
#cgxClientsPanel .cgx-owner-notice{min-height:24px;color:#aff4e3;font-weight:600;margin:10px 0}#cgxClientsPanel .cgx-owner-error{color:#ffc2b5}
#cgxClientsPanel .cgx-owner-card{background:linear-gradient(140deg,#193e4b,#224e59);border:1px solid var(--owner-border);border-radius:16px;padding:20px;min-width:0;margin-bottom:16px}
#cgxClientsPanel .cgx-owner-layout{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.6fr);gap:16px;align-items:start}
#cgxClientsPanel .cgx-owner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#cgxClientsPanel .cgx-owner-field{display:flex;flex-direction:column;gap:6px;color:#e5f9f8;font-size:12px;font-weight:700;min-width:0;margin:10px 0}
#cgxClientsPanel input,#cgxClientsPanel select,#cgxClientsPanel textarea{width:100%;min-height:42px;padding:9px 10px;border:1px solid #95bdb9;border-radius:9px;background:#f4faf9!important;color:#19343d!important;opacity:1!important;font-size:14px;min-width:0}
#cgxClientsPanel select option{background:#fff;color:#19343d}#cgxClientsPanel textarea{min-height:86px;resize:vertical}
#cgxClientsPanel button{min-height:39px;cursor:pointer;margin:3px 5px 3px 0}#cgxClientsPanel button.primary{background:#43bb99!important;color:#102e32!important;border:1px solid #43bb99!important}
#cgxClientsPanel button.outline{background:#224d59!important;color:#f0ffff!important;border:1px solid #6caaac!important}#cgxClientsPanel button:focus-visible{outline:3px solid #b8fff4;outline-offset:2px}
#cgxClientsPanel .cgx-owner-list{display:flex;flex-direction:column;gap:9px;max-height:750px;overflow-y:auto;margin-top:10px}
#cgxClientsPanel .cgx-owner-entry{display:flex;flex-direction:column;align-items:stretch;gap:6px;background:#285663!important;color:#ecfffc!important;border:1px solid #497e84!important;border-radius:12px;padding:12px 14px;text-align:left;width:100%;line-height:1.35}
#cgxClientsPanel .cgx-owner-entry.cgx-owner-selected{border-color:#60e0c4!important;box-shadow:0 0 0 1px #60e0c4 inset}
#cgxClientsPanel .cgx-owner-entry span,#cgxClientsPanel .cgx-owner-entry small{color:#c2e8e6}
#cgxClientsPanel .cgx-owner-sub{border:1px solid var(--owner-border);background:#153c48;border-radius:12px;margin:14px 0;padding:14px;min-width:0}
#cgxClientsPanel .cgx-owner-line{display:flex;flex-direction:column;gap:5px;padding:10px 0;border-bottom:1px solid var(--owner-border);overflow-wrap:anywhere}
#cgxClientsPanel .cgx-owner-line span,#cgxClientsPanel .cgx-owner-line small{color:#c3dfe0;font-size:12px}
#cgxClientsPanel .cgx-owner-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}#cgxClientsPanel .cgx-owner-row select{flex:1;min-width:180px}
@media(max-width:1000px){#cgxClientsPanel .cgx-owner-layout{grid-template-columns:1fr}}
@media(max-width:650px){#cgxClientsPanel .cgx-owner-grid{grid-template-columns:1fr}#cgxClientsPanel .cgx-owner-head{flex-direction:column}#cgxClientsPanel .cgx-owner-card{padding:15px}}
#cgxClientsPanel .cgx-owner-line button{align-self:flex-start}
