/* Brand colors */
:root{
    --brand-navy:#1a4d7c;
    --brand-yellow:#fdef11;
    --text:#0f172a;
    --muted:#475569;
    --border: rgba(26,77,124,.18);
    --row-hover: rgba(253,239,17,.22);
    --card: #ffffff;
  }
  
  .sahamdaran{
    max-width: 920px;
    margin: 24px auto;
    padding: 16px;
    background: linear-gradient(180deg, rgba(26,77,124,.06), rgba(26,77,124,0));
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    direction: rtl;
    width: 590px;
  }
  
  .custom-sahamdaran{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--card);
    border-radius: 14px;
  }
  
  /* Optional: if later you add <thead> content */
  .custom-sahamdaran thead th{
    background: var(--brand-navy);
    color: #fff;
    font-weight: 700;
    padding: 14px 16px;
    text-align: right;
    border-bottom: 3px solid var(--brand-yellow);
  }
  
  .custom-sahamdaran tbody td{
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    vertical-align: middle;
  }
  
  .custom-sahamdaran tbody tr:last-child td{
    border-bottom: none;
  }
  
  .custom-sahamdaran tbody tr{
    transition: background-color .2s ease, transform .08s ease;
  }
  
  .custom-sahamdaran tbody tr:hover{
    background: var(--row-hover);
  }
  
  /* First column: shareholder name (emphasis + brand accent) */
  .custom-sahamdaran td.sahamdar{
    position: relative;
    padding-right: 16px;   
    padding-left: 18px;    
    font-weight: 800;
    color: var(--brand-navy)
  }
  
  .custom-sahamdaran td.sahamdar::before{
    content:none;
    position:absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    border-radius: 999px;
    background: var(--brand-yellow);
  }
  .custom-sahamdaran td.sahamdar::after{
    content:"";
    position:absolute;
    left: 0;               /* مرز بین ستون ۱ و ۲ */
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    border-radius: 999px;
    background: var(--brand-yellow);
  }
  
  /* Second column: role */
  .custom-sahamdaran tbody td:nth-child(2){
    color: var(--muted);
  }
  
  /* Third column: percent as a badge-like cell */
  .custom-sahamdaran tbody td:nth-child(3){
    text-align: center;
    font-weight: 900;
    color: var(--brand-navy);
    white-space: nowrap;
  }
  
  .custom-sahamdaran tbody td:nth-child(3){
    background: linear-gradient(90deg, rgba(253,239,17,.25), rgba(253,239,17,.05));
    border-right: 1px solid rgba(26,77,124,.12);
    border-left: 1px solid rgba(26,77,124,.12);
  }
  
  /* Responsive: stack cells on small screens */
  @media (max-width: 640px){
    .sahamdaran{ padding: 10px; 
      width: 290px;
    }
  
    .custom-sahamdaran,
    .custom-sahamdaran tbody,
    .custom-sahamdaran tr,
    .custom-sahamdaran td{
      display: block;
      width: 100%;
    }

    
    .custom-sahamdaran tbody tr{
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 10px;
      overflow: hidden;
      background: #fff;
    }
  
    .custom-sahamdaran tbody td{
      border-bottom: 1px dashed rgba(26,77,124,.18);
    }
  
    .custom-sahamdaran tbody td:last-child{
      border-bottom: none;
    }
  
    .custom-sahamdaran tbody td:nth-child(3){
      text-align: right;
      border-left: none;
      border-right: none;
    }
  }
  