/* assets/css/cassettes.css */
/* Page Crédits Cassettes (TOSHO) */

.card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 6px 10px -8px rgba(0,0,0,0.10);
}

.btn{
  border:1px solid #cbd5e1;
  background:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn.primary{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}

.btn.danger{
  background:#fff1f2;
  border-color:#fecaca;
  color:#991b1b;
}

.btn.ghost{
  background:#f8fafc;
  border-color:#e2e8f0;
}

.input{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid #cbd5e1;
  outline:none;
}

.select{
  padding:11px 12px;
  border-radius:12px;
  border:1px solid #cbd5e1;
  background:#fff;
  font-weight:800;
  color:#0f172a;
}

.muted{
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.mono{
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

table{
  width:100%;
  border-collapse:collapse;
}

th{
  padding:12px 14px;
  text-align:left;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}

td{
  padding:12px 14px;
  border-bottom:1px solid #f1f5f9;
  vertical-align:top;
}

tr:hover td{
  background:#fafafa;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
}

.tabs{
  display:flex;
  gap:8px;
  background:#f1f5f9;
  padding:6px;
  border-radius:14px;
  border:1px solid #e2e8f0;
}

.tab{
  flex:0 0 auto;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
  color:#334155;
  user-select:none;
}

.tab.active{
  background:#fff;
  border:1px solid #e2e8f0;
  color:#0f172a;
  box-shadow:0 6px 10px -10px rgba(0,0,0,0.18);
}

.kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.kpi{
  padding:14px;
  border-left:4px solid #334155;
}

.kpi .label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#64748b;
  font-weight:900;
}

.kpi .value{
  font-size:22px;
  font-weight:900;
  color:#0f172a;
  margin-top:4px;
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* ====== Bonus UI (1/2/3/4/5) ====== */

.progressWrap{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-end;
}

.progressBar{
  width:120px;
  height:8px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}

.progressFill{
  height:100%;
  width:0%;
  background:#0f172a;
}

/* dropdown actions */
.dd{
  position:relative;
  display:inline-flex;
}

.ddMenu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:220px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 16px 40px -20px rgba(0,0,0,0.35);
  padding:6px;
  z-index:50;
  display:none;
}

.ddMenu.open{ display:block; }

.ddItem{
  width:100%;
  border:0;
  background:transparent;
  padding:10px 10px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  gap:10px;
  align-items:center;
  color:#0f172a;
  text-align:left;
}

.ddItem:hover{ background:#f8fafc; }

.ddSep{
  height:1px;
  background:#e2e8f0;
  margin:6px 6px;
}

/* client view group row */
.clientRow{
  background:#f8fafc;
  font-weight:900;
}

.clientRow td{
  border-bottom:1px solid #e2e8f0;
}

.clientBadge{
  display:inline-flex;
  gap:8px;
  align-items:center;
}

.clientToggle{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.robotChild td{
  background:#fff;
}

.robotChild td:first-child{
  padding-left:44px;
}


.cass-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap; /* si écran petit */
}
