/* GP_DELETE_RBAC_V11 - thiet ke nho gon cho cay gia pha V14 */
#tc-family-tree.gpv11-ready{
  --gp11-wine:#822239;--gp11-dark:#61283a;--gp11-gold:#d8b675;
  --gp11-creamy:#fff9ea;--gp11-muted:#655044;
}
#tc-family-tree.gpv11-ready .gp-v14-card,
#tc-family-tree.gpv11-ready .gp-v14-person{
  box-sizing:border-box!important;min-width:0!important;
  padding:13px 8px 11px!important;
  border:1.5px solid var(--gp11-gold)!important;border-radius:18px!important;
  background:linear-gradient(155deg,#fffcf4 0%,#fff0d4 100%)!important;
  box-shadow:0 5px 13px rgba(95,45,24,.10),inset 0 2px 0 rgba(255,255,255,.8)!important;
  color:var(--gp11-dark)!important;
}
#tc-family-tree.gpv11-ready .gp-v14-root .gp-v14-card{
  background:linear-gradient(155deg,#fff9e5,#f9e3ba)!important;
  border-color:#bf914a!important;box-shadow:0 6px 18px rgba(105,56,34,.16)!important;
}
#tc-family-tree.gpv11-ready .gp-v14-card>strong,
#tc-family-tree.gpv11-ready .gp-v14-person>strong{
  color:var(--gp11-wine)!important;font-size:clamp(13px,3.4vw,16px)!important;
  line-height:1.28!important;font-weight:800!important;margin:2px 0 5px!important;
  overflow-wrap:anywhere!important;
}
#tc-family-tree.gpv11-ready .gp-v14-card>small,
#tc-family-tree.gpv11-ready .gp-v14-person>small{
  color:var(--gp11-muted)!important;font-size:clamp(11px,2.95vw,13px)!important;
  margin:2px 0!important;line-height:1.32!important;
}
#tc-family-tree.gpv11-ready .gp-v14-row{gap:10px!important}
#tc-family-tree.gpv11-ready .gp-v14-toolbar{
  gap:9px!important;justify-content:center!important;margin:14px auto 18px!important;
}
#tc-family-tree.gpv11-ready .gp-v14-toolbar button{
  padding:8px 12px!important;border:1.5px solid #ccab6c!important;
  border-radius:12px!important;font-size:13px!important;
  background:linear-gradient(180deg,#fffdf7,#fff2d7)!important;
  color:#7a2540!important;font-weight:750!important;
  box-shadow:0 3px 7px #9d67221a!important;
}
#tc-family-tree.gpv11-ready .gp-v14-actions,
#tc-family-tree.gpv11-ready .gpv10-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5px!important;margin:9px 0 0!important;
  align-items:stretch!important;
}
#tc-family-tree.gpv11-ready .gp-v14-actions>button,
#tc-family-tree.gpv11-ready .gpv10-actions>button{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;max-width:100%!important;width:100%!important;
  min-height:32px!important;height:auto!important;margin:0!important;padding:5px 3px!important;
  border-radius:9px!important;border:1px solid #d9be91!important;
  font-weight:750!important;font-size:clamp(10px,2.9vw,12px)!important;line-height:1.2!important;
  overflow-wrap:anywhere!important;white-space:normal!important;
  background:linear-gradient(180deg,#fffcf3,#fff5e4)!important;color:#842d43!important;
  box-shadow:none!important;
}
#tc-family-tree.gpv11-ready .gpv11-actions:not(:has(.gpv11-btn-view))>.gpv11-btn-add{
  grid-column:1/-1!important;
}
#tc-family-tree.gpv11-ready .gpv11-actions:not(:has(.gpv11-btn-delete))>.gpv11-btn-edit{
  grid-column:1/-1!important;
}
#tc-family-tree.gpv11-ready .gpv11-actions>.gpv11-btn-view{
  background:#fff9e9!important;color:#862440!important;
}
#tc-family-tree.gpv11-ready .gpv11-actions>.gpv11-btn-add{
  background:linear-gradient(180deg,#ffedba,#ffdf9c)!important;color:#733a20!important;border-color:#d8af64!important;
}
#tc-family-tree.gpv11-ready .gpv11-actions>.gpv11-btn-edit{
  background:linear-gradient(180deg,#a6354d,#842038)!important;color:#fffaf0!important;border-color:#8c2c42!important;
}
#tc-family-tree.gpv11-ready .gpv11-actions>.gpv11-btn-delete{
  background:linear-gradient(180deg,#f6dfe2,#edc2ca)!important;color:#901c3b!important;border:1px solid #d999a7!important;
}
#tc-family-tree.gpv11-ready .gpv11-actions>.gpv11-btn-delete[disabled]{opacity:.55!important}
#tc-family-tree.gpv11-ready .gpv11-actions>button:focus-visible{outline:2px solid #a82a45!important;outline-offset:2px!important}
#tc-family-tree.gpv11-ready details.gp-generation-collapse>.gp-v14-row{gap:10px!important}
@media(max-width:390px){
  #tc-family-tree.gpv11-ready .gp-v14-row{gap:7px!important}
  #tc-family-tree.gpv11-ready .gp-v14-card{padding:10px 5px 9px!important;border-radius:14px!important}
  #tc-family-tree.gpv11-ready .gp-v14-actions{gap:4px!important}
  #tc-family-tree.gpv11-ready .gp-v14-actions>button{font-size:10px!important;padding:5px 2px!important}
}
