/* Page « Opérateurs et bornes » de l'admin (refonte, écrans 4a / 4b / 4b·b / 4c de design_handoff_admin). Préfixe .ko-. */

[data-ka-pane="operators"] > .ka-crumb { display: none; }
.ko-root { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ko-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; flex: 0 0 auto; color: #A39A90; }
.ko-crumb button { border: 0; background: none; padding: 0; font: 600 13px Archivo, sans-serif; color: #0B5C6B; cursor: pointer; }
.ko-crumb button:hover { text-decoration: underline; }
.ko-crumb b { color: #221E1A; font-weight: 700; }
.ko-crumb-top { font-size: 12.5px; color: #8A8178; }
.ko-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.ko-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: #221E1A; margin: 0; white-space: nowrap; }
.ko-title-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.ko-count { font-size: 12.5px; font-weight: 700; color: #6F675E; background: #EAE5DD; border-radius: 10px; padding: 1px 9px; }
.ko-grow { flex: 1; }
.ko-btn { height: 36px; border-radius: 10px; padding: 0 14px; background: #fff; color: #221E1A; border: 1px solid #E2DBD1; font: 700 13.5px Archivo, sans-serif; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.ko-btn:hover { border-color: #A39A90; }
.ko-btn.p { background: #E01B5D; border-color: #E01B5D; color: #fff; }
.ko-btn.p:hover { background: #C11550; border-color: #C11550; }

.ko-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 0 0 auto; }
.ko-bar input, .ko-bar select { height: 36px; border: 1px solid #E2DBD1; border-radius: 10px; background: #fff; padding: 0 12px; font: 400 13.5px Archivo, sans-serif; color: #221E1A; box-sizing: border-box; }
.ko-bar input[type="search"], .ko-bar input[type="text"] { min-width: 230px; }
.ko-bar input[type="number"] { width: 170px; min-width: 0; }
.ko-bar input:focus, .ko-bar select:focus { outline: none; border-color: #0B7387; }
.ko-fp { height: 36px; border: 1px solid #E2DBD1; border-radius: 10px; background: #fff; padding: 0 12px; font: 600 13.5px Archivo, sans-serif; color: #4E4740; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ko-fp:hover { border-color: #A39A90; }
.ko-fp.on { background: #FCEBC8; border-color: #EBC26A; color: #8A5A07; }
.ko-fp.on::after { content: "×"; font-size: 15px; line-height: 1; }
.ko-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #6F675E; flex: 0 0 auto; }
.ko-legend span { display: flex; align-items: center; gap: 6px; }

.ko-subtabs { margin-bottom: 0; }
.ko-subtabs.views button { font-size: 14px; }
.ko-subtabs.cc button { font-size: 13px; padding: 7px 10px; }
.ko-subtabs.cc { gap: 2px; }

/* Tableaux */
.ko-tw { background: #fff; border: 1px solid #E2DBD1; border-radius: 13px; overflow: auto; max-height: calc(100vh - 330px); min-height: 90px; }
.ko-tw.free { max-height: none; }
table.ko-t { width: 100%; border-collapse: collapse; font-size: 13.5px; color: #4E4740; white-space: nowrap; }
table.ko-t thead th { position: sticky; top: 0; z-index: 2; background: #F8F6F2; text-align: left; padding: 10px 12px; font: 700 11px Archivo, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #6F675E; border-bottom: 1px solid #E2DBD1; white-space: nowrap; }
table.ko-t thead th.r, table.ko-t td.r { text-align: right; }
table.ko-t thead th.s { cursor: pointer; user-select: none; }
table.ko-t thead th.s:hover { color: #221E1A; }
table.ko-t thead th .ar { font-size: 9px; margin-left: 3px; color: #E01B5D; }
table.ko-t td { padding: 7px 12px; height: 44px; box-sizing: border-box; border-bottom: 1px solid #F1ECE5; vertical-align: middle; }
table.ko-t tbody tr:last-child td { border-bottom: 0; }
table.ko-t tbody tr[data-open] { cursor: pointer; }
table.ko-t tbody tr[data-open]:hover { background: #FBF9F6; }
table.ko-t tbody tr.ka-sel { background: #FDEEF3; box-shadow: inset 3px 0 0 #E01B5D; }
table.ko-t td.tr { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
table.ko-t td.wrap { white-space: normal; min-width: 180px; }
table.ko-t td.empty { text-align: center; color: #8A8178; padding: 22px; }
.ko-op { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #221E1A; min-width: 0; }
.ko-op img, .ko-op .ph { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #EDE8E1; flex: 0 0 auto; }
.ko-op .ph { background: #EAE5DD; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #6F675E; border: 0; }
.ko-op span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ko-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #221E1A; }
.ko-price i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ko-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ko-dot i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.ko-2l { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.ko-2l .d { font-size: 11.5px; color: #6F675E; }
.ko-2l .d.bad { color: #C1272D; font-weight: 600; }
.ko-lk { display: inline-flex; gap: 4px; flex-wrap: nowrap; align-items: center; }
.ko-lk span { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 6px; color: #1F8A4C; background: #E3F3E9; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.ko-lk span.miss { color: #8A8178; background: none; border: 1px dashed #CFC7BC; padding: 1px 5px; }
.ko-lk span.more { color: #6F675E; background: #EAE5DD; }
.ko-cmt { display: flex; align-items: center; gap: 6px; min-width: 160px; max-width: 320px; color: #3A342E; cursor: text; }
.ko-cmt .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ko-cmt.empty .tx { color: #A39A90; font-style: italic; }
.ko-cmt svg { width: 13px; height: 13px; flex: 0 0 auto; stroke: #8A8178; }
.ko-cmt-ed { width: 100%; min-width: 220px; box-sizing: border-box; border: 1px solid #0B7387; border-radius: 8px; padding: 6px 8px; font: 400 13px Archivo, sans-serif; resize: vertical; white-space: normal; }
.ko-chev { color: #8A8178; font-weight: 700; }
.ko-pager { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #6F675E; flex: 0 0 auto; }
.ko-pager button { height: 30px; border: 1px solid #E2DBD1; background: #fff; border-radius: 8px; padding: 0 12px; font: 700 12.5px Archivo, sans-serif; cursor: pointer; }
.ko-pager button:disabled { opacity: .45; cursor: default; }
.ko-note { font-size: 12.5px; color: #6F675E; flex: 0 0 auto; }
.ko-h3 { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6F675E; margin: 6px 0 0; text-transform: uppercase; flex: 0 0 auto; }
.ko-trunc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
a.ko-a { color: #0B5C6B; font-weight: 600; text-decoration: none; }
a.ko-a:hover { text-decoration: underline; }

/* Fiche opérateur : 3 cartes */
.ko-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; flex: 0 0 auto; }
.ko-cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ko-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid #E2DBD1; border-radius: 13px; min-width: 0; }
.ko-card > .l { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6F675E; white-space: nowrap; text-transform: uppercase; }
.ko-card .sm { font-size: 12.5px; color: #6F675E; }
.ko-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ko-id img, .ko-id .ph { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; border: 1px solid #EDE8E1; background: #fff; flex: 0 0 auto; }
.ko-id .ph { background: #EAE5DD; display: grid; place-items: center; font-weight: 800; color: #6F675E; }
.ko-id b { font-size: 18px; color: #221E1A; }
.ko-id div { display: flex; flex-direction: column; min-width: 0; }
.ko-cmt-box { min-height: 52px; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #E2DBD1; border-radius: 9px; font: 400 13.5px/1.45 Archivo, sans-serif; color: #3A342E; resize: vertical; }
.ko-cmt-box:focus { outline: none; border-color: #0B7387; }
.ko-seg4 { display: flex; flex-wrap: wrap; }
.ko-dis { opacity: .55; }

/* Provenance des prix (déplacée de admin.html) */
.ko-prov { font-size: 12px; line-height: 1.45; max-height: 150px; overflow-y: auto; }
.ko-prov .ka-prov-line + .ka-prov-line { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #E2DBD1; }
.ka-prov-date { font-weight: 700; white-space: nowrap; }
.ka-prov-cc { color: #6F675E; }
.ka-prov-none { color: #6F675E; }
.ka-prov-alert { color: #b3261e; background: rgba(179,38,30,.07); border-radius: 6px; padding: 5px 7px; margin-bottom: 6px; }
.ka-prov-alert a { color: inherit; }

/* Tableau Applis (champs en place) */
.ko-in { width: 100%; min-width: 180px; box-sizing: border-box; height: 32px; border: 1px solid #E2DBD1; border-radius: 8px; padding: 0 9px; font: 400 12.5px Archivo, sans-serif; color: #221E1A; background: #fff; }
.ko-in:focus { outline: none; border-color: #0B7387; }
.ko-in.ok { border-color: #2E9E5B; }
.ko-in.ko { border-color: #C1272D; }

/* Panneau : champs groupés en 2 colonnes */
.ko-pg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ko-pcheck { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3A342E; }
.ko-pcheck input { width: auto !important; height: auto !important; }
.ko-phist { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 11px; background: #F4F1EC; font-size: 12.5px; color: #3A342E; }
.ko-phist .t { font-size: 11px; font-weight: 700; letter-spacing: .07em; color: #6F675E; text-transform: uppercase; }
.ko-phist .e { line-height: 1.4; }
.ko-phist .e small { color: #8A8178; display: block; }
.ko-perr { color: #C1272D; font-size: 12.5px; }
.ko-ro { padding: 10px 12px; border-radius: 9px; background: #F8F6F2; color: #6F675E; font-size: 12.5px; line-height: 1.45; }


/* Liens d'inscription d'un abonnement (colonne « Liens » de « Tous les abonnements ») : trois points, vert = renseigné, rouge = manquant */
.ko-sublk { display: inline-flex; gap: 12px; white-space: nowrap; }
.ko-sublk span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #4E4740; cursor: default; background: none; border: 0; padding: 0; }
.ko-sublk i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
