/* =========================================================
   BEC — د اړیکو برخې سټایل (نورو برخو ته لاس نه وهي)
   ========================================================= */
#relationsSection{--rl-main:#7c3aed;--rl-main-d:#6428c9;--rl-line:#e8e1f7;--rl-ink:#2e1a5c}
#relationsSection .rl-head h2{margin:14px 0 6px;color:var(--rl-ink)}
#relationsSection .rl-head p,#relationsSection .rl-note{color:#5f5680;font-size:14px;line-height:1.8;margin:0 0 14px}
#relationsSection h3{margin:20px 0 10px;color:var(--rl-ink)}
#relationsSection .rl-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important}
#relationsSection .rl-cards .card{min-height:105px}
#relationsSection .rl-cards .card:before{background:#7c3aed}
#relationsSection .rl-cards .card:nth-child(2):before{background:#16a35a}
#relationsSection .rl-cards .card:nth-child(3):before{background:#0b6cf0}
#relationsSection .rl-cards .card:nth-child(4):before{background:#f59e0b}

#relationsSection .rl-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:2px solid var(--rl-line);margin:8px 0 18px}
#relationsSection .rl-tab{border:0;background:#f2eefc;color:#51407f;padding:11px 18px;border-radius:10px 10px 0 0;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}
#relationsSection .rl-tab:hover{background:#e8e0fa}
#relationsSection .rl-tab.on{background:var(--rl-main);color:#fff}
#relationsSection .rl-pane{display:none}
#relationsSection .rl-pane.on{display:block}

#relationsSection .rl-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
#relationsSection .rl-btn,.rl-dash .rl-btn{border:1px solid #d8cdf1;background:#fff;color:#473571;padding:10px 16px;border-radius:9px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit}
#relationsSection .rl-btn:hover{background:#f6f2fe}
#relationsSection .rl-primary,.rl-dash .rl-primary{background:var(--rl-main,#7c3aed);border-color:var(--rl-main,#7c3aed);color:#fff}
#relationsSection .rl-primary:hover,.rl-dash .rl-primary:hover{background:#6428c9}
#relationsSection .rl-danger{color:#c0262d;border-color:#f0c4c6}
#relationsSection .rl-danger:hover{background:#fdeeee}
#relationsSection .rl-mini{border:1px solid #d8cdf1;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer;font-size:14px;font-family:inherit;font-weight:700}
#relationsSection .rl-rowact{white-space:nowrap}
#relationsSection .rl-rowact .rl-mini{margin-inline-end:4px}

#relationsSection .rl-pick{display:flex;flex-direction:column;gap:6px}
#relationsSection .rl-pick input{padding:8px 10px;border:1px solid #d8cdf1;border-radius:8px;font-family:inherit}
#relationsSection .rl-sentence{margin:12px 0 4px;padding:12px 14px;background:#f6f1ff;border:1px dashed #b9a2ee;border-radius:10px;color:var(--rl-ink);font-weight:700;line-height:1.9;min-height:24px}
#relationsSection .rl-sentence em{font-style:normal;color:var(--rl-main)}
#relationsSection .rl-filter{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 12px}
#relationsSection .rl-filter .search-box{flex:1 1 260px}
#relationsSection .rl-table{min-width:760px}
#relationsSection .rl-table tbody tr:hover{background:#f8f4ff}
#relationsSection .rl-chip{display:inline-block;padding:3px 10px;border-radius:999px;background:#efe8fd;color:#5b2fb8;font-weight:700;font-size:13px}
#relationsSection .rl-chip.rl-in{background:#e5f4ec;color:#157347}
#relationsSection .rl-msg{margin:10px 0;min-height:0;font-size:14px;border-radius:8px}
#relationsSection .rl-msg.ok,#relationsSection .rl-msg.err{padding:10px 12px}
#relationsSection .rl-msg.ok{background:#e1f5e8;color:#14532d}
#relationsSection .rl-msg.err{background:#fde8e7;color:#991b1b}
#relationsSection .rl-empty{color:#8a82a6;padding:14px 4px}

#relationsSection .rl-profile{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid var(--rl-line);border-radius:14px;padding:16px 18px;margin:12px 0}
#relationsSection .rl-avatar{width:64px;height:64px;border-radius:50%;background:#efe8fd;color:#5b2fb8;display:flex;align-items:center;justify-content:center;font-size:26px;overflow:hidden;flex:0 0 64px}
#relationsSection .rl-avatar img{width:100%;height:100%;object-fit:cover}
#relationsSection .rl-profile b{font-size:18px;color:var(--rl-ink)}
#relationsSection .rl-profile small{display:block;color:#6a6190;margin-top:3px}

#relationsSection .rl-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
#relationsSection .rl-group{background:#fff;border:1px solid var(--rl-line);border-radius:14px;padding:14px 16px;box-shadow:0 3px 12px #4b2a9a10}
#relationsSection .rl-group h4{margin:0 0 8px;color:var(--rl-ink);display:flex;justify-content:space-between;gap:8px;align-items:center}
#relationsSection .rl-group ul{list-style:none;margin:8px 0 0;padding:0}
#relationsSection .rl-group li{padding:6px 0;border-top:1px dashed #e8e1f7;font-size:14px;display:flex;justify-content:space-between;gap:8px}
#relationsSection .rl-group li small{color:#7a7199}
#relationsSection .rl-off{opacity:.55}

#relationsSection .rl-sug{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff;border:1px solid var(--rl-line);border-radius:12px;padding:12px 14px;margin:10px 0}
#relationsSection .rl-sug .pair{flex:1 1 320px;line-height:1.9}
#relationsSection .rl-sug .why{color:#a76500;font-size:13px}

.rl-dash{background:#fff;border:1px solid #ebe5f8;border-radius:14px;box-shadow:0 3px 14px #4b2a9a10;padding:18px 20px;margin:16px 0}
.rl-dash .rl-dash-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.rl-dash h3{margin:0;font-size:18px;color:#2e1a5c}
.rl-dash .rl-dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 0}
.rl-dash .rl-dash-stats div{background:#f6f2fe;border-radius:11px;padding:14px;text-align:center}
.rl-dash .rl-dash-stats b{display:block;font-size:28px;color:#4b1fa3}
.rl-dash .rl-dash-stats span{font-size:13px;color:#6a6190}
@media(max-width:760px){#relationsSection .rl-cards,.rl-dash .rl-dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media print{#relationsSection .rl-actions,#relationsSection .rl-tabs{display:none}}
