/* Download Center v566: safe file-menu hit area, Manage UI, and button colors */

/*
  Keep the action controls above legacy themes that stretch .file-link across
  the row. These rules only affect hit testing; they do not block any clicks.
*/
#fileRows .actions {
  position: relative !important;
  z-index: 4 !important;
  pointer-events: auto !important;
}

#fileRows .file-menu {
  position: relative !important;
  z-index: 5 !important;
  pointer-events: auto !important;
}

#fileRows .menu-pop {
  z-index: 6 !important;
  pointer-events: auto !important;
}

#fileRows [data-menu],
#fileRows [data-action],
#fileRows [data-share],
#fileRows .menu-pop a {
  pointer-events: auto !important;
}

#usersList button,
#clearAuditBtn,
#sharesList button {
  background: #242a32;
  color: #eef3f8;
  border: 1px solid #4a5360;
}

#usersList button:hover:not(:disabled),
#clearAuditBtn:hover:not(:disabled),
#sharesList button:hover:not(:disabled) {
  background: #303741;
  color: #fff;
  border-color: #626d7c;
}

#usersList button[data-user-password] {
  background: #3b2f17 !important;
  color: #ffd27a !important;
  border-color: #9a752a !important;
}

#usersList button[data-user-password]:hover:not(:disabled) {
  background: #4a3a1c !important;
  color: #ffe3a4 !important;
  border-color: #c3983d !important;
}

#manageDialog button.ui-primary {
  background: #2679e8 !important;
  color: #fff !important;
  border-color: #70adff !important;
}

#manageDialog button.ui-primary:hover:not(:disabled) {
  background: #3488f4 !important;
  color: #fff !important;
  border-color: #8bbcff !important;
}

#manageDialog button.ui-danger,
#manageDialog button.clear-revoked-btn {
  background: #3a1f25 !important;
  color: #ff9da8 !important;
  border-color: #9d4651 !important;
}

#manageDialog button.ui-danger:hover:not(:disabled),
#manageDialog button.clear-revoked-btn:hover:not(:disabled) {
  background: #512830 !important;
  color: #ffc0c7 !important;
  border-color: #c95a68 !important;
}

#manageDialog button.clear-revoked-btn {
  color: #ffabb4 !important;
  border-color: #a44752 !important;
}

#manageDialog button.clear-revoked-btn:hover:not(:disabled) {
  color: #ffd0d5 !important;
}

#manageDialog button:disabled,
#manageDialog button.clear-revoked-btn:disabled {
  background: #252a30 !important;
  color: #8e98a5 !important;
  border-color: #3e4650 !important;
  opacity: .72;
  cursor: not-allowed;
}

#clearAuditBtn,
#clearRevokedBtn {
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.clear-revoked-row {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
}

.clear-revoked-row .user-actions {
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  #clearAuditBtn,
  #clearRevokedBtn {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
  }

  .clear-revoked-row {
    flex-wrap: wrap;
  }
}
