/* TefenuaCRM — habillage moderne (fond uni, champs, listes avec recherche) */
body:not(.bare){background:#f4f6f8 !important}
body.bare{background:linear-gradient(135deg,#0b2530 0%,#0e5f68 60%,#0e7c86 100%) !important}

/* Cartes et blocs plus légers */
.card,.kpi{border-color:#e6eaef;box-shadow:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06)}
.kpi .v{letter-spacing:-.01em}

/* Champs */
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=datetime-local],input[type=tel],input[type=url],input[type=search],select,textarea{
  border-color:#d7dde4;border-radius:8px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(14,124,134,.15)}
select{-webkit-appearance:none;appearance:none;padding-right:32px !important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center !important}
textarea{padding:8px 10px;line-height:1.45;resize:vertical}
::placeholder{color:#9aa5b1}

/* Boutons */
.btn{transition:background .15s,filter .15s,box-shadow .15s}
.btn.primary{box-shadow:0 1px 2px rgba(14,124,134,.25)}

/* Liste avec recherche */
.cb{position:relative;display:block;width:100%}
.cb>select{position:absolute !important;left:0;bottom:0;width:1px !important;height:1px !important;opacity:0;pointer-events:none}
.cb-in{width:100%;height:38px;border:1px solid #d7dde4;border-radius:8px;padding:0 32px 0 10px;font:inherit;color:var(--text);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 10px center}
.cb-in:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(14,124,134,.15)}
.cb-list{position:absolute;z-index:60;left:0;right:0;top:calc(100% + 4px);max-height:280px;overflow:auto;background:#fff;border:1px solid #e3e8ee;
  border-radius:10px;box-shadow:0 12px 28px rgba(16,24,40,.14);padding:4px;display:none;min-width:220px}
.cb.open .cb-list{display:block}
.cb-opt{padding:8px 10px;border-radius:6px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cb-opt:hover,.cb-opt.on{background:#eef7f8}
.cb-opt.sel{font-weight:600;color:var(--brand)}
.cb-none{padding:10px;color:#8a96a3;font-size:13px}

/* Champs facultatifs repliés */
.opt-add{display:inline-flex;align-items:center;gap:6px;background:none;border:1px dashed #c9d2db;border-radius:8px;padding:7px 12px;
  color:var(--brand);font:inherit;font-size:13.5px;font-weight:500;cursor:pointer;margin:2px 8px 2px 0}
.opt-add:hover{background:#eef7f8;border-color:var(--brand)}
.opt-adds{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.opt-add{justify-self:start;align-self:start;height:auto;width:auto}
