/* DASM R6.40 — restore Teams transfer history on web/tablet, desktop Baller crown, Admin close control. */

/* Teams: one soft-blue All Transfers control between Club and the right-side actions. */
#view-teams .r640-transfer-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  min-width:132px;
  padding:0 17px;
  border:1px solid #b7d2e5;
  border-radius:12px;
  background:linear-gradient(180deg,#f7fbfe 0%,#e9f3fa 100%);
  color:#245a87;
  box-shadow:0 3px 11px rgba(36,90,135,.10),inset 0 0 0 1px rgba(255,255,255,.72);
  font:inherit;
  font-size:11px;
  font-weight:900;
  letter-spacing:.025em;
  white-space:nowrap;
  cursor:pointer;
}
#view-teams .r640-transfer-toggle:hover{
  background:linear-gradient(180deg,#f2f8fc 0%,#dfedf7 100%);
  border-color:#9fc4dd;
}
#view-teams .r640-transfer-toggle.active{
  background:linear-gradient(180deg,#edf6fc 0%,#dcecf7 100%);
  border-color:#8db9d6;
  color:#174f7d;
  box-shadow:0 4px 14px rgba(36,90,135,.14),inset 0 0 0 1px rgba(255,255,255,.7);
}
/* The older Beta-only Transfers control is superseded by R6.40. */
#view-teams .transfer-view-toggle{display:none!important}

#view-teams .r640-transfer-history{
  margin:8px 8px 4px;
  padding:10px 11px;
  border:1px solid #d7e5ef;
  border-radius:10px;
  background:linear-gradient(180deg,#fbfdff,#f5f9fc);
}
#view-teams .r640-transfer-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:#245a87;
}
#view-teams .r640-transfer-history-head strong{font-size:10px;letter-spacing:.065em}
#view-teams .r640-transfer-history-head span{font-size:9px;color:#758b9b}
#view-teams .r640-transfer-window{padding:8px 0;border-top:1px solid #e4edf3}
#view-teams .r640-transfer-window:first-of-type{border-top:0;padding-top:0}
#view-teams .r640-transfer-window-title{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}
#view-teams .r640-transfer-window-title b{font-size:10px;color:#173f61}
#view-teams .r640-transfer-window-title small{font-size:8.5px;color:#8394a0}
#view-teams .r640-transfer-move{
  display:grid;
  grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);
  align-items:center;
  gap:7px;
  padding:5px 7px;
  margin-top:4px;
  border-radius:8px;
  background:#fff;
  border:1px solid #e6eef3;
}
#view-teams .r640-transfer-player{min-width:0}
#view-teams .r640-transfer-player em{display:block;font-style:normal;font-size:7.5px;font-weight:950;letter-spacing:.08em}
#view-teams .r640-transfer-player.out em{color:#b55a56}
#view-teams .r640-transfer-player.in em{color:#087052}
#view-teams .r640-transfer-player b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#183d58}
#view-teams .r640-transfer-player small{display:block;margin-top:1px;font-size:8px;color:#7b8d98}
#view-teams .r640-transfer-arrow{text-align:center;color:#628198;font-weight:900}
#view-teams .r640-transfer-empty{font-size:9px;color:#7d8f9a;padding:2px 0}

/* Desktop/web only: move the crown onto the upper-left rim of the Baller football. */
@media(min-width:1367px){
  html body #view-grades .ai-feature.baller .ai-baller-art{
    right:12px!important;
    width:150px!important;
    height:108px!important;
  }
  html body #view-grades .ai-feature.baller .ai-baller-art .ai-ball-wrap{
    right:0!important;
    top:50%!important;
    width:92px!important;
    height:98px!important;
    transform:translateY(-43%)!important;
  }
  html body #view-grades .ai-feature.baller .ai-baller-art .ai-ball{
    width:90px!important;
    height:96px!important;
  }
  html body #view-grades .ai-feature.baller .ai-baller-art .ai-crown{
    right:46px!important;
    top:4px!important;
    width:62px!important;
    height:40px!important;
    transform:rotate(-7deg)!important;
    transform-origin:70% 70%!important;
  }
}

/* Admin close control belongs in the actual top-right corner of the modal. */
#adminModal .admin-modal-card{position:relative!important}
#adminModal #closeAdmin{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  margin:0!important;
  z-index:80!important;
}
#adminModal .modal-head{padding-right:78px!important}

@media(max-width:760px){
  #view-teams .r640-transfer-toggle,#view-teams .transfer-view-toggle{display:none!important}
  #view-teams .r640-transfer-history{display:none!important}
  #adminModal #closeAdmin{top:8px!important;right:8px!important}
}
